Files
equalityrecord_frontend_client/dist/assets/@uppy/tus-4591c912.js
T

3 lines
66 KiB
JavaScript
Raw Normal View History

2025-04-04 07:29:59 +01:00
import{B as Mt,R as Gt,E as Kt,f as Xt,a as Zt,h as we,i as Wt,N as Yt}from"./aws-s3-98528360.js";import{g as Vt,d as ze}from"../vendor-8efd6c0a.js";const bt="3.7.7",Jt=bt,J=typeof Buffer=="function",He=typeof TextDecoder=="function"?new TextDecoder:void 0,Me=typeof TextEncoder=="function"?new TextEncoder:void 0,Qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",re=Array.prototype.slice.call(Qt),pe=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(re),er=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,R=String.fromCharCode.bind(String),Ge=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),_t=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),wt=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),St=e=>{let t,r,n,o,a="";const l=e.length%3;for(let f=0;f<e.length;){if((r=e.charCodeAt(f++))>255||(n=e.charCodeAt(f++))>255||(o=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,a+=re[t>>18&63]+re[t>>12&63]+re[t>>6&63]+re[t&63]}return l?a.slice(0,l-3)+"===".substring(l):a},qe=typeof btoa=="function"?e=>btoa(e):J?e=>Buffer.from(e,"binary").toString("base64"):St,Pe=J?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,o=e.length;n<o;n+=4096)r.push(R.apply(null,e.subarray(n,n+4096)));return qe(r.join(""))},de=(e,t=!1)=>t?_t(Pe(e)):Pe(e),tr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?R(192|t>>>6)+R(128|t&63):R(224|t>>>12&15)+R(128|t>>>6&63)+R(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return R(240|t>>>18&7)+R(128|t>>>12&63)+R(128|t>>>6&63)+R(128|t&63)}},rr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ut=e=>e.replace(rr,tr),Ke=J?e=>Buffer.from(e,"utf8").toString("base64"):Me?e=>Pe(Me.encode(e)):e=>qe(Ut(e)),W=(e,t=!1)=>t?_t(Ke(e)):Ke(e),Xe=e=>W(e,!0),nr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,or=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),r=t-65536;return R((r>>>10)+55296)+R((r&1023)+56320);case 3:return R((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return R((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Pt=e=>e.replace(nr,or),xt=e=>{if(e=e.replace(/\s+/g,""),!er.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,o;for(let a=0;a<e.length;)t=pe[e.charAt(a++)]<<18|pe[e.charAt(a++)]<<12|(n=pe[e.charAt(a++)])<<6|(o=pe[e.charAt(a++)]),r+=n===64?R(t>>16&255):o===64?R(t>>16&255,t>>8&255):R(t>>16&255,t>>8&255,t&255);return r},$e=typeof atob=="function"?e=>atob(wt(e)):J?e=>Buffer.from(e,"base64").toString("binary"):xt,Et=J?e=>Ge(Buffer.from(e,"base64")):e=>Ge($e(e).split("").map(t=>t.charCodeAt(0))),Ot=e=>Et(Rt(e)),ir=J?e=>Buffer.from(e,"base64").toString("utf8"):He?e=>He.decode(Et(e)):e=>Pt($e(e)),Rt=e=>wt(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),xe=e=>ir(Rt(e)),ar=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},kt=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),jt=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,kt(r));e("fromBase64",function(){return xe(this)}),e("toBase64",function(t){return W(this,t)}),e("toBase64URI",function(){return W(this,!0)}),e("toBase64URL",function(){return W(this,!0)}),e("toUint8Array",function(){return Ot(this)})},Lt=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,kt(r));e("toBase64",function(t){return de(this,t)}),e("toBase64URI",function(){return de(this,!0)}),e("toBase64URL",function(){return de(this,!0)})},ur=()=>{jt(),Lt()},sr={version:bt,VERSION:Jt,atob:$e,atobPolyfill:xt,btoa:qe,btoaPolyfill:St,fromBase64:xe,toBase64:W,encode:W,encodeURI:Xe,encodeURL:Xe,utob:Ut,btou:Pt,decode:xe,isValid:ar,fromUint8Array:de,toUint8Array:Ot,extendString:jt,extendUint8Array:Lt,extendBuiltins:ur};var lr=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tr(e,t){if(e){if(typeof e=="string")return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}}function Qe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qr(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,l,f=[],h=!0,m=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;h=!1}else for(;!(h=(n=a.call(r)).done)&&(f.push(n.value),f.length!==t);h=!0);}catch(w){m=!0,o=w}finally{try{if(!h&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(m)throw o}}return f}}function $r(e){if(Array.isArray(e))return e}function M(e){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(e)}function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?et(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dr(e,t,r){return t=Bt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bt(n.key),n)}}function Nr(e,t,r){return t&&tt(e.prototype,t),r&&tt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bt(e){var t=Ir(e,"string");return M(t)==="symbol"?t:String(t)}function Ir(e,t){if(M(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(M(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zr={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:Nt,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},me=function(){function e(t,r){Br(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(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}return Nr(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=th