vue-transmit
Advanced tools
Comparing version 7.1.3 to 7.1.4
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="7.1.4"></a> | ||
## [7.1.4](https://github.com/alexsasharegan/vue-transmit/compare/v7.1.3...v7.1.4) (2017-12-26) | ||
### Bug Fixes | ||
* **xhr:** corrects IE11 "InvalidState" issue. ([#18](https://github.com/alexsasharegan/vue-transmit/issues/18)) ([6c05941](https://github.com/alexsasharegan/vue-transmit/commit/6c05941)) | ||
<a name="7.1.3"></a> | ||
@@ -7,0 +17,0 @@ ## [7.1.3](https://github.com/alexsasharegan/vue-transmit/compare/v7.1.2...v7.1.3) (2017-12-14) |
@@ -1,6 +0,6 @@ | ||
window.VueTransmit=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=2)}([function(e){(function(){e.exports=window.Vue})()},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(3);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(7),o=a.n(r),i=a(6),n=i(o.a,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]},!1,function(){a(5)},null,null),l=t['default']=n.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),m=r(g),f=a(14),h=r(f),_=a(1),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:m.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var a=this,r=new XMLHttpRequest;r.timeout=this.timeout;var e,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var m in this.params)g.append(m,this.params[m]);var f,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,f=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw f}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,m=t[Symbol.iterator]();!(u=(y=m.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&m.return&&m.return()}finally{if(c)throw s}}if(p)return}var f,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,f=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw f}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.1 | ||
window.VueTransmit=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=3)}([function(e){(function(){e.exports=window.Vue})()},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),f=r(g),m=a(14),h=r(m),_=a(2),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var e,a=this,r=new XMLHttpRequest,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.timeout=this.timeout,r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var f in this.params)g.append(f,this.params[f]);var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,f=t[Symbol.iterator]();!(u=(y=f.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw s}}if(p)return}var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(4);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(5),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(1),o=a.n(r);for(var i in r)'default'!==i&&function(e){a.d(t,e,function(){return r[e]})}(i);var n=a(16),l=a(7),d=l(o.a,n.a,!1,function(){a(6)},null,null);t['default']=d.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.2 | ||
* (c) 2015-2017 Evan You | ||
* @license MIT | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var a=new t,r={};return Object.keys(a).forEach(function(e){void 0!==a[e]&&(r[e]=a[e])}),!1,r}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){var a=t.prototype._init;t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var r=new t;t.prototype._init=a;var o={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(o[e]=r[e])}),!1,o}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
Copyright (C) Microsoft. All rights reserved. | ||
@@ -18,3 +18,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
and limitations under the License. | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!m(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!m(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!m(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return m(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function m(e){return null===e}function f(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return f(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!m(i))throw new TypeError;return m(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):m=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++m<t;)c&&c[m].run();m=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,m=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(1),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l}])['default']; | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!f(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!f(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!f(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return f(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function f(e){return null===e}function m(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return m(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!f(i))throw new TypeError;return f(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):f=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++f<t;)c&&c[f].run();f=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,f=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(2),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l},function(e,t){'use strict';t.a={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]}}])['default']; | ||
//# sourceMappingURL=vue-transmit.browser.min.js.map |
@@ -1,6 +0,6 @@ | ||
module.exports=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=2)}([function(e){e.exports=require('vue')},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(3);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(7),o=a.n(r),i=a(6),n=i(o.a,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]},!1,function(){a(5)},null,null),l=t['default']=n.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),f=r(g),m=a(14),h=r(m),_=a(1),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var a=this,r=new XMLHttpRequest;r.timeout=this.timeout;var e,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var f in this.params)g.append(f,this.params[f]);var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,f=t[Symbol.iterator]();!(u=(y=f.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw s}}if(p)return}var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.1 | ||
module.exports=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=3)}([function(e){e.exports=require('vue')},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),f=r(g),m=a(14),h=r(m),_=a(2),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var e,a=this,r=new XMLHttpRequest,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.timeout=this.timeout,r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var f in this.params)g.append(f,this.params[f]);var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,f=t[Symbol.iterator]();!(u=(y=f.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw s}}if(p)return}var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(4);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(5),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(1),o=a.n(r);for(var i in r)'default'!==i&&function(e){a.d(t,e,function(){return r[e]})}(i);var n=a(16),l=a(7),d=l(o.a,n.a,!1,function(){a(6)},null,null);t['default']=d.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.2 | ||
* (c) 2015-2017 Evan You | ||
* @license MIT | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var a=new t,r={};return Object.keys(a).forEach(function(e){void 0!==a[e]&&(r[e]=a[e])}),!1,r}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){var a=t.prototype._init;t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var r=new t;t.prototype._init=a;var o={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(o[e]=r[e])}),!1,o}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
Copyright (C) Microsoft. All rights reserved. | ||
@@ -18,3 +18,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
and limitations under the License. | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!f(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!f(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!f(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return f(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function f(e){return null===e}function m(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return m(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!f(i))throw new TypeError;return f(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):f=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++f<t;)c&&c[f].run();f=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,f=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(1),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l}])['default']; | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!f(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!f(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!f(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return f(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function f(e){return null===e}function m(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return m(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!f(i))throw new TypeError;return f(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):f=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++f<t;)c&&c[f].run();f=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,f=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.default=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(2),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l},function(e,t){'use strict';t.a={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]}}])['default']; | ||
//# sourceMappingURL=vue-transmit.common.min.js.map |
@@ -1,6 +0,6 @@ | ||
module.exports=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=2)}([function(e){e.exports=require('vue')},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(3);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(7),o=a.n(r),i=a(6),n=i(o.a,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]},!1,function(){a(5)},null,null),l=t['default']=n.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),m=r(g),f=a(14),h=r(f),_=a(1),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:m.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var a=this,r=new XMLHttpRequest;r.timeout=this.timeout;var e,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var m in this.params)g.append(m,this.params[m]);var f,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,f=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw f}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,m=t[Symbol.iterator]();!(u=(y=m.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&m.return&&m.return()}finally{if(c)throw s}}if(p)return}var f,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,f=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw f}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.1 | ||
module.exports=function(e){function t(r){if(a[r])return a[r].exports;var o=a[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=3)}([function(e){e.exports=require('vue')},function(e,t,a){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function l(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e}function d(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,'__esModule',{value:!0});var s=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},u=a(0),c=r(u),y=a(8),g=a(13),f=r(g),m=a(14),h=r(m),_=a(2),v=a(15),F=r(v),k=function(e,t,a,o){var n,l=arguments.length,d=3>l?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if('object'===('undefined'==typeof Reflect?'undefined':p(Reflect))&&'function'==typeof Reflect.decorate)d=Reflect.decorate(e,t,a,o);else for(var r=e.length-1;0<=r;r--)(n=e[r])&&(d=(3>l?n(d):3<l?n(t,a,d):n(t,a))||d);return 3<l&&d&&Object.defineProperty(t,a,d),d},b={ADDED:'added',QUEUED:'queued',ACCEPTED:'queued',UPLOADING:'uploading',PROCESSING:'uploading',CANCELED:'canceled',ERROR:'error',TIMEOUT:'timeout',SUCCESS:'success'},P=function(e){function t(){i(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.dragging=!1,e.processingThumbnail=!1,e.thumbnailQueue=[],e.files=[],e.defaultHeaders={Accept:'application/json',"Cache-Control":'no-cache',"X-Requested-With":'XMLHttpRequest'},e.fileInputStyles={visibility:'hidden !important',position:'absolute !important',top:'0 !important',left:'0 !important',height:'0px !important',width:'0px !important'},e}return d(t,e),s(t,[{key:'onAcceptedFilesChange',value:function(e){null==this.maxFiles||e.length>=this.maxFiles&&this.$emit('max-files-reached',this.files)}},{key:'getFilesWithStatus',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.files.filter(function(e){return-1<t.indexOf(e.status)})}},{key:'onFileInputChange',value:function(){this.$emit('added-files',Array.from(this.inputEl.files).map(this.addFile))}},{key:'addFile',value:function(e){var t=this,a=F.default.fromNativeFile(e);return a.status=b.ADDED,this.files.push(a),this.$emit('added-file',a),this.enqueueThumbnail(a),this.acceptFile(a,function(e){e?(a.accepted=!1,t.errorProcessing([a],e),t.$emit('rejected-file',a)):(a.accepted=!0,t.$emit('accepted-file',a),t.autoQueue&&t.enqueueFile(a)),t.$emit('accept-complete',a)}),a}},{key:'removeFile',value:function(e){e.status===b.UPLOADING&&this.cancelUpload(e);var t=this.files.findIndex(function(t){return t.id===e.id});~t&&(this.$emit('removed-file',this.files.splice(t,1)[0]),0===this.files.length&&this.$emit('reset'))}},{key:'removeAllFiles',value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!0,r=!1;try{for(var o,i,n=this.files[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,(i.status!==b.UPLOADING||t)&&this.removeFile(i)}catch(t){r=!0,e=t}finally{try{!a&&n.return&&n.return()}finally{if(r)throw e}}}},{key:'triggerBrowseFiles',value:function(){this.inputEl.click()}},{key:'handleClickUploaderAction',value:function(){this.clickable&&this.triggerBrowseFiles()}},{key:'enqueueFile',value:function(e){if(e.status===b.ADDED&&!0===e.accepted)e.status=b.QUEUED,this.autoProcessQueue&&setTimeout(this.processQueue,0);else throw new Error('This file can\'t be queued because it has already been processed or was rejected.')}},{key:'enqueueThumbnail',value:function(e){this.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*(1024*this.maxThumbnailFileSize)&&(this.thumbnailQueue.push(e),setTimeout(this.processThumbnailQueue,0))}},{key:'processThumbnailQueue',value:function(){var e=this;this.processingThumbnail||0===this.thumbnailQueue.length||(this.processingThumbnail=!0,this.createThumbnail(this.thumbnailQueue.shift(),function(){e.processingThumbnail=!1,e.processThumbnailQueue()}))}},{key:'createThumbnail',value:function(e){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.default,r=new FileReader;r.addEventListener('load',function(){'image/svg+xml'===e.type&&(e.dataUrl=r.result,t.$emit('thumbnail',e,r.result),a()),t.createThumbnailFromUrl(e,r.result,a)},!1),r.readAsDataURL(e.nativeFile)}},{key:'createThumbnailFromUrl',value:function(e,t,a){var r=this,o=document.createElement('img');o.addEventListener('load',function(){e.width=o.width,e.height=o.height;var t=r.resize(e,{width:r.thumbnailWidth,height:r.thumbnailHeight}),i=document.createElement('canvas'),n=i.getContext('2d');i.width=t.dWidth,i.height=t.dHeight,n.drawImage(o,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight);var l=i.toDataURL('image/png');if(e.dataUrl=l,r.$emit('thumbnail',e,l),a)return a()},!1),a&&o.addEventListener('error',a,!1),o.src=t}},{key:'processQueue',value:function(){var e=this.uploadingFiles.length;if(!(e>=this.maxConcurrentUploads||0===this.queuedFiles.length)){var t=[].concat(n(this.queuedFiles));if(this.uploadMultiple)return this.processFiles(t.slice(0,this.maxConcurrentUploads-e));for(var a=e;a<this.maxConcurrentUploads;a++)t.length&&this.processFile(t.shift())}}},{key:'processFile',value:function(e){this.processFiles([e])}},{key:'processFiles',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0)i=o.value,i.processing=!0,i.status=b.UPLOADING,this.$emit('processing',i)}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}return this.uploadMultiple&&this.$emit('processing-multiple',e),this.uploadFiles(e)}},{key:'getFilesWithXhr',value:function(e){return this.files.filter(function(t){return t.xhr===e})}},{key:'cancelUpload',value:function(e){if(e.status===b.UPLOADING){var t=this.getFilesWithXhr(e.xhr);e.xhr.abort();var a,r=!0,o=!1;try{for(var i,n,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)n=i.value,n.status=b.CANCELED,this.$emit('canceled',n)}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.uploadMultiple&&this.$emit('canceled-multiple',t)}else(e.status===b.ADDED||e.status===b.QUEUED)&&(e.status=b.CANCELED,this.$emit('canceled',e),this.uploadMultiple&&this.$emit('canceled-multiple',[e]));this.autoProcessQueue&&this.processQueue()}},{key:'uploadFile',value:function(e){this.uploadFiles([e])}},{key:'uploadFiles',value:function(t){var e,a=this,r=new XMLHttpRequest,o=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)d=l.value,d.xhr=r,d.startProgress()}catch(t){n=!0,e=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw e}}r.open(this.method,this.url,!0),r.timeout=this.timeout,r.withCredentials=!!this.withCredentials,r.responseType=this.responseType;var p=this.handleUploadError(t,r),u=this.handleUploadProgress(t);r.addEventListener('error',p),r.upload.addEventListener('progress',u),r.addEventListener('timeout',this.handleTimeout(t,r)),r.addEventListener('load',function(o){if(t[0].status!==b.CANCELED&&r.readyState===XMLHttpRequest.DONE){var e=r.response;if(!r.responseType){var i=r.getResponseHeader('content-type');if(e=r.responseText,i&&-1<i.indexOf('application/json'))try{e=JSON.parse(e)}catch(t){e='Invalid JSON response from server.'}}return u(),200>r.status||300<=r.status?p():a.uploadFinished(t,e,o)}});var c=Object.assign(Object.create(null),this.defaultHeaders,this.headers);for(var y in c)c[y]&&r.setRequestHeader(y,c[y]);var g=new FormData;for(var f in this.params)g.append(f,this.params[f]);var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,this.$emit('sending',F,r,g)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}this.uploadMultiple&&this.$emit('sending-multiple',t,r,g);for(var P=0;P<t.length;P++)g.append(this.getParamName(P),t[P].nativeFile,this.renameFile(t[P].name));return r.send(g)}},{key:'handleUploadError',value:function(e,t){var a=this;return function(){if(e[0].status!==b.CANCELED){var r=a.dictResponseError.replace(_.hbsRegex,(0,_.hbsReplacer)({statusCode:t.status}));a.errorProcessing(e,r,t)}}}},{key:'handleTimeout',value:function(t,a){var r=this;return function(o){var e,i=!0,n=!1;try{for(var l,d,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)d=l.value,d.status=b.TIMEOUT,d.endProgress(),r.$emit('timeout',d,o,a)}catch(t){n=!0,e=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw e}}r.$emit('timeout-multiple',t,o,a),this.autoProcessQueue&&this.processQueue()}}},{key:'handleUploadProgress',value:function(t){var e=this;return function(a){if(a instanceof ProgressEvent){var r,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.handleProgress(a)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}}else{var s,p=!0,u=!0,c=!1;try{for(var y,g,f=t[Symbol.iterator]();!(u=(y=f.next()).done);u=!0)g=y.value,(100!==g.upload.progress||g.upload.bytesSent!==g.upload.total)&&(p=!1),g.upload.progress=100,g.upload.bytesSent=g.upload.total,g.endProgress()}catch(e){c=!0,s=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw s}}if(p)return}var m,h=!0,_=!1;try{for(var v,F,k=t[Symbol.iterator]();!(h=(v=k.next()).done);h=!0)F=v.value,e.$emit('upload-progress',F,F.upload.progress,F.upload.bytesSent)}catch(e){_=!0,m=e}finally{try{!h&&k.return&&k.return()}finally{if(_)throw m}}}}},{key:'updateTotalUploadProgress',value:function(){var e=this.activeFiles.reduce(function(e,t){return e.totalBytesSent+=t.upload.bytesSent,e.totalBytes+=t.upload.total,e},{totalBytesSent:0,totalBytes:0,totalProgress:100});this.activeFiles.length&&(e.totalProgress=100*e.totalBytesSent/e.totalBytes),this.$emit('total-upload-progress',e)}},{key:'getParamName',value:function(e){return this.paramName+(this.uploadMultiple?'['+e+']':'')}},{key:'uploadFinished',value:function(t,a,r){var e,o=!0,i=!1;try{for(var n,l,d=t[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.SUCCESS,l.endProgress(),this.$emit('success',l,a,r),this.$emit('complete',l)}catch(t){i=!0,e=t}finally{try{!o&&d.return&&d.return()}finally{if(i)throw e}}this.uploadMultiple&&(this.$emit('success-multiple',t,a,r),this.$emit('complete-multiple',t)),this.autoProcessQueue&&this.processQueue()}},{key:'errorProcessing',value:function(e,t,a){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)l=n.value,l.status=b.ERROR,l.endProgress(),this.$emit('error',l,t,a),this.$emit('complete',l)}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}if(this.uploadMultiple&&(this.$emit('error-multiple',e,t,a),this.$emit('complete-multiple',e)),this.autoProcessQueue)return this.processQueue()}},{key:'acceptFile',value:function(e,t){e.size>1024*(1024*this.maxFileSize)?t(this.dictFileTooBig.replace(_.hbsRegex,(0,_.hbsReplacer)({fileSize:Math.round(e.size/1024/10.24)/100,maxFileSize:this.maxFileSize}))):this.isValidFileType(e,this.acceptedFileTypes)?null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles?(t(this.dictMaxFilesExceeded.replace(_.hbsRegex,(0,_.hbsReplacer)({maxFiles:this.maxFiles}))),this.$emit('max-files-exceeded',e)):this.accept(e,t):t(this.dictInvalidFileType)}},{key:'isValidFileType',value:function(e,t){if(!t.length)return!0;for(var a,r=e.type,o=r.replace(/\/.*$/,''),n=0;n<t.length;n++)if(a=t[n],'.'===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0;}else if(/\/\*$/.test(a)){if(o===a.replace(/\/.*$/,''))return!0;}else if(r===a)return!0;return!1}},{key:'handleDragStart',value:function(t){this.$emit('drag-start',t)}},{key:'handleDragOver',value:function(t){this.dragging=!0;var e;try{e=t.dataTransfer.effectAllowed}catch(e){}t.dataTransfer.dropEffect='move'===e||'linkMove'===e?'move':'copy',this.$emit('drag-over',t)}},{key:'handleDragEnter',value:function(t){this.dragging=!0,this.$emit('drag-enter',t)}},{key:'handleDragLeave',value:function(t){this.dragging=!1,this.$emit('drag-leave',t)}},{key:'handleDragEnd',value:function(t){this.dragging=!1,this.$emit('drag-end',t)}},{key:'handleDrop',value:function(t){if(this.dragging=!1,!!t.dataTransfer){this.$emit('drop',t);var e=Array.from(t.dataTransfer.files);if(this.$emit('added-files',e),e.length&&t.dataTransfer.items){var a=Array.from(t.dataTransfer.items);a&&a.length&&a[0].webkitGetAsEntry?this.addFilesFromItems(a):this.handleFiles(e)}else this.handleFiles(e)}}},{key:'paste',value:function(t){if(t&&t.clipboardData&&t.clipboardData.items){this.$emit('paste',t);var e=Array.from(t.clipboardData.items);e.length&&this.addFilesFromItems(e)}}},{key:'handleFiles',value:function(e){return e.map(this.addFile)}},{key:'addFilesFromItems',value:function(e){var t,a=!0,r=!1;try{for(var o,i,n=e[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){if(i=o.value,i.getAsFile&&'file'==i.kind){this.addFile(i.getAsFile());continue}if(i.webkitGetAsEntry){var l=i.webkitGetAsEntry();if(null==l)continue;if((0,_.webkitIsFile)(l)){l.file(this.addFile,function(){});continue}if((0,_.webkitIsDir)(l)){this.addFilesFromDirectory(l,l.name);continue}}}}catch(e){r=!0,t=e}finally{try{!a&&n.return&&n.return()}finally{if(r)throw t}}}},{key:'addFilesFromDirectory',value:function(e,t){var a=this;e.createReader().readEntries(function(e){var r,o=!0,i=!1;try{for(var n,l,d=e[Symbol.iterator]();!(o=(n=d.next()).done);o=!0)if(l=n.value,null!=l){if((0,_.webkitIsDir)(l)){a.addFilesFromDirectory(l,t+'/'+l.name);continue}(0,_.webkitIsFile)(l)&&l.file(function(e){a.ignoreHiddenFiles&&/^\./.test(e.name)||(e.fullPath=t+'/'+e.name,a.addFile(e))},function(){})}}catch(e){i=!0,r=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw r}}},function(){})}},{key:'mounted',value:function(){var e=this;this.$on('upload-progress',this.updateTotalUploadProgress),this.$on('removed-file',this.updateTotalUploadProgress),this.$on('canceled',function(t){return e.$emit('complete',t)}),this.$on('complete',function(t){0===e.addedFiles.length&&0===e.uploadingFiles.length&&0===e.queuedFiles.length&&setTimeout(function(){return e.$emit('queue-complete',t)},0)}),this.$emit('initialize',this)}},{key:'inputEl',get:function(){var e=null;return this.$refs.hiddenFileInput instanceof HTMLInputElement&&(e=this.$refs.hiddenFileInput),e}},{key:'filesToAccept',get:function(){return this.acceptedFileTypes.join(',')}},{key:'multiple',get:function(){return null===this.maxFiles||1<this.maxFiles}},{key:'acceptedFiles',get:function(){return this.files.filter(function(e){return e.accepted})}},{key:'rejectedFiles',get:function(){return this.files.filter(function(e){return!e.accepted})}},{key:'addedFiles',get:function(){return this.getFilesWithStatus(b.ADDED)}},{key:'queuedFiles',get:function(){return this.getFilesWithStatus(b.QUEUED)}},{key:'uploadingFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING)}},{key:'activeFiles',get:function(){return this.getFilesWithStatus(b.UPLOADING,b.QUEUED)}},{key:'maxFilesReached',get:function(){return null!=this.maxFiles&&this.acceptedFiles.length>=this.maxFiles}},{key:'maxFilesReachedClass',get:function(){return this.maxFilesReached?'v-transmit__max-files--reached':null}},{key:'isDraggingClass',get:function(){return o({"v-transmit__upload-area--is-dragging":this.dragging},this.dragClass,this.dragging)}},{key:'isUploading',get:function(){return 0<this.uploadingFiles.length}},{key:'fileSlotBindings',get:function(){return{files:this.files,acceptedFiles:this.acceptedFiles,rejectedFiles:this.rejectedFiles,addedFiles:this.addedFiles,queuedFiles:this.queuedFiles,uploadingFiles:this.uploadingFiles,activeFiles:this.activeFiles,isUploading:this.isUploading}}}]),t}(c.default);k([(0,y.Prop)({type:String,default:'div'})],P.prototype,'tag',void 0),k([(0,y.Prop)({type:[Array,Object,String],default:null})],P.prototype,'uploadAreaClasses',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaAttrs',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'uploadAreaListeners',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'dragClass',void 0),k([(0,y.Prop)({type:String,required:!0})],P.prototype,'url',void 0),k([(0,y.Prop)({type:String,default:'post'})],P.prototype,'method',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'withCredentials',void 0),k([(0,y.Prop)({type:Number,default:0})],P.prototype,'timeout',void 0),k([(0,y.Prop)({type:Number,default:2})],P.prototype,'maxConcurrentUploads',void 0),k([(0,y.Prop)({type:Boolean,default:!1})],P.prototype,'uploadMultiple',void 0),k([(0,y.Prop)({type:Number,default:256})],P.prototype,'maxFileSize',void 0),k([(0,y.Prop)({type:String,default:'file'})],P.prototype,'paramName',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'createImageThumbnails',void 0),k([(0,y.Prop)({type:Number,default:10})],P.prototype,'maxThumbnailFileSize',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailWidth',void 0),k([(0,y.Prop)({type:Number,default:120})],P.prototype,'thumbnailHeight',void 0),k([(0,y.Prop)({type:Number,default:1e3})],P.prototype,'fileSizeBase',void 0),k([(0,y.Prop)({type:Number,default:null})],P.prototype,'maxFiles',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'params',void 0),k([(0,y.Prop)({type:Object,default:_.objFactory})],P.prototype,'headers',void 0),k([(0,y.Prop)({type:String,default:''})],P.prototype,'responseType',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'clickable',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'ignoreHiddenFiles',void 0),k([(0,y.Prop)({type:Array,default:function(){return[]}})],P.prototype,'acceptedFileTypes',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoProcessQueue',void 0),k([(0,y.Prop)({type:Boolean,default:!0})],P.prototype,'autoQueue',void 0),k([(0,y.Prop)({type:String,default:null})],P.prototype,'capture',void 0),k([(0,y.Prop)({type:Function,default:h.default})],P.prototype,'renameFile',void 0),k([(0,y.Prop)({type:String,default:'File is too big ({{ fileSize }}MiB). Max file size: {{ maxFileSize }}MB.'})],P.prototype,'dictFileTooBig',void 0),k([(0,y.Prop)({type:String,default:'You can\'t upload files of this type.'})],P.prototype,'dictInvalidFileType',void 0),k([(0,y.Prop)({type:String,default:'Server responded with {{ statusCode }} code.'})],P.prototype,'dictResponseError',void 0),k([(0,y.Prop)({type:String,default:'You can not upload any more files.'})],P.prototype,'dictMaxFilesExceeded',void 0),k([(0,y.Prop)({type:Function,default:function(e,t){return t()}})],P.prototype,'accept',void 0),k([(0,y.Prop)({type:Function,default:_.resizeImg})],P.prototype,'resize',void 0),k([(0,y.Watch)('acceptedFiles')],P.prototype,'onAcceptedFilesChange',null),P=k([(0,y.Component)({name:'VueTransmit'})],P),t.default=P},function(e,t){'use strict';function a(e){return e/125}function r(e){return e/125000}function o(e,t){return t/e}function i(e,t){return t*e}function n(e,t,a){return'number'==typeof t?[t,o(e,t)]:[i(e,a),a]}Object.defineProperty(t,'__esModule',{value:!0});var l=function(){function e(e,t){var a,r=[],o=!0,i=!1;try{for(var n,l=e[Symbol.iterator]();!(o=(n=l.next()).done)&&(r.push(n.value),!(t&&r.length===t));o=!0);}catch(e){i=!0,a=e}finally{try{!o&&l['return']&&l['return']()}finally{if(i)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();t.uniqueId=function(e){var t=++p;return e+t},t.copyOwnAndInheritedProps=function(e){var t={};for(var a in e)'function'!=typeof e[a]&&(t[a]=e[a]);return t},t.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'round',r=Math.pow(10,t);return Math[a](e*r)/r},t.fromBytesToKbit=a,t.fromBytesToMbit=r,t.toKbps=function(e,t){return a(e)/t},t.toMbps=function(e,t){return r(e)/t},t.hbsReplacer=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(t,a){return e[a]===void 0?t:e[a]}},t.objFactory=function(){return{}},t.scaleH=o,t.scaleW=i,t.scaleDims=n,t.resizeImg=function(e,t){var a,r,o=e.width/e.height,i=t.width/t.height,d={sx:0,sy:0,sWidth:e.width,sHeight:e.height,dx:0,dy:0,dWidth:t.width,dHeight:t.height};if(i>o){var s=n(i,e.width),p=l(s,2);a=p[0],r=p[1]}else{var u=n(i,void 0,e.height),c=l(u,2);a=c[0],r=c[1]}return a<e.width&&(d.sx=(e.width-a)/2,d.sWidth=a),r<e.height&&(d.sy=(e.height-r)/2,d.sHeight=r),d},t.webkitIsFile=function(e){return e.isFile},t.webkitIsDir=function(e){return e.isDirectory};var d=t.assign=Object.assign,s=t.defineProperty=Object.defineProperty,p=0,u=t.hbsRegex=/{{\s*?([a-zA-Z]+)\s*?}}/g},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(4);t.default={install:function(e){e.component('VueTransmit',r.VueTransmit)},name:'vue-transmit'}},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.VueTransmit=void 0;var r=a(5),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.VueTransmit=o.default},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=a(1),o=a.n(r);for(var i in r)'default'!==i&&function(e){a.d(t,e,function(){return r[e]})}(i);var n=a(16),l=a(7),d=l(o.a,n.a,!1,function(){a(6)},null,null);t['default']=d.exports},function(){},function(e){e.exports=function(e,t,a,r,o,i){var n,l=e=e||{},d=typeof e.default;('object'==d||'function'==d)&&(n=e,l=e.default);var s='function'==typeof l?l.options:l;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),o&&(s._scopeId=o);var p;if(i?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||'undefined'==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=p):r&&(p=r),p){var u=s.functional,c=u?s.render:s.beforeCreate;u?(s._injectStyles=p,s.render=function(e,t){return p.call(t),c(e,t)}):s.beforeCreate=c?[].concat(c,p):[p]}return{esModule:n,exports:l,options:s}}},function(e,t,a){(function(e,r){r(t,a(0),a(9),a(10))})(this,function(e,t,a){'use strict';t=t&&t.hasOwnProperty('default')?t['default']:t;var r='default'in a?a['default']:a;var o=/\B([A-Z])/g,i=function(e){return e.replace(o,'-$1').toLowerCase()};e.Component=r,e.Vue=t,e.Inject=function(e){return a.createDecorator(function(t,a){'undefined'==typeof t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[a]=e||a)})},e.Provide=function(e){return a.createDecorator(function(t,a){var r=t.provide;if('function'!=typeof r||!r.managed){var o=t.provide;r=t.provide=function(){var e=Object.create(('function'==typeof o?o.call(this):o)||null);for(var t in r.managed)e[r.managed[t]]=this[t];return e},r.managed={}}r.managed[a]=e||a})},e.Model=function(e,t){return void 0===t&&(t={}),function(r,o){Array.isArray(t)||'undefined'!=typeof t.type||(t.type=Reflect.getMetadata('design:type',r,o)),a.createDecorator(function(a,r){(a.props||(a.props={}))[r]=t,a.model={prop:r,event:e||r}})(r,o)}},e.Prop=function(e){return void 0===e&&(e={}),function(t,r){Array.isArray(e)||'undefined'!=typeof e.type||(e.type=Reflect.getMetadata('design:type',t,r)),a.createDecorator(function(t,a){(t.props||(t.props={}))[a]=e})(t,r)}},e.Watch=function(e,t){void 0===t&&(t={});var r=t.deep,o=t.immediate;return a.createDecorator(function(t,a){'object'!=typeof t.watch&&(t.watch=Object.create(null)),t.watch[e]={handler:a,deep:void 0!==r&&r,immediate:void 0!==o&&o}})},e.Emit=function(e){return function(t,a,r){a=i(a);var o=r.value;r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!1!==o.apply(this,t)&&this.$emit.apply(this,[e||a].concat(t))}}},Object.defineProperty(e,'__esModule',{value:!0})})},function(e,t,a){'use strict';/** | ||
* vue-class-component v6.1.2 | ||
* (c) 2015-2017 Evan You | ||
* @license MIT | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var a=new t,r={};return Object.keys(a).forEach(function(e){void 0!==a[e]&&(r[e]=a[e])}),!1,r}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
*/function r(e){var t=typeof e;return null==e||'object'!=t&&'function'!=t}function o(e,t){var a=t.prototype._init;t.prototype._init=function(){var t=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||a.push(r);a.forEach(function(a){'_'!==a.charAt(0)&&Object.defineProperty(t,a,{get:function(){return e[a]},set:function(t){return e[a]=t},configurable:!0})})};var r=new t;t.prototype._init=a;var o={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(o[e]=r[e])}),!1,o}function i(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if('constructor'!==e){if(-1<p.indexOf(e))return void(t[e]=a[e]);var r=Object.getOwnPropertyDescriptor(a,e);'function'==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return o(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),l=i instanceof d?i.constructor:d,s=l.extend(t);return n(s,e,l),s}function n(e,t,a){Object.getOwnPropertyNames(t).forEach(function(o){if('prototype'!==o){var i=Object.getOwnPropertyDescriptor(e,o);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(t,o);if(!s){if('cid'===o)return;var l=Object.getOwnPropertyDescriptor(a,o);if(!r(n.value)&&l&&l.value===n.value)return}!1,Object.defineProperty(e,o,n)}}})}function l(e){return'function'==typeof e?i(e):function(t){return i(t,e)}}Object.defineProperty(t,'__esModule',{value:!0});var d=function(e){return e&&'object'==typeof e&&'default'in e?e['default']:e}(a(0)),s={__proto__:[]}instanceof Array,p=['data','beforeCreate','created','beforeMount','mounted','beforeDestroy','destroyed','beforeUpdate','updated','activated','deactivated','render','errorCaptured'];(function(e){e.registerHooks=function(e){p.push.apply(p,e)}})(l||(l={}));var u=l;t['default']=u,t.createDecorator=function(e){return function(t,a,r){var o='function'==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),'number'!=typeof r&&(r=void 0),o.__decorators__.push(function(t){return e(t,a,r)})}}},function(e,t,a){(function(e,t){/*! ***************************************************************************** | ||
Copyright (C) Microsoft. All rights reserved. | ||
@@ -18,3 +18,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
and limitations under the License. | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!m(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!m(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!m(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return m(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function m(e){return null===e}function f(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return f(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!m(i))throw new TypeError;return m(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):m=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++m<t;)c&&c[m].run();m=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,m=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t['default']=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t['default']=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(1),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l}]); | ||
***************************************************************************** */var a;(function(a){'use strict';function r(e,t){for(var a=e.length-1;0<=a;--a){var r=e[a],o=r(t);if(!g(o)&&!f(o)){if(!D(o))throw new TypeError;t=o}}return t}function o(e,t,a,r){for(var o=e.length-1;0<=o;--o){var i=e[o],n=i(t,a,r);if(!g(n)&&!f(n)){if(!h(n))throw new TypeError;r=n}}return r}function i(e,t,a){var r=W.get(e);if(g(r)){if(!a)return;r=new Q,W.set(e,r)}var o=r.get(t);if(g(o)){if(!a)return;o=new Q,r.set(t,o)}return o}function n(e,t,a){var r=l(e,t,a);if(r)return!0;var o=$(t);return!f(o)&&n(e,o,a)}function l(e,t,a){var r=i(t,a,!1);return!g(r)&&F(r.has(e))}function d(e,t,a){var r=l(e,t,a);if(r)return s(e,t,a);var o=$(t);return f(o)?void 0:d(e,o,a)}function s(e,t,a){var r=i(t,a,!1);return g(r)?void 0:r.get(e)}function p(e,t,a,r){var o=i(a,r,!0);o.set(e,t)}function u(e,t){var a=c(e,t),r=$(e);if(null===r)return a;var o=u(r,t);if(0>=o.length)return a;if(0>=a.length)return o;for(var i=new z,n=[],l=0,d=a;l<d.length;l++){var s=d[l],p=i.has(s);p||(i.add(s),n.push(s))}for(var y=0,g=o;y<g.length;y++){var s=g[y],p=i.has(s);p||(i.add(s),n.push(s))}return n}function c(e,t){var a=[],r=i(e,t,!1);if(g(r))return a;for(var o=r.keys(),n=T(o),l=0;;){var d=C(n);if(!d)return a.length=l,a;var s=A(d);try{a[l]=s}catch(t){try{I(n)}finally{throw t}}l++}}function y(e){if(null===e)return 1;switch(typeof e){case'undefined':return 0;case'boolean':return 2;case'string':return 3;case'symbol':return 4;case'number':return 5;case'object':return null===e?1:6;default:return 6;}}function g(e){return e===void 0}function f(e){return null===e}function m(e){return'symbol'==typeof e}function h(e){return'object'==typeof e?null!==e:'function'==typeof e}function _(e,t){switch(y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e;}var a=3===t?'string':5===t?'number':'default',r=w(e,R);if(r!==void 0){var o=r.call(e,a);if(h(o))throw new TypeError;return o}return v(e,'default'==a?'number':a)}function v(e,t){if('string'===t){var a=e.toString;if(x(a)){var r=a.call(e);if(!h(r))return r}var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}}else{var o=e.valueOf;if(x(o)){var r=o.call(e);if(!h(r))return r}var i=e.toString;if(x(i)){var r=i.call(e);if(!h(r))return r}}throw new TypeError}function F(e){return!!e}function k(e){return''+e}function b(e){var t=_(e,3);return m(t)?t:k(t)}function P(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:'[object Array]'===Object.prototype.toString.call(e)}function x(e){return'function'==typeof e}function D(e){return'function'==typeof e}function E(e){switch(y(e)){case 3:return!0;case 4:return!0;default:return!1;}}function w(e,t){var a=e[t];if(void 0!==a&&null!==a){if(!x(a))throw new TypeError;return a}}function T(e){var t=w(e,L);if(!x(t))throw new TypeError;var a=t.call(e);if(!h(a))throw new TypeError;return a}function A(e){return e.value}function C(e){var t=e.next();return!t.done&&t}function I(e){var t=e['return'];t&&t.call(e)}function $(e){var t=Object.getPrototypeOf(e);if('function'!=typeof e||e===N)return t;if(t!==N)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var o=r.constructor;return'function'==typeof o?o===e?t:o:t}function S(e){return e.__=void 0,delete e.__,e}var O,M=Object.prototype.hasOwnProperty,U='function'==typeof Symbol,R=U&&'undefined'!=typeof Symbol.toPrimitive?Symbol.toPrimitive:'@@toPrimitive',L=U&&'undefined'!=typeof Symbol.iterator?Symbol.iterator:'@@iterator';(function(e){var t='function'==typeof Object.create,a={__proto__:[]}instanceof Array,r=!t&&!a;e.create=t?function(){return S(Object.create(null))}:a?function(){return S({__proto__:null})}:function(){return S({})},e.has=r?function(e,t){return M.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return M.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}})(O||(O={}));var N=Object.getPrototypeOf(Function),j='object'==typeof e&&{NODE_ENV:'production'}&&'true'==={NODE_ENV:'production'}.REFLECT_METADATA_USE_MAP_POLYFILL,Q=j||'function'!=typeof Map||'function'!=typeof Map.prototype.entries?function(){function e(e){return e}function t(e,t){return t}function a(e,t){return[e,t]}var r={},o=[],i=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype['@@iterator']=function(){return this},e.prototype[L]=function(){return this},e.prototype.next=function(){var e=this._index;if(0<=e&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,'size',{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var a=this._keys.length,o=t+1;o<a;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,a)},o.prototype['@@iterator']=function(){return this.entries()},o.prototype[L]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),0>this._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,z=j||'function'!=typeof Set||'function'!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Q}return Object.defineProperty(e.prototype,'size',{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype['@@iterator']=function(){return this.keys()},e.prototype[L]=function(){return this.keys()},e}()}():Set,q=j||'function'!=typeof WeakMap?function(){function e(){var e;do e='@@WeakMap@@'+o();while(O.has(n,e));return n[e]=!0,e}function t(e,t){if(!M.call(e,l)){if(!t)return;Object.defineProperty(e,l,{value:O.create()})}return e[l]}function a(e,t){for(var a=0;a<t;++a)e[a]=0|255*Math.random();return e}function r(e){return'function'==typeof Uint8Array?'undefined'==typeof crypto?'undefined'==typeof msCrypto?a(new Uint8Array(e),e):msCrypto.getRandomValues(new Uint8Array(e)):crypto.getRandomValues(new Uint8Array(e)):a(Array(e),e)}function o(){var e=r(i);e[6]=64|79&e[6],e[8]=128|191&e[8];for(var t,a='',o=0;o<i;++o)t=e[o],(4===o||6===o||8===o)&&(a+='-'),16>t&&(a+='0'),a+=t.toString(16).toLowerCase();return a}var i=16,n=O.create(),l=e();return function(){function a(){this._key=e()}return a.prototype.has=function(e){var a=t(e,!1);return void 0!==a&&O.has(a,this._key)},a.prototype.get=function(e){var a=t(e,!1);return void 0===a?void 0:O.get(a,this._key)},a.prototype.set=function(e,a){var r=t(e,!0);return r[this._key]=a,this},a.prototype.delete=function(e){var a=t(e,!1);return void 0!==a&&delete a[this._key]},a.prototype.clear=function(){this._key=e()},a}()}():WeakMap,W=new q;a.decorate=function(e,t,a,i){if(!g(a)){if(!P(e))throw new TypeError;if(!h(t))throw new TypeError;if(!h(i)&&!g(i)&&!f(i))throw new TypeError;return f(i)&&(i=void 0),a=b(a),o(e,t,a,i)}if(!P(e))throw new TypeError;if(!D(t))throw new TypeError;return r(e,t)},a.metadata=function(e,t){return function(a,r){if(!h(a))throw new TypeError;if(!g(r)&&!E(r))throw new TypeError;p(e,t,a,r)}},a.defineMetadata=function(e,t,a,r){if(!h(a))throw new TypeError;return g(r)||(r=b(r)),p(e,t,a,r)},a.hasMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),n(e,t,a)},a.hasOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),l(e,t,a)},a.getMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),d(e,t,a)},a.getOwnMetadata=function(e,t,a){if(!h(t))throw new TypeError;return g(a)||(a=b(a)),s(e,t,a)},a.getMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),u(e,t)},a.getOwnMetadataKeys=function(e,t){if(!h(e))throw new TypeError;return g(t)||(t=b(t)),c(e,t)},a.deleteMetadata=function(e,t,a){if(!h(t))throw new TypeError;g(a)||(a=b(a));var r=i(t,a,!1);if(g(r))return!1;if(!r.delete(e))return!1;if(0<r.size)return!0;var o=W.get(t);return!(o.delete(a),!(0<o.size))||(W.delete(t),!0)},function(e){if(!('undefined'!=typeof e.Reflect))e.Reflect=a;else if(e.Reflect!==a)for(var t in a)M.call(a,t)&&(e.Reflect[t]=a[t])}('undefined'==typeof t?'undefined'==typeof self?Function('return this;')():self:t)})(a||(a={}))}).call(t,a(11),a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(s===setTimeout)return setTimeout(e,0);if((s===t||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&c&&(g=!1,c.length?y=c.concat(y):f=-1,y.length&&n())}function n(){if(!g){var e=r(i);g=!0;for(var t=y.length;t;){for(c=y,y=[];++f<t;)c&&c[f].run();f=-1,t=y.length}c=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}var s,p,u=e.exports={};(function(){try{s='function'==typeof setTimeout?setTimeout:t}catch(a){s=t}try{p='function'==typeof clearTimeout?clearTimeout:a}catch(t){p=a}})();var c,y=[],g=!1,f=-1;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new l(e,t)),1!==y.length||g||r(n)},l.prototype.run=function(){this.fun.apply(null,this.array)},u.title='browser',u.browser=!0,u.env={},u.argv=[],u.version='',u.versions={},u.on=d,u.addListener=d,u.once=d,u.off=d,u.removeListener=d,u.removeAllListeners=d,u.emit=d,u.prependListener=d,u.prependOnceListener=d,u.listeners=function(){return[]},u.binding=function(){throw new Error('process.binding is not supported')},u.cwd=function(){return'/'},u.chdir=function(){throw new Error('process.chdir is not supported')},u.umask=function(){return 0}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t['default']=function(){}},function(e,t){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t['default']=function(e){return e}},function(e,t,a){'use strict';function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(t,'__esModule',{value:!0});var i=function(){function e(e,t){for(var a,r=0;r<t.length;r++)a=t[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(2),l=function(){function e(){o(this,e),this._nativeFile=null,this.id=e.idFactory(),this.accepted=void 0,this.lastModified=void 0,this.lastModifiedDate=void 0,this.name=void 0,this.processing=void 0,this.size=void 0,this.status=void 0,this.type=void 0,this.upload={bytesSent:0,progress:0,total:0,speed:{kbps:void 0,mbps:void 0},start:void 0,end:void 0,time:void 0},this.webkitRelativePath=void 0,this.width=void 0,this.height=void 0,this.xhr=void 0,this.errorMessage=void 0;for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];n.assign.apply(void 0,[this].concat(a))}return i(e,[{key:'set',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.assign.apply(void 0,[this].concat(t)),this}},{key:'copyNativeFile',value:function(e){return this.nativeFile=e,this.set((0,n.copyOwnAndInheritedProps)(e))}},{key:'copyOwnAndInheritedProps',value:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.set.apply(this,r(t.map(n.copyOwnAndInheritedProps)))}},{key:'handleProgress',value:function(t){this.startProgress();var e=t.total||this.upload.total;this.upload.progress=Math.min(100,100*t.loaded/e),this.upload.bytesSent=t.loaded,this.upload.total=e,this.upload.time=(Date.now()-this.upload.start)/1e3,this.upload.speed.kbps=(0,n.round)((0,n.toKbps)(this.upload.bytesSent,this.upload.time)),this.upload.speed.mbps=(0,n.round)((0,n.toMbps)(this.upload.bytesSent,this.upload.time)),100===this.upload.progress&&this.endProgress()}},{key:'startProgress',value:function(){return'number'!=typeof this.upload.start&&(this.upload.start=Date.now()),this}},{key:'endProgress',value:function(){return'number'!=typeof this.upload.end&&(this.upload.end=Date.now(),this.upload.time=(Date.now()-this.upload.start)/1e3),this}},{key:'nativeFile',get:function(){return this._nativeFile},set:function(t){if(!(t instanceof File))throw new TypeError('['+e.name+'] Expected an instance of File (native).');this._nativeFile=t,this.upload.total=t.size}},{key:'dataUrl',get:function(){return this._dataUrl||''},set:function(e){(0,n.defineProperty)(this,'_dataUrl',{value:e,enumerable:!1,configurable:!0,writable:!0})}}],[{key:'fromNativeFile',value:function(t){for(var a=arguments.length,r=Array(1<a?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];var i=new(Function.prototype.bind.apply(e,[null].concat(r)));return i.copyNativeFile(t),i}},{key:'idFactory',value:function(){return(0,n.uniqueId)('v-transmit-file-')}}]),e}();t.default=l},function(e,t){'use strict';t.a={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.tag,{tag:'component'},[a('div',e._g(e._b({staticClass:'v-transmit__upload-area',class:[e.isDraggingClass,e.uploadAreaClasses],attrs:{draggable:'true'},on:{click:e.handleClickUploaderAction,dragstart:e.handleDragStart,dragend:e.handleDragEnd,dragenter:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragEnter(t)},dragover:function(t){t.preventDefault(),t.stopPropagation(),e.handleDragOver(t)},dragleave:e.handleDragLeave,drop:function(t){t.preventDefault(),t.stopPropagation(),e.handleDrop(t)}}},'div',e.uploadAreaAttrs,!1),e.uploadAreaListeners),[e._t('default')],2),e._v(' '),e._t('files',null,null,e.fileSlotBindings),e._v(' '),a('input',{ref:'hiddenFileInput',class:[e.maxFilesReachedClass],style:e.fileInputStyles,attrs:{type:'file',multiple:e.multiple,accept:e.filesToAccept,capture:e.capture},on:{change:e.onFileInputChange}})],2)},staticRenderFns:[]}}]); | ||
//# sourceMappingURL=vue-transmit.esm.min.js.map |
{ | ||
"name": "vue-transmit", | ||
"version": "7.1.3", | ||
"version": "7.1.4", | ||
"description": "Vue.js drag & drop uploader based on Dropzone.js", | ||
@@ -29,9 +29,9 @@ "module": "dist/vue-transmit.esm.min.js", | ||
"lodash-es": "^4.17.4", | ||
"vue": "^2.5.10" | ||
"vue": "^2.5.13" | ||
}, | ||
"devDependencies": { | ||
"ajv": "^5.5.1", | ||
"ajv": "^5.5.2", | ||
"ajv-keywords": "^2.1.1", | ||
"autoprefixer": "^7.2.3", | ||
"av-ts": "^0.9.1", | ||
"av-ts": "^0.9.2", | ||
"awesome-typescript-loader": "^3.4.1", | ||
@@ -61,7 +61,7 @@ "babel-cli": "^6.26.0", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"cross-env": "^5.1.1", | ||
"cross-env": "^5.1.3", | ||
"css-loader": "^0.28.7", | ||
"eslint": "^4.13.1", | ||
"eslint": "^4.14.0", | ||
"extract-text-webpack-plugin": "^3.0.2", | ||
"file-loader": "^1.1.5", | ||
"file-loader": "^1.1.6", | ||
"lodash": "^4.17.4", | ||
@@ -79,6 +79,6 @@ "node-sass": "^4.7.2", | ||
"url-loader": "^0.6.2", | ||
"vue-class-component": "^6.1.1", | ||
"vue-loader": "^13.5.0", | ||
"vue-class-component": "^6.1.2", | ||
"vue-loader": "^13.6.1", | ||
"vue-property-decorator": "^6.0.0", | ||
"vue-template-compiler": "^2.5.10", | ||
"vue-template-compiler": "^2.5.13", | ||
"vue-ts-loader": "0.0.3", | ||
@@ -85,0 +85,0 @@ "webpack": "^3.10.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8155088
11261
Updatedvue@^2.5.13