@clickcns/vmedic-react 0.0.2
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/README.md +0 -0
- package/dist/App.d.ts +2 -0
- package/dist/TestComponent-B7kGqbVF.js +291 -0
- package/dist/TestComponent-B7kGqbVF.js.map +1 -0
- package/dist/TestComponent-oikV159P.cjs +7 -0
- package/dist/TestComponent-oikV159P.cjs.map +1 -0
- package/dist/api/axios/index.d.ts +1 -0
- package/dist/api/axios/initialize-axios.d.ts +10 -0
- package/dist/api/common/audio.d.ts +6 -0
- package/dist/api/common/auth.d.ts +13 -0
- package/dist/api/common/capture-rects.d.ts +4 -0
- package/dist/api/common/feedback.d.ts +18 -0
- package/dist/api/common/index.d.ts +10 -0
- package/dist/api/common/llm.d.ts +12 -0
- package/dist/api/common/notice.d.ts +5 -0
- package/dist/api/common/partners.d.ts +4 -0
- package/dist/api/common/push.d.ts +21 -0
- package/dist/api/common/speechs/index.d.ts +1 -0
- package/dist/api/common/speechs/speech-audios.d.ts +6 -0
- package/dist/api/common/speechs/speech-chat.d.ts +17 -0
- package/dist/api/common/speechs/speech-patients.d.ts +7 -0
- package/dist/api/common/speechs/speech-record-datas.d.ts +4 -0
- package/dist/api/common/speechs/speech-records.d.ts +22 -0
- package/dist/api/common/speechs/speech.d.ts +62 -0
- package/dist/api/common/user-settings.d.ts +5 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/cjs/api/index.js +7 -0
- package/dist/cjs/api/index.js.map +1 -0
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/hooks/index.js +2 -0
- package/dist/cjs/hooks/index.js.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/utils/index.js +2 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs.js +2 -0
- package/dist/cjs.js.map +1 -0
- package/dist/components/TestComponent.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/es/api/index.js +2049 -0
- package/dist/es/api/index.js.map +1 -0
- package/dist/es/components/index.js +5 -0
- package/dist/es/components/index.js.map +1 -0
- package/dist/es/hooks/index.js +5 -0
- package/dist/es/hooks/index.js.map +1 -0
- package/dist/es/types/index.js +2 -0
- package/dist/es/types/index.js.map +1 -0
- package/dist/es/utils/index.js +2 -0
- package/dist/es/utils/index.js.map +1 -0
- package/dist/es.js +7 -0
- package/dist/es.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useTest.d.ts +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/main.d.ts +0 -0
- package/dist/types/api/auth.d.ts +34 -0
- package/dist/types/api/capture-rects.d.ts +10 -0
- package/dist/types/api/feedback.d.ts +58 -0
- package/dist/types/api/index copy.d.ts +10 -0
- package/dist/types/api/index.d.ts +11 -0
- package/dist/types/api/institution.d.ts +6 -0
- package/dist/types/api/llm/chat.d.ts +62 -0
- package/dist/types/api/llm/diarization.d.ts +30 -0
- package/dist/types/api/llm/disease-recommendation.d.ts +13 -0
- package/dist/types/api/llm/index.d.ts +5 -0
- package/dist/types/api/llm/medical-summary.d.ts +15 -0
- package/dist/types/api/llm/mindmap.d.ts +7 -0
- package/dist/types/api/notice.d.ts +29 -0
- package/dist/types/api/partners.d.ts +16 -0
- package/dist/types/api/records.d.ts +32 -0
- package/dist/types/api/speech.d.ts +83 -0
- package/dist/types/api/transcript.d.ts +10 -0
- package/dist/types/api/user-setting.d.ts +22 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/sio/base-response.dto.d.ts +4 -0
- package/dist/types/sio/index.d.ts +3 -0
- package/dist/types/sio/patient-info.dto.d.ts +4 -0
- package/dist/types/sio/ping-to-agent-response.dto.d.ts +5 -0
- package/dist/useTest-D5Q24BCy.cjs +6 -0
- package/dist/useTest-D5Q24BCy.cjs.map +1 -0
- package/dist/useTest-qnK2xvVl.js +52 -0
- package/dist/useTest-qnK2xvVl.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { TranscribeV2Response, TranscribeWithTranslationResponse, UploadRequest, UploadResponse, UploadWithTranslationRequest } from '../../../types/api';
|
|
2
|
+
export declare const speechApi: {
|
|
3
|
+
transcribeV2: ({ buffer, }: {
|
|
4
|
+
buffer: ArrayBuffer | Blob;
|
|
5
|
+
}) => Promise<TranscribeV2Response>;
|
|
6
|
+
transcribeWithTranslation: ({ buffer, language, }: {
|
|
7
|
+
buffer: ArrayBuffer | Blob;
|
|
8
|
+
language: string;
|
|
9
|
+
}) => Promise<TranscribeWithTranslationResponse>;
|
|
10
|
+
uploadWithTranslation: ({ opusBlob, chart, recordId, transcript, transcripts, durationSeconds, }: UploadWithTranslationRequest) => Promise<UploadResponse>;
|
|
11
|
+
upload: ({ opusBlob, vadBuffer, totalBuffer, chart, recordId, transcript, }: UploadRequest) => Promise<UploadResponse>;
|
|
12
|
+
chat: {
|
|
13
|
+
getChatRooms: (recordId: string) => Promise<import('../../../types').ChatRoomsResponse[]>;
|
|
14
|
+
deleteChatRoom: ({ roomId, }: {
|
|
15
|
+
roomId: string;
|
|
16
|
+
}) => Promise<import('../../../types').ChatRoomsResponse>;
|
|
17
|
+
getChatMessages: ({ roomId, }: {
|
|
18
|
+
roomId: string;
|
|
19
|
+
}) => Promise<{
|
|
20
|
+
roomId: string;
|
|
21
|
+
msgs: import('../../../types').LlmMsg[];
|
|
22
|
+
}>;
|
|
23
|
+
updateChatRoomName: ({ roomId, name, }: {
|
|
24
|
+
roomId: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}) => Promise<import('../../../types').ChatRoomsResponse>;
|
|
27
|
+
};
|
|
28
|
+
records: {
|
|
29
|
+
getRecords: () => Promise<import('../../../types').RecordsResponse[]>;
|
|
30
|
+
getRecordsWithPage: (dto: import('../../../types').RecordsPageRequest) => Promise<import('../../../types').RecordsWithPageResponse>;
|
|
31
|
+
deleteRecord: ({ recordId, }: {
|
|
32
|
+
recordId: string;
|
|
33
|
+
}) => Promise<import('../../../types').RecordsResponse>;
|
|
34
|
+
getRecordById: ({ recordId, }: {
|
|
35
|
+
recordId: string;
|
|
36
|
+
}) => Promise<import('../../../types').RecordsResponse>;
|
|
37
|
+
getTodayRecord: ({ chart, }: {
|
|
38
|
+
chart: string;
|
|
39
|
+
}) => Promise<Partial<import('../../../types').RecordsResponse>>;
|
|
40
|
+
getRecordsByChart: ({ chart, }: {
|
|
41
|
+
chart: string;
|
|
42
|
+
}) => Promise<import('../../../types').RecordsResponse[]>;
|
|
43
|
+
getRecordFromImage: ({ imageUrl, }: {
|
|
44
|
+
imageUrl: string;
|
|
45
|
+
}) => Promise<Partial<import('../../../types').RecordsResponse>>;
|
|
46
|
+
getRecordFromAgent: (patientInfo: import('../../../types').PatientInfoDto) => Promise<Partial<import('../../../types').RecordsResponse>>;
|
|
47
|
+
};
|
|
48
|
+
patients: {
|
|
49
|
+
getPatientByChart: ({ chart }: {
|
|
50
|
+
chart: string;
|
|
51
|
+
}) => Promise<import('../../../types').Patient>;
|
|
52
|
+
upsertPatient: ({ chart, name, }: import('../../../types').UpsertPatientRequest) => Promise<import('../../../types').Patient>;
|
|
53
|
+
};
|
|
54
|
+
audios: {
|
|
55
|
+
deleteAudioFile: ({ audioFileId, }: {
|
|
56
|
+
audioFileId: string;
|
|
57
|
+
}) => Promise<import('../../../types').AudioFile>;
|
|
58
|
+
};
|
|
59
|
+
recordData: {
|
|
60
|
+
resummaryPart: ({ recordId, level, part, }: import('../../../types').ResummaryPartRequest) => Promise<import('../../../types').MedicalSummaryResponse>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:mt}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:re,toStringTag:We}=Symbol,se=(e=>t=>{const n=mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>se(t)===e),oe=e=>t=>typeof t===e,{isArray:I}=Array,H=oe("undefined");function W(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ve=P("ArrayBuffer");function yt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ve(e.buffer),t}const wt=oe("string"),A=oe("function"),Ke=oe("number"),V=e=>e!==null&&typeof e=="object",bt=e=>e===!0||e===!1,Y=e=>{if(se(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(We in e)&&!(re in e)},gt=e=>{if(!V(e)||W(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Et=P("Date"),Rt=P("File"),St=P("Blob"),Ct=P("FileList"),At=e=>V(e)&&A(e.pipe),Ot=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=se(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},Tt=P("URLSearchParams"),[xt,Ft,Pt,Nt]=["ReadableStream","Request","Response","Headers"].map(P),kt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(W(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function ve(e,t){if(W(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xe=e=>!H(e)&&e!==L;function pe(){const{caseless:e,skipUndefined:t}=Xe(this)&&this||{},n={},r=(s,i)=>{const o=e&&ve(n,i)||i;Y(n[o])&&Y(s)?n[o]=pe(n[o],s):Y(s)?n[o]=pe({},s):I(s)?n[o]=s.slice():(!t||!H(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&K(arguments[s],r);return n}const Ut=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,i)=>{n&&A(s)?e[i]=Je(s,n):e[i]=s},{allOwnKeys:r}),e),_t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&we(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jt=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!Ke(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),qt=(e,t)=>{const r=(e&&e[re]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Ht=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},It=P("HTMLFormElement"),Mt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zt=P("RegExp"),Ge=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},Jt=e=>{Ge(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Wt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return I(e)?r(e):r(String(e).split(t)),n},Vt=()=>{},Kt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vt(e){return!!(e&&A(e.append)&&e[We]==="FormData"&&e[re])}const Xt=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(W(r))return r;if(!("toJSON"in r)){t[s]=r;const i=I(r)?[]:{};return K(r,(o,c)=>{const f=n(o,s+1);!H(f)&&(i[c]=f)}),t[s]=void 0,i}}return r};return n(e,0)},Gt=P("AsyncFunction"),Qt=e=>e&&(V(e)||A(e))&&A(e.then)&&A(e.catch),Qe=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:i})=>{s===L&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(L.postMessage)),Zt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Qe,Yt=e=>e!=null&&A(e[re]),a={isArray:I,isArrayBuffer:Ve,isBuffer:W,isFormData:Ot,isArrayBufferView:yt,isString:wt,isNumber:Ke,isBoolean:bt,isObject:V,isPlainObject:Y,isEmptyObject:gt,isReadableStream:xt,isRequest:Ft,isResponse:Pt,isHeaders:Nt,isUndefined:H,isDate:Et,isFile:Rt,isBlob:St,isRegExp:zt,isFunction:A,isStream:At,isURLSearchParams:Tt,isTypedArray:$t,isFileList:Ct,forEach:K,merge:pe,extend:Ut,trim:kt,stripBOM:_t,inherits:Bt,toFlatObject:Dt,kindOf:se,kindOfTest:P,endsWith:Lt,toArray:jt,forEachEntry:qt,matchAll:Ht,isHTMLForm:It,hasOwnProperty:xe,hasOwnProp:xe,reduceDescriptors:Ge,freezeMethods:Jt,toObjectSet:Wt,toCamelCase:Mt,noop:Vt,toFiniteNumber:Kt,findKey:ve,global:L,isContextDefined:Xe,isSpecCompliantForm:vt,toJSONObject:Xt,isAsyncFn:Gt,isThenable:Qt,setImmediate:Qe,asap:Zt,isIterable:Yt};function y(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ze=y.prototype,Ye={};["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=>{Ye[e]={value:e}});Object.defineProperties(y,Ye);Object.defineProperty(Ze,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Ze);a.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return y.call(o,c,f,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const en=null;function he(e){return a.isPlainObject(e)||a.isArray(e)}function et(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map(function(s,i){return s=et(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function tn(e){return a.isArray(e)&&!e.some(he)}const nn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,m,p){let g=d;if(d&&!p&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&tn(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(g=a.toArray(d)))return m=et(m),g.forEach(function(E,C){!(a.isUndefined(E)||E===null)&&t.append(o===!0?Fe([m],C,i):o===null?m:m+"[]",l(E))}),!1}return he(d)?!0:(t.append(Fe(p,m,i),l(d)),!1)}const h=[],w=Object.assign(nn,{defaultVisitor:u,convertValue:l,isVisitable:he});function R(d,m){if(!a.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(d),a.forEach(d,function(g,T){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(T)?T.trim():T,m,w))===!0&&R(g,m?m.concat(T):[T])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function Pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function be(e,t){this._pairs=[],e&&ie(e,this,t)}const tt=be.prototype;tt.append=function(t,n){this._pairs.push([t,n])};tt.toString=function(t){const n=t?function(r){return t.call(this,r,Pe)}:Pe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function rn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nt(e,t,n){if(!t)return e;const r=n&&n.encode||rn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new be(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ne{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sn=typeof URLSearchParams<"u"?URLSearchParams:be,on=typeof FormData<"u"?FormData:null,an=typeof Blob<"u"?Blob:null,cn={isBrowser:!0,classes:{URLSearchParams:sn,FormData:on,Blob:an},protocols:["http","https","file","blob","url","data"]},ge=typeof window<"u"&&typeof document<"u",me=typeof navigator=="object"&&navigator||void 0,un=ge&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),ln=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dn=ge&&window.location.href||"http://localhost",fn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:un,hasStandardBrowserWebWorkerEnv:ln,navigator:me,origin:dn},Symbol.toStringTag,{value:"Module"})),S={...fn,...cn};function pn(e,t){return ie(e,new S.classes.URLSearchParams,{visitor:function(n,r,s,i){return S.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function hn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function st(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),f=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=mn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(hn(r),s,n,0)}),n}return null}function yn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const v={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(st(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),yn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const wn=a.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"]),bn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&wn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ke=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function gn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const En=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let O=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,f,l){const u=J(f);if(!u)throw new Error("header name must be a non-empty string");const h=a.findKey(s,u);(!h||s[h]===void 0||l===!0||l===void 0&&s[h]!==!1)&&(s[h||f]=ee(c))}const o=(c,f)=>a.forEach(c,(l,u)=>i(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!En(t))o(bn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=J(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return gn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=J(o),o){const c=a.findKey(r,o);c&&(!n||le(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||le(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ee(s),delete n[i];return}const c=t?Rn(i):String(i).trim();c!==i&&delete n[i],n[c]=ee(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ke]=this[ke]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=J(o);r[c]||(Sn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(O);function de(e,t){const n=this||v,r=t||n,s=O.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function ot(e){return!!(e&&e.__CANCEL__)}function M(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(M,y,{__CANCEL__:!0});function it(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Cn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function An(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[i];o||(o=l),n[s]=f,r[s]=l;let h=i,w=0;for(;h!==s;)w+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const R=u&&l-u;return R?Math.round(w*1e3/R):void 0}}function On(e,t){let n=0,r=1e3/t,s,i;const o=(l,u=Date.now())=>{n=u,s=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),h=u-n;h>=r?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const ne=(e,t,n=3)=>{let r=0;const s=An(50,250);return On(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,f=o-r,l=s(f),u=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-o)/l:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Ue=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_e=e=>(...t)=>a.asap(()=>e(...t)),Tn=S.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,S.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0,xn=S.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.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 Fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function at(e,t,n){let r=!Fn(t);return e&&(r||n==!1)?Pn(e,t):t}const Be=e=>e instanceof O?{...e}:e;function $(e,t){t=t||{};const n={};function r(l,u,h,w){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:w},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,h,w){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,h,w)}else return r(l,u,h,w)}function i(l,u){if(!a.isUndefined(u))return r(void 0,u)}function o(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,h){if(h in t)return r(l,u);if(h in e)return r(void 0,l)}const f={url:i,method:i,data:i,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:c,headers:(l,u,h)=>s(Be(l),Be(u),h,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const h=f[u]||s,w=h(e[u],t[u],u);a.isUndefined(w)&&h!==c||(n[u]=w)}),n}const ct=e=>{const t=$({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=O.from(o),t.url=nt(at(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const f=n.getHeaders(),l=["content-type","content-length"];Object.entries(f).forEach(([u,h])=>{l.includes(u.toLowerCase())&&o.set(u,h)})}}if(S.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Tn(t.url))){const f=s&&i&&xn.read(i);f&&o.set(s,f)}return t},Nn=typeof XMLHttpRequest<"u",kn=Nn&&function(e){return new Promise(function(n,r){const s=ct(e);let i=s.data;const o=O.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=s,u,h,w,R,d;function m(){R&&R(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function g(){if(!p)return;const E=O.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:E,config:e,request:p};it(function(x){n(x),m()},function(x){r(x),m()},F),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(C){const F=C&&C.message?C.message:"Network Error",B=new y(F,y.ERR_NETWORK,e,p);B.event=C||null,r(B),p=null},p.ontimeout=function(){let C=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||rt;s.timeoutErrorMessage&&(C=s.timeoutErrorMessage),r(new y(C,F.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&a.forEach(o.toJSON(),function(C,F){p.setRequestHeader(F,C)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),l&&([w,d]=ne(l,!0),p.addEventListener("progress",w)),f&&p.upload&&([h,R]=ne(f),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(u=E=>{p&&(r(!E||E.type?new M(null,e,p):E),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const T=Cn(s.url);if(T&&S.protocols.indexOf(T)===-1){r(new y("Unsupported protocol "+T+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Un=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof y?u:new M(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},_n=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Bn=async function*(e,t){for await(const n of Dn(e))yield*_n(n,t)},Dn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},De=(e,t,n,r)=>{const s=Bn(e,t);let i=0,o,c=f=>{o||(o=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){c(),f.close();return}let h=u.byteLength;if(n){let w=i+=h;n(w)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Le=64*1024,{isFunction:Z}=a,Ln=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:je,TextEncoder:$e}=a.global,qe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jn=e=>{e=a.merge.call({skipUndefined:!0},Ln,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(r);if(!s)return!1;const c=s&&Z(je),f=s&&(typeof $e=="function"?(d=>m=>d.encode(m))(new $e):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&c&&qe(()=>{let d=!1;const m=new n(S.origin,{body:new je,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),u=o&&c&&qe(()=>a.isReadableStream(new r("").body)),h={stream:u&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!h[d]&&(h[d]=(m,p)=>{let g=m&&m[d];if(g)return g.call(m);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const w=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(S.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},R=async(d,m)=>{const p=a.toFiniteNumber(d.getContentLength());return p??w(m)};return async d=>{let{url:m,method:p,data:g,signal:T,cancelToken:E,timeout:C,onDownloadProgress:F,onUploadProgress:B,responseType:x,headers:ce,withCredentials:X="same-origin",fetchOptions:Re}=ct(d),Se=t||fetch;x=x?(x+"").toLowerCase():"text";let G=Un([T,E&&E.toAbortSignal()],C),z=null;const D=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Ce;try{if(B&&l&&p!=="get"&&p!=="head"&&(Ce=await R(ce,g))!==0){let _=new n(m,{method:"POST",body:g,duplex:"half"}),q;if(a.isFormData(g)&&(q=_.headers.get("content-type"))&&ce.setContentType(q),_.body){const[ue,Q]=Ue(Ce,ne(_e(B)));g=De(_.body,Le,ue,Q)}}a.isString(X)||(X=X?"include":"omit");const N=i&&"credentials"in n.prototype,Ae={...Re,signal:G,method:p.toUpperCase(),headers:ce.normalize().toJSON(),body:g,duplex:"half",credentials:N?X:void 0};z=i&&new n(m,Ae);let U=await(i?Se(z,Re):Se(m,Ae));const Oe=u&&(x==="stream"||x==="response");if(u&&(F||Oe&&D)){const _={};["status","statusText","headers"].forEach(Te=>{_[Te]=U[Te]});const q=a.toFiniteNumber(U.headers.get("content-length")),[ue,Q]=F&&Ue(q,ne(_e(F),!0))||[];U=new r(De(U.body,Le,ue,()=>{Q&&Q(),D&&D()}),_)}x=x||"text";let ht=await h[a.findKey(h,x)||"text"](U,d);return!Oe&&D&&D(),await new Promise((_,q)=>{it(_,q,{data:ht,headers:O.from(U.headers),status:U.status,statusText:U.statusText,config:d,request:z})})}catch(N){throw D&&D(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,d,z),{cause:N.cause||N}):y.from(N,N&&N.code,d,z)}}},$n=new Map,ut=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,f,l,u=$n;for(;c--;)f=i[c],l=u.get(f),l===void 0&&u.set(f,l=c?new Map:jn(t)),u=l;return l};ut();const Ee={http:en,xhr:kn,fetch:{get:ut}};a.forEach(Ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const He=e=>`- ${e}`,qn=e=>a.isFunction(e)||e===null||e===!1;function Hn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!qn(r)&&(s=Ee[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
|
|
4
|
+
`+o.map(He).join(`
|
|
5
|
+
`):" "+He(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const lt={getAdapter:Hn,adapters:Ee};function fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M(null,e)}function Ie(e){return fe(e),e.headers=O.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lt.getAdapter(e.adapter||v.adapter,e)(e).then(function(r){return fe(e),r.data=de.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return ot(r)||(fe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const dt="1.13.2",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Me={};ae.transitional=function(t,n,r){function s(i,o){return"[Axios v"+dt+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Me[o]&&(Me[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ae.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function In(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],f=c===void 0||o(c,i,e);if(f!==!0)throw new y("option "+i+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const te={assertOptions:In,validators:ae},k=te.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ne,response:new Ne}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:k.spelling("baseURL"),withXsrfToken:k.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=O.concat(o,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,h=0,w;if(!f){const d=[Ie.bind(this),void 0];for(d.unshift(...c),d.push(...l),w=d.length,u=Promise.resolve(n);h<w;)u=u.then(d[h++],d[h++]);return u}w=c.length;let R=n;for(;h<w;){const d=c[h++],m=c[h++];try{R=d(R)}catch(p){m.call(this,p);break}}try{u=Ie.call(this,R)}catch(d){return Promise.reject(d)}for(h=0,w=l.length;h<w;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=$(this.defaults,t);const n=at(t.baseURL,t.url,t.allowAbsoluteUrls);return nt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request($(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request($(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let Mn=class ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new M(i,o,c),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ft(function(s){t=s}),cancel:t}}};function zn(e){return function(n){return e.apply(null,n)}}function Jn(e){return a.isObject(e)&&e.isAxiosError===!0}const ye={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(ye).forEach(([e,t])=>{ye[t]=e});function pt(e){const t=new j(e),n=Je(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return pt($(e,s))},n}const b=pt(v);b.Axios=j;b.CanceledError=M;b.CancelToken=Mn;b.isCancel=ot;b.VERSION=dt;b.toFormData=ie;b.AxiosError=y;b.Cancel=b.CanceledError;b.all=function(t){return Promise.all(t)};b.spread=zn;b.isAxiosError=Jn;b.mergeConfig=$;b.AxiosHeaders=O;b.formToJSON=e=>st(a.isHTMLForm(e)?new FormData(e):e);b.getAdapter=lt.getAdapter;b.HttpStatusCode=ye;b.default=b;const{Axios:lr,AxiosError:dr,CanceledError:fr,isCancel:pr,CancelToken:hr,VERSION:mr,all:yr,Cancel:wr,isAxiosError:br,spread:gr,toFormData:Er,AxiosHeaders:Rr,HttpStatusCode:Sr,formToJSON:Cr,getAdapter:Ar,mergeConfig:Or}=b;exports.apiClient=void 0;const Wn=({baseURL:e,timeout:t=12e4,withCredentials:n=!0,headers:r,getAccessToken:s,getRefreshAccessToken:i,onUnauthorized:o,...c})=>(exports.apiClient=b.create({baseURL:e,timeout:t,withCredentials:n,headers:r||{"Content-Type":"application/json"},...c}),exports.apiClient.interceptors.request.use(f=>{const l=s();return l&&(f.headers.Authorization=`Bearer ${l}`),f},f=>Promise.reject(f)),exports.apiClient.interceptors.response.use(f=>f,async f=>{const l=f.config;if(l.url?.includes("/auth/login"))return Promise.reject(f);if(f.response?.status===401&&!l._retry){l._retry=!0;try{const u=await i();return l.headers.Authorization=`Bearer ${u}`,exports.apiClient(l)}catch(u){return o?.(),Promise.reject(u)}}return Promise.reject(f)}),exports.apiClient),Vn={getChatRooms:async e=>(await exports.apiClient.get(`/speech/chat/rooms/${e}`)).data,deleteChatRoom:async({roomId:e})=>(await exports.apiClient.delete(`/speech/chat/rooms/${e}`)).data,getChatMessages:async({roomId:e})=>{const t=await exports.apiClient.get(`/speech/chat/messages/${e}`);return{roomId:e,msgs:t.data}},updateChatRoomName:async({roomId:e,name:t})=>(await exports.apiClient.patch(`/speech/chat/rooms/${e}`,{name:t})).data},Kn={getRecords:async()=>(await exports.apiClient.get("/speech/records")).data,getRecordsWithPage:async e=>(await exports.apiClient.post("/speech/records",e)).data,deleteRecord:async({recordId:e})=>(await exports.apiClient.delete(`/speech/records/${e}`)).data,getRecordById:async({recordId:e})=>(await exports.apiClient.get(`/speech/records/${e}/details`)).data,getTodayRecord:async({chart:e})=>(await exports.apiClient.get("/speech/records/details/today",{params:{chart:e}})).data,getRecordsByChart:async({chart:e})=>(await exports.apiClient.get(`/speech/records/${e}`)).data,getRecordFromImage:async({imageUrl:e})=>(await exports.apiClient.post("/speech/records/from-image",{imageUrl:e})).data,getRecordFromAgent:async e=>(await exports.apiClient.post("/speech/records/from-agent",e)).data},vn={getPatientByChart:async({chart:e})=>(await exports.apiClient.get(`/speech/patients/${e}`)).data,upsertPatient:async({chart:e,name:t})=>(await exports.apiClient.put("/speech/patients",{chart:e,name:t})).data},Xn={deleteAudioFile:async({audioFileId:e})=>(await exports.apiClient.delete(`/speech/audios/${e}`)).data},Gn={resummaryPart:async({recordId:e,level:t,part:n})=>(await exports.apiClient.post("/speech/record-datas/resummary/part",{recordId:e,level:t,part:n})).data},Qn=e=>{const t=e instanceof Blob?e:new Blob([e],{type:"audio/pcm"}),n=new FormData;return n.append("file",t,"audio.pcm"),n},ze=async(e,t,n)=>{const r=Qn(t);return n&&r.append("language",n),(await exports.apiClient.post(e,r,{headers:{"Content-Type":"multipart/form-data"}})).data},Zn={transcribeV2:async({buffer:e})=>ze("/speech/transcribe-v2",e),transcribeWithTranslation:async({buffer:e,language:t})=>ze("/speech/transcribe-with-translation",e,t),uploadWithTranslation:async({opusBlob:e,chart:t,recordId:n,transcript:r,transcripts:s,durationSeconds:i})=>{const o=new FormData;return o.append("opusFile",new Blob([e],{type:"audio/webm"}),"audio.webm"),o.append("chart",t),o.append("transcript",r),o.append("transcripts",JSON.stringify(s)),o.append("durationSeconds",i.toString()),n&&o.append("recordId",n),(await exports.apiClient.post("/speech/upload-with-translation",o,{headers:{"Content-Type":"multipart/form-data"}})).data},upload:async({opusBlob:e,vadBuffer:t,totalBuffer:n,chart:r,recordId:s,transcript:i})=>{const o=new FormData;return o.append("opusFile",new Blob([e],{type:"audio/webm"}),"audio.webm"),o.append("totalFile",new Blob([n],{type:"audio/pcm"}),"audio.pcm"),t&&o.append("vadFile",new Blob([t],{type:"audio/pcm"}),"audio.pcm"),o.append("chart",r),o.append("transcript",i),s&&o.append("recordId",s),(await exports.apiClient.post("/speech/upload",o,{headers:{"Content-Type":"multipart/form-data"}})).data},chat:Vn,records:Kn,patients:vn,audios:Xn,recordData:Gn},Yn={getAudioFile:async({bucket:e,keys:t})=>(await exports.apiClient.get("/audio",{params:{bucket:e,keys:t},responseType:"blob"})).data},er={register:async e=>(await exports.apiClient.post("/auth/register",e)).data,login:async e=>(await exports.apiClient.post("/auth/login",e)).data,getMe:async()=>(await exports.apiClient.get("/auth/me")).data,logout:async()=>{await exports.apiClient.post("/auth/logout")},updateMe:async e=>(await exports.apiClient.patch("/auth/me",e)).data,generateNewUserKey:async({userId:e})=>(await exports.apiClient.put(`/auth/user/generate-key/${e}`)).data},tr={getMy:async()=>(await exports.apiClient.get("/capture-rects/my")).data},nr={listFeedbacks:async e=>(await exports.apiClient.post("/feedbacks/page",{page:e.page??1,count:e.count??30,status:e.status})).data,getFeedback:async e=>(await exports.apiClient.get(`/feedbacks/${e}`)).data,createFeedback:async e=>(await exports.apiClient.post("/feedbacks",e)).data,updateFeedback:async(e,t)=>(await exports.apiClient.put(`/feedbacks/${e}`,t)).data,deleteFeedback:async e=>(await exports.apiClient.delete(`/feedbacks/${e}`)).data,getComments:async e=>(await exports.apiClient.get(`/feedbacks/${e}/comments`)).data,createComment:async(e,t)=>(await exports.apiClient.post(`/feedbacks/${e}/comments`,t)).data,deleteComment:async e=>(await exports.apiClient.delete(`/feedbacks/comments/${e}`)).data,updateComment:async(e,t)=>(await exports.apiClient.put(`/feedbacks/comments/${e}`,t)).data},rr={diarization:async(e,t)=>(await exports.apiClient.post("/llm/diarization",e,{signal:t})).data,medicalSummary:async({request:e,signal:t})=>(await exports.apiClient.post("/llm/medical-summary",e,{signal:t})).data,mindmap:async({conversation:e})=>(await exports.apiClient.post("/llm/mindmap",{conversation:e})).data,diseaseRecommendation:async({conversation:e})=>(await exports.apiClient.post("/llm/disease-recommendation",{conversation:e})).data},sr={getNotices:async e=>(await exports.apiClient.post("/notices/page",{page:e?.page??1,count:e?.count??10,searchText:e?.searchText,showPublishedOnly:e?.showPublishedOnly??!0})).data,getNotice:async e=>(await exports.apiClient.get(`/notices/${e}`)).data},or={getPartners:async()=>(await exports.apiClient.get("/partners")).data},ir={subscribe:async e=>(await exports.apiClient.post("/push/subscribe",e.toJSON())).data,unsubscribe:async e=>(await exports.apiClient.post("/push/unsubscribe",{endpoint:e})).data,getSubscriptionStatus:async()=>(await exports.apiClient.get("/push/status")).data},ar={getUserSettings:async()=>(await exports.apiClient.get("/user-settings")).data,updateUserSettings:async e=>(await exports.apiClient.put("/user-settings",e)).data};exports.audioApi=Yn;exports.authApi=er;exports.captureRectsApi=tr;exports.feedbackApi=nr;exports.initailizeAxios=Wn;exports.llmApi=rr;exports.noticeApi=sr;exports.partnersApi=or;exports.pushApi=ir;exports.speechApi=Zn;exports.userSettingsApi=ar;
|
|
7
|
+
//# sourceMappingURL=index.js.map
|