@fileflow/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ImportWizard-BkHlsJ8v.mjs +2843 -0
- package/dist/ImportWizard-BkHlsJ8v.mjs.map +1 -0
- package/dist/ImportWizard-mc9UDwP3.js +68 -0
- package/dist/ImportWizard-mc9UDwP3.js.map +1 -0
- package/dist/KYCWizard-CRBXY9Np.js +32 -0
- package/dist/KYCWizard-CRBXY9Np.js.map +1 -0
- package/dist/KYCWizard-D3Leb4rK.mjs +4575 -0
- package/dist/KYCWizard-D3Leb4rK.mjs.map +1 -0
- package/dist/import.d.ts +104 -0
- package/dist/import.js +2 -0
- package/dist/import.js.map +1 -0
- package/dist/import.mjs +10 -0
- package/dist/import.mjs.map +1 -0
- package/dist/index-BdodGzlO.js +112 -0
- package/dist/index-BdodGzlO.js.map +1 -0
- package/dist/index-CML_nPxo.mjs +5101 -0
- package/dist/index-CML_nPxo.mjs.map +1 -0
- package/dist/index.d.ts +318 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -0
- package/dist/kyc.d.ts +83 -0
- package/dist/kyc.js +2 -0
- package/dist/kyc.js.map +1 -0
- package/dist/kyc.mjs +8 -0
- package/dist/kyc.mjs.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +73 -0
package/dist/import.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ColumnMapping } from '@fileflow/shared';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { ImportResult } from '@fileflow/shared';
|
|
4
|
+
import { ImportSchema } from '@fileflow/shared';
|
|
5
|
+
import { ParsedRow } from '@fileflow/shared';
|
|
6
|
+
import { StoreApi } from 'zustand';
|
|
7
|
+
import { UseBoundStore } from 'zustand';
|
|
8
|
+
import { ValidationError } from '@fileflow/shared';
|
|
9
|
+
import { ValidationResults } from '@fileflow/shared';
|
|
10
|
+
|
|
11
|
+
export declare const ColumnMapper: default_2.FC<ColumnMapperProps>;
|
|
12
|
+
|
|
13
|
+
declare interface ColumnMapperProps {
|
|
14
|
+
onMappingChange?: (sourceColumn: string, targetKey: string | null) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare const DataTable: default_2.FC<DataTableProps>;
|
|
18
|
+
|
|
19
|
+
declare interface DataTableProps {
|
|
20
|
+
editable?: boolean;
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
onCellEdit?: (rowIndex: number, columnKey: string, value: string) => void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const FileUploader: default_2.FC<FileUploaderProps>;
|
|
26
|
+
|
|
27
|
+
declare interface FileUploaderProps {
|
|
28
|
+
onFileSelect?: (file: File) => void;
|
|
29
|
+
maxSize?: number;
|
|
30
|
+
acceptedTypes?: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare interface ImportActions {
|
|
34
|
+
setSchema: (schema: ImportSchema) => void;
|
|
35
|
+
setSessionId: (sessionId: string) => void;
|
|
36
|
+
setFile: (file: File) => void;
|
|
37
|
+
setParsedData: (data: {
|
|
38
|
+
headers: string[];
|
|
39
|
+
rows: ParsedRow[];
|
|
40
|
+
totalRows: number;
|
|
41
|
+
sampleRows: ParsedRow[];
|
|
42
|
+
}) => void;
|
|
43
|
+
setMappings: (mappings: ColumnMapping[]) => void;
|
|
44
|
+
updateMapping: (sourceColumn: string, targetKey: string | null) => void;
|
|
45
|
+
setUnmapped: (source: string[], target: string[]) => void;
|
|
46
|
+
setValidationResults: (results: ValidationResults) => void;
|
|
47
|
+
setStep: (step: ImportStep) => void;
|
|
48
|
+
nextStep: () => void;
|
|
49
|
+
previousStep: () => void;
|
|
50
|
+
startEditing: (rowIndex: number, columnKey: string) => void;
|
|
51
|
+
stopEditing: () => void;
|
|
52
|
+
updateCell: (rowIndex: number, columnKey: string, value: unknown) => void;
|
|
53
|
+
setStatus: (status: string) => void;
|
|
54
|
+
setLoading: (loading: boolean) => void;
|
|
55
|
+
setError: (error: string | null) => void;
|
|
56
|
+
reset: () => void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare interface ImportState {
|
|
60
|
+
sessionId: string | null;
|
|
61
|
+
status: string;
|
|
62
|
+
step: ImportStep;
|
|
63
|
+
schema: ImportSchema | null;
|
|
64
|
+
file: File | null;
|
|
65
|
+
fileName: string | null;
|
|
66
|
+
fileSize: number | null;
|
|
67
|
+
headers: string[];
|
|
68
|
+
rows: ParsedRow[];
|
|
69
|
+
totalRows: number;
|
|
70
|
+
sampleRows: ParsedRow[];
|
|
71
|
+
mappings: ColumnMapping[];
|
|
72
|
+
unmappedSource: string[];
|
|
73
|
+
unmappedTarget: string[];
|
|
74
|
+
validationResults: ValidationResults | null;
|
|
75
|
+
errorsByRow: Map<number, ValidationError[]>;
|
|
76
|
+
isLoading: boolean;
|
|
77
|
+
error: string | null;
|
|
78
|
+
editingCell: {
|
|
79
|
+
rowIndex: number;
|
|
80
|
+
columnKey: string;
|
|
81
|
+
} | null;
|
|
82
|
+
editedRows: Set<number>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare type ImportStep = 'upload' | 'mapping' | 'validation' | 'review' | 'complete';
|
|
86
|
+
|
|
87
|
+
export declare const ImportWizard: default_2.FC<ImportWizardProps>;
|
|
88
|
+
|
|
89
|
+
declare interface ImportWizardProps {
|
|
90
|
+
schema: ImportSchema;
|
|
91
|
+
onComplete?: (result: ImportResult) => void;
|
|
92
|
+
onCancel?: () => void;
|
|
93
|
+
onError?: (error: Error) => void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare const useImportStore: UseBoundStore<StoreApi<ImportState & ImportActions>>;
|
|
97
|
+
|
|
98
|
+
export declare const ValidationSummary: default_2.FC<ValidationSummaryProps>;
|
|
99
|
+
|
|
100
|
+
declare interface ValidationSummaryProps {
|
|
101
|
+
showDetails?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { }
|
package/dist/import.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ImportWizard-mc9UDwP3.js");exports.ColumnMapper=r.ColumnMapper;exports.DataTable=r.DataTable;exports.FileUploader=r.FileUploader;exports.ImportWizard=r.ImportWizard;exports.ValidationSummary=r.ValidationSummary;exports.useImportStore=r.useImportStore;
|
|
2
|
+
//# sourceMappingURL=import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/import.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { C as o, D as e, F as s, I as m, V as p, u as t } from "./ImportWizard-BkHlsJ8v.mjs";
|
|
2
|
+
export {
|
|
3
|
+
o as ColumnMapper,
|
|
4
|
+
e as DataTable,
|
|
5
|
+
s as FileUploader,
|
|
6
|
+
m as ImportWizard,
|
|
7
|
+
p as ValidationSummary,
|
|
8
|
+
t as useImportStore
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=import.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";const L=require("react");function Fn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ti}=Object.prototype,{getPrototypeOf:Lt}=Object,{iterator:Xe,toStringTag:zn}=Symbol,Ze=(e=>t=>{const n=Ti.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ue=e=>(e=e.toLowerCase(),t=>Ze(t)===e),Qe=e=>t=>typeof t===e,{isArray:_e}=Array,Oe=Qe("undefined");function De(e){return e!==null&&!Oe(e)&&e.constructor!==null&&!Oe(e.constructor)&&ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ln=ue("ArrayBuffer");function Ri(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ln(e.buffer),t}const Ai=Qe("string"),ae=Qe("function"),In=Qe("number"),Pe=e=>e!==null&&typeof e=="object",ji=e=>e===!0||e===!1,Be=e=>{if(Ze(e)!=="object")return!1;const t=Lt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(zn in e)&&!(Xe in e)},Ci=e=>{if(!Pe(e)||De(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Di=ue("Date"),Pi=ue("File"),Fi=ue("Blob"),zi=ue("FileList"),Li=e=>Pe(e)&&ae(e.pipe),Ii=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ae(e.append)&&((t=Ze(e))==="formdata"||t==="object"&&ae(e.toString)&&e.toString()==="[object FormData]"))},qi=ue("URLSearchParams"),[Mi,Ni,$i,Ui]=["ReadableStream","Request","Response","Headers"].map(ue),Bi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fe(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,a;if(typeof e!="object"&&(e=[e]),_e(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{if(De(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function qn(e,t){if(De(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,a;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mn=e=>!Oe(e)&&e!==ge;function kt(){const{caseless:e,skipUndefined:t}=Mn(this)&&this||{},n={},i=(a,r)=>{const o=e&&qn(n,r)||r;Be(n[o])&&Be(a)?n[o]=kt(n[o],a):Be(a)?n[o]=kt({},a):_e(a)?n[o]=a.slice():(!t||!Oe(a))&&(n[o]=a)};for(let a=0,r=arguments.length;a<r;a++)arguments[a]&&Fe(arguments[a],i);return n}const Hi=(e,t,n,{allOwnKeys:i}={})=>(Fe(t,(a,r)=>{n&&ae(a)?e[r]=Fn(a,n):e[r]=a},{allOwnKeys:i}),e),Wi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ki=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vi=(e,t,n,i)=>{let a,r,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)o=a[r],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Lt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Yi=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Ji=e=>{if(!e)return null;if(_e(e))return e;let t=e.length;if(!In(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lt(Uint8Array)),Xi=(e,t)=>{const i=(e&&e[Xe]).call(e);let a;for(;(a=i.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},Zi=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Qi=ue("HTMLFormElement"),ea=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),Bt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ta=ue("RegExp"),Nn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Fe(n,(a,r)=>{let o;(o=t(a,r,e))!==!1&&(i[r]=o||a)}),Object.defineProperties(e,i)},na=e=>{Nn(e,(t,n)=>{if(ae(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(ae(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ia=(e,t)=>{const n={},i=a=>{a.forEach(r=>{n[r]=!0})};return _e(e)?i(e):i(String(e).split(t)),n},aa=()=>{},ra=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function oa(e){return!!(e&&ae(e.append)&&e[zn]==="FormData"&&e[Xe])}const sa=e=>{const t=new Array(10),n=(i,a)=>{if(Pe(i)){if(t.indexOf(i)>=0)return;if(De(i))return i;if(!("toJSON"in i)){t[a]=i;const r=_e(i)?[]:{};return Fe(i,(o,s)=>{const f=n(o,a+1);!Oe(f)&&(r[s]=f)}),t[a]=void 0,r}}return i};return n(e,0)},ca=ue("AsyncFunction"),pa=e=>e&&(Pe(e)||ae(e))&&ae(e.then)&&ae(e.catch),$n=((e,t)=>e?setImmediate:t?((n,i)=>(ge.addEventListener("message",({source:a,data:r})=>{a===ge&&r===n&&i.length&&i.shift()()},!1),a=>{i.push(a),ge.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ae(ge.postMessage)),la=typeof queueMicrotask<"u"?queueMicrotask.bind(ge):typeof process<"u"&&process.nextTick||$n,ua=e=>e!=null&&ae(e[Xe]),l={isArray:_e,isArrayBuffer:Ln,isBuffer:De,isFormData:Ii,isArrayBufferView:Ri,isString:Ai,isNumber:In,isBoolean:ji,isObject:Pe,isPlainObject:Be,isEmptyObject:Ci,isReadableStream:Mi,isRequest:Ni,isResponse:$i,isHeaders:Ui,isUndefined:Oe,isDate:Di,isFile:Pi,isBlob:Fi,isRegExp:ta,isFunction:ae,isStream:Li,isURLSearchParams:qi,isTypedArray:Gi,isFileList:zi,forEach:Fe,merge:kt,extend:Hi,trim:Bi,stripBOM:Wi,inherits:Ki,toFlatObject:Vi,kindOf:Ze,kindOfTest:ue,endsWith:Yi,toArray:Ji,forEachEntry:Xi,matchAll:Zi,isHTMLForm:Qi,hasOwnProperty:Bt,hasOwnProp:Bt,reduceDescriptors:Nn,freezeMethods:na,toObjectSet:ia,toCamelCase:ea,noop:aa,toFiniteNumber:ra,findKey:qn,global:ge,isContextDefined:Mn,isSpecCompliantForm:oa,toJSONObject:sa,isAsyncFn:ca,isThenable:pa,setImmediate:$n,asap:la,isIterable:ua};function C(e,t,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status?a.status:null)}l.inherits(C,Error,{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:l.toJSONObject(this.config),code:this.code,status:this.status}}});const Un=C.prototype,Bn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bn[e]={value:e}});Object.defineProperties(C,Bn);Object.defineProperty(Un,"isAxiosError",{value:!0});C.from=(e,t,n,i,a,r)=>{const o=Object.create(Un);l.toFlatObject(e,o,function(c){return c!==Error.prototype},p=>p!=="isAxiosError");const s=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return C.call(o,s,f,n,i,a),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",r&&Object.assign(o,r),o};const da=null;function _t(e){return l.isPlainObject(e)||l.isArray(e)}function Hn(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Ht(e,t,n){return e?e.concat(t).map(function(a,r){return a=Hn(a),!n&&r?"["+a+"]":a}).join(n?".":""):t}function fa(e){return l.isArray(e)&&!e.some(_t)}const ma=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function et(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!l.isUndefined(v[m])});const i=n.metaTokens,a=n.visitor||c,r=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(a))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(l.isDate(u))return u.toISOString();if(l.isBoolean(u))return u.toString();if(!f&&l.isBlob(u))throw new C("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(u)||l.isTypedArray(u)?f&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function c(u,m,v){let O=u;if(u&&!v&&typeof u=="object"){if(l.endsWith(m,"{}"))m=i?m:m.slice(0,-2),u=JSON.stringify(u);else if(l.isArray(u)&&fa(u)||(l.isFileList(u)||l.endsWith(m,"[]"))&&(O=l.toArray(u)))return m=Hn(m),O.forEach(function(k,R){!(l.isUndefined(k)||k===null)&&t.append(o===!0?Ht([m],R,r):o===null?m:m+"[]",p(k))}),!1}return _t(u)?!0:(t.append(Ht(v,m,r),p(u)),!1)}const d=[],g=Object.assign(ma,{defaultVisitor:c,convertValue:p,isVisitable:_t});function y(u,m){if(!l.isUndefined(u)){if(d.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(u),l.forEach(u,function(O,N){(!(l.isUndefined(O)||O===null)&&a.call(t,O,l.isString(N)?N.trim():N,m,g))===!0&&y(O,m?m.concat(N):[N])}),d.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Wt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function It(e,t){this._pairs=[],e&&et(e,this,t)}const Wn=It.prototype;Wn.append=function(t,n){this._pairs.push([t,n])};Wn.toString=function(t){const n=t?function(i){return t.call(this,i,Wt)}:Wt;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function va(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kn(e,t,n){if(!t)return e;const i=n&&n.encode||va;l.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(a?r=a(t,n):r=l.isURLSearchParams(t)?t.toString():new It(t,n).toString(i),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Kt{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Vn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xa=typeof URLSearchParams<"u"?URLSearchParams:It,ha=typeof FormData<"u"?FormData:null,ga=typeof Blob<"u"?Blob:null,ya={isBrowser:!0,classes:{URLSearchParams:xa,FormData:ha,Blob:ga},protocols:["http","https","file","blob","url","data"]},qt=typeof window<"u"&&typeof document<"u",Tt=typeof navigator=="object"&&navigator||void 0,ba=qt&&(!Tt||["ReactNative","NativeScript","NS"].indexOf(Tt.product)<0),wa=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ea=qt&&window.location.href||"http://localhost",Sa=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qt,hasStandardBrowserEnv:ba,hasStandardBrowserWebWorkerEnv:wa,navigator:Tt,origin:Ea},Symbol.toStringTag,{value:"Module"})),te={...Sa,...ya};function Oa(e,t){return et(e,new te.classes.URLSearchParams,{visitor:function(n,i,a,r){return te.isNode&&l.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function ka(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _a(e){const t={},n=Object.keys(e);let i;const a=n.length;let r;for(i=0;i<a;i++)r=n[i],t[r]=e[r];return t}function Yn(e){function t(n,i,a,r){let o=n[r++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),f=r>=n.length;return o=!o&&l.isArray(a)?a.length:o,f?(l.hasOwnProp(a,o)?a[o]=[a[o],i]:a[o]=i,!s):((!a[o]||!l.isObject(a[o]))&&(a[o]=[]),t(n,i,a[o],r)&&l.isArray(a[o])&&(a[o]=_a(a[o])),!s)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(i,a)=>{t(ka(i),a,n,0)}),n}return null}function Ta(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const ze={transitional:Vn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,r=l.isObject(t);if(r&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return a?JSON.stringify(Yn(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Oa(t,this.formSerializer).toString();if((s=l.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return et(s?{"files[]":t}:t,f&&new f,this.formSerializer)}}return r||a?(n.setContentType("application/json",!1),Ta(t)):t}],transformResponse:[function(t){const n=this.transitional||ze.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(i&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?C.from(s,C.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:te.classes.FormData,Blob:te.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{ze.headers[e]={}});const Ra=l.toObjectSet(["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"]),Aa=e=>{const t={};let n,i,a;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),i=o.substring(a+1).trim(),!(!n||t[n]&&Ra[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Vt=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function He(e){return e===!1||e==null?e:l.isArray(e)?e.map(He):String(e)}function ja(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Ca=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lt(e,t,n,i,a){if(l.isFunction(i))return i.call(this,t,n);if(a&&(t=n),!!l.isString(t)){if(l.isString(i))return t.indexOf(i)!==-1;if(l.isRegExp(i))return i.test(t)}}function Da(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Pa(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(a,r,o){return this[i].call(this,t,a,r,o)},configurable:!0})})}let re=class{constructor(t){t&&this.set(t)}set(t,n,i){const a=this;function r(s,f,p){const c=je(f);if(!c)throw new Error("header name must be a non-empty string");const d=l.findKey(a,c);(!d||a[d]===void 0||p===!0||p===void 0&&a[d]!==!1)&&(a[d||f]=He(s))}const o=(s,f)=>l.forEach(s,(p,c)=>r(p,c,f));if(l.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(l.isString(t)&&(t=t.trim())&&!Ca(t))o(Aa(t),n);else if(l.isObject(t)&&l.isIterable(t)){let s={},f,p;for(const c of t){if(!l.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[p=c[0]]=(f=s[p])?l.isArray(f)?[...f,c[1]]:[f,c[1]]:c[1]}o(s,n)}else t!=null&&r(n,t,i);return this}get(t,n){if(t=je(t),t){const i=l.findKey(this,t);if(i){const a=this[i];if(!n)return a;if(n===!0)return ja(a);if(l.isFunction(n))return n.call(this,a,i);if(l.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=je(t),t){const i=l.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||lt(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let a=!1;function r(o){if(o=je(o),o){const s=l.findKey(i,o);s&&(!n||lt(i,i[s],s,n))&&(delete i[s],a=!0)}}return l.isArray(t)?t.forEach(r):r(t),a}clear(t){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const r=n[i];(!t||lt(this,this[r],r,t,!0))&&(delete this[r],a=!0)}return a}normalize(t){const n=this,i={};return l.forEach(this,(a,r)=>{const o=l.findKey(i,r);if(o){n[o]=He(a),delete n[r];return}const s=t?Da(r):String(r).trim();s!==r&&delete n[r],n[s]=He(a),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return l.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=t&&l.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[Vt]=this[Vt]={accessors:{}}).accessors,a=this.prototype;function r(o){const s=je(o);i[s]||(Pa(a,o),i[s]=!0)}return l.isArray(t)?t.forEach(r):r(t),this}};re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(re.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});l.freezeMethods(re);function ut(e,t){const n=this||ze,i=t||n,a=re.from(i.headers);let r=i.data;return l.forEach(e,function(s){r=s.call(n,r,a.normalize(),t?t.status:void 0)}),a.normalize(),r}function Jn(e){return!!(e&&e.__CANCEL__)}function Te(e,t,n){C.call(this,e??"canceled",C.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(Te,C,{__CANCEL__:!0});function Gn(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new C("Request failed with status code "+n.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fa(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function za(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a=0,r=0,o;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),c=i[r];o||(o=p),n[a]=f,i[a]=p;let d=r,g=0;for(;d!==a;)g+=n[d++],d=d%e;if(a=(a+1)%e,a===r&&(r=(r+1)%e),p-o<t)return;const y=c&&p-c;return y?Math.round(g*1e3/y):void 0}}function La(e,t){let n=0,i=1e3/t,a,r;const o=(p,c=Date.now())=>{n=c,a=null,r&&(clearTimeout(r),r=null),e(...p)};return[(...p)=>{const c=Date.now(),d=c-n;d>=i?o(p,c):(a=p,r||(r=setTimeout(()=>{r=null,o(a)},i-d)))},()=>a&&o(a)]}const Ke=(e,t,n=3)=>{let i=0;const a=za(50,250);return La(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,f=o-i,p=a(f),c=o<=s;i=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:f,rate:p||void 0,estimated:p&&s&&c?(s-o)/p:void 0,event:r,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Yt=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Jt=e=>(...t)=>l.asap(()=>e(...t)),Ia=te.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,te.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(te.origin),te.navigator&&/(msie|trident)/i.test(te.navigator.userAgent)):()=>!0,qa=te.hasStandardBrowserEnv?{write(e,t,n,i,a,r,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];l.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),l.isString(i)&&s.push(`path=${i}`),l.isString(a)&&s.push(`domain=${a}`),r===!0&&s.push("secure"),l.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ma(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Na(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xn(e,t,n){let i=!Ma(t);return e&&(i||n==!1)?Na(e,t):t}const Gt=e=>e instanceof re?{...e}:e;function be(e,t){t=t||{};const n={};function i(p,c,d,g){return l.isPlainObject(p)&&l.isPlainObject(c)?l.merge.call({caseless:g},p,c):l.isPlainObject(c)?l.merge({},c):l.isArray(c)?c.slice():c}function a(p,c,d,g){if(l.isUndefined(c)){if(!l.isUndefined(p))return i(void 0,p,d,g)}else return i(p,c,d,g)}function r(p,c){if(!l.isUndefined(c))return i(void 0,c)}function o(p,c){if(l.isUndefined(c)){if(!l.isUndefined(p))return i(void 0,p)}else return i(void 0,c)}function s(p,c,d){if(d in t)return i(p,c);if(d in e)return i(void 0,p)}const f={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(p,c,d)=>a(Gt(p),Gt(c),d,!0)};return l.forEach(Object.keys({...e,...t}),function(c){const d=f[c]||a,g=d(e[c],t[c],c);l.isUndefined(g)&&d!==s||(n[c]=g)}),n}const Zn=e=>{const t=be({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:r,headers:o,auth:s}=t;if(t.headers=o=re.from(o),t.url=Kn(Xn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),l.isFormData(n)){if(te.hasStandardBrowserEnv||te.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(l.isFunction(n.getHeaders)){const f=n.getHeaders(),p=["content-type","content-length"];Object.entries(f).forEach(([c,d])=>{p.includes(c.toLowerCase())&&o.set(c,d)})}}if(te.hasStandardBrowserEnv&&(i&&l.isFunction(i)&&(i=i(t)),i||i!==!1&&Ia(t.url))){const f=a&&r&&qa.read(r);f&&o.set(a,f)}return t},$a=typeof XMLHttpRequest<"u",Ua=$a&&function(e){return new Promise(function(n,i){const a=Zn(e);let r=a.data;const o=re.from(a.headers).normalize();let{responseType:s,onUploadProgress:f,onDownloadProgress:p}=a,c,d,g,y,u;function m(){y&&y(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function O(){if(!v)return;const k=re.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};Gn(function(F){n(F),m()},function(F){i(F),m()},h),v=null}"onloadend"in v?v.onloadend=O:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(O)},v.onabort=function(){v&&(i(new C("Request aborted",C.ECONNABORTED,e,v)),v=null)},v.onerror=function(R){const h=R&&R.message?R.message:"Network Error",P=new C(h,C.ERR_NETWORK,e,v);P.event=R||null,i(P),v=null},v.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const h=a.transitional||Vn;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),i(new C(R,h.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,v)),v=null},r===void 0&&o.setContentType(null),"setRequestHeader"in v&&l.forEach(o.toJSON(),function(R,h){v.setRequestHeader(h,R)}),l.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),s&&s!=="json"&&(v.responseType=a.responseType),p&&([g,u]=Ke(p,!0),v.addEventListener("progress",g)),f&&v.upload&&([d,y]=Ke(f),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(c=k=>{v&&(i(!k||k.type?new Te(null,e,v):k),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const N=Fa(a.url);if(N&&te.protocols.indexOf(N)===-1){i(new C("Unsupported protocol "+N+":",C.ERR_BAD_REQUEST,e));return}v.send(r||null)})},Ba=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,a;const r=function(p){if(!a){a=!0,s();const c=p instanceof Error?p:this.reason;i.abort(c instanceof C?c:new Te(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,r(new C(`timeout ${t} of ms exceeded`,C.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(r):p.removeEventListener("abort",r)}),e=null)};e.forEach(p=>p.addEventListener("abort",r));const{signal:f}=i;return f.unsubscribe=()=>l.asap(s),f}},Ha=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,a;for(;i<n;)a=i+t,yield e.slice(i,a),i=a},Wa=async function*(e,t){for await(const n of Ka(e))yield*Ha(n,t)},Ka=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Xt=(e,t,n,i)=>{const a=Wa(e,t);let r=0,o,s=f=>{o||(o=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:p,value:c}=await a.next();if(p){s(),f.close();return}let d=c.byteLength;if(n){let g=r+=d;n(g)}f.enqueue(new Uint8Array(c))}catch(p){throw s(p),p}},cancel(f){return s(f),a.return()}},{highWaterMark:2})},Zt=64*1024,{isFunction:Me}=l,Va=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:Qt,TextEncoder:en}=l.global,tn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ya=e=>{e=l.merge.call({skipUndefined:!0},Va,e);const{fetch:t,Request:n,Response:i}=e,a=t?Me(t):typeof fetch=="function",r=Me(n),o=Me(i);if(!a)return!1;const s=a&&Me(Qt),f=a&&(typeof en=="function"?(u=>m=>u.encode(m))(new en):async u=>new Uint8Array(await new n(u).arrayBuffer())),p=r&&s&&tn(()=>{let u=!1;const m=new n(te.origin,{body:new Qt,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),c=o&&s&&tn(()=>l.isReadableStream(new i("").body)),d={stream:c&&(u=>u.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!d[u]&&(d[u]=(m,v)=>{let O=m&&m[u];if(O)return O.call(m);throw new C(`Response type '${u}' is not supported`,C.ERR_NOT_SUPPORT,v)})});const g=async u=>{if(u==null)return 0;if(l.isBlob(u))return u.size;if(l.isSpecCompliantForm(u))return(await new n(te.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(l.isArrayBufferView(u)||l.isArrayBuffer(u))return u.byteLength;if(l.isURLSearchParams(u)&&(u=u+""),l.isString(u))return(await f(u)).byteLength},y=async(u,m)=>{const v=l.toFiniteNumber(u.getContentLength());return v??g(m)};return async u=>{let{url:m,method:v,data:O,signal:N,cancelToken:k,timeout:R,onDownloadProgress:h,onUploadProgress:P,responseType:F,headers:Q,withCredentials:ne="same-origin",fetchOptions:pe}=Zn(u),de=t||fetch;F=F?(F+"").toLowerCase():"text";let le=Ba([N,k&&k.toAbortSignal()],R),ie=null;const $=le&&le.unsubscribe&&(()=>{le.unsubscribe()});let G;try{if(P&&p&&v!=="get"&&v!=="head"&&(G=await y(Q,O))!==0){let w=new n(m,{method:"POST",body:O,duplex:"half"}),T;if(l.isFormData(O)&&(T=w.headers.get("content-type"))&&Q.setContentType(T),w.body){const[j,S]=Yt(G,Ke(Jt(P)));O=Xt(w.body,Zt,j,S)}}l.isString(ne)||(ne=ne?"include":"omit");const W=r&&"credentials"in n.prototype,oe={...pe,signal:le,method:v.toUpperCase(),headers:Q.normalize().toJSON(),body:O,duplex:"half",credentials:W?ne:void 0};ie=r&&new n(m,oe);let ee=await(r?de(ie,pe):de(m,oe));const Y=c&&(F==="stream"||F==="response");if(c&&(h||Y&&$)){const w={};["status","statusText","headers"].forEach(z=>{w[z]=ee[z]});const T=l.toFiniteNumber(ee.headers.get("content-length")),[j,S]=h&&Yt(T,Ke(Jt(h),!0))||[];ee=new i(Xt(ee.body,Zt,j,()=>{S&&S(),$&&$()}),w)}F=F||"text";let x=await d[l.findKey(d,F)||"text"](ee,u);return!Y&&$&&$(),await new Promise((w,T)=>{Gn(w,T,{data:x,headers:re.from(ee.headers),status:ee.status,statusText:ee.statusText,config:u,request:ie})})}catch(W){throw $&&$(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,u,ie),{cause:W.cause||W}):C.from(W,W&&W.code,u,ie)}}},Ja=new Map,Qn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:a}=t,r=[i,a,n];let o=r.length,s=o,f,p,c=Ja;for(;s--;)f=r[s],p=c.get(f),p===void 0&&c.set(f,p=s?new Map:Ya(t)),c=p;return p};Qn();const Mt={http:da,xhr:Ua,fetch:{get:Qn}};l.forEach(Mt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nn=e=>`- ${e}`,Ga=e=>l.isFunction(e)||e===null||e===!1;function Xa(e,t){e=l.isArray(e)?e:[e];const{length:n}=e;let i,a;const r={};for(let o=0;o<n;o++){i=e[o];let s;if(a=i,!Ga(i)&&(a=Mt[(s=String(i)).toLowerCase()],a===void 0))throw new C(`Unknown adapter '${s}'`);if(a&&(l.isFunction(a)||(a=a.get(t))))break;r[s||"#"+o]=a}if(!a){const o=Object.entries(r).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
|
|
4
|
+
`+o.map(nn).join(`
|
|
5
|
+
`):" "+nn(o[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const ei={getAdapter:Xa,adapters:Mt};function dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Te(null,e)}function an(e){return dt(e),e.headers=re.from(e.headers),e.data=ut.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ei.getAdapter(e.adapter||ze.adapter,e)(e).then(function(i){return dt(e),i.data=ut.call(e,e.transformResponse,i),i.headers=re.from(i.headers),i},function(i){return Jn(i)||(dt(e),i&&i.response&&(i.response.data=ut.call(e,e.transformResponse,i.response),i.response.headers=re.from(i.response.headers))),Promise.reject(i)})}const ti="1.13.2",tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tt[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const rn={};tt.transitional=function(t,n,i){function a(r,o){return"[Axios v"+ti+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,s)=>{if(t===!1)throw new C(a(o," has been removed"+(n?" in "+n:"")),C.ERR_DEPRECATED);return n&&!rn[o]&&(rn[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,s):!0}};tt.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Za(e,t,n){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const r=i[a],o=t[r];if(o){const s=e[r],f=s===void 0||o(s,r,e);if(f!==!0)throw new C("option "+r+" must be "+f,C.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new C("Unknown option "+r,C.ERR_BAD_OPTION)}}const We={assertOptions:Za,validators:tt},fe=We.validators;let ye=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Kt,response:new Kt}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const r=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
6
|
+
`+r):i.stack=r}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=be(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&We.assertOptions(i,{silentJSONParsing:fe.transitional(fe.boolean),forcedJSONParsing:fe.transitional(fe.boolean),clarifyTimeoutError:fe.transitional(fe.boolean)},!1),a!=null&&(l.isFunction(a)?n.paramsSerializer={serialize:a}:We.assertOptions(a,{encode:fe.function,serialize:fe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),We.assertOptions(n,{baseUrl:fe.spelling("baseURL"),withXsrfToken:fe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&l.merge(r.common,r[n.method]);r&&l.forEach(["delete","get","head","post","put","patch","common"],u=>{delete r[u]}),n.headers=re.concat(o,r);const s=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const p=[];this.interceptors.response.forEach(function(m){p.push(m.fulfilled,m.rejected)});let c,d=0,g;if(!f){const u=[an.bind(this),void 0];for(u.unshift(...s),u.push(...p),g=u.length,c=Promise.resolve(n);d<g;)c=c.then(u[d++],u[d++]);return c}g=s.length;let y=n;for(;d<g;){const u=s[d++],m=s[d++];try{y=u(y)}catch(v){m.call(this,v);break}}try{c=an.call(this,y)}catch(u){return Promise.reject(u)}for(d=0,g=p.length;d<g;)c=c.then(p[d++],p[d++]);return c}getUri(t){t=be(this.defaults,t);const n=Xn(t.baseURL,t.url,t.allowAbsoluteUrls);return Kn(n,t.params,t.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(t){ye.prototype[t]=function(n,i){return this.request(be(i||{},{method:t,url:n,data:(i||{}).data}))}});l.forEach(["post","put","patch"],function(t){function n(i){return function(r,o,s){return this.request(be(s||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ye.prototype[t]=n(),ye.prototype[t+"Form"]=n(!0)});let Qa=class ni{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(a=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](a);i._listeners=null}),this.promise.then=a=>{let r;const o=new Promise(s=>{i.subscribe(s),r=s}).then(a);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,s){i.reason||(i.reason=new Te(r,o,s),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ni(function(a){t=a}),cancel:t}}};function er(e){return function(n){return e.apply(null,n)}}function tr(e){return l.isObject(e)&&e.isAxiosError===!0}const Rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rt).forEach(([e,t])=>{Rt[t]=e});function ii(e){const t=new ye(e),n=Fn(ye.prototype.request,t);return l.extend(n,ye.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return ii(be(e,a))},n}const V=ii(ze);V.Axios=ye;V.CanceledError=Te;V.CancelToken=Qa;V.isCancel=Jn;V.VERSION=ti;V.toFormData=et;V.AxiosError=C;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=er;V.isAxiosError=tr;V.mergeConfig=be;V.AxiosHeaders=re;V.formToJSON=e=>Yn(l.isHTMLForm(e)?new FormData(e):e);V.getAdapter=ei.getAdapter;V.HttpStatusCode=Rt;V.default=V;const{Axios:Po,AxiosError:Fo,CanceledError:zo,isCancel:Lo,CancelToken:Io,VERSION:qo,all:Mo,Cancel:No,isAxiosError:$o,spread:Uo,toFormData:Bo,AxiosHeaders:Ho,HttpStatusCode:Wo,formToJSON:Ko,getAdapter:Vo,mergeConfig:Yo}=V;class ai{constructor(t){const n={"Content-Type":"application/json"};t.apiKey&&(n["X-API-Key"]=t.apiKey),this.client=V.create({baseURL:t.apiUrl||"https://api.fileflow.io",timeout:t.timeout||3e4,headers:n}),this.client.interceptors.response.use(i=>i,i=>{var a,r;throw(r=(a=i.response)==null?void 0:a.data)!=null&&r.error?new ri(i.response.data.error.code,i.response.data.error.message,i.response.status,i.response.data.error.details):i})}async createImportSession(t,n){return(await this.client.post("/api/v1/import/sessions",{schema:t,metadata:n})).data.data}async uploadFile(t,n){const i=new FormData;return i.append("file",n),i.append("sessionId",t),(await this.client.post("/api/v1/import/upload",i,{headers:{"Content-Type":"multipart/form-data"}})).data.data}async matchColumns(t){return(await this.client.post("/api/v1/import/columns/match",{sessionId:t})).data.data}async updateMappings(t,n){return(await this.client.put("/api/v1/import/columns/match",{sessionId:t,mappings:n})).data.data}async validateImport(t){return(await this.client.post("/api/v1/import/validate",{sessionId:t})).data.data}async completeImport(t,n){return(await this.client.post("/api/v1/import/complete",{sessionId:t,...n})).data.data}async createKYCSession(t,n){return(await this.client.post("/api/v1/kyc/sessions",{requiredDocuments:t,metadata:n})).data.data}async uploadKYCDocument(t,n,i){const a=new FormData;return a.append("file",i),a.append("sessionId",t),a.append("documentType",n),(await this.client.post("/api/v1/kyc/upload",a,{headers:{"Content-Type":"multipart/form-data"}})).data.data}async getKYCDocument(t){return(await this.client.get(`/api/v1/kyc/documents/${t}`)).data.data}async verifyKYCSession(t,n){return(await this.client.post("/api/v1/kyc/verify",{sessionId:t,acceptWarnings:n})).data.data}}class ri extends Error{constructor(t,n,i,a){super(n),this.code=t,this.status=i,this.details=a,this.name="FileFlowError"}}let Ve=null;function nr(e){return Ve=new ai(e),Ve}function ir(){if(!Ve)throw new Error("FileFlow client not initialized. Call initializeClient() first.");return Ve}function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={exports:{}},Ne={exports:{}},U={};/** @license React v16.13.1
|
|
7
|
+
* react-is.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/var on;function ar(){if(on)return U;on=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function k(h){if(typeof h=="object"&&h!==null){var P=h.$$typeof;switch(P){case t:switch(h=h.type,h){case f:case p:case i:case r:case a:case d:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case u:case y:case o:return h;default:return P}}case n:return P}}}function R(h){return k(h)===p}return U.AsyncMode=f,U.ConcurrentMode=p,U.ContextConsumer=s,U.ContextProvider=o,U.Element=t,U.ForwardRef=c,U.Fragment=i,U.Lazy=u,U.Memo=y,U.Portal=n,U.Profiler=r,U.StrictMode=a,U.Suspense=d,U.isAsyncMode=function(h){return R(h)||k(h)===f},U.isConcurrentMode=R,U.isContextConsumer=function(h){return k(h)===s},U.isContextProvider=function(h){return k(h)===o},U.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},U.isForwardRef=function(h){return k(h)===c},U.isFragment=function(h){return k(h)===i},U.isLazy=function(h){return k(h)===u},U.isMemo=function(h){return k(h)===y},U.isPortal=function(h){return k(h)===n},U.isProfiler=function(h){return k(h)===r},U.isStrictMode=function(h){return k(h)===a},U.isSuspense=function(h){return k(h)===d},U.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===p||h===r||h===a||h===d||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===u||h.$$typeof===y||h.$$typeof===o||h.$$typeof===s||h.$$typeof===c||h.$$typeof===v||h.$$typeof===O||h.$$typeof===N||h.$$typeof===m)},U.typeOf=k,U}var B={};/** @license React v16.13.1
|
|
14
|
+
* react-is.development.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/var sn;function rr(){return sn||(sn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function k(b){return typeof b=="string"||typeof b=="function"||b===i||b===p||b===r||b===a||b===d||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===u||b.$$typeof===y||b.$$typeof===o||b.$$typeof===s||b.$$typeof===c||b.$$typeof===v||b.$$typeof===O||b.$$typeof===N||b.$$typeof===m)}function R(b){if(typeof b=="object"&&b!==null){var se=b.$$typeof;switch(se){case t:var xe=b.type;switch(xe){case f:case p:case i:case r:case a:case d:return xe;default:var Re=xe&&xe.$$typeof;switch(Re){case s:case c:case u:case y:case o:return Re;default:return se}}case n:return se}}}var h=f,P=p,F=s,Q=o,ne=t,pe=c,de=i,le=u,ie=y,$=n,G=r,W=a,oe=d,ee=!1;function Y(b){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),x(b)||R(b)===f}function x(b){return R(b)===p}function w(b){return R(b)===s}function T(b){return R(b)===o}function j(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function S(b){return R(b)===c}function z(b){return R(b)===i}function A(b){return R(b)===u}function D(b){return R(b)===y}function q(b){return R(b)===n}function M(b){return R(b)===r}function I(b){return R(b)===a}function X(b){return R(b)===d}B.AsyncMode=h,B.ConcurrentMode=P,B.ContextConsumer=F,B.ContextProvider=Q,B.Element=ne,B.ForwardRef=pe,B.Fragment=de,B.Lazy=le,B.Memo=ie,B.Portal=$,B.Profiler=G,B.StrictMode=W,B.Suspense=oe,B.isAsyncMode=Y,B.isConcurrentMode=x,B.isContextConsumer=w,B.isContextProvider=T,B.isElement=j,B.isForwardRef=S,B.isFragment=z,B.isLazy=A,B.isMemo=D,B.isPortal=q,B.isProfiler=M,B.isStrictMode=I,B.isSuspense=X,B.isValidElementType=k,B.typeOf=R}()),B}var cn;function si(){return cn||(cn=1,process.env.NODE_ENV==="production"?Ne.exports=ar():Ne.exports=rr()),Ne.exports}/*
|
|
21
|
+
object-assign
|
|
22
|
+
(c) Sindre Sorhus
|
|
23
|
+
@license MIT
|
|
24
|
+
*/var ft,pn;function or(){if(pn)return ft;pn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function a(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var f=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(c){p[c]=c}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ft=a()?Object.assign:function(r,o){for(var s,f=i(r),p,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(f[d]=s[d]);if(e){p=e(s);for(var g=0;g<p.length;g++)n.call(s,p[g])&&(f[p[g]]=s[p[g]])}}return f},ft}var mt,ln;function Nt(){if(ln)return mt;ln=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mt=e,mt}var vt,un;function ci(){return un||(un=1,vt=Function.call.bind(Object.prototype.hasOwnProperty)),vt}var xt,dn;function sr(){if(dn)return xt;dn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Nt(),n={},i=ci();e=function(r){var o="Warning: "+r;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(r,o,s,f,p){if(process.env.NODE_ENV!=="production"){for(var c in r)if(i(r,c)){var d;try{if(typeof r[c]!="function"){var g=Error((f||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=r[c](o,c,f,s,null,t)}catch(u){d=u}if(d&&!(d instanceof Error)&&e((f||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var y=p?p():"";e("Failed "+s+" type: "+d.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xt=a,xt}var ht,fn;function cr(){if(fn)return ht;fn=1;var e=si(),t=or(),n=Nt(),i=ci(),a=sr(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(s){var f="Warning: "+s;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function o(){return null}return ht=function(s,f){var p=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(x){var w=x&&(p&&x[p]||x[c]);if(typeof w=="function")return w}var g="<<anonymous>>",y={array:O("array"),bigint:O("bigint"),bool:O("boolean"),func:O("function"),number:O("number"),object:O("object"),string:O("string"),symbol:O("symbol"),any:N(),arrayOf:k,element:R(),elementType:h(),instanceOf:P,node:pe(),objectOf:Q,oneOf:F,oneOfType:ne,shape:le,exact:ie};function u(x,w){return x===w?x!==0||1/x===1/w:x!==x&&w!==w}function m(x,w){this.message=x,this.data=w&&typeof w=="object"?w:{},this.stack=""}m.prototype=Error.prototype;function v(x){if(process.env.NODE_ENV!=="production")var w={},T=0;function j(z,A,D,q,M,I,X){if(q=q||g,I=I||D,X!==n){if(f){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=q+":"+D;!w[se]&&T<3&&(r("You are manually calling a React.PropTypes validation function for the `"+I+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),w[se]=!0,T++)}}return A[D]==null?z?A[D]===null?new m("The "+M+" `"+I+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new m("The "+M+" `"+I+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:x(A,D,q,M,I)}var S=j.bind(null,!1);return S.isRequired=j.bind(null,!0),S}function O(x){function w(T,j,S,z,A,D){var q=T[j],M=W(q);if(M!==x){var I=oe(q);return new m("Invalid "+z+" `"+A+"` of type "+("`"+I+"` supplied to `"+S+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return v(w)}function N(){return v(o)}function k(x){function w(T,j,S,z,A){if(typeof x!="function")return new m("Property `"+A+"` of component `"+S+"` has invalid PropType notation inside arrayOf.");var D=T[j];if(!Array.isArray(D)){var q=W(D);return new m("Invalid "+z+" `"+A+"` of type "+("`"+q+"` supplied to `"+S+"`, expected an array."))}for(var M=0;M<D.length;M++){var I=x(D,M,S,z,A+"["+M+"]",n);if(I instanceof Error)return I}return null}return v(w)}function R(){function x(w,T,j,S,z){var A=w[T];if(!s(A)){var D=W(A);return new m("Invalid "+S+" `"+z+"` of type "+("`"+D+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return v(x)}function h(){function x(w,T,j,S,z){var A=w[T];if(!e.isValidElementType(A)){var D=W(A);return new m("Invalid "+S+" `"+z+"` of type "+("`"+D+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return v(x)}function P(x){function w(T,j,S,z,A){if(!(T[j]instanceof x)){var D=x.name||g,q=Y(T[j]);return new m("Invalid "+z+" `"+A+"` of type "+("`"+q+"` supplied to `"+S+"`, expected ")+("instance of `"+D+"`."))}return null}return v(w)}function F(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),o;function w(T,j,S,z,A){for(var D=T[j],q=0;q<x.length;q++)if(u(D,x[q]))return null;var M=JSON.stringify(x,function(X,b){var se=oe(b);return se==="symbol"?String(b):b});return new m("Invalid "+z+" `"+A+"` of value `"+String(D)+"` "+("supplied to `"+S+"`, expected one of "+M+"."))}return v(w)}function Q(x){function w(T,j,S,z,A){if(typeof x!="function")return new m("Property `"+A+"` of component `"+S+"` has invalid PropType notation inside objectOf.");var D=T[j],q=W(D);if(q!=="object")return new m("Invalid "+z+" `"+A+"` of type "+("`"+q+"` supplied to `"+S+"`, expected an object."));for(var M in D)if(i(D,M)){var I=x(D,M,S,z,A+"."+M,n);if(I instanceof Error)return I}return null}return v(w)}function ne(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var w=0;w<x.length;w++){var T=x[w];if(typeof T!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(T)+" at index "+w+"."),o}function j(S,z,A,D,q){for(var M=[],I=0;I<x.length;I++){var X=x[I],b=X(S,z,A,D,q,n);if(b==null)return null;b.data&&i(b.data,"expectedType")&&M.push(b.data.expectedType)}var se=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new m("Invalid "+D+" `"+q+"` supplied to "+("`"+A+"`"+se+"."))}return v(j)}function pe(){function x(w,T,j,S,z){return $(w[T])?null:new m("Invalid "+S+" `"+z+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return v(x)}function de(x,w,T,j,S){return new m((x||"React class")+": "+w+" type `"+T+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+S+"`.")}function le(x){function w(T,j,S,z,A){var D=T[j],q=W(D);if(q!=="object")return new m("Invalid "+z+" `"+A+"` of type `"+q+"` "+("supplied to `"+S+"`, expected `object`."));for(var M in x){var I=x[M];if(typeof I!="function")return de(S,z,A,M,oe(I));var X=I(D,M,S,z,A+"."+M,n);if(X)return X}return null}return v(w)}function ie(x){function w(T,j,S,z,A){var D=T[j],q=W(D);if(q!=="object")return new m("Invalid "+z+" `"+A+"` of type `"+q+"` "+("supplied to `"+S+"`, expected `object`."));var M=t({},T[j],x);for(var I in M){var X=x[I];if(i(x,I)&&typeof X!="function")return de(S,z,A,I,oe(X));if(!X)return new m("Invalid "+z+" `"+A+"` key `"+I+"` supplied to `"+S+"`.\nBad object: "+JSON.stringify(T[j],null," ")+`
|
|
25
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var b=X(D,I,S,z,A+"."+I,n);if(b)return b}return null}return v(w)}function $(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every($);if(x===null||s(x))return!0;var w=d(x);if(w){var T=w.call(x),j;if(w!==x.entries){for(;!(j=T.next()).done;)if(!$(j.value))return!1}else for(;!(j=T.next()).done;){var S=j.value;if(S&&!$(S[1]))return!1}}else return!1;return!0;default:return!1}}function G(x,w){return x==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function W(x){var w=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":G(w,x)?"symbol":w}function oe(x){if(typeof x>"u"||x===null)return""+x;var w=W(x);if(w==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return w}function ee(x){var w=oe(x);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function Y(x){return!x.constructor||!x.constructor.name?g:x.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},ht}var gt,mn;function pr(){if(mn)return gt;mn=1;var e=Nt();function t(){}function n(){}return n.resetWarningCache=t,gt=function(){function i(o,s,f,p,c,d){if(d!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},gt}if(process.env.NODE_ENV!=="production"){var lr=si(),ur=!0;At.exports=cr()(lr.isElement,ur)}else At.exports=pr()();var dr=At.exports;const H=oi(dr);function we(e,t,n,i){function a(r){return r instanceof n?r:new n(function(o){o(r)})}return new(n||(n=Promise))(function(r,o){function s(c){try{p(i.next(c))}catch(d){o(d)}}function f(c){try{p(i.throw(c))}catch(d){o(d)}}function p(c){c.done?r(c.value):a(c.value).then(s,f)}p((i=i.apply(e,t||[])).next())})}const fr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.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"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/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"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ke(e,t,n){const i=mr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&vn(i,"path",r),vn(i,"relativePath",r),i}function mr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=fr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function vn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const vr=[".DS_Store","Thumbs.db"];function xr(e){return we(this,void 0,void 0,function*(){return Ye(e)&&hr(e.dataTransfer)?wr(e.dataTransfer,e.type):gr(e)?yr(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?br(e):[]})}function hr(e){return Ye(e)}function gr(e){return Ye(e)&&Ye(e.target)}function Ye(e){return typeof e=="object"&&e!==null}function yr(e){return jt(e.target.files).map(t=>ke(t))}function br(e){return we(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>ke(n))})}function wr(e,t){return we(this,void 0,void 0,function*(){if(e.items){const n=jt(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(Er));return xn(pi(i))}return xn(jt(e.files).map(n=>ke(n)))})}function xn(e){return e.filter(t=>vr.indexOf(t.name)===-1)}function jt(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function Er(e){if(typeof e.webkitGetAsEntry!="function")return hn(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?li(t):hn(e,t)}function pi(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?pi(n):[n]],[])}function hn(e,t){return we(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const o=yield r.getFile();return o.handle=r,ke(o)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return ke(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function Sr(e){return we(this,void 0,void 0,function*(){return e.isDirectory?li(e):Or(e)})}function li(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(o=>we(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(Sr));a.push(s),r()}else try{const s=yield Promise.all(a);n(s)}catch(s){i(s)}}),o=>{i(o)})}r()})}function Or(e){return we(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=ke(i,e.fullPath);t(a)},i=>{n(i)})})})}var yt=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?i.toLowerCase().endsWith(s):s.endsWith("/*")?r===s.replace(/\/.*$/,""):a===s})}return!0};function gn(e){return Tr(e)||_r(e)||di(e)||kr()}function kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _r(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tr(e){if(Array.isArray(e))return Ct(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(i){ui(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){return jr(e)||Ar(e,t)||di(e,t)||Rr()}function Rr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function di(e,t){if(e){if(typeof e=="string")return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ct(e,t)}}function Ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ar(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,o,s;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));a=!0);}catch(f){r=!0,s=f}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw s}}return i}}function jr(e){if(Array.isArray(e))return e}var Cr=typeof yt=="function"?yt:yt.default,Dr="file-invalid-type",Pr="file-too-large",Fr="file-too-small",zr="too-many-files",Lr=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Dr,message:"File type must be ".concat(i)}},wn=function(t){return{code:Pr,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},En=function(t){return{code:Fr,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ir={code:zr,message:"Too many files"};function fi(e,t){var n=e.type==="application/x-moz-file"||Cr(e,t);return[n,n?null:Lr(t)]}function mi(e,t,n){if(he(e.size))if(he(t)&&he(n)){if(e.size>n)return[!1,wn(n)];if(e.size<t)return[!1,En(t)]}else{if(he(t)&&e.size<t)return[!1,En(t)];if(he(n)&&e.size>n)return[!1,wn(n)]}return[!0,null]}function he(e){return e!=null}function qr(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles,s=e.validator;return!r&&t.length>1||r&&o>=1&&t.length>o?!1:t.every(function(f){var p=fi(f,n),c=Ce(p,1),d=c[0],g=mi(f,i,a),y=Ce(g,1),u=y[0],m=s?s(f):null;return d&&u&&!m})}function Je(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function $e(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Sn(e){e.preventDefault()}function Mr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Nr(e){return e.indexOf("Edge/")!==-1}function $r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Mr(e)||Nr(e)}function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return t.some(function(s){return!Je(i)&&s&&s.apply(void 0,[i].concat(r)),Je(i)})}}function Ur(){return"showOpenFilePicker"in window}function Br(e){if(he(e)){var t=Object.entries(e).filter(function(n){var i=Ce(n,2),a=i[0],r=i[1],o=!0;return vi(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(r)||!r.every(xi))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,i){var a=Ce(i,2),r=a[0],o=a[1];return bn(bn({},n),{},ui({},r,o))},{});return[{description:"Files",accept:t}]}return e}function Hr(e){if(he(e))return Object.entries(e).reduce(function(t,n){var i=Ce(n,2),a=i[0],r=i[1];return[].concat(gn(t),[a],gn(r))},[]).filter(function(t){return vi(t)||xi(t)}).join(",")}function Wr(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Kr(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function vi(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function xi(e){return/^.*\.[\w]+$/.test(e)}var Vr=["children"],Yr=["open"],Jr=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Gr=["refKey","onChange","onClick"];function Xr(e){return eo(e)||Qr(e)||hi(e)||Zr()}function Zr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
28
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eo(e){if(Array.isArray(e))return Dt(e)}function bt(e,t){return io(e)||no(e,t)||hi(e,t)||to()}function to(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hi(e,t){if(e){if(typeof e=="string")return Dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dt(e,t)}}function Dt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function no(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,o,s;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));a=!0);}catch(f){r=!0,s=f}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw s}}return i}}function io(e){if(Array.isArray(e))return e}function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?On(Object(n),!0).forEach(function(i){Pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){if(e==null)return{};var n=ao(e,t),i,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function ao(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r<i.length;r++)a=i[r],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var $t=L.forwardRef(function(e,t){var n=e.children,i=Ge(e,Vr),a=yi(i),r=a.open,o=Ge(a,Yr);return L.useImperativeHandle(t,function(){return{open:r}},[r]),L.createElement(L.Fragment,null,n(K(K({},o),{},{open:r})))});$t.displayName="Dropzone";var gi={disabled:!1,getFilesFromEvent:xr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};$t.defaultProps=gi;$t.propTypes={children:H.func,accept:H.objectOf(H.arrayOf(H.string)),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,autoFocus:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,onError:H.func,validator:H.func};var Ft={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function yi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},gi),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,o=t.minSize,s=t.multiple,f=t.maxFiles,p=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,g=t.onDrop,y=t.onDropAccepted,u=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,O=t.useFsAccessApi,N=t.autoFocus,k=t.preventDropOnDocument,R=t.noClick,h=t.noKeyboard,P=t.noDrag,F=t.noDragEventsBubbling,Q=t.onError,ne=t.validator,pe=L.useMemo(function(){return Hr(n)},[n]),de=L.useMemo(function(){return Br(n)},[n]),le=L.useMemo(function(){return typeof v=="function"?v:kn},[v]),ie=L.useMemo(function(){return typeof m=="function"?m:kn},[m]),$=L.useRef(null),G=L.useRef(null),W=L.useReducer(ro,Ft),oe=bt(W,2),ee=oe[0],Y=oe[1],x=ee.isFocused,w=ee.isFileDialogActive,T=L.useRef(typeof window<"u"&&window.isSecureContext&&O&&Ur()),j=function(){!T.current&&w&&setTimeout(function(){if(G.current){var _=G.current.files;_.length||(Y({type:"closeDialog"}),ie())}},300)};L.useEffect(function(){return window.addEventListener("focus",j,!1),function(){window.removeEventListener("focus",j,!1)}},[G,w,ie,T]);var S=L.useRef([]),z=function(_){$.current&&$.current.contains(_.target)||(_.preventDefault(),S.current=[])};L.useEffect(function(){return k&&(document.addEventListener("dragover",Sn,!1),document.addEventListener("drop",z,!1)),function(){k&&(document.removeEventListener("dragover",Sn),document.removeEventListener("drop",z))}},[$,k]),L.useEffect(function(){return!i&&N&&$.current&&$.current.focus(),function(){}},[$,N,i]);var A=L.useCallback(function(E){Q?Q(E):console.error(E)},[Q]),D=L.useCallback(function(E){E.preventDefault(),E.persist(),Ie(E),S.current=[].concat(Xr(S.current),[E.target]),$e(E)&&Promise.resolve(a(E)).then(function(_){if(!(Je(E)&&!F)){var J=_.length,Z=J>0&&qr({files:_,accept:pe,minSize:o,maxSize:r,multiple:s,maxFiles:f,validator:ne}),ce=J>0&&!Z;Y({isDragAccept:Z,isDragReject:ce,isDragActive:!0,type:"setDraggedFiles"}),p&&p(E)}}).catch(function(_){return A(_)})},[a,p,A,F,pe,o,r,s,f,ne]),q=L.useCallback(function(E){E.preventDefault(),E.persist(),Ie(E);var _=$e(E);if(_&&E.dataTransfer)try{E.dataTransfer.dropEffect="copy"}catch{}return _&&d&&d(E),!1},[d,F]),M=L.useCallback(function(E){E.preventDefault(),E.persist(),Ie(E);var _=S.current.filter(function(Z){return $.current&&$.current.contains(Z)}),J=_.indexOf(E.target);J!==-1&&_.splice(J,1),S.current=_,!(_.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$e(E)&&c&&c(E))},[$,c,F]),I=L.useCallback(function(E,_){var J=[],Z=[];E.forEach(function(ce){var Ae=fi(ce,pe),Se=bt(Ae,2),it=Se[0],at=Se[1],rt=mi(ce,o,r),qe=bt(rt,2),ot=qe[0],st=qe[1],ct=ne?ne(ce):null;if(it&&ot&&!ct)J.push(ce);else{var pt=[at,st];ct&&(pt=pt.concat(ct)),Z.push({file:ce,errors:pt.filter(function(_i){return _i})})}}),(!s&&J.length>1||s&&f>=1&&J.length>f)&&(J.forEach(function(ce){Z.push({file:ce,errors:[Ir]})}),J.splice(0)),Y({acceptedFiles:J,fileRejections:Z,isDragReject:Z.length>0,type:"setFiles"}),g&&g(J,Z,_),Z.length>0&&u&&u(Z,_),J.length>0&&y&&y(J,_)},[Y,s,pe,o,r,f,g,y,u,ne]),X=L.useCallback(function(E){E.preventDefault(),E.persist(),Ie(E),S.current=[],$e(E)&&Promise.resolve(a(E)).then(function(_){Je(E)&&!F||I(_,E)}).catch(function(_){return A(_)}),Y({type:"reset"})},[a,I,A,F]),b=L.useCallback(function(){if(T.current){Y({type:"openDialog"}),le();var E={multiple:s,types:de};window.showOpenFilePicker(E).then(function(_){return a(_)}).then(function(_){I(_,null),Y({type:"closeDialog"})}).catch(function(_){Wr(_)?(ie(_),Y({type:"closeDialog"})):Kr(_)?(T.current=!1,G.current?(G.current.value=null,G.current.click()):A(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):A(_)});return}G.current&&(Y({type:"openDialog"}),le(),G.current.value=null,G.current.click())},[Y,le,ie,O,I,A,de,s]),se=L.useCallback(function(E){!$.current||!$.current.isEqualNode(E.target)||(E.key===" "||E.key==="Enter"||E.keyCode===32||E.keyCode===13)&&(E.preventDefault(),b())},[$,b]),xe=L.useCallback(function(){Y({type:"focus"})},[]),Re=L.useCallback(function(){Y({type:"blur"})},[]),Ut=L.useCallback(function(){R||($r()?setTimeout(b,0):b())},[R,b]),Ee=function(_){return i?null:_},nt=function(_){return h?null:Ee(_)},Le=function(_){return P?null:Ee(_)},Ie=function(_){F&&_.stopPropagation()},Si=L.useMemo(function(){return function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=E.refKey,J=_===void 0?"ref":_,Z=E.role,ce=E.onKeyDown,Ae=E.onFocus,Se=E.onBlur,it=E.onClick,at=E.onDragEnter,rt=E.onDragOver,qe=E.onDragLeave,ot=E.onDrop,st=Ge(E,Jr);return K(K(Pt({onKeyDown:nt(me(ce,se)),onFocus:nt(me(Ae,xe)),onBlur:nt(me(Se,Re)),onClick:Ee(me(it,Ut)),onDragEnter:Le(me(at,D)),onDragOver:Le(me(rt,q)),onDragLeave:Le(me(qe,M)),onDrop:Le(me(ot,X)),role:typeof Z=="string"&&Z!==""?Z:"presentation"},J,$),!i&&!h?{tabIndex:0}:{}),st)}},[$,se,xe,Re,Ut,D,q,M,X,h,P,i]),Oi=L.useCallback(function(E){E.stopPropagation()},[]),ki=L.useMemo(function(){return function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=E.refKey,J=_===void 0?"ref":_,Z=E.onChange,ce=E.onClick,Ae=Ge(E,Gr),Se=Pt({accept:pe,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Ee(me(Z,X)),onClick:Ee(me(ce,Oi)),tabIndex:-1},J,G);return K(K({},Se),Ae)}},[G,n,s,X,i]);return K(K({},ee),{},{isFocused:x&&!i,getRootProps:Si,getInputProps:ki,rootRef:$,inputRef:G,open:Ee(b)})}function ro(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},Ft),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return K({},Ft);default:return e}}function kn(){}/**
|
|
30
|
+
* @license lucide-react v0.321.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var oo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
35
|
+
* @license lucide-react v0.321.0 - ISC
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the ISC license.
|
|
38
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/const so=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ve=(e,t)=>{const n=L.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:f,...p},c)=>L.createElement("svg",{ref:c,...oo,width:a,height:a,stroke:i,strokeWidth:o?Number(r)*24/Number(a):r,className:["lucide",`lucide-${so(e)}`,s].join(" "),...p},[...t.map(([d,g])=>L.createElement(d,g)),...Array.isArray(f)?f:[f]]));return n.displayName=`${e}`,n};/**
|
|
40
|
+
* @license lucide-react v0.321.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/const co=ve("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
45
|
+
* @license lucide-react v0.321.0 - ISC
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the ISC license.
|
|
48
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/const po=ve("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
50
|
+
* @license lucide-react v0.321.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const lo=ve("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
55
|
+
* @license lucide-react v0.321.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const uo=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
60
|
+
* @license lucide-react v0.321.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const fo=ve("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
65
|
+
* @license lucide-react v0.321.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const mo=ve("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
70
|
+
* @license lucide-react v0.321.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const vo=ve("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
75
|
+
* @license lucide-react v0.321.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const xo=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function bi(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=bi(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function ho(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=bi(e))&&(i&&(i+=" "),i+=t);return i}const go={},_n=e=>{let t;const n=new Set,i=(c,d)=>{const g=typeof c=="function"?c(t):c;if(!Object.is(g,t)){const y=t;t=d??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(u=>u(t,y))}},a=()=>t,f={setState:i,getState:a,getInitialState:()=>p,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(go?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},p=t=e(i,a,f);return f},yo=e=>e?_n(e):_n;var zt={exports:{}},wt={},Ue={exports:{}},Et={};/**
|
|
80
|
+
* @license React
|
|
81
|
+
* use-sync-external-store-shim.production.js
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/var Tn;function bo(){if(Tn)return Et;Tn=1;var e=L;function t(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,a=e.useEffect,r=e.useLayoutEffect,o=e.useDebugValue;function s(d,g){var y=g(),u=i({inst:{value:y,getSnapshot:g}}),m=u[0].inst,v=u[1];return r(function(){m.value=y,m.getSnapshot=g,f(m)&&v({inst:m})},[d,y,g]),a(function(){return f(m)&&v({inst:m}),d(function(){f(m)&&v({inst:m})})},[d]),o(y),y}function f(d){var g=d.getSnapshot;d=d.value;try{var y=g();return!n(d,y)}catch{return!0}}function p(d,g){return g()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:s;return Et.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Et}var St={};/**
|
|
88
|
+
* @license React
|
|
89
|
+
* use-sync-external-store-shim.development.js
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the MIT license found in the
|
|
94
|
+
* LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/var Rn;function wo(){return Rn||(Rn=1,process.env.NODE_ENV!=="production"&&function(){function e(y,u){return y===u&&(y!==0||1/y===1/u)||y!==y&&u!==u}function t(y,u){c||a.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=u();if(!d){var v=u();r(m,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=o({inst:{value:m,getSnapshot:u}});var O=v[0].inst,N=v[1];return f(function(){O.value=m,O.getSnapshot=u,n(O)&&N({inst:O})},[y,m,u]),s(function(){return n(O)&&N({inst:O}),y(function(){n(O)&&N({inst:O})})},[y]),p(m),m}function n(y){var u=y.getSnapshot;y=y.value;try{var m=u();return!r(y,m)}catch{return!0}}function i(y,u){return u()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=L,r=typeof Object.is=="function"?Object.is:e,o=a.useState,s=a.useEffect,f=a.useLayoutEffect,p=a.useDebugValue,c=!1,d=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:t;St.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),St}var An;function wi(){return An||(An=1,process.env.NODE_ENV==="production"?Ue.exports=bo():Ue.exports=wo()),Ue.exports}/**
|
|
96
|
+
* @license React
|
|
97
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
98
|
+
*
|
|
99
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the MIT license found in the
|
|
102
|
+
* LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/var jn;function Eo(){if(jn)return wt;jn=1;var e=L,t=wi();function n(p,c){return p===c&&(p!==0||1/p===1/c)||p!==p&&c!==c}var i=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,r=e.useRef,o=e.useEffect,s=e.useMemo,f=e.useDebugValue;return wt.useSyncExternalStoreWithSelector=function(p,c,d,g,y){var u=r(null);if(u.current===null){var m={hasValue:!1,value:null};u.current=m}else m=u.current;u=s(function(){function O(P){if(!N){if(N=!0,k=P,P=g(P),y!==void 0&&m.hasValue){var F=m.value;if(y(F,P))return R=F}return R=P}if(F=R,i(k,P))return F;var Q=g(P);return y!==void 0&&y(F,Q)?(k=P,F):(k=P,R=Q)}var N=!1,k,R,h=d===void 0?null:d;return[function(){return O(c())},h===null?void 0:function(){return O(h())}]},[c,d,g,y]);var v=a(p,u[0],u[1]);return o(function(){m.hasValue=!0,m.value=v},[v]),f(v),v},wt}var Ot={};/**
|
|
104
|
+
* @license React
|
|
105
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/var Cn;function So(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&function(){function e(p,c){return p===c&&(p!==0||1/p===1/c)||p!==p&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=L,n=wi(),i=typeof Object.is=="function"?Object.is:e,a=n.useSyncExternalStore,r=t.useRef,o=t.useEffect,s=t.useMemo,f=t.useDebugValue;Ot.useSyncExternalStoreWithSelector=function(p,c,d,g,y){var u=r(null);if(u.current===null){var m={hasValue:!1,value:null};u.current=m}else m=u.current;u=s(function(){function O(P){if(!N){if(N=!0,k=P,P=g(P),y!==void 0&&m.hasValue){var F=m.value;if(y(F,P))return R=F}return R=P}if(F=R,i(k,P))return F;var Q=g(P);return y!==void 0&&y(F,Q)?(k=P,F):(k=P,R=Q)}var N=!1,k,R,h=d===void 0?null:d;return[function(){return O(c())},h===null?void 0:function(){return O(h())}]},[c,d,g,y]);var v=a(p,u[0],u[1]);return o(function(){m.hasValue=!0,m.value=v},[v]),f(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ot}process.env.NODE_ENV==="production"?zt.exports=Eo():zt.exports=So();var Oo=zt.exports;const ko=oi(Oo),Ei={},{useDebugValue:_o}=L,{useSyncExternalStoreWithSelector:To}=ko;let Dn=!1;const Ro=e=>e;function Ao(e,t=Ro,n){(Ei?"production":void 0)!=="production"&&n&&!Dn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Dn=!0);const i=To(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return _o(i),i}const Pn=e=>{(Ei?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?yo(e):e,n=(i,a)=>Ao(t,i,a);return Object.assign(n,t),n},jo=e=>e?Pn(e):Pn;exports.AlertCircle=co;exports.AlertTriangle=po;exports.CheckCircle=lo;exports.ChevronRight=uo;exports.FileFlowClient=ai;exports.FileFlowError=ri;exports.Loader2=fo;exports.Upload=mo;exports.X=xo;exports.XCircle=vo;exports.clsx=ho;exports.create=jo;exports.createLucideIcon=ve;exports.getClient=ir;exports.initializeClient=nr;exports.useDropzone=yi;
|
|
112
|
+
//# sourceMappingURL=index-BdodGzlO.js.map
|