PageSourceSearch

https://gettinvolved.com/js/chunks/4ab669c3ff5f8299.js

js gettinvolved.com collected 2026-10-06 06:59:14 UTC 652,145 bytes, 2 lines download raw bytes

1/*! For license information please see 4ab669c3ff5f8299.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[5218],{58236:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o}},93391:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(6361),i=o.AbortController,s=o.createAbortError,a=n(47240),l={limit:1,retryDelays:[0,1e3,3e3,5e3],getChunkSize:function(e){return Math.ceil(e.size/1e4)},onStart:function(){},onProgress:function(){},onPartComplete:function(){},onSuccess:function(){},onError:function(e){throw e}};function u(e){if("string"==typeof e)return parseInt(e,10);if("number"==typeof e)return e;throw new TypeError("Expected a number")}var c=function(){function e(e,t){this.options=r({},l,t),this.options.getChunkSize||(this.options.getChunkSize=l.getChunkSize),this.file=e,this.abortController=new i,this.key=this.options.key||null,this.uploadId=this.options.uploadId||null,this.parts=[],this.createdPromise=Promise.reject(),this.isPaused=!1,this.partsInProgress=0,this.chunks=null,this.chunkState=null,this._initChunks(),this.createdPromise.catch(function(){})}var t=e.prototype;return t._aborted=function(){return this.abortController.signal.aborted},t._initChunks=function(){var e=[],t=this.options.getChunkSize(this.file),n=Math.max(5242880,Math.ceil(this.file.size/1e4)),r=Math.max(t,n);if(0===this.file.size)e.push(this.file);else for(var o=0;o<this.file.size;o+=r){var i=Math.min(this.file.size,o+r);e.push(this.file.slice(o,i))}this.chunks=e,this.chunkState=e.map(function(){return{uploaded:0,busy:!1,done:!1}})},t._createUpload=function(){var e=this;return this.createdPromise=Promise.resolve().then(function(){return e.options.createMultipartUpload()}),this.createdPromise.then(function(t){if(e._aborted())throw s();if(!("object"==typeof t&&t&&"string"==typeof t.uploadId&&"string"==typeof t.key))throw new TypeError("AwsS3/Multipart: Got incorrect result from `createMultipartUpload()`, expected an object `{ uploadId, key }`.");e.key=t.key,e.uploadId=t.uploadId,e.options.onStart(t),e._uploadParts()}).catch(function(t){e._onError(t)})},t._resumeUpload=function(){var e=this;return Promise.resolve().then(function(){return e.options.listParts({uploadId:e.uploadId,key:e.key})}).then(function(t){if(e._aborted())throw s();t.forEach(function(t){var n=t.PartNumber-1;e.chunkState[n]={uploaded:u(t.Size),etag:t.ETag,done:!0},e.parts.some(function(e){return e.PartNumber===t.PartNumber})||e.parts.push({PartNumber:t.PartNumber,ETag:t.ETag})}),e._uploadParts()}).catch(function(t){e._onError(t)})},t._uploadParts=function(){var e=this;if(!this.isPaused){var t=this.options.limit-this.partsInProgress;if(0!==t)if(this.chunkState.every(function(e){return e.done}))this._completeUpload();else{for(var n=[],r=0;r<this.chunkState.length;r++){var o=this.chunkState[r];if(!o.done&&!o.busy&&(n.push(r),n.length>=t))break}n.forEach(function(t){e._uploadPartRetryable(t).then(function(){e._uploadParts()},function(t){e._onError(t)})})}}},t._retryable=function(e){var t=this,n=e.before,r=e.attempt,o=e.after,i=this.options.retryDelays,l=this.abortController.signal;n&&n();return function e(n){return r().catch(function(r){if(t._aborted())throw s();if(function(e){if(e.source&&"number"==typeof e.source.status){var t=e.source.status;return 0===t||409===t||423===t||t>=500&&t<600}return!1}(r)&&n<i.length)return a(i[n],{signal:l}).then(function(){return e(n+1)});throw r})}(0).then(function(e){return o&&o(),e},function(e){throw o&&o(),e})},t._uploadPartRetryable=function(e){var t=this;return this._retryable({before:function(){t.partsInProgress+=1},attempt:function(){return t._uploadPart(e)},after:function(){t.partsInProgress-=1}})},t._uploadPart=function(e){var t=this,n=this.chunks[e];return this.chunkState[e].busy=!0,Promise.resolve().then(function(){return t.options.prepareUploadPart({key:t.key,uploadId:t.uploadId,body:n,number:e+1})}).then(function(e){if(!("object"==typeof e&&e&&"string"==typeof e.url))throw new TypeError("AwsS3/Multipart: Got incorrect result from `prepareUploadPart()`, expected an object `{ url }`.");return e}).then(function(n){var r=n.url,o=n.headers;if(t._aborted())throw t.chunkState[e].busy=!1,s();return t._uploadPartBytes(e,r,o)})},t._onPartProgress=function(e,t,n){this.chunkState[e].uploaded=u(t);var r=this.chunkState.reduce(function(e,t){return e+t.uploaded},0);this.options.onProgress(r,this.file.size)},t._onPartComplete=function(e,t){this.chunkState[e].etag=t,this.chunkState[e].done=!0;var n={PartNumber:e+1,ETag:t};this.parts.push(n),this.options.onPartComplete(n)},t._uploadPartBytes=function(e,t,n){var r,o=this,i=this.chunks[e],a=this.abortController.signal,l=new Promise(function(e,t){r={resolve:e,reject:t}}),u=new XMLHttpRequest;function c(){a.removeEventListener("abort",p)}function p(){u.abort()}return u.open("PUT",t,!0),n&&Object.keys(n).map(function(e){u.setRequestHeader(e,n[e])}),u.responseType="text",a.addEventListener("abort",p),u.upload.addEventListener("progress",function(t){t.lengthComputable&&o._onPartProgress(e,t.loaded,t.total)}),u.addEventListener("abort",function(t){c(),o.chunkState[e].busy=!1,r.reject(s())}),u.addEventListener("load",function(t){if(c(),o.chunkState[e].busy=!1,t.target.status<200||t.target.status>=300){var n=new Error("Non 2xx");return n.source=t.target,void r.reject(n)}o._onPartProgress(e,i.size,i.size);var s=t.target.getResponseHeader("ETag");null!==s?(o._onPartComplete(e,s),r.resolve()):r.reject(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."))}),u.addEventListener("error",function(t){c(),o.chunkState[e].busy=!1;var n=new Error("Unknown error");n.source=t.target,r.reject(n)}),u.send(i),l},t._completeUpload=function(){var e=this;return this.parts.sort(function(e,t){return e.PartNumber-t.PartNumber}),Promise.resolve().then(function(){return e.options.completeMultipartUpload({key:e.key,uploadId:e.uploadId,parts:e.parts})}).then(function(t){e.options.onSuccess(t)},function(t){e._onError(t)})},t._abortUpload=function(){var e=this;this.abortController.abort(),this.createdPromise.then(function(){e.options.abortMultipartUpload({key:e.key,uploadId:e.uploadId})},function(){})},t._onError=function(e){e&&"AbortError"===e.name||this.options.onError(e)},t.start=function(){this.isPaused=!1,this.uploadId?this._resumeUpload():this._createUpload()},t.pause=function(){this.abortController.abort(),this.abortController=new i,this.isPaused=!0},t.abort=function(e){if(void 0===e&&(e={}),!(e.really||!1))return this.pause();this._abortUpload()},e}();e.exports=c},12681:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var l=n(57097).Plugin,u=n(88788),c=u.Socket,p=u.Provider,d=u.RequestClient,h=n(77031),f=n(98018),m=n(91664),g=n(60368),v=n(93391);function y(e){if(e&&e.error){var t=new Error(e.message);throw a(t,e.error),t}return e}e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"AwsS3Multipart",r.title="AWS S3 Multipart",r.client=new d(t,n);var o={timeout:3e4,limit:0,retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:r.createMultipartUpload.bind(i(r)),listParts:r.listParts.bind(i(r)),prepareUploadPart:r.prepareUploadPart.bind(i(r)),abortMultipartUpload:r.abortMultipartUpload.bind(i(r)),completeMultipartUpload:r.completeMultipartUpload.bind(i(r))};return r.opts=a({},o,n),r.upload=r.upload.bind(i(r)),r.requests=new g(r.opts.limit),r.uploaders=Object.create(null),r.uploaderEvents=Object.create(null),r.uploaderSockets=Object.create(null),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.resetUploaderReferences=function(e,t){void 0===t&&(t={}),this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)},o.assertHost=function(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address, or if you are not using Companion, a custom `"+e+"` implementation.")},o.createMultipartUpload=function(e){this.assertHost("createMultipartUpload");var t={};return Object.keys(e.meta).map(function(n){null!=e.meta[n]&&(t[n]=e.meta[n].toString())}),this.client.post("s3/multipart",{filename:e.name,type:e.type,metadata:t}).then(y)},o.listParts=function(e,t){var n=t.key,r=t.uploadId;this.assertHost("listParts");var o=encodeURIComponent(n);return this.client.get("s3/multipart/"+r+"?key="+o).then(y)},o.prepareUploadPart=function(e,t){var n=t.key,r=t.uploadId,o=t.number;this.assertHost("prepareUploadPart");var i=encodeURIComponent(n);return this.client.get("s3/multipart/"+r+"/"+o+"?key="+i).then(y)},o.completeMultipartUpload=function(e,t){var n=t.key,r=t.uploadId,o=t.parts;this.assertHost("completeMultipartUpload");var i=encodeURIComponent(n),s=encodeURIComponent(r);return this.client.post("s3/multipart/"+s+"/complete?key="+i,{parts:o}).then(y)},o.abortMultipartUpload=function(e,t){var n=t.key,r=t.uploadId;this.assertHost("abortMultipartUpload");var o=encodeURIComponent(n),i=encodeURIComponent(r);return this.client.delete("s3/multipart/"+i+"?key="+o).then(y)},o.uploadFile=function(e){var t=this;return new Promise(function(n,r){var o=new v(e.data,a({createMultipartUpload:t.opts.createMultipartUpload.bind(t,e),listParts:t.opts.listParts.bind(t,e),prepareUploadPart:t.opts.prepareUploadPart.bind(t,e),completeMultipartUpload:t.opts.completeMultipartUpload.bind(t,e),abortMultipartUpload:t.opts.abortMultipartUpload.bind(t,e),getChunkSize:t.opts.getChunkSize?t.opts.getChunkSize.bind(t):null,onStart:function(n){var r=t.uppy.getFile(e.id);t.uppy.setFileState(e.id,{s3Multipart:a({},r.s3Multipart,{key:n.key,uploadId:n.uploadId})})},onProgress:function(n,r){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:n,bytesTotal:r})},onError:function(n){t.uppy.log(n),t.uppy.emit("upload-error",e,n),i.done(),t.resetUploaderReferences(e.id),r(n)},onSuccess:function(r){var s={body:a({},r),uploadURL:r.location};i.done(),t.resetUploaderReferences(e.id);var l=t.uppy.getFile(e.id);t.uppy.emit("upload-success",l||e,s),r.location&&t.uppy.log("Download "+o.file.name+" from "+r.location),n(o)},onPartComplete:function(n){var r=t.uppy.getFile(e.id);r&&t.uppy.emit("s3-multipart:part-uploaded",r,n)},limit:t.opts.limit||5,retryDelays:t.opts.retryDelays||[]},e.s3Multipart));t.uploaders[e.id]=o,t.uploaderEvents[e.id]=new h(t.uppy);var i=t.requests.run(function(){return e.isPaused||o.start(),function(){}});t.onFileRemove(e.id,function(r){i.abort(),t.resetUploaderReferences(e.id,{abort:!0}),n("upload "+r.id+" was removed")}),t.onCancelAll(e.id,function(){i.abort(),t.resetUploaderReferences(e.id,{abort:!0}),n("upload "+e.id+" was canceled")}),t.onFilePause(e.id,function(e){e?(i.abort(),o.pause()):(i.abort(),i=t.requests.run(function(){return o.start(),function(){}}))}),t.onPauseAll(e.id,function(){i.abort(),o.pause()}),t.onResumeAll(e.id,function(){i.abort(),e.error&&o.abort(),i=t.requests.run(function(){return o.start(),function(){}})}),e.progress.uploadStarted&&e.isRestored||t.uppy.emit("upload-started",e)})},o.uploadRemote=function(e){var t=this;return this.resetUploaderReferences(e.id),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e),e.serverToken?this.connectToServerSocket(e):new Promise(function(n,r){new(e.remote.providerOptions.provider?p:d)(t.uppy,e.remote.providerOptions).post(e.remote.url,a({},e.remote.body,{protocol:"s3-multipart",size:e.data.size,metadata:e.meta})).then(function(n){return t.uppy.setFileState(e.id,{serverToken:n.token}),e=t.uppy.getFile(e.id)}).then(function(e){return t.connectToServerSocket(e)}).then(function(){n()}).catch(function(n){t.uppy.emit("upload-error",e,n),r(n)})})},o.connectToServerSocket=function(e){var t=this;return new Promise(function(n,r){var o=e.serverToken,i=m(e.remote.companionUrl),s=new c({target:i+"/api/"+o,autoOpen:!1});t.uploaderSockets[e.id]=s,t.uploaderEvents[e.id]=new h(t.uppy),t.onFileRemove(e.id,function(r){a.abort(),s.send("pause",{}),t.resetUploaderReferences(e.id,{abort:!0}),n("upload "+e.id+" was removed")}),t.onFilePause(e.id,function(e){e?(a.abort(),s.send("pause",{})):(a.abort(),a=t.requests.run(function(){return s.send("resume",{}),function(){}}))}),t.onPauseAll(e.id,function(){a.abort(),s.send("pause",{})}),t.onCancelAll(e.id,function(){a.abort(),s.send("pause",{}),t.resetUploaderReferences(e.id),n("upload "+e.id+" was canceled")}),t.onResumeAll(e.id,function(){a.abort(),e.error&&s.send("pause",{}),a=t.requests.run(function(){s.send("resume",{})})}),t.onRetry(e.id,function(){s.isOpen&&(s.send("pause",{}),s.send("resume",{}))}),t.onRetryAll(e.id,function(){s.isOpen&&(s.send("pause",{}),s.send("resume",{}))}),s.on("progress",function(n){return f(t,n,e)}),s.on("error",function(n){t.uppy.emit("upload-error",e,new Error(n.error)),t.resetUploaderReferences(e.id),a.done(),r(new Error(n.error))}),s.on("success",function(r){var o={uploadURL:r.url};t.uppy.emit("upload-success",e,o),t.resetUploaderReferences(e.id),a.done(),n()});
2var a=t.requests.run(function(){return s.open(),e.isPaused&&s.send("pause",{}),function(){}})})},o.upload=function(e){var t=this;if(0===e.length)return Promise.resolve();var n=e.map(function(e){var n=t.uppy.getFile(e);return n.isRemote?t.uploadRemote(n):t.uploadFile(n)});return Promise.all(n)},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",function(n){e===n.id&&t(n.id)})},o.onFilePause=function(e,t){this.uploaderEvents[e].on("upload-pause",function(n,r){e===n&&t(r)})},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(n){e===n&&t()})},o.onRetryAll=function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",function(r){n.uppy.getFile(e)&&t()})},o.onPauseAll=function(e,t){var n=this;this.uploaderEvents[e].on("pause-all",function(){n.uppy.getFile(e)&&t()})},o.onCancelAll=function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t()})},o.onResumeAll=function(e,t){var n=this;this.uploaderEvents[e].on("resume-all",function(){n.uppy.getFile(e)&&t()})},o.install=function(){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:a({},e,{resumableUploads:!0})}),this.uppy.addUploader(this.upload)},o.uninstall=function(){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:a({},e,{resumableUploads:!1})}),this.uppy.removeUploader(this.upload)},r}(l),r.VERSION="1.8.18",o)},2666:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(37584),i=n(88788),s=i.Provider,a=i.RequestClient,l=i.Socket,u=n(98018),c=n(91664),p=n(77031),d=n(69109),h=n(48123),f=n(33411);function m(e,t){return t||(t=new Error("Upload error")),"string"==typeof t&&(t=new Error(t)),t instanceof Error||(t=r(new Error("Upload error"),{data:t})),f(e)?t=new h(t,e):(t.request=e,t)}e.exports=function(){function e(e,t){this.uppy=e,this.opts=r({validateStatus:function(e,t,n){return e>=200&&e<300}},t),this.requests=t.__queue,this.uploaderEvents=Object.create(null),this.i18n=t.i18n}var t=e.prototype;return t._getOptions=function(e){var t=this.uppy.getState().xhrUpload,n=r({},this.opts,t||{},e.xhrUpload||{},{headers:{}});return r(n.headers,this.opts.headers),t&&r(n.headers,t.headers),e.xhrUpload&&r(n.headers,e.xhrUpload.headers),n},t.uploadFile=function(e,t,n){var r=this.uppy.getFile(e);if(r.error)throw new Error(r.error);return r.isRemote?this._uploadRemoteFile(r,t,n):this._uploadLocalFile(r,t,n)},t._addMetadata=function(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(function(n){e.append(n,t[n])})},t._createFormDataUpload=function(e,t){var n=new FormData;this._addMetadata(n,e.meta,t);var r=function(e){return e.data.slice(0,e.data.size,e.meta.type)}(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n},t._createBareUpload=function(e,t){return e.data},t._onFileRemoved=function(e,t){this.uploaderEvents[e].on("file-removed",function(n){e===n.id&&t(n.id)})},t._onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(n){e===n&&t()})},t._onRetryAll=function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",function(r){n.uppy.getFile(e)&&t()})},t._onCancelAll=function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t()})},t._uploadLocalFile=function(e,t,n){var r=this,i=this._getOptions(e);
2return this.uppy.log("uploading "+t+" of "+n),new Promise(function(t,n){var s=i.formData?r._createFormDataUpload(e,i):r._createBareUpload(e,i),a=new XMLHttpRequest;r.uploaderEvents[e.id]=new p(r.uppy);var l=new d(i.timeout,function(){a.abort(),c.done();var t=new Error(r.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));r.uppy.emit("upload-error",e,t),n(t)}),u=o();a.upload.addEventListener("loadstart",function(e){r.uppy.log("[AwsS3/XHRUpload] "+u+" started")}),a.upload.addEventListener("progress",function(t){r.uppy.log("[AwsS3/XHRUpload] "+u+" progress: "+t.loaded+" / "+t.total),l.progress(),t.lengthComputable&&r.uppy.emit("upload-progress",e,{uploader:r,bytesUploaded:t.loaded,bytesTotal:t.total})}),a.addEventListener("load",function(o){if(r.uppy.log("[AwsS3/XHRUpload] "+u+" finished"),l.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),i.validateStatus(o.target.status,a.responseText,a)){var s=i.getResponseData(a.responseText,a),p=s[i.responseUrlFieldName],d={status:o.target.status,body:s,uploadURL:p};return r.uppy.emit("upload-success",e,d),p&&r.uppy.log("Download "+e.name+" from "+p),t(e)}var h=i.getResponseData(a.responseText,a),f=m(a,i.getResponseError(a.responseText,a)),g={status:o.target.status,body:h};return r.uppy.emit("upload-error",e,f,g),n(f)}),a.addEventListener("error",function(t){r.uppy.log("[AwsS3/XHRUpload] "+u+" errored"),l.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null);var o=m(a,i.getResponseError(a.responseText,a));return r.uppy.emit("upload-error",e,o),n(o)}),a.open(i.method.toUpperCase(),i.endpoint,!0),a.withCredentials=i.withCredentials,""!==i.responseType&&(a.responseType=i.responseType),Object.keys(i.headers).forEach(function(e){a.setRequestHeader(e,i.headers[e])});var c=r.requests.run(function(){return a.send(s),function(){l.done(),a.abort()}},{priority:1});r._onFileRemoved(e.id,function(){c.abort(),n(new Error("File removed"))}),r._onCancelAll(e.id,function(){c.abort(),n(new Error("Upload cancelled"))})})},t._uploadRemoteFile=function(e,t,n){var o=this,i=this._getOptions(e);return new Promise(function(t,n){var d={};(Array.isArray(i.metaFields)?i.metaFields:Object.keys(e.meta)).forEach(function(t){d[t]=e.meta[t]}),new(e.remote.providerOptions.provider?s:a)(o.uppy,e.remote.providerOptions).post(e.remote.url,r({},e.remote.body,{endpoint:i.endpoint,size:e.data.size,fieldname:i.fieldName,metadata:d,httpMethod:i.method,useFormData:i.formData,headers:i.headers})).then(function(s){var a=s.token,d=c(e.remote.companionUrl),h=new l({target:d+"/api/"+a,autoOpen:!1});o.uploaderEvents[e.id]=new p(o.uppy),o._onFileRemoved(e.id,function(){h.send("pause",{}),f.abort(),t("upload "+e.id+" was removed")}),o._onCancelAll(e.id,function(){h.send("pause",{}),f.abort(),t("upload "+e.id+" was canceled")}),o._onRetry(e.id,function(){h.send("pause",{}),h.send("resume",{})}),o._onRetryAll(e.id,function(){h.send("pause",{}),h.send("resume",{})}),h.on("progress",function(t){return u(o,t,e)}),h.on("success",function(n){var r=i.getResponseData(n.response.responseText,n.response),s=r[i.responseUrlFieldName],a={status:n.response.status,body:r,uploadURL:s,bytesUploaded:n.bytesUploaded};return o.uppy.emit("upload-success",e,a),f.done(),o.uploaderEvents[e.id]&&(o.uploaderEvents[e.id].remove(),o.uploaderEvents[e.id]=null),t()}),h.on("error",function(t){var s=t.response,a=s?i.getResponseError(s.responseText,s):r(new Error(t.error.message),{cause:t.error});o.uppy.emit("upload-error",e,a),f.done(),o.uploaderEvents[e.id]&&(o.uploaderEvents[e.id].remove(),o.uploaderEvents[e.id]=null),n(a)});
2var f=o.requests.run(function(){return h.open(),e.isPaused&&h.send("pause",{}),function(){return h.close()}})}).catch(function(t){o.uppy.emit("upload-error",e,t),n(t)})})},e}()},99584:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var l="function"==typeof URL?URL:n(61160),u=n(57097).Plugin,c=n(75221),p=n(60368),d=n(35384),h=n(2550),f=n(88788).RequestClient,m=n(55833),g=n(2666),v=n(58153);function y(e,t){var n=e.indexOf("<"+t+">"),r=e.indexOf("</"+t+">",n);return-1!==n&&-1!==r?e.slice(n+t.length+2,r):""}function b(e){if(e&&e.error){var t=new Error(e.message);throw a(t,e.error),t}return e}var w=!1;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"AwsS3",r.title="AWS S3",r.defaultLocale={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};var o={timeout:3e4,limit:0,metaFields:[],getUploadParameters:r.getUploadParameters.bind(i(r))};return r.opts=a({},o,n),r.i18nInit(),r.client=new f(t,n),r.handleUpload=r.handleUpload.bind(i(r)),r.requests=new p(r.opts.limit),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new c([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},o.getUploadParameters=function(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");var t=e.meta.name,n=e.meta.type,r={};this.opts.metaFields.forEach(function(t){null!=e.meta[t]&&(r[t]=e.meta[t].toString())});var o=m({filename:t,type:n,metadata:r});return this.client.get("s3/params?"+o).then(b)},o.validateParameters=function(e,t){if(!("object"==typeof t&&t&&"string"==typeof t.url&&("object"==typeof t.fields||null==t.fields))){var n=new TypeError("AwsS3: got incorrect result from 'getUploadParameters()' for file '"+e.name+"', expected an object '{ url, method, fields, headers }' but got '"+JSON.stringify(t)+"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.");throw console.error(n),n}if(!(null==t.method||/^(put|post)$/i.test(t.method))){var r=new TypeError("AwsS3: got incorrect method from 'getUploadParameters()' for file '"+e.name+"', expected  'put' or 'post' but got '"+t.method+"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.");throw console.error(r),r}},o.handleUpload=function(e){var t=this,n=Object.create(null);function r(e){var t=e.id;h(n,t)&&n[t].abort()}this.uppy.on("file-removed",r),e.forEach(function(e){var n=t.uppy.getFile(e);t.uppy.emit("upload-started",n)});var o=this.requests.wrapPromiseFunction(function(e){return t.opts.getUploadParameters(e)}),i=e.length;return d(e.map(function(e,r){return n[e]=o(t.uppy.getFile(e)),n[e].then(function(o){delete n[e];var s=t.uppy.getFile(e);t.validateParameters(s,o);var l=o.method,u=void 0===l?"post":l,c=o.url,p=o.fields,d=o.headers,h={method:u,formData:"post"===u.toLowerCase(),endpoint:c,metaFields:p?Object.keys(p):[]};return d&&(h.headers=d),t.uppy.setFileState(s.id,{meta:a({},s.meta,p),xhrUpload:h}),t._uploader.uploadFile(s.id,r,i)}).catch(function(r){delete n[e];var o=t.uppy.getFile(e);t.uppy.emit("upload-error",o,r)})})).then(function(e){return t.uppy.off("file-removed",r),e})},o.install=function(){var e=this.uppy;this.uppy.addUploader(this.handleUpload);var t={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout,__queue:this.requests,responseType:"text",getResponseData:this.opts.getResponseData||function(t,n){var r,o;return v(t,n)?{location:(r=n.responseURL,o=y(t,"Location"),r?new l(o,r).toString():new l(o).toString()),bucket:y(t,"Bucket"),key:y(t,"Key"),etag:y(t,"ETag")}:"POST"===this.method.toUpperCase()?(w||(e.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),w=!0),{location:null}):n.responseURL?{location:n.responseURL.replace(/\?.*$/,"")}:{location:null}},getResponseError:function(e,t){if(v(e,t)){var n=y(e,"Message");return new Error(n)}}};t.i18n=this.i18n,this._uploader=new g(this.uppy,t)}
2,o.uninstall=function(){this.uppy.removeUploader(this.handleUpload)},r}(u),r.VERSION="1.8.0",o)},58153:function(e){e.exports=function(e,t){var n,r=t.headers?t.headers["content-type"]:t.getResponseHeader("Content-Type");if("string"==typeof r){var o=(n=r,n.replace(/;.*$/,"")).toLowerCase();if("application/xml"===o||"text/xml"===o)return!0;if("text/html"===o&&/^<\?xml /.test(e))return!0}return!1}},48992:function(e){"use strict";function t(e){var i="function"==typeof Map?new Map:void 0;return t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,s)}function s(){return n(e,arguments,o(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r(s,e)},t(e)}function n(e,t,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},n.apply(null,arguments)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var i=function(e){var t,n;function o(){var t;return(t=e.call(this,"Authorization required")||this).name="AuthError",t.isAuthError=!0,t}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(t(Error));e.exports=i},61111:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(55833),s=n(61160),a=n(68078),l=n(14280);e.exports=function(e){var t,n;function a(t,n){var r;return(r=e.call(this,t,n)||this).provider=n.provider,r.id=r.provider,r.name=r.opts.name||r.id.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "),r.pluginId=r.opts.pluginId,r.tokenKey="companion-"+r.pluginId+"-auth-token",r.companionKeysParams=r.opts.companionKeysParams,r.preAuthToken=null,r}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var u=a.prototype;return u.headers=function(){var t=this;return Promise.all([e.prototype.headers.call(this),this.getAuthToken()]).then(function(e){var n=e[0],o=e[1],i={};return o&&(i["uppy-auth-token"]=o),t.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:t.companionKeysParams}))),r({},n,i)})},u.onReceiveResponse=function(t){t=e.prototype.onReceiveResponse.call(this,t);var n=this.uppy.getPlugin(this.pluginId),r=n.getPluginState().authenticated?401!==t.status:t.status<400;return n.setPluginState({authenticated:r}),t}
2,u.setAuthToken=function(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)},u.getAuthToken=function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)},u.authUrl=function(e){void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken);var t=i(e);return t=t?"?"+t:t,this.hostname+"/"+this.id+"/connect"+t},u.fileUrl=function(e){return this.hostname+"/"+this.id+"/get/"+e},u.fetchPreAuthToken=function(){var e=this;return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(function(t){e.preAuthToken=t.token}).catch(function(t){e.uppy.log("[CompanionClient] unable to fetch preAuthToken "+t,"warning")}):Promise.resolve()},u.list=function(e){return this.get(this.id+"/list/"+(e||""))},u.logout=function(){var e=this;return this.get(this.id+"/logout").then(function(t){return Promise.all([t,e.uppy.getPlugin(e.pluginId).storage.removeItem(e.tokenKey)])}).then(function(e){return e[0]})},a.initPlugin=function(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts=r({},n,t)),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){var o=t.companionAllowedHosts;if(!("string"==typeof o||Array.isArray(o)||o instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=o}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new s(t.companionUrl).origin;e.storage=e.opts.storage||l},a}(a)},68078:function(e,t,n){"use strict";var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(48992),l=n(65307);e.exports=(o=r=function(){function e(e,t){this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}var t,n,r,o=e.prototype;return o.headers=function(){var e=this.opts.companionHeaders||this.opts.serverHeaders||{};return Promise.resolve(i({},this.defaultHeaders,e))},o._getPostResponseFunc=function(e){var t=this;return function(n){return e?n:t.onReceiveResponse(n)}},o.onReceiveResponse=function(e){var t,n=this.uppy.getState().companion||{},r=this.opts.companionUrl,o=e.headers;o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:i({},n,(t={},t[r]=o.get("i-am"),t))});return e},o._getUrl=function(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e},o._json=function(e){if(401===e.status)throw new a;if(e.status<200||e.status>300){var t="Failed request with status: "+e.status+". "+e.statusText;return e.json().then(function(e){throw t=e.message?t+" message: "+e.message:t,t=e.requestId?t+" request-Id: "+e.requestId:t,new Error(t)}).catch(function(){throw new Error(t)})}return e.json()},o.preflight=function(e){var t=this;return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(this._getUrl(e),{method:"OPTIONS"}).then(function(e){return e.headers.has("access-control-allow-headers")&&(t.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(function(e){return e.trim().toLowerCase()})),t.preflightDone=!0,t.allowedHeaders.slice()}).catch(function(e){return t.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),t.preflightDone=!0,t.allowedHeaders.slice()})},o.preflightAndHeaders=function(e){var t=this;return Promise.all([this.preflight(e),this.headers()]).then(function(e){var n=e[0],r=e[1];return Object.keys(r).forEach(function(e){-1===n.indexOf(e.toLowerCase())&&(t.uppy.log("[CompanionCl
2ient] excluding unallowed header "+e),delete r[e])}),r})},o.get=function(e,t){var n=this;return this.preflightAndHeaders(e).then(function(t){return l(n._getUrl(e),{method:"get",headers:t,credentials:n.opts.companionCookiesRule||"same-origin"})}).then(this._getPostResponseFunc(t)).then(function(e){return n._json(e)}).catch(function(t){return t.isAuthError||(t.message="Could not get "+n._getUrl(e)+". "+t.message),Promise.reject(t)})},o.post=function(e,t,n){var r=this;return this.preflightAndHeaders(e).then(function(n){return l(r._getUrl(e),{method:"post",headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})}).then(this._getPostResponseFunc(n)).then(function(e){return r._json(e)}).catch(function(t){return t.isAuthError||(t.message="Could not post "+r._getUrl(e)+". "+t.message),Promise.reject(t)})},o.delete=function(e,t,n){var r=this;return this.preflightAndHeaders(e).then(function(n){return l(r.hostname+"/"+e,{method:"delete",headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})}).then(this._getPostResponseFunc(n)).then(function(e){return r._json(e)}).catch(function(t){return t.isAuthError||(t.message="Could not delete "+r._getUrl(e)+". "+t.message),Promise.reject(t)})},t=e,(n=[{key:"hostname",get:function(){var e=this.uppy.getState().companion,t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}},{key:"defaultHeaders",get:function(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+e.VERSION}}}])&&s(t.prototype,n),r&&s(t,r),e}(),r.VERSION="1.10.2",o)},45027:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(68078);e.exports=function(e){var t,n;function o(t,n){var r;return(r=e.call(this,t,n)||this).provider=n.provider,r.id=r.provider,r.name=r.opts.name||r.id.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "),r.pluginId=r.opts.pluginId,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.fileUrl=function(e){return this.hostname+"/search/"+this.id+"/get/"+e},i.search=function(e,t){return t=t?"&"+t:"",this.get("search/"+this.id+"/list?q="+encodeURIComponent(e)+t)},o}(o)},83207:function(e,t,n){var r=n(33835);e.exports=function(){function e(e){this.opts=e,this._queued=[],this.isOpen=!1,this.emitter=r(),this._handleMessage=this._handleMessage.bind(this),this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this),e&&!1===e.autoOpen||this.open()}var t=e.prototype;return t.open=function(){var e=this;this.socket=new WebSocket(this.opts.target),this.socket.onopen=function(t){for(e.isOpen=!0;e._queued.length>0&&e.isOpen;){var n=e._queued[0];e.send(n.action,n.payload),e._queued=e._queued.slice(1)}},this.socket.onclose=function(t){e.isOpen=!1},this.socket.onmessage=this._handleMessage},t.close=function(){this.socket&&this.socket.close()},t.send=function(e,t){this.isOpen?this.socket.send(JSON.stringify({action:e,payload:t})):this._queued.push({action:e,payload:t})},t.on=function(e,t){this.emitter.on(e,t)},t.emit=function(e,t){this.emitter.emit(e,t)},t.once=function(e,t){this.emitter.once(e,t)},t._handleMessage=function(e){try{var t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}},e}()},88788:function(e,t,n){"use strict";var r=n(68078),o=n(61111),i=n(45027),s=n(83207);e.exports={RequestClient:r,Provider:o,SearchProvider:i,Socket:s}},14280:function(e){"use strict";e.exports.setItem=function(e,t){return new Promise(function(n){localStorage.setItem(e,t),n()})},e.exports.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},e.exports.removeItem=function(e){return new Promise(function(t){localStorage.removeItem(e),t()})}},92630:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(95237),i=n(77540);
2e.exports=function(){function e(e,t){this.uppy=e,this.opts=t||{},this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.install=this.install.bind(this),this.uninstall=this.uninstall.bind(this)}var t=e.prototype;return t.getPluginState=function(){return this.uppy.getState().plugins[this.id]||{}},t.setPluginState=function(e){var t,n=this.uppy.getState().plugins;this.uppy.setState({plugins:r({},n,(t={},t[this.id]=r({},n[this.id],e),t))})},t.setOptions=function(e){this.opts=r({},this.opts,e),this.setPluginState()},t.update=function(e){void 0!==this.el&&this._updateUI&&this._updateUI(e)},t.afterUpdate=function(){},t.onMount=function(){},t.mount=function(t,n){var r,s,a,l,u=this,c=n.id,p=i(t);if(p)return this.isTargetDOMEl=!0,this.rerender=function(e){u.uppy.getPlugin(u.id)&&(u.el=o.render(u.render(e),p,u.el),u.afterUpdate())},this._updateUI=(r=this.rerender,s=null,a=null,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a=t,s||(s=Promise.resolve().then(function(){return s=null,r.apply(void 0,a)})),s}),this.uppy.log("Installing "+c+" to a DOM element '"+t+"'"),this.opts.replaceTargetContent&&(p.innerHTML=""),this.el=o.render(this.render(this.uppy.getState()),p),this.onMount(),this.el;if("object"==typeof t&&t instanceof e)l=t;else if("function"==typeof t){var d=t;this.uppy.iteratePlugins(function(e){if(e instanceof d)return l=e,!1})}
2if(l)return this.uppy.log("Installing "+c+" to "+l.id),this.parent=l,this.el=l.addTarget(n),this.onMount(),this.el;this.uppy.log("Not installing "+c);var h="Invalid target option given to "+c+".";throw h+="function"==typeof t?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(h)},t.render=function(e){throw new Error("Extend the render method to add your plugin to a DOM element")},t.addTarget=function(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},t.unmount=function(){this.isTargetDOMEl&&this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},t.install=function(){},t.uninstall=function(){this.unmount()},e}()},57097:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},s(e)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o},a.apply(null,arguments)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var c=n(75221),p=n(33835),d=n(37584),h=n(25858),f=n(58236),m=n(37057),g=n(759),v=n(84905),y=n(29340),b=n(77383),w=n(6214),k=n(4803),S=n(4460),C=S.justErrorsLogger,P=S.debugLogger,E=n(92630),_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isRestriction=!0,t}return i(t,e),t}(s(Error));"undefined"==typeof AggregateError&&(AggregateError=function(e){function t(t,n){var r;return(r=e.call(this,t)||this).errors=n,r}return i(t,e),t}(s(Error)));var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isRestriction=!0,t}return i(t,e),t}(AggregateError),A=function(){function e(e){var t=this;this.defaultLocale={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",exceedsSize2:"%{backwardsCompat} %{size}",exceedsSize:"%{file} exceeds maximum allowed size of",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noNewAlreadyUploading:"Cannot add new files: already uploading",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},selectAllFilesFromFolderNamed:"Select all files from folder %{name}",unselectAllFilesFromFolderNamed:"Unselect all files from folder %{name}",selectFileNamed:"Select file %{name}",unselectFileNamed:"Unselect file %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:function(e){return e},onBeforeUpload:function(e){return e},store:g(),logger:C,infoTimeout:5e3};if(this.opts=r({},n,e,{restrictions:r({},n.restrictions,e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=P),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.plugins={}
2,this.getState=this.getState.bind(this),this.getPlugin=this.getPlugin.bind(this),this.setFileMeta=this.setFileMeta.bind(this),this.setFileState=this.setFileState.bind(this),this.log=this.log.bind(this),this.info=this.info.bind(this),this.hideInfo=this.hideInfo.bind(this),this.addFile=this.addFile.bind(this),this.removeFile=this.removeFile.bind(this),this.pauseResume=this.pauseResume.bind(this),this.validateRestrictions=this.validateRestrictions.bind(this),this.calculateProgress=h(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.updateOnlineStatus=this.updateOnlineStatus.bind(this),this.resetProgress=this.resetProgress.bind(this),this.pauseAll=this.pauseAll.bind(this),this.resumeAll=this.resumeAll.bind(this),this.retryAll=this.retryAll.bind(this),this.cancelAll=this.cancelAll.bind(this),this.retryUpload=this.retryUpload.bind(this),this.upload=this.upload.bind(this),this.emitter=p(),this.on=this.on.bind(this),this.off=this.off.bind(this),this.once=this.emitter.once.bind(this.emitter),this.emit=this.emitter.emit.bind(this.emitter),this.preProcessors=[],this.uploaders=[],this.postProcessors=[],this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:k(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:r({},this.opts.meta),info:{isHidden:!0,type:"info",message:""},recoveredState:null}),this.storeUnsubscribe=this.store.subscribe(function(e,n,r){t.emit("state-update",e,n,r),t.updateAll(n)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),this.addListeners()}var t,n,i,s=e.prototype;return s.on=function(e,t){return this.emitter.on(e,t),this},s.off=function(e,t){return this.emitter.off(e,t),this},s.updateAll=function(e){this.iteratePlugins(function(t){t.update(e)})},s.setState=function(e){this.store.setState(e)},s.getState=function(){return this.store.getState()},s.setFileState=function(e,t){var n;if(!this.getState().files[e])throw new Error("Can’t set state for "+e+" (the file could have been removed)");this.setState({files:r({},this.getState().files,(n={},n[e]=r({},this.getState().files[e],t),n))})},s.i18nInit=function(){this.translator=new c([this.defaultLocale,this.opts.locale]),this.locale=this.translator.locale,this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator)},s.setOptions=function(e){this.opts=r({},this.opts,e,{restrictions:r({},this.opts.restrictions,e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(function(e){e.setOptions()}),this.setState()},s.resetProgress=function(){var e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=r({},this.getState().files),n={};Object.keys(t).forEach(function(o){var i=r({},t[o]);i.progress=r({},i.progress,e),n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")},s.addPreProcessor=function(e){this.preProcessors.push(e)},s.removePreProcessor=function(e){var t=this.preProcessors.indexOf(e);-1!==t&&this.preProcessors.splice(t,1)},s.addPostProcessor=function(e){this.postProcessors.push(e)},s.removePostProcessor=function(e){var t=this.postProcessors.indexOf(e);-1!==t&&this.postProcessors.splice(t,1)},s.addUploader=function(e){this.uploaders.push(e)},s.removeUploader=function(e){var t=this.uploaders.indexOf(e);-1!==t&&this.uploaders.splice(t,1)},s.setMeta=function(e){var t=r({},this.getState().meta,e),n=r({},this.getState().files);Object.keys(n).forEach(function(t){n[t]=r({},n[t],{meta:r({},n[t].meta,e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})},s.setFileMeta=function(e,t){var n=r({},this.getState().files);if(n[e]){var o=r({},n[e].meta,t);n[e]=r({},n[e],{meta:o}),this.setState({files:n})}else this.log("Was trying to set metadata for a file that has been removed: ",e)},s.getFile=function(e){return this.getState().files[e]},s.getFiles=function(){var e=this.getState().files;return Object.keys(e).map(function(t){return e[t]})},s.validateRestrictions=function(e,t){try{return this.checkRestrictions(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}},s.checkRestrictions=function(e,t){void 0===t&&(t=this.getFiles());var n=this.opts.restrictions,r=n.maxFileSize,o=n.minFileSize,i=n.maxTotalFileSize,s=n.maxNumberOfFiles,a=n.allowedFileTypes;if(s&&t.length+1>s)throw new _(""+this.i18n("youCanOnlyUploadX",{smart_count:s}));if(a&&!a.some(function(t){return t.indexOf("/")>-1?!!e.type&&m(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()})){var l=a.join(", ");throw new _(this.i18n("youCanOnlyUploadFileTypes",{types:l}))}if(i&&null!=e.size){var u=0;if(u+=e.size,t.forEach(function(e){u+=e.size}),u>i)throw new _(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:f(i),file:e.n
2ame}))}if(r&&null!=e.size&&e.size>r)throw new _(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:f(r),file:e.name}));if(o&&null!=e.size&&e.size<o)throw new _(this.i18n("inferiorSize",{size:f(o)}))},s.checkMinNumberOfFiles=function(e){var t=this.opts.restrictions.minNumberOfFiles;if(Object.keys(e).length<t)throw new _(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))},s.checkRequiredMetaFields=function(e){for(var t=this.opts.restrictions.requiredMetaFields,n=Object.prototype.hasOwnProperty,r=[],o=Object.keys(e),i=0;i<o.length;i++)for(var s=this.getFile(o[i]),a=0;a<t.length;a++)if(!n.call(s.meta,t[a])||""===s.meta[t[a]]){var l=new _(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:s.name}));r.push(l),this.showOrLogErrorAndThrow(l,{file:s,throwErr:!1})}if(r.length)throw new x(""+this.i18n("missingRequiredMetaField"),r)},s.showOrLogErrorAndThrow=function(e,t){var n=void 0===t?{}:t,r=n.showInformer,o=void 0===r||r,i=n.file,s=void 0===i?null:i,a=n.throwErr,l=void 0===a||a,u="object"==typeof e?e.message:e,c="object"==typeof e&&e.details?e.details:"",p=u;if(c&&(p+=" "+c),e.isRestriction?(this.log(p),this.emit("restriction-failed",s,e)):this.log(p,"error"),o&&this.info({message:u,details:c},"error",this.opts.infoTimeout),l)throw"object"==typeof e?e:new Error(e)},s.assertNewUploadAllowed=function(e){!1===this.getState().allowNewUpload&&this.showOrLogErrorAndThrow(new _(this.i18n("noNewAlreadyUploading")),{file:e})},s.checkAndCreateFileStateObject=function(e,t){var n=v(t),o=t;o.type=n;var i,s=this.opts.onBeforeFileAdded(o,e);!1===s&&this.showOrLogErrorAndThrow(new _("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,file:o}),"object"==typeof s&&s&&(o=s),i=o.name?o.name:"image"===n.split("/")[0]?n.split("/")[0]+"."+n.split("/")[1]:"noname";var a=y(i).extension,l=o.isRemote||!1,u=b(o);e[u]&&!e[u].isGhost&&this.showOrLogErrorAndThrow(new _(this.i18n("noDuplicates",{fileName:i})),{file:o});var c=o.meta||{};c.name=i,c.type=n;var p=isFinite(o.data.size)?o.data.size:null,d={source:o.source||"",id:u,name:i,extension:a||"",meta:r({},this.getState().meta,c),type:n,data:o.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:p,uploadComplete:!1,uploadStarted:null},size:p,isRemote:l,remote:o.remote||"",preview:o.preview};try{var h=Object.keys(e).map(function(t){return e[t]});this.checkRestrictions(d,h)}catch(e){this.showOrLogErrorAndThrow(e,{file:d})}return d},s.startIfAutoProceed=function(){var e=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){e.scheduledAutoProceed=null,e.upload().catch(function(t){t.isRestriction||e.log(t.stack||t.message||t)})},4))},s.addFile=function(e){var t;this.assertNewUploadAllowed(e);var n=this.getState().files,o=this.checkAndCreateFileStateObject(n,e);return n[o.id]&&n[o.id].isGhost&&(o=r({},n[o.id],{data:e.data,isGhost:!1}),this.log("Replaced the blob in the restored ghost file: "+o.name+", "+o.id)),this.setState({files:r({},n,(t={},t[o.id]=o,t))}),this.emit("file-added",o),this.emit("files-added",[o]),this.log("Added file: "+o.name+", "+o.id+", mime type: "+o.type),this.startIfAutoProceed(),o.id},s.addFiles=function(e){var t=this;this.assertNewUploadAllowed();for(var n=r({},this.getState().files),o=[],i=[],s=0;s<e.length;s++)try{var a=this.checkAndCreateFileStateObject(n,e[s]);n[a.id]&&n[a.id].isGhost&&(a=r({},n[a.id],{data:e[s].data,isGhost:!1}),this.log("Replaced blob in a ghost file: "+a.name+", "+a.id)),n[a.id]=a,o.push(a)}catch(u){u.isRestriction||i.push(u)}if(this.setState({files:n}),o.forEach(function(e){t.emit("file-added",e)}),this.emit("files-added",o),o.length>5?this.log("Added batch of "+o.length+" files"):Object.keys(o).forEach(function(e){t.log("Added file: "+o[e].name+"\n id: "+o[e].id+"\n type: "+o[e].type)}),o.length>0&&this.startIfAutoProceed(),i.length>0){var l="Multiple errors occurred while adding files:\n";if(i.forEach(function(e){l+="\n * "+e.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:l},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,l);var u=new Error(l);throw u.errors=i,u}},s.removeFiles=function(e,t){var n=this,o=this.getState(),i=o.files,s=o.currentUploads,a=r({},i),l=r({},s),u=Object.create(null);function c(e){return void 0===u[e]}e.forEach(function(e){i[e]&&(u[e]=i[e],delete a[e])}),Object.keys(l).forEach(function(e){var t=s[e].fileIDs.filter(c);0!==t.length?l[e]=r({},s[e],{fileIDs:t}):delete l[e]});var p={currentUploads:l,files:a};0===Object.keys(a).length&&(p.allowNewUpload=!0,p.error=null,p.recoveredState=null),this.setState(p),this.calculateTotalProgress();var d=Object.keys(u);d.forEach(function(e){n.emit("file-removed",u[e],t)}),d.length>5?this.log("Removed "+d.length+" files"):this.log("Removed files: "+d.join(", "))},s.removeFile=function(e,t){void 0===t&&(t=null),this.removeFiles([e],t)},s.pauseResume=function(e){if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete){var t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}
2),this.emit("upload-pause",e,t),t}},s.pauseAll=function(){var e=r({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var n=r({},e[t],{isPaused:!0});e[t]=n}),this.setState({files:e}),this.emit("pause-all")},s.resumeAll=function(){var e=r({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var n=r({},e[t],{isPaused:!1,error:null});e[t]=n}),this.setState({files:e}),this.emit("resume-all")},s.retryAll=function(){var e=r({},this.getState().files),t=Object.keys(e).filter(function(t){return e[t].error});if(t.forEach(function(t){var n=r({},e[t],{isPaused:!1,error:null});e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});var n=this.createUpload(t,{forceAllowNewUpload:!0});return this.runUpload(n)},s.cancelAll=function(){this.emit("cancel-all");var e=this.getState().files,t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})},s.retryUpload=function(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);var t=this.createUpload([e],{forceAllowNewUpload:!0});return this.runUpload(t)},s.reset=function(){this.cancelAll()},s.logout=function(){this.iteratePlugins(function(e){e.provider&&e.provider.logout&&e.provider.logout()})},s.calculateProgress=function(e,t){if(this.getFile(e.id)){var n=isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:r({},this.getFile(e.id).progress,{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: "+e.id)},s.calculateTotalProgress=function(){var e=this.getFiles().filter(function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess});if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});var t=e.filter(function(e){return null!=e.progress.bytesTotal}),n=e.filter(function(e){return null==e.progress.bytesTotal});if(0!==t.length){var r=t.reduce(function(e,t){return e+t.progress.bytesTotal},0),o=r/t.length;r+=o*n.length;var i=0;t.forEach(function(e){i+=e.progress.bytesUploaded}),n.forEach(function(e){i+=o*(e.progress.percentage||0)/100});var s=0===r?0:Math.round(i/r*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}else{var a=100*e.length,l=n.reduce(function(e,t){return e+t.progress.percentage},0),u=Math.round(l/a*100);this.setState({totalProgress:u})}},s.addListeners=function(){var e=this,t=function(t,n,r){var o=t.message||"Unknown error";t.details&&(o+=" "+t.details),e.setState({error:o}),null!=n&&"string"==typeof n.id&&e.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",function(n,r,o){if(t(r,n,o),"object"==typeof r&&r.message){var i=new Error(r.message);i.details=r.message,r.details&&(i.details+=" "+r.details),i.message=e.i18n("failedToUpload",{file:n.name}),e.showOrLogErrorAndThrow(i,{throwErr:!1})}else e.showOrLogErrorAndThrow(r,{throwErr:!1})}),this.on("upload",function(){e.setState({error:null})}),this.on("upload-started",function(t){e.getFile(t.id)?e.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",function(t,n){if(e.getFile(t.id)){var o=e.getFile(t.id).progress;e.setFileState(t.id,{progress:r({},o,{postprocess:e.postProcessors.length>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:o.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),null==t.size&&e.setFileState(t.id,{size:n.bytesUploaded||o.bytesTotal}),e.calculateTotalProgress()}else e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("preprocess-progress",function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:r({},e.getFile(t.id).progress,{preprocess:n})}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("preprocess-complete",function(t){if(e.getFile(t.id)){var n=r({},e.getState().files);n[t.id]=r({},n[t.id],{progress:r({},n[t.id].progress)}),delete n[t.id].progress.preprocess,e.setState({files:n}
2)}else e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("postprocess-progress",function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:r({},e.getState().files[t.id].progress,{postprocess:n})}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("postprocess-complete",function(t){if(e.getFile(t.id)){var n=r({},e.getState().files);n[t.id]=r({},n[t.id],{progress:r({},n[t.id].progress)}),delete n[t.id].progress.postprocess,e.setState({files:n})}else e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("restored",function(){e.calculateTotalProgress()}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",function(){return e.updateOnlineStatus()}),window.addEventListener("offline",function(){return e.updateOnlineStatus()}),setTimeout(function(){return e.updateOnlineStatus()},3e3))},s.updateOnlineStatus=function(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit
2("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},s.getID=function(){return this.opts.id},s.use=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a plugin class, but got "+(null===e?"null":typeof e)+". Please verify that the plugin was imported and spelled correctly.");var n=new e(this,t),r=n.id;if(this.plugins[n.type]=this.plugins[n.type]||[],!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");var o=this.getPlugin(r);if(o){var i="Already found a plugin named '"+o.id+"'. Tried to use: '"+r+"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(i)}return e.VERSION&&this.log("Using "+r+" v"+e.VERSION),this.plugins[n.type].push(n),n.install(),this},s.getPlugin=function(e){var t=null;return this.iteratePlugins(function(n){if(n.id===e)return t=n,!1}),t},s.iteratePlugins=function(e){var t=this;Object.keys(this.plugins).forEach(function(n){t.plugins[n].forEach(e)})},s.removePlugin=function(e){var t;this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();var n=this.plugins[e.type].slice(),o=w(n,function(t){return t.id===e.id});-1!==o&&(n.splice(o,1),this.plugins[e.type]=n);var i={plugins:r({},this.getState().plugins,(t={},t[e.id]=void 0,t))};this.setState(i)},s.close=function(){var e=this;this.log("Closing Uppy instance "+this.opts.id+": removing all files and uninstalling plugins"),this.reset(),this.storeUnsubscribe(),this.iteratePlugins(function(t){e.removePlugin(t)})},s.info=function(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r="object"==typeof e;this.setState({info:{isHidden:!1,type:t,message:r?e.message:e,details:r?e.details:null}}),this.emit("info-visible"),clearTimeout(this.infoTimeoutID),this.infoTimeoutID=0!==n?setTimeout(this.hideInfo,n):void 0},s.hideInfo=function(){var e=r({},this.getState().info,{isHidden:!0});this.setState({info:e}),this.emit("info-hidden")},s.log=function(e,t){var n=this.opts.logger;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}},s.run=function(){return this.log("Calling run() is no longer necessary.","warning"),this},s.restore=function(e){return this.log('Core: attempting to restore upload "'+e+'"'),this.getState().currentUploads[e]?this.runUpload(e):(this.removeUpload(e),Promise.reject(new Error("Nonexistent upload")))},s.createUpload=function(e,t){var n;void 0===t&&(t={});var o=t.forceAllowNewUpload,i=void 0!==o&&o,s=this.getState(),a=s.allowNewUpload,l=s.currentUploads;if(!a&&!i)throw new Error("Cannot create a new upload: already uploading.");var u=d();return this.emit("upload",{id:u,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploads,currentUploads:r({},l,(n={},n[u]={fileIDs:e,step:0,result:{}},n))}),u},s.getUpload=function(e){return this.getState().currentUploads[e]},s.addResultData=function(e,t){var n;if(this.getUpload(e)){var o=this.getState().currentUploads,i=r({},o[e],{result:r({},o[e].result,t)});this.setState({currentUploads:r({},o,(n={},n[e]=i,n))})}else this.log("Not setting result for an upload that has been removed: "+e)},s.removeUpload=function(e){var t=r({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})},s.runUpload=function(e){var t=this,n=this.getState().currentUploads[e].step,o=[].concat(this.preProcessors,this.uploaders,this.postProcessors),i=Promise.resolve();return o.forEach(function(o,s){s<n||(i=i.then(function(){var n,i=t.getState().currentUploads,a=i[e];if(a){var l=r({},a,{step:s});return t.setState({currentUploads:r({},i,(n={},n[e]=l,n))}),o(l.fileIDs,e)}}).then(function(){return null}))}),i.catch(function(n){t.emit("error",n),t.removeUpload(e)}),i.then(function(){var n=t.getState().currentUploads[e];if(n){n.fileIDs.forEach(function(e){var n=t.getFile(e);n&&n.progress.postprocess&&t.emit("postprocess-complete",n)});var r=n.fileIDs.map(function(e){return t.getFile(e)}),o=r.filter(function(e){return!e.error}),i=r.filter(function(e){return e.error});t.addResultData(e,{successful:o,failed:i,uploadID:e})}}).then(function(){var n=t.getState().currentUploads;if(n[e]){var r=n[e].result;return t.emit("complete",r),t.removeUpload(e),r}}).then(function(n){return null==n&&t.log("Not setting result for an upload that has been removed: "+e),n})},s.upload=function(){var e=this;this.plugins.uploader||this.log("No uploader type plugins are used","warning");var t=this.getState().files,n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(function(){e.checkMinNumberOfFiles(t),e.checkRequiredMetaFields(t)}).catch(function(t){e.showOrLogErrorAndThrow(t)}).then(function(){var n=e.getState().currentUploads,r=Object.keys(n).reduce(function(e,t){return e.concat(n[t].fileIDs)},[]),o=[];Object.keys(t).forEach(function(t){var n=e.getFile(t);n.progress.uploadStarted||-1!==r.indexOf(t)||o.push(n.id)});var i=e.createUpload(o);return e.runUpload(i)}).catch(function(t){e.showOrLogErrorAndThrow(t,{showInformer:!1})}))}
2,t=e,(n=[{key:"state",get:function(){return this.getState()}}])&&o(t.prototype,n),i&&o(t,i),e}();A.VERSION="1.20.1",e.exports=function(e){return new A(e)},e.exports.Uppy=A,e.exports.Plugin=E,e.exports.debugLogger=P},4460:function(e,t,n){var r=n(39487),o={debug:function(){},warn:function(){},error:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=console).error.apply(e,["[Uppy] ["+r()+"]"].concat(n))}},i={debug:function(){for(var e=console.debug||console.log,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.call.apply(e,[console,"[Uppy] ["+r()+"]"].concat(n))},warn:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=console).warn.apply(e,["[Uppy] ["+r()+"]"].concat(n))},error:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=console).error.apply(e,["[Uppy] ["+r()+"]"].concat(n))}};e.exports={justErrorsLogger:o,debugLogger:i}},4803:function(e){e.exports=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;var t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;var n=t[1].split("."),r=n[0],o=n[1];return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)}},86929:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237),i=o.h,s=function(e){var t,n;function o(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).triggerFileInputClick=function(){t.fileInput.click()},t.triggerFolderInputClick=function(){t.folderInput.click()},t.onFileInputChange=function(e){t.props.handleInputChange(e),e.target.value=null},t.renderHiddenInput=function(e,n){return i("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==t.props.maxNumberOfFiles,onChange:t.onFileInputChange,accept:t.props.allowedFileTypes,ref:n})},t.renderMyDeviceAcquirer=function(){return i("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},i("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:t.triggerFileInputClick},i("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},i("g",{fill:"none",fillRule:"evenodd"},i("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),i("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),i("div",{className:"uppy-DashboardTab-name"},t.props.i18n("myDevice"))))},t.renderBrowseButton=function(e,n){var r=t.props.acquirers.length;return i("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:n,"data-uppy-super-focusable":0===r},e)},t.renderDropPasteBrowseTagline=function(){var e=t.props.acquirers.length,n=t.props.fileManagerSelectionType,r=n.charAt(0).toUpperCase()+n.slice(1),o="browse",s="browse",a="browse";if("files"===n)try{o=t.props.i18n("browse"),s=t.props.i18n("browse"),a=t.props.i18n("browse")}catch(e){}try{s=t.props.i18n("browseFiles"),a=t.props.i18n("browseFolders")}catch(e){}var l,u=t.renderBrowseButton(o,t.triggerFileInputClick),c=t.renderBrowseButton(s,t.triggerFileInputClick),p=t.renderBrowseButton(a,t.triggerFolderInputClick);if(l=e>0?t.props.i18nArray("dropPasteImport"+r,{browseFiles:c,browseFolders:p,browse:u}):t.props.i18nArray("dropPaste"+r,{browseFiles:c,browseFolders:p,browse:u}),"files"===n)try{l=e>0?t.props.i18nArray("dropPasteImport",{browse:u}):t.props.i18nArray("dropPaste",{browse:u})}catch(e){}return t.props.disableLocalFiles&&(l=t.props.i18n("importFiles")),i("div",{className:"uppy-Dashboard-AddFiles-title"},l)},t.renderAcquirer=function(e){return i("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},i("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"aria-controls":"uppy-DashboardContent-panel--"+e.id,"aria-selected":t.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:function(){return t.props.showPanel(e.id)}},e.icon(),i("div",{className:"uppy-DashboardTab-name"},e.name)))}
2,t.renderAcquirers=function(e,n){var r=[].concat(e),o=r.splice(e.length-2,e.length);return i("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!n&&t.renderMyDeviceAcquirer(),r.map(function(e){return t.renderAcquirer(e)}),i("span",{role:"presentation",style:"white-space: nowrap;"},o.map(function(e){return t.renderAcquirer(e)})))},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.renderPoweredByUppy=function(){var e=i("span",null,i("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},i("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),i("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy")),t=this.props.i18nArray("poweredBy2",{backwardsCompat:this.props.i18n("poweredBy"),uppy:e});return i("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)},s.render=function(){var e=this;return i("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,function(t){e.fileInput=t}),this.renderHiddenInput(!0,function(t){e.folderInput=t}),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),i("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&i("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))},o}(o.Component);e.exports=s},53595:function(e,t,n){var r=n(95237).h,o=n(46942),i=n(86929);e.exports=function(e){return r("div",{className:o("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:function(t){return e.toggleAddFilesPanel(!1)}},e.i18n("back"))),r(i,e))}},17743:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(95237).h,i=n(46942),s=n(92425),a=n(86929),l=n(53595),u=n(86058),c=n(33094),p=n(57327),d=n(83304),h=n(82442),f=n(75356);e.exports=function(e){var t=0===e.totalFileCount,n=e.containerWidth>576,m=i({"uppy-Root":e.isTargetDOMEl}),g=i({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>400,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible}),v=1;e.containerWidth>900?v=5:e.containerWidth>700?v=4:e.containerWidth>576&&(v=3);var y=e.showSelectedFiles&&!t,b=e.recoveredState?Object.keys(e.recoveredState.files).length:null,w=e.files?Object.keys(e.files).filter(function(t){return e.files[t].isGhost}).length:null,k=o("div",{className:g,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&f(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},o("div",{className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),o("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:o("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},o("span",{"aria-hidden":"true"},"×")),o("div",{className:"uppy-Dashboard-innerWrap"},o("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),y&&o(p,e),b&&o("div",{className:"uppy-Dashboard-serviceMsg"},o("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},o("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},o("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),o("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),o("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),o("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),o("div",{class:"uppy-Dashboard-serviceMsg-text"},w>0?e.i18n("recoveredXFiles",{smart_count:w}):e.i18n("recoveredAllFiles"))),y?o(s,r({},e,{itemsPerRow:v})):o(a,r({},e,{isSizeMD:n})),o(h,null,e.showAddFilesPanel?o(l,r({key:"AddFiles"},e,{isSizeMD:n})):null),o(h,null,e.fileCardFor?o(d,r({key:"FileCard"},e)):null),o(h,null,e.activePickerPanel?o(u,r({key:"Picker"},e)):null),o(h,null,e.showFileEditor?o(c,r({key:"Editor"},e)):null),o("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map(function(t){return e.getPlugin(t.id).render(e.state)})))));return o("div",{className:m,dir:e.direction},k)}},33094:function(e,t,n){var r=n(95237).h,o=n(46942);
2e.exports=function(e){var t=this.props.files[this.props.fileCardFor];return r("div",{className:o("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:r("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),r("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),r("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map(function(t){return e.getPlugin(t.id).render(e.state)})))}},83304:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(95237),s=i.h,a=i.Component,l=n(46942),u=n(61075),c=n(22338),p=n(88721),d=function(e){var t,n;function i(t){var n;(n=e.call(this,t)||this).updateMeta=function(e,t){var o;n.setState({formState:r({},n.state.formState,(o={},o[t]=e,o))})},n.handleSave=function(e){e.preventDefault();var t=n.props.fileCardFor;n.props.saveFileCard(n.state.formState,t)},n.handleCancel=function(){n.props.toggleFileCard(!1)},n.saveOnEnter=function(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=n.props.files[n.props.fileCardFor];n.props.saveFileCard(n.state.formState,t.id)}},n.renderMetaFields=function(){var e=n.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map(function(e){var r="uppy-Dashboard-FileCard-input-"+e.id,o=n.props.requiredMetaFields.includes(e.id);return s("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},s("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:r},e.name),void 0!==e.render?e.render({value:n.state.formState[e.id],onChange:function(t){return n.updateMeta(t,e.id)},fieldCSSClasses:t,required:o},s):s("input",{className:t.text,id:r,type:e.type||"text",required:o,value:n.state.formState[e.id],placeholder:e.placeholder,onKeyUp:n.saveOnEnter,onKeyDown:n.saveOnEnter,onKeyPress:n.saveOnEnter,onInput:function(t){return n.updateMeta(t.target.value,e.id)},"data-uppy-super-focusable":!0}))})};var o=n.props.files[n.props.fileCardFor],i=n.getMetaFields()||[],a={};return i.forEach(function(e){a[e.id]=o.meta[e.id]||""}),n.state={formState:a},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.getMetaFields=function(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields},a.render=function(){var e=this,t=this.props.files[this.props.fileCardFor],n=this.props.canEditFile(t);return s("div",{className:l("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:c,onDragLeave:c,onDrop:c,onPaste:c},s("div",{className:"uppy-DashboardContent-bar"},s("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:s("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),s("button",{className:"uppy-DashboardContent-back",type:"button",title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),s("div",{className:"uppy-Dashboard-FileCard-inner"},s("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:u(t.type).color}},s(p,{file:t}),n&&s("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:function(){return e.props.openFileEditor(t)}},this.props.i18n("editFile"))),s("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),s("div",{className:"uppy-Dashboard-FileCard-actions"},s("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleSave},this.props.i18n("saveChanges")),s("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel},this.props.i18n("cancel")))))},i}(a);e.exports=d},19759:function(e,t,n){var r=n(95237).h,o=n(46642);function i(e){var t=e.file,n=e.uploadInProgressOrComplete,o=e.metaFields,i=e.canEditFile,s=e.i18n,a=e.onClick;return!n&&o&&o.length>0||!n&&i(t)?r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":s("editFile")+" "+t.meta.name,title:s("editFile"),onClick:function(){return a()}},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},r("g",{fillRule:"evenodd"},r("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),r("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),r("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function s(e){var t=e.i18n,n=e.onClick;return r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile"),title:t("removeFile"),onClick:function(){return n()}},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},r("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),r("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function a(e){return r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":e.i18n("copyLink"),title:e.i18n("copyLink"),onClick:function(t){return function(e,t){o(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then(function(){t.log("Link copied to clipboard."),t.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)}
2).catch(t.log).then(function(){return e.target.focus({preventScroll:!0})})}(t,e)}},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},r("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}e.exports=function(e){var t=e.file,n=e.uploadInProgressOrComplete,o=e.canEditFile,l=e.metaFields,u=e.showLinkToFileUploadResult,c=e.showRemoveButton,p=e.i18n,d=e.removeFile,h=e.toggleFileCard,f=e.openFileEditor,m=e.log,g=e.info;return r("div",{className:"uppy-Dashboard-Item-actionWrapper"},r(i,{i18n:p,file:t,uploadInProgressOrComplete:n,canEditFile:o,metaFields:l,onClick:function(){l&&l.length>0?h(!0,t.id):f(t)}}),u&&t.uploadURL?r(a,{file:t,i18n:p,info:g,log:m}):null,c?r(s,{i18n:p,info:e.info,log:e.log,onClick:function(){return d(t.id,"removed-by-user")}}):null)}},96648:function(e,t,n){var r=n(95237).h,o=n(58236),i=n(56788),s=function(e){var t=e.file,n=e.onClick;return t.error?r("span",{className:"uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",role:"tooltip",onClick:n},"?"):null};e.exports=function(e){return r("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":e.file.source},function(e){var t;return t=e.containerWidth<=352?35:e.containerWidth<=576?60:30,r("div",{className:"uppy-Dashboard-Item-name",title:e.file.meta.name},i(e.file.meta.name,t))}(e),r("div",{className:"uppy-Dashboard-Item-status"},function(e){return e.file.size&&r("div",{className:"uppy-Dashboard-Item-statusSize"},o(e.file.size))}(e),function(e){return e.file.isGhost&&r("span",null," • ",r("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect")))}(e),r(s,{file:e.file,onClick:function(){alert(e.file.error)}})))}},23805:function(e,t,n){var r=n(95237).h,o=n(88721),i=n(61075);e.exports=function(e){return r("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:i(e.file.type).
2color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&r("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name}),r(o,{file:e.file}))}},50619:function(e,t,n){var r=n(95237).h;function o(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function i(e){return r("div",{className:"uppy-Dashboard-Item-progress"},r("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":o(e),title:o(e),onClick:function(){return function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.pauseUpload(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.cancelUpload(e.file.id):e.retryUpload(e.file.id))}(e)}},e.children))}function s(e){var t=e.children;return r("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function a(e){var t=e.progress,n=2*Math.PI*15;return r("g",null,r("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),r("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}e.exports=function(e){return e.file.progress.uploadStarted?e.isUploaded?r("div",{className:"uppy-Dashboard-Item-progress"},r("div",{className:"uppy-Dashboard-Item-progressIndicator"},r(s,null,r("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),r("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?r(i,e,r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},r("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),r("path",{d:"M7.9 3H10v2H7.9z"}),r("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),r("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?r(i,e,r(s,null,r(a,{progress:e.file.progress.percentage}),e.file.isPaused?r("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):r("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},r("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),r("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?r("div",{className:"uppy-Dashboard-Item-progress"},r("div",{className:"uppy-Dashboard-Item-progressIndicator"},r(s,null,r(a,{progress:e.file.progress.percentage})))):r(i,e,r(s,null,r(a,{progress:e.file.progress.percentage}),r("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}},4089:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237),i=o.h,s=o.Component,a=n(46942),l=n(16993),u=n(23805),c=n(50619),p=n(96648),d=n(19759);e.exports=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.shouldComponentUpdate=function(e){return!l(this.props,e)},s.componentDidMount=function(){var e=this.props.file;
2e.preview||this.props.handleRequestThumbnail(e)},s.componentDidUpdate=function(){var e=this.props.file;e.preview||this.props.handleRequestThumbnail(e)},s.componentWillUnmount=function(){var e=this.props.file;e.preview||this.props.handleCancelThumbnail(e)},s.render=function(){var e=this.props.file,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,r=e.progress.uploadStarted||t,o=e.progress.uploadStarted&&!e.progress.uploadComplete||t,s=e.error||!1,l=e.isGhost,h=(this.props.individualCancellation||!o)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(h=!0);var f=a({"uppy-Dashboard-Item":!0,"is-inprogress":o&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!s,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":l});return i("div",{className:f,id:"uppy_"+e.id,role:this.props.role},i("div",{className:"uppy-Dashboard-Item-preview"},i(u,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult}),i(c,{file:e,error:s,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,pauseUpload:this.props.pauseUpload,cancelUpload:this.props.cancelUpload,retryUpload:this.props.retryUpload,i18n:this.props.i18n})),i("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},i(p,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel}),i(d,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:h,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:r,removeFile:this.props.removeFile,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,i18n:this.props.i18n,log:this.props.log,info:this.props.info})))},o}(s)},92425:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(4089),i=n(8508),s=n(46942),a=n(95237).h;e.exports=function(e){var t=0===e.totalFileCount,n=s("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),l=1===e.itemsPerRow?71:200,u={id:e.id,error:e.error,i18n:e.i18n,log:e.log,info:e.info,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,retryUpload:e.retryUpload,pauseUpload:e.pauseUpload,cancelUpload:e.cancelUpload,toggleFileCard:e.toggleFileCard,removeFile:e.removeFile,handleRequestThumbn
2ail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},c=Object.keys(e.files);e.recoveredState&&c.sort(function(t,n){return e.files[n].isGhost-e.files[t].isGhost});var p,d,h,f,m=(p=c,d=e.itemsPerRow,h=[],f=[],p.forEach(function(e,t){f.length<d?f.push(e):(h.push(f),f=[e])}),f.length&&h.push(f),h);return a(i,{class:n,role:"list",data:m,renderRow:function(t){return a("div",{role:"presentation",key:t[0]},t.map(function(t){return a(o,r({key:t},u,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))}))},rowHeight:l})}},88721:function(e,t,n){var r=n(61075),o=n(95237).h;e.exports=function(e){var t=e.file;if(t.preview)return o("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});var n=r(t.type),i=n.color,s=n.icon;return o("div",{className:"uppy-Dashboard-Item-previewIconWrap"},o("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:i}},s),o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},o("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}},86058:function(e,t,n){var r=n(95237).h,o=n(46942),i=n(22338);e.exports=function(e){return r("div",{className:o("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--"+e.activePickerPanel.id,onDragOver:i,onDragLeave:i,onDrop:i,onPaste:i},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("importFrom",{name:e.activePickerPanel.name})),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel"))),r("div",{className:"uppy-DashboardContent-panelBody"},e.getPlugin(e.activePickerPanel.id).render(e.state)))}},57327:function(e,t,n){var r=n(95237).h,o="error",i="waiting",s="preprocessing",a="uploading",l="postprocessing",u="complete",c="paused";function p(e){switch(function(e,t,n,r){if(void 0===r&&(r={}),e)return o;if(t)return u;if(n)return c;for(var p=i,d=Object.keys(r),h=0;h<d.length;h++){var f=r[d[h]].progress;if(f.uploadStarted&&!f.uploadComplete)return a;f.preprocess&&p!==a&&(p=s),f.postprocess&&p!==a&&p!==s&&(p=l)}return p}(e.isAllErrored,e.isAllComplete,e.isAllPaused,e.files)){case"uploading":return e.i18n("uploadingXFiles",{smart_count:e.inProgressNotPausedFiles.length});case"preprocessing":case"postprocessing":return e.i18n("processingXFiles",{smart_count:e.processingFiles.length});case"paused":return e.i18n("uploadPaused");case"waiting":return e.i18n("xFilesSelected",{smart_count:e.newFiles.length});case"complete":return e.i18n("uploadComplete")}}e.exports=function(e){var t=e.allowNewUpload;return t&&e.maxNumberOfFiles&&(t=e.totalFileCount<e.maxNumberOfFiles),r("div",{className:"uppy-DashboardContent-bar"},e.isAllComplete||e.hideCancelButton?r("div",null):r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.cancelAll},e.i18n("cancel")),r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r(p,e)),t?r("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":e.i18n("addMoreFiles"),title:e.i18n("addMoreFiles"),onClick:function(){return e.toggleAddFilesPanel(!0)}},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},r("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),r("span",{className:"uppy-DashboardContent-addMoreCaption"},e.i18n("addMore"))):r("div",null))}},82442:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237),i=o.cloneElement,s=o.Component,a=n(46942),l="uppy-transition-sli
2deDownUp",u=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).state={cachedChildren:null,className:""},n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.componentWillUpdate=function(e){var t=this,n=this.state.cachedChildren,r=e.children[0];if(n!==r){var o={cachedChildren:r};r&&!n&&(o.className=l+"-enter",cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){t.base.getBoundingClientRect(),t.setState({className:l+"-enter "+l+"-enter-active"}),t.enterTimeout=setTimeout(function(){t.setState({className:""})},250)})),n&&!r&&void 0===this.leaveTimeout&&(o.cachedChildren=n,o.className=l+"-leave",cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){t.setState({className:l+"-leave "+l+"-leave-active"}),t.leaveTimeout=setTimeout(function(){t.setState({cachedChildren:null,className:""})},250)})),this.setState(o)}},s.render=function(){var e=this.state,t=e.cachedChildren,n=e.className;return t?i(t,{className:a(n,t.attributes.className)}):null},o}(s);e.exports=u},8508:function(e,t,n){var r=["data","rowHeight","renderRow","overscanCount","sync"];function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=n(95237),a=s.h,l=s.Component,u={position:"relative",width:"100%",minHeight:"100%"},c={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"},p=function(e){var t,n;function s(t){var n;return(n=e.call(this,t)||this).handleResize=function(){n.resize()},n.handleScroll=function(){n.setState({offset:n.base.scrollTop}),n.props.sync&&n.forceUpdate()},n.focusElement=null,n.state={offset:0,height:0},n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var l=s.prototype;return l.resize=function(){this.state.height!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})},l.componentWillUpdate=function(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)},l.componentDidUpdate=function(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()},l.componentDidMount=function(){this.resize(),window.addEventListener("resize",this.handleResize)},l.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},l.render=function(e){var t=e.data,n=e.rowHeight,i=e.renderRow,s=e.overscanCount,l=void 0===s?10:s,p=(e.sync,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r)),d=this.state,h=d.offset,f=d.height,m=Math.floor(h/n),g=Math.floor(f/n);l&&(m=Math.max(0,m-m%l),g+=l);var v=m+g+4,y=t.slice(m,v),b=o({},u,{height:t.length*n}),w=o({},c,{top:m*n});return a("div",o({onScroll:this.handleScroll},p),a("div",{role:"presentation",style:b},a("div",{role:"presentation",style:w},y.map(i))))},s}(l);e.exports=p},30766:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(95237).h,u=n(57097).Plugin,c=n(75221),p=n(17743),d=n(67316),h=n(20780),f=n(46590),m=n(17028),g=n(14993),v=n(80777),y=n(11159),b=n(1073),w=n(37584),k=n(43591).default||n(43591),S=n(45299),C=n(41811).default||n(41811),P=n(58839);function E(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}function _(){return l("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},l("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}
2e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).setOptions=function(t){e.prototype.setOptions.call(s(r),t),r.i18nInit()},r.i18nInit=function(){r.translator=new c([r.defaultLocale,r.uppy.locale,r.opts.locale]),r.i18n=r.translator.translate.bind(r.translator),r.i18nArray=r.translator.translateArray.bind(r.translator),r.setPluginState()},r.removeTarget=function(e){var t=r.getPluginState().targets.filter(function(t){return t.id!==e.id});r.setPluginState({targets:t})},r.addTarget=function(e){var t=e.id||e.constructor.name,n=e.title||t,o=e.type;if("acquirer"===o||"progressindicator"===o||"editor"===o){var i={id:t,name:n,type:o},s=r.getPluginState().targets.slice();return s.push(i),r.setPluginState({targets:s}),r.el}r.uppy.log("Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor","error")},r.hideAllPanels=function(){var e={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1},t=r.getPluginState();t.activePickerPanel===e.activePickerPanel&&t.showAddFilesPanel===e.showAddFilesPanel&&t.showFileEditor===e.showFileEditor&&t.activeOverlayType===e.activeOverlayType||r.setPluginState(e)},r.showPanel=function(e){var t=r.getPluginState().targets.filter(function(t){return"acquirer"===t.type&&t.id===e})[0];r.setPluginState({activePickerPanel:t,activeOverlayType:"PickerPanel"})},r.canEditFile=function(e){var t=r.getPluginState().targets;return r._getEditors(t).some(function(t){return r.uppy.getPlugin(t.id).canEditFile(e)})},r.openFileEditor=function(e){var t=r.getPluginState().targets,n=r._getEditors(t);r.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach(function(t){r.uppy.getPlugin(t.id).selectFile(e)})},r.saveFileEditor=function(){var e=r.getPluginState().targets;r._getEditors(e).forEach(function(e){r.uppy.getPlugin(e.id).save()}),r.hideAllPanels()},r.openModal=function(){var e=E(),t=e.promise,n=e.resolve;if(r.savedScrollPosition=window.pageYOffset,r.savedActiveElement=document.activeElement,r.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),r.opts.animateOpenClose&&r.getPluginState().isClosing){r.el.addEventListener("animationend",function e(){r.setPluginState({isHidden:!1}),r.el.removeEventListener("animationend",e,!1),n()},!1)}else r.setPluginState({isHidden:!1}),n();return r.opts.browserBackButtonClose&&r.updateBrowserHistory(),document.addEventListener("keydown",r.handleKeyDownInModal),r.uppy.emit("dashboard:modal-open"),t},r.closeModal=function(e){void 0===e&&(e={});var t=e.manualClose,n=void 0===t||t,o=r.getPluginState(),i=o.isHidden,s=o.isClosing;if(!i&&!s){var a=E(),l=a.promise,u=a.resolve;if(r.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),r.opts.animateOpenClose){r.setPluginState({isClosing:!0});r.el.addEventListener("animationend",function e(){r.setPluginState({isHidden:!0,isClosing:!1}),r.superFocus.cancel(),r.savedActiveElement.focus(),r.el.removeEventListener("animationend",e,!1),u()},!1)}else r.setPluginState({isHidden:!0}),r.superFocus.cancel(),r.savedActiveElement.focus(),u();return document.removeEventListener("keydown",r.handleKeyDownInModal),n&&r.opts.browserBackButtonClose&&history.state&&history.state[r.modalName]&&history.go(-1),r.uppy.emit("dashboard:modal-closed"),l}},r.isModalOpen=function(){return!r.getPluginState().isHidden||!1},r.requestCloseModal=function(){return r.opts.onRequestCloseModal?r.opts.onRequestCloseModal():r.closeModal()},r.setDarkModeCapability=function(e){var t=r.uppy.getState().capabilities;r.uppy.setState({capabilities:i({},t,{darkMode:e})})},r.handleSystemDarkModeChange=function(e){var t=e.matches;r.uppy.log("[Dashboard] Dark mode is "+(t?"on":"off")),r.setDarkModeCapability(t)},r.toggleFileCard=function(e,t){var n=r.uppy.getFile(t);e?r.uppy.emit("dashboard:file-edit-start",n):r.uppy.emit("dashboard:file-edit-complete",n),r.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},r.toggleAddFilesPanel=function(e){r.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},r.addFiles=function(e){var t=e.map(function(e){return{source:r.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}}});try{r.uppy.addFiles(t)}catch(e){r.uppy.log(e)}},r.startListeningToResize=function(){r.resizeObserver=new k(function(e,t){var n=e[0].contentRect,o=n.width,i=n.height;r.uppy.log("[Dashboard] resized: "+o+" / "+i,"debug"),r.setPluginState({containerWidth:o,containerHeight:i,areInsidesReadyToBeVisible:!0})}),r.resizeObserver.observe(r.el.querySelector(".uppy-Dashboard-inner")),r.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(function(){var e=r.getPluginState(),t=!r.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(r.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),r.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},r.stopListeningToResize=function(){r.resizeObserver.disconnect(),clearTimeout(r.makeDashboardInsidesVisibleAnywayTimeout)},r.recordIfFocusedOnUppyRecently=function(e){r.el.contains(e.target)?r.ifFocusedOnUppyRecently=!0:(r.ifFocusedOnUppyRecently=!1,r.superFocus.cancel())},r.disableAllFocusableElements=function(e){var t=g(r.el.querySelectorAll(P));e?t.forEach(function(e){var t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")}
2):t.forEach(function(e){"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")}),r.dashboardIsDisabled=e},r.updateBrowserHistory=function(){var e;history.state&&history.state[r.modalName]||history.pushState(i({},history.state,((e={})[r.modalName]=!0,e)),"");window.addEventListener("popstate",r.handlePopState,!1)},r.handlePopState=function(e){!r.isModalOpen()||e.state&&e.state[r.modalName]||r.closeModal({manualClose:!1}),!r.isModalOpen()&&e.state&&e.state[r.modalName]&&history.go(-1)},r.handleKeyDownInModal=function(e){27===e.keyCode&&r.requestCloseModal(e),9===e.keyCode&&b.forModal(e,r.getPluginState().activeOverlayType,r.el)},r.handleClickOutside=function(){r.opts.closeModalOnClickOutside&&r.requestCloseModal()},r.handlePaste=function(e){r.uppy.iteratePlugins(function(t){"acquirer"===t.type&&t.handleRootPaste&&t.handleRootPaste(e)});var t=g(e.clipboardData.files);r.addFiles(t)},r.handleInputChange=function(e){e.preventDefault();var t=g(e.target.files);r.addFiles(t)},r.handleDragOver=function(e){e.preventDefault(),e.stopPropagation(),r.opts.disabled||r.opts.disableLocalFiles||(e.dataTransfer.dropEffect="copy",clearTimeout(r.removeDragOverClassTimeout),r.setPluginState({isDraggingOver:!0}))},r.handleDragLeave=function(e){e.preventDefault(),e.stopPropagation(),r.opts.disabled||r.opts.disableLocalFiles||(clearTimeout(r.removeDragOverClassTimeout),r.removeDragOverClassTimeout=setTimeout(function(){r.setPluginState({isDraggingOver:!1})},50))},r.handleDrop=function(e,t){if(e.preventDefault(),e.stopPropagation(),!r.opts.disabled&&!r.opts.disableLocalFiles){clearTimeout(r.removeDragOverClassTimeout),r.setPluginState({isDraggingOver:!1}),r.uppy.iteratePlugins(function(t){"acquirer"===t.type&&t.handleRootDrop&&t.handleRootDrop(e)});var n=!1;v(e.dataTransfer,{logDropError:function(e){r.uppy.log(e,"error"),n||(r.uppy.info(e.message,"error"),n=!0)}}).then(function(e){e.length>0&&(r.uppy.log("[Dashboard] Files were dropped"),r.addFiles(e))})}}
2,r.handleRequestThumbnail=function(e){r.opts.waitForThumbnailsBeforeUpload||r.uppy.emit("thumbnail:request",e)},r.handleCancelThumbnail=function(e){r.opts.waitForThumbnailsBeforeUpload||r.uppy.emit("thumbnail:cancel",e)},r.handleKeyDownInInline=function(e){9===e.keyCode&&b.forInline(e,r.getPluginState().activeOverlayType,r.el)},r.handlePasteOnBody=function(e){r.el.contains(document.activeElement)&&r.handlePaste(e)},r.handleComplete=function(e){var t=e.failed;r.opts.closeAfterFinish&&0===t.length&&r.requestCloseModal()},r.handleCancelRestore=function(){r.uppy.emit("restore-canceled")},r._openFileEditorWhenFilesAdded=function(e){var t=e[0];r.canEditFile(t)&&r.openFileEditor(t)},r.initEvents=function(){if(r.opts.trigger&&!r.opts.inline){var e=m(r.opts.trigger);e?e.forEach(function(e){return e.addEventListener("click",r.openModal)}):r.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}r.startListeningToResize(),document.addEventListener("paste",r.handlePasteOnBody),r.uppy.on("plugin-remove",r.removeTarget),r.uppy.on("file-added",r.hideAllPanels),r.uppy.on("dashboard:modal-closed",r.hideAllPanels),r.uppy.on("file-editor:complete",r.hideAllPanels),r.uppy.on("complete",r.handleComplete),document.addEventListener("focus",r.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",r.recordIfFocusedOnUppyRecently,!0),r.opts.inline&&r.el.addEventListener("keydown",r.handleKeyDownInInline),r.opts.autoOpenFileEditor&&r.uppy.on("files-added",r._openFileEditorWhenFilesAdded)},r.removeEvents=function(){var e=m(r.opts.trigger);!r.opts.inline&&e&&e.forEach(function(e){return e.removeEventListener("click",r.openModal)}),r.stopListeningToResize(),document.removeEventListener("paste",r.handlePasteOnBody),window.removeEventListener("popstate",r.handlePopState,!1),r.uppy.off("plugin-remove",r.removeTarget),r.uppy.off("file-added",r.hideAllPanels),r.uppy.off("dashboard:modal-closed",r.hideAllPanels),r.uppy.off("file-editor:complete",r.hideAllPanels),r.uppy.off("complete",r.handleComplete),document.removeEventListener("focus",r.recordIfFocusedOnUppyRecently),document.removeEventListener("click",r.recordIfFocusedOnUppyRecently),r.opts.inline&&r.el.removeEventListener("keydown",r.handleKeyDownInInline),r.opts.autoOpenFileEditor&&r.uppy.off("files-added",r._openFileEditorWhenFilesAdded)},r.superFocusOnEachUpdate=function(){var e=r.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=r.uppy.getState().info.isHidden,o=!r.opts.inline;n&&(o||e||t&&r.ifFocusedOnUppyRecently)?r.superFocus(r.el,r.getPluginState().activeOverlayType):r.superFocus.cancel()},r.afterUpdate=function(){!r.opts.disabled||r.dashboardIsDisabled?(!r.opts.disabled&&r.dashboardIsDisabled&&r.disableAllFocusableElements(!1),r.superFocusOnEachUpdate()):r.disableAllFocusableElements(!0)},r.cancelUpload=function(e){r.uppy.removeFile(e)},r.saveFileCard=function(e,t){r.uppy.setFileMeta(t,e),r.toggleFileCard(!1,t)},r._attachRenderFunctionToTarget=function(e){var t=r.uppy.getPlugin(e.id);return i({},e,{icon:t.icon||r.opts.defaultPickerIcon,render:t.render})},r._isTargetSupported=function(e){var t=r.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()},r._getAcquirers=C(function(e){return e.filter(function(e){return"acquirer"===e.type&&r._isTargetSupported(e)}).map(r._attachRenderFunctionToTarget)}),r._getProgressIndicators=C(function(e){return e.filter(function(e){return"progressindicator"===e.type}).map(r._attachRenderFunctionToTarget)}),r._getEditors=C(function(e){return e.filter(function(e){return"editor"===e.type}).map(r._attachRenderFunctionToTarget)}),r.render=function(e){var t,n=r.getPluginState(),o=e.files,i=e.capabilities,s=e.allowNewUpload,a=Object.keys(o).filter(function(e){return!o[e].progress.uploadStarted}),l=Object.keys(o).filter(function(e){return o[e].progress.uploadStarted}),u=Object.keys(o).filter(function(e){return o[e].isPaused}),c=Object.keys(o).filter(function(e){return o[e].progress.uploadComplete}),d=Object.keys(o).filter(function(e){return o[e].error}),h=Object.keys(o).filter(function(e){return!o[e].progress.uploadComplete&&o[e].progress.uploadStarted}),f=h.filter(function(e){return!o[e].isPaused}),m=Object.keys(o).filter(function(e){return o[e].progress.preprocess||o[e].progress.postprocess}
2),g=l.length>0,v=100===e.totalProgress&&c.length===Object.keys(o).length&&0===m.length,y=g&&d.length===l.length,b=0!==h.length&&u.length===h.length,w=r._getAcquirers(n.targets),k=r._getProgressIndicators(n.targets),S=r._getEditors(n.targets);return t="auto"===r.opts.theme?i.darkMode?"dark":"light":r.opts.theme,["files","folders","both"].indexOf(r.opts.fileManagerSelectionType)<0&&(r.opts.fileManagerSelectionType="files",console.error('Unsupported option for "fileManagerSelectionType". Using default of "'+r.opts.fileManagerSelectionType+'".')),p({state:e,isHidden:n.isHidden,files:o,newFiles:a,uploadStartedFiles:l,completeFiles:c,erroredFiles:d,inProgressFiles:h,inProgressNotPausedFiles:f,processingFiles:m,isUploadStarted:g,isAllComplete:v,isAllErrored:y,isAllPaused:b,totalFileCount:Object.keys(o).length,totalProgress:e.totalProgress,allowNewUpload:s,acquirers:w,theme:t,disabled:r.opts.disabled,disableLocalFiles:r.opts.disableLocalFiles,direction:r.opts.direction,activePickerPanel:n.activePickerPanel,showFileEditor:n.showFileEditor,saveFileEditor:r.saveFileEditor,disableAllFocusableElements:r.disableAllFocusableElements,animateOpenClose:r.opts.animateOpenClose,isClosing:n.isClosing,getPlugin:r.uppy.getPlugin,progressindicators:k,editors:S,autoProceed:r.uppy.opts.autoProceed,id:r.id,closeModal:r.requestCloseModal,handleClickOutside:r.handleClickOutside,handleInputChange:r.handleInputChange,handlePaste:r.handlePaste,inline:r.opts.inline,showPanel:r.showPanel,hideAllPanels:r.hideAllPanels,log:r.uppy.log,i18n:r.i18n,i18nArray:r.i18nArray,removeFile:r.uppy.removeFile,uppy:r.uppy,info:r.uppy.info,note:r.opts.note,recoveredState:e.recoveredState,metaFields:n.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,pauseUpload:r.uppy.pauseResume,retryUpload:r.uppy.retryUpload,cancelUpload:r.cancelUpload,cancelAll:r.uppy.cancelAll,fileCardFor:n.fileCardFor,toggleFileCard:r.toggleFileCard,toggleAddFilesPanel:r.toggleAddFilesPanel,showAddFilesPanel:n.showAddFilesPanel,saveFileCard:r.saveFileCard,openFileEditor:r.openFileEditor,canEditFile:r.canEditFile,width:r.opts.width,height:r.opts.height,showLinkToFileUploadResult:r.opts.showLinkToFileUploadResult,fileManagerSelectionType:r.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:r.opts.proudlyDisplayPoweredByUppy,hideCancelButton:r.opts.hideCancelButton,hideRetryButton:r.opts.hideRetryButton,hidePauseResumeButton:r.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:r.opts.showRemoveButtonAfterComplete,containerWidth:n.containerWidth,containerHeight:n.containerHeight,areInsidesReadyToBeVisible:n.areInsidesReadyToBeVisible,isTargetDOMEl:r.isTargetDOMEl,parentElement:r.el,allowedFileTypes:r.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:r.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:r.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:r.opts.showSelectedFiles,handleCancelRestore:r.handleCancelRestore,handleRequestThumbn
2ail:r.handleRequestThumbnail,handleCancelThumbnail:r.handleCancelThumbnail,isDraggingOver:n.isDraggingOver,handleDragOver:r.handleDragOver,handleDragLeave:r.handleDragLeave,handleDrop:r.handleDrop})},r.discoverProviderPlugins=function(){r.uppy.iteratePlugins(function(e){e&&!e.target&&e.opts&&e.opts.target===r.constructor&&r.addTarget(e)})},r.install=function(){r.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:r.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});var e=r.opts,t=e.inline,n=e.closeAfterFinish;if(t&&n)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");r.uppy.opts.allowMultipleUploads&&n&&r.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploads` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");var o=r.opts.target;o&&r.mount(o,s(r)),(r.opts.plugins||[]).forEach(function(e){var t=r.uppy.getPlugin(e);t&&t.mount(s(r),t)}),r.opts.disableStatusBar||r.uppy.use(d,{id:r.id+":StatusBar",target:s(r),hideUploadButton:r.opts.hideUploadButton,hideRetryButton:r.opts.hideRetryButton,hidePauseResumeButton:r.opts.hidePauseResumeButton,hideCancelButton:r.opts.hideCancelButton,showProgressDetails:r.opts.showProgressDetails,hideAfterFinish:r.opts.hideProgressAfterFinish,locale:r.opts.locale,doneButtonHandler:r.opts.doneButtonHandler}),r.opts.disableInformer||r.uppy.use(h,{id:r.id+":Informer",target:s(r)}),r.opts.disableThumbnailGenerator||r.uppy.use(f,{id:r.id+":ThumbnailGenerator",thumbnailWidth:r.opts.thumbnailWidth,thumbnailType:r.opts.thumbnailType,waitForThumbnailsBeforeUpload:r.opts.waitForThumbnailsBeforeUpload,lazy:!r.opts.waitForThumbnailsBeforeUpload}),r.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;var i=!!r.darkModeMediaQuery&&r.darkModeMediaQuery.matches;r.uppy.log("[Dashboard] Dark mode is "+(i?"on":"off")),r.setDarkModeCapability(i),"auto"===r.opts.theme&&r.darkModeMediaQuery.addListener(r.handleSystemDarkModeChange),r.discoverProviderPlugins(),r.initEvents()},r.uninstall=function(){if(!r.opts.disableInformer){var e=r.uppy.getPlugin(r.id+":Informer");e&&r.uppy.removePlugin(e)}if(!r.opts.disableStatusBar){var t=r.uppy.getPlugin(r.id+":StatusBar");t&&r.uppy.removePlugin(t)}if(!r.opts.disableThumbnailGenerator){var n=r.uppy.getPlugin(r.id+":ThumbnailGenerator");n&&r.uppy.removePlugin(n)}(r.opts.plugins||[]).forEach(function(e){var t=r.uppy.getPlugin(e);t&&t.unmount()}),"auto"===r.opts.theme&&r.darkModeMediaQuery.removeListener(r.handleSystemDarkModeChange),r.unmount(),r.removeEvents()},r.id=r.opts.id||"Dashboard",r.title="Dashboard",r.type="orchestrator",r.modalName="uppy-Dashboard-"+w(),r.defaultLocale={strings:{closeModal:"Close Modal",importFrom:"Import from %{name}",addingMoreFiles:"Adding more files",addMoreFiles:"Add more files",dashboardWindowTitle:"File Uploader Window (Press escape to close)",dashboardTitle:"File Uploader",copyLinkToClipboardSuccess:"Link copied to clipboard",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",fileSource:"File source: %{name}",back:"Back",addMore:"Add more",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",save:"Save",saveChanges:"Save changes",cancel:"Cancel",myDevice:"My Device",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",dropHint:"Drop your files here",browseFiles:"browse files",browseFolders:"browse folders",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",poweredBy2:"%{backwardsCompat} %{uppy}",poweredBy:"Powered by"}};var o={target:"body",metaFields:[],trigger:"#uppy-select-files",inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:_,showLinkToFileUploadResult:!0,showProgressDetail
2s:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:function(){r.uppy.reset(),r.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:function(){return r.closeModal()},showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};return r.opts=i({},o,n),r.i18nInit(),r.superFocus=S(),r.ifFocusedOnUppyRecently=!1,r.makeDashboardInsidesVisibleAnywayTimeout=null,r.removeDragOverClassTimeout=null,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),r.prototype.onMount=function(){var e=this.el;y(e)||(e.dir="ltr")},r}(u),r.VERSION="1.21.1",o)},46642:function(e){e.exports=function(e,t){return t=t||"Copy the URL below",new Promise(function(n){var r=document.createElement("textarea");r.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),r.value=e,document.body.appendChild(r),r.select();var o=function(){document.body.removeChild(r),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(r),n()):o()}catch(e){return document.body.removeChild(r),o()}})}},45299:function(e,t,n){var r=n(20181),o=n(58839),i=n(8793);e.exports=function(){var e=!1;return r(function(t,n){var r=i(t,n),s=r.contains(document.activeElement);if(!s||!e){var a=r.querySelector("[data-uppy-super-focusable]");if(!s||a)if(a)a.focus({preventScroll:!0}),e=!0;else{var l=r.querySelector(o);l&&l.focus({preventScroll:!0}),e=!1}}},260)}},8793:function(e){e.exports=function(e,t){if(t){var n=e.querySelector('[data-uppy-paneltype="'+t+'"]');if(n)return n}return e}},61075:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t={color:"#838999",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("g",{fill:"#A7AFB7",fillRule:"nonzero"},r("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),r("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;var n=e.split("/")[0],o=e.split("/")[1];if("text"===n)return{color:"#5a5e69",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))};if("image"===n)return{color:"#686de0",icon:r("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},r("g",{fill:"#686DE0",fillRule:"evenodd"},r("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),r("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),r("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))};if("audio"===n)return{color:"#068dbb",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))};if("video"===n)return{color:"#19af67",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm
21 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))};if("application"===n&&"pdf"===o)return{color:"#e25149",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))};return"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(o)?{color:"#00C469",icon:r("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t}},22338:function(e){e.exports=function(e){var t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()}},1073:function(e,t,n){var r=n(14993),o=n(8793),i=n(58839);function s(e,t){var n=t[0];n&&(n.focus(),e.preventDefault())}function a(e,t,n){var a=o(n,t),l=r(a.querySelectorAll(i)),u=l.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(a)?s(e,l):e.shiftKey&&0===u?function(e,t){var n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,l):e.shiftKey||u!==l.length-1||s(e,l)}e.exports={forModal:function(e,t,n){a(e,t,n)},forInline:function(e,t,n){null===t||a(e,t,n)}}},13062:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(75221),c=n(14993),p=n(75356),d=n(80777),h=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="acquirer",r.id=r.opts.id||"DragDrop",r.title="Drag & Drop",r.defaultLocale={strings:{dropHereOr:"Drop files here or %{browse}",browse:"browse"}};return r.opts=i({},{target:null,inputName:"files[]",width:"100%",height:"100%",note:null},n),r.isDragDropSupported=p(),r.removeDragOverClassTimeout=null,r.i18nInit(),r.onInputChange=r.onInputChange.bind(s(r)),r.handleDragOver=r.handleDragOver.bind(s(r)),r.handleDragLeave=r.handleDragLeave.bind(s(r)),r.handleDrop=r.handleDrop.bind(s(r)),r.addFiles=r.addFiles.bind(s(r)),r.render=r.render.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new u([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},o.addFiles=function(e){var t=this,n=e.map(function(e){return{source:t.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}}});try{this.uppy.addFiles(n)}catch(e){this.uppy.log(e)}},o.onInputChange=function(e){this.uppy.log("[DragDrop] Files selected through input");var t=c(e.target.files);this.addFiles(t),e.target.value=null},o.handleDrop=function(e){var t=this;this.opts.onDrop&&this.opts.onDrop(e),e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.log("[DragDrop] Files were dropped");d(e.dataTransfer,{logDropError:function(e){t.uppy.log(e,"error")}}).then(function(e){return t.addFiles(e)})},o.handleDragOver=function(e){this.opts.onDragOver&&this.opts.onDragOver(e),e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0})},o.handleDragLeave=function(e){var t=this;this.opts.onDragLeave&&this.opts.onDragLeave(e),e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(function(){t.setPluginState({isDraggingOver:!1})},50)},o.renderHiddenFileInput=function(){var e=this,t=this.uppy.opts.restrictions;return h("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:function(t){e.fileInputRef=t},name:this.opts.inputName,multiple:1!==t.maxNumberOfFiles,accept:t.allowedFileTypes,onChange:this.onInputChange})},r.renderArrowSvg=function(){return h("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},h("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))},o.renderLabel=function(){return h("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:h("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))},o.renderNote=function(){return h("span",{className:"uppy-DragDrop-note"},this.opts.note)},o.render=function(){var e=this,t="uppy-Root\n      uppy-u-reset\n      uppy-DragDrop-container\n      "+(this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":"")+"\n      "+(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"")+"\n    ",n={width:this.opts.width,height:this.opts.height};return h("button",{type:"button",className:t,style:n,onClick:function(){return e.fileInputRef.click()},onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),h("div",{className:"uppy-DragDrop-inner"},r.renderArrowSvg(),this.renderLabel(),this.renderNote()))},o.install=function(){var e=this.opts.target;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},r}(l),r.VERSION="1.4.31",o)},80040:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(88788).Provider,u=n(63508).ProviderViews,c=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).id=r.opts.id||"Dropbox",l.initPlugin(i(r),n),r.title=r.opts.title||"Dropbox",r.icon=function(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",fill:"#0D2481",width:"32",height:"32",rx:"16"}),c("path",{d:"M11 8l5 3.185-5 3.186-5-3.186L11 8zm10 0l5 3.185-5 3.186-5-3.186L21 8zM6 17.556l5-3.185 5 3.185-5 3.186-5-3.186zm15-3.185l5 3.185-5 3.186-5-3.186 5-3.185zm-10 7.432l5-3.185 5 3.185-5 3.186-5-3.186z",fill:"#FFF",fillRule:"nonzero"})))},r.provider=new l(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionKeysParams:r.opts.companionKeysParams,companionCookiesRule:r.opts.companionCookiesRule,provider:"dropbox",pluginId:r.id}),r.onFirstRender=r.onFirstRender.bind(i(r)),r.render=r.render.bind(i(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new u(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},o.render=function(e){return this.view.render(e)},r}(a),r.VERSION="1.5.2",o)},95754:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(88788).Provider,u=n(63508).ProviderViews,c=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).id=r.opts.id||"Facebook",l.initPlugin(i(r),n),r.title=r.opts.title||"Facebook",r.icon=function(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#3C5A99"}),c("path",{d:"M17.842 26v-8.667h2.653l.398-3.377h-3.051v-2.157c0-.978.248-1.644 1.527-1.644H21V7.132A19.914 19.914 0 0 0 18.623 7c-2.352 0-3.963 1.574-3.963 4.465v2.49H12v3.378h2.66V26h3.182z",fill:"#FFF",fillRule:"nonzero"})))},r.provider=new l(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionKeysParams:r.opts.companionKeysParams,companionCookiesRule:r.opts.companionCookiesRule,provider:"facebook",pluginId:r.id}),r.onFirstRender=r.onFirstRender.bind(i(r)),r.render=r.render.bind(i(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new u(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},o.render=function(e){var t={};return this.getPluginState().files.length&&!this.getPluginState().folders.length&&(t.viewType="grid",t.showFilter=!1,t.showTitles=!1),this.view.render(e,t)},r}(a),r.VERSION="1.2.2",o)},35621:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(14993),c=n(75221),p=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).id=r.opts.id||"FileInput",r.title="File Input",r.type="acquirer",r.defaultLocale={strings:{chooseFiles:"Choose files"}};return r.opts=i({},{target:null,pretty:!0,inputName:"files[]"},n),r.i18nInit(),r.render=r.render.bind(s(r)),r.handleInputChange=r.handleInputChange.bind(s(r)),r.handleClick=r.handleClick.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new c([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},o.addFiles=function(e){var t=this,n=e.map(function(e){return{source:t.id,name:e.name,type:e.type,data:e}});try{this.uppy.addFiles(n)}catch(e){this.uppy.log(e)}},o.handleInputChange=function(e){this.uppy.log("[FileInput] Something selected through input...");var t=u(e.target.files);this.addFiles(t),e.target.value=null},o.handleClick=function(e){this.input.click()},o.render=function(e){var t=this,n=this.uppy.opts.restrictions,r=n.allowedFileTypes?n.allowedFileTypes.join(","):null;return p("div",{className:"uppy-Root uppy-FileInput-container"},p("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==n.maxNumberOfFiles,accept:r,ref:function(e){t.input=e}}),this.opts.pretty&&p("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},r}(l),r.VERSION="1.5.2",o)},27164:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(77540),c=n(14993),p=n(61076).default||n(61076);e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="acquirer",r.id=r.opts.id||"Form",r.title="Form";return r.opts=i({},{target:null,resultName:"uppyResult",getMetaFromForm:!0,addResultToForm:!0,multipleResults:!1,submitOnSuccess:!1,triggerUploadOnSubmit:!1},n),r.handleFormSubmit=r.handleFormSubmit.bind(s(r)),r.handleUploadStart=r.handleUploadStart.bind(s(r)),r.handleSuccess=r.handleSuccess.bind(s(r)),r.addResultToForm=r.addResultToForm.bind(s(r)),r.getMetaFromForm=r.getMetaFromForm.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.handleUploadStart=function(){this.opts.getMetaFromForm&&this.getMetaFromForm()},o.handleSuccess=function(e){this.opts.addResultToForm&&this.addResultToForm(e),this.opts.submitOnSuccess&&this.form.submit()},o.handleFormSubmit=function(e){var t=this;if(this.opts.triggerUploadOnSubmit){e.preventDefault();var n=c(e.target.elements),r=[];n.forEach(function(e){("BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===e.type)&&!e.disabled&&(e.disabled=!0,r.push(e))}),this.uppy.upload().then(function(){r.forEach(function(e){e.disabled=!1})},function(e){return r.forEach(function(e){e.disabled=!1}),Promise.reject(e)}).catch(function(e){t.uppy.log(e.stack||e.message||e)})}},o.addResultToForm=function(e){this.uppy.log("[Form] Adding result to the original form:"),this.uppy.log(e);var t=this.form.querySelector('[name="'+this.opts.resultName+'"]');if(t)if(this.opts.multipleResults){var n;try{n=JSON.parse(t.value)}catch(e){}Array.isArray(n)||(n=[]),n.push(e),t.value=JSON.stringify(n)}else t.value=JSON.stringify(e);else(t=document.createElement("input")).name=this.opts.resultName,t.type="hidden",this.opts.multipleResults?t.value=JSON.stringify([e]):t.value=JSON.stringify(e),this.form.appendChild(t)},o.getMetaFromForm=function(){var e=p(this.form);delete e[this.opts.resultName],this.uppy.setMeta(e)},o.install=function(){this.form=u(this.opts.target),this.form&&"FORM"===this.form.nodeName?(this.form.addEventListener("submit",this.handleFormSubmit),this.uppy.on("upload",this.handleUploadStart),this.uppy.on("complete",this.handleSuccess)):this.uppy.log("Form plugin requires a <form> target element passed in options to operate, none was found","error")},o.uninstall=function(){this.form.removeEventListener("submit",this.handleFormSubmit),this.uppy.off("upload",this.handleUploadStart),this.uppy.off("complete",this.handleSuccess)},r}(l),r.VERSION="1.3.31",o)},89066:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(58236),i="undefined"!=typeof window&&(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB),s=!!i,a="uppy-blobs",l="files",u=864e5;function c(e){var t=i.open(e,3);return new Promise(function(e,n){t.onupgradeneeded=function(t){var n=t.target.result,r=t.currentTarget.transaction;t.oldVersion<2&&n.createObjectStore(l,{keyPath:"id"}).createIndex("store","store",{unique:!1});if(t.oldVersion<3){var o=r.objectStore(l);o.createIndex("expires","expires",{unique:!1}),function(e){e.openCursor().onsuccess=function(e){var t=e.target.result;if(t){var n=t.value;n.expires=Date.now()+u,t.update(n)}}}(o)}r.oncomplete=function(){e(n)}},t.onsuccess=function(t){e(t.target.result)},t.onerror=n})}function p(e){return new Promise(function(t,n){e.onsuccess=function(e){t(e.target.result)},e.onerror=n})}var d=!1,h=function(){function e(t){var n=this;this.opts=r({dbName:a,storeName:"default",expires:u,maxFileSize:10485760,maxTotalSize:314572800},t),this.name=this.opts.storeName;var o=function(){return c(n.opts.dbName)};d?this.ready=o():(d=!0,this.ready=e.cleanup().then(o,o))}var t=e.prototype;return t.key=function(e){return this.name+"!"+e},t.list=function(){var e=this;return this.ready.then(function(t){return p(t.transaction([l],"readonly").objectStore(l).index("store").getAll(IDBKeyRange.only(e.name)))}).then(function(e){var t={};return e.forEach(function(e){t[e.fileID]=e.data}),t})},t.get=function(e){var t=this;return this.ready.then(function(n){return p(n.transaction([l],"readonly").objectStore(l).get(t.key(e)))}).then(function(e){return{id:e.data.fileID,data:e.data.data}})},t.getSize=function(){var e=this;return this.ready.then(function(t){var n=t.transaction([l],"readonly").objectStore(l).index("store").openCursor(IDBKeyRange.only(e.name));return new Promise(function(e,t){var r=0;n.onsuccess=function(t){var n=t.target.result;n?(r+=n.value.data.size,n.continue()):e(r)},n.onerror=function(){t(new Error("Could not retrieve stored blobs size"))}})})},t.put=function(e){var t=this;return e.data.size>this.opts.maxFileSize?Promise.reject(new Error("File is too big to store.")):this.getSize().then(function(e){return e>t.opts.maxTotalSize?Promise.reject(new Error("No space left")):t.ready}).then(function(n){return p(n.transaction([l],"readwrite").objectStore(l).add({id:t.key(e.id),fileID:e.id,store:t.name,expires:Date.now()+t.opts.expires,data:e.data}))})},t.delete=function(e){var t=this;return this.ready.then(function(n){return p(n.transaction([l],"readwrite").objectStore(l).delete(t.key(e)))})},e.cleanup=function(){return c(a).then(function(e){var t=e.transaction([l],"readwrite").objectStore(l).index("expires").openCursor(IDBKeyRange.upperBound(Date.now()));return new Promise(function(n,r){t.onsuccess=function(t){var r=t.target.result;if(r){var i=r.value;console.log("[IndexedDBStore] Deleting record",i.fileID,"of size",o(i.data.size),"- expired on",new Date(i.expires)),r.delete(),r.continue()}else n(e)},t.onerror=r})}).then(function(e){e.close()})},e}();h.isSupported=s,e.exports=h},54850:function(e){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){try{return JSON.parse(e)}catch(e){return null}}var r=!1;e.exports=function(){function e(n){this.opts=t({expires:864e5},n),this.name="uppyState:"+n.storeName,r||(r=!0,e.cleanup())}var o=e.prototype;return o.load=function(){var e=localStorage.getItem(this.name);if(!e)return null;var t=n(e);return t?t.metadata?t.metadata:(this.save(t),t):null},o.save=function(e){var t=Date.now()+this.opts.expires,n=JSON.stringify({metadata:e,expires:t});localStorage.setItem(this.name,n)},e.cleanup=function(e){if(e)localStorage.removeItem("uppyState:"+e);else{var t=function(){for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);/^uppyState:/.test(n)&&e.push(n.slice(10))}return e}(),r=Date.now();t.forEach(function(e){var t=localStorage.getItem("uppyState:"+e);if(!t)return null;var o=n(t);if(!o)return null;o.expires&&o.expires<r&&localStorage.removeItem("uppyState:"+e)})}},e}()},58168:function(e){var t="undefined"!=typeof navigator&&"serviceWorker"
2in navigator;var n=function(){function e(e){this.ready=new Promise(function(e,n){t?navigator.serviceWorker.controller?e():navigator.serviceWorker.addEventListener("controllerchange",function(){e()}):n(new Error("Unsupported"))}),this.name=e.storeName}var n=e.prototype;return n.list=function(){var e=this,t={},n=new Promise(function(e,n){t.resolve=e,t.reject=n});console.log("Loading stored blobs from Service Worker");var r=function n(r){if(r.data.store===e.name&&"uppy/ALL_FILES"===r.data.type)t.resolve(r.data.files),navigator.serviceWorker.removeEventListener("message",n)};return this.ready.then(function(){navigator.serviceWorker.addEventListener("message",r),navigator.serviceWorker.controller.postMessage({type:"uppy/GET_FILES",store:e.name})}),n},n.put=function(e){var t=this;return this.ready.then(function(){navigator.serviceWorker.controller.postMessage({type:"uppy/ADD_FILE",store:t.name,file:e})})},n.delete=function(e){var t=this;return this.ready.then(function(){navigator.serviceWorker.controller.postMessage({type:"uppy/REMOVE_FILE",store:t.name,fileID:e})})},e}();n.isSupported=t,e.exports=n},34032:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(25858),u=n(57097).Plugin,c=n(58168),p=n(89066),d=n(54850);e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).addBlobToStores=function(e){e.isRemote||(r.ServiceWorkerStore&&r.ServiceWorkerStore.put(e).catch(function(e){r.uppy.log("[GoldenRetriever] Could not store file","warning"),r.uppy.log(e)}),r.IndexedDBStore.put(e).catch(function(e){r.uppy.log("[GoldenRetriever] Could not store file","warning"),r.uppy.log(e)}))},r.removeBlobFromStores=function(e){r.ServiceWorkerStore&&r.ServiceWorkerStore.delete(e.id).catch(function(e){r.uppy.log("[GoldenRetriever] Failed to remove file","warning"),r.uppy.log(e)}),r.IndexedDBStore.delete(e.id).catch(function(e){r.uppy.log("[GoldenRetriever] Failed to remove file","warning"),r.uppy.log(e)})},r.replaceBlobInStores=function(e){r.removeBlobFromStores(e),r.addBlobToStores(e)},r.handleRestoreConfirmed=function(){r.uppy.log("[GoldenRetriever] Restore confirmed, proceeding...");var e=r.uppy.getState().currentUploads;e&&(Object.keys(e).forEach(function(t){r.uppy.restore(t,e[t])}),r.uppy.resumeAll()),r.uppy.upload(),r.uppy.setState({recoveredState:null})},r.abortRestore=function(){r.uppy.log("[GoldenRetriever] Aborting restore...");var e=Object.keys(r.uppy.getState().files);r.deleteBlobs(e).then(function(){r.uppy.log("[GoldenRetriever] Removed "+e.length+" files")}).catch(function(t){r.uppy.log("[GoldenRetriever] Could not remove "+e.length+" files","warning"),r.uppy.log(t)}),r.uppy.cancelAll(),r.uppy.setState({recoveredState:null}),d.cleanup(r.uppy.opts.id)},r.handleComplete=function(e){var t=e.successful,n=t.map(function(e){return e.id});r.deleteBlobs(n).then(function(){r.uppy.log("[GoldenRetriever] Removed "+t.length+" files that finished uploading")}).catch(function(e){r.uppy.log("[GoldenRetriever] Could not remove "+t.length+" files that finished uploading","warning"),r.uppy.log(e)}),r.uppy.setState({recoveredState:null}),d.cleanup(r.uppy.opts.id)},r.restoreBlobs=function(){r.uppy.getFiles().length>0?Promise.all([r.loadFileBlobsFromServiceWorker(),r.loadFileBlobsFromIndexedDB()]).then(function(e){var t=i({},e[0],e[1]);r.onBlobsLoaded(t)}):(r.uppy.log("[GoldenRetriever] No files need to be loaded, only restoring processing state..."),r.onBlobsLoaded([]))},r.type="debugger",r.id=r.opts.id||"GoldenRetriever",r.title="Golden Retriever";return r.opts=i({},{expires:864e5,serviceWorker:!1},n),r.MetaDataStore=new d({expires:r.opts.expires,storeName:t.getID()}),r.ServiceWorkerStore=null,r.opts.serviceWorker&&(r.ServiceWorker
2Store=new c({storeName:t.getID()})),r.IndexedDBStore=new p(i({expires:r.opts.expires},r.opts.indexedDB||{},{storeName:t.getID()})),r.saveFilesStateToLocalStorage=l(r.saveFilesStateToLocalStorage.bind(s(r)),500,{leading:!0,trailing:!0}),r.restoreState=r.restoreState.bind(s(r)),r.loadFileBlobsFromServiceWorker=r.loadFileBlobsFromServiceWorker.bind(s(r)),r.loadFileBlobsFromIndexedDB=r.loadFileBlobsFromIndexedDB.bind(s(r)),r.onBlobsLoaded=r.onBlobsLoaded.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.restoreState=function(){var e=this.MetaDataStore.load();e&&(this.uppy.log("[GoldenRetriever] Recovered some state from Local Storage"),this.uppy.setState({currentUploads:e.currentUploads||{},files:e.files||{},recoveredState:e}),this.savedPluginData=e.pluginData)},o.getWaitingFiles=function(){var e={};return this.uppy.getFiles().forEach(function(t){t.progress&&t.progress.uploadStarted||(e[t.id]=t)}),e},o.getUploadingFiles=function(){var e=this,t={},n=this.uppy.getState().currentUploads;n&&Object.keys(n).forEach(function(r){n[r].fileIDs.forEach(function(n){t[n]=e.uppy.getFile(n)})});return t},o.saveFilesStateToLocalStorage=function(){var e=i({},this.getWaitingFiles(),this.getUploadingFiles());
2if(0===Object.keys(e).length)return this.uppy.setState({recoveredState:null}),void d.cleanup(this.uppy.opts.id);var t={};Object.keys(e).forEach(function(n){e[n].isRemote?t[n]=i({},e[n],{isRestored:!0}):t[n]=i({},e[n],{isRestored:!0,data:null,preview:null})});var n={};this.uppy.emit("restore:get-data",function(e){i(n,e)});var r=this.uppy.getState().currentUploads;this.MetaDataStore.save({currentUploads:r,files:t,pluginData:n})},o.loadFileBlobsFromServiceWorker=function(){var e=this;return this.ServiceWorkerStore?this.ServiceWorkerStore.list().then(function(t){var n=e.uppy.getFiles().filter(function(e){return!e.isRemote}),r=Object.keys(t).length;return r===n.length?(e.uppy.log("[GoldenRetriever] Successfully recovered "+r+" blobs from Service Worker!"),t):(e.uppy.log("[GoldenRetriever] No blobs found in Service Worker, trying IndexedDB now..."),{})}).catch(function(t){return e.uppy.log("[GoldenRetriever] Failed to recover blobs from Service Worker","warning"),e.uppy.log(t),{}}):Promise.resolve({})},o.loadFileBlobsFromIndexedDB=function(){var e=this;return this.IndexedDBStore.list().then(function(t){var n=Object.keys(t).length;return n>0?(e.uppy.log("[GoldenRetriever] Successfully recovered "+n+" blobs from IndexedDB!"),t):(e.uppy.log("[GoldenRetriever] No blobs found in IndexedDB"),{})}).catch(function(t){return e.uppy.log("[GoldenRetriever] Failed to recover blobs from IndexedDB","warning"),e.uppy.log(t),{}})},o.onBlobsLoaded=function(e){var t=this,n=[],r=i({},this.uppy.getState().files);Object.keys(e).forEach(function(o){var s=t.uppy.getFile(o);if(s){var a={data:e[o],isRestored:!0,isGhost:!1};r[o]=i({},s,a)}else n.push(o)}),Object.keys(r).forEach(function(e){null===r[e].data&&(r[e]=i({},r[e],{isGhost:!0}))}),this.uppy.setState({files:r}),this.uppy.emit("restored",this.savedPluginData),n.length&&this.deleteBlobs(n).then(function(){t.uppy.log("[GoldenRetriever] Cleaned up "+n.length+" old files")}).catch(function(e){t.uppy.log("[GoldenRetriever] Could not clean up "+n.length+" old files","warning"),t.uppy.log(e)})},o.deleteBlobs=function(e){var t=this,n=[];return e.forEach(function(e){t.ServiceWorkerStore&&n.push(t.ServiceWorkerStore.delete(e)),t.IndexedDBStore&&n.push(t.IndexedDBStore.delete(e))}),Promise.all(n)},o.install=function(){this.restoreState(),this.restoreBlobs(),this.uppy.on("file-added",this.addBlobToStores),this.uppy.on("file-editor:complete",this.replaceBlobInStores),this.uppy.on("file-removed",this.removeBlobFromStores),this.uppy.on("state-update",this.saveFilesStateToLocalStorage),this.uppy.on("restore-confirmed",this.handleRestoreConfirmed),this.uppy.on("restore-canceled",this.abortRestore),this.uppy.on("complete",this.handleComplete)},o.uninstall=function(){this.uppy.off("file-added",this.addBlobToStores),this.uppy.off("file-editor:complete",this.replaceBlobInStores),this.uppy.off("file-removed",this.removeBlobFromStores),this.uppy.off("state-update",this.saveFilesStateToLocalStorage),this.uppy.off("restore-confirmed",this.handleRestoreConfirmed),this.uppy.off("restore-canceled",this.abortRestore),this.uppy.off("complete",this.handleComplete)},r}(u),r.VERSION="1.4.2",o)},95215:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(63508).ProviderViews;e.exports=function(e){var t,n;function o(){return e.apply(this,arguments)||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toggleCheckbox=function(t,n){t.stopPropagation(),t.preventDefault(),n.custom.isTeamDrive||n.custom.isSharedDrive||e.prototype.toggleCheckbox.call(this,t,n)},o}(o)},70268:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(88788).Provider,u=n(95215),c=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).id=r.opts.id||"GoogleDrive",r.title=r.opts.title||"Google Drive",l.initPlugin(i(r),n),r.title=r.opts.title||"Google Drive",r.icon=function(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",fill:"#4285F4",width:"32",height:"32",rx:"16"}),c("path",{d:"M10.324 23.3l3-5.1H25l-3 5.1H10.324zM13 18.2l-3 5.1-3-5.1 5.839-9.924 2.999 5.1L13 18.2zm11.838-.276h-6L13 8h6l5.84 9.924h-.002z",fill:"#FFF"})))},r.provider=new l(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionKeysParams:r.opts.companionKeysParams,companionCookiesRule:r.opts.companionCookiesRule,provider:"drive",pluginId:r.id}),r.onFirstRender=r.onFirstRender.bind(i(r)),r.render=r.render.bind(i(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new u(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("root","/")])},o.render=function(e){return this.view.render(e)},r}(a),r.VERSION="1.7.2",o)},20780:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).render=function(e){var t=e.info,n=t.isHidden,o=t.message,i=t.details;return l("div",{className:"uppy uppy-Informer","aria-hidden":n},l("p",{role:"alert"},o," ",i&&l("span",{"aria-label":i,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:function(){alert(o+" \n\n "+i)},onMouseOver:function(){clearTimeout(r.uppy.infoTimeoutID)},onMouseLeave:function(){r.uppy.infoTimeoutID=setTimeout(r.uppy.hideInfo,2e3)}},"?")))},r.type="progressindicator",r.id=r.opts.id||"Informer",r.title="Informer";return r.opts=i({},{},n),r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n),r.prototype.install=function(){var e=this.opts.target;e&&this.mount(e,this)},r}(a),r.VERSION="1.6.6",o)},40630:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(88788).Provider,u=n(63508).ProviderViews,c=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).id=r.opts.id||"Instagram",l.initPlugin(i(r),n),r.title=r.opts.title||"Instagram",r.icon=function(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",fill:"#E1306C",width:"32",height:"32",rx:"16"}),c("path",{d:"M16 8.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.67.31.392.144.745.374 1.036.673.299.29.529.644.673 1.035.123.317.27.794.31 1.671.043.95.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671a2.98 2.98 0 0 1-1.708 1.708c-.317.123-.794.27-1.671.31-.95.043-1.234.053-3.637.053s-2.688-.01-3.637-.053c-.877-.04-1.354-.187-1.671-.31a2.788 2.788 0 0 1-1.035-.673 2.788 2.788 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.67.144-.392.374-.745.673-1.036.29-.299.644-.529 1.035-.673.317-.123.794-.27 1.671-.31.95-.043 1.234-.052 3.637-.052zM16 7c-2.444 0-2.75.01-3.71.054-.959.044-1.613.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.813.993-1.039 1.594-.222.572-.374 1.226-.418 2.184C7.01 13.25 7 13.556 7 16s.01 2.75.054 3.71c.044.959.196 1.613.419 2.185.226.6.58 1.145 1.038 1.594.45.458.993.813 1.594 1.038.572.223 1.227.375 2.184.419.96.044 1.267.054 3.711.054s2.75-.01 3.71-.054c.959-.044 1.613-.196 2.185-.419a4.602 4.602 0 0 0 2.632-2.632c.223-.572.375-1.226.419-2.184.044-.96.054-1.267.054-3.711s-.01-2.75-.054-3.71c-.044-.959-.196-1.613-.419-2.185A4.412 4.412 0 0 0 23.49 8.51a4.412 4.412 0 0 0-1.594-1.039c-.572-.222-1.226-.374-2.184-.418C18.75 7.01 18.444 7 16 7zm0 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.421a2.921 2.921 0 1 1 0-5.842 2.921 2.921 0 0 1 0 5.842zm4.875-6.671a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25z",fill:"#FFF"})))},r.provider=new l(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionKeysParams:r.opts.companionKeysParams,companionCookiesRule:r.opts.companionCookiesRule,provider:"instagram",pluginId:r.id}),r.onFirstRender=r.onFirstRender.bind(i(r)),r.render=r.render.bind(i(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new u(this,{provider:this.provider,viewType:"grid",showTitles:!1,show
2Filter:!1,showBreadcrumbs:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("recent")])},o.render=function(e){return this.view.render(e)},r}(a),r.VERSION="1.5.2",o)},91154:function(e,t,n){var r,o;function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(88788).Provider,u=n(63508).ProviderViews,c=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).id=r.opts.id||"OneDrive",l.initPlugin(i(r),n),r.title=r.opts.title||"OneDrive",r.icon=function(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#0262C0"}),c("g",{fill:"#FFF",fillRule:"nonzero"},c("path",{d:"M24.157 22s1.492-.205 1.79-1.655a2.624 2.624 0 0 0 .03-.878c-.22-1.64-1.988-2.01-1.988-2.01s.307-1.765-1.312-2.69c-1.62-.925-3.1 0-3.1 0S18.711 13 16.366 13c-3.016 0-3.519 3.448-3.519 3.448S10 16.618 10 19.14c0 2.523 2.597 2.86 2.597 2.86h11.56z"}),c("path",{d:"M9.421 19.246c0-2.197 1.606-3.159 2.871-3.472.44-1.477 1.654-3.439 4.135-3.439H16.445c1.721 0 2.79.823 3.368 1.476a3.99 3.99 0 0 1 1.147-.171h.01l.03.002C21.017 13.5 20.691 10 16.757 10c-2.69 0-3.639 2.345-3.639 2.345s-1.95-1.482-3.955.567c-1.028 1.052-.79 2.669-.79 2.669S6 15.824 6 18.412C6 20.757 8.452 21 8.452 21h1.372a3.77 3.77 0 0 1-.403-1.754z"}))))},r.provider=new l(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionCookiesRule:r.opts.companionCookiesRule,provider:"onedrive",pluginId:r.id}),r.onFirstRender=r.onFirstRender.bind(i(r)),r.render=r.render.bind(i(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new u(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},o.render=function(e){return this.view.render(e)},r}(a),r.VERSION="1.2.2",o)},55577:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(95237).h;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).id=r.opts.id||"ProgressBar",r.title="Progress Bar",r.type="progressindicator";return r.opts=i({},{target:"body",replaceTargetContent:!1,fixed:!1,hideAfterFinish:!0},n),r.render=r.render.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.render=function(e){var t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return l("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},l("div",{className:"uppy-ProgressBar-inner",style:{width:t+"%"}}),l("div",{className:"uppy-ProgressBar-percentage"},t))},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},r}(a),r.VERSION="1.3.30",o)},63330:function(e,t,n){var r=n(95237).h,o=function(e){return r("span",null,r("button",{type:"button",className:"uppy-u-reset",onClick:e.getFolder},e.title),e.isLast?"":" / ")};e.exports=function(e){return r("div",{className:"uppy-Provider-breadcrumbs"},r("div",{className:"uppy-Provider-breadcrumbsIcon"},e.breadcrumbsIcon),e.directories.map(function(t,n){return r(o,{key:t.id,getFolder:function(){return e.getFolder(t.id)},title:0===n?e.title:t.title,isLast:n+1===e.directories.length})}))}},29600:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(46942),i=n(65672),s=n(53353),a=n(77622),l=n(95237).h;e.exports=function(e){var t=e.currentSelection,n=e.folders,u=e.files,c=e.uppyFiles,p=e.filterItems,d=n,h=u;""!==e.filterInput&&(d=p(n),h=p(u));var f=t.length;return l("div",{className:o("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--"+e.viewType)},l("div",{className:"uppy-ProviderBrowser-header"},l("div",{className:o("uppy-ProviderBrowser-headerBar",!e.showBreadcrumbs&&"uppy-ProviderBrowser-headerBar--simple")},e.headerComponent)),e.showFilter&&l(i,e),l(s,{columns:[{name:"Name",key:"title"}],folders:d,files:h,sortByTitle:e.sortByTitle,sortByDate:e.sortByDate,isChecked:e.isChecked,handleFolderClick:e.getNextFolder,toggleCheckbox:e.toggleCheckbox,handleScroll:e.handleScroll,title:e.title,showTitles:e.showTitles,i18n:e.i18n,viewType:e.viewType,validateRestrictions:e.validateRestrictions,uppyFiles:c,currentSelection:t}),f>0&&l(a,r({selected:f},e)))}},41:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237).Component;e.exports=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.componentWillUnmount=function(){this.props.onUnmount()},i.render=function(){return this.props.children[0]},o}(o)},65672:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237),i=o.h,s=o.Component;e.exports=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).preventEnterPress=n.preventEnterPress.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.preventEnterPress=function(e){13===e.keyCode&&(e.stopPropagation(),e.preventDefault())},s.render=function(){var e=this;return i("div",{className:"uppy-ProviderBrowser-search"},i("input",{className:"uppy-u-reset uppy-ProviderBrowser-searchInput",type:"text",placeholder:this.props.i18n("filter"),"aria-label":this.props.i18n("filter"),onKeyUp:this.preventEnterPress,onKeyDown:this.preventEnterPress,onKeyPress:this.preventEnterPress,onInput:function(t){return e.props.filterQuery(t)},value:this.props.filterInput}),i("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-ProviderBrowser-searchIcon",width:"12",height:"12",viewBox:"0 0 12 12"},i("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),this.props.filterInput&&i("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchClose",type:"button","aria-label":this.props.i18n("resetFilter"),title:this.props.i18n("resetFilter"),onClick:this.props.filterQuery},i("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},i("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))))},o}(s)}
2,77622:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("div",{className:"uppy-ProviderBrowser-footer"},r("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:e.done},e.i18n("selectX",{smart_count:e.selected})),r("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:e.cancel},e.i18n("cancel")))}},33656:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("li",{className:e.className,title:e.isDisabled?e.restrictionReason:null},r("div",{"aria-hidden":!0,className:"uppy-ProviderBrowserItem-fakeCheckbox "+(e.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":"")}),r("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-inner",onClick:e.toggleCheckbox,role:"option","aria-label":e.isChecked?e.i18n("unselectFileNamed",{name:e.title}):e.i18n("selectFileNamed",{name:e.title}),"aria-selected":e.isChecked,"aria-disabled":e.isDisabled,disabled:e.isDisabled,"data-uppy-super-focusable":!0},e.itemIconEl,e.showTitles&&e.title))}},85789:function(e,t,n){var r=n(95237).h;function o(){return r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},r("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function i(){return r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},r("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function s(){return r("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},r("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),r("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}e.exports=function(e){if(null!==e.itemIconString)switch(e.itemIconString){case"file":return r(o,null);case"folder":return r(i,null);case"video":return r(s,null);default:return r("img",{src:e.itemIconString})}}},59872:function(e,t,n){var r=n(95237).h,o=function(e){return"folder"===e.type?e.isChecked?e.i18n("unselectAllFilesFromFolderNamed",{name:e.title}):e.i18n("selectAllFilesFromFolderNamed",{name:e.title}):e.isChecked?e.i18n("unselectFileNamed",{name:e.title}):e.i18n("selectFileNamed",{name:e.title})};e.exports=function(e){return r("li",{className:e.className,title:e.isDisabled?e.restrictionReason:null},e.isCheckboxDisabled?null:r("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-fakeCheckbox "+(e.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":""),onClick:e.toggleCheckbox,id:e.id,role:"option","aria-label":o(e),"aria-selected":e.isChecked,"aria-disabled":e.isDisabled,disabled:e.isDisabled,"data-uppy-super-focusable":!0}),"file"===e.type?r("label",{htmlFor:e.id,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},r("div",{className:"uppy-ProviderBrowserItem-iconWrap"},e.itemIconEl),e.showTitles&&e.title):r("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-inner",onClick:e.handleFolderClick,"aria-label":e.i18n("openFolderNamed",{name:e.title})},r("div",{className:"uppy-ProviderBrowserItem-iconWrap"},e.itemIconEl),e.showTitles&&r("span",null,e.title)))}},26254:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(95237).h,i=n(46942),s=n(85789),a=n(33656),l=n(59872);e.exports=function(e){var t=e.getItemIcon(),n=i("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":e.isChecked},{"uppy-ProviderBrowserItem--disabled":e.isDisabled},{"uppy-ProviderBrowserItem--noPreview":"video"===t}),u=o(s,{itemIconString:t});switch(e.viewType){case"grid":return o(a,r({},e,{className:n,itemIconEl:u}));case"list":return o(l,r({},e,{className:n,itemIconEl:u}));default:throw new Error("There is no such type "+e.viewType)}}},53353:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(95237).h,i=n(57624),s=n(26254),a=function(e,t){return{id:e.id,title:e.name,getItemIcon:function(){return e.icon},isChecked:t.isChecked(e),toggleCheckbox:function(n){return t.toggleCheckbox(n,e)},columns:t.columns,showTitles:t.showTitles,viewType:t.viewType,i18n:t.i18n}};e.exports=function(e){var t=e.folders,n=e.files,l=e.handleScroll,u=e.isChecked;return t.length||n.length?o("div",{className:"uppy-ProviderBrowser-body"},o("ul",{className:"uppy-ProviderBrowser-list",onScroll:l,role:"listbox",tabIndex:"-1"},t.map(function(t){return s(r({},a(t,e),{type:"folder",isDisabled:!!u(t)&&u(t).loading,isCheckboxDisabled:"shared-with-me"===t.id,handleFolderClick:function(){return e.handleFolderClick(t)}}))}),n.map(function(t){var n=e.validateRestrictions(i(t),[].concat(e.uppyFiles,e.currentSelection)),o=a(t,e),l=n.reason;return s(r({}
2,o,{type:"file",isDisabled:!n.result&&!o.isChecked,restrictionReason:l}))}))):o("div",{className:"uppy-Provider-empty"},e.i18n("noFilesFound"))}},85465:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("div",{className:"uppy-Provider-loading"},r("span",null,e.i18n("loading")))}},28178:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(95237),i=o.h,s=function(e){var t,n;function o(){return e.apply(this,arguments)||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.render=function(){var e=i("span",{className:"uppy-Provider-authTitleName"},this.props.pluginName,i("br",null));return i("div",{className:"uppy-Provider-auth"},i("div",{className:"uppy-Provider-authIcon"},this.props.pluginIcon()),i("div",{className:"uppy-Provider-authTitle"},this.props.i18nArray("authenticateWithTitle",{pluginName:e})),i("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn",onClick:this.props.handleAuth,"data-uppy-super-focusable":!0},this.props.i18nArray("authenticateWith",{pluginName:this.props.pluginName})))},o}(o.Component);e.exports=s},42208:function(e,t,n){var r=n(25390),o=n(63330);e.exports=function(e){var t=[];return e.showBreadcrumbs&&t.push(o({getFolder:e.getFolder,directories:e.directories,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title})),t.push(r({logout:e.logout,username:e.username,i18n:e.i18n})),t}},45:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(95237).h,a=n(28178),l=n(42208),u=n(29600),c=n(85465),p=n(77383),d=n(84905),h=n(6214),f=n(19953),m=n(74251),g=n(41);e.exports=(o=r=function(){function e(e,t){this.plugin=e,this.provider=t.provider,this._sharedHandler=new m(e);this.opts=i({},{viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0},t),this.addFile=this.addFile.bind(this),this.filterQuery=this.filterQuery.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.preFirstRender=this.preFirstRender.bind(this),this.handleAuth=this.handleAuth.bind(this),this.sortByTitle=this.sortByTitle.bind(this),this.sortByDate=this.sortByDate.bind(this),this.handleError=this.handleError.bind(this),this.handleScroll=this.handleScroll.bind(this),this.listAllFiles=this.listAllFiles.bind(this),this.donePicking=this.donePicking.bind(this),this.cancelPicking=this.cancelPicking.bind(this),this.clearSelection=this.clearSelection.bind(this),this.render=this.render.bind(this),this.clearSelection(),this.plugin.setPluginState({authenticated:!1,files:[],folders:[],directories:[],filterInput:"",isSearchVisible:!1})}var t=e.prototype;return t.tearDown=function(){},t._updateFilesAndFolders=function(e,t,n){this.nextPagePath=e.nextPagePath,e.items.forEach(function(e){e.isFolder?n.push(e):t.push(e)}),this.plugin.setPluginState({folders:n,files:t})},t.preFirstRender=function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},t.getFolder=function(e,t){var n=this;return this._sharedHandler.loaderWrapper(this.provider.list(e),function(r){var o,i=n.plugin.getPluginState(),s=h(i.directories,function(t){return e===t.id});o=-1!==s?i.directories.slice(0,s+1):i.directories.concat([{id:e,title:t}]),n.username=r.username||n.username,n._updateFilesAndFolders(r,[],[]),n.plugin.setPluginState({directories:o})},this.handleError)},t.getNextFolder=function(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0},t.addFile=function(e){var t={id:this.providerFileToId(e),source:this.plugin.id,data:e,name:e.name||e.id,type:e.mimeType,isRemote:!0,body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:""+this.provider.fileUrl(e.requestPath),body:{fileId:e.id},providerOptions:this.provider.opts}},n=d(t);n&&f(n)&&(t.preview=e.thumbnail),this.plugin.uppy.log("Adding remote file");try{return this.plugin.uppy.addFile(t),!0}catch(e){return e.isRestriction||this.plugin.uppy.log(e),!1}},t.logout=function(){var e=this;this.provider.logout().then(function(t){if(t.ok){if(!t.revoked){var n=e.plugin.uppy.i18n("companionUnauthorizeHint",{provider:e.plugin.title,url:t.manual_revoke_url});e.plugin.uppy.info(n,"info",7e3)}e.plugin.setPluginState({authenticated:!1,files:[],folders:[],directories:[]})}}).catch(this.handleError)},t.filterQuery=function(e){var t=this.plugin.getPluginState();this.plugin.setPluginState(i({},t,{filterInput:e?e.target.value:""}))},t.sortByTitle=function(){var e=i({},this.plugin.getPluginState()),t=e.files,n=e.folders,r=e.sorting,o=t.sort(function(e,t){return"titleDescending"===r?t.name.localeCompare(e.name):e.name.localeCompare(t.name)}),s=n.sort(function(e,t){return"titleDescending"===r?t.name.localeCompare(e.name):e.name.localeCompare(t.name)});this.plugin.setPluginState(i({},e,{files:o,folders:s,sorting:"titleDescending"===r?"titleAscending":"titleDescending"}))},t.sortByDate=function(){var e=i({},this.plugin.getPluginState()),t=e.files,n=e.folders,r=e.sorting,o=t.sort(function(e,t){var n=new Date(e.modifiedDate),o=new Date(t.modifiedDate);return"dateDescending"===r?n>o?-1:n<o?1:0:n>o?1:n<o?-1:0}),s=n.sort(function(e,t){var n=new Date(e.modifiedDate),o=new Date(t.modifiedDate);return"dateDescending"===r?n>o?-1:n<o?1:0:n>o?1:n<o?-1:0});this.plugin.setPluginState(i({},e,{files:o,folders:s,sorting:"dateDescending"===r?"dateAscending":"dateDescending"}))},t.sortBySize=function(){var e=i({},this.plugin.getPluginState()),t=e.files,n=e.sorting;if(t.length&&this.plugin.getItemData(t[0]).size){var r=t.sort(function(e,t){var r=e.size,o=t.size;return"sizeDescending"===n?r>o?-1:r<o?1:0:r>o?1:r<o?-1:0});this.plugin.setPluginState(i({},e,{files:r,sorting:"sizeDescending"===n?"sizeAscending":"sizeDescending"}))}},t.addFolder=function(e){var t=this,n=this.providerFileToId(e),r=i({},this.plugin.getPluginState().selectedFolders);if(!(n in r)||!r[n].loading)return r[n]={loading:!0,files:[]},this.plugin.setPluginState({selectedFolders:i({},r)}),this.listAllFiles(e.requestPath).then(function(o){var i=0;o.forEach(function(e){t.addFile(e)&&i++});var s,a=o.map(t.providerFileToId);r[n]={loading:!1,files:a},t.plugin.setPluginState({selectedFolders:r}),s=o.length?t.plugin.uppy.i18n("folderAdded",{smart_count:i,folder:e.name}):t.plugin.uppy.i18n("emptyFolderAdded"),t.plugin.uppy.info(s)}).catch(function(e){var r=i({},t.plugin.getPluginState().selectedFolders);delete r[n],t.plugin.setPluginState({selectedFolders:r}),t.handleError(e)})},t.providerFileToId=function(e){return p({data:e,name:e.name||e.
2id,type:e.mimeType})},t.handleAuth=function(){var t=this,n=btoa(JSON.stringify({origin:"origin"in location?location.origin:location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")})),r="@uppy/provider-views="+e.VERSION,o=this.provider.authUrl({state:n,uppyVersions:r}),i=window.open(o,"_blank");window.addEventListener("message",function e(n){if(t._isOriginAllowed(n.origin,t.plugin.opts.companionAllowedHosts)&&n.source===i){var r="string"==typeof n.data?JSON.parse(n.data):n.data;r.token?(i.close(),window.removeEventListener("message",e),t.provider.setAuthToken(r.token),t.preFirstRender()):t.plugin.uppy.log("did not receive token from auth window")}else t.plugin.uppy.log("rejecting event from "+n.origin+" vs allowed pattern "+t.plugin.opts.companionAllowedHosts)})},t._isOriginAllowed=function(e,t){var n=function(e){return"string"==typeof e?new RegExp("^"+e+"$"):e instanceof RegExp?e:void 0};return(Array.isArray(t)?t.map(n):[n(t)]).filter(function(e){return null!=e}).some(function(t){return t.test(e)||t.test(e+"/")})},t.handleError=function(e){var t=this.plugin.uppy;if(t.log(e.toString()),!e.isAuthError){var n=t.i18n("companionError");t.info({message:n,details:e.toString()},"error",5e3)}},t.handleScroll=function(e){var t=this,n=e.target.scrollHeight-(e.target.scrollTop+e.target.offsetHeight),r=this.nextPagePath||null;n<50&&r&&!this._isHandlingScroll&&(this.provider.list(r).then(function(e){var n=t.plugin.getPluginState(),r=n.files,o=n.folders;t._updateFilesAndFolders(e,r,o)}).catch(this.handleError).then(function(){t._isHandlingScroll=!1}),this._isHandlingScroll=!0)},t.listAllFiles=function(e,t){var n=this;return void 0===t&&(t=null),t=t||[],new Promise(function(r,o){n.provider.list(e).then(function(e){e.items.forEach(function(e){e.isFolder?n.addFolder(e):t.push(e)});var i=e.nextPagePath||null;return i?n.listAllFiles(i,t).then(function(e){return r(e)}).catch(function(e){return o(e)}):r(t)}).catch(function(e){return o(e)})})},t.donePicking=function(){var e=this,t=this.plugin.getPluginState().currentSelection.map(function(t){return t.isFolder?e.addFolder(t):e.addFile(t)});this._sharedHandler.loaderWrapper(Promise.all(t),function(){e.clearSelection()},function(){})},t.cancelPicking=function(){this.clearSelection();var e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()},t.clearSelection=function(){this.plugin.setPluginState({currentSelection:[]})},t.render=function(e,t){void 0===t&&(t={});var n=this.plugin.getPluginState(),r=n.authenticated;if(n.didFirstRender||this.preFirstRender(),this.plugin.getPluginState().loading)return s(g,{onUnmount:this.clearSelection},s(c,{i18n:this.plugin.uppy.i18n}));if(!r)return s(g,{onUnmount:this.clearSelection},s(a,{pluginName:this.plugin.title,pluginIcon:this.plugin.icon,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18n,i18nArray:this.plugin.uppy.i18nArray}));var o=i({},this.opts,t),p={showBreadcrumbs:o.showBreadcrumbs,getFolder:this.getFolder,directories:this.plugin.getPluginState().directories,pluginIcon:this.plugin.icon,title:this.plugin.title,logout:this.logout,username:this.username,i18n:this.plugin.uppy.i18n},d=i({},this.plugin.getPluginState(),{username:this.username,getNextFolder:this.getNextFolder,getFolder:this.getFolder,filterItems:this._sharedHandler.filterItems,filterQuery:this.filterQuery,sortByTitle:this.sortByTitle,sortByDate:this.sortByDate,logout:this.logout,isChecked:this._sharedHandler.isChecked,toggleCheckbox:this._sharedHandler.toggleCheckbox,handleScroll:this.handleScroll,listAllFiles:this.listAllFiles,done:this.donePicking,cancel:this.cancelPicking,headerComponent:l(p),title:this.plugin.title,viewType:o.viewType,showTitles:o.showTitles,showFilter:o.showFilter,showBreadcrumbs:o.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:this.plugin.uppy.validateRestrictions});return s(g,{onUnmount:this.clearSelection},s(u,d))},e}(),r.VERSION="1.12.3",o)},25390:function(e,t,n){var r=n(95237).h;e.exports=function(e){return[r("span",{className:"uppy-ProviderBrowser-user",key:"username"},e.username),r("button",{type:"button",onClick:e.logout,className:"uppy-u-reset uppy-ProviderBrowser-userL
2ogout",key:"logout"},e.i18n("logOut"))]}},67433:function(e,t,n){e.exports=n(45)},5708:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("button",{type:"button",onClick:e.triggerSearchInput,className:"uppy-u-reset uppy-ProviderBrowser-userLogout"},e.i18n("backToSearch"))}},60656:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t,n=function(){t.value&&e.search(t.value)};return r("div",{className:"uppy-SearchProvider"},r("input",{className:"uppy-u-reset uppy-c-textInput uppy-SearchProvider-input",type:"text","aria-label":e.i18n("enterTextToSearch"),placeholder:e.i18n("enterTextToSearch"),onKeyUp:function(e){13===e.keyCode&&n()},ref:function(e){t=e},"data-uppy-super-focusable":!0}),r("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-SearchProvider-searchButton",type:"button",onClick:n},e.i18n("searchImages")))}},62625:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(95237).h,a=n(60656),l=n(29600),u=n(85465),c=n(77383),p=n(84905),d=n(19953),h=n(5708),f=n(74251),m=n(41);e.exports=(o=r=function(){function e(e,t){this.plugin=e,this.provider=t.provider,this._sharedHandler=new f(e);this.opts=i({}
2,{viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1},t),this.search=this.search.bind(this),this.triggerSearchInput=this.triggerSearchInput.bind(this),this.addFile=this.addFile.bind(this),this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.cancelPicking=this.cancelPicking.bind(this),this.clearSelection=this.clearSelection.bind(this),this.render=this.render.bind(this),this.clearSelection(),this.plugin.setPluginState({isInputMode:!0,files:[],folders:[],directories:[],filterInput:"",isSearchVisible:!1})}var t=e.prototype;return t.tearDown=function(){},t._updateFilesAndInputMode=function(e,t){this.nextPageQuery=e.nextPageQuery,this._searchTerm=e.searchedFor,e.items.forEach(function(e){t.push(e)}),this.plugin.setPluginState({isInputMode:!1,files:t})},t.preFirstRender=function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},t.search=function(e){var t=this;if(!e||e!==this._searchTerm)return this._sharedHandler.loaderWrapper(this.provider.search(e),function(e){t._updateFilesAndInputMode(e,[])},this.handleError);this.plugin.setPluginState({isInputMode:!1})},t.triggerSearchInput=function(){this.plugin.setPluginState({isInputMode:!0})},t.addFile=function(e){var t={id:this.providerFileToId(e),source:this.plugin.id,data:e,name:e.name||e.id,type:e.mimeType,isRemote:!0,body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:""+this.provider.fileUrl(e.requestPath),body:{fileId:e.id},providerOptions:i({},this.provider.opts,{provider:null})}},n=p(t);n&&d(n)&&(t.preview=e.thumbnail),this.plugin.uppy.log("Adding remote file");try{this.plugin.uppy.addFile(t)}catch(e){e.isRestriction||this.plugin.uppy.log(e)}},t.providerFileToId=function(e){return c({data:e,name:e.name||e.id,type:e.mimeType})},t.handleError=function(e){var t=this.plugin.uppy;t.log(e.toString());var n=t.i18n("companionError");t.info({message:n,details:e.toString()},"error",5e3)},t.handleScroll=function(e){var t=this,n=e.target.scrollHeight-(e.target.scrollTop+e.target.offsetHeight),r=this.nextPageQuery||null;n<50&&r&&!this._isHandlingScroll&&(this.provider.search(this._searchTerm,r).then(function(e){var n=t.plugin.getPluginState().files;t._updateFilesAndInputMode(e,n)}).catch(this.handleError).then(function(){t._isHandlingScroll=!1}),this._isHandlingScroll=!0)},t.donePicking=function(){var e=this,t=this.plugin.getPluginState().currentSelection.map(function(t){return e.addFile(t)});this._sharedHandler.loaderWrapper(Promise.all(t),function(){e.clearSelection()},function(){})},t.cancelPicking=function(){this.clearSelection();var e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()},t.clearSelection=function(){this.plugin.setPluginState({currentSelection:[]})},t.render=function(e,t){void 0===t&&(t={});var n=this.plugin.getPluginState(),r=n.didFirstRender,o=n.isInputMode;if(r||this.preFirstRender(),this.plugin.getPluginState().loading)return s(m,{onUnmount:this.clearSelection},s(u,{i18n:this.plugin.uppy.i18n}));if(o)return s(m,{onUnmount:this.clearSelection},s(a,{search:this.search,i18n:this.plugin.uppy.i18n}));var c=i({},this.opts,t),p=i({},this.plugin.getPluginState(),{isChecked:this._sharedHandler.isChecked,toggleCheckbox:this._sharedHandler.toggleCheckbox,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:h({triggerSearchInput:this.triggerSearchInput,i18n:this.plugin.uppy.i18n}),title:this.plugin.title,viewType:c.viewType,showTitles:c.showTitles,showFilter:c.showFilter,showBreadcrumbs:c.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:this.plugin.uppy.validateRestrictions});return s(m,{onUnmount:this.clearSelection},s(l,p))},e}(),r.VERSION="1.12.3",o)},56477:function(e,t,n){e.exports=n(62625)},74251:function(e,t,n){var r=n(57624);e.exports=function(){function e(e){this.plugin=e,this.filterItems=this.filterItems.bind(this),this.toggleCheckbox=this.toggleCheckbox.bind(this),this.isChecked=this.isChecked.bind(this),this.loaderWrapper=this.loaderWrapper.bind(this)}var t=e.prototype;return t.filterItems=function(e){var t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter(function(e){return-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase())}):e},t.toggleCheckbox=function(e,t){var n=this;
2e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();var o=this.plugin.getPluginState(),i=o.folders,s=o.files,a=this.filterItems(i.concat(s));if(this.lastCheckbox&&e.shiftKey){var l,u=a.indexOf(this.lastCheckbox),c=a.indexOf(t);return l=(l=u<c?a.slice(u,c+1):a.slice(c,u+1)).reduce(function(e,t){var o=n.plugin.uppy,i=o.validateRestrictions(r(t),[].concat(o.getFiles(),e));return i.result?[].concat(e,[t]):(o.info({message:i.reason},"error",o.opts.infoTimeout),e)}),void this.plugin.setPluginState({currentSelection:l})}this.lastCheckbox=t;var p=this.plugin.getPluginState().currentSelection;this.isChecked(t)?this.plugin.setPluginState({currentSelection:p.filter(function(e){return e.id!==t.id})}):this.plugin.setPluginState({currentSelection:p.concat([t])})},t.isChecked=function(e){return this.plugin.getPluginState().currentSelection.some(function(t){return t.id===e.id})},t.loaderWrapper=function(e,t,n){var r=this;e.then(function(e){r.plugin.setPluginState({loading:!1}),t(e)}).catch(function(e){r.plugin.setPluginState({loading:!1}),n(e)}),this.plugin.setPluginState({loading:!0})},e}()},63508:function(e,t,n){var r=n(67433),o=n(56477);e.exports={ProviderViews:r,SearchProviderViews:o}},52636:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="debugger",r.id=r.opts.id||"ReduxDevTools",r.title="Redux DevTools";return r.opts=i({},{},n),r.handleStateChange=r.handleStateChange.bind(s(r)),r.initDevTools=r.initDevTools.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.handleStateChange=function(e,t,n){this.devTools.send("UPPY_STATE_UPDATE",t)},o.initDevTools=function(){var e=this;this.devTools=window.devToolsExtension.connect(),this.devToolsUnsubscribe=this.devTools.subscribe(function(t){if("DISPATCH"===t.type)switch(t.payload.type){case"RESET":return void e.uppy.reset();case"IMPORT_STATE":var n=t.payload.nextLiftedState.computedStates;return e.uppy.store.state=i({},e.uppy.getState(),n[n.length-1].state),void e.uppy.updateAll(e.uppy.getState());case"JUMP_TO_STATE":case"JUMP_TO_ACTION":e.uppy.store.state=i({},e.uppy.getState(),JSON.parse(t.state)),e.uppy.updateAll(e.uppy.getState())}})},o.install=function(){this.withDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,this.withDevTools&&(this.initDevTools(),this.uppy.on("state-update",this.handleStateChange))},o.uninstall=function(){this.withDevTools&&(this.devToolsUnsubscribe(),this.uppy.off("state-update",this.handleStateUpdate))},r}(l),r.VERSION="1.3.9",o)},81355:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(95237),s=i.h,a=i.Component,l=n(58748),u=n(33693),c=n(3242),p=n(80835),d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.componentWillUnmount=function(){this.props.onStop()},a.render=function(){var e=this,t=this.props,n=t.recording,o=t.stream,i=t.recordedVideo,a={playsinline:!0};return(n||!i&&!n)&&(a.muted=!0,a.autoplay=!0,a.srcObject=o),i&&!n&&(a.muted=!1,a.controls=!0,a.src=i,this.videoElement&&(this.videoElement.srcObject=void 0)),s("div",{className:"uppy uppy-ScreenCapture-container"},s("div",{className:"uppy-ScreenCapture-videoContainer"},s(p,this.props),s("video",r({ref:function(t){return e.videoElement=t},className:"uppy-ScreenCapture-video"},a)),s(c,this.props)),s("div",{className:"uppy-ScreenCapture-buttonContainer"},s(l,this.props),s(u,this.props)))},i}(a);e.exports=d},58748:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.recording,n=e.onStartRecording,o=e.onStopRecording,i=e.i18n;return t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video uppy-ScreenCapture-button--stop-rec",type:"button",title:i("stopCapturing"),"aria-label":i("stopCapturing"),onClick:o,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("rect",{x:"15",y:"15",width:"70",height:"70"}))):r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video",type:"button",title:i("startCapturing"),"aria-label":i("startCapturing"),onClick:n,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("circle",{cx:"50",cy:"50",r:"40"})))}},67754:function(e,t,n){var r=n(95237).h;e.exports=function(){return r("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},r("g",{fill:"none",fillRule:"evenodd"},r("rect",{className:"uppy-ProviderIconBg",fill:"#2C3E50",width:"32",height:"32",rx:"16"}),r("path",{d:"M24.182 9H7.818C6.81 9 6 9.742 6 10.667v10c0 .916.81 1.666 1.818 1.666h4.546V24h7.272v-1.667h4.546c1 0 1.809-.75 1.809-1.666l.009-10C26 9.742 25.182 9 24.182 9zM24 21H8V11h16v10z",fill:"#FFF",fillRule:"nonzero"}
2),r("circle",{fill:"#FFF",cx:"16",cy:"16",r:"2"})))}},3242:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(95237),s=i.h,a=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={elapsedTime:0},n.wrapperStyle={width:"100%",height:"100%",display:"flex"},n.overlayStyle={position:"absolute",width:"100%",height:"100%",background:"black",opacity:.7},n.infoContainerStyle={marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto",zIndex:1,color:"white"},n.infotextStyle={marginLeft:"auto",marginRight:"auto",marginBottom:"1rem",fontSize:"1.5rem"},n.timeStyle={display:"block",fontWeight:"bold",marginLeft:"auto",marginRight:"auto",fontSize:"3rem",fontFamily:"Courier New"},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.startTimer=function(){this.timerTick(),this.timerRunning=!0},a.resetTimer=function(){clearTimeout(this.timer),this.setState({elapsedTime:0}),this.timerRunning=!1},a.timerTick=function(){var e=this;this.timer=setTimeout(function(){e.setState({elapsedTime:e.state.elapsedTime+1}),e.timerTick()},1e3)},a.fmtMSS=function(e){return(e-(e%=60))/60+(e>9?":":":0")+e},a.render=function(){var e=r({},this.props),t=e.recording,n=e.i18n,o=this.fmtMSS(this.state.elapsedTime);return t&&!this.timerRunning&&this.startTimer(),!t&&this.timerRunning&&this.resetTimer(),t?s("div",{style:this.wrapperStyle},s("div",{style:this.overlayStyle}),s("div",{style:this.infoContainerStyle},s("div",{style:this.infotextStyle},n("recording")),s("div",{style:this.timeStyle},o))):null},i}(i.Component);e.exports=a},80835:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.streamActive,n=e.i18n;return t?r("div",{title:n("streamActive"),"aria-label":n("streamActive"),className:"uppy-ScreenCapture-icon--stream uppy-ScreenCapture-icon--streamActive"},r("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},r("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),r("path",{d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))):r("div",{title:n("streamPassive"),"aria-label":n("streamPassive"),className:"uppy-ScreenCapture-icon--stream"},r("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},r("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),r("path",{d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z"})))}},33693:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.recording,n=e.recordedVideo,o=e.onSubmit,i=e.i18n;return n&&!t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--submit",type:"button",title:i("submitRecordedFile"),"aria-label":i("submitRecordedFile"),onClick:o,"data-uppy-super-focusable":!0},r("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"}))):null}},56521:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(95237).h,u=n(57097).Plugin,c=n(75221),p=n(87660),d=n(67754),h=n(81355);e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).mediaDevices=navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia&&window&&window.MediaRecorder?navigator.mediaDevices:null,r.protocol=location.protocol.match(/https/i)?"https":"http",r.id=r.opts.id||"ScreenCapture",r.title=r.opts.title||"Screencast",r.type="acquirer",r.icon=d,r.defaultLocale={strings:{startCapturing:"Begin screen capturing",stopCapturing:"Stop screen capturing",submitRecordedFile:"Submit recorded file",streamActive:"Stream active",streamPassive:"Stream passive",micDisabled:"Microphone access denied by user",recording:"Recording"}};return r.opts=i({},{displayMediaConstraints:{video:{width:1280,height:720,frameRate:{ideal:3,max:5},cursor:"motion",displaySurface:"monitor"}},userMediaConstraints:{audio:!0},preferredVideoMimeType:"video/webm"},n),r.translator=new c([r.defaultLocale,r.uppy.locale,r.opts.locale]),r.i18n=r.translator.translate.bind(r.translator),r.i18nArray=r.translator.translateArray.bind(r.translator),r.install=r.install.bind(s(r)),r.setPluginState=r.setPluginState.bind(s(r)),r.render=r.render.bind(s(r)),r.start=r.start.bind(s(r)),r.stop=r.stop.bind(s(r)),r.startRecording=r.startRecording.bind(s(r)),r.stopRecording=r.stopRecording.bind(s(r)),r.submit=r.submit.bind(s(r)),r.streamInterrupted=r.streamInactivated.bind(s(r)),r.captureActive=!1,r.capturedMediaFile=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.install=function(){if(!this.mediaDevices)return this.up
2py.log("Screen recorder access is not supported","error"),null;this.setPluginState({streamActive:!1,audioStreamActive:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.videoStream&&this.stop(),this.unmount()},o.start=function(){var e=this;if(!this.mediaDevices)return Promise.reject(new Error("Screen recorder access not supported"));this.captureActive=!0,this.selectAudioStreamSource(),this.selectVideoStreamSource().then(function(t){!1===t&&e.parent&&e.parent.hideAllPanels&&(e.parent.hideAllPanels(),e.captureActive=!1)})},o.selectVideoStreamSource=function(){var e=this;return this.videoStream?new Promise(function(t){return t(e.videoStream)}):this.mediaDevices.getDisplayMedia(this.opts.displayMediaConstraints).then(function(t){return e.videoStream=t,e.videoStream.addEventListener("inactive",function(t){e.streamInactivated()}),e.setPluginState({streamActive:!0}),t}).catch(function(t){return e.setPluginState({screenRecError:t}),e.userDenied=!0,setTimeout(function(){e.userDenied=!1},1e3),!1})},o.selectAudioStreamSource=function(){var e=this;return this.audioStream?new Promise(function(t){return t(e.audioStream)}):this.mediaDevices.getUserMedia(this.opts.userMediaConstraints).then(function(t){return e.audioStream=t,e.setPluginState({audioStreamActive:!0}),t}).catch(function(t){return"NotAllowedError"===t.name&&e.uppy.info(e.i18n("micDisabled"),"error",5e3),!1})},o.startRecording=function(){var e=this,t={};this.capturedMediaFile=null,this.recordingChunks=[];var n=this.opts.preferredVideoMimeType;this.selectVideoStreamSource().then(function(r){n&&MediaRecorder.isTypeSupported(n)&&p(n)&&(t.mimeType=n);var o=[r.getVideoTracks()[0]];e.audioStream&&o.push(e.audioStream.getAudioTracks()[0]),e.outputStream=new MediaStream(o),e.recorder=new MediaRecorder(e.outputStream,t),e.recorder.addEventListener("dataavailable",function(t){e.recordingChunks.push(t.data)}),e.recorder.start(),e.setPluginState({recording:!0})}).catch(function(t){e.uppy.log(t,"error")})},o.streamInactivated=function(){var e=i({},this.getPluginState()),t=e.recordedVideo,n=e.recording;t||n?n&&(this.uppy.log("Capture stream inactive — stop recording"),this.stopRecording()):this.parent&&this.parent.hideAllPanels&&this.parent.hideAllPanels(),this.videoStream=null,this.audioStream=null,this.setPluginState({streamActive:!1,audioStreamActive:!1})},o.stopRecording=function(){var e=this;return new Promise(function(t,n){e.recorder.addEventListener("stop",function(){t()}),e.recorder.stop()}).then(function(){return e.setPluginState({recording:!1}),e.getVideo()}).then(function(t){e.capturedMediaFile=t,e.setPluginState({recordedVideo:URL.createObjectURL(t.data)})}).then(function(){e.recordingChunks=null,e.recorder=null},function(t){throw e.recordingChunks=null,e.recorder=null,t})},o.submit=function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}},o.stop=function(){this.videoStream&&(this.videoStream.getVideoTracks().forEach(function(e){e.stop()}),this.videoStream.getAudioTracks().forEach(function(e){e.stop()}),this.videoStream=null),this.audioStream&&(this.audioStream.getAudioTracks().forEach(function(e){e.stop()}),this.audioStream.getVideoTracks().forEach(function(e){e.stop()}),this.audioStream=null),this.outputStream&&(this.outputStream.getAudioTracks().forEach(function(e){e.stop()}),this.outputStream.getVideoTracks().forEach(function(e){e.stop()}),this.outputStream=null),this.setPluginState({recordedVideo:null}),this.captureActive=!1},o.getVideo=function(){var e=this.recordingChunks[0].type,t=p(e);if(!t)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'+e+'"'));var n="screencap-"+Date.now()+"."+t,r=new Blob(this.recordingChunks,{type:e}),o={source:this.id,name:n,data:new Blob([r],{type:e}),type:e};return Promise.resolve(o)},o.render=function(e){var t=this.getPluginState();return t.streamActive||this.captureActive||this.userDenied||this.start(),l(h,i({},t,{onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onStop:this.stop,onSubmit:this.submit,i18n:this.i18n,stream:this.videoStream}))},r}(u),r.VERSION="1.1.0",o)},25251:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(25858),i=n(46942),s=n(92009),a=n(58236),l=n(699),u=n(95237).h;e.exports=function(e){var t,n,o=e=e||{},a=o.newFiles,l=o.allowNewUpload,m=o.isUploadInProgress,v=o.isAllPaused,y=o.resumableUploads,b=o.error,C=o.hideUploadButton,P=o.hidePauseResumeButton,E=o.hideCancelButton,_=o.hideRetryButton,x=o.recoveredState,A=e.uploadState,F=e.totalProgress;if(A===s.STATE_PREPROCESSING||A===s.STATE_POSTPROCESSING){var O=function(e){var t=[];Object.keys(e).forEach(function(n){var r=e[n].progress;r.preprocess&&t.push(r.preprocess),r.postprocess&&t.push(r.postprocess)});var n=t[0];return{mode:n.mode,message:n.message,value:t.filter(function(e){return"determinate"===e.mode}).reduce(function(e,t,n,r){return e+t.value/r.length},0)}}(e.files);"determinate"===(t=O.mode)&&(F=100*O.value),n=g(O)}else A===s.STATE_COMPLETE?n=k(e):A===s.STATE_UPLOADING?(e.supportsUploadProgress||(t="indeterminate",F=null),n=w(e)):A===s.STATE_ERROR&&(F=void 0,n=S(e));var R="number"==typeof F?F:100,T=A===s.STATE_WAITING&&e.hideUploadButton||A===s.STATE_WAITING&&!e.newFiles>0||A===s.STATE_COMPLETE&&e.hideAfterFinish,U=!b&&a&&!m&&!v&&l&&!C;x&&(T=!1,U=!0);var B=!E&&A!==s.STATE_WAITING&&A!==s.STATE_COMPLETE,D=y&&!P&&A===s.STATE_UPLOADING,I=b&&!_,N=e.doneButtonHandler&&A===s.STATE_COMPLETE,j="uppy-StatusBar-progress\n                           "+(t?"is-"+t:""),L=i({"uppy-Root":e.isTargetDOMEl},"uppy-StatusBar","is-"+A,{"has-ghosts":e.isSomeGhost});return u("div",{className:L,"aria-hidden":T},u("div",{className:j,style:{width:R+"%"}
2,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":F}),n,u("div",{className:"uppy-StatusBar-actions"},U?u(c,r({},e,{uploadState:A})):null,I?u(p,e):null,D?u(h,e):null,B?u(d,e):null,N?u(f,e):null))};var c=function(e){var t=i("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":e.uploadState===s.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":e.isSomeGhost}),n=e.newFiles&&e.isUploadStarted&&!e.recoveredState?e.i18n("uploadXNewFiles",{smart_count:e.newFiles}):e.i18n("uploadXFiles",{smart_count:e.newFiles});return u("button",{type:"button",className:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onClick:e.startUpload,disabled:e.isSomeGhost,"data-uppy-super-focusable":!0},n)},p=function(e){return u("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":e.i18n("retryUpload"),onClick:e.retryAll,"data-uppy-super-focusable":!0},u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},u("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),e.i18n("retry"))},d=function(e){return u("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:e.i18n("cancel"),"aria-label":e.i18n("cancel"),onClick:e.cancelAll,"data-uppy-super-focusable":!0},u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},u("g",{fill:"none",fillRule:"evenodd"},u("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),u("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},h=function(e){var t=e.isAllPaused,n=e.i18n,r=n(t?"resume":"pause");return u("button",{title:r,"aria-label":r,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return function(e){if(!e.isAllComplete)return e.resumableUploads?e.isAllPaused?e.resumeAll():e.pauseAll():e.cancelAll()}(e)},"data-uppy-super-focusable":!0},u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},u("g",{fill:"none",fillRule:"evenodd"},u("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),u("path",t?{fill:"#FFF",d:"M6 4.25L11.5 8 6 11.75z"}:{d:"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z",fill:"#FFF"}))))},f=function(e){var t=e.i18n;return u("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:e.doneButtonHandler,"data-uppy-super-focusable":!0},t("done"))},m=function(){return u("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},u("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))},g=function(e){var t=Math.round(100*e.value);return u("div",{className:"uppy-StatusBar-content"},u(m,null),"determinate"===e.mode?t+"% · ":"",e.message)},v=function(e){return u("div",{className:"uppy-StatusBar-statusSecondary"},e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}))},y=function(e){var t=i("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return u("div",{className:"uppy-StatusBar-statusSecondary"},u("div",{className:"uppy-StatusBar-statusSecondaryHint"},e.i18n("xMoreFilesAdded",{smart_count:e.newFiles})),u("button",{type:"button",className:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onClick:e.startUpload},e.i18n("upload")))},b=o(function(e){var t=e.numUploads>1;return u("div",{className:"uppy-StatusBar-statusSecondary"},t&&e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}),u("span",{className:"uppy-StatusBar-additionalInfo"},t&&" · ",e.i18n("dataUploadedOfTotal",{complete:a(e.totalUploadedSize),total:a(e.totalSize)})," · ",e.i18n("xTimeLeft",{time:l(e.totalETA)})))},500,{leading:!0,trailing:!0}),w=function(e){if(!e.isUploadStarted||e.isAllComplete)return null;var t=e.isAllPaused?e.i18n("paused"):e.i18n("uploading"),n=e.newFiles&&e.isU
2ploadStarted;return u("div",{className:"uppy-StatusBar-content","aria-label":t,title:t},e.isAllPaused?null:u(m,null),u("div",{className:"uppy-StatusBar-status"},u("div",{className:"uppy-StatusBar-statusPrimary"},e.supportsUploadProgress?t+": "+e.totalProgress+"%":t),e.isAllPaused||n||!e.showProgressDetails?null:e.supportsUploadProgress?u(b,e):u(v,e),n?u(y,e):null))},k=function(e){e.totalProgress;var t=e.i18n;return u("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},u("div",{className:"uppy-StatusBar-status"},u("div",{className:"uppy-StatusBar-statusPrimary"},u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},u("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},S=function(e){var t=e.error,n=(e.retryAll,e.hideRetryButton,e.i18n);return u("div",{className:"uppy-StatusBar-content",role:"alert",title:n("uploadFailed")},u("div",{className:"uppy-StatusBar-status"},u("div",{className:"uppy-StatusBar-statusPrimary"},u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},u("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),n("uploadFailed"))),u("span",{className:"uppy-StatusBar-details","aria-label":t,"data-microtip-position":"top-right","data-microtip-size":"medium",role:"tooltip",onClick:function(){var e=n("uploadFailed")+" \n\n "+t;alert(e)}},"?"))}},92009:function(e){e.exports={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"}},67316:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(75221),c=n(25251),p=n(92009),d=n(57296),h=n(42606),f=n(11159);e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).startUpload=function(){if(!r.uppy.getState().recoveredState)return r.uppy.upload().catch(function(){});r.uppy.emit("restore-confirmed")},r.id=r.opts.id||"StatusBar",r.title="StatusBar",r.type="progressindicator",r.defaultLocale={strings:{uploading:"Uploading",upload:"Upload",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",retryUpload:"Retry upload",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"}}};return r.opts=i({},{target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null},n),r.i18nInit(),r.render=r.render.bind(s(r)),r.install=r.install.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new u([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},o.getTotalSpeed=function(e){var t=0;return e.forEach(function(e){t+=d(e.progress)}),t},o.getTotalETA=function(e){var t=this.getTotalSpeed(e);if(0===t)return 0;var n=e.reduce(function(e,t){return e+h(t.progress)},0);return Math.round(n/t*10)/10},o.getUploadingState=function(e,t,n,r){if(e)return p.STATE_ERROR;if(t)return p.STATE_COMPLETE;if(n)return p.STATE_WAITING;for(var o=p.STATE_WAITING,i=Object.keys(r),s=0;s<i.length;s++){var a=r[i[s]].progress;if(a.uploadStarted&&!a.uploadComplete)return p.STATE_UPLOADING;a.preprocess&&o!==p.STATE_UPLOADING&&(o=p.STATE_PREPROCESSING),a.postprocess&&o!==p.STATE_UPLOADING&&o!==p.STATE_PREPROCESSING&&(o=p.STATE_POSTPROCESSING)}return o},o.render=function(e){var t=e.capabilities,n=e.files,r=e.allowNewUpload,o=e.totalProgress,i=e.error,s=e.recoveredState,a=Object.keys(n).map(function(e){return n[e]}),l=a.filter(function(e){return!e.progress.uploadStarted&&!e.progress.preprocess&&!e.progress.postprocess}
2);s&&(l=a);var u=a.filter(function(e){return e.progress.uploadStarted}).filter(function(e){return e.isPaused}),p=a.filter(function(e){return e.progress.uploadComplete}),d=a.filter(function(e){return e.error}),h=a.filter(function(e){return!e.progress.uploadComplete&&e.progress.uploadStarted}),f=h.filter(function(e){return!e.isPaused}),m=a.filter(function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess}),g=a.filter(function(e){return e.progress.preprocess||e.progress.postprocess}),v=this.getTotalETA(f),y=0,b=0;m.forEach(function(e){y+=e.progress.bytesTotal||0,b+=e.progress.bytesUploaded||0});var w=m.length>0,k=100===o&&p.length===Object.keys(n).length&&0===g.length,S=i&&d.length===a.length,C=0!==h.length&&u.length===h.length,P=h.length>0,E=t.resumableUploads||!1,_=!1!==t.uploadProgress,x=a.some(function(e){return e.isGhost});return c({error:i,uploadState:this.getUploadingState(S,k,s,e.files||{}),allowNewUpload:r,totalProgress:o,totalSize:y,totalUploadedSize:b,isAllComplete:k,isAllPaused:C,isAllErrored:S,isUploadStarted:w,isUploadInProgress:P,isSomeGhost:x,recoveredState:s,complete:p.length,newFiles:l.length,numUploads:m.length,totalETA:v,files:n,i18n:this.i18n,pauseAll:this.uppy.pauseAll,resumeAll:this.uppy.resumeAll,retryAll:this.uppy.retryAll,cancelAll:this.uppy.cancelAll,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:E,supportsUploadProgress:_,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})},o.onMount=function(){var e=this.el;f(e)||(e.dir="ltr")},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},r}(l),r.VERSION="1.9.6",o)},759:function(e){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=function(){function e(){this.state={},this.callbacks=[]}var n=e.prototype;return n.getState=function(){return this.state},n.setState=function(e){var n=t({},this.state),r=t({},this.state,e);this.state=r,this._publish(n,r,e)},n.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){t.callbacks.splice(t.callbacks.indexOf(e),1)}},n._publish=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(function(e){e.apply(void 0,t)})},e}();n.VERSION="1.2.7",e.exports=function(){return new n}},51436:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(37584),i="uppy/STATE_UPDATE",s=function(){function e(e){var t;this._store=e.store,this._id=e.id||o(),this._selector=e.selector||(t=this._id,function(e){return e.uppy[t]}),this.setState({})}var t=e.prototype;return t.setState=function(e){this._store.dispatch({type:i,id:this._id,payload:e})},t.getState=function(){return this._selector(this._store.getState())},t.subscribe=function(e){var t=this,n=this.getState();return this._store.subscribe(function(){var r=t.getState();if(n!==r){var o=function(e,t){var n=Object.keys(t),r={};return n.forEach(function(n){e[n]!==t[n]&&(r[n]=t[n])}),r}(n,r);e(n,r,o),n=r}})},e}();s.VERSION="1.2.8",e.exports=function(e){return new s(e)},e.exports.STATE_UPDATE=i,e.exports.reducer=function(e,t){if(void 0===e&&(e={}),t.type===i){var n,o=r({},e[t.id],t.payload);return r({},e,((n={})[t.id]=o,n))}return e},e.exports.middleware=function(){return function(){return function(e){return function(t){e(t)}}}}},46590:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(75221),u=n(10811),c=n(72995),p=n(19953),d=n(31094),h=n(37732);e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).onFileAdded=function(e){!e.preview&&e.data&&p(e.type)&&!e.isRemote&&r.addToQueue(e.id)},r.onCancelRequest=function(e){var t=r.queue.indexOf(e.id);-1!==t&&r.queue.splice(t,1)},r.onFileRemoved=function(e){var t=r.queue.indexOf(e.id);-1!==t&&r.queue.splice(t,1),e.preview&&c(e.preview)&&URL.revokeObjectURL(e.preview)},r.onRestored=function(){r.uppy.getFiles().filter(function(e){return e.isRestored}).forEach(function(e){e.preview&&!c(e.preview)||r.addToQueue(e.id)})},r.waitUntilAllProcessed=function(e){e.forEach(function(e){var t=r.uppy.getFile(e);r.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:r.i18n("generatingThumbnails")})});var t=function(){e.forEach(function(e){var t=r.uppy.getFile(e);r.uppy.emit("preprocess-complete",t)})};return new Promise(function(e,n){r.queueProcessing?r.uppy.once("thumbnail:all-generated",function(){t(),e()}):(t(),e())})},r.type="modifier",r.id=r.opts.id||"ThumbnailGenerator",r.title="Thumbnail Generator",r.queue=[],r.queueProcessing=!1,r.defaultThumbnailDimension=200,r.thumbnailType=r.opts.thumbnailType||"image/jpeg",r.defaultLocale={strings:{generatingThumbnails:"Generating thumbnails..."}};if(r.opts=i({},{thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1},n),r.opts.lazy&&r.opts.waitForThumbnailsBeforeUpload)throw new Error("Thumbn
2ailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.");return r.i18nInit(),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new l([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},o.createThumbnail=function(e,t,n){var r=this,o=URL.createObjectURL(e.data),i=new Promise(function(e,t){var n=new Image;n.src=o,n.addEventListener("load",function(){URL.revokeObjectURL(o),e(n)}),n.addEventListener("error",function(e){URL.revokeObjectURL(o),t(e.error||new Error("Could not create thumbnail"))})}),s=h.rotation(e.data).catch(function(e){return 1});return Promise.all([i,s]).then(function(e){var o=e[0],i=e[1],s=r.getProportionalDimensions(o,t,n,i.deg),a=r.rotateImage(o,i),l=r.resizeImage(a,s.width,s.height);return r.canvasToBlob(l,r.thumbnailType,80)}).then(function(e){return URL.createObjectURL(e)})},o.getProportionalDimensions=function(e,t,n,r){var o=e.width/e.height;return 90!==r&&270!==r||(o=e.height/e.width),null!=t?{width:t,height:Math.round(t/o)}:null!=n?{width:Math.round(n*o),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/o)}},o.protect=function(e){var t=e.width/e.height,n=5e6,r=4096,o=Math.floor(Math.sqrt(n*t)),i=Math.floor(n/Math.sqrt(n*t));if(o>r&&(o=r,i=Math.round(o/t)),i>r&&(i=r,o=Math.round(t*i)),e.width>o){var s=document.createElement("canvas");s.width=o,s.height=i,s.getContext("2d").drawImage(e,0,0,o,i),e=s}return e},o.resizeImage=function(e,t,n){e=this.protect(e);var r=Math.ceil(d(e.width/t));r<1&&(r=1);for(var o=t*Math.pow(2,r-1),i=n*Math.pow(2,r-1);r--;){var s=document.createElement("canvas");s.width=o,s.height=i,s.getContext("2d").drawImage(e,0,0,o,i),e=s,o=Math.round(o/2),i=Math.round(i/2)}return e},o.rotateImage=function(e,t){var n=e.width,r=e.height;90!==t.deg&&270!==t.deg||(n=e.height,r=e.width);var o=document.createElement("canvas");o.width=n,o.height=r;var i=o.getContext("2d");return i.translate(n/2,r/2),t.canvas&&(i.rotate(t.rad),i.scale(t.scaleX,t.scaleY)),i.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),o},o.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise(function(r){e.toBlob(r,t,n)}).then(function(e){if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e}):Promise.resolve().then(function(){return u(e.toDataURL(t,n),{})}).then(function(e){if(null===e)throw new Error("could not extract blob, probably an old browser");return e})},o.setPreviewURL=function(e,t){this.uppy.setFileState(e,{preview:t})},o.addToQueue=function(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()},o.processQueue=function(){var e=this;if(this.queueProcessing=!0,this.queue.length>0){var t=this.uppy.getFile(this.queue.shift());return t?this.requestThumbnail(t).catch(function(e){}).then(function(){return e.processQueue()}):void this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error")}this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated")},o.requestThumbnail=function(e){var t=this;return p(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(function(n){t.setPreviewURL(e.id,n),t.uppy.log("[ThumbnailGenerator] Generated thumbnail for "+e.id),t.uppy.emit("thumbnail:generated",t.uppy.getFile(e.id),n)}).catch(function(n){t.uppy.log("[ThumbnailGenerator] Failed thumbnail for "+e.id+":","warning"),t.uppy.log(n,"warning"),t.uppy.emit("thumbnail:error",t.uppy.getFile(e.id),n)}):Promise.resolve()}
2,o.install=function(){this.uppy.on("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)},o.uninstall=function(){this.uppy.off("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)},r}(a),r.VERSION="1.7.11",o)},96221:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i,s=function(){i||(i=n(57698));return i},a=n(77103),l=n(2550),u=n(56049),c=n(48123),p=n(65307);var d="ASSEMBLY_EXECUTING",h="ASSEMBLY_COMPLETED",f=["ASSEMBLY_UPLOADING",d,h];function m(e,t){return f.indexOf(e)>=f.indexOf(t)}var g=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this).status=t,n.socket=null,n.pollInterval=null,n.closed=!1,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.connect=function(){this._connectSocket(),this._beginPolling()},a._onFinished=function(){this.emit("finished"),this.close()},a._connectSocket=function(){var e=this,t=u(this.status.websocket_url),n=s().connect(t.origin,{transports:["websocket"],path:t.pathname});n.on("connect",function(){n.emit("assembly_connect",{id:e.status.assembly_id}),e.emit("connect")}),n.on("connect_failed",function(){e._onError(new c("Transloadit Socket.io connection error")),e.socket=null}),n.on("error",function(){n.disconnect(),e.socket=null}),n.on("assembly_finished",function(){e._onFinished()}),n.on("assembly_upload_finished",function(t){e.emit("upload",t),e.status.uploads.push(t)}),n.on("assembly_uploading_finished",function(){e.emit("executing")}),n.on("assembly_upload_meta_data_extracted",function(){e.emit("metadata"),e._fetchStatus({diff:!1})}),n.on("assembly_result_finished",function(t,n){e.emit("result",t,n),e.status.results[t]||(e.status.results[t]=[]),e.status.results[t].push(n)}),n.on("assembly_error",function(t){e._onError(t),e._fetchStatus({diff:!1})}),this.socket=n},a._onError=function(e){this.emit("error",r(new Error(e.message),e))},a._beginPolling=function(){var e=this;this.pollInterval=setInterval(function(){e.socket&&e.socket.connected||e._fetchStatus()},2e3)},a._fetchStatus=function(e){var t=this,n=(void 0===e?{}:e).diff,r=void 0===n||n;return p(this.status.assembly_ssl_url).then(function(e){return e.json()}).then(function(e){t.closed||(t.emit("status",e),r?t.updateStatus(e):t.status=e)}).catch(function(e){return t._onError(e)})},a.update=function(){return this._fetchStatus({diff:!0})},a.updateStatus=function(e){this._diffStatus(this.status,e),this.status=e},a._diffStatus=function(e,t){var n=this,r=e.ok,o=t.ok;if(t.error&&!e.error)return this._onError(t);var i=m(o,d)&&!m(r,d);i&&this.emit("executing"),Object.keys(t.uploads).filter(function(t){return!l(e.uploads,t)}).map(function(e){return t.uploads[e]}).forEach(function(e){n.emit("upload",e)}),i&&this.emit("metadata"),Object.keys(t.results).forEach(function(r){var o=t.results[r],i=e.results[r];o.filter(function(e){return!i||!i.some(function(t){return t.id===e.id})}).forEach(function(e){n.emit("result",r,e)})}),m(o,h)&&!m(r,h)&&this.emit("finished")},a.close=function(){this.closed=!0,this.socket&&(this.socket.disconnect(),this.socket=null),clearInterval(this.pollInterval)},i}(a);e.exports=g},26211:function(e){function t(e){if(!e)throw new Error("Transloadit: The `params` option is required.");if("string"==typeof e)try{e=JSON.parse(e)}catch(e){throw e.message="Transloadit: The `params` option is a malformed JSON string: "+e.message,e}if(!e.auth||!e.auth.key)throw new Error("Transloadit: The `params.auth.key` option is required. You can find your Transloadit API key at https://transloadit.com/account/api-settings.")}var n=function(){function e(e,t){this.files=e,this.opts=t}var n=e.prototype;return n._normalizeAssemblyOptions=function(e,t){if(Array.isArray(t.fields)){var n=t.fields;t.fields={}
2,n.forEach(function(n){t.fields[n]=e.meta[n]})}return t.fields||(t.fields={}),t},n._getAssemblyOptions=function(e){var n=this,r=this.opts;return Promise.resolve().then(function(){return r.getAssemblyOptions(e,r)}).then(function(t){return n._normalizeAssemblyOptions(e,t)}).then(function(n){return t(n.params),{fileIDs:[e.id],options:n}})},n._dedupe=function(e){var t=Object.create(null);return e.forEach(function(e){var n,r=e.fileIDs,o=e.options,i=JSON.stringify(o);t[i]?(n=t[i].fileIDs).push.apply(n,r):t[i]={options:o,fileIDs:[].concat(r)}}),Object.keys(t).map(function(e){return t[e]})},n.build=function(){var e=this,n=this.opts;return this.files.length>0?Promise.all(this.files.map(function(t){return e._getAssemblyOptions(t)})).then(function(t){return e._dedupe(t)}):n.alwaysRunAssembly?Promise.resolve(n.getAssemblyOptions(null,n)).then(function(n){return t(n.params),[{fileIDs:e.files.map(function(e){return e.id}),options:n}]}):Promise.resolve([])},e}();e.exports=n,e.exports.validateParams=t},22253:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=function(e){var t,n;function i(t,n){var o;return(o=e.call(this)||this)._uppy=t,o._assemblyIDs=n,o._remaining=n.length,o.promise=new Promise(function(e,t){o._resolve=e,o._reject=t}),o._onAssemblyComplete=o._onAssemblyComplete.bind(r(o)),o._onAssemblyCancel=o._onAssemblyCancel.bind(r(o)),o._onAssemblyError=o._onAssemblyError.bind(r(o)),o._onImportError=o._onImportError.bind(r(o)),o._addListeners(),o}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s=i.prototype;return s._watching=function(e){return-1!==this._assemblyIDs.indexOf(e)},s._onAssemblyComplete=function(e){this._watching(e.assembly_id)&&(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly finish "+e.assembly_id),this.emit("assembly-complete",e.assembly_id),this._checkAllComplete())},s._onAssemblyCancel=function(e){this._watching(e.assembly_id)&&this._checkAllComplete()},s._onAssemblyError=function(e,t){this._watching(e.assembly_id)&&(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly error "+e.assembly_id),this._uppy.log(t),this.emit("assembly-error",e.assembly_id,t),this._checkAllComplete())},s._onImportError=function(e,t,n){this._watching(e.assembly_id)&&this._onAssemblyError(e,n)},s._checkAllComplete=function(){this._remaining-=1,0===this._remaining&&(this._removeListeners(),this._resolve())},s._removeListeners=function(){this._uppy.off("transloadit:complete",this._onAssemblyComplete),this._uppy.off("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.off("transloadit:assembly-error",this._onAssemblyError),this._uppy.off("transloadit:import-error",this._onImportError)},s._addListeners=function(){this._uppy.on("transloadit:complete",this._onAssemblyComplete),this._uppy.on("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.on("transloadit:assembly-error",this._onAssemblyError),this._uppy.on("transloadit:import-error",this._onImportError)},i}(n(77103));e.exports=i},59322:function(e,t,n){var r=n(65307),o=n(61160);e.exports=function(){function e(e){void 0===e&&(e={}),this.opts=e,this._reportError=this._reportError.bind(this),this._headers={"Transloadit-Client":this.opts.client}}var t=e.prototype;return t.createAssembly=function(e){var t=this,n=e.params,i=e.fields,s=e.signature,a=e.expectedFiles,l=new FormData;l.append("params","string"==typeof n?n:JSON.stringify(n)),s&&l.append("signature",s),Object.keys(i).forEac
2h(function(e){l.append(e,i[e])}),l.append("num_expected_upload_files",a);var u=new o("/assemblies",""+this.opts.service).href;return r(u,{method:"post",headers:this._headers,body:l}).then(function(e){return e.json()}).then(function(e){if(e.error){var t=new Error(e.error);throw t.details=e.message,t.assembly=e,e.assembly_id&&(t.details+=" Assembly ID: "+e.assembly_id),t}return e}).catch(function(e){return t._reportError(e,{url:u,type:"API_ERROR"})})},t.reserveFile=function(e,t){var n=this,o=encodeURIComponent(t.size),i=e.assembly_ssl_url+"/reserve_file?size="+o;return r(i,{method:"post",headers:this._headers}).then(function(e){return e.json()}).catch(function(r){return n._reportError(r,{assembly:e,file:t,url:i,type:"API_ERROR"})})},t.addFile=function(e,t){var n=this;if(!t.uploadURL)return Promise.reject(new Error("File does not have an `uploadURL`."));var o=encodeURIComponent(t.size),i=encodeURIComponent(t.uploadURL),s="size="+o+"&filename="+encodeURIComponent(t.name)+"&fieldname=file&s3Url="+i,a=e.assembly_ssl_url+"/add_file?"+s;return r(a,{method:"post",headers:this._headers}).then(function(e){return e.json()}).catch(function(r){return n._reportError(r,{assembly:e,file:t,url:a,type:"API_ERROR"})})},t.cancelAssembly=function(e){var t=this,n=e.assembly_ssl_url;return r(n,{method:"delete",headers:this._headers}).then(function(e){return e.json()}).catch(function(e){return t._reportError(e,{url:n,type:"API_ERROR"})})},t.getAssemblyStatus=function(e){var t=this;return r(e,{headers:this._headers}).then(function(e){return e.json()}).catch(function(n){return t._reportError(n,{url:e,type:"STATUS_ERROR"})})},t.submitError=function(e,t){var n=t.endpoint,o=t.instance,i=t.assembly,s=e.details?e.message+" ("+e.details+")":e.message;return r("https://transloaditstatus.com/client_error",{method:"post",body:JSON.stringify({endpoint:n,instance:o,assembly_id:i,agent:"undefined"!=typeof navigator?navigator.userAgent:"",client:this.opts.client,error:s})}).then(function(e){return e.json()})},t._reportError=function(e,t){if(!1===this.opts.errorReporting)throw e;var n={type:t.type};throw t.assembly&&(n.assembly=t.assembly.assembly_id,n.instance=t.assembly.instance),t.url&&(n.endpoint=t.url),this.submitError(e,n).catch(function(e){}),e},e}()},80769:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(75221),u=n(2550),c=n(57097).Plugin,p=n(23470),d=n(96221),h=n(59322),f=n(26211),m=n(22253);function g(e,t){return{params:t.params,signature:t.signature,fields:t.fields}}var v="https://api2.transloadit.com/companion",y=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/,b=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/uppy-server/;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"Transloadit",r.title="Transloadit",r.defaultLocale={strings:{creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",encoding:"Encoding..."}};var o={service:"https://api2.transloadit.com",errorReporting:!0,waitForEncoding:!1,waitForMetadata:!1,alwaysRunAssembly:!1,importFromUploadURLs:!1,signature:null,params:null,fields:{},getAssemblyOptions:g,limit:0};r.opts=i({},o,n),r.i18nInit(),r._prepareUpload=r._prepareUpload.bind(s(r)),r._afterUpload=r._afterUpload.bind(s(r)),r._onError=r._onError.bind(s(r)),r._onTusError=r._onTusError.bind(s(r)),r._onCancelAll=r._onCancelAll.bind(s(r)),r._onFileUploadURLAvailable=r._onFileUploadURLAvailable.bind(s(r)),r._onRestored=r._onRestored.bind(s(r)),r._getPersistentData=r._getPersistentData.bind(s(r));var a=r.opts.getAssemblyOptions!==o.getAssemblyOptions;return r.opts.params?f.validateParams(r.opts.params):a||f.validateParams(null),r.client=new h({service:r.opts.service,client:r._getClientVersion(),errorReporting:r.opts.errorReporting}),r.activeAssemblies={},r.assemblyWatchers={},r.completedFiles=Object.create(null),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new l([this.defaultLocale,this.up
2py.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},o._getClientVersion=function(){var e=this,t=["uppy-core:"+this.uppy.constructor.VERSION,"uppy-transloadit:"+this.constructor.VERSION,"uppy-tus:"+p.VERSION],n=function(n,r){var o=e.uppy.getPlugin(n);o&&t.push(r+":"+o.constructor.VERSION)};return this.opts.importFromUploadURLs&&(n("XHRUpload","uppy-xhr-upload"),n("AwsS3","uppy-aws-s3"),n("AwsS3Multipart","uppy-aws-s3-multipart")),n("Dropbox","uppy-dropbox"),n("Box","uppy-box"),n("Facebook","uppy-facebook"),n("GoogleDrive","uppy-google-drive"),n("Instagram","uppy-instagram"),n("OneDrive","uppy-onedrive"),n("Zoom","uppy-zoom"),n("Url","uppy-url"),t.join(",")},o._attachAssemblyMetadata=function(e,t){var n=i({},e.meta,{assembly_url:t.assembly_url,filename:e.name,fieldname:"file"}),r=i({},e.tus,{endpoint:t.tus_url,addRequestId:!0}),o=e.remote;if(e.remote&&b.test(e.remote.companionUrl)){var s=new Error("The https://api2.transloadit.com/uppy-server endpoint was renamed to https://api2.transloadit.com/companion, please update your `companionUrl` options accordingly.");throw this.uppy.log(s),s}if(e.remote&&y.test(e.remote.companionUrl)){var a=t.companion_url.replace(/\/$/,""),l=e.remote.url.replace(e.remote.companionUrl,"").replace(/^\//,"");o=i({},e.remote,{companionUrl:a,url:a+"/"+l})}var u=i({},e,{transloadit:{assembly:t.assembly_id}});return this.opts.importFromUploadURLs||i(u,{meta:n,tus:r,remote:o}),u},o._createAssembly=function(e,t,n){var r=this;
2return this.uppy.log("[Transloadit] Create Assembly"),this.client.createAssembly({params:n.params,fields:n.fields,expectedFiles:e.length,signature:n.signature}).then(function(n){var o,s,a=new d(n),l=a.status,u=l.assembly_id,c=r.getPluginState(),p=c.assemblies,h=c.uploadsAssemblies;r.setPluginState({assemblies:i({},p,(o={},o[u]=l,o)),uploadsAssemblies:i({},h,(s={},s[t]=[].concat(h[t],[u]),s))});var f=r.uppy.getState().files,m={};return e.forEach(function(e){m[e]=r._attachAssemblyMetadata(r.uppy.getFile(e),l)}),r.uppy.setState({files:i({},f,m)}),r.uppy.emit("transloadit:assembly-created",l,e),r.uppy.log("[Transloadit] Created Assembly "+u),a}).catch(function(e){throw e.message=r.i18n("creatingAssemblyFailed")+": "+e.message,e})},o._createAssemblyWatcher=function(e,t,n){var r=this,o=new m(this.uppy,e);o.on("assembly-complete",function(e){r.getAssemblyFiles(e).forEach(function(e){r.completedFiles[e.id]=!0,r.uppy.emit("postprocess-complete",e)})}),o.on("assembly-error",function(e,t){r.getAssemblyFiles(e).forEach(function(e){r.uppy.emit("upload-error",e,t),r.uppy.emit("postprocess-complete",e)})}),this.assemblyWatchers[n]=o},o._shouldWaitAfterUpload=function(){return this.opts.waitForEncoding||this.opts.waitForMetadata},o._reserveFiles=function(e,t){var n=this;return Promise.all(t.map(function(t){var r=n.uppy.getFile(t);return n.client.reserveFile(e.status,r)}))},o._onFileUploadURLAvailable=function(e){var t=this,n=this.uppy.getFile(e.id);if(n&&n.transloadit&&n.transloadit.assembly){var r=this.getPluginState().assemblies[n.transloadit.assembly];this.client.addFile(r,n).catch(function(e){t.uppy.log(e),t.uppy.emit("transloadit:import-error",r,n.id,e)})}},o._findFile=function(e){for(var t=this.uppy.getFiles(),n=0;n<t.length;n++){var r=t[n];if(r.uploadURL===e.tus_upload_url)return r;if(r.tus&&r.tus.uploadUrl===e.tus_upload_url)return r;if(!e.is_tus_file&&r.name===e.name&&r.size===e.size)return r}},o._onFileUploadComplete=function(e,t){var n,r=this.getPluginState(),o=this._findFile(t);o?(this.setPluginState({files:i({},r.files,(n={},n[t.id]={assembly:e,id:o.id,uploadedFile:t},n))}),this.uppy.emit("transloadit:upload",t,this.getAssembly(e))):this.uppy.log("[Transloadit] Couldn’t file the file, it was likely removed in the process")},o._onResult=function(e,t,n){var r=this.getPluginState(),o=r.files[n.original_id];n.localId=o?o.id:null;var i={result:n,stepName:t,id:n.id,assembly:e};this.setPluginState({results:[].concat(r.results,[i])}),this.uppy.emit("transloadit:result",t,n,this.getAssembly(e))},o._onAssemblyFinished=function(e){var t=this,n=e.assembly_ssl_url;this.client.getAssemblyStatus(n).then(function(e){var n,r=e.assembly_id,o=t.getPluginState();t.setPluginState({assemblies:i({},o.assemblies,(n={},n[r]=e,n))}),t.uppy.emit("transloadit:complete",e)})},o._cancelAssembly=function(e){var t=this;return this.client.cancelAssembly(e).then(function(){t.uppy.emit("transloadit:assembly-cancelled",e)})},o._onCancelAll=function(){var e=this,t=this.getPluginState().uploadsAssemblies,n=Object.keys(t).reduce(function(e,n){return e.push.apply(e,t[n]),e},[]).map(function(t){var n=e.getAssembly(t);return e._cancelAssembly(n)});Promise.all(n).catch(function(t){e.uppy.log(t)})},o._getPersistentData=function(e){var t,n=this.getPluginState(),r=n.assemblies,o=n.uploadsAssemblies;e(((t={})[this.id]={assemblies:r,uploadsAssemblies:o},t))},o._onRestored=function(e){var t=this,n=e&&e[this.id]?e[this.id]:{},r=n.assemblies||{},o=n.uploadsAssemblies||{};if(0!==Object.keys(o).length){this.restored=Promise.resolve().then(function(){var e,n,i;return e=r,n={},i=[],Object.keys(e).forEach(function(r){var o=e[r];o.uploads.forEach(function(e){var o=t._findFile(e);n[e.id]={id:o.id,assembly:r,uploadedFile:e}});var s=t.getPluginState();Object.keys(o.results).forEach(function(e){o.results[e].forEach(function(t){var n=s.files[t.original_id];t.localId=n?n.id:null,i.push({id:t.id,result:t,stepName:e,assembly:r})})})}),t.setPluginState({assemblies:e,files:n,results:i,uploadsAssemblies:o}),function(){var e=t.getPluginState(),n=e.assemblies,r=e.uploadsAssemblies;Object.keys(r).forEach(function(e){var n=r[e],o=n.reduce(function(e,n){var r=t.getAssemblyFiles(n).map(function(e){return e.id});return e.push.apply(e,r),e},[]);t._createAssemblyWatcher(n,o,e)}
2),Object.keys(n).forEach(function(e){var r=new d(n[e]);t._connectAssembly(r)})}(),function(){var e=t.getPluginState().assemblies;return Promise.all(Object.keys(e).map(function(e){return t.activeAssemblies[e].update()}))}()}),this.restored.then(function(){t.restored=null})}},o._connectAssembly=function(e){var t=this,n=e.status.assembly_id;if(this.activeAssemblies[n]=e,e.on("status",function(e){var r,o=t.getPluginState().assemblies;t.setPluginState({assemblies:i({},o,(r={},r[n]=e,r))})}),e.on("upload",function(e){t._onFileUploadComplete(n,e)}),e.on("error",function(n){n.assembly=e.status,t.uppy.emit("transloadit:assembly-error",e.status,n)}),e.on("executing",function(){t.uppy.emit("transloadit:assembly-executing",e.status)}),this.opts.waitForEncoding&&e.on("result",function(e,r){t._onResult(n,e,r)}),this.opts.waitForEncoding?e.on("finished",function(){t._onAssemblyFinished(e.status)}):this.opts.waitForMetadata&&e.on("metadata",function(){t._onAssemblyFinished(e.status)}),"ASSEMBLY_COMPLETE"===e.ok)return e;new Promise(function(t,n){e.once("connect",t),e.once("status",t),e.once("error",n)}).then(function(){t.uppy.log("[Transloadit] Socket is ready")});return e.connect(),e},o._prepareUpload=function(e,t){var n,r=this;(e=e.filter(function(e){return!e.error})).forEach(function(e){var t=r.uppy.getFile(e);r.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:r.i18n("creatingAssembly")})});var o=function(e){var n,o=e.fileIDs,i=e.options;return r._createAssembly(o,t,i).then(function(e){if(n=e,r.opts.importFromUploadURLs)return r._reserveFiles(e,o)}).then(function(){return o.forEach(function(e){var t=r.uppy.getFile(e);r.uppy.emit("preprocess-complete",t)}),n}).catch(function(e){throw o.forEach(function(t){var n=r.uppy.getFile(t);r.uppy.emit("preprocess-complete",n),r.uppy.emit("upload-error",n,e)}),e})},s=this.getPluginState().uploadsAssemblies;this.setPluginState({uploadsAssemblies:i({},s,(n={},n[t]=[],n))});var a=e.map(function(e){return r.uppy.getFile(e)});return new f(a,this.opts).build().then(function(n){return Promise.all(n.map(o)).then(function(n){var o=n.map(function(e){return e.status.assembly_id});r._createAssemblyWatcher(o,e,t),n.map(function(e){return r._connectAssembly(e)})})},function(t){throw e.forEach(function(e){var n=r.uppy.getFile(e);r.uppy.emit("preprocess-complete",n),r.uppy.emit("upload-error",n,t)}),t})},o._afterUpload=function(e,t){var n=this,r=e.map(function(e){return n.uppy.getFile(e)});e=r.filter(function(e){return!e.error}).map(function(e){return e.id});var o=this.getPluginState();if(this.restored)return this.restored.then(function(){return n._afterUpload(e,t)});var s=o.uploadsAssemblies[t],a=function(){s.forEach(function(e){n.activeAssemblies[e].close(),delete n.activeAssemblies[e]})};if(!this._shouldWaitAfterUpload()){a();var l=s.map(function(e){return n.getAssembly(e)});
2return this.uppy.addResultData(t,{transloadit:l}),Promise.resolve()}return 0===s.length?(this.uppy.addResultData(t,{transloadit:[]}),Promise.resolve()):(r.filter(function(e){return!u(n.completedFiles,e.id)}).forEach(function(e){n.uppy.emit("postprocess-progress",e,{mode:"indeterminate",message:n.i18n("encoding")})}),this.assemblyWatchers[t].promise.then(function(){a();var e=s.map(function(e){return n.getAssembly(e)}),r=i({},n.getPluginState().uploadsAssemblies);delete r[t],n.setPluginState({uploadsAssemblies:r}),n.uppy.addResultData(t,{transloadit:e})}))},o._onError=function(e,t){var n=this;void 0===e&&(e=null),this.getPluginState().uploadsAssemblies[t].forEach(function(e){n.activeAssemblies[e]&&n.activeAssemblies[e].close()})},o._onTusError=function(e){if(e&&/^tus: /.test(e.message)){var t=e.originalRequest?e.originalRequest.getUnderlyingObject():null,n=t&&t.responseURL?t.responseURL:null;this.client.submitError(e,{url:n,type:"TUS_ERROR"}).then(function(e){})}},o.install=function(){this.uppy.addPreProcessor(this._prepareUpload),this.uppy.addPostProcessor(this._afterUpload),this.uppy.on("error",this._onError),this.uppy.on("cancel-all",this._onCancelAll),this.uppy.on("upload-error",this._onTusError),this.opts.importFromUploadURLs?this.uppy.on("upload-success",this._onFileUploadURLAvailable):this.uppy.use(p,{storeFingerprintForResuming:!1,resume:!1,useFastRemoteRetry:!1,metaFields:["assembly_url","filename","fieldname"],limit:this.opts.limit}),this.uppy.on("restore:get-data",this._getPersistentData),this.uppy.on("restored",this._onRestored),this.setPluginState({assemblies:{},uploadsAssemblies:{},files:{},results:[]});var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:i({},e,{individualCancellation:!1})})},o.uninstall=function(){this.uppy.removePreProcessor(this._prepareUpload),this.uppy.removePostProcessor(this._afterUpload),this.uppy.off("error",this._onError),this.opts.importFromUploadURLs&&this.uppy.off("upload-success",this._onFileUploadURLAvailable);var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:i({},e,{individualCancellation:!0})})},o.getAssembly=function(e){return this.getPluginState().assemblies[e]}
2,o.getAssemblyFiles=function(e){return this.uppy.getFiles().filter(function(t){return t&&t.transloadit&&t.transloadit.assembly===e})},r}(c),r.VERSION="1.7.0",o),e.exports.COMPANION=v,e.exports.UPPY_SERVER=v,e.exports.COMPANION_PATTERN=/\.transloadit\.com$/},56049:function(e){e.exports=function(e){var t=/^\w+:\/\//.exec(e),n=0;t&&(n=t[0].length+1);var r=e.indexOf("/",n);return-1===r?{origin:e,pathname:"/"}:{origin:e.slice(0,r),pathname:e.slice(r)}}},77103:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},84836:function(e,t,n){var r=n(24817);e.exports=function(e){return function(t,n){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return r.defaultOptions.fingerprint(t,n);var o=["tus",e.id,n.endpoint].join("-");return Promise.resolve(o)}}},23470:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(24817),c=n(88788),p=c.Provider,d=c.RequestClient,h=c.Socket,f=n(98018),m=n(91664),g=n(35384),v=n(77031),y=n(48123),b=n(33411),w=n(60368),k=n(2550),S=n(84836),C={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1};e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"Tus",r.title="Tus";return r.opts=i({},{autoRetry:!0,resume:!0,useFastRemoteRetry:!0,limit:0,retryDelays:[0,1e3,3e3,5e3],withCredentials:!1},n),r.requests=new w(r.opts.limit),r.uploaders=Object.create(null),r.uploaderEvents=Object.create(null),r.uploaderSockets=Object.create(null),r.handleResetProgress=r.handleResetProgress.bind(s(r)),r.handleUpload=r.handleUpload.bind(s(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.handleResetProgress=function(){var e=i({},this.uppy.getState().files);Object.keys(e).forEach(function(t){if(e[t].tus&&e[t].tus.uploadUrl){var n=i({},e[t].tus);delete n.uploadUrl,e[t]=i({},e[t],{tus:n})}}),this.uppy.setState({files:e})},o.resetUploaderReferences=function(e,t){if(void 0===t&&(t={}),this.uploaders[e]){var n=this.uploaders[e];n.abort(),t.abort&&setTimeout(function(){return n.abort(!0)},1e3),this.uploaders[e]=null}this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)},o.upload=function(e,t,n){var r=this;return this.resetUploaderReferences(e.id),new Promise(function(t,n){r.uppy.emit("upload-started",e);var o=i({},r.opts,e.tus||{}),s=i({},C,o);delete s.resume,o.resume&&(s.storeFingerprintForResuming=!0),s.fingerprint=S(e),s.onBeforeRequest=function(e){e.getUnderlyingObject().withCredentials=!!o.withCredentials,"function"==typeof o.onBeforeRequest&&o.onBeforeRequest(e)},s.onError=function(t){r.uppy.log(t);var o=t.originalRequest?t.originalRequest.getUnderlyingObject():null;b(o)&&(t=new y(t,o)),r.resetUploaderReferences(e.id),p.done(),r.uppy.emit("upload-error",e,t),n(t)},s.onProgress=function(t,n){r.onReceiveUploadUrl(e,c.url),r.uppy.emit("upload-progress",e,{uploader:r,bytesUploaded:t,bytesTotal:n}
2)},s.onSuccess=function(){var n={uploadURL:c.url};r.resetUploaderReferences(e.id),p.done(),r.uppy.emit("upload-success",e,n),c.url&&r.uppy.log("Download "+c.file.name+" from "+c.url),t(c)};var a=function(e,t,n){k(e,t)&&!k(e,n)&&(e[n]=e[t])},l={};(Array.isArray(o.metaFields)?o.metaFields:Object.keys(e.meta)).forEach(function(t){l[t]=e.meta[t]}),a(l,"type","filetype"),a(l,"name","filename"),s.metadata=l;var c=new u.Upload(e.data,s);r.uploaders[e.id]=c,r.uploaderEvents[e.id]=new v(r.uppy),o.resume&&c.findPreviousUploads().then(function(t){var n=t[0];n&&(r.uppy.log("[Tus] Resuming upload of "+e.id+" started at "+n.creationTime),c.resumeFromPreviousUpload(n))});var p=r.requests.run(function(){return e.isPaused||Promise.resolve().then(function(){c.start()}),function(){}});r.onFileRemove(e.id,function(n){p.abort(),r.resetUploaderReferences(e.id,{abort:!!c.url}),t("upload "+n+" was removed")}),r.onPause(e.id,function(e){e?(p.abort(),c.abort()):(p.abort(),p=r.requests.run(function(){return c.start(),function(){}}))}),r.onPauseAll(e.id,function(){p.abort(),c.abort()}),r.onCancelAll(e.id,function(){p.abort(),r.resetUploaderReferences(e.id,{abort:!!c.url}),t("upload "+e.id+" was canceled")}),r.onResumeAll(e.id,function(){p.abort(),e.error&&c.abort(),p=r.requests.run(function(){return c.start(),function(){}})})}).catch(function(t){throw r.uppy.emit("upload-error",e,t),t})},o.uploadRemote=function(e,t,n){var r=this;this.resetUploaderReferences(e.id);var o=i({},this.opts);return e.tus&&i(o,e.tus),this.uppy.emit("upload-started",e),this.uppy.log(e.remote.url),e.serverToken?this.connectToServerSocket(e):new Promise(function(t,n){new(e.remote.providerOptions.provider?p:d)(r.uppy,e.remote.providerOptions).post(e.remote.url,i({},e.remote.body,{endpoint:o.endpoint,uploadUrl:o.uploadUrl,protocol:"tus",size:e.data.size,headers:o.headers,metadata:e.meta})).then(function(t){return r.uppy.setFileState(e.id,{serverToken:t.token}),e=r.uppy.getFile(e.id),r.connectToServerSocket(e)}).then(function(){t()}).catch(function(t){r.uppy.emit("upload-error",e,t),n(t)})})},o.connectToServerSocket=function(e){var t=this;return new Promise(function(n,r){var o=e.serverToken,s=m(e.remote.companionUrl),a=new h({target:s+"/api/"+o,autoOpen:!1});t.uploaderSockets[e.id]=a,t.uploaderEvents[e.id]=new v(t.uppy),t.onFileRemove(e.id,function(){l.abort(),a.send("pause",{}),a.send("cancel",{}),t.resetUploaderReferences(e.id),n("upload "+e.id+" was removed")}),t.onPause(e.id,function(e){e?(l.abort(),a.send("pause",{})):(l.abort(),l=t.requests.run(function(){return a.send("resume",{}),function(){}}))}),t.onPauseAll(e.id,function(){l.abort(),a.send("pause",{})}),t.onCancelAll(e.id,function(){l.abort(),a.send("pause",{}),a.send("cancel",{}),t.resetUploaderReferences(e.id),n("upload "+e.id+" was canceled")}),t.onResumeAll(e.id,function(){l.abort(),e.error&&a.send("pause",{}),l=t.requests.run(function(){return a.send("resume",{}),function(){}})}),t.onRetry(e.id,function(){a.isOpen&&(a.send("pause",{}),a.send("resume",{}))}),t.onRetryAll(e.id,function(){a.isOpen&&(a.send("pause",{}),a.send("resume",{}))}),a.on("progress",function(n){return f(t,n,e)}),a.on("error",function(n){var o=n.error.message,s=i(new Error(o),{cause:n.error});t.opts.useFastRemoteRetry?a.close():(t.resetUploaderReferences(e.id),t.uppy.setFileState(e.id,{serverToken:null})),t.uppy.emit("upload-error",e,s),l.done(),r(s)}),a.on("success",function(r){var o={uploadURL:r.url};t.uppy.emit("upload-success",e,o),t.resetUploaderReferences(e.id),l.done(),n()});
2var l=t.requests.run(function(){return a.open(),e.isPaused&&a.send("pause",{}),function(){}})})},o.onReceiveUploadUrl=function(e,t){var n=this.uppy.getFile(e.id);n&&(n.tus&&n.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:i({},n.tus,{uploadUrl:t})})))},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",function(n){e===n.id&&t(n.id)})},o.onPause=function(e,t){this.uploaderEvents[e].on("upload-pause",function(n,r){e===n&&t(r)})},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(n){e===n&&t()})},o.onRetryAll=function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",function(r){n.uppy.getFile(e)&&t()})},o.onPauseAll=function(e,t){var n=this;this.uploaderEvents[e].on("pause-all",function(){n.uppy.getFile(e)&&t()})},o.onCancelAll=function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t()})},o.onResumeAll=function(e,t){var n=this;this.uploaderEvents[e].on("resume-all",function(){n.uppy.getFile(e)&&t()})},o.uploadFiles=function(e){var t=this,n=e.map(function(n,r){var o=r+1,i=e.length;return"error"in n&&n.error?Promise.reject(new Error(n.error)):n.isRemote?(n.progress.uploadStarted&&n.isRestored||t.uppy.emit("upload-started",n),t.uploadRemote(n,o,i)):(n.progress.uploadStarted&&n.isRestored||t.uppy.emit("upload-started",n),t.upload(n,o,i))});return g(n)},o.handleUpload=function(e){var t=this;
2if(0===e.length)return this.uppy.log("[Tus] No files to upload"),Promise.resolve();0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");var n=e.map(function(e){return t.uppy.getFile(e)});return this.uploadFiles(n).then(function(){return null})},o.install=function(){this.uppy.setState({capabilities:i({},this.uppy.getState().capabilities,{resumableUploads:!0})}),this.uppy.addUploader(this.handleUpload),this.uppy.on("reset-progress",this.handleResetProgress),this.opts.autoRetry&&this.uppy.on("back-online",this.uppy.retryAll)},o.uninstall=function(){this.uppy.setState({capabilities:i({},this.uppy.getState().capabilities,{resumableUploads:!1})}),this.uppy.removeUploader(this.handleUpload),this.opts.autoRetry&&this.uppy.off("back-online",this.uppy.retryAll)},r}(l),r.VERSION="1.9.2",o)},60198:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}var a=n(57097).Plugin,l=n(95237).h,u=n(88788).SearchProvider,c=n(63508).SearchProviderViews;e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).id=r.opts.id||"Unsplash",r.title=r.opts.title||"Unsplash",r.type="acquirer",r.icon=function(){return l("svg",{viewBox:"0 0 32 32",height:"32",width:"32","aria-hidden":"true"},l("path",{d:"M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z",fill:"#fff"}),l("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16"}),l("path",{d:"M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z",fill:"#fff"}))};if(r.opts=i({},{},n),r.hostname=r.opts.companionUrl,!r.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return r.provider=new u(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders,companionCookiesRule:r.opts.companionCookiesRule,provider:"unsplash",pluginId:r.id}),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=r.prototype;return o.install=function(){this.view=new c(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)},o.onFirstRender=function(){},o.render=function(e){return this.view.render(e)},o.uninstall=function(){this.unmount()},r}(a),r.VERSION="0.1.13",o)},79084:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(95237),s=i.h,a=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).handleKeyPress=n.handleKeyPress.bind(r(n)),n.handleClick=n.handleClick.bind(r(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.componentDidMount=function(){this.input.value=""},a.handleKeyPress=function(e){13===e.keyCode&&this.props.addFile(this.input.value)},a.handleClick=function(){this.props.addFile(this.input.value)},a.render=function(){var e=this;return s("div",{className:"uppy-Url"},s("input",{className:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":this.props.i18n("enterUrlToImport"),placeholder:this.props.i18n("enterUrlToImport"),onKeyUp:this.handleKeyPress,ref:function(t){e.input=t},"data-uppy-super-focusable":!0}),s("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"button",onClick:this.handleClick},this.props.i18n("import")))},i}(i.Component);e.exports=a},77747:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(57097).Plugin,u=n(75221),c=n(95237).h,p=n(88788).RequestClient,d=n(79084),h=n(98468);function f(){return c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",fill:"#FF753E",width:"32",height:"32",rx:"16"}),c("path",{d:"M22.788 15.389l-2.199 2.19a3.184 3.184 0 0 1-.513.437c-.806.584-1.686.876-2.638.876a4.378 4.378 0 0 1-3.519-1.752c-.22-.292-.146-.802.147-1.021.293-.22.806-.146 1.026.146.953 1.313 2.785 1.532 4.105.583a.571.571 0 0 0 .293-.292l2.199-2.189c1.1-1.167 1.1-2.992-.073-4.086a2.976 2.976 0 0 0-4.105 0l-1.246 1.24a.71.71 0 0 1-1.026 0 .703.703 0 0 1 0-1.022l1.246-1.24a4.305 4.305 0 0 1 6.083 0c1.833 1.605 1.906 4.451.22 6.13zm-7.183 5.035l-1.246 1.24a2.976 2.976 0 0 1-4.105 0c-1.172-1.094-1.172-2.991-.073-4.086l2.2-2.19.292-.291c.66-.438 1.393-.657 2.2-.584.805.146 1.465.51 1.905 1.168.22.292.733.365 1.026.146.293-.22.367-.73.147-1.022-.733-.949-1.76-1.532-2.859-1.678-1.1-.22-2.272.073-3.225.802l-.44.438-2.199 2.19c-1.686 1.75-1.612 4.524.074 6.202.88.803 1.979 1.241 3.078 1.241 1.1 0 2.199-.438 3.079-1.24l1.246-1.241a.703.703 0 0 0 0-1.022c-.294-.292-.807-.365-1.1-.073z",fill:"#FFF",fillRule:"nonzero"})))}
2e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).id=r.opts.id||"Url",r.title=r.opts.title||"Link",r.type="acquirer",r.icon=function(){return c(f,null)},r.defaultLocale={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it’s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}};if(r.opts=i({},{},n),r.i18nInit(),r.hostname=r.opts.companionUrl,!r.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return r.getMeta=r.getMeta.bind(s(r)),r.addFile=r.addFile.bind(s(r)),r.handleRootDrop=r.handleRootDrop.bind(s(r)),r.handleRootPaste=r.handleRootPaste.bind(s(r)),r.client=new p(t,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders||r.opts.serverHeaders,companionCookiesRule:r.opts.companionCookiesRule}),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new u([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},o.getFileNameFromUrl=function(e){return e.substring(e.lastIndexOf("/")+1)},o.checkIfCorrectURL=function(e){if(!e)return!1;var t=e.match(/^([a-z0-9]+):\/\//)[1];return"http"===t||"https"===t},o.addProtocolToURL=function(e){return/^[a-z0-9]+:\/\//.test(e)?e:"http://"+e},o.getMeta=function(e){var t=this;return this.client.post("url/meta",{url:e}).then(function(e){if(e.error)throw t.uppy.log("[URL] Error:"),t.uppy.log(e.error),new Error("Failed to fetch the file");return e})},o.addFile=function(e){var t=this;return e=this.addProtocolToURL(e),this.checkIfCorrectURL(e)?this.getMeta(e).then(function(n){return{source:t.id,name:t.getFileNameFromUrl(e),type:n.type,data:{size:n.size},isRemote:!0,body:{url:e},remote:{companionUrl:t.opts.companionUrl,url:t.hostname+"/url/get",body:{fileId:e,url:e},providerOptions:t.client.opts}}}).then(function(e){t.uppy.log("[Url] Adding remote file");try{return t.uppy.addFile(e)}catch(e){return e.isRestriction||t.uppy.log(e),e}}).catch(function(e){return t.uppy.log(e),t.uppy.info({message:t.i18n("failedToFetch"),details:e},"error",4e3),e}):(this.uppy.log("[URL] Incorrect URL entered: "+e),void this.uppy.info(this.i18n("enterCorrectUrl"),"error",4e3))},o.handleRootDrop=function(e){var t=this;h(e.dataTransfer,"drop",function(e){t.uppy.log("[URL] Adding file from dropped url: "+e),t.addFile(e)})},o.handleRootPaste=function(e){var t=this;h(e.clipboardData,"paste",function(e){t.uppy.log("[URL] Adding file from pasted url: "+e),t.addFile(e)})},o.render=function(e){return c(d,{i18n:this.i18n,addFile:this.addFile})},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},r}(l),r.VERSION="1.5.23",o)},98468:function(e,t,n){var r=n(14993);e.exports=function(e,t,n){var o,i=r(e.items);switch(t){case"paste":if(i.some(function(e){return"file"===e.kind}))return;o=i.filter(function(e){return"string"===e.kind&&"text/plain"===e.type});break;case"drop":o=i.filter(function(e){return"string"===e.kind&&"text/uri-list"===e.type});break;default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's "+t)}o.forEach(function(e){e.getAsString(function(e){return n(e)})})}},6361:function(e,t,n){var r=n(48402),o=r.AbortController,i=r.AbortSignal;t.AbortController=o,t.AbortSignal=i,t.createAbortError=function(e){void 0===e&&(e="Aborted");try{return new DOMException(e,"AbortError")}catch(n){var t=new Error(e);return t.name="AbortError",t}}},77031:function(e){e.exports=function(){function e(e){this._events=[],this._emitter=e}var t=e.prototype;return t.on=function(e,t){return this._events.push([e,t]),this._emitter.on(e,t)},t.remove=function(){var e=this;this._events.forEach(function(t){var n=t[0],r=t[1];e._emitter.off(n,r)})},e}()},58839:function(e){e.exports=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not
2([tabindex^="-"]):not([inert]):not([aria-hidden])']},48123:function(e){function t(e){var i="function"==typeof Map?new Map:void 0;return t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,s)}function s(){return n(e,arguments,o(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r(s,e)},t(e)}function n(e,t,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},n.apply(null,arguments)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var i=function(e){var t,n;function o(t,n){var r;return void 0===n&&(n=null),(r=e.call(this,"This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.\n\nSource error: ["+t+"]")||this).isNetworkError=!0,r.request=n,r}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(t(Error));e.exports=i},69109:function(e){var t=function(){function e(e,t){this._timeout=e,this._onTimedOut=t,this._isDone=!1,this._aliveTimer=null,this._onTimedOut=this._onTimedOut.bind(this)}var t=e.prototype;return t.progress=function(){this._isDone||this._timeout>0&&(this._aliveTimer&&clearTimeout(this._aliveTimer),this._aliveTimer=setTimeout(this._onTimedOut,this._timeout))},t.done=function(){this._aliveTimer&&(clearTimeout(this._aliveTimer),this._aliveTimer=null),this._isDone=!0},e}();e.exports=t},60368:function(e,t,n){var r=n(6214);e.exports=function(){function e(e){this.limit="number"!=typeof e||0===e?1/0:e,this.activeRequests=0,this.queuedHandlers=[]}var t=e.prototype;return t._call=function(e){var t=this;this.activeRequests+=1;var n,r=!1;try{n=e()}catch(e){throw this.activeRequests-=1,e}return{abort:function(){r||(r=!0,t.activeRequests-=1,n(),t._queueNext())},done:function(){r||(r=!0,t.activeRequests-=1,t._queueNext())}}},t._queueNext=function(){var e=this;Promise.resolve().then(function(){e._next()})},t._next=function(){if(!(this.activeRequests>=this.limit)&&0!==this.queuedHandlers.length){var e=this.queuedHandlers.shift(),t=this._call(e.fn);e.abort=t.abort,e.done=t.done}},t._queue=function(e,t){var n=this;void 0===t&&(t={});var o={fn:e,priority:t.priority||0,abort:function(){n._dequeue(o)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=r(this.queuedHandlers,function(e){return o.priority>e.priority});return-1===i?this.queuedHandlers.push(o):this.queuedHandlers.splice(i,0,o),o},t._dequeue=function(e){var t=this.queuedHandlers.indexOf(e);-1!==t&&this.queuedHandlers.splice(t,1)},t.run=function(e,t){return this.activeRequests<this.limit?this._call(e):this._queue(e,t)},t.wrapPromiseFunction=function(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s,a=new Promise(function(r,i){s=n.run(function(){var t,n;try{n=Promise.resolve(e.apply(void 0,o))}catch(e){n=Promise.reject(e)}return n.then(function(e){t?i(t):(s.done(),r(e))},function(e){t?i(t):(s.done(),i(e))}),function(){t=new Error("Cancelled")}},t)});return a.abort=function(){s.abort()},a}},e}()},75221:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(2550);e.exports=function(){function e(e){var t=this;this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(e)?e.forEach(function(e){return t._apply(e)}):this._apply(e)}var t=e.prototype;return t._apply=function(e){if(e&&e.strings){var t=this.locale;this.locale=r({},t,{strings:r({},t.strings,e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}},t.interpolate=function(e,t){var n=String.prototype,r=n.split,i=n.replace,s=/\$/g,a=[e];for(var l in t)if("_"!==l&&o(t,l)){var u=t[l];"string"==typeof u&&(u=i.call(t[l],s,"$$$$")),a=c(a,new RegExp("%\\{"+l+"\\}","g"),u)}return a;
2function c(e,t,n){var o=[];return e.forEach(function(e){if("string"!=typeof e)return o.push(e);r.call(e,t).forEach(function(e,t,r){""!==e&&o.push(e),t<r.length-1&&o.push(n)})}),o}},t.translate=function(e,t){return this.translateArray(e,t).join("")},t.translateArray=function(e,t){if(!o(this.locale.strings,e))throw new Error("missing string: "+e);var n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){var r=this.locale.pluralize(t.smart_count);return this.interpolate(n[r],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return this.interpolate(n,t)},e}()},68009:function(e,t,n){var r=n(10811);e.exports=function(e,t,n){return e.toBlob?new Promise(function(r){e.toBlob(r,t,n)}):Promise.resolve().then(function(){return r(e.toDataURL(t,n),{})})}},10811:function(e){e.exports=function(e,t,n){var r=e.split(",")[1],o=t.mimeType||e.split(",")[0].split(":")[1].split(";")[0];null==o&&(o="plain/text");for(var i,s=atob(r),a=[],l=0;l<s.length;l++)a.push(s.charCodeAt(l));try{i=new Uint8Array(a)}catch(e){return null}return n?new File([i],t.name||"",{type:o}):new Blob([i],{type:o})}},47240:function(e,t,n){var r=n(6361).createAbortError;e.exports=function(e,t){return new Promise(function(n,o){if(t&&t.signal&&t.signal.aborted)return o(r());function i(){clearTimeout(s),a(),o(r())}var s=setTimeout(function(){a(),n()},e);function a(){t&&t.signal&&t.signal.removeEventListener("abort",i)}t&&t.signal&&t.signal.addEventListener("abort",i)})}},98018:function(e,t,n){var r=n(25858);e.exports=r(function(e,t,n){var r=t.progress,o=t.bytesUploaded,i=t.bytesTotal;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0})},65307:function(e,t,n){var r=n(48123);e.exports=function(){return fetch.apply(void 0,arguments).catch(function(e){throw"AbortError"===e.name?e:new r(e)})}},17028:function(e,t,n){var r=n(42783);e.exports=function(e){if("string"==typeof e){var t=[].slice.call(document.querySelectorAll(e));return t.length>0?t:null}if("object"==typeof e&&r(e))return[e]}},77540:function(e,t,n){var r=n(42783);e.exports=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):r(e)?e:void 0}},6214:function(e){e.exports=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}},77383:function(e){function t(e){var t="";return e.replace(/[^A-Z0-9]/gi,function(e){return t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"})+t}e.exports=function(e){var n="uppy";return"string"==typeof e.name&&(n+="-"+t(e.name.toLowerCase())),void 0!==e.type&&(n+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(n+="-"+t(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(n+="-"+e.data.size),void 0!==e.data.lastModified&&(n+="-"+e.data.lastModified),n}},42606:function(e){e.exports=function(e){return e.bytesTotal-e.bytesUploaded}},80777:function(e,t,n){var r=n(24762),o=n(56253);e.exports=function(e,t){var n=(void 0===t?{}:t).logDropError,i=void 0===n?function(){}:n;return e.items&&e.items[0]&&"webkitGetAsEntry"in e.items[0]?r(e,i):o(e)}},56253:function(e,t,n){var r=n(14993);e.exports=function(e){var t=r(e.files);return Promise.resolve(t)}},33632:function(e){e.exports=function e(t,n,r,o){var i=o.onSuccess;t.readEntries(function(o){var s=[].concat(n,o);o.length?setTimeout(function(){e(t,s,r,{onSuccess:i})},0):i(s)},function(e){r(e),i(n)})}},81561:function(e){e.exports=function(e){return e.fullPath&&e.fullPath!=="/"+e.name?e.fullPath:null}},24762:function(e,t,n){var r=n(14993),o=n(81561),i=n(33632);e.exports=function(e,t){var n=[],s=[],a=function e(r){return new Promise(function(s){if(r.isFile)r.file(function(e){e.relativePath=o(r),n.push(e),s()},function(e){t(e),s()});else if(r.isDirectory){var a=r.createReader();i(a,[],t,{onSuccess:function(t){var n=t.map(function(t){return e(t)});Promise.all(n).then(function(){return s()})}})}})};return r(e.items).forEach(function(e){var t=e.webkitGetAsEntry();t&&s.push(a(t))}),Promise.all(s).then(function(){return n})}},29340:function(e){e.exports=function(e){var t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}},84905:function(e,t,n){var r=n(29340),o=n(25350);e.exports=function(e){var t=e.name?r(e.name).extension:null;return t=t?t.toLowerCase():null,e.type?e.type:t&&o[t]?o[t]:"application/octet-stream"}},87660:function(e){var t={"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","
2image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};e.exports=function(e){return e=e.replace(/;.*$/,""),t[e]||null}},91664:function(e){e.exports=function(e){var t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return(/^http:\/\//i.test(e)?"ws":"wss")+"://"+t}},57296:function(e){e.exports=function(e){if(!e.bytesUploaded)return 0;var t=new Date-e.uploadStarted;return e.bytesUploaded/(t/1e3)}},11159:function(e){e.exports=function(e){for(;e&&!e.dir;)e=e.parentNode;return e?e.dir:void 0}},39487:function(e){function t(e){return 2!==e.length?0+e:e}e.exports=function(){var e=new Date;return t(e.getHours().toString())+":"+t(e.getMinutes().toString())+":"+t(e.getSeconds().toString())}},2550:function(e){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},42783:function(e){e.exports=function(e){return e&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE}},75356:function(e){e.exports=function(){var e=document.createElement("div");return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)}},33411:function(e){e.exports=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}},72995:function(e){e.exports=function(e){return 0===e.indexOf("blob:")}},19953:function(e){e.exports=function(e){if(!e)return!1;var t=e.split("/")[1];return!!/^(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(t)}},25350:function(e){e.exports={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"}},699:function(e,t,n){var r=n(71242);e.exports=function(e){var t=r(e),n=t.hours?t.hours+"h ":"",o=t.hours?("0"+t.minutes).substr(-2):t.minutes,i=o?o+"m":"",s=o?("0"+t.seconds).substr(-2):t.seconds;return""+n+i+(t.hours?"":o?" "+s+"s":s+"s")}},57624:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=n(29340);e.exports=function(e){return r({},e,{type:e.mimeType,extension:e.name?o(e.name).extension:null})}},71242:function(e){e.exports=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}},35384:function(e){e.exports=function(e){var t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(function(e){return e.then(r,o)})).then(function(){return{successful:t,failed:n}})}},14993:function(e){e.exports=function(e){return Array.prototype.slice.call(e||[],0)}},56788:function(e){e.exports=function(e,t){var n="...";if(e.length<=t)return e;
2if(t<=3)return e.substr(0,t);var r=t-3,o=Math.ceil(r/2),i=Math.floor(r/2);return e.substr(0,o)+n+e.substr(e.length-i)}},89233:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},r("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))}},98632:function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(95237),s=i.h,a=i.Component,l=n(77367),u=n(39058),c=n(39496),p=n(83953),d=n(33643),h=n(91069);function f(e,t){return-1!==e.indexOf(t)}var m=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.componentDidMount=function(){(0,this.props.onFocus)()},a.componentWillUnmount=function(){(0,this.props.onStop)()},a.render=function(){var e=this,t=this.props,n=t.src,o=t.recordedVideo,i=t.recording,a=t.modes,m=t.supportsRecording,g=t.videoSources,v=t.showVideoSourceDropdown,y=t.showRecordingLength,b=t.onSubmit,w=t.i18n,k=t.mirror,S=t.onSnapshot,C=t.onStartRecording,P=t.onStopRecording,E=t.onDiscardRecordedVideo,_=t.recordingLengthSeconds,x=!!o,A=!x&&m&&(f(a,"video-only")||f(a,"audio-only")||f(a,"video-audio")),F=!x&&f(a,"picture"),O=m&&y,R=v&&g&&g.length>1,T={playsinline:!0};return o?(T.muted=!1,T.controls=!0,T.src=o,this.videoElement&&(this.videoElement.srcObject=void 0)):(T.muted=!0,T.autoplay=!0,T.srcObject=n),s("div",{className:"uppy uppy-Webcam-container"},s("div",{className:"uppy-Webcam-videoContainer"},s("video",r({ref:function(t){return e.videoElement=t},className:"uppy-Webcam-video  "+(k?"uppy-Webcam-video--mirrored":"")},T))),s("div",{className:"uppy-Webcam-footer"},s("div",{className:"uppy-Webcam-videoSourceContainer"},R?p(this.props):null),s("div",{className:"uppy-Webcam-buttonContainer"},F&&s(l,{onSnapshot:S,i18n:w}),A&&s(u,{recording:i,onStartRecording:C,onStopRecording:P,i18n:w}),x&&s(d,{onSubmit:b,i18n:w}),x&&s(h,{onDiscard:E,i18n:w})),O&&s("div",{className:"uppy-Webcam-recordingLength"},s(c,{recordingLengthSeconds:_,i18n:w}))))},i}(a);e.exports=m},91069:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.onDiscard,n=e.i18n;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:n("discardRecordedFile"),"aria-label":n("discardRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},r("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("g",{fill:"#FFF",fillRule:"evenodd"},r("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),r("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}},44735:function(e,t,n){var r=n(95237).h;e.exports=function(e){return r("div",{className:"uppy-Webcam-permissons"},r("div",{className:"uppy-Webcam-permissonsIcon"},e.icon()),r("h1",{className:"uppy-Webcam-title"},e.hasCamera?e.i18n("allowAccessTitle"):e.i18n("noCameraTitle")),r("p",null,e.hasCamera?e.i18n("allowAccessDescription"):e.i18n("noCameraDescription")))}},39058:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.recording,n=e.onStartRecording,o=e.onStopRecording,i=e.i18n;return t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:i("stopRecording"),"aria-label":i("stopRecording"),onClick:o,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("rect",{x:"15",y:"15",width:"70",height:"70"}))):r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:i("startRecording"),"aria-label":i("startRecording"),onClick:n,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("circle",{cx:"50",cy:"50",r:"40"})))}},39496:function(e,t,n){var r=n(95237).h,o=n(88599);e.exports=function(e){var t=e.recordingLengthSeconds,n=e.i18n,i=o(t);return r("span",{"aria-label":n("recordingLength",{recording_length:i})},i)}},77367:function(e,t,n){var r=n(95237).h,o=n(89233);e.exports=function(e){var t=e.onSnapshot,n=e.i18n;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:n("takePicture"),"aria-label":n("takePicture"),onClick:t,"data-uppy-super-focusable":!0},o())}},33643:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.onSubmit,n=e.i18n;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:n("submitRecordedFile"),"aria-label":n("submitRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},r("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}},83953:function(e,t,n){var r=n(95237).h;e.exports=function(e){var t=e.currentDeviceId,n=e.videoSources,o=e.onChangeVideoSource;return r("div",{className:"uppy-Webcam-videoSource"},r("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:function(e){o(e.target.value)}},n.map(function(e){return r("option",{key:e.deviceId,value:e.deviceId,selected:e.deviceId===t},e.label)})))}},88599:function(e){e.exports=function(e){return Math.floor(e/60)+":"+String(e%60).padStart(2,0)}},21883:function(e,t,n){var r,o;function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(95237).h,u=n(57097).Plugin,c=n(75221),p=n(87660),d=n(25350),h=n(68009),f=n(66337),m=n(89233),g=n(98632),v=n(44735);function y(e){return"."===e[0]?d[e.slice(1)]:e}function b(e){return/^video\/[^*]+$/.test(e)}function w(e){return/^image\/[^*]+$/.test(e)}e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).mediaDevices=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise(function(n,r){e.call(navigator,t,n,r)})}}:null}(),r.supportsUserMedia=!!r.mediaDevices,r.protocol=location.protocol.match(/https/i)?"https":"http",r.id=r.opts.id||"Webcam",r.title=r.opts.title||"Camera",r.type="acquirer",r.capturedMediaFile=null,r.icon=function(){return l("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},l("g",{fill:"none",fillRule:"evenodd"},l("rect",{className:"uppy-ProviderIconBg",fill:"#03BFEF",width:"32",height:"32",rx:"16"}),l("path",{d:"M22 11c1.133 0 2 .867 2 2v7.333c0 1.134-.867 2-2 2H10c-1.133 0-2-.866-2-2V13c0-1.133.867-2 2-2h2.333l1.134-1.733C13.6 9.133 13.8 9 14 9h4c.2 0 .4.133.533.267L19.667 11H22zm-6 1.533a3.764 3.764 0 0 0-3.8 3.8c0 2.129 1.672 3.801 3.8 3.801s3.8-1.672 3.8-3.8c0-2.13-1.672-3.801-3.8-3.801zm0 6.261c-1.395 0-2.46-1.066-2.46-2.46 0-1.395 1.065-2.461 2.46-2.461s2.46 1.066 2.46 2.46c0 1.395-1.065 2.461-2.46 2.461z",fill:"#FFF",fillRule:"nonzero"})))},r.defaultLocale={strings:{smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordingLength:"Recording length %{recording_length}",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file"}};var o={onBeforeSnapshot:function(){return Promise.resolve()},countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1};return r.opts=i({},o,n),r.i18nInit(),r.install=r.install.bind(s(r)),r.setPluginState=r.setPluginState.bind(s(r)),r.render=r.render.bind(s(r)),r.start=r.start.bind(s(r)),r.stop=r.stop.bind(s(r)),r.takeSnapshot=r.takeSnapshot.bind(s(r)),r.startRecording=r.startRecording.bind(s(r)),r.stopRecording=r.stopRecording.bind(s(r)),r.discardRecordedVideo=r.discardRecordedVideo.bind(s(r)),r.submit=r.submit.bind(s(r)),r.oneTwoThreeSmile=r.oneTwoThreeSmile.bind(s(r)),r.focus=r.focus.bind(s(r)),r.changeVideoSource=r.changeVideoSource.bind(s(r)),r.webcamActive=!1,r.opts.countdown&&(r.opts.onBeforeSnapshot=r.oneTwoThreeSmile),r.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null}),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,i({},t,{videoConstraints:i({},this.opts.videoConstraints,null==t?void 0:t.videoConstraints)})),this.i18nInit()},o.i18nInit=function(){this.translator=new c([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},o.hasCameraCheck=function(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then(function(e){return e.some(function(e){return"videoinput"===e.kind})}):Promise.resolve(!1)},o.isAudioOnly=function(){return 1===this.opts.modes.length&&"audio-only"===this.opts.modes[0]},o.getConstraints=function(e){var t;void 0===e&&(e=null);var n=-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),r=!this.isAudioOnly()&&(-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("video-only")||-1!==this.opts.modes.indexOf("picture")),o=i({},null!=(t=this.opts.videoConstraints)?t:{facingMode:this.opts.facingMode},e?{deviceId:e,facingMode:null}:{});return{audio:n,video:!!r&&o}},o.start=function(e){var t=this;if(void 0===e&&(e=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror=!0;var n=this.getConstraints(e&&e.deviceId?e.deviceId:null);this.hasCameraCheck().then(function(r){return t.setPluginState({hasCamera:r}),t.mediaDevices.getUserMedia(n).then(function(n){t.stream=n;var r=null,o=t.isAudioOnly()?n.getAudioTracks():n.getVideoTracks();e&&e.deviceId?o.forEach(function(t){t.getSettings().deviceId===e.deviceId&&(r=t.getSettings().deviceId)}):r=o[0].getSettings().deviceId,t.updateVideoSources(),t.setPluginState({currentDeviceId:r,cameraReady:!0})}).catch(function(e){t.setPluginState({cameraReady:!1,cameraError:e}),t.uppy.info(e.message,"error")})})},o.getMediaRecorderOptions=function(){var e={};
2if(MediaRecorder.isTypeSupported){var t=this.uppy.opts.restrictions,n=[];this.opts.preferredVideoMimeType?n=[this.opts.preferredVideoMimeType]:t.allowedFileTypes&&(n=t.allowedFileTypes.map(y).filter(b));var r=n.filter(function(e){return MediaRecorder.isTypeSupported(e)&&p(e)});r.length>0&&(e.mimeType=r[0])}return e},o.startRecording=function(){var e=this;this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];var t=!1;this.recorder.addEventListener("dataavailable",function(n){e.recordingChunks.push(n.data);var r=e.uppy.opts.restrictions;if(e.recordingChunks.length>1&&null!=r.maxFileSize&&!t){var o=e.recordingChunks.reduce(function(e,t){return e+t.size},0),i=3*((o-e.recordingChunks[0].size)/(e.recordingChunks.length-1));o>Math.max(0,r.maxFileSize-i)&&(t=!0,e.uppy.info(e.i18n("recordingStoppedMaxSize"),"warning",4e3),e.stopRecording())}}),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval(function(){var t=e.getPluginState().recordingLengthSeconds;e.setPluginState({recordingLengthSeconds:t+1})},1e3)),this.setPluginState({isRecording:!0})},o.stopRecording=function(){var e=this;return new Promise(function(t){e.recorder.addEventListener("stop",function(){t()}),e.recorder.stop(),e.opts.showRecordingLength&&(clearInterval(e.recordingLengthTimer),e.setPluginState({recordingLengthSeconds:0}))}).then(function(){return e.setPluginState({isRecording:!1}),e.getVideo()}).then(function(t){try{e.capturedMediaFile=t,e.setPluginState({recordedVideo:URL.createObjectURL(t.data)}),e.opts.mirror=!1}catch(t){t.isRestriction||e.uppy.log(t)}}).then(function(){e.recordingChunks=null,e.recorder=null},function(t){throw e.recordingChunks=null,e.recorder=null,t})},o.discardRecordedVideo=function(){this.setPluginState({recordedVideo:null}),this.opts.mirror=!0,this.capturedMediaFile=null},o.submit=function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}},o.stop=function(){this.stream&&(this.stream.getAudioTracks().forEach(function(e){e.stop()}),this.stream.getVideoTracks().forEach(function(e){e.stop()})),this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null})},o.getVideoElement=function(){return this.el.querySelector(".uppy-Webcam-video")},o.oneTwoThreeSmile=function(){var e=this;return new Promise(function(t,n){var r=e.opts.countdown,o=setInterval(function(){if(!e.webcamActive)return clearInterval(o),e.captureInProgress=!1,n(new Error("Webcam is not active"));r>0?(e.uppy.info(r+"...","warning",800),r--):(clearInterval(o),e.uppy.info(e.i18n("smile"),"success",1500),setTimeout(function(){return t()},1500))},1e3)})},o.takeSnapshot=function(){var e=this;this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(function(t){var n="object"==typeof t?t.message:t;return e.uppy.info(n,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: "+n))}).then(function(){return e.getImage()}).then(function(t){e.captureInProgress=!1;try{e.uppy.addFile(t)}catch(t){t.isRestriction||e.uppy.log(t)}},function(t){throw e.captureInProgress=!1,t}))},o.getImage=function(){var e=this,t=this.getVideoElement();if(!t)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));var n=t.videoWidth,r=t.videoHeight,o=document.createElement("canvas");o.width=n,o.height=r,o.getContext("2d").drawImage(t,0,0);var i=this.uppy.opts.restrictions,s=[];this.opts.preferredImageMimeType?s=[this.opts.preferredImageMimeType]:i.allowedFileTypes&&(s=i.allowedFileTypes.map(y).filter(w));var a=s[0]||"image/jpeg",l=p(a)||"jpg",u="cam-"+Date.now()+"."+l;return h(o,a).then(function(t){return{source:e.id,name:u,data:new Blob([t],{type:a}),type:a}})},o.getVideo=function(){var e=this.recordingChunks.find(function(e){var t;return(null==(t=e.type)?void 0:t.length)>0}).type,t=p(e);if(!t)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'+e+'"'));var n="webcam-"+Date.now()+"."+t,r=new Blob(this.recordingChunks,{type:e}),o={source:this.id,name:n,data:new Blob([r],{type:e}),type:e};return Promise.resolve(o)},o.focus=function(){var e=this;this.opts.countdown&&setTimeout(function(){e.uppy.info(e.i18n("smile"),"success",1500)},1e3)},o.changeVideoSource=function(e){this.stop(),this.start({deviceId:e})},o.updateVideoSources=function(){var e=this;this.mediaDevices.enumerateDevices().then(function(t){e.setPluginState({videoSources:t.filter(function(e){return"videoinput"===e.kind})})})},o.render=function(){this.webcamActive||this.start();var e=this.getPluginState();return e.cameraReady&&e.hasCamera?l(g,i({},e,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:f(),recording:e.isRecording,mirror:this.opts.mirror,src:this.stream})):l(v,{icon:m,i18n:this.i18n,hasCamera:e.hasCamera})},o.install=function(){var e=this;this.setPluginState({cameraReady:!1,recordingLengthSeconds:0});var t=this.opts.target;t&&this.mount(t,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=function(){if(e.updateVideoSources(),e.stream){var t=!0,n=e.getPluginState(),r=n.videoSources,o=n.currentDeviceId;r.forEach(function(e){o===e.deviceId&&(t=!1)}),t&&(e.stop(),e.start())}})},o.uninstall=function(){this.stream&&this.stop(),this.unmount()},r}(u),r.VERSION="1.8.13",o)},66337:function(e){e.exports=function(){return"function"==typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"==typeof MediaRecorder.prototype.start}},37094:function(e,t,n){var r,o;
2function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var a=n(57097).Plugin,l=n(37584),u=n(75221),c=n(88788),p=c.Provider,d=c.RequestClient,h=c.Socket,f=n(98018),m=n(91664),g=n(35384),v=n(77031),y=n(69109),b=n(60368),w=n(48123),k=n(33411);function S(e,t){return t||(t=new Error("Upload error")),"string"==typeof t&&(t=new Error(t)),t instanceof Error||(t=s(new Error("Upload error"),{data:t})),k(e)?t=new w(t,e):(t.request=e,t)}function C(e){return e.data.slice(0,e.data.size,e.meta.type)}e.exports=(o=r=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"XHRUpload",r.title="XHRUpload",r.defaultLocale={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};var o={formData:!0,fieldName:"files[]",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:0,withCredentials:!1,responseType:"",getResponseData:function(e,t){var n={};try{n=JSON.parse(e)}catch(e){console.log(e)}return n},getResponseError:function(e,t){var n=new Error("Upload error");return k(t)&&(n=new w(n,t)),n},validateStatus:function(e,t,n){return e>=200&&e<300}};if(r.opts=s({},o,n),r.i18nInit(),r.handleUpload=r.handleUpload.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.opts.__queue instanceof b?r.requests=r.opts.__queue:r.requests=new b(r.opts.limit),r.opts.bundle&&!r.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");return r.uploaderEvents=Object.create(null),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new u([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},o.getOptions=function(e){var t=this.uppy.getState().xhrUpload,n=this.opts.headers,r=s({},this.opts,t||{},e.xhrUpload||{},{headers:{}});return"function"==typeof n?r.headers=n(e):s(r.headers,this.opts.headers),t&&s(r.headers,t.headers),e.xhrUpload&&s(r.headers,e.xhrUpload.headers),r},o.addMetadata=function(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(function(n){e.append(n,t[n])})},o.createFormDataUpload=function(e,t){var n=new FormData;this.addMetadata(n,e.meta,t);var r=C(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n},o.createBundledUpload=function(e,t){var n=this,r=new FormData,o=this.uppy.getState().meta;return this.addMetadata(r,o,t),e.forEach(function(e){var t=n.getOptions(e),o=C(e);e.name?r.append(t.fieldName,o,e.name):r.append(t.fieldName,o)}),r},o.createBareUpload=function(e,t){return e.data},o.upload=function(e,t,n){var r=this,o=this.getOptions(e);
2return this.uppy.log("uploading "+t+" of "+n),new Promise(function(t,n){r.uppy.emit("upload-started",e);var i=o.formData?r.createFormDataUpload(e,o):r.createBareUpload(e,o),s=new XMLHttpRequest;r.uploaderEvents[e.id]=new v(r.uppy);var a=new y(o.timeout,function(){s.abort(),c.done();var t=new Error(r.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));r.uppy.emit("upload-error",e,t),n(t)}),u=l();s.upload.addEventListener("loadstart",function(e){r.uppy.log("[XHRUpload] "+u+" started")}),s.upload.addEventListener("progress",function(t){r.uppy.log("[XHRUpload] "+u+" progress: "+t.loaded+" / "+t.total),a.progress(),t.lengthComputable&&r.uppy.emit("upload-progress",e,{uploader:r,bytesUploaded:t.loaded,bytesTotal:t.total})}),s.addEventListener("load",function(i){if(r.uppy.log("[XHRUpload] "+u+" finished"),a.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),o.validateStatus(i.target.status,s.responseText,s)){var l=o.getResponseData(s.responseText,s),p=l[o.responseUrlFieldName],d={status:i.target.status,body:l,uploadURL:p};return r.uppy.emit("upload-success",e,d),p&&r.uppy.log("Download "+e.name+" from "+p),t(e)}var h=o.getResponseData(s.responseText,s),f=S(s,o.getResponseError(s.responseText,s)),m={status:i.target.status,body:h};return r.uppy.emit("upload-error",e,f,m),n(f)}),s.addEventListener("error",function(t){r.uppy.log("[XHRUpload] "+u+" errored"),a.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null);var i=S(s,o.getResponseError(s.responseText,s));return r.uppy.emit("upload-error",e,i),n(i)}),s.open(o.method.toUpperCase(),o.endpoint,!0),s.withCredentials=o.withCredentials,""!==o.responseType&&(s.responseType=o.responseType);var c=r.requests.run(function(){var t=r.getOptions(e);return Object.keys(t.headers).forEach(function(e){s.setRequestHeader(e,t.headers[e])}),s.send(i),function(){a.done(),s.abort()}});r.onFileRemove(e.id,function(){c.abort(),n(new Error("File removed"))}),r.onCancelAll(e.id,function(){c.abort(),n(new Error("Upload cancelled"))})})},o.uploadRemote=function(e,t,n){var r=this,o=this.getOptions(e);return new Promise(function(t,n){r.uppy.emit("upload-started",e);var i={};(Array.isArray(o.metaFields)?o.metaFields:Object.keys(e.meta)).forEach(function(t){i[t]=e.meta[t]}),new(e.remote.providerOptions.provider?p:d)(r.uppy,e.remote.providerOptions).post(e.remote.url,s({},e.remote.body,{endpoint:o.endpoint,size:e.data.size,fieldname:o.fieldName,metadata:i,httpMethod:o.method,useFormData:o.formData,headers:o.headers})).then(function(i){var a=i.token,l=m(e.remote.companionUrl),u=new h({target:l+"/api/"+a,autoOpen:!1});r.uploaderEvents[e.id]=new v(r.uppy),r.onFileRemove(e.id,function(){u.send("pause",{}),c.abort(),t("upload "+e.id+" was removed")}),r.onCancelAll(e.id,function(){u.send("pause",{}),c.abort(),t("upload "+e.id+" was canceled")}),r.onRetry(e.id,function(){u.send("pause",{}),u.send("resume",{})}),r.onRetryAll(e.id,function(){u.send("pause",{}),u.send("resume",{})}),u.on("progress",function(t){return f(r,t,e)}),u.on("success",function(n){var i=o.getResponseData(n.response.responseText,n.response),s=i[o.responseUrlFieldName],a={status:n.response.status,body:i,uploadURL:s};return r.uppy.emit("upload-success",e,a),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),t()}),u.on("error",function(t){var i=t.response,a=i?o.getResponseError(i.responseText,i):s(new Error(t.error.message),{cause:t.error});r.uppy.emit("upload-error",e,a),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),n(a)});
2var c=r.requests.run(function(){return u.open(),e.isPaused&&u.send("pause",{}),function(){return u.close()}})}).catch(function(t){r.uppy.emit("upload-error",e,t),n(t)})})},o.uploadBundle=function(e){var t=this;return new Promise(function(n,r){var o=t.opts.endpoint,i=t.opts.method,a=t.uppy.getState().xhrUpload,l=t.createBundledUpload(e,s({},t.opts,a||{})),u=new XMLHttpRequest,c=new y(t.opts.timeout,function(){u.abort();var e=new Error(t.i18n("timedOut",{seconds:Math.ceil(t.opts.timeout/1e3)}));p(e),r(e)}),p=function(n){e.forEach(function(e){t.uppy.emit("upload-error",e,n)})};u.upload.addEventListener("loadstart",function(e){t.uppy.log("[XHRUpload] started uploading bundle"),c.progress()}),u.upload.addEventListener("progress",function(n){c.progress(),n.lengthComputable&&e.forEach(function(e){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:n.loaded/n.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",function(o){if(c.done(),t.opts.validateStatus(o.target.status,u.responseText,u)){var i=t.opts.getResponseData(u.responseText,u),s={status:o.target.status,body:i};return e.forEach(function(e){t.uppy.emit("upload-success",e,s)}),n()}var a=t.opts.getResponseError(u.responseText,u)||new Error("Upload error");return a.request=u,p(a),r(a)}),u.addEventListener("error",function(e){c.done();var n=t.opts.getResponseError(u.responseText,u)||new Error("Upload error");return p(n),r(n)}),t.uppy.on("cancel-all",function(){c.done(),u.abort()}),u.open(i.toUpperCase(),o,!0),u.withCredentials=t.opts.withCredentials,""!==t.opts.responseType&&(u.responseType=t.opts.responseType),Object.keys(t.opts.headers).forEach(function(e){u.setRequestHeader(e,t.opts.headers[e])}),u.send(l),e.forEach(function(e){t.uppy.emit("upload-started",e)})})},o.uploadFiles=function(e){var t=this,n=e.map(function(n,r){var o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?t.uploadRemote(n,o,i):t.upload(n,o,i)});return g(n)},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",function(n){e===n.id&&t(n.id)})},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(n){e===n&&t()})},o.onRetryAll=function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",function(r){n.uppy.getFile(e)&&t()})},o.onCancelAll=function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t()})},o.handleUpload=function(e){var t=this;
2if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts.__queue||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");var n=e.map(function(e){return t.uppy.getFile(e)});if(this.opts.bundle){if(n.some(function(e){return e.isRemote}))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(n)}return this.uploadFiles(n).then(function(){return null})},o.install=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:s({},e,{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)},o.uninstall=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:s({},e,{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)},r}(a),r.VERSION="1.7.5",o)},48402:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return t=c(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}
2Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AbortSignal,e.AbortController}("undefined"!=typeof self?self:n.g);var f=function(){return a(function e(){i(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})},[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=function(){var r=n[o];try{r.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}r.options&&r.options.once&&t.removeEventListener(e.type,r.callback)},o=0,i=n.length;o<i;o++)r();return!e.defaultPrevented}}}])}(),m=function(e){function t(){var e;return i(this,t),(e=o(this,t)).listeners||f.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),a(t,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),function(e,t,n,r){var o=u(c(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"dispatchEvent",this,3)([e])}},{key:"throwIfAborted",value:function(){var e=this.aborted,t=this.reason;if(e)throw void 0===t?"Aborted":t}}],[{key:"timeout",value:function(e){var t=new g;return setTimeout(function(){return t.abort(new DOMException("This signal is timeout in ".concat(e,"ms"),"TimeoutError"))},e),t.signal}},{key:"any",value:function(e){var t=new g;function n(){t.abort(this.reason),function(){var t,r=l(e);try{for(r.s();!(t=r.n()).done;){t.value.removeEventListener("abort",n)}}catch(e){r.e(e)}finally{r.f()}}()}var r,o=l(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.aborted){t.abort(i.reason);break}i.addEventListener("abort",n)}}catch(e){o.e(e)}finally{o.f()}return t.signal}}])}(f),g=function(){return a(function e(){i(this,e),Object.defineProperty(this,"signal",{value:new m,writable:!0,configurable:!0})},[{key:"abort",value:function(e){var t=function(e){if(void 0===e)if("undefined"==typeof document)(e=new Error("This operation was aborted")).name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(t){(e=new Error("This operation was aborted")).name="AbortError"}return e}(e),n=function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}return t.reason=e,t}(t);this.signal.reason=t,this.signal.dispatchEvent(n)}},{key:"toString",value:function(){return"[object AbortController]"}}])}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(g.prototype[Symbol.toStringTag]="AbortController",m.prototype[Symbol.toStringTag]="AbortSignal"),t.AbortController=g,t.AbortSignal=m,t.default=g},20969:function(e){function t(){}e.exports=function(e,n,r){var o=!1;return r=r||t,i.count=e,0===e?n():i;function i(e,t){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,n(e),n=r):0!==i.count||o||n(null,t)}}},53344:function(e){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),s=t,a=0;s<n;s++,a++)i[a]=o[s];return i.buffer}},72505:function(e,t,n){e.exports=n(18015)},35592:function(e,t,n){"use strict";var r=n(9516),o=n(7522),i=n(33948),s=n(79106),a=n(99615),l=n(62012),u=n(64202),c=n(47763);e.exports=function(e){return new Promise(function(t,n){var p=e.data,d=e.headers,h=e.responseType;r.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=a(e.baseURL,e.url);function y(){if(f){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}}if(f.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&r.forEach(d,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),h&&"json"!==h&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),n(e),f=null)}),p||(p=null),f.send(p)})}},18015:function(e,t,n){"use strict";var r=n(9516),o=n(69012),i=n(35155),s=n(85343);function a(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=a(n(96987));l.Axios=i,l.create=function(e){return a(s(l.defaults,e))},l.Cancel=n(31928),l.CancelToken=n(3191),l.isCancel=n(93864),l.all=function(e){return Promise.all(e)},l.spread=n(17980),l.isAxiosError=n(45019),e.exports=l,e.exports.default=l},31928:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
vendor: 10,622 bytes, line 2
2,t.prototype.__CANCEL__=!0,e.exports=t},3191:function(e,t,n){"use strict";var r=n(31928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},93864:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},35155:function(e,t,n){"use strict";var r=n(9516),o=n(79106),i=n(83471),s=n(64490),a=n(85343),l=n(34841),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)}),!r){var c=[s,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var p=e;n.length;){var d=n.shift(),h=n.shift();try{p=d(p)}catch(e){h(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}}),e.exports=c},83471:function(e,t,n){"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},99615:function(e,t,n){"use strict";var r=n(29137),o=n(84680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},47763:function(e,t,n){"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},64490:function(e,t,n){"use strict";var r=n(9516),o=n(82881),i=n(93864),s=n(96987);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return a(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},5449:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},85343:function(e,t,n){"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}r.forEach(o,function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}),r.forEach(i,u),r.forEach(s,function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])}),r.forEach(a,function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))});var c=o.concat(i).concat(s).concat(a),p=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===c.indexOf(e)});return r.forEach(p,u),n}},7522:function(e,t,n){"use strict";var r=n(47763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},82881:function(e,t,n){"use strict";var r=n(9516),o=n(96987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,function(n){e=n.call(i,e,t)}),e}},96987:function(e,t,n){"use strict";var r=n(65606),o=n(9516),i=n(7018),s=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(35592)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){c.headers[e]={}}),o.forEach(["post","put","patch"],function(e){c.headers[e]=o.merge(a)}),e.exports=c},69012:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},79106:function(e,t,n){"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))}))}),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},84680:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},33948:function(e,t,n){"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},29137:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},45019:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},64202:function(e,t,n){"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7018:function(e,t,n){"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},62012:function(e,t,n){"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}}),s):s}},17980:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},34841:function(e,t,n){"use strict";var r=n(64198),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var i={},s=r.version.split(".");function a(e,t){for(var n=t?t.split("."):s,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;
2if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&a(t);function s(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(s(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],l=void 0===a||s(a,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},9516:function(e,t,n){"use strict";var r=n(69012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},27959:function(t,n,r){"use strict";r.d(n,{A:function(){return l}});var o=r(78465),i=r.n(o)().mixin({title:e(window.trans["cms::messages.are_you_sure"]),icon:"warning",showCancelButton:!0,confirmButtonText:e(window.trans["cms::messages.yes"]),cancelButtonText:e(window.trans["cms::messages.cancel"]),customClass:{confirmButton:"btn btn--ghost border btn--no-icon",cancelButton:"btn btn--ghost border btn--no-icon"},reverseButtons:!1,focusConfirm:!1,buttonsStyling:!1,showClass:{popup:"pop-up-colors",backdrop:"swal2-noanimation",icon:""},hideClass:{popup:""}}),s=r(12459),a=r.n(s),l=function(e){return new Promise(function(t,n){a().ctrl||a()["⌘"]?t():i.fire({text:e}).then(function(e){if(e.isConfirmed)return t();n()})})}},98599:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(57097),o=(n(88788),n(63508),n(759),n(51436),n(30766),n(13062),n(35621)),i=(n(20780),n(55577),n(67316),n(80040),n(70268),n(40630),n(91154),n(95754),n(60198),n(77747),n(21883),n(56521),n(99584),n(12681),n(80769),n(23470)),s=(n(37094),n(27164),n(34032),n(52636),n(46590),n(80777)),a=n.n(s),l=n(74894),u=n(44525);function c(e){return c="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},c(e)}function p(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var m=(0,l.m)().trans,g=(0,u.l)().route,v=1,y=function(){return function(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginId=0,this.preventProgressEvent=!1,this.allowMultipleUploads=!1,this.uppy=new r({autoProceed:!0,allowMultipleUploads:!1,debug:!1,restrictions:{allowedFileTypes:Object.keys(s).length>0?Object.keys(s).reduce(function(e,t){var n=s[t].map(function(e){return".".concat(e)});return e.concat.apply(e,p(n))},[]):null,maxNumberOfFiles:1,maxFileSize:a},meta:{format:t,metadata:o},locale:{strings:{exceedsSize2:m("validation.file_uploader.exceeds_size"),youCanOnlyUploadFileTypes:m("validation.file_uploader.invalid_type"),failedToUpload:m("cms-media::notes.errors.error")}}}).use(i,{endpoint:g("dragonfly-api.media.tus"),chunkSize:2e7,limit:5,resume:!1,headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}).on("file-added",function(e){e.meta.id=v++}).on("complete",function(){n.allowMultipleUploads||(n.preventProgressEvent=!0,n.uppy.reset())})},[{key:"withButton",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;
2return this.uppy.use(o,{id:"button-".concat(this.pluginId++),target:$(e)[0],pretty:!0,locale:{strings:{chooseFiles:t}}}),$(e).find(".uppy-FileInput-btn").addClass(n),this}},{key:"withDragAndDrop",value:function(e){var t=this;return $(e).on("drop",function(n){n.preventDefault(),n.stopPropagation(),clearTimeout(t.removeDragOverClassTimeout),$(e).removeClass("dropzone-active"),a()(n.originalEvent.dataTransfer).then(function(e){t.uppy.addFiles(e.map(function(e){return{name:e.name,type:e.type,data:e}}))})}),$(e).on("dragover",function(n){n.preventDefault(),n.stopPropagation(),n.originalEvent.dataTransfer.dropEffect="copy",clearTimeout(t.removeDragOverClassTimeout),$(e).addClass("dropzone-active")}),$(e).on("dragleave",function(n){n.preventDefault(),n.stopPropagation(),clearTimeout(t.removeDragOverClassTimeout),t.removeDragOverClassTimeout=setTimeout(function(){$(e).removeClass("dropzone-active")},50)}),this}},{key:"on",value:function(e,t){var n=this;this.uppy.on(e,function(){if("progress"==e&&n.preventProgressEvent)n.preventProgressEvent=!1;else try{t.apply(void 0,arguments)}catch(e){console.error(e)}})}}
2,{key:"allowMultipleFiles",value:function(){return this.uppy.setOptions({allowMultipleUploads:!0,restrictions:{maxNumberOfFiles:null}}),this.allowMultipleUploads=!0,this}}])}()},92416:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(27959);function o(){return{confirm:function(e){return(0,r.A)(e)}}}},44525:function(e,t,n){"use strict";function r(e,t){var n=function(e,t){return e=e.replace(/\{(.*?)\??\}/g,function(e,n){if(t.hasOwnProperty(n)){var r=t[n];return delete t[n],encodeURIComponent(r)}return e}),e=e.replace(/\/\{.*?\?\}/g,""),e}(e,t),r=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(n,"=").concat(encodeURIComponent(e[n])));if(t.length<1)return"";return"?".concat(t.join("&"))}(t);return function(e){return"/".concat(e.replace(/(^\/?|\/?$)/g,""))}(n+r)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{route:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e[t]||window.routes[t];if(o)return r(o,n)}}}n.d(t,{l:function(){return o}})},74894:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{trans:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e[t]||window.trans[t]||t;return Object.keys(n).forEach(function(e){r=r.replace(":".concat(e),n[e])}),r},transChoice:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(e[t]||window.trans[t]||null).split("|");return o=n>1&&o[1]||o[0],r.count=n,Object.keys(r).forEach(function(e){o=o.replace(":".concat(e),r[e])}),o}}}n.d(t,{m:function(){return r}})},63059:function(e){function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},53371:function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<64;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,s,a=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),p=new Uint8Array(c);for(t=0;t<l;t+=4)r=n[e.charCodeAt(t)],o=n[e.charCodeAt(t+1)],i=n[e.charCodeAt(t+2)],s=n[e.charCodeAt(t+3)],p[u++]=r<<2|o>>4,p[u++]=(15&o)<<4|i>>2,p[u++]=(3&i)<<6|63&s;return c}}()},67526:function(e,t){"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=a(e),s=i[0],l=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),c=0,p=l>0?s-4:s;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=16383,a=0,l=r-o;a<l;a+=s)i.push(u(e,a,a+s>l?l:a+s));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(l(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3118:function(e){var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?Web
vendor: 5,057 bytes, line 2
2KitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=t&&t.prototype.append&&t.prototype.getBlob;function i(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e})}function s(e,n){n=n||{};var r=new t;return i(e).forEach(function(e){r.append(e)}),n.type?r.getBlob(n.type):r.getBlob()}function a(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,a.prototype=Blob.prototype),e.exports=n?r?Blob:a:o?s:void 0},48287:function(e,t,n){"use strict";var r=n(67526),o=n(251),i=n(64634);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n);e=a(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=a(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 14,536 bytes, line 2
2s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){for(var p=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){p=!1;break}if(p)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function w(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function k(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return k(e,t,n,r)}function C(e,t,n,r){return H(q(t),e,n,r)}function P(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,l,u=e[o],c=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=n)switch(p){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=p}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return p(null,e)},l.allocUnsafeSlow=function(e){return p(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),c=e.slice(t,n),p=0;p<a;++p)if(u[p]!==c[p]){i=u[p],s=c[p];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=M(e[i]);return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||U(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||U(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);U(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);U(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=l.isBuffer(e)?e:z(new l(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>
2-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},18144:function(e){var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},5971:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t);return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},22370:function(e){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},37584:function(e,t,n){var r=n(64146),o=n(78473),i=n(23048),s=0,a=Math.pow(36,4);function l(){return o((i()*a|0).toString(36),4)}function u(){return s=s<a?s:0,++s-1}function c(){return"c"+(new Date).getTime().toString(36)+o(u().toString(36),4)+r()+(l()+l())}c.slug=function(){var e=(new Date).getTime().toString(36),t=u().toString(36).slice(-4),n=r().slice(0,1)+r().slice(-1),o=l().slice(-2);return e.slice(-2)+t+n+o},c.isCuid=function(e){return"string"==typeof e&&!!e.startsWith("c")},c.isSlug=function(e){if("string"!=typeof e)return!1;var t=e.length;return t>=7&&t<=10},c.fingerprint=r,e.exports=c},64146:function(e,t,n){var r=n(78473),o="object"==typeof window?window:self,i=Object.keys(o).length,s=r(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+i.toString(36),4);e.exports=function(){return s}},23048:function(e){var t,n="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(n){var r=Math.pow(2,32)-1;t=function(){return Math.abs(n.getRandomValues(new Uint32Array(1))[0]/r)}}else t=Math.random;e.exports=t},78473:function(e){e.exports=function(e,t){var n="000000000"+e;return n.substr(n.length-t)}},3357:function(e,t,n){e.exports=n(67292),e.exports.parser=n(23401)},67292:function(e,t,n){var r=n(78520),o=n(5971),i=n(56617)("engine.io-client:socket"),s=n(96938),a=n(23401),l=n(14258),u=n(29140);function c(e,t){if(!(this instanceof c))return new c(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=l(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.t
vendor: 31,204 bytes, line 2
2imestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=c,c.priorWebsocketSuccess=!1,o(c.prototype),c.protocol=a.protocol,c.Socket=c,c.Transport=n(12672),c.transports=n(78520),c.parser=n(23401),c.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=a.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},c.prototype.open=function(){var e;if(this.rememberUpgrade&&c.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},c.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},c.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;c.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),d(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())})}else{i('probe transport "%s" failed',e);var s=new Error("probe error");s.transport=t.name,r.emit("upgradeError",s)}}))}function s(){n||(n=!0,d(),t.close(),t=null)}function a(n){var o=new Error("probe error: "+n);o.transport=t.name,s(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function l(){a("transport closed")}function u(){a("socket closed")}function p(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),s())}function d(){t.removeListener("open",o),t.removeListener("error",a),t.removeListener("close",l),r.removeListener("close",u),r.removeListener("upgrading",p)}c.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",a),t.once("close",l),this.once("close",u),this.once("upgrading",p),t.open()},c.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",c.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},c.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)},c.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},c.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},c.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){i("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},c.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},c.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},c.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},c.prototype.write=c.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},c.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},c.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():t()}):this.upgrading?r():t()}function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},c.prototype.onError=function(e){i("socket error %j",e),c.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},c.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){i('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},c.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~s(this.transports,e[n])&&t.push(e[n]);return t}},12672:function(e,t,n){var r=n(23401),o=n(5971);function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=i,o(i.prototype),i.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},78520:function(e,t,n){var r=n(3051),o=n(79332),i=n(82252),s=n(46855);t.polling=function(e){var t=!1,n=!1,s=!1!==e.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,l=location.port;l||(l=a?443:80),t=e.hostname!==location.hostname||l!==e.port,n=e.secure!==a}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!s)throw new Error("JSONP disabled");return new i(e)},t.websocket=s},82252:function(e,t,n){var r=n(55911),o=n(22370);e.exports=c;var i,s=/\n/g,a=/\\n/g;function l(){}function u(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}function c(e){if(r.call(this,e),this.query=this.query||{},!i){var t=u();i=t.___eio=t.___eio||[]}this.index=i.length;var n=this;i.push(function(e){n.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=l)},!1)}o(c,r),c.prototype.supportsBinary=!1,c.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},c.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},c.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=l,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function u(){c(),t()}function c(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),c(),e=e.replace(a,"\\\n"),this.area.value=e.replace(s,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&u()}:this.iframe.onload=u}},79332:function(e,t,n){var r=n(3051),o=n(55911),i=n(5971),s=n(22370),a=n(56617)("engine.io-client:polling-xhr");function l(){}function u(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function c(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=u,e.exports.Request=c,s(u,o),u.prototype.supportsBinary=!0,u.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new c(e)},u.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",function(e){o.onError("xhr post error",e)}),this.sendXhr=r},u.prototype.doPoll=function(){a("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},i(c.prototype),c.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{a("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=!0),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===e&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout(function(){n.onError(t.status)},0))},a("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout(function(){n.onError(e)},0)}"undefined"!=typeof document&&(this.index=c.requestsCount++,c.requests[this.index]=this)},c.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},c.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},c.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},c.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=l:this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete c.requests[this.index],this.xhr=null}},c.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},c.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},c.prototype.abort=function(){this.cleanup()},c.requestsCount=0,c.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",d);else if("function"==typeof addEventListener){var p="onpagehide"in self?"pagehide":"unload";addEventListener(p,d,!1)}function d(){for(var e in c.requests)c.requests.hasOwnProperty(e)&&c.requests[e].abort()}},55911:function(e,t,n){var r=n(12672),o=n(29140),i=n(23401),s=n(22370),a=n(42121),l=n(56617)("engine.io-client:polling");e.exports=c;var u=null!=new(n(3051))({xdomain:!1}).responseType;function c(e){var t=e&&e.forceBase64;u&&!t||(this.supportsBinary=!1),r.call(this,e)}s(c,r),c.prototype.name="polling",c.prototype.doOpen=function(){this.poll()},c.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||n()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||n()}))}else n()},c.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},c.prototype.onData=function(e){var t=this;l("polling got data %s",e);i.decodePayload(e,this.socket.binaryType,function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},c.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},c.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},c.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},46855:function(e,t,n){var r,o,i=n(48287).hp,s=n(12672),a=n(23401),l=n(29140),u=n(22370),c=n(42121),p=n(56617)("engine.io-client:websocket");if("undefined"!=typeof WebSocket)r=WebSocket;else if("undefined"!=typeof self)r=self.WebSocket||self.MozWebSocket;else try{o=n(25660)}catch(e){}var d=r||o;function h(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=o),s.call(this,e)}e.exports=h,u(h,s),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},h.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},h.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,r=0,o=n;r<o;r++)(function(e){a.encodePacket(e,t.supportsBinary,function(r){if(!t.usingBrowserWebSocket){var o={};if(e.options&&(o.compress=e.options.compress),t.perMessageDeflate)("string"==typeof r?i.byteLength(r):r.length)<t.perMessageDeflate.threshold&&(o.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(r):t.ws.send(r,o)}catch(e){p("websocket closed before onclose event")}--n||s()})})(e[r]);function s(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}},h.prototype.onClose=function(){s.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),(e=l.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},h.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===h.prototype.name)}},3051:function(e,t,n){var r=n(88383);e.exports=function(e){var t=e.xdomain,n=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(e){}if(!t)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},56617:function(e,t,n){var r=n(65606);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(79110)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},79110:function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=s[l];n=o.call(e,i),s.splice(l,1),l--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6585),t.instances=[],t.names=[],t.skips=[],t.formatters={}},23401:function(e,t,n){var r,o=n(94886),i=n(8839),s=n(53344),a=n(20969),l=n(88758);"undefined"!=typeof ArrayBuffer&&(r=n(53371));var u="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),c="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),p=u||c;t.protocol=3;var d=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=o(d),f={type:"error",data:"parser error"},m=n(3118);function g(e,t,n){for(var r=new Array(e.length),o=a(e.length,n),i=function(e,n,o){t(n,function(t,n){r[e]=n,o(t,r)})},s=0;s<e.length;s++)i(s,e[s],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var i=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),s=new Uint8Array(1+o.byteLength);s[0]=d[e.type];for(var a=0;a<i.length;a++)s[a+1]=i[a];return r(s.buffer)}(e,n,o);if(void 0!==m&&i instanceof m)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(p)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);o[0]=d[e.type];var i=new m([o.buffer,e.data]);return r(i)}(e,n,o);if(i&&i.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(e,o);var s=d[e.type];return void 0!==e.data&&(s+=r?l.encode(String(e.data),{strict:!1}):String(e.data)),o(""+s)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==m&&e.data instanceof m){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];n(o+e)},i.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var s=new Uint8Array(e.data),a=new Array(s.length),l=0;l<s.length;l++)a[l]=s[l];r=String.fromCharCode.apply(null,a)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return f;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return f;var o=e.charAt(0);return Number(o)==o&&h[o]?e.length>1?{type:h[o],data:e.substring(1)}:{type:h[o]}:f}o=new Uint8Array(e)[0];var i=s(e,1);return m&&"blob"===n&&(i=new m([i])),{type:h[o],data:i}},t.decodeBase64Packet=function(e,t){var n=h[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);if(n&&o)return m&&!p?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,function(e,r){t.encodePacket(e,!!o&&n,!1,function(e){r(null,function(e){return e.length+":"+e}(e))})},function(e,t){return r(t.join(""))})},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(f,0,1);for(var i,s,a="",l=0,u=e.length;l<u;l++){var c=e.charAt(l);if(":"===c){if(""===a||a!=(i=Number(a)))return r(f,0,1);if(a!=(s=e.substr(l+1,i)).length)return r(f,0,1);if(s.length){if(o=t.decodePacket(s,n,!1),f.type===o.type&&f.data===o.data)return r(f,0,1);if(!1===r(o,l+i,u))return}l+=i,a=""}else a+=c}return""!==a?r(f,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,function(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})},function(e,t){var r=t.reduce(function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2},0),o=new Uint8Array(r),i=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),s=0;s<e.length;s++)r[s]=e.charCodeAt(s);n=r.buffer}o[i++]=t?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)o[i++]=parseInt(a[s]);o[i++]=255;for(r=new Uint8Array(n),s=0;s<r.length;s++)o[i++]=r[s]}),n(o.buffer)})},t.encodePayloadAsBlob=function(e,n){g(e,function(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);
2if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),s=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)s[o]=parseInt(i[o]);if(s[i.length]=255,m){var a=new m([t.buffer,s.buffer,e]);n(null,a)}})},function(e,t){return n(new m(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var a=new Uint8Array(o),l=0===a[0],u="",c=1;255!==a[c];c++){if(u.length>310)return r(f,0,1);u+=a[c]}o=s(o,2+u.length),u=parseInt(u);var p=s(o,0,u);if(l)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(e){var d=new Uint8Array(p);p="";for(c=0;c<d.length;c++)p+=String.fromCharCode(d[c])}i.push(p),o=s(o,u)}var h=i.length;i.forEach(function(e,o){r(t.decodePacket(e,n,!0),o,h)})}},94886:function(e){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},88758:function(e){var t,n,r,o=String.fromCharCode;function i(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function s(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(e,t){return o(e>>t&63|128)}function l(e,t){if(!(4294967168&e))return o(e);var n="";return 4294965248&e?4294901760&e?4292870144&e||(n=o(e>>18&7|240),n+=a(e,12),n+=a(e,6)):(s(e,t)||(e=65533),n=o(e>>12&15|224),n+=a(e,6)):n=o(e>>6&31|192),n+=o(63&e|128)}function u(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function c(e){var o,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(o=255&t[r],r++,!(128&o))return o;if(192==(224&o)){if((i=(31&o)<<6|u())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&o)){if((i=(15&o)<<12|u()<<6|u())>=2048)return s(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(i=(7&o)<<18|u()<<12|u()<<6|u())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,s=-1,a="";++s<o;)a+=l(r[s],n);return a},decode:function(e,s){var a=!1!==(s=s||{}).strict;t=i(e),n=t.length,r=0;for(var l,u=[];!1!==(l=c(a));)u.push(l);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(u)}}},37732:function(e,t,n){var r=n(65606),o=n(48287).hp;!function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}});var n=["prototype","__proto__","caller","arguments","length","name"];Object.getOwnPropertyNames(t).forEach(function(r){-1===n.indexOf(r)&&e[r]!==t[r]&&(e[r]=t[r])}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t,n){return(d=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o}).apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;
vendor: 16,753 bytes, line 2
2return(h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){var t=p();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var y=Object.values||function(e){var t=[];for(var n in e)t.push(e[n]);return t},b=Object.entries||function(e){var t=[];for(var n in e)t.push([n,e[n]]);return t},w=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){for(var n in t)e[n]=t[n]}),e},k=Object.fromEntries||function(e){var t={};return S(e).forEach(function(e){var n=e[0],r=e[1];t[n]=r}),t},S=Array.from||function(e){if(e instanceof A){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t}return Array.prototype.slice.call(e)};function C(e){return-1!==this.indexOf(e)}Array.prototype.includes||(Array.prototype.includes=C),String.prototype.includes||(String.prototype.includes=C),String.prototype.startsWith||(String.prototype.startsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.substring(t,t+e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return this.substring(t-e.length,t)===e});var P="undefined"!=typeof self?self:n.g,E=P.fetch||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){var o=new XMLHttpRequest;if(o.open("get",e,!0),o.responseType="arraybuffer",o.onerror=r,t.headers)for(var i in t.headers)o.setRequestHeader(i,t.headers[i]);o.onload=function(){n({ok:o.status>=200&&o.status<300,status:o.status,arrayBuffer:function(){return Promise.resolve(o.response)}})},o.send(null)})},_=function(e){var t=[];if(Object.defineProperties(t,{size:{get:function(){return this.length}},has:{value:function(e){return-1!==this.indexOf(e)}},add:{value:function(e){this.has(e)||this.push(e)}},delete:{value:function(e){if(this.has(e)){var t=this.indexOf(e);this.splice(t,1)}}}}),Array.isArray(e))for(var n=0;n<e.length;n++)t.add(e[n]);return t},x=function(e){return new A(e)},A=void 0!==P.Map&&void 0!==P.Map.prototype.keys?P.Map:function(){function e(n){if(t(this,e),this.clear(),n)for(var r=0;r<n.length;r++)this.set(n[r][0],n[r][1])}return s(e,[{key:"clear",value:function(){this._map={},this._keys=[]}},{key:"size",get:function(){return this._keys.length}},{key:"get",value:function(e){return this._map["map_"+e]}},{key:"set",value:function(e,t){return this._map["map_"+e]=t,this._keys.indexOf(e)<0&&this._keys.push(e),this}},{key:"has",value:function(e){return this._keys.indexOf(e)>=0}},{key:"delete",value:function(e){var t=this._keys.indexOf(e);return!(t<0||(delete this._map["map_"+e],this._keys.splice(t,1),0))}},{key:"keys",value:function(){return this._keys.slice(0)}},{key:"values",value:function(){var e=this;return this._keys.map(function(t){return e.get(t)})}},{key:"entries",value:function(){var e=this;return this._keys.map(function(t){return[t,e.get(t)]})}},{key:"forEach",value:function(e,t){for(var n=0;n<this._keys.length;n++)e.call(t,this._map["map_"+this._keys[n]],this._keys[n],this)}}]),e}(),F="undefined"!=typeof self?self:n.g,O="undefined"!=typeof navigator,R=O&&"undefined"==typeof HTMLImageElement,T=!(void 0===n.g||void 0===r||!r.versions||!r.versions.node),U=F.Buffer,B=!!U,D=function(e){return void 0!==e};function I(e){return void 0===e||(e instanceof A?0===e.size:0===y(e).filter(D).length)}function N(e){var t=new Error(e);throw delete t.stack,t}function j(e){var t=function(e){var t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}var L=function(e){return String.fromCharCode.apply(null,e)},M="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;function z(e){return M?M.decode(e):B?o.from(e).toString("utf8"):decodeURIComponent(escape(L(e)))}var q=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(t(this,e),"boolean"==typeof i&&(this.le=i),Array.isArray(n)&&(n=new Uint8Array(n)),0===n)this.byteOffset=0,this.byteLength=0;else if(n instanceof ArrayBuffer){void 0===o&&(o=n.byteLength-r);var s=new DataView(n,r,o);this._swapDataView(s)}else if(n instanceof Uint8Array||n instanceof DataView||n instanceof e){void 0===o&&(o=n.byteLength-r),(r+=n.byteOffset)+o>n.byteOffset+n.byteLength&&N("Creating view outside of available memory in ArrayBuffer");var a=new DataView(n.buffer,r,o);this._swapDataView(a)}else if("number"==typeof n){var l=new DataView(new ArrayBuffer(n));this._swapDataView(l)}else N("Invalid input argument for BufferView: "+n)}return s(e,[{key:"_swapArrayBuffer",value:function(e){this._swapDataView(new DataView(e))}},{key:"_swapBuffer",value:function(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}},{key:"_swapDataView",value:function(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}},{key:"_lengthToEnd",value:function(e){return this.byteLength-e}},{key:"set",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return t instanceof DataView||t instanceof e?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||N("BufferView.set(): Invalid data argument."),this.toUint8().set(t,n),new r(this,n,t.byteLength)}},{key:"subarray",value:function(t,n){return new e(this,t,n=n||this._lengthToEnd(t))}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}},{key:"getString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return z(this.getUint8Array(e,t))}},{key:"getLatin1String",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,n=this.getUint8Array(e,t);return L(n)}},{key:"getUnicodeString",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,n=[],r=0;r<t&&e+r<this.byteLength;r+=2)n.push(this.getUint16(e+r));return L(n)}},{key:"getInt8",value:function(e){return this.dataView.getInt8(e)}},{key:"getUint8",value:function(e){return this.dataView.getUint8(e)}},{key:"getInt16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}},{key:"getInt32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}},{key:"getUint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}},{key:"getUint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}},{key:"getFloat32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getFloat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getDouble",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getUintBytes",value:function(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}},{key:"getUint",value:function(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}},{key:"toString",value:function(e){return this.dataView.toString(e,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(t,n){return t instanceof this&&t.le===n?t:new e(t,void 0,void 0,n)}}]),e}();function H(e,t){N("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}var V=function(e){l(r,e);var n=g(r);function r(e){var o;return t(this,r),(o=n.call(this)).kind=e,o}return s(r,[{key:"get",value:function(e,t){return this.has(e)||H(this.kind,e),t&&(e in t||function(e,t){N("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||H(this.kind,e)),v(u(r.prototype),"get",this).call(this,e)}},{key:"keyList",value:function(){return S(this.keys())}}]),r}(h(A)),W=new V("file parser"),$=new V("segment parser"),G=new V("file reader");function X(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function Y(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var K=X(function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){return t(r.result||new ArrayBuffer)},r.onerror=n,r.readAsArrayBuffer(e)})}),J=X(function(e){return E(e).then(function(e){return e.arrayBuffer()})}),Z=X(function(e,t){return Y(t(e),function(e){return new q(e)})}),Q=X(function(e,t,n){var r=new(G.get(n))(e,t);return Y(r.read(),function(){return r})}),ee=X(function(e,t,n,r){return G.has(n)?Q(e,t,n):r?Z(e,r):(N("Parser ".concat(n," is not loaded")),Y())}),te="Invalid input argument";function ne(e,t){return(n=e).startsWith("data:")||n.length>1e4?Q(e,t,"base64"):O?ee(e,t,"url",J):T?Q(e,t,"fs"):void N(te);var n}var re=function(e){l(r,e);var n=g(r);function r(){return t(this,r),n.apply(this,arguments)}return s(r,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=S(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=S(this.values())),this.allValues}}]),r}(h(A));function oe(e,t,n){var r=new re,o=n;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++){var s=o[i],a=s[0],l=s[1];r.set(a,l)}if(Array.isArray(t)){var u=t;Array.isArray(u)||("function"==typeof u.entries&&(u=u.entries()),u=S(u));for(var c=0;c<u.length;c++){var p=u[c];e.set(p,r)}}else e.set(t,r);return r}function ie(e,t,n){var r,o=e.get(t),i=n;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var s=0;s<i.length;s++)r=i[s],o.set(r[0],r[1])}var se=x(),ae=x(),le=x(),ue=37500,ce=37510,pe=33723,de=34675,he=34665,fe=34853,me=40965,ge=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],ve=["jfif","xmp","icc","iptc","ihdr"],ye=["tiff"].concat(ve),be=["ifd0","ifd1","exif","gps","interop"],we=[].concat(ye,be),ke=["makerNote","userComment"],Se=["translateKeys","translateValues","reviveValues","multiSegment"],Ce=[].concat(Se,["sanitize","mergeOutput","silentErrors"]),Pe=function(){function e(){t(this,e)}return s(e,[{key:"translate",get:function(){return this.translateKeys||this.translateValues||this.reviveValues}}]),e}(),Ee=function(e){l(r,e);var n=g(r);function r(e,o,i,s){var l;if(t(this,r),a(f(l=n.call(this)),"enabled",!1),a(f(l),"skip",_()),a(f(l),"pick",_()),a(f(l),"deps",_()),a(f(l),"translateKeys",!1),a(f(l),"translateValues",!1),a(f(l),"reviveValues",!1),l.key=e,l.enabled=o,l.parse=l.enabled,l.applyInheritables(s),l.canBeFiltered=be.includes(e),l.canBeFiltered&&(l.dict=se.get(e)),void 0!==i)if(Array.isArray(i))l.parse=l.enabled=!0,l.canBeFiltered&&i.length>0&&l.translateTagSet(i,l.pick);else if("object"==typeof i){if(l.enabled=!0,l.parse=!1!==i.parse,l.canBeFiltered){var u=i.pick,c=i.skip;u&&u.length>0&&l.translateTagSet(u,l.pick),c&&c.length>0&&l.translateTagSet(c,l.skip)}l.applyInheritables(i)}else!0===i||!1===i?l.parse=l.enabled=i:N("Invalid options argument: ".concat(i));return l}return s(r,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(e){var t,n,r=Se;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var o=0;o<r.length;o++)void 0!==(n=e[t=r[o]])&&(this[t]=n)}},{key:"translateTagSet",value:function(e,t){if(this.dict){var n,r,o=this.dict,i=o.tagKeys,s=o.tagValues,a=e;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)"string"==typeof(n=a[l])?(-1===(r=s.indexOf(n))&&(r=i.indexOf(Number(n))),-1!==r&&t.add(Number(i[r]))):t.add(n)}else{var u=e;Array.isArray(u)||("function"==typeof u.entries&&(u=u.entries()),u=S(u));for(var c=0;c<u.length;c++){var p=u[c];t.add(p)}}}},{key:"finalizeFilters",value:function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Re(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Re(this.pick,this.deps)}}]),r}(Pe),_e={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},xe=x(),Ae=function(e){l(r,e);var n=g(r);function r(e){var o;return t(this,r),o=n.call(this),!0===e?o.setupFromTrue():void 0===e?o.setupFromUndefined():Array.isArray(e)?o.setupFromArray(e):"object"==typeof e?o.setupFromObject(e):N("Invalid options argument ".concat(e)),void 0===o.firstChunkSize&&(o.firstChunkSize=O?o.firstChunkSizeBrowser:o.firstChunkSizeNode),o.mergeOutput&&(o.ifd1.enabled=!1),o.filterNestedSegmentTags(),o.traverseTiffDependencyTree(),o.checkLoadedPlugins(),o}return s(r,[{key:"setupFromUndefined",value:function(){var e,t=ge;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var n=0;n<t.length;n++)this[e=t[n]]=_e[e];var r=Ce;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var o=0;o<r.length;o++)this[e=r[o]]=_e[e];var i=ke;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var s=0;s<i.length;s++)this[e=i[s]]=_e[e];var a=we;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)this[e=a[l]]=new Ee(e,_e[e],void 0,this)}},{key:"setupFromTrue",value:function(){var e,t=ge;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var n=0;n<t.length;n++)this[e=t[n]]=_e[e];var r=Ce;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var o=0;o<r.length;o++)this[e=r[o]]=_e[e];var i=ke;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var s=0;s<i.length;s++)this[e=i[s]]=!0;var a=we;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)this[e=a[l]]=new Ee(e,!0,void 0,this)}},{key:"setupFromArray",value:function(e){var t,n=ge;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++)this[t=n[r]]=_e[t];var o=Ce;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++)this[t=o[i]]=_e[t];var s=ke;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var a=0;a<s.length;a++)this[t=s[a]]=_e[t];var l=we;Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)this[t=l[u]]=new Ee(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,be)}
2},{key:"setupFromObject",value:function(e){var t;be.ifd0=be.ifd0||be.image,be.ifd1=be.ifd1||be.thumbnail,w(this,e);var n=ge;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++)this[t=n[r]]=Oe(e[t],_e[t]);var o=Ce;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++)this[t=o[i]]=Oe(e[t],_e[t]);var s=ke;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var a=0;a<s.length;a++)this[t=s[a]]=Oe(e[t],_e[t]);var l=ye;Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)this[t=l[u]]=new Ee(t,_e[t],e[t],this);var c=be;Array.isArray(c)||("function"==typeof c.entries&&(c=c.entries()),c=S(c));for(var p=0;p<c.length;p++)this[t=c[p]]=new Ee(t,_e[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,be,we),!0===e.tiff?this.batchEnableWithBool(be,!0):!1===e.tiff?this.batchEnableWithUserValue(be,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,be):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,be)}},{key:"batchEnableWithBool",value:function(e,t){var n=e;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++)this[n[r]].enabled=t}},{key:"batchEnableWithUserValue",value:function(e,t){var n=e;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++){var o=n[r],i=t[o];this[o].enabled=!1!==i&&void 0!==i}}},{key:"setupGlobalFilters",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(e&&e.length){var o=r;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++)this[o[i]].enabled=!1;var s=Fe(e,n);Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var a=0;a<s.length;a++){var l=s[a],u=l[0],c=l[1];Re(this[u].pick,c),this[u].enabled=!0}}else if(t&&t.length){var p=Fe(t,n);Array.isArray(p)||("function"==typeof p.entries&&(p=p.entries()),p=S(p));for(var d=0;d<p.length;d++){var h=p[d],f=h[0],m=h[1];Re(this[f].skip,m)}}}},{key:"filterNestedSegmentTags",value:function(){var e=this.ifd0,t=this.exif,n=this.xmp,r=this.iptc,o=this.icc;this.makerNote?t.deps.add(ue):t.skip.add(ue),this.userComment?t.deps.add(ce):t.skip.add(ce),n.enabled||e.skip.add(700),r.enabled||e.skip.add(pe),o.enabled||e.skip.add(de)}},{key:"traverseTiffDependencyTree",value:function(){var e=this,t=this.ifd0,n=this.exif,r=this.gps;this.interop.needed&&(n.deps.add(me),t.deps.add(me)),n.needed&&t.deps.add(he),r.needed&&t.deps.add(fe),this.tiff.enabled=be.some(function(t){return!0===e[t].enabled})||this.makerNote||this.userComment;var o=be;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++)this[o[i]].finalizeFilters()}},{key:"onlyTiff",get:function(){var e=this;return!ve.map(function(t){return e[t].enabled}).some(function(e){return!0===e})&&this.tiff.enabled}},{key:"checkLoadedPlugins",value:function(){var e=ye;Array.isArray(e)||("function"==typeof e.entries&&(e=e.entries()),e=S(e));for(var t=0;t<e.length;t++){var n=e[t];this[n].enabled&&!$.has(n)&&H("segment parser",n)}}}],[{key:"useCached",value:function(e){var t=xe.get(e);return void 0!==t||(t=new this(e),xe.set(e,t)),t}}]),r}(Pe);function Fe(e,t){var n,r,o,i=[],s=t;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var a=0;a<s.length;a++){r=s[a],n=[];var l=se.get(r);Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)o=l[u],(e.includes(o[0])||e.includes(o[1]))&&n.push(o[0]);n.length&&i.push([r,n])}return i}function Oe(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Re(e,t){var n=t;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++){var o=n[r];e.add(o)}}function Te(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ue(){}function Be(e,t){if(!t)return e&&e.then?e.then(Ue):Promise.resolve()}function De(e,t){var n=e();return n&&n.then?n.then(t):t(n)}a(Ae,"default",_e);var Ie,Ne=function(){function e(n){t(this,e),a(this,"parsers",{}),this.options=Ae.useCached(n)}return s(e,[{key:"setup",value:function(){if(!this.fileParser){var e=this.file,t=e.getUint16(0),n=W;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++){var o=n[r],i=o[0],s=o[1];if(s.canHandle(e,t))return this.fileParser=new s(this.options,this.file,this.parsers),e[i]=!0}N("Unknown file format")}}},{key:"read",value:function(e){try{var t=this;return Te(function(e,t){return"string"==typeof e?ne(e,t):O&&!R&&e instanceof HTMLImageElement?ne(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new q(e):O&&e instanceof Blob?ee(e,t,"blob",K):void N(te)}(e,t.options),function(e){t.file=e})}catch(e){return Promise.reject(e)}}},{key:"parse",value:function(){try{var e=this;e.setup();var t={},n=[];return De(function(){return e.options.silentErrors?Te(e.doParse(t,n).c
2atch(function(e){return n.push(e)}),function(){n.push.apply(n,e.fileParser.errors)}):Be(e.doParse(t,n))},function(){return e.file.close&&e.file.close(),e.options.silentErrors&&n.length>0&&(t.errors=n),I(r=t)?void 0:r;var r})}catch(e){return Promise.reject(e)}}},{key:"doParse",value:function(e,t){try{var n=this;return Te(n.fileParser.parse(),function(){var r,o=y(n.parsers).map((r=function(t){return Te(t.parse(),function(n){t.assignToOutput(e,n)})},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(e){return Promise.reject(e)}}));if(n.options.silentErrors){var i=function(e){return t.push(e)};o=o.map(function(e){return e.catch(i)})}return Be(Promise.all(o))})}catch(e){return Promise.reject(e)}}},{key:"extractThumbnail",value:function(){try{var e=this;e.setup();var t,n=e.options,r=e.file,o=$.get("tiff",n);return De(function(){if(!r.tiff)return function(e){var t=e();if(t&&t.then)return t.then(Ue)}(function(){if(r.jpeg)return Te(e.fileParser.getOrFindSegment("tiff"),function(e){t=e})});t={start:0,type:"tiff"}},function(){if(void 0!==t)return Te(e.fileParser.ensureSegmentChunk(t),function(t){return Te((e.parsers.tiff=new o(t,n,r)).extractThumbnail(),function(e){return r.close&&r.close(),e})})})}catch(e){return Promise.reject(e)}}}]),e}(),je=(Ie=function(e,t){var n,r,o,i=new Ne(t);return n=i.read(e),r=function(){return i.parse()}
vendor: 11,109 bytes, line 2
2,o?r?r(n):n:(n&&n.then||(n=Promise.resolve(n)),r?n.then(r):n)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(Ie.apply(this,e))}catch(e){return Promise.reject(e)}}),Le=Object.freeze({__proto__:null,parse:je,Exifr:Ne,fileParsers:W,segmentParsers:$,fileReaders:G,tagKeys:se,tagValues:ae,tagRevivers:le,createDictionary:oe,extendDictionary:ie,fetchUrlAsArrayBuffer:J,readBlobAsArrayBuffer:K,chunkedProps:ge,otherSegments:ve,segments:ye,tiffBlocks:be,segmentsAndBlocks:we,tiffExtractables:ke,inheritables:Se,allFormatters:Ce,Options:Ae});function Me(){}var ze=function(){function e(n,r,o){var i=this;t(this,e),a(this,"errors",[]),a(this,"ensureSegmentChunk",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}(function(e){var t,n,r,o=e.start,s=e.size||65536;return t=function(){if(i.file.chunked)return function(e){var t=e();if(t&&t.then)return t.then(Me)}(function(){if(!i.file.available(o,s))return function(e){if(e&&e.then)return e.then(Me)}(function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return t=i.file.readChunk(o,s),n=function(t){e.chunk=t},r?n?n(t):t:(t&&t.then||(t=Promise.resolve(t)),n?t.then(n):t);var t,n,r},function(t){N("Couldn't read segment: ".concat(JSON.stringify(e),". ").concat(t.message))}));e.chunk=i.file.subarray(o,s)});i.file.byteLength>o+s?e.chunk=i.file.subarray(o,s):void 0===e.size?e.chunk=i.file.subarray(o):N("Segment unreachable: "+JSON.stringify(e))},n=function(){return e.chunk},(r=t())&&r.then?r.then(n):n(r)})),this.extendOptions&&this.extendOptions(n),this.options=n,this.file=r,this.parsers=o}return s(e,[{key:"injectSegment",value:function(e,t){this.options[e].enabled&&this.createParser(e,t)}},{key:"createParser",value:function(e,t){var n=new($.get(e))(t,this.options,this.file);return this.parsers[e]=n}},{key:"createParsers",value:function(e){var t=e;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var n=0;n<t.length;n++){var r=t[n],o=r.type,i=r.chunk,s=this.options[o];if(s&&s.enabled){var a=this.parsers[o];a&&a.append||a||this.createParser(o,i)}}}},{key:"readSegments",value:function(e){try{var t=e.map(this.ensureSegmentChunk);return function(e){return e&&e.then?e.then(Me):Promise.resolve()}(Promise.all(t))}catch(e){return Promise.reject(e)}}}]),e}(),qe=function(){function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;t(this,e),a(this,"errors",[]),a(this,"raw",x()),a(this,"handleError",function(e){if(!r.options.silentErrors)throw e;r.errors.push(e.message)}),this.chunk=this.normalizeInput(n),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=o,this.localOptions=o[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return s(e,[{key:"normalizeInput",value:function(e){return e instanceof q?e:new q(e)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?k(this.raw):void 0}},{key:"translateBlock",value:function(e,t){var n=le.get(t),r=ae.get(t),o=se.get(t),i=this.options[t],s=i.reviveValues&&!!n,a=i.translateValues&&!!r,l=i.translateKeys&&!!o,u={},c=e;Array.isArray(c)||("function"==typeof c.entries&&(c=c.entries()),c=S(c));for(var p=0;p<c.length;p++){var d=c[p],h=d[0],f=d[1];s&&n.has(h)?f=n.get(h)(f):a&&r.has(h)&&(f=this.translateValue(f,r.get(h))),l&&o.has(h)&&(h=o.get(h)||h),u[h]=f}return u}},{key:"translateValue",value:function(e,t){return t[e]||t.DEFAULT||e}},{key:"assignToOutput",value:function(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}},{key:"assignObjectToOutput",value:function(e,t,n){if(this.globalOptions.mergeOutput)return w(e,n);e[t]?w(e[t],n):e[t]=n}}],[{key:"findPosition",value:function(e,t){var n=e.getUint16(t+2)+2,r="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,o=t+r,i=n-r;return{offset:t,length:n,headerLength:r,start:o,size:i,end:o+i}}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(e,new Ae(a({},this.type,t))).parse()}}]),e}();function He(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ve(){}function We(e,t){if(!t)return e&&e.then?e.then(Ve):Promise.resolve()}function $e(e){var t=e();if(t&&t.then)return t.then(Ve)}function Ge(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function Xe(e,t,n){if(!e.s){if(n instanceof Ye){if(!n.s)return void(n.o=Xe.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(Xe.bind(null,e,t),Xe.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}a(qe,"headerLength",4),a(qe,"type",void 0),a(qe,"multiSegment",!1),a(qe,"canHandle",function(){return!1});var Ye=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{Xe(r,1,i(this.v))}catch(e){Xe(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?Xe(r,1,t?t(o):o):n?Xe(r,1,n(o)):Xe(r,2,o)}catch(e){Xe(r,2,e)}},r},e}();function Ke(e){return e instanceof Ye&&1&e.s}function Je(e,t,n){for(var r;;){var o=e();if(Ke(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!Ke(i)){r=1;break}i=i.s}if(t){var s=t();if(s&&s.then&&!Ke(s)){r=2;break}}}var a=new Ye,l=Xe.bind(null,a,2);return(0===r?o.then(c):1===r?i.then(u):s.then(p)).then(void 0,l),a;function u(r){i=r;do{if(t&&(s=t())&&s.then&&!Ke(s))return void s.then(p).then(void 0,l);if(!(o=e())||Ke(o)&&!o.v)return void Xe(a,1,i);if(o.then)return void o.then(c).then(void 0,l);Ke(i=n())&&(i=i.v)}while(!i||!i.then);i.then(u).then(void 0,l)}function c(e){e?(i=n())&&i.then?i.then(u).then(void 0,l):u(i):Xe(a,1,i)}function p(){(o=e())?o.then?o.then(c).then(void 0,l):c(o):Xe(a,1,i)}}function Ze(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Qe(e){return e>=224&&e<=239}function et(e,t,n){var r=$;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var o=0;o<r.length;o++){var i=r[o],s=i[0];if(i[1].canHandle(e,t,n))return s}}var tt=function(e){l(r,e);var n=g(r);function r(){var e;t(this,r);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return a(f(e=n.call.apply(n,[this].concat(i))),"appSegments",[]),a(f(e),"jpegSegments",[]),a(f(e),"unknownSegments",[]),e}return s(r,[{key:"parse",value:function(){try{var e=this;return He(e.findAppSegments(),function(){return He(e.readSegments(e.appSegments),function(){e.mergeMultiSegments(),e.createParsers(e.mergedAppSegments||e.appSegments)})})}catch(e){return Promise.reject(e)}}},{key:"setupSegmentFinderArgs",value:function(e){var t=this;!0===e?(this.findAll=!0,this.wanted=_($.keyList())):(e=void 0===e?$.keyList().filter(function(e){return t.options[e].enabled}):e.filter(function(e){return t.options[e].enabled&&$.has(e)}),this.findAll=!1,this.remaining=_(e),this.wanted=_(e)),this.unfinishedMultiSegment=!1}},{key:"findAppSegments",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;try{var n=this;n.setupSegmentFinderArgs(t);var r=n.file,o=n.findAll,i=n.wanted,s=n.remaining;return Ge(function(){if(!o&&n.file.chunked)return o=S(i).some(function(e){var t=$.get(e),r=n.options[e];return t.multiSegment&&r.multiSegment}),$e(function(){if(o)return We(n.file.readWhole())})},function(){var t=!1;if(e=n.findAppSegmentsInRange(e,r.byteLength),!n.options.onlyTiff)return function(){if(r.chunked){var o=!1;return Je(function(){return!t&&s.size>0&&!o&&(!!r.canReadNextChunk||!!n.unfinishedMultiSegment)},void 0,function(){var i=r.nextChunkOffset,s=n.appSegments.some(function(e){return!n.file.available(e.offset||e.start,e.length||e.size)});return Ge(function(){return He(e>i&&!s?r.readNextChunk(e):r.readNextChunk(i),function(e){o=!e})},function(){void 0===(e=n.findAppSegmentsInRange(e,r.byteLength))&&(t=!0)})})}}()})}catch(e){return Promise.reject(e)}}},{key:"findAppSegmentsInRange",value:function(e,t){t-=2;for(var n,r,o,i,s,a,l=this.file,u=this.findAll,c=this.wanted,p=this.remaining,d=this.options;e<t;e++)if(255===l.getUint8(e))if(Qe(n=l.getUint8(e+1))){if(r=l.getUint16(e+2),(o=et(l,e,r))&&c.has(o)&&(s=(i=$.get(o)).findPosition(l,e),a=d[o],s.type=o,this.appSegments.push(s),!u&&(i.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(o)):p.delete(o),0===p.size)))break;d.recordUnknownSegments&&((s=qe.findPosition(l,e)).marker=n,this.unknownSegments.push(s)),e+=r+1}else if(Ze(n)){if(r=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:r,marker:n}),e+=r+1}return e}},{key:"mergeMultiSegments",value:function(){var e=this;if(this.appSegments.some(function(e){return e.multiSegment})){var t=function(e,t){for(var n,r,o,i=x(),s=0;s<e.length;s++)r=(n=e[s])[t],i.has(r)?o=i.get(r):i.set(r,o=[]),o.push(n);return S(i)}(this.appSegments,"type");this.mergedAppSegments=t.map(function(t){var n=t[0],r=t[1],o=$.get(n,e.options);return o.handleMultiSegments?{type:n,chunk:o.handleMultiSegments(r)}:r[0]})}}},{key:"getSegment",value:function(e){return this.appSegments.find(function(t){return t.type===e})}},{key:"getOrFindSegment",value:function(e){try{var t=this,n=t.getSegment(e);return Ge(function(){if(void 0===n)return He(t.findAppSegments(0,[e]),function(){n=t.getSegment(e)})},function(){return n})}catch(e){return Promise.reject(e)}}}],[{key:"canHandle",value:function(e,t){return 65496===t}}]),r}(ze);function nt(){}function rt(e,t){if(!t)return e&&e.then?e.then(nt):Promise.resolve()}function ot(e,t){var n=e();return n&&n.then?n.then(t):t(n)}a(tt,"type","jpeg"),W.set("jpeg",tt);var it=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],st=function(e){l(r,e);var n=g(r);function r(){return t(this,r),n.apply(this,arguments)}return s(r,[{key:"parse",value:function(){try{var e=this;e.parseHeader();var t=e.options;return ot(function(){if(t.ifd0.enabled)return rt(e.parseIfd0Block())},function(){return ot(function(){if(t.exif.enabled)return rt(e.safeParse("parseExifBlock"))},function(){return ot(function(){if(t.gps.enabled)return rt(e.safeParse("parseGpsBlock"))},function(){return ot(function(){if(t.interop.enabled)return rt(e.safeParse("parseInteropBlock"))},function(){return ot(function(){if(t.ifd1.enabled)return rt(e.safeParse("parseThumbnailBlock"))},function(){return e.createOutput()})})})})})}catch(e){return Promise.reject(e)}}},{key:"safeParse",value:function(e){var t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}},{key:"findIfd0Offset",value:function(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}},{key:"findIfd1Offset",value:function(){if(void 0===this.ifd1Offset){this.findIfd0Offset();var e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}},{key:"parseBlock",value:function(e,t){var n=x();
vendor: 13,097 bytes, line 2
2return this[t]=n,this.parseTags(e,t,n),n}},{key:"parseIfd0Block",value:function(){try{var e=this;if(e.ifd0)return;var t=e.file;return e.findIfd0Offset(),e.ifd0Offset<8&&N("Malformed EXIF data"),!t.chunked&&e.ifd0Offset>t.byteLength&&N("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(e.ifd0Offset,", file.byteLength: ").concat(t.byteLength)),ot(function(){if(t.tiff)return rt(t.ensureChunk(e.ifd0Offset,j(e.options)))},function(){var t=e.parseBlock(e.ifd0Offset,"ifd0");if(0!==t.size)return e.exifOffset=t.get(he),e.interopOffset=t.get(me),e.gpsOffset=t.get(fe),e.xmp=t.get(700),e.iptc=t.get(pe),e.icc=t.get(de),e.options.sanitize&&(t.delete(he),t.delete(me),t.delete(fe),t.delete(700),t.delete(pe),t.delete(de)),t})}catch(e){return Promise.reject(e)}}},{key:"parseExifBlock",value:function(){try{var e=this;if(e.exif)return;return ot(function(){if(!e.ifd0)return rt(e.parseIfd0Block())},function(){if(void 0!==e.exifOffset)return ot(function(){if(e.file.tiff)return rt(e.file.ensureChunk(e.exifOffset,j(e.options)))},function(){var t=e.parseBlock(e.exifOffset,"exif");return e.interopOffset||(e.interopOffset=t.get(me)),e.makerNote=t.get(ue),e.userComment=t.get(ce),e.options.sanitize&&(t.delete(me),t.delete(ue),t.delete(ce)),e.unpack(t,41728),e.unpack(t,41729),t})})}catch(e){return Promise.reject(e)}}},{key:"unpack",value:function(e,t){var n=e.get(t);n&&1===n.length&&e.set(t,n[0])}},{key:"parseGpsBlock",value:function(){try{var e=this;if(e.gps)return;return ot(function(){if(!e.ifd0)return rt(e.parseIfd0Block())},function(){if(void 0!==e.gpsOffset){var t=e.parseBlock(e.gpsOffset,"gps");return t&&t.has(2)&&t.has(4)&&(t.set("latitude",at.apply(void 0,t.get(2).concat([t.get(1)]))),t.set("longitude",at.apply(void 0,t.get(4).concat([t.get(3)])))),t}})}catch(e){return Promise.reject(e)}}},{key:"parseInteropBlock",value:function(){try{var e=this;if(e.interop)return;return ot(function(){if(!e.ifd0)return rt(e.parseIfd0Block())},function(){return ot(function(){if(void 0===e.interopOffset&&!e.exif)return rt(e.parseExifBlock())},function(){if(void 0!==e.interopOffset)return e.parseBlock(e.interopOffset,"interop")})})}catch(e){return Promise.reject(e)}}},{key:"parseThumbnailBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t=this;if(t.ifd1||t.ifd1Parsed)return;if(t.options.mergeOutput&&!e)return;return t.findIfd1Offset(),t.ifd1Offset>0&&(t.parseBlock(t.ifd1Offset,"ifd1"),t.ifd1Parsed=!0),t.ifd1}catch(e){return Promise.reject(e)}}},{key:"extractThumbnail",value:function(){try{var e=this;return e.headerParsed||e.parseHeader(),ot(function(){if(!e.ifd1Parsed)return rt(e.parseThumbnailBlock(!0))},function(){if(void 0!==e.ifd1){var t=e.ifd1.get(513),n=e.ifd1.get(514);return e.chunk.getUint8Array(t,n)}})}catch(e){return Promise.reject(e)}}},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){var e,t,n,r={},o=be;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var i=0;i<o.length;i++)if(!I(e=this[t=o[i]]))if(n=this.canTranslate?this.translateBlock(e,t):k(e),this.options.mergeOutput){if("ifd1"===t)continue;w(r,n)}else r[t]=n;return this.makerNote&&(r.makerNote=this.makerNote),this.userComment&&(r.userComment=this.userComment),r}},{key:"assignToOutput",value:function(e,t){if(this.globalOptions.mergeOutput)w(e,t);else{var n=b(t);Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var r=0;r<n.length;r++){var o=n[r],i=o[0],s=o[1];this.assignObjectToOutput(e,i,s)}}}}],[{key:"canHandle",value:function(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}}]),r}(function(e){l(r,e);var n=g(r);function r(){return t(this,r),n.apply(this,arguments)}return s(r,[{key:"parseHeader",value:function(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}},{key:"parseTags",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x(),r=this.options[t],o=r.pick,i=r.skip,s=(o=_(o)).size>0,a=0===i.size,l=this.chunk.getUint16(e);e+=2;for(var u=0;u<l;u++){var c=this.chunk.getUint16(e);if(s){if(o.has(c)&&(n.set(c,this.parseTag(e,c,t)),o.delete(c),0===o.size))break}else!a&&i.has(c)||n.set(c,this.parseTag(e,c,t));e+=12}return n}},{key:"parseTag",value:function(e,t,n){var r,o=this.chunk,i=o.getUint16(e+2),s=o.getUint32(e+4),a=it[i];if(a*s<=4?e+=8:e=o.getUint32(e+8),(i<1||i>13)&&N("Invalid TIFF value type. block: ".concat(n.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(i,", offset ").concat(e)),e>o.byteLength&&N("Invalid TIFF value offset. block: ".concat(n.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(i,", offset ").concat(e," is outside of chunk size ").concat(o.byteLength)),1===i)return o.getUint8Array(e,s);if(2===i)return""===(r=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(r=o.getString(e,s)).trim())?void 0:r;if(7===i)return o.getUint8Array(e,s);if(1===s)return this.parseTagValue(i,e);for(var l=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(i))(s),u=a,c=0;c<s;c++)l[c]=this.parseTagValue(i,e),e+=u;return l}},{key:"parseTagValue",value:function(e,t){var n=this.chunk;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:N("Invalid tiff type ".concat(e))}}}]),r}(qe));function at(e,t,n,r){var o=e+t/60+n/3600;return"S"!==r&&"W"!==r||(o*=-1),o}a(st,"type","tiff"),a(st,"headerLength",10),$.set("tiff",st);var lt=Object.freeze({__proto__:null,default:Le,Exifr:Ne,fileParsers:W,segmentParsers:$,fileReaders:G,tagKeys:se,tagValues:ae,tagRevivers:le,createDictionary:oe,extendDictionary:ie,fetchUrlAsArrayBuffer:J,readBlobAsArrayBuffer:K,chunkedProps:ge,otherSegments:ve,segments:ye,tiffBlocks:be,segmentsAndBlocks:we,tiffExtractables:ke,inheritables:Se,allFormatters:Ce,Options:Ae,parse:je});function ut(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ct(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var pt=ct(function(e){var t=new Ne(vt);return ut(t.read(e),function(){return ut(t.parse(),function(e){if(e&&e.ifd0)return e.ifd0[274]})})}),dt=ct(function(e){var t=new Ne(gt);return ut(t.read(e),function(){return ut(t.parse(),function(e){if(e&&e.gps){var t=e.gps;return{latitude:t.latitude,longitude:t.longitude}}})})}),ht=ct(function(e){return ut(this.thumbnail(e),function(e){if(void 0!==e){var t=new Blob([e]);return URL.createObjectURL(t)}})}),ft=ct(function(e){var t=new Ne(yt);return ut(t.read(e),function(){return ut(t.extractThumbnail(),function(e){return e&&B?U.from(e):e})})}),mt={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},gt=w({},mt,{firstChunkSize:4e4,gps:[1,2,3,4]}),vt=w({},mt,{firstChunkSize:4e4,ifd0:[274]}),yt=w({},mt,{tiff:!1,ifd1:!0,mergeOutput:!1}),bt=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){var wt=navigator.userAgent;if(wt.includes("iPad")||wt.includes("iPhone")){var kt=wt.match(/OS (\d+)_(\d+)/);if(kt){var St=kt[1],Ct=kt[2],Pt=Number(St)+.1*Number(Ct);e.rotateCanvas=Pt<13.4,e.rotateCss=!1}}else if(wt.includes("OS X 10")){var Et=wt.match(/OS X 10[_.](\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(Et)<15}if(wt.includes("Chrome/")){var _t=wt.match(/Chrome\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(_t)<81}else if(wt.includes("Firefox/")){var xt=wt.match(/Firefox\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(xt)<77}}function At(){}var Ft=function(e){l(r,e);var n=g(r);function r(){var e;t(this,r);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return a(f(e=n.call.apply(n,[this].concat(i))),"ranges",new Ot),0!==e.byteLength&&e.ranges.add(0,e.byteLength),e}return s(r,[{key:"_tryExtend",value:function(e,t,n){if(0===e&&0===this.byteLength&&n){var r=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(r)}else{var o=e+t;if(o>this.byteLength){var i=this._extend(o).dataView;this._swapDataView(i)}}}},{key:"_extend",value:function(e){var t;t=B?U.allocUnsafe(e):new Uint8Array(e);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}},{key:"subarray",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),v(u(r.prototype),"subarray",this).call(this,e,t)}},{key:"set",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(t,e.byteLength,e);var n=v(u(r.prototype),"set",this).call(this,e,t);return this.ranges.add(t,n.byteLength),n}},{key:"ensureChunk",value:function(e,t){try{var n=this;if(!n.chunked)return;if(n.ranges.available(e,t))return;return function(e){return e&&e.then?e.then(At):Promise.resolve()}(n.readChunk(e,t))}catch(e){return Promise.reject(e)}}},{key:"available",value:function(e,t){return this.ranges.available(e,t)}}]),r}(q),Ot=function(){function e(){t(this,e),a(this,"list",[])}return s(e,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(e,t){var n=e+t,r=this.list.filter(function(t){return Rt(e,t.offset,n)||Rt(e,t.end,n)});if(r.length>0){e=Math.min.apply(Math,[e].concat(r.map(function(e){return e.offset}))),t=(n=Math.max.apply(Math,[n].concat(r.map(function(e){return e.end}))))-e;var o=r.shift();o.offset=e,o.length=t,o.end=n,this.list=this.list.filter(function(e){return!r.includes(e)})}else this.list.push({offset:e,length:t,end:n})}},{key:"available",value:function(e,t){var n=e+t;return this.list.some(function(t){return t.offset<=e&&n<=t.end})}}]),e}();function Rt(e,t,n){return e<=t&&t<=n}function Tt(){}function Ut(e,t){if(!t)return e&&e.then?e.then(Tt):Promise.resolve()}function Bt(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Dt=function(e){l(r,e);var n=g(r);function r(){return t(this,r),n.apply(this,arguments)}return s(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,Bt(K(e.input),function(t){e._swapArrayBuffer(t)})}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,v(u(r.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(e,t){try{var n=this,r=t?e+t:void 0,o=n.input.slice(e,r);return Bt(K(o),function(t){return n.set(t,e,!0)})}catch(e){return Promise.reject(e)}}}]),r}(function(e){l(r,e);var n=g(r);function r(e,o){var i;return t(this,r),a(f(i=n.call(this,0)),"chunksRead",0),i.input=e,i.options=o,i}return s(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,Ut(e.readChunk(e.nextChunkOffset))}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){try{var e=this;return e.chunked=!0,Ut(e.readChunk(0,e.options.firstChunkSize))}catch(e){return Promise.reject(e)}}},{key:"readNextChunk",value:function(e){try{var t=this;if(void 0===e&&(e=t.nextChunkOffset),t.fullyRead)return t.chunksRead++,!1;var n=t.options.chunkSize;return r=t.readChunk(e,n),o=function(e){return!!e&&e.byteLength===n},i?o?o(r):r:(r&&r.then||(r=Promise.resolve(r)),o?r.then(o):r)}catch(e){return Promise.reject(e)}var r,o,i}},{key:"readChunk",value:function(e,t){try{var n=this;if(n.chunksRead++,0===(t=n.safeWrapAddress(e,t)))return;return n._readChunk(e,t)}catch(e){return Promise.reject(e)}}},{key:"safeWrapAddress",value:function(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}},{key:"nextChunkOffset",get:function(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead<this.options.chunkLimit}},{key:"fullyRead",get:function(){return void 0!==this.size&&this.nextChunkOffset===this.size}},{key:"read",value:function(){return this.options.chunked?this.readChunked():this.readWhole()}},{key:"close",value:function(){}}]),r}(Ft));
2G.set("blob",Dt),e.Exifr=Ne,e.Options=Ae,e.allFormatters=Ce,e.chunkedProps=ge,e.createDictionary=oe,e.default=lt,e.disableAllOptions=mt,e.extendDictionary=ie,e.fetchUrlAsArrayBuffer=J,e.fileParsers=W,e.fileReaders=G,e.gps=dt,e.gpsOnlyOptions=gt,e.inheritables=Se,e.orientation=pt,e.orientationOnlyOptions=vt,e.otherSegments=ve,e.parse=je,e.readBlobAsArrayBuffer=K,e.rotation=function(t){return ut(pt(t),function(t){return w({canvas:e.rotateCanvas,css:e.rotateCss},bt[t])})},e.rotations=bt,e.segmentParsers=$,e.segments=ye,e.segmentsAndBlocks=we,e.tagKeys=se,e.tagRevivers=le,e.tagValues=ae,e.thumbnail=ft,e.thumbnailOnlyOptions=yt,e.thumbnailUrl=ht,e.tiffBlocks=be,e.tiffExtractables=ke,Object.defineProperty(e,"__esModule",{value:!0})}(t)},61076:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u},getFieldData:function(){return c}});var r={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},o={button:!0,fieldset:!0,reset:!0,submit:!0},i={checkbox:!0,radio:!0},s=/^\s+|\s+$/g,a=Array.prototype.slice,l=Object.prototype.toString;function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{trim:!1};if(!e)throw new Error("A form is required by getFormData, was given form="+e);for(var n={},r=void 0,i=[],s={},a=0,l=e.elements.length;a<l;a++){var u=e.elements[a];o[u.type]||u.disabled||(r=u.name||u.id)&&!s[r]&&(i.push(r),s[r]=!0)}for(var p=0,d=i.length;p<d;p++){var h=c(e,r=i[p],t);null!=h&&(n[r]=h)}return n}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{trim:!1};if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==l.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);var o=e.elements[t];if(!o||o.disabled)return null;if(!r[l.call(o)])return p(o,n.trim);for(var i=[],s=!0,a=0,u=o.length;a<u;a++)if(!o[a].disabled){s&&"radio"!==o[a].type&&(s=!1);var c=p(o[a],n.trim);null!=c&&(i=i.concat(c))}return s&&1===i.length?i[0]:i.length>0?i:null}function p(e,t){var n=null,r=e.type;if("select-one"===r)return e.options.length&&(n=e.options[e.selectedIndex].value),n;if("select-multiple"===r){n=[];for(var o=0,l=e.options.length;o<l;o++)e.options[o].selected&&n.push(e.options[o].value);return 0===n.length&&(n=null),n}return"file"===r&&"files"in e?(e.multiple?0===(n=a.call(e.files)).length&&(n=null):n=e.files[0],n):(i[r]?e.checked&&(n=e.value):n=t?e.value.replace(s,""):e.value,n)}u.getFieldData=c},8839:function(e,t,n){var r=n(48287).hp,o=n(61344),i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(o(t)){for(var n=0,i=t.length;n<i;n++)if(e(t[n]))return!0;return!1}if("function"==typeof r&&r.isBuffer&&r.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)&&e(t[l]))return!0;return!1}},61344:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},88383:function(e){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},251:function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,u=l>>1,c=-7,p=n?o-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+p],p+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,p=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+h]=255&s,h+=f,s/=256,u-=8);e[n+h-f]|=128*m}},96938:function(e){var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var r=0;r<e.length;++r)if(e[r]===n)return r;return-1}},16993:function(e){e.exports=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0}},64634:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},8127:function(e,t,n){var r,o;o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,e.exports=function(n){"use strict";var o,i=(n=n||{}).Base64,s="2.6.4",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",l=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(a),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(e){return e.replace(p,c)},h=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)].join("")},f=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,h)},m=function(e){return f(d(String(e)))},g=function(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")},v=function(e,t){return t?g(m(e)):m(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(o=function(e,t){for(var n="",r=0,o=e.length;r<o;r+=3){var i=e[r],s=e[r+1],l=e[r+2],u=i<<16|s<<8|l;n+=a.charAt(u>>>18)+a.charAt(u>>>12&63)+(void 0!==s?a.charAt(u>>>6&63):"=")+(void 0!==l?a.charAt(63&u):"=")}return t?g(n):n});var b,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},S=function(e){return e.replace(w,k)},C=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),o=[u(r>>>16),u(r>>>8&255),u(255&r)];return o.length-=[0,0,2,1][n],o.join("")},P=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,C)},E=function(e){return P(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_=function(e){return S(P(e))},x=function(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},A=function(e){return _(x(e))};n.Uint8Array&&(b=function(e){return Uint8Array.from(E(x(e)),function(e){return e.charCodeAt(0)})});var F=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:s,atob:E,btoa:f,fromBase64:A,toBase64:v,utob:d,encode:v,encodeURI:y,btou:S,decode:A,noConflict:F,fromUint8Array:o,toUint8Array:b},"function"==typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O(function(){return A(this)})),Object.defineProperty(String.prototype,"toBase64",O(function(e){return v(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",O(function(){return v(this,!0)}))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r),{Base64:n.Base64}}(o)},12459:function(e){!function(t){var n,r={},o={16:!1,18:!1,17:!1,91:!1},i="all",s={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},a={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},l=function(e){return a[e]||e.toUpperCase().charCodeAt(0)},u=[];for(n=1;n<20;n++)a["f"+n]=111+n;function c(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function p(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var d={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function h(e){for(n in o)o[n]=e[d[n]]}function f(e,t,n){var o,i;o=g(e),void 0===n&&(n=t,t="all");for(var s=0;s<o.length;s++)i=[],(e=o[s].split("+")).length>1&&(i=v(e),e=[e[e.length-1]]),e=e[0],(e=l(e))in r||(r[e]=[]),r[e].push({shortcut:o[s],scope:t,method:n,key:o[s],mods:i})}for(n in s)f[n]=!1;function m(){return i||"all"}function g(e){var t;return""==(t=(e=e.replace(/\s/g,"")).split(","))[t.length-1]&&(t[t.length-2]+=","),t}function v(e){for(var t=e.slice(0,e.length-1),n=0;n<t.length;n++)t[n]=s[t[n]];return t}function y(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){n(window.event)})}y(document,"keydown",function(e){!function(e){var t,n,i,a,l,p;if(t=e.keyCode,-1==c(u,t)&&u.push(t),93!=t&&224!=t||(t=91),t in o)for(i in o[t]=!0,s)s[i]==t&&(f[i]=!0);else if(h(e),f.filter.call(this,e)&&t in r)for(p=m(),a=0;a<r[t].length;a++)if((n=r[t][a]).scope==p||"all"==n.scope){for(i in l=n.mods.length>0,o)(!o[i]&&c(n.mods,+i)>-1||o[i]&&-1==c(n.mods,+i))&&(l=!1);(0!=n.mods.length||o[16]||o[18]||o[17]||o[91])&&!l||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}(e)}),y(document,"keyup",function(e){var t,n=e.keyCode,r=c(u,n);if(r>=0&&u.splice(r,1),93!=n&&224!=n||(n=91),n in o)for(t in o[n]=!1,s)s[t]==n&&(f[t]=!1)}
2),y(window,"focus",function(){for(n in o)o[n]=!1;for(n in s)f[n]=!1});var b=t.key;t.key=f,t.key.setScope=function(e){i=e||"all"},t.key.getScope=m,t.key.deleteScope=function(e){var t,n,o;for(t in r)for(n=r[t],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++},t.key.filter=function(e){var t=(e.target||e.srcElement).tagName;return!("INPUT"==t||"SELECT"==t||"TEXTAREA"==t)},t.key.isPressed=function(e){return"string"==typeof e&&(e=l(e)),-1!=c(u,e)},t.key.getPressedKeyCodes=function(){return u.slice(0)},t.key.noConflict=function(){var e=t.key;return t.key=b,e},t.key.unbind=function(e,t){var n,o,i,s,a,u=[];for(n=g(e),s=0;s<n.length;s++){if((o=n[s].split("+")).length>1&&(u=v(o),e=o[o.length-1]),e=l(e),void 0===t&&(t=m()),!r[e])return;for(i=0;i<r[e].length;i++)(a=r[e][i]).scope===t&&p(a.mods,u)&&(r[e][i]={})}},e.exports=f}(this)},20181:function(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,f=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||s.test(e)?a(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,s,a,l,u=0,c=!1,p=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-u>=i}function w(){var e=f();if(b(e))return k(e);a=setTimeout(w,function(e){var n=t-(e-l);return p?h(n,i-(e-u)):n}(e))}function k(e){return a=void 0,v&&r?y(e):(r=o=void 0,s)}function S(){var e=f(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(w,t),c?y(e):s}(l);if(p)return a=setTimeout(w,t),y(l)}return void 0===a&&(a=setTimeout(w,t)),s}return t=g(t)||0,m(n)&&(c=!!n.leading,i=(p="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=l=o=a=void 0},S.flush=function(){return void 0===a?s:k(f())},S}},25858:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,p=u||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,f=Math.min,m=function(){return p.Date.now()};function g(e,t,n){var o,i,s,a,l,u,c=0,p=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,c=t,a=e.apply(r,n)}function w(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=s}function k(){var e=m();if(w(e))return S(e);l=setTimeout(k,function(e){var n=t-(e-u);return d?f(n,s-(e-c)):n}(e))}function S(e){return l=void 0,g&&o?b(e):(o=i=void 0,a)}function C(){var e=m(),n=w(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(k,t),p?b(e):a}(u);if(d)return l=setTimeout(k,t),b(u)}return void 0===l&&(l=setTimeout(k,t)),a}return t=y(t)||0,v(n)&&(p=!!n.leading,s=(d="maxWait"in n)?h(y(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),C.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},C.flush=function(){return void 0===l?a:S(m())},C}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||a.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return v(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),g(e,t,{leading:o,maxWait:t,trailing:i})}},31094:function(e){"use strict";e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}},41811:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){return e===t||!(!r(e)||!r(t))}function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1;return!0}t.default=function(e,t){var n;void 0===t&&(t=i);var r,o=[],s=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return s&&n===this&&t(i,o)||(r=e.apply(this,i),s=!0,n=this,o=i),r}}},37057:function(e,t,n){var r=n(23215),o=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,o);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},23215:function(e){"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r},e.exports=function(e,n,r){var o=new t(e,r||/[\/\.]/);return void 0!==n?o.match(n):o}},6585:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=365.25*o;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var l,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!s)return;var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&!1===isNaN(e))return a.long?s(l=e,o,"day")||s(l,r,"hour")||s(l,n,"minute")||s(l,t,"second")||l+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=r)return Math.round(e/r)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},33835:function(e){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,s,a){var l=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),s=0,a=i.length;for(;s<a;s++){var l=i[s];if("*"===l&&(n=n.concat(t[l])),2===o.length&&o[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,l,[n,r,o,i,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}},29140:function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");
2t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},14258:function(e){var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var r=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var s=t.exec(e||""),a={},l=14;l--;)a[n[l]]=s[l]||"";return-1!=o&&-1!=i&&(a.source=r,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},95237:function(e,t,n){"use strict";function r(){}n.r(t),n.d(t,{Component:function(){return I},cloneElement:function(){return c},createElement:function(){return a},h:function(){return a},options:function(){return o},render:function(){return N},rerender:function(){return f}});var o={},i=[],s=[];function a(e,t){var n,a,l,u,c=s;for(u=arguments.length;u-- >2;)i.push(arguments[u]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((a=i.pop())&&void 0!==a.pop)for(u=a.length;u--;)i.push(a[u]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?c[c.length-1]+=a:c===s?c=[a]:c.push(a),n=l;var p=new r;return p.nodeName=e,p.children=c,p.attributes=null==t?void 0:t,p.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(p),p}function l(e,t){for(var n in t)e[n]=t[n];return e}var u="function"==typeof Promise?Promise.resolve().then.bind(Prom
vendor: 4,608 bytes, line 2
2ise.resolve()):setTimeout;function c(e,t){return a(e.nodeName,l(l({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(o.debounceRendering||u)(f)}function f(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&B(e)}function m(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&g(e,t.nodeName):n||e._componentConstructor===t.nodeName}function g(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,w,s):e.removeEventListener(t,w,s),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var a=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function w(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var k=[],S=0,C=!1,P=!1;function E(){for(var e;e=k.pop();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function _(e,t,n,r,o,i){S++||(C=null!=o&&void 0!==o.ownerSVGElement,P=null!=e&&!("__preactattr_"in e));var s=x(e,t,n,r,i);return o&&s.parentNode!==o&&o.appendChild(s),--S||(P=!1,i||E()),s}function x(e,t,n,r,o){var i=e,s=C;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),A(e,!0))),i.__preactattr_=!0,i;var a,l,u=t.nodeName;if("function"==typeof u)return function(e,t,n,r){var o=e&&e._component,i=o,s=e,a=o&&e._componentConstructor===t.nodeName,l=a,u=v(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(U(o,u,3,n,r),e=o.base):(i&&!a&&(D(i),e=s=null),o=R(t.nodeName,u,n),e&&!o.nextBase&&(o.nextBase=e,s=null),U(o,u,1,n,r),e=o.base,s&&e!==s&&(s._component=null,A(s,!1)));return e}(e,t,n,r);if(C="svg"===u||"foreignObject"!==u&&C,u=String(u),(!e||!g(e,u))&&(a=u,(l=C?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),A(e,!0)}var c=i.firstChild,p=i.__preactattr_,d=t.children;if(null==p){p=i.__preactattr_={};for(var h=i.attributes,f=h.length;f--;)p[h[f].name]=h[f].value}return!P&&d&&1===d.length&&"string"==typeof d[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=d[0]&&(c.nodeValue=d[0]):(d&&d.length||null!=c)&&function(e,t,n,r,o){var i,s,a,l,u,c=e.childNodes,p=[],d={},h=0,f=0,g=c.length,v=0,b=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var k=c[w],S=k.__preactattr_;null!=(C=b&&S?k._component?k._component.__key:S.key:null)?(h++,d[C]=k):(S||(void 0!==k.splitText?!o||k.nodeValue.trim():o))&&(p[v++]=k)}if(0!==b)for(w=0;w<b;w++){var C;if(u=null,null!=(C=(l=t[w]).key))h&&void 0!==d[C]&&(u=d[C],d[C]=void 0,h--);else if(!u&&f<v)for(i=f;i<v;i++)if(void 0!==p[i]&&m(s=p[i],l,o)){u=s,p[i]=void 0,i===v-1&&v--,i===f&&f++;break}u=x(u,l,n,r),a=c[w],u&&u!==e&&u!==a&&(null==a?e.appendChild(u):u===a.nextSibling?y(a):e.insertBefore(u,a))}if(h)for(var w in d)void 0!==d[w]&&A(d[w],!1);for(;f<=v;)void 0!==(u=p[v--])&&A(u,!1)}(i,d,n,r,P||null!=p.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||b(e,r,n[r],n[r]=void 0,C);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||b(e,r,n[r],n[r]=t[r],C
vendor: 1,583 bytes, line 2
2)}(i,t.attributes,p),C=s,i}function A(e,t){var n=e._component;n?D(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||y(e),F(e))}function F(e){for(e=e.lastChild;e;){var t=e.previousSibling;A(e,!0),e=t}}var O={};function R(e,t,n){var r,o=O[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),I.call(r,t,n)):((r=new I(t,n)).constructor=e,r.render=T),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function T(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,i){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?h(e):B(e,1,i)),e.__ref&&e.__ref(e))}function B(e,t,n,r){if(!e._disable){var i,s,a,u=e.props,c=e.state,p=e.context,d=e.prevProps||u,h=e.prevState||c,f=e.prevContext||p,m=e.base,g=e.nextBase,y=m||g,b=e._component,w=!1;if(m&&(e.props=d,e.state=h,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,c,p)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(u,c,p),e.props=u,e.state=c,e.context=p),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){i=e.render(u,c,p),e.getChildContext&&(p=l(l({},p),e.getChildContext()));var C,P,x=i&&i.nodeName;if("function"==typeof x){var F=v(i);
vendor: 1,404 bytes, line 2
2(s=b)&&s.constructor===x&&F.key==s.__key?U(s,F,1,p,!1):(C=s,e._component=s=R(x,F,p),s.nextBase=s.nextBase||g,s._parentComponent=e,U(s,F,0,p,!1),B(s,1,n,!0)),P=s.base}else a=y,(C=b)&&(a=e._component=null),(y||1===t)&&(a&&(a._component=null),P=_(a,i,p,n||!m,y&&y.parentNode,!0));if(y&&P!==y&&s!==b){var O=y.parentNode;O&&P!==O&&(O.replaceChild(P,y),C||(y._component=null,A(y,!1)))}if(C&&D(C),e.base=P,P&&!r){for(var T=e,I=e;I=I._parentComponent;)(T=I).base=P;P._component=T,P._componentConstructor=T.constructor}}if(!m||n?k.unshift(e):w||(e.componentDidUpdate&&e.componentDidUpdate(d,h,f),o.afterUpdate&&o.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);S||r||E()}}function D(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?D(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,y(t),function(e){var t=e.constructor.name;(O[t]||(O[t]=[])).push(e)}(e),F(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function N(e,t,n){return _(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=l({},n)),l(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),h(this)}
2,forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),B(this,2)},render:function(){}});var j={h:a,createElement:a,cloneElement:c,Component:I,render:N,rerender:f,options:o};t.default=j},65606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,l=[],u=!1,c=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},55833:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function e(n,r){var o=[];for(var i in n)if(t.call(n,i)){var s,a=n[i],l=encodeURIComponent(i);s="object"==typeof a?e(a,r?r+"["+l+"]":l):(r?r+"["+l+"]":l)+"="+encodeURIComponent(a),o.push(s)}return o.join("&")}},73992:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,s=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;s.push(i+"="+r)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),s=r(t[2]);null===i||null===s||i in o||(o[i]=s)}return o}},92063:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},43591:function(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;
vendor: 5,644 bytes, line 2
2function i(){n&&(n=!1,e()),r&&l()}function a(){s(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function h(e){return parseFloat(e)||0}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,s=o.top+o.bottom,a=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==t&&(a-=f(r,"left","right")+i),Math.round(l+s)!==n&&(l-=f(r,"top","bottom")+s)),!function(e){return e===p(e).document.documentElement}(e)){var u=Math.round(a+i)-t,c=Math.round(l+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(l-=c)}return y(o.left,o.top,a,l)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return o?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,s,a,l,u=(r=(n=t).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),c(l,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),l);c(this,{target:e,contentRect:u})},k=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");
vendor: 13,710 bytes, line 2
2if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var P=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.default=P},57698:function(e,t,n){var r=n(19331),o=n(95074),i=n(89725),s=n(59368)("socket.io-client");e.exports=t=l;var a=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),l=o.source,u=o.id,c=o.path,p=a[u]&&c in a[u].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||p?(s("ignoring socket cache for %s",l),n=i(l,t)):(a[u]||(s("new io instance for %s",l),a[u]=i(l,t)),n=a[u]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=l,t.Manager=n(89725),t.Socket=n(87773)},89725:function(e,t,n){var r=n(3357),o=n(87773),i=n(5971),s=n(95074),a=n(74745),l=n(18144),u=n(59368)("socket.io-client:manager"),c=n(96938),p=n(63059),d=Object.prototype.hasOwnProperty;function h(e,t){if(!(this instanceof h))return new h(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=h,h.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)d.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},h.prototype.updateSocketIds=function(){for(var e in this.nsps)d.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},h.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(h.prototype),h.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},h.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},h.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},h.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},h.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},h.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},h.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},h.prototype.open=h.prototype.connect=function(e,t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=a(n,"open",function(){o.onopen(),e&&e()}),s=a(n,"error",function(t){if(u("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()});if(!1!==this._timeout){var l=this._timeout;u("connect attempt will timeout after %d",l);var c=setTimeout(function(){u("connect attempt timed out after %d",l),i.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",l)},l);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(s),this},h.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(a(e,"data",l(this,"ondata"))),this.subs.push(a(e,"ping",l(this,"onping"))),this.subs.push(a(e,"pong",l(this,"onpong"))),this.subs.push(a(e,"error",l(this,"onerror"))),this.subs.push(a(e,"close",l(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",l(this,"ondecoded")))},h.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},h.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},h.prototype.ondata=function(e){this.decoder.add(e)},h.prototype.ondecoded=function(e){this.emit("packet",e)},h.prototype.onerror=function(e){u("error",e),this.emitAll("error",e)},h.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",i),n.on("connect",function(){n.id=r.generateId(e)}),this.autoConnect&&i()}function i(){~c(r.connecting,n)||r.connecting.push(n)}return n},h.prototype.destroy=function(e){var t=c(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},h.prototype.packet=function(e){u("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},h.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},h.prototype.cleanup=function(){u("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},h.prototype.close=h.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},h.prototype.onclose=function(e){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},h.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();u("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(u("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(u("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(u("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},h.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},74745:function(e){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},87773:function(e,t,n){var r=n(95074),o=n(5971),i=n(78104),s=n(74745),a=n(18144),l=n(59368)("socket.io-client:socket"),u=n(29140),c=n(8839);e.exports=h;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=o.prototype.emit;function h(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(h.prototype),h.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",a(this,"onopen")),s(e,"packet",a(this,"onpacket")),s(e,"close",a(this,"onclose"))]}},h.prototype.open=h.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},h.prototype.send=function(){var e=i(arguments);return e.unshift("message"),this.emit.apply(this,e),this},h.prototype.emit=function(e){if(p.hasOwnProperty(e))return d.apply(this,arguments),this;var t=i(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:c(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},h.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},h.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?u.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},h.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},h.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},h.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?d.apply(this,t):this.receiveBuffer.push(t)},h.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=i(arguments);l("sending ack %j",o),t.packet({type:c(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},h.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},h.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},h.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)d.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},h.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},h.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},h.prototype.close=h.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},h.prototype.compress=function(e){return this.flags.compress=e,this},h.prototype.binary=function(e){return this.flags.binary=e,this}},19331:function(e,t,n){var r=n(14258),o=n(59368)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e));n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443"));n.path=n.path||"/";var i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}},59368:function(e,t,n){var r=n(65606);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(79939)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
2CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},79939:function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=s[l];n=o.call(e,i),s.splice(l,1),l--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}
2,t.humanize=n(6585),t.instances=[],t.names=[],t.skips=[],t.formatters={}},2225:function(e,t,n){var r=n(17687),o=n(28247),i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);function l(e,t){if(!e)return e;if(o(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(r(e)){for(var i=new Array(e.length),s=0;s<e.length;s++)i[s]=l(e[s],t);return i}if("object"==typeof e&&!(e instanceof Date)){i={};for(var a in e)i[a]=l(e[a],t);return i}return e}function u(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(r(e))for(var n=0;n<e.length;n++)e[n]=u(e[n],t);else if("object"==typeof e)for(var o in e)e[o]=u(e[o],t);return e}t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=l(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=u(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,i=e;!function e(l,u,c){if(!l)return l;if(s&&l instanceof Blob||a&&l instanceof File){n++;var p=new FileReader;p.onload=function(){c?c[u]=this.result:i=this.result,--n||t(i)},p.readAsArrayBuffer(l)}else if(r(l))for(var d=0;d<l.length;d++)e(l[d],d,l);else if("object"==typeof l&&!o(l))for(var h in l)e(l[h],h,l)}(i),n||t(i)}},95074:function(e,t,n){var r=n(80852)("socket.io-parser"),o=n(89522),i=n(2225),s=n(17687),a=n(28247);function l(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=l,t.Decoder=p;var u=t.ERROR+'"encode error"';function c(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return u;n+=o}return r("encoded %j as %s",e,n),n}function p(e){this.reconstructor=null,e=e||{},this.opts={maxAttachments:e.maxAttachments||10}}function d(e){this.reconPack=e,this.buffers=[]}l.prototype.encode=function(e,n){(r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){function n(e){var n=i.deconstructPacket(e),r=c(n.packet),o=n.buffers;o.unshift(r),t(o)}i.removeBlobs(e,n)}(e,n):n([c(e)])},o(p.prototype),p.prototype.add=function(e){var n;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=function(e,n){var o=0,i={type:Number(e.charAt(0))};if(null==t.types[i.type])return a="unknown packet type "+i.type,{type:t.ERROR,data:"parser error: "+a};var a;if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var l=o+1;"-"!==e.charAt(++o)&&o!=e.length;);var u=e.substring(l,o);if(u!=Number(u)||"-"!==e.charAt(o))throw new Error("Illegal attachments");var c=Number(u);if(!h(c)||c<0)throw new Error("Illegal attachments");if(c>n)throw new Error("too many attachments");i.attachments=c}if("/"===e.charAt(o+1)){for(l=o+1;++o;){if(","===(d=e.charAt(o)))break;if(o===e.length)break}i.nsp=e.substring(l,o)}else i.nsp="/";var p=e.charAt(o+1);if(""!==p&&Number(p)==p){for(l=o+1;++o;){var d;if(null==(d=e.charAt(o))||Number(d)!=d){--o;break}if(o===e.length)break}i.id=Number(e.substring(l,o+1))}if(e.charAt(++o)){var f=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(o));if(!function(e,t){switch(e){case 0:return"object"==typeof t;case 1:return void 0===t;case 4:return"string"==typeof t||"object"==typeof t;case 2:case 5:return s(t)&&("string"==typeof t[0]||"number"==typeof t[0]);case 3:case 6:return s(t)}}(i.type,f))throw new Error("invalid payload");i.data=f}return r("decoded %s as %j",e,i),i}(e,this.opts.maxAttachments),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new d(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n)}else{if(!a(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit
vendor: 4,443 bytes, line 2
2("decoded",n))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};var h=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},28247:function(e,t,n){var r=n(48287).hp;e.exports=function(e){return o&&r.isBuffer(e)||i&&(e instanceof ArrayBuffer||s(e))};var o="function"==typeof r&&"function"==typeof r.isBuffer,i="function"==typeof ArrayBuffer,s=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}},89522:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},80852:function(e,t,n){var r=n(65606);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(51175)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#F
2F6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},51175:function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=s[l];n=o.call(e,i),s.splice(l,1),l--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}
2,t.humanize=n(6585),t.instances=[],t.names=[],t.skips=[],t.formatters={}},17687:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},78465:function(e){e.exports=function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(t,n){return t.get(e(t,n))}function r(e,n,r){t(e,n),n.set(e,r)}function o(t,n,r){return t.set(e(t,n),r),r}const i=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},l=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},i),window.scrollTo(n,r)}),u="swal2-",c=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=u+t,e),{}),p=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=u+t,e),{}),d="SweetAlert2:",h=e=>e.charAt(0).toUpperCase()+e.slice(1),f=e=>{console.warn(`${d} ${"object"==typeof e?e.join(" "):e}`)},m=e=>{console.error(`${d} ${e}`)},g=[],v=e=>{g.includes(e)||(g.push(e),f(e))},y=(e,t=null)=>{v(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},b=e=>"function"==typeof e?e():e,w=e=>e&&"function"==typeof e.toPromise,k=e=>w(e)?e.toPromise():Promise.resolve(e),S=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),P=()=>document.body.querySelector(`.${c.container}`),E=e=>{const t=P();return t?t.querySelector(e):null},_=e=>E(`.${e}`),x=()=>_(c.popup),A=()=>_(c.icon),F=()=>_(c["icon-content"]),O=()=>_(c.title),R=()=>_(c["html-container"]),T=()=>_(c.image),U=()=>_(c["progress-steps"]),B=()=>_(c["validation-message"]),D=()=>E(`.${c.actions} .${c.confirm}`),I=()=>E(`.${c.actions} .${c.cancel}`),N=()=>E(`.${c.actions} .${c.deny}`),j=()=>_(c["input-label"]),L=()=>E(`.${c.loader}`),M=()=>_(c.actions),z=()=>_(c.footer),q=()=>_(c["timer-progress-bar"]),H=()=>_(c.close),V='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',W=()=>{const e=x();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0}),r=e.querySelectorAll(V),o=Array.from(r).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(n.concat(o))].filter(e=>pe(e))},$=()=>K(document.body,c.shown)&&!K(document.body,c["toast-shown"])&&!K(document.body,c["no-backdrop"]),G=()=>{const e=x();return!!e&&K(e,c.toast)},X=()=>{const e=x();return!!e&&e.hasAttribute("data-loading")},Y=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");
vendor: 4,841 bytes, line 2
2o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},K=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},J=(e,t)=>{Array.from(e.classList).forEach(n=>{Object.values(c).includes(n)||Object.values(p).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)})},Z=(e,t,n)=>{if(J(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?ne(e,r):f(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},Q=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${c.popup} > .${c[t]}`);case"checkbox":return e.querySelector(`.${c.popup} > .${c.checkbox} input`);case"radio":return e.querySelector(`.${c.popup} > .${c.radio} input:checked`)||e.querySelector(`.${c.popup} > .${c.radio} input:first-child`);case"range":return e.querySelector(`.${c.popup} > .${c.range} input`);default:return e.querySelector(`.${c.popup} > .${c.input}`)}},ee=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},te=(e,t,n)=>{if(!e||!t)return;const r="string"==typeof t?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(e=>{r.forEach(t=>{n?e.classList.add(t):e.classList.remove(t)})})},ne=(e,t)=>{te(e,t,!0)},re=(e,t)=>{te(e,t,!1)},oe=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const r=n[e];if(r instanceof HTMLElement&&K(r,t))return r}},ie=(e,t,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||0===n?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},se=(e,t="flex")=>{e&&(e.style.display=t)},ae=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{ce(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},ue=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},ce=(e,t,n="flex")=>{t?se(e,n):ae(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),de=()=>!pe(D())&&!pe(N())&&!pe(I()),he=e=>Boolean(e.scrollHeight>e.clientHeight),fe=(e,t)=>{let n=e;for(;n&&n!==t;){if(he(n))return!0;n=n.parentElement}return!1},me=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},ge=(e,t=!1)=>{const n=q();n&&pe(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},ve=()=>{const e=q();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},ye=()=>"undefined"==typeof window||"undefined"==typeof document,be=`\n <div aria-labelledby="${c.title}" aria-describedby="${c["html-container"]}" class="${c.popup}" tabindex="-1">\n   <button type="button" class="${c.close}"></button>\n   <ul class="${c["progress-steps"]}"></ul>\n   <div class="${c.icon}"></div>\n   <img class="${c.image}" />\n   <h2 class="${c.title}" id="${c.title}"></h2>\n   <div class="${c["html-container"]}" id="${c["html-container"]}"></div>\n   <input class="${c.input}" id="${c.input}" />\n   <input type="file" class="${c.file}" />\n   <div class="${c.range}">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="${c.select}" id="${c.select}"></select>\n   <div class="${c.radio}"></div>\n   <label class="${c.checkbox}">\n     <input type="checkbox" id="${c.checkbox}" />\n     <span class="${c.label}"></span>\n   </label>\n   <textarea class="${c.textarea}" id="${c.textarea}"></textarea>\n   <div class="${c["validation-message"]}" id="${c["validation-message"]}"></div>\n   <div class="${c.actions}">\n     <div class="${c.loader}"></div>\n     <button type="button" class="${c.confirm}"></button>\n     <button type="button" class="${c.deny}"></button>\n     <button type="button" class="${c.cancel}"></button>\n   </div>\n   <div class="${c.footer}"></div>\n   <div class="${c["timer-progress-bar-container"]}">\n     <div class="${c["timer-progress-bar"]}"></div>\n   </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),we=()=>{const e=P();return!!e&&(e.remove(),re([document.documentElement,document.body],[c["no-backdrop"],c["toast-shown"],c["has-column"]]),!0)},ke=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},Se=()=>{const e=x();if(!e)return;const t=oe(e,c.input),n=oe(e,c.file),r=e.querySelector(`.${c.range} input`),o=e.querySelector(`.${c.range} output`),i=oe(e,c.select),s=e.querySelector(`.${c.checkbox} input`),a=oe(e,c.textarea);t&&(t.oninput=ke),n&&(n.onchange=ke),i&&(i.onchange=ke),s&&(s.onchange=ke),a&&(a.onin
2put=ke),r&&o&&(r.oninput=()=>{ke(),o.value=r.value},r.onchange=()=>{ke(),o.value=r.value})},Ce=e=>{if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Pe=e=>{const t=x();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ee=e=>{"rtl"===window.getComputedStyle(e).direction&&(ne(P(),c.rtl),s.isRTL=!0)},_e=e=>{const t=we();if(ye())return void m("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=c.container,t&&ne(n,c["no-transition"]),Y(n,be),n.dataset.swal2Theme=e.theme;const r=Ce(e.target||"body");r.appendChild(n),e.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Pe(e),Ee(r),Se()},xe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ae(e,t):e&&Y(t,e)},Ae=(e,t)=>{"jquery"in e?Fe(t,e):Y(t,e.toString())},Fe=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Oe=(e,t)=>{const n=M(),r=L();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?se(n):ae(n),Z(n,t,"actions"),Re(n,r,t),Y(r,t.loaderHtml||""),Z(r,t,"loader"))};function Re(e,t,n){const r=D(),o=N(),i=I();r&&o&&i&&(Be(r,"confirm",n),Be(o,"deny",n),Be(i,"cancel",n),Te(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t))))}function Te(e,t,n,r){r.buttonsStyling?(ne([e,t,n],c.styled),[[e,"confirm",r.confirmButtonColor],[t,"deny",r.denyButtonColor],[n,"cancel",r.cancelButtonColor]].forEach(([e,t,n])=>{n&&e.style.setProperty(`--swal2-${t}-button-background-color`,n),Ue(e)})):re([e,t,n],c.styled)}function Ue(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function Be(e,t,n){const r=h(t);ce(e,n[`show${r}Button`],"inline-block"),Y(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=c[t],Z(e,n,`${t}Button`)}const De=(e,t)=>{const n=H();n&&(Y(n,t.closeButtonHtml||""),Z(n,t,"closeButton"),ce(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Ie=(e,t)=>{const n=P();n&&(Ne(n,t.backdrop),je(n,t.position),Le(n,t.grow),Z(n,t,"container"))};function Ne(e,t){"string"==typeof t?e.style.background=t:t||ne([document.documentElement,document.body],c["no-backdrop"])}function je(e,t){t&&(t in c?ne(e,c[t]):(f('The "position" parameter is not valid, defaulting to "center"'),ne(e,c.center)))}function Le(e,t){t&&ne(e,c[`grow-${t}`])}var Me={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const ze=["input","file","range","select","radio","checkbox","textarea"],qe=(e,t)=>{const n=x();if(!n)return;const r=Me.innerParams.get(e),o=!r||t.input!==r.input;ze.forEach(e=>{const r=oe(n,c[e]);r&&(We(e,t.inputAttributes),r.className=c[e],o&&ae(r))}),t.input&&(o&&He(t),$e(t))},He=e=>{if(!e.input)return;if(!Je[e.input])return void m(`Unexpected type of input! Expected ${Object.keys(Je).join(" | ")}, got "${e.input}"`);const t=Ye(e.input);if(!t)return;const n=Je[e.input](t,e);se(t),e.inputAutoFocus&&setTimeout(()=>{ee(n)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},We=(e,t)=>{const n=x();if(!n)return;const r=Q(n,e);if(r){Ve(r);for(const e in t)r.setAttribute(e,t[e])}},$e=e=>{if(!e.input)return;const t=Ye(e.input);t&&Z(t,e,"input")},Ge=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Xe=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=c["input-label"];r.setAttribute("for",e.id),r.className=o,"object"==typeof n.customClass&&ne(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ye=e=>{const t=x();if(t)return oe(t,c[e]||c.input)},Ke=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:S(t)||f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Je={};Je.text=Je.email=Je.password=Je.number=Je.tel=Je.url=Je.search=Je.date=Je["datetime-local"]=Je.time=Je.week=Je.month=(e,t)=>{const n=e;return Ke(n,t.inputValue),Xe(n,n,t),Ge(n,t),n.type=t.input,n},Je.file=(e,t)=>
2{const n=e;return Xe(n,n,t),Ge(n,t),n},Je.range=(e,t)=>{const n=e,r=n.querySelector("input"),o=n.querySelector("output");return r&&(Ke(r,t.inputValue),r.type=t.input,Xe(r,e,t)),o&&Ke(o,t.inputValue),e},Je.select=(e,t)=>{const n=e;if(n.textContent="",t.inputPlaceholder){const e=document.createElement("option");Y(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,n.appendChild(e)}return Xe(n,n,t),n},Je.radio=e=>(e.textContent="",e),Je.checkbox=(e,t)=>{const n=x();if(!n)throw new Error("Popup not found");const r=Q(n,"checkbox");if(!r)throw new Error("Checkbox input not found");r.value="1",r.checked=Boolean(t.inputValue);const o=e.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&Y(o,e)}return r},Je.textarea=(e,t)=>{const n=e;Ke(n,t.inputValue),Ge(n,t),Xe(n,n,t);const r=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=x();if(!e)return;const o=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(n))return;const e=n.offsetWidth+r(n),i=x();i&&(e>o?i.style.width=`${e}px`:ie(i,"width",t.width))}).observe(n,{attributes:!0,attributeFilter:["style"]})}}),n};const Ze=(e,t)=>{const n=R();n&&(le(n),Z(n,t,"htmlContainer"),t.html?(xe(t.html,n),se(n,"block")):t.text?(n.textContent=t.text,se(n,"block")):ae(n),qe(e,t))},Qe=(e,t)=>{const n=z();n&&(le(n),ce(n,Boolean(t.footer),"block"),t.footer&&xe(t.footer,n),Z(n,t,"footer"))},et=(e,t)=>{const n=Me.innerParams.get(e),r=A();if(r){if(n&&t.icon===n.icon)return it(r,t),void tt(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ae(r);se(r),it(r,t),tt(r,t),ne(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",nt)}
2else ae(r)}},tt=(e,t)=>{for(const[n,r]of Object.entries(p))t.icon!==n&&re(e,r);ne(e,t.icon&&p[t.icon]),st(e,t),nt(),Z(e,t,"icon")},nt=()=>{const e=x();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},rt=e=>`\n  ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div>\n  ${e.animation?'<div class="swal2-success-fix"></div>':""}\n  ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,ot='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',it=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";t.iconHtml?r=at(t.iconHtml):"success"===t.icon?(r=rt(t),n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?r=ot:t.icon&&(r=at({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&Y(e,r)},st=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ue(e,n,"background-color",t.iconColor);ue(e,".swal2-success-ring","border-color",t.iconColor)}},at=e=>`<div class="${c["icon-content"]}">${e}</div>`,lt=(e,t)=>{const n=T();n&&(t.imageUrl?(se(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),ie(n,"width",t.imageWidth),ie(n,"height",t.imageHeight),n.className=c.image,Z(n,t,"image")):ae(n))};let ut=!1,ct=0,pt=0,dt=0,ht=0;const ft=e=>{e.addEventListener("mousedown",gt),document.body.addEventListener("mousemove",vt),e.addEventListener("mouseup",yt),e.addEventListener("touchstart",gt),document.body.addEventListener("touchmove",vt),e.addEventListener("touchend",yt)},mt=e=>{e.removeEventListener("mousedown",gt),document.body.removeEventListener("mousemove",vt),e.removeEventListener("mouseup",yt),e.removeEventListener("touchstart",gt),document.body.removeEventListener("touchmove",vt),e.removeEventListener("touchend",yt)},gt=e=>{const t=x();if(!t)return;const n=A();if(e.target===t||n&&n.contains(e.target)){ut=!0;const n=bt(e);ct=n.clientX,pt=n.clientY,dt=parseInt(t.style.insetInlineStart)||0,ht=parseInt(t.style.insetBlockStart)||0,ne(t,"swal2-dragging")}},vt=e=>{const t=x();if(t&&ut){let{clientX:n,clientY:r}=bt(e);const o=n-ct;t.style.insetInlineStart=`${dt+(s.isRTL?-o:o)}px`,t.style.insetBlockStart=`${ht+(r-pt)}px`}},yt=()=>{const e=x();ut=!1,re(e,"swal2-dragging")},bt=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},wt=(e,t)=>{const n=P(),r=x();if(n&&r){if(t.toast){ie(n,"width",t.width),r.style.width="100%";const e=L();e&&r.insertBefore(e,A())}else ie(r,"width",t.width);ie(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),ae(B()),kt(r,t),t.draggable&&!t.toast?(ne(r,c.draggable),ft(r)):(re(r,c.draggable),mt(r))}},kt=(e,t)=>{const n=t.showClass||{};e.className=`${c.popup} ${pe(e)?n.popup:""}`,t.toast?(ne([document.documentElement,document.body],c["toast-shown"]),ne(e,c.toast)):ne(e,c.modal),Z(e,t,"popup"),"string"==typeof t.customClass&&ne(e,t.customClass),t.icon&&ne(e,c[`icon-${t.icon}`])},St=(e,t)=>{const n=U();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(se(n),n.textContent="",o>=r.length&&f("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((e,i)=>{const s=Ct(e);if(n.appendChild(s),i===o&&ne(s,c["active-progress-step"]),i!==r.length-1){const e=Pt(t);n.appendChild(e)}})):ae(n)},Ct=e=>{const t=document.createElement("li");return ne(t,c["progress-step"]),Y(t,e),t},Pt=e=>{const t=document.createElement("li");return ne(t,c["progress-step-line"]),e.progressStepsDistance&&ie(t,"width",e.progressStepsDistance),t},Et=(e,t)=>
2{const n=O();n&&(le(n),ce(n,Boolean(t.title||t.titleText),"block"),t.title&&xe(t.title,n),t.titleText&&(n.innerText=t.titleText),Z(n,t,"title"))},_t=(e,t)=>{var n;wt(e,t),Ie(e,t),St(e,t),et(e,t),lt(e,t),Et(e,t),De(e,t),Ze(e,t),Oe(e,t),Qe(e,t);const r=x();"function"==typeof t.didRender&&r&&t.didRender(r),null===(n=s.eventEmitter)||void 0===n||n.emit("didRender",r)},xt=()=>pe(x()),At=()=>{var e;return null===(e=D())||void 0===e?void 0:e.click()},Ft=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Ot=()=>{var e;return null===(e=I())||void 0===e?void 0:e.click()},Rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Tt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Ut=(e,t,n)=>{if(Tt(e),!t.toast){const r=e=>Nt(t,e,n);e.keydownHandler=r;const o=t.keydownListenerCapture?window:x();if(o){e.keydownTarget=o,e.keydownListenerCapture=t.keydownListenerCapture;const n=r;e.keydownTarget.addEventListener("keydown",n,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>
vendor: 17,236 bytes, line 2
2{var n;const r=W();return r.length?(-2===(e+=t)&&(e=r.length-1),e===r.length?e=0:-1===e&&(e=r.length-1),r[e].focus(),!(C()&&r[e]instanceof HTMLIFrameElement)):(null===(n=x())||void 0===n||n.focus(),!0)},Dt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Nt=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?jt(t,e):"Tab"===t.key?Lt(t):[...Dt,...It].includes(t.key)?Mt(t.key):"Escape"===t.key&&zt(t,e,n)))},jt=(e,t)=>{if(!b(t.allowEnterKey))return;const n=x();if(!n||!t.input)return;const r=Q(n,t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if(["textarea","file"].includes(t.input))return;At(),e.preventDefault()}},Lt=e=>{const t=e.target,n=W();let r=-1;for(let e=0;e<n.length;e++)if(t===n[e]){r=e;break}let o=!0;o=e.shiftKey?Bt(r,-1):Bt(r,1),e.stopPropagation(),o&&e.preventDefault()},Mt=e=>{const t=M(),n=D(),r=N(),o=I();if(!(t&&n&&r&&o))return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const s=Dt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},zt=(e,t,n)=>{e.preventDefault(),b(t.allowEscapeKey)&&n(Rt.esc)};var qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ht=()=>{const e=P();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Wt="undefined"!=typeof window&&Boolean(window.GestureEvent),$t=Wt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gt=()=>{if(Wt&&!K(document.body,c.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ne(document.body,c.iosfix),Xt()}},Xt=()=>{const e=P();if(!e)return;let t;e.ontouchstart=e=>{t=Yt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Yt=e=>{const t=e.target,n=P(),r=R();return!(!n||!r||Kt(e)||Jt(e)||t!==n&&(he(n)||!(t instanceof HTMLElement)||fe(t,r)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||he(r)&&r.contains(t)))},Kt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Jt=e=>e.touches&&e.touches.length>1,Zt=()=>{if(K(document.body,c.iosfix)){const e=parseInt(document.body.style.top,10);re(document.body,c.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Qt=()=>{const e=document.createElement("div");e.className=c["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let en=null;const tn=e=>{null===en&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(en=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${en+Qt()}px`)},nn=()=>{null!==en&&(document.body.style.paddingRight=`${en}px`,en=null)};function rn(e,t,n,r){G()?hn(e,r):(l(n).then(()=>hn(e,r)),Tt(s)),Wt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),$()&&(nn(),Zt(),Vt()),on()}function on(){re([document.documentElement,document.body],[c.shown,c["height-auto"],c["no-backdrop"],c["toast-shown"]])}function sn(e){e=cn(e);const t=qt.swalPromiseResolve.get(this),n=an(this);this.isAwaitingPromise?e.isDismissed||(un(this),t(e)):n&&t(e)}const an=e=>{const t=x();if(!t)return!1;const n=Me.innerParams.get(e);if(!n||K(t,n.hideClass.popup))return!1;re(t,n.showClass.popup),ne(t,n.hideClass.popup);const r=P();return re(r,n.showClass.backdrop),ne(r,n.hideClass.backdrop),pn(e,t,n),!0};function ln(e){const t=qt.swalPromiseReject.get(this);un(this),t&&t(e)}const un=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,Me.innerParams.get(e)||e._destroy())},cn=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),pn=(e,t,n)=>{var r;const o=P(),i=me(t);"function"==typeof n.willClose&&n.willClose(t),null===(r=s.eventEmitter)||void 0===r||r.emit("willClose",t),i&&o?dn(e,t,o,Boolean(n.returnFocus),n.didClose):o&&rn(e,o,Boolean(n.returnFocus),n.didClose)},dn=(e,t,n,r,o)=>{s.swalCloseEventFinishedCallback=rn.bind(null,e,n,r,o);const i=function(e){var n;e.target===t&&(null===(n=s.swalCloseEventFinishedCallback)||void 0===n||n.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},hn=(e,t)=>{setTimeout(()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=s.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()})},fn=e=>{let t=x();if(t||new vo,t=x(),!t)return;const n=L();G()?ae(A()):mn(t,e),se(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mn=(e,t)=>{const n=M(),r=L();n&&r&&(!t&&pe(D())&&(t=D()),se(n),t&&(ae(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),ne([e,n],c.loading))},gn=(e,t)=>{"select"===t.input||"radio"===t.input?kn(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(w(t.inputValue)||S(t.inputValue))&&(fn(D()),Sn(e,t))},vn=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return yn(n);case"radio":return bn(n);case"file":return wn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},yn=e=>e.checked?1:0,bn=e=>e.checked?e.value:null,wn=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kn=(e,t)=>{const n=x();if(!n)return;const r=e=>{"select"===t.input?Cn(n,En(e),t):"radio"===t.input&&Pn(n,En(e),t)};w(t.inputOptions)||S(t.inputOptions)?(fn(D()),k(t.inputOptions).then(t=>{e.hideLoading(),r(t)})):"object"==typeof t.inputOptions?r(t.inputOptions):m("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sn=(e,t)=>{const n=e.getInput();n&&(ae(n),k(t.inputValue).then(r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,se(n),n.focus(),e.hideLoading()}).catch(t=>{m(`Error in inputValue promise: ${t}`),n.value="",se(n),n.focus(),e.hideLoading()}))};function Cn(e,t,n){const r=oe(e,c.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,Y(o,t),o.selected=_n(r,n.inputValue),e.appendChild(o)};t.forEach(e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach(t=>o(e,t[1],t[0]))}else o(r,n,t)}),r.focus()}function Pn(e,t,n){const r=oe(e,c.radio);if(!r)return;t.forEach(e=>{const t=e[0],o=e[1],i=document.createElement("input"),s=document.createElement("label");i.type="radio",i.name=c.radio,i.value=t,_n(t,n.inputValue)&&(i.checked=!0);const a=document.createElement("span");Y(a,o),a.className=c.label,s.appendChild(i),s.appendChild(a),r.appendChild(s)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const En=e=>(e instanceof Map?Array.from(e):Object.entries(e)).map(([e,t])=>[e,"object"==typeof t?En(t):t]),_n=(e,t)=>Boolean(t)&&null!=t&&t.toString()===e.toString(),xn=e=>{const t=Me.innerParams.get(e);e.disableButtons(),t.input?On(e,"confirm"):Dn(e,!0)},An=e=>{const t=Me.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?On(e,"deny"):Tn(e,!1)},Fn=(e,t)=>{e.disableButtons(),t(Rt.cancel)},On=(e,t)=>{const n=Me.innerParams.get(e);if(!n.input)return void m(`The "input" parameter is needed to be set when using returnInputValueOn${h(t)}`);const r=e.getInput(),o=vn(e,n);n.inputValidator?Rn(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?Tn(e,o):Dn(e,o)},Rn=(e,t,n)=>{const r=Me.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>k(r.inputValidator(t,r.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Tn(e,t):Dn(e,t)})},Tn=(e,t)=>{const n=Me.innerParams.get(e);n.showLoaderOnDeny&&fn(N()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>k(n.preDeny(t,n.validationMessage))).then(n=>{!1===n?(e.hideLoading(),un(e)):e.close({isDenied:!0,value:void 0===n?t:n})}).catch(t=>Bn(e,t))):e.close({isDenied:!0,value:t})},Un=(e,t)=>{e.close({isConfirmed:!0,value:t})},Bn=(e,t)=>{e.rejectPromise(t)},Dn=(e,t)=>{const n=Me.innerParams.get(e);n.showLoaderOnConfirm&&fn(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>k(n.preConfirm(t,n.validationMessage))).then(n=>{pe(B())||!1===n?(e.hideLoading(),un(e)):Un(e,void 0===n?t:n)}).catch(t=>Bn(e,t))):Un(e,t)};function In(){const e=Me.innerParams.get(this);if(!e)return;const t=Me.domCache.get(this);ae(t.loader),G()?e.icon&&se(A()):Nn(t),re([t.popup,t.actions],c.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const n=Me.focusedElement.get(this);n instanceof HTMLElement&&document.activeElement===document.body&&n.focus(),Me.focusedElement.delete(this)}const Nn=e=>{const t=e.loader.getAttribute("data-button-to-replace"),n=t?e.popup.getElementsByClassName(t):[];n.length?se(n[0],"inline-block"):de()&&ae(e.actions)};function jn(){const e=Me.innerParams.get(this),t=Me.domCache.get(this);return t?Q(t.popup,e.input):null}function Ln(e,t,n){const r=Me.domCache.get(e);t.forEach(e=>{r[e].disabled=n})}function Mn(e,t){const n=x();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${c.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function zn(){Ln(this,["confirmButton","denyButton","cancelButton"],!1);const e=Me.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),Me.focusedElement.delete(this)}function qn(){Me.focusedElement.set(this,document.activeElement),Ln(this,["confirmButton","denyButton","cancelButton"],!0)}function Hn(){Mn(this.getInput(),!1)}function Vn(){Mn(this.getInput(),!0)}function Wn(e){const t=Me.domCache.get(this),n=Me.innerParams.get(this);Y(t.validationMessage,e),t.validationMessage.className=c["validation-message"],n.customClass&&n.customClass.validationMessage&&ne(t.validationMessage,n.customClass.validationMessage),se(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",c["validation-message"]),ee(r),ne(r,c.inputerror))}function $n(){const e=Me.domCache.get(this);e.validationMessage&&ae(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),re(t,c.inputerror))}const Gn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Xn=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Yn={allowEnterKey:void 0},Kn=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Jn=e=>Object.prototype.hasOwnProperty.call(Gn,e),Zn=e=>-1!==Xn.indexOf(e),Qn=e=>Yn[e],er=e=>{Jn(e)||f(`Unknown parameter "${e}"`)},tr=e=>{Kn.includes(e)&&f(`The parameter "${e}" is incompatible with toasts`)},nr=e=>{const t=Qn(e);t&&y(e,t)},rr=e=>{!1===e.backdrop&&e.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&f(`Invalid theme "${e.theme}"`);for(const t in e)er(t),e.toast&&tr(t),nr(t)};function or(e){const t=P(),n=x(),r=Me.innerParams.get(this);if(!n||K(n,r.hideClass.popup))return void f("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=ir(e),i=Object.assign({},r,o);rr(i),t&&(t.dataset.swal2Theme=i.theme),_t(this,i),Me.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ir=e=>{const t={};return Object.keys(e).forEach(n=>{if(Zn(n)){const r=e;t[n]=r[n]}else f(`Invalid parameter to update: ${n}`)}),t};function sr(){var e;const t=Me.domCache.get(this),n=Me.innerParams.get(this);n?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),ar(this)):lr(this)}const ar=e=>{lr(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},lr=e=>{e.isAwaitingPromise?(ur(Me,e),e.isAwaitingPromise=!0):(ur(qt,e),ur(Me,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},ur=(e,t)=>{for(const n in e)e[n].delete(t)};var cr=Object.freeze({__proto__:null,_destroy:sr,close:sn,closeModal:sn,closePopup:sn,closeToast:sn,disableButtons:qn,disableInput:Vn,disableLoading:In,enableButtons:zn,enableInput:Hn,getInput:jn,handleAwaitingPromise:un,hideLoading:In,rejectPromise:ln,resetValidationMessage:$n,showValidationMessage:Wn,update:or});const pr=(e,t,n)=>{e.toast?dr(e,t,n):(mr(t),gr(t),vr(e,t,n))},dr=(e,t,n)=>{t.popup.onclick=()=>{e&&(hr(e)||e.timer||e.input)||n(Rt.close)}},hr=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let fr=!1;const mr=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(fr=!0)}}},gr=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(fr=!0)}}},vr=(e,t,n)=>{t.container.onclick=r=>{fr?fr=!1:r.target===t.container&&b(e.allowOutsideClick)&&n(Rt.backdrop)}},yr=e=>"object"==typeof e&&null!==e&&"jquery"in e,br=e=>e instanceof Element||yr(e),wr=e=>{const t={};return"object"!=typeof e[0]||br(e[0])?["title","html","icon"].forEach((n,r)=>{const o=e[r];"string"==typeof o||br(o)?t[n]=o:void 0!==o&&m(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}):Object.assign(t,e[0]),t};function kr(...e){return new this(...e)}
2function Sr(e){class t extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}return t}const Cr=()=>s.timeout&&s.timeout.getTimerLeft(),Pr=()=>{if(s.timeout)return ve(),s.timeout.stop()},Er=()=>{if(s.timeout){const e=s.timeout.start();return ge(e),e}},_r=()=>{const e=s.timeout;return e&&(e.running?Pr():Er())},xr=e=>{if(s.timeout){const t=s.timeout.increase(e);return ge(t,!0),t}},Ar=()=>Boolean(s.timeout&&s.timeout.isRunning());let Fr=!1;const Or={};function Rr(e="data-swal-template"){Or[e]=this,Fr||(document.body.addEventListener("click",Tr),Fr=!0)}const Tr=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Or){const n=t.getAttribute&&t.getAttribute(e);if(n)return void Or[e].fire({template:n})}};class Ur{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){const n=(...r)=>{this.removeListener(e,n),t.apply(this,r)};this.on(e,n)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ur;const Br=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Dr=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},Ir=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Nr=Object.freeze({__proto__:null,argsToParams:wr,bindClickHandler:Rr,clickCancel:Ot,clickConfirm:At,clickDeny:Ft,enableLoading:fn,fire:kr,getActions:M,getCancelButton:I,getCloseButton:H,getConfirmButton:D,getContainer:P,getDenyButton:N,getFocusableElements:W,getFooter:z,getHtmlContainer:R,getIcon:A,getIconContent:F,getImage:T,getInputLabel:j,getLoader:L,getPopup:x,getProgressSteps:U,getTimerLeft:Cr,getTimerProgressBar:q,getTitle:O,getValidationMessage:B,increaseTimer:xr,isDeprecatedParameter:Qn,isLoading:X,isTimerRunning:Ar,isUpdatableParameter:Zn,isValidParameter:Jn,isVisible:xt,mixin:Sr,off:Ir,on:Br,once:Dr,resumeTimer:Er,showLoading:fn,stopTimer:Pr,toggleTimer:_r});class jr{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Lr=["swal-title","swal-html","swal-footer"],Mr=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Xr(n),Object.assign(zr(n),qr(n),Hr(n),Vr(n),Wr(n),$r(n),Gr(n,Lr))},zr=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Yr(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(n in Gn&&"boolean"==typeof Gn[n]?t[n]="false"!==r:n in Gn&&"object"==typeof Gn[n]?t[n]=JSON.parse(r):t[n]=r)}),t},qr=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())}),t},Hr=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Yr(e,["type","color","aria-label"]);const n=e.getAttribute("type");if(!n||!["confirm","cancel","deny"].includes(n))return;t[`${n}ButtonText`]=e.innerHTML,t[`show${h(n)}Button`]=!0;const r=e.getAttribute("color");null!==r&&(t[`${n}ButtonColor`]=r);const o=e.getAttribute("aria-label");null!==o&&(t[`${n}ButtonAriaLabel`]=o)}),t},Vr=e=>{const t={},n=e.querySelector("swal-image");if(n){Yr(n,["src","width","height","alt"]);const e=n.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const r=n.getAttribute("width");null!==r&&(t.imageWidth=r||void 0);const o=n.getAttribute("height");null!==o&&(t.imageHeight=o||void 0);const i=n.getAttribute("alt");null!==i&&(t.imageAlt=i||void 0)}return t},Wr=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Yr(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},$r=e=>{const t={},n=e.querySelector("swal-input");n&&(Yr(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={}
2,r.forEach(e=>{Yr(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r})),t},Gr=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&(Yr(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Xr=e=>{const t=Lr.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const n=e.tagName.toLowerCase();t.includes(n)||f(`Unrecognized element <${n}>`)})},Yr=(e,t)=>{Array.from(e.attributes).forEach(n=>{-1===t.indexOf(n.name)&&f([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])})},Kr=10,Jr=e=>{var t,n;const r=P(),o=x();if(!r||!o)return;"function"==typeof e.willOpen&&e.willOpen(o),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",o);const i=window.getComputedStyle(document.body).overflowY;if(to(r,o,e),setTimeout(()=>{Qr(r,o)},Kr),$()&&(eo(r,void 0!==e.scrollbarPadding&&e.scrollbarPadding,i),Ht()),$t&&!1===e.backdrop&&o.scrollHeight>r.clientHeight&&(r.style.pointerEvents="auto"),G()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(o))}null===(n=s.eventEmitter)||void 0===n||n.emit("didOpen",o)},Zr=e=>{const t=x();if(!t||e.target!==t)return;const n=P();n&&(t.removeEventListener("animationend",Zr),t.removeEventListener("transitionend",Zr),n.style.overflowY="auto",re(n,c["no-transition"]))},Qr=(e,t)=>{me(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Zr),t.addEventListener("transitionend",Zr)):e.style.overflowY="auto"},eo=(e,t,n)=>{Gt(),t&&"hidden"!==n&&tn(n),setTimeout(()=>{e.scrollTop=0})},to=(e,t,n)=>{var r;null!==(r=n.showClass)&&void 0!==r&&r.backdrop&&ne(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),se(t,"grid"),setTimeout(()=>{var e;null!==(e=n.showClass)&&void 0!==e&&e.popup&&ne(t,n.showClass.popup),t.style.removeProperty("opacity")},Kr)):se(t,"grid"),ne([document.documentElement,document.body],c.shown),n.heightAuto&&n.backdrop&&!n.toast&&ne([document.documentElement,document.body],c["height-auto"])};var no={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function ro(e){e.inputValidator||("email"===e.input&&(e.inputValidator=no.email),"url"===e.input&&(e.inputValidator=no.url))}function oo(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(f('Target parameter is not valid, defaulting to "body"'),e.target="body")}function io(e){ro(e),e.showLoaderOnConfirm&&!e.preConfirm&&f("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),oo(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),_e(e)}let so;var ao=new WeakMap;class lo{constructor(...e){if(r(this,ao,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"==typeof window)return;so=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,o(ao,this,this._main(so.params))}_main(e,t={}){if(rr(Object.assign({},t,e)),s.currentInstance){const e=qt.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),$()&&Vt()}s.currentInstance=so;const n=co(e,t);io(n),Object.freeze(n),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const r=po(so);return _t(so,n),Me.innerParams.set(so,n),uo(so,r,n)}then(e){return n(ao,this).then(e)}finally(e){return n(ao,this).finally(e)}}const uo=(e,t,n)=>new Promise((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};qt.swalPromiseResolve.set(e,r),qt.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{xn(e)},t.denyButton.onclick=()=>{An(e)},t.cancelButton.onclick=()=>{Fn(e,i)},t.closeButton.onclick=()=>{i(Rt.close)},pr(n,t,i),Ut(s,n,i),gn(e,n),Jr(n),ho(s,n,i),fo(t,n),setTimeout(()=>{t.container.scrollTop=0})}
vendor: 4,286 bytes, line 2
2),co=(e,t)=>{const n=Mr(e),r=Object.assign({},Gn,t,n,e);return r.showClass=Object.assign({},Gn.showClass,r.showClass),r.hideClass=Object.assign({},Gn.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},po=e=>{const t={popup:x(),container:P(),actions:M(),confirmButton:D(),denyButton:N(),cancelButton:I(),loader:L(),closeButton:H(),validationMessage:B(),progressSteps:U()};return Me.domCache.set(e,t),t},ho=(e,t,n)=>{const r=q();ae(r),t.timer&&(e.timeout=new jr(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&r&&(se(r),Z(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ge(t.timer)})))},fo=(e,t)=>{if(!t.toast)return b(t.allowEnterKey)?void(mo(e)||go(e,t)||Bt(-1,1)):(y("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},mo=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&pe(e))return e.focus(),!0;return!1},go=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton)||(e.confirmButton.focus(),0));lo.prototype.disableButtons=qn,lo.prototype.enableButtons=zn,lo.prototype.getInput=jn,lo.prototype.disableInput=Vn,lo.prototype.enableInput=Hn,lo.prototype.hideLoading=In,lo.prototype.disableLoading=In,lo.prototype.showValidationMessage=Wn,lo.prototype.resetValidationMessage=$n,lo.prototype.close=sn,lo.prototype.closePopup=sn,lo.prototype.closeModal=sn,lo.prototype.closeToast=sn,lo.prototype.rejectPromise=ln,lo.prototype.update=or,lo.prototype._destroy=sr,Object.assign(lo,Nr),Object.keys(cr).forEach(e=>{lo[e]=function(...t){if(so&&so[e])return so[e](...t)}}),lo.DismissReason=Rt,lo.version="11.26.24";const vo=lo;return vo.default=vo,vo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;
2--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto
vendor: 7,628 bytes, line 2
2}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);
vendor: 5,100 bytes, line 2
2box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;
vendor: 8,089 bytes, line 2
2box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:a
2uto
vendor: 5,390 bytes, line 2
2}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')
2},78104:function(e){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},24817:function(e,t,n){"use strict";n.r(t),n.d(t,{DetailedError:function(){return m},HttpStack:function(){return q},Upload:function(){return ue},canStoreURLs:function(){return N},defaultOptions:function(){return le},enableDebugLog:function(){return v},isSupported:function(){return he}});var r=n(8127),o=n(61160),i=n.n(o);function s(e){return s="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},s(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){var t=p();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)},u(e)}function c(e,t,n){return c=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&d(o,n.prototype),o},c.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=l(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).originalRequest=r,t.originalResponse=s,t.causingError=n,null!=n&&(e+=", caused by ".concat(n.toString())),null!=r){var a=r.getHeader("X-Request-ID")||"n/a",l=r.getMethod(),u=r.getURL(),c=s?s.getStatus():"n/a",p=s?s.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(u,", response code: ").concat(c,", response text: ").concat(p,", request id: ").concat(a,")")}return t.message=e,t}return t=i,n&&a(t.prototype,n),r&&a(t,r),t}(u(Error)),m=f,g=!1;function v(){g=!0}function y(e){g&&console.log(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?b(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},P=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,this.options.chunkSize=+this.options.chunkSize,this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,n,r;return t=e,n=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then(function(t){return e._urlStorage.findUploadsByFingerprint(t)})}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl){var n=this.options.retryDelays;null==n||"[object Array]"===Object.prototype.toString.call(n)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach(function(t){e.options[t]&&e._emitError(new Error("tus: cannot use the ".concat(t," option when parallelUploads is enabled")))}),this.options.fingerprint(t,this.options).then(function(n){return y(null==n?"No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.":"Calculated fingerprint: ".concat(n)),e._fingerprint=n,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)}).then(function(t){e._source=t,e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()}).catch(function(t){e._emitError(t)})):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t=this,n=this._size=this._source.size,r=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,i=function(e,t,n){for(var r=Math.floor(e/t),o=[],i=0;i<t;i++)o.push({start:r*i,end:r*(i+1)});return o[t-1].end=e,n&&o.forEach(function(e,t){e.uploadUrl=n[t]||null}),o}(this._source.size,o,this._parallelUploadUrls);this._parallelUploadUrls=new Array(i.length);var s,a=i.map(function(o,s){var a=0;return t._source.slice(o.start,o.end).then(function(l){var u=l.value;return new Promise(function(l,c){var p=w(w({},t.options),{},{uploadUrl:o.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:w(w({},t.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:c,onProgress:function(e){r=r-a+e,a=e,t._emitProgress(r,n)},_onUploadUrlAvailable:function(){t._parallelUploadUrls[s]=d.url,t._parallelUploadUrls.filter(function(e){return!!e}).length===i.length&&t._saveUploadInUrlStorage()}}),d=new e(u,p);d.start(),t._parallelUploads.push(d)})})});Promise.all(a).then(function(){(s=t._openRequest("POST",t.options.endpoint)).setHeader("Upload-Concat","final;".concat(t._parallelUploadUrls.join(" ")));var e=E(t.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),t._sendRequest(s,null)}).then(function(e){if(_(e.getStatus(),200)){var n=e.getHeader("Location");null!=n?(t.url=O(t.options.endpoint,n),y("Created upload at ".concat(t.url)),t._emitSuccess()):t._emitHttpError(s,e,"tus: invali
2d or missing Location header")}else t._emitHttpError(s,e,"tus: unexpected response while creating upload")}).catch(function(e){t._emitError(e)})}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return this._aborted=!1,null!=this.url?(y("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?(y("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):(y("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var n=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach(function(e){e.abort(t)}),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new m(n,r,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),F(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){t.start()},n))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var n,r=E(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then(function(n){if(_(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=O(e.options.endpoint,r),y("Created upload at ".concat(e.url)),"function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage(),e.options.uploadDataDuringCreation?e._handleUploadResponse(t,n):(e._offset=0,e._performUpload())}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")}).catch(function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then(function(n){var r=n.getStatus();if(!_(r,200))return _(r,400)&&e._removeFromUrlStorage(),423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var o=parseInt(n.getHeader("Upload-Offset"),10);
2if(isNaN(o))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var i=parseInt(n.getHeader("Upload-Length"),10);if(!isNaN(i)||e.options.uploadLengthDeferred){if("function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}else e._emitHttpError(t,n,"tus: invalid or missing length value")}}).catch(function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)})}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then(function(n){_(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")}).catch(function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)}))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler(function(e){t._emitProgress(n+e,t._size)}),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then(function(n){var r=n.value,o=n.done;return t.options.uploadLengthDeferred&&o&&(t._size=t._offset+(r&&r.size?r.size:0),e.setHeader("Upload-Length",t._size)),null===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))})}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=x(e,t,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(t){e._emitError(t)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then(function(t){return e._urlStorageKey=t}).catch(function(t){e._emitError(t)})}}},{key:"_sendRequest",value:function(e){return A(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t,n){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===n&&(n={});var r=x("DELETE",t,n);return A(r,null,n).then(function(e){if(204!==e.getStatus())throw new m("tus: unexpected response while terminating upload",null,r,e)}).catch(function(o){if(o instanceof m||(o=new m("tus: failed to terminate upload",o,r,null)),!F(o,0,n))throw o;var i=n.retryDelays[0],s=n.retryDelays.slice(1),a=w(w({},n),{},{retryDelays:s});return new Promise(function(e){return setTimeout(e,i)}).then(function(){return e.terminate(t,a)})})}}],n&&S(t.prototype,n),r&&S(t,r),e}();function E(e){var t=[];for(var n in e)t.push("".concat(n," ").concat(r.Base64.encode(e[n])));return t.join(",")}function _(e,t){return e>=t&&e<t+100}function x(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var o=n.headers||{};for(var i in o)r.setHeader(i,o[i]);if(n.addRequestId){var s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)});r.setHeader("X-Request-ID",s)}return r}function A(e,t,n){return("function"==typeof n.onBeforeRequest?Promise.resolve(n.onBeforeRequest(e)):Promise.resolve()).then(function(){return e.send(t).then(function(t){return("function"==typeof n.onAfterResponse?Promise.resolve(n.onAfterResponse(e,t)):Promise.resolve()).then(function(){return t})})})}function F(e,t,n){if(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)return!1;if(n&&"function"==typeof n.onShouldRetry)return n.onShouldRetry(e,t,n);var r,o=e.originalResponse?e.originalResponse.getStatus():0;return(!_(o,400)||409===o||423===o)&&(r=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(r=!1),r)}function O(e,t){return new(i())(t,e).toString()}P.defaultOptions=C;var R=P;function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var U=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&T(t.prototype,n),r&&T(t,r),e}();function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var D=!1;try{D="localStorage"in window;var I="tusSupport";localStorage.setItem(I,localStorage.getItem(I))}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;D=!1}var N=D,j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var o=JSON.parse(localStorage.getItem(r));o.urlStorageKey=r,t.push(o)}catch(e){}}return t}}],n&&B(t.prototype,n),r&&B(t,r),e}();function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}var q=function(){function e(){L(this,e)}return z(e,[{key:"createRequest",value:function(e,t){return new H(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),H=function(){function e(t,n){L(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return z(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(n,r){e._xhr.onload=function(){n(new V(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),V=function(){function e(t){L(this,e),this._xhr=t}return z(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),W=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};var $=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,n,r;return t=e,(n=[{key:"slice",value:function(e,t){if($())return n=this._file.slice(e,t),new Promise(function(e,t){var r=new FileReader;r.onload=function(){var t=new Uint8Array(r.result);e({value:t})},r.onerror=function(e){t(e)},r.readAsArrayBuffer(n)});var n,r=this._file.slice(e,t);return Promise.resolve({value:r})}},{key:"close",value:function(){}}])&&G(t.prototype,n),r&&G(t,r),e}();function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var J=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._chunkSize=n,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,n,r;return t=e,(n=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var n=this,r=t
2<=this._bufferOffset+K(this._buffer);if(this._done||r){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then(function(r){var o=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=o:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,o),n._readUntilEnoughDataOrDone(e,t)})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===K(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])&&Y(t.prototype,n),r&&Y(t,r),e}();function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"openFile",value:function(e,t){return W()&&e&&void 0!==e.uri?(n=e.uri,new Promise(function(e,t){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var t=r.response;e(t)},r.onerror=function(e){t(e)},r.open("GET",n),r.send()})).then(function(e){return new X(e)}).catch(function(e){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e))}):"function"==typeof e.slice&&void 0!==e.size?Promise.resolve(new X(e)):"function"==typeof e.read?(t=+t,isFinite(t)?Promise.resolve(new J(e,t)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"));var n}}])&&Z(t.prototype,n),r&&Z(t,r),e}();function ee(e){return ee="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},ee(e)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ne(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach(function(t){ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=se(se({},R.defaultOptions),{},{httpStack:new q,fileReader:new Q,urlStorage:N?new j:new U,fingerprint:function(e,t){return W()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}(i,e);var t,n,r,o=re(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=se(se({},le),t),o.call(this,e,t)}return t=i,r=[{key:"terminate",value:function(e,t,n){return t=se(se({},le),t),R.terminate(e,t,n)}}],(n=null)&&te(t.prototype,n),r&&te(t,r),i}(R),ce=window,pe=ce.XMLHttpRequest,de=ce.Blob,he=pe&&de&&"function"==typeof de.prototype.slice},61160:function(e,t,n){"use strict";var r=n(92063),o=n(73992),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function p(e){return(e||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function f(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===i)for(t in o=new v(e,{}),h)delete o[t];else if("object"===i){for(t in e)t in h||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=p(e)).replace(s,""),t=t||{};var n,r=u.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],l=0;return i?a?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):a?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===o?l>=2&&(n=n.slice(2)):m(o)?n=r[4]:o?i&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||m(o),slashesCount:l,rest:n}}function v(e,t,n){if(e=(e=p(e)).replace(s,""),!(this instanceof v))return new v(e,t,n);var i,a,l,u,h,y,b=d.slice(),w=typeof t,k=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(a=g(e||"",t=f(t))).protocol&&!a.slashes,k.slashes=a.slashes||i&&t.slashes,k.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||c.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(k.protocol)))&&(b[3]=[/(.*)/,"pathname"]);S<b.length;
vendor: 4,463 bytes, line 2
2S++)"function"!=typeof(u=b[S])?(l=u[0],y=u[1],l!=l?k[y]=e:"string"==typeof l?~(h="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof u[2]?(k[y]=e.slice(0,h),e=e.slice(h+u[2])):(k[y]=e.slice(h),e=e.slice(0,h))):(h=l.exec(e))&&(k[y]=h[1],e=e.slice(0,h.index)),k[y]=k[y]||i&&u[3]&&t[y]||"",u[4]&&(k[y]=k[y].toLowerCase())):e=u(e,k);n&&(k.query=n(k.query)),i&&t.slashes&&"/"!==k.pathname.charAt(0)&&(""!==k.pathname||""!==t.pathname)&&(k.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(i=!0),n.splice(r,1),s--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(k.pathname,t.pathname)),"/"!==k.pathname.charAt(0)&&m(k.protocol)&&(k.pathname="/"+k.pathname),r(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(h=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,h),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(h+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin="file:"!==k.protocol&&m(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}v.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,l.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";i[e]=t.charAt(0)!==s?s+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(i.username=t.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var u=0;u<d.length;u++){var c=d[u];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&m(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var s=i+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(s+=n.username,n.password&&(s+=":"+n.password),s+="@"):n.password?(s+=":"+n.password,s+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(s+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),s+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(s+=n.hash),s}},v.extractProtocol=g,v.location=f,v.trimLeft=p,v.qs=o,e.exports=v},5218:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var r=n(29726),o=n(98599),i=n(92855),s=n(74894),a=n(44525),l=n(92416),u=(0,n(5615).nY)("modal",function(){var e=(0,r.ref)("component"),t=(0,r.ref)(!1),n=(0,r.ref)(!1),o=(0,r.ref)({});return{type:e,isOpen:t,resize:n,config:o,open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o.value=e||o.value,t.value=!0},close:function(){t.value=!1}}}),c=n(72505);function p(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,u=Object.create(l.prototype);return d(u,"_invoke",function(n,r,o){var i,a,l,u=0,c=o||[],p=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,l=e,d.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!p&&u&&!o&&t<c.length;t++){var o,i=c[t],h=d.p,f=i[2];n>3?(o=f===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(a=0,d.v=r,d.n=i[1]):h<f&&(o=n<3||i[0]>r||r>f)&&(i[4]=n,i[5]=r,d.n=f,a=0))}if(o||n>1)return s;throw p=!0,r}return function(o,c,f){if(u>1)throw TypeError("Generator is already running");for(p&&1===c&&h(c,f),a=c,l=f;(t=a<2?e:l)||!p;){i||(a?a<3?(a>1&&(d.n=-1),h(a,l)):d.n=l:d.v=l);try{if(u=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(p=d.n<0)?l:n.call(r,d))!==s)break}catch(t){i=e,a=1,l=t}finally{u=1}}return{value:t,done:p}}}(n,o,i),!0),u}var s={};function a(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(d(t={},r,function(){return this}),t),h=u.prototype=a.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,d(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=u,d(h,"constructor",u),d(u,"constructor",l),l.displayName="GeneratorFunction",d(u,o,"GeneratorFunction"),d(h),d(h,o,"Generator"),d(h,r,function(){return this}),d(h,"toString",function(){return"[object Generator]"}),(p=function(){return{w:i,m:f}})()}function d(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,n,r){function i(t,n){d(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},d(e,t,n,r)}function h(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){h(i,r,o,s,a,"next",e)}function a(e){h(i,r,o,s,a,"throw",e)}s(void 0)})}}var m=["data-name"],g=["data-tooltip"],v={key:0,class:"loader border-radius-small"},y=["href"],b={key:2,class:"FileUploader-file-icon-add border-radius-small"},w={class:"FileUploader-file-name"},k={key:0,class:"FileUploader-file-options"},S=["data-tooltip"],C={class:"FileUploader__preview-wrapper"},P={class:"FileUploader__preview"},E=["src"],_=["src"],x={key:2,class:"filename"},A={key:1,class:"text"}
2,F={key:2,class:"loader"},O={class:"text"},R=["href"],T={key:2,class:"Note Note--error"},U=["name","value"],B={__name:"SingleUploader",props:["format","type","originalAsset","cropData","metadata","originalError","input","accept","maxUploadSize","download","inputAttributes","translations","routes"],setup:function(e){var t=this,n=1,d=e,h=(0,s.m)(d.translations).trans,B=(0,a.l)(d.routes).route,D=(0,l.S)().confirm,I=u(),N=(0,r.ref)(null),j=(0,r.ref)(null),L=(0,r.ref)(null),M=(0,r.ref)(null),z=(0,r.ref)(null),q=(0,r.ref)(0),H=(0,r.ref)(!1),V=(0,r.ref)(""),W=((0,r.ref)(null),(0,r.ref)(null)),G=(0,r.ref)(null),X=(0,r.computed)(function(){return z.value?d.download?B("files.download",{asset:z.value.id,filename:z.value.filename,configuration:d.download,force:!0}):B("files.download",{asset:z.value.id,filename:z.value.filename,force:!0}):""});function Y(){D(h("cms-media::file.button.delete_confirm",{name:z.value.filename})).then(function(){K()})}function K(){z.value=null}function J(){z.value||$(j.value).find("button").click()}function Z(){I.open({component:Cropper,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"100%",translations:d.translations,props:{mediaUrl:B("dragonfly-api.media.show",{asset:z.value.id}),original:z.value.url,ratio:d.cropData.ratio,minSize:d.cropData.minSize,format:d.format,cropData:z.value.metadata,onSave:function(e){z.value=e.data.asset}}})}function Q(e){return new Promise(function(t){if("file"==d.type)return t();var n=new Image;n.onload=function(){t()},n.src="svg"==d.type?e.url:e.sizes.cms.url})}function ee(e){if(!e)return K();H.value=!0,q.value=100,c.post(B("dragonfly-api.media.duplicate",{asset:e}),{metadata:d.metadata}).then(function(e){Q(e.data).then(function(){z.value=e.data,H.value=!1})})}return(0,r.onMounted)(f(p().m(function e(){return p().w(function(e){for(;;)switch(e.n){case 0:return G.value="single-".concat(n++),W.value=$(N.value).closest("form")[0],z.value=d.originalAsset,V.value=d.originalError,N.value.__vue__={setValue:ee},e.n=1,(0,r.nextTick)();case 1:$(N.value).requiredRules(),M.value=new o.A(d.format,d.metadata,d.accept,d.maxUploadSize).withButton(j.value,h("cms-media::file.dropzone.button"),"btn btn--ghost border").withDragAndDrop(L.value),M.value.on("file-added",function(){V.value="",q.value=0,H.value=!0}),M.value.on("upload-error",function(){H.value=!1,M.value.uppy.reset()}),M.value.on("progress",function(e){q.value=e}),M.value.on("info-visible",function(){V.value=t.uploader.uppy.getState().info.message}),M.value.on("upload-success",function(){var e=f(p().m(function e(t,n){var r,o,i;return p().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=n.uploadURL,e.p=1,e.n=2,c.post(B("dragonfly-api.media.store",{key:r.split("/").reverse()[0]}));case 2:return o=e.v,e.n=3,Q(o.data.asset);case 3:z.value=o.data.asset,H.value=!1,e.n=5;break;case 4:e.p=4,i=e.v,V.value=i.response.data.error,H.value=!1;case 5:return e.a(2)}},e,null,[[1,4]])}));return function(t,n){return e.apply(this,arguments)}}());case 2:return e.a(2)}},e)}))),(0,r.watch)(H,f(p().m(function e(){return p().w(function(e){for(;;)switch(e.n){case 0:if(!W.value){e.n=2;break}return W.value.uploads=W.value.uploads||{},W.value.uploads[G]={processing:H.value?1:0,errors:""===V.value?0:1,element:N.value},e.n=1,(0,r.nextTick)();case 1:$(W.value).trigger("uploads-changed");case 2:return e.a(2)}},e)}))),function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)("FileUploader ".concat(V.value?"has-error":"")),"data-name":e.input,ref_key:"root",ref:N},[(0,r.renderSlot)(t.$slots,"label"),(0,r.renderSlot)(t.$slots,"info"),"file"==e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["FileUploader-file border border-radius-medium",{filled:z.value}]),ref_key:"dropzone",ref:L,onClick:J},[(0,r.createElementVNode)("div",{class:"FileUploader-file-icon border-radius-small","data-tooltip":z.value?(0,r.unref)(h)("cms-media::file.button.download"):null},[H.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createVNode)(i.A,{size:"30",value:q.value,width:"4"},null,8,["value"])])):z.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)("FileUploader-file-icon-extension FileUploader-file-icon-".concat((o=z.value.filename,o.lastIndexOf(".")<0?"":o.substr(o.lastIndexOf(".")+1))))},null,2),(0,r.createElementVNode)("a",{href:X.value,class:"FileUploader-file-icon-download",target:"_blank"},null,8,y)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",b))],8,g),(0,r.createElementVNode)("div",{class:"FileUploader-file-button",ref_key:"uploadButton",ref:j},null,512),(0,r.createElementVNode)("div",w,(0,r.toDisplayString)(z.value?z.value.filename:"".concat((0,r.unref)(h)("cms-media::file.dropzone.drop")," ").concat((0,r.unref)(h)("cms-media::file.dropzone.button"))),1),z.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.createElementVNode)("div",{"data-tooltip":(0,r.unref)(h)("cms-media::file.button.delete"),class:"btn btn--ghost border datagrid-button-icon link-color",onClick:(0,r.withModifiers)(Y,["prevent","stop"])},n[0]||(n[0]=[(0,r.createElementVNode)("i",{class:"fa fa-btn fa-tras
2h"},null,-1)]),8,S)])):(0,r.createCommentVNode)("",!0)],2)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("div",P,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)("preview ".concat(e.type)),role:"status"},[z.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},["image"==e.type?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:z.value.sizes.cms.url},null,8,E)):"svg"==e.type?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,src:z.value.url},null,8,_)):((0,r.openBlock)(),(0,r.createElementBlock)("div",x,(0,r.toDisplayString)(z.value.filename),1))],64)):(0,r.createCommentVNode)("",!0),z.value||H.value?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",A,(0,r.toDisplayString)((0,r.unref)(h)("cms-media::file.empty.".concat(e.type))),1)),H.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",F,[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(h)("front::form.single_uploader.processing"))+" ",1),(0,r.createVNode)(i.A,{size:"120",value:q.value,width:"8"},null,8,["value"])])):(0,r.createCommentVNode)("",!0)],2)]),(0,r.createElementVNode)("div",{class:"FileUploader__dropzone border",ref_key:"dropzone",ref:L},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)("icon ".concat(e.type))},null,2),(0,r.createElementVNode)("div",O,(0,r.toDisplayString)((0,r.unref)(h)("cms-media::file.dropzone.drop")),1),(0,r.createElementVNode)("div",{ref_key:"uploadButton",ref:j},null,512)],512)]),(0,r.createElementVNode)("div",{class:"FileUploader__buttons",style:(0,r.normalizeStyle)({visibility:z.value?"visible":"hidden"})},[(0,r.createElementVNode)("a",{class:"btn btn--ghost border datagrid-button-icon link-color",href:X.value},n[1]||(n[1]=[(0,r.createElementVNode)("i",{class:"fa fa-btn fa-download"},null,-1)]),8,R),e.cropData?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:"btn btn--ghost border datagrid-button-icon link-color",onClick:(0,r.withModifiers)(Z,["prevent"])},n[2]||(n[2]=[(0,r.createElementVNode)("i",{class:"fa fa-btn fa-crop"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",{class:"btn btn--ghost border datagrid-button-icon link-color",onClick:(0,r.withModifiers)(Y,["prevent"])},n[3]||(n[3]=[(0,r.createElementVNode)("i",{class:"fa fa-btn fa-trash"},null,-1)]))],4)],64)),V.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",T,(0,r.toDisplayString)(V.value),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("input",(0,r.mergeProps)(e.inputAttributes,{type:"hidden",name:e.input,value:z.value?z.value.id:"",ref:"input"}),null,16,U)],10,m);var o}}};var D=B},92855:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(29726),o=["viewBox"],i=["cx","cy","r","stroke-width","stroke-dasharray"],s=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"];var a={__name:"ProgressCircle",props:{size:{default:32},width:{default:4},value:{default:0}},setup:function(e){var t=e,n=(0,r.ref)(20),a=(0,r.ref)(100==t.value),l=(0,r.computed)(function(){return Number(t.size)}),u=(0,r.computed)(function(){return 2*Math.PI*n.value}),c=(0,r.computed)(function(){return{"ProgressCircle--indeterminate":a.value}}),p=(0,r.computed)(function(){return t.value<0?0:t.value>100?100:parseFloat(t.value)}),d=(0,r.computed)(function(){return Math.round(1e3*u.value)/1e3}),h=(0,r.computed)(function(){return(100-p.value)/100*u.value+"px"}),f=(0,r.computed)(function(){return Number(t.width)/+t.size*v.value*2}),m=(0,r.computed)(function(){return{height:"".concat(l.value,"px"),width:"".concat(l.value,"px")}}),g=(0,r.computed)(function(){return{transform:a.value?"":"rotate(-90deg)"}}),v=(0,r.computed)(function(){return n.value/(1-Number(t.width)/+t.size)});return(0,r.watch)(function(){return t.value},function(e){a.value=!1,100==e&&setTimeout(function(){a.value=!0},650)}),function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["ProgressCircle",c.value]),style:(0,r.normalizeStyle)(m.value)},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{style:(0,r.normalizeStyle)(g.value),xmlns:"http://www.w3.org/2000/svg",viewBox:"".concat(v.value," ").concat(v.value," ").concat(2*v.value," ").concat(2*v.value)},[a.value.value?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("circle",{key:0,class:"ProgressCircle__underlay",fill:"transparent",cx:2*v.value,cy:2*v.value,r:n.value,"stroke-width":f.value,"stroke-dasharray":d.value,"stroke-dashoffset":0},null,8,i)),(0,r.createElementVNode)("circle",{class:"ProgressCircle__overlay",fill:"transparent",cx:2*v.value,cy:2*v.value,r:n.value,"stroke-width":f.value,"stroke-dasharray":d.value,"stroke-dashoffset":h.value},null,8,s)],12,o))],6)}}}},42121:function(e){"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},o=0,i=0;function s(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function a(){var e=s(+new Date);return e!==t?(o=0,t=e):e+"."+s(o++)}for(;i<64;i++)r[n[i]]=i;a.encode=s,a.decode=function(e){var t=0;for(i=0;i<e.length;i++)t=64*t+r[e.charAt(i)];return t},e.exports=a},25660:function(){},46942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];
vendor: 2,501 bytes, line 2
2n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},64198:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.