@clickcns/vmedic-react 0.0.2 → 0.0.4

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.
@@ -2,9 +2,10 @@ import { AxiosInstance, CreateAxiosDefaults } from 'axios';
2
2
  interface CreateAxiosArg extends CreateAxiosDefaults {
3
3
  baseURL: string;
4
4
  getAccessToken: () => string | null;
5
- getRefreshAccessToken: () => Promise<string>;
6
- onUnauthorized?: () => void;
5
+ getRefreshAccessToken: () => Promise<string | undefined>;
6
+ onUnauthorized: () => void;
7
+ onRefreshTokenSuccess: (newAccessToken: string) => void;
7
8
  }
8
9
  export declare let apiClient: AxiosInstance;
9
- export declare const initailizeAxios: ({ baseURL, timeout, withCredentials, headers, getAccessToken, getRefreshAccessToken, onUnauthorized, ...props }: CreateAxiosArg) => AxiosInstance;
10
+ export declare const initializeAxios: ({ baseURL, timeout, withCredentials, headers, getAccessToken, getRefreshAccessToken, onUnauthorized, onRefreshTokenSuccess, ...props }: CreateAxiosArg) => AxiosInstance;
10
11
  export {};
@@ -10,4 +10,13 @@ export declare const authApi: {
10
10
  generateNewUserKey: ({ userId, }: {
11
11
  userId: string;
12
12
  }) => Promise<UserDto>;
13
+ adminLogin: (credentials: LoginRequest) => Promise<AuthResponse>;
14
+ updateUser: (data: Partial<UserDto>) => Promise<{
15
+ user: UserDto;
16
+ }>;
17
+ deleteUser: (userId: string) => Promise<void>;
18
+ changePassword: (data: {
19
+ currentPassword: string;
20
+ newPassword: string;
21
+ }) => Promise<void>;
13
22
  };
@@ -1,4 +1,12 @@
1
- import { CaptureRect } from '../../types';
1
+ import { CaptureRect, CreateCaptureRectRequest, DeleteCaptureRectResponse, UpdateCaptureRectRequest } from '../../types';
2
2
  export declare const captureRectsApi: {
3
3
  getMy: () => Promise<CaptureRect>;
4
+ getCaptureRects: () => Promise<CaptureRect[]>;
5
+ getCaptureRect: (id: string) => Promise<CaptureRect>;
6
+ createCaptureRect: (data: CreateCaptureRectRequest) => Promise<CaptureRect>;
7
+ updateCaptureRect: ({ id, data, }: {
8
+ id: string;
9
+ data: UpdateCaptureRectRequest;
10
+ }) => Promise<CaptureRect>;
11
+ deleteCaptureRect: (id: string) => Promise<DeleteCaptureRectResponse>;
4
12
  };
@@ -8,3 +8,4 @@ export * from './notice';
8
8
  export * from './partners';
9
9
  export * from './push';
10
10
  export * from './user-settings';
11
+ export * from './institutions';
@@ -0,0 +1,10 @@
1
+ import { Institution } from '../../types';
2
+ export declare const institutionsApi: {
3
+ getInstitutions: () => Promise<Institution[]>;
4
+ register: (data: Institution) => Promise<Institution>;
5
+ update: ({ ykiho, data, }: {
6
+ ykiho: string;
7
+ data: Partial<Institution>;
8
+ }) => Promise<Institution>;
9
+ delete: (ykiho: string) => Promise<void>;
10
+ };
@@ -1,5 +1,8 @@
1
- import { Notice, NoticeListRequest, NoticeListResponse } from '../../types';
1
+ import { CreateNoticeRequest, Notice, NoticeListRequest, NoticeListResponse, UpdateNoticeRequest } from '../../types';
2
2
  export declare const noticeApi: {
3
3
  getNotices: (params?: NoticeListRequest) => Promise<NoticeListResponse>;
4
4
  getNotice: (id: string) => Promise<Notice>;
5
+ createNotice: (data: CreateNoticeRequest) => Promise<Notice>;
6
+ updateNotice: (id: string, data: UpdateNoticeRequest) => Promise<Notice>;
7
+ deleteNotice: (id: string) => Promise<void>;
5
8
  };
@@ -1,4 +1,9 @@
1
1
  import { PartnerDto } from '../../types';
2
+ import { CreatePartnerRequest, UpdatePartnerRequest } from '../../types/api';
2
3
  export declare const partnersApi: {
3
4
  getPartners: () => Promise<PartnerDto[]>;
5
+ getPartner: (id: string) => Promise<PartnerDto>;
6
+ createPartner: (request: CreatePartnerRequest) => Promise<PartnerDto>;
7
+ updatePartner: (id: string, request: UpdatePartnerRequest) => Promise<PartnerDto>;
8
+ deletePartner: (id: string) => Promise<PartnerDto>;
4
9
  };
@@ -1,3 +1,4 @@
1
+ import { SendNotificationRequest } from '../../types';
1
2
  export declare const pushApi: {
2
3
  /**
3
4
  * Push 구독 정보를 서버에 저장
@@ -18,4 +19,9 @@ export declare const pushApi: {
18
19
  isSubscribed: boolean;
19
20
  endpoint?: string;
20
21
  }>;
22
+ /**
23
+ * Push 알림 전송
24
+ * @param notification - 알림 요청 데이터
25
+ */
26
+ sendNotification: (notification: SendNotificationRequest) => Promise<void>;
21
27
  };
@@ -1,4 +1,4 @@
1
- import { RecordsPageRequest, RecordsResponse, RecordsWithPageResponse } from '../../../types/api';
1
+ import { GetRecordsByDatesRequest, GetRecordsByDatesResponse, Patient, RecordData, RecordsPageRequest, RecordsResponse, RecordsWithPageResponse } from '../../../types/api';
2
2
  import { PatientInfoDto } from '../../../types';
3
3
  export declare const speechRecords: {
4
4
  getRecords: () => Promise<RecordsResponse[]>;
@@ -19,4 +19,9 @@ export declare const speechRecords: {
19
19
  imageUrl: string;
20
20
  }) => Promise<Partial<RecordsResponse>>;
21
21
  getRecordFromAgent: (patientInfo: PatientInfoDto) => Promise<Partial<RecordsResponse>>;
22
+ getRecordsByDates: ({ startDate, endDate, page, searchText, ykiho, username, }: GetRecordsByDatesRequest) => Promise<GetRecordsByDatesResponse>;
23
+ getPatients: () => Promise<Patient[]>;
24
+ getRecordData: ({ recordId, }: {
25
+ recordId: string;
26
+ }) => Promise<RecordData>;
22
27
  };
@@ -44,6 +44,11 @@ export declare const speechApi: {
44
44
  imageUrl: string;
45
45
  }) => Promise<Partial<import('../../../types').RecordsResponse>>;
46
46
  getRecordFromAgent: (patientInfo: import('../../../types').PatientInfoDto) => Promise<Partial<import('../../../types').RecordsResponse>>;
47
+ getRecordsByDates: ({ startDate, endDate, page, searchText, ykiho, username, }: import('../../../types').GetRecordsByDatesRequest) => Promise<import('../../../types').GetRecordsByDatesResponse>;
48
+ getPatients: () => Promise<import('../../../types').Patient[]>;
49
+ getRecordData: ({ recordId, }: {
50
+ recordId: string;
51
+ }) => Promise<import('../../../types').RecordData>;
47
52
  };
48
53
  patients: {
49
54
  getPatientByChart: ({ chart }: {
@@ -1,2 +1,2 @@
1
- export { initailizeAxios, apiClient } from './axios';
1
+ export { initializeAxios as initailizeAxios, apiClient } from './axios';
2
2
  export * from './common';
@@ -1,7 +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;
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:se,toStringTag:We}=Symbol,re=(e=>t=>{const n=mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>re(t)===e),oe=e=>t=>typeof t===e,{isArray:H}=Array,I=oe("undefined");function W(e){return e!==null&&!I(e)&&e.constructor!==null&&!I(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ve=F("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(re(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(We in e)&&!(se 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}},Ct=F("Date"),Et=F("File"),Rt=F("Blob"),St=F("FileList"),At=e=>V(e)&&A(e.pipe),Ot=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=re(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},Tt=F("URLSearchParams"),[xt,Pt,Ft,Nt]=["ReadableStream","Request","Response","Headers"].map(F),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 s,r;if(typeof e!="object"&&(e=[e]),H(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(W(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(s=0;s<o;s++)c=i[s],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 s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xe=e=>!I(e)&&e!==L;function fe(){const{caseless:e,skipUndefined:t}=Xe(this)&&this||{},n={},s=(r,i)=>{const o=e&&ve(n,i)||i;Y(n[o])&&Y(r)?n[o]=fe(n[o],r):Y(r)?n[o]=fe({},r):H(r)?n[o]=r.slice():(!t||!I(r))&&(n[o]=r)};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&K(arguments[r],s);return n}const Ut=(e,t,n,{allOwnKeys:s}={})=>(K(t,(r,i)=>{n&&A(r)?e[i]=Je(r,n):e[i]=r},{allOwnKeys:s}),e),_t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bt=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dt=(e,t,n,s)=>{let r,i,o;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(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 s=e.indexOf(t,n);return s!==-1&&s===n},$t=e=>{if(!e)return null;if(H(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},jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),qt=(e,t)=>{const s=(e&&e[se]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},It=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Ht=F("HTMLFormElement"),Mt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zt=F("RegExp"),Ge=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};K(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},Jt=e=>{Ge(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(A(s)){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={},s=r=>{r.forEach(i=>{n[i]=!0})};return H(e)?s(e):s(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[se])}const Xt=e=>{const t=new Array(10),n=(s,r)=>{if(V(s)){if(t.indexOf(s)>=0)return;if(W(s))return s;if(!("toJSON"in s)){t[r]=s;const i=H(s)?[]:{};return K(s,(o,c)=>{const p=n(o,r+1);!I(p)&&(i[c]=p)}),t[r]=void 0,i}}return s};return n(e,0)},Gt=F("AsyncFunction"),Qt=e=>e&&(V(e)||A(e))&&A(e.then)&&A(e.catch),Qe=((e,t)=>e?setImmediate:t?((n,s)=>(L.addEventListener("message",({source:r,data:i})=>{r===L&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),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[se]),a={isArray:H,isArrayBuffer:Ve,isBuffer:W,isFormData:Ot,isArrayBufferView:yt,isString:wt,isNumber:Ke,isBoolean:bt,isObject:V,isPlainObject:Y,isEmptyObject:gt,isReadableStream:xt,isRequest:Pt,isResponse:Ft,isHeaders:Nt,isUndefined:I,isDate:Ct,isFile:Et,isBlob:Rt,isRegExp:zt,isFunction:A,isStream:At,isURLSearchParams:Tt,isTypedArray:jt,isFileList:St,forEach:K,merge:fe,extend:Ut,trim:kt,stripBOM:_t,inherits:Bt,toFlatObject:Dt,kindOf:re,kindOfTest:F,endsWith:Lt,toArray:$t,forEachEntry:qt,matchAll:It,isHTMLForm:Ht,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,s,r){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),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.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,s,r,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",p=t==null&&e?e.code:t;return y.call(o,c,p,n,s,r),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 Pe(e,t,n){return e?e.concat(t).map(function(r,i){return r=et(r),!n&&i?"["+r+"]":r}).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,h){return!a.isUndefined(h[m])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(r))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(!p&&a.isBlob(d))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?p&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,m,h){let g=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=s?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(C,S){!(a.isUndefined(C)||C===null)&&t.append(o===!0?Pe([m],S,i):o===null?m:m+"[]",l(C))}),!1}return he(d)?!0:(t.append(Pe(h,m,i),l(d)),!1)}const f=[],w=Object.assign(nn,{defaultVisitor:u,convertValue:l,isVisitable:he});function E(d,m){if(!a.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(d),a.forEach(d,function(g,T){(!(a.isUndefined(g)||g===null)&&r.call(t,g,a.isString(T)?T.trim():T,m,w))===!0&&E(g,m?m.concat(T):[T])}),f.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}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(s){return t.call(this,s,Fe)}:Fe;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function sn(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 s=n&&n.encode||sn;a.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=a.isURLSearchParams(t)?t.toString():new be(t,n).toString(s),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,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.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(s){s!==null&&t(s)})}}const st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rn=typeof URLSearchParams<"u"?URLSearchParams:be,on=typeof FormData<"u"?FormData:null,an=typeof Blob<"u"?Blob:null,cn={isBrowser:!0,classes:{URLSearchParams:rn,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",pn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:un,hasStandardBrowserWebWorkerEnv:ln,navigator:me,origin:dn},Symbol.toStringTag,{value:"Module"})),R={...pn,...cn};function fn(e,t){return ie(e,new R.classes.URLSearchParams,{visitor:function(n,s,r,i){return R.isNode&&a.isBuffer(n)?(this.append(s,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 s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function rt(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),p=i>=n.length;return o=!o&&a.isArray(r)?r.length:o,p?(a.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!c):((!r[o]||!a.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&a.isArray(r[o])&&(r[o]=mn(r[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(hn(s),r,n,0)}),n}return null}function yn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const v={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(rt(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(s.indexOf("application/x-www-form-urlencoded")>-1)return fn(t,this.formSerializer).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),yn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;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:R.classes.FormData,Blob:R.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,s,r;return e&&e.split(`
2
+ `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&wn[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),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 s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Cn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,s,r){if(a.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function En(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Rn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let O=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(c,p,l){const u=J(p);if(!u)throw new Error("header name must be a non-empty string");const f=a.findKey(r,u);(!f||r[f]===void 0||l===!0||l===void 0&&r[f]!==!1)&&(r[f||p]=ee(c))}const o=(c,p)=>a.forEach(c,(l,u)=>i(l,u,p));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!Cn(t))o(bn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},p,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(p=c[l])?a.isArray(p)?[...p,u[1]]:[p,u[1]]:u[1]}o(c,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=J(t),t){const s=a.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return gn(r);if(a.isFunction(n))return n.call(this,r,s);if(a.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J(t),t){const s=a.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||le(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=J(o),o){const c=a.findKey(s,o);c&&(!n||le(s,s[c],c,n))&&(delete s[c],r=!0)}}return a.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||le(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return a.forEach(this,(r,i)=>{const o=a.findKey(s,i);if(o){n[o]=ee(r),delete n[i];return}const c=t?En(i):String(i).trim();c!==i&&delete n[i],n[c]=ee(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&a.isArray(s)?s.join(", "):s)}),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 s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[ke]=this[ke]={accessors:{}}).accessors,r=this.prototype;function i(o){const c=J(o);s[c]||(Rn(r,o),s[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(s){this[n]=s}}});a.freezeMethods(O);function de(e,t){const n=this||v,s=t||n,r=O.from(s.headers);let i=s.data;return a.forEach(e,function(c){i=c.call(n,i,r.normalize(),t?t.status:void 0)}),r.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 s=n.config.validateStatus;!n.status||!s||s(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 Sn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function An(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(p){const l=Date.now(),u=s[i];o||(o=l),n[r]=p,s[r]=l;let f=i,w=0;for(;f!==r;)w+=n[f++],f=f%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o<t)return;const E=u&&l-u;return E?Math.round(w*1e3/E):void 0}}function On(e,t){let n=0,s=1e3/t,r,i;const o=(l,u=Date.now())=>{n=u,r=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),f=u-n;f>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-f)))},()=>r&&o(r)]}const ne=(e,t,n=3)=>{let s=0;const r=An(50,250);return On(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,p=o-s,l=r(p),u=o<=c;s=o;const f={loaded:o,total:c,progress:c?o/c:void 0,bytes:p,rate:l||void 0,estimated:l&&c&&u?(c-o)/l:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},Ue=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},_e=e=>(...t)=>a.asap(()=>e(...t)),Tn=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,xn=R.hasStandardBrowserEnv?{write(e,t,n,s,r,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(s)&&c.push(`path=${s}`),a.isString(r)&&c.push(`domain=${r}`),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 Pn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function at(e,t,n){let s=!Pn(t);return e&&(s||n==!1)?Fn(e,t):t}const Be=e=>e instanceof O?{...e}:e;function j(e,t){t=t||{};const n={};function s(l,u,f,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 r(l,u,f,w){if(a.isUndefined(u)){if(!a.isUndefined(l))return s(void 0,l,f,w)}else return s(l,u,f,w)}function i(l,u){if(!a.isUndefined(u))return s(void 0,u)}function o(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function c(l,u,f){if(f in t)return s(l,u);if(f in e)return s(void 0,l)}const p={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,f)=>r(Be(l),Be(u),f,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const f=p[u]||r,w=f(e[u],t[u],u);a.isUndefined(w)&&f!==c||(n[u]=w)}),n}const ct=e=>{const t=j({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,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(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const p=n.getHeaders(),l=["content-type","content-length"];Object.entries(p).forEach(([u,f])=>{l.includes(u.toLowerCase())&&o.set(u,f)})}}if(R.hasStandardBrowserEnv&&(s&&a.isFunction(s)&&(s=s(t)),s||s!==!1&&Tn(t.url))){const p=r&&i&&xn.read(i);p&&o.set(r,p)}return t},Nn=typeof XMLHttpRequest<"u",kn=Nn&&function(e){return new Promise(function(n,s){const r=ct(e);let i=r.data;const o=O.from(r.headers).normalize();let{responseType:c,onUploadProgress:p,onDownloadProgress:l}=r,u,f,w,E,d;function m(){E&&E(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;const C=O.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};it(function(x){n(x),m()},function(x){s(x),m()},P),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(s(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(S){const P=S&&S.message?S.message:"Network Error",B=new y(P,y.ERR_NETWORK,e,h);B.event=S||null,s(B),h=null},h.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const P=r.transitional||st;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),s(new y(S,P.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(S,P){h.setRequestHeader(P,S)}),a.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),c&&c!=="json"&&(h.responseType=r.responseType),l&&([w,d]=ne(l,!0),h.addEventListener("progress",w)),p&&h.upload&&([f,E]=ne(p),h.upload.addEventListener("progress",f),h.upload.addEventListener("loadend",E)),(r.cancelToken||r.signal)&&(u=C=>{h&&(s(!C||C.type?new M(null,e,h):C),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const T=Sn(r.url);if(T&&R.protocols.indexOf(T)===-1){s(new y("Unsupported protocol "+T+":",y.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Un=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,c();const u=l instanceof Error?l:this.reason;s.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:p}=s;return p.unsubscribe=()=>a.asap(c),p}},_n=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},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:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},De=(e,t,n,s)=>{const r=Bn(e,t);let i=0,o,c=p=>{o||(o=!0,s&&s(p))};return new ReadableStream({async pull(p){try{const{done:l,value:u}=await r.next();if(l){c(),p.close();return}let f=u.byteLength;if(n){let w=i+=f;n(w)}p.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(p){return c(p),r.return()}},{highWaterMark:2})},Le=64*1024,{isFunction:Z}=a,Ln=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:$e,TextEncoder:je}=a.global,qe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$n=e=>{e=a.merge.call({skipUndefined:!0},Ln,e);const{fetch:t,Request:n,Response:s}=e,r=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(s);if(!r)return!1;const c=r&&Z($e),p=r&&(typeof je=="function"?(d=>m=>d.encode(m))(new je):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&c&&qe(()=>{let d=!1;const m=new n(R.origin,{body:new $e,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),u=o&&c&&qe(()=>a.isReadableStream(new s("").body)),f={stream:u&&(d=>d.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(m,h)=>{let g=m&&m[d];if(g)return g.call(m);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,h)})});const w=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(R.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 p(d)).byteLength},E=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??w(m)};return async d=>{let{url:m,method:h,data:g,signal:T,cancelToken:C,timeout:S,onDownloadProgress:P,onUploadProgress:B,responseType:x,headers:ce,withCredentials:X="same-origin",fetchOptions:Ee}=ct(d),Re=t||fetch;x=x?(x+"").toLowerCase():"text";let G=Un([T,C&&C.toAbortSignal()],S),z=null;const D=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Se;try{if(B&&l&&h!=="get"&&h!=="head"&&(Se=await E(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(Se,ne(_e(B)));g=De(_.body,Le,ue,Q)}}a.isString(X)||(X=X?"include":"omit");const N=i&&"credentials"in n.prototype,Ae={...Ee,signal:G,method:h.toUpperCase(),headers:ce.normalize().toJSON(),body:g,duplex:"half",credentials:N?X:void 0};z=i&&new n(m,Ae);let U=await(i?Re(z,Ee):Re(m,Ae));const Oe=u&&(x==="stream"||x==="response");if(u&&(P||Oe&&D)){const _={};["status","statusText","headers"].forEach(Te=>{_[Te]=U[Te]});const q=a.toFiniteNumber(U.headers.get("content-length")),[ue,Q]=P&&Ue(q,ne(_e(P),!0))||[];U=new s(De(U.body,Le,ue,()=>{Q&&Q(),D&&D()}),_)}x=x||"text";let ht=await f[a.findKey(f,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)}}},jn=new Map,ut=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,i=[s,r,n];let o=i.length,c=o,p,l,u=jn;for(;c--;)p=i[c],l=u.get(p),l===void 0&&u.set(p,l=c?new Map:$n(t)),u=l;return l};ut();const Ce={http:en,xhr:kn,fetch:{get:ut}};a.forEach(Ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ie=e=>`- ${e}`,qn=e=>a.isFunction(e)||e===null||e===!1;function In(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let s,r;const i={};for(let o=0;o<n;o++){s=e[o];let c;if(r=s,!qn(s)&&(r=Ce[(c=String(s)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${c}'`);if(r&&(a.isFunction(r)||(r=r.get(t))))break;i[c||"#"+o]=r}if(!r){const o=Object.entries(i).map(([p,l])=>`adapter ${p} `+(l===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
4
+ `+o.map(Ie).join(`
5
+ `):" "+Ie(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r}const lt={getAdapter:In,adapters:Ce};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M(null,e)}function He(e){return pe(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(s){return pe(e),s.data=de.call(e,e.transformResponse,s),s.headers=O.from(s.headers),s},function(s){return ot(s)||(pe(e),s&&s.response&&(s.response.data=de.call(e,e.transformResponse,s.response),s.response.headers=O.from(s.response.headers))),Promise.reject(s)})}const dt="1.13.2",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Me={};ae.transitional=function(t,n,s){function r(i,o){return"[Axios v"+dt+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,c)=>{if(t===!1)throw new y(r(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Me[o]&&(Me[o]=!0,console.warn(r(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,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Hn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const c=e[i],p=c===void 0||o(c,i,e);if(p!==!0)throw new y("option "+i+" must be "+p,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const te={assertOptions:Hn,validators:ae},k=te.validators;let $=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(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
6
+ `+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=j(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&te.assertOptions(s,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),r!=null&&(a.isFunction(r)?n.paramsSerializer={serialize:r}:te.assertOptions(r,{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 p=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(p=p&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,f=0,w;if(!p){const d=[He.bind(this),void 0];for(d.unshift(...c),d.push(...l),w=d.length,u=Promise.resolve(n);f<w;)u=u.then(d[f++],d[f++]);return u}w=c.length;let E=n;for(;f<w;){const d=c[f++],m=c[f++];try{E=d(E)}catch(h){m.call(this,h);break}}try{u=He.call(this,E)}catch(d){return Promise.reject(d)}for(f=0,w=l.length;f<w;)u=u.then(l[f++],l[f++]);return u}getUri(t){t=j(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){$.prototype[t]=function(n,s){return this.request(j(s||{},{method:t,url:n,data:(s||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,c){return this.request(j(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}$.prototype[t]=n(),$.prototype[t+"Form"]=n(!0)});let Mn=class pt{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 s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(c=>{s.subscribe(c),i=c}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,c){s.reason||(s.reason=new M(i,o,c),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pt(function(r){t=r}),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 ft(e){const t=new $(e),n=Je($.prototype.request,t);return a.extend(n,$.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return ft(j(e,r))},n}const b=ft(v);b.Axios=$;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=j;b.AxiosHeaders=O;b.formToJSON=e=>rt(a.isHTMLForm(e)?new FormData(e):e);b.getAdapter=lt.getAdapter;b.HttpStatusCode=ye;b.default=b;const{Axios:ds,AxiosError:ps,CanceledError:fs,isCancel:hs,CancelToken:ms,VERSION:ys,all:ws,Cancel:bs,isAxiosError:gs,spread:Cs,toFormData:Es,AxiosHeaders:Rs,HttpStatusCode:Ss,formToJSON:As,getAdapter:Os,mergeConfig:Ts}=b;exports.apiClient=void 0;const Wn=({baseURL:e,timeout:t=12e4,withCredentials:n=!0,headers:s,getAccessToken:r,getRefreshAccessToken:i,onUnauthorized:o,onRefreshTokenSuccess:c,...p})=>(exports.apiClient=b.create({baseURL:e,timeout:t,withCredentials:n,headers:s||{"Content-Type":"application/json"},...p}),exports.apiClient.interceptors.request.use(l=>{const u=r();return u&&(l.headers.Authorization=`Bearer ${u}`),l},l=>Promise.reject(l)),exports.apiClient.interceptors.response.use(l=>l,async l=>{const u=l.config;if(u.url?.includes("/auth/login"))return Promise.reject(l);if(l.response?.status===401&&!u._retry){u._retry=!0;try{const f=await i();if(!f)throw new Error("Failed to refresh access token");return u.headers.Authorization=`Bearer ${f}`,c(f),exports.apiClient(u)}catch(f){return o(),Promise.reject(f)}}return Promise.reject(l)}),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,getRecordsByDates:async({startDate:e,endDate:t,page:n,searchText:s,ykiho:r,username:i})=>(await exports.apiClient.get("/speech/records/by-dates",{params:{startDate:e,endDate:t,page:Number(n),...s&&{searchText:s},...r&&{ykiho:r},...i&&{username:i}}})).data,getPatients:async()=>(await exports.apiClient.get("/speech/patients")).data,getRecordData:async({recordId:e})=>(await exports.apiClient.get(`/speech/record-datas/${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 s=Qn(t);return n&&s.append("language",n),(await exports.apiClient.post(e,s,{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:s,transcripts:r,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",s),o.append("transcripts",JSON.stringify(r)),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:s,recordId:r,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",s),o.append("transcript",i),r&&o.append("recordId",r),(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},es={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,adminLogin:async e=>(await exports.apiClient.post("/auth/admin-login",e)).data,updateUser:async e=>(await exports.apiClient.put(`/auth/user/${e.id}`,e)).data,deleteUser:async e=>{await exports.apiClient.delete(`/auth/user/${e}`)},changePassword:async e=>{await exports.apiClient.patch("/auth/me/change-password",e)}},ts={getMy:async()=>(await exports.apiClient.get("/capture-rects/my")).data,getCaptureRects:async()=>(await exports.apiClient.get("capture-rects")).data,getCaptureRect:async e=>(await exports.apiClient.get(`capture-rects/${e}`)).data,createCaptureRect:async e=>(await exports.apiClient.post("capture-rects",e)).data,updateCaptureRect:async({id:e,data:t})=>(await exports.apiClient.patch(`capture-rects/${e}`,t)).data,deleteCaptureRect:async e=>(await exports.apiClient.delete(`capture-rects/${e}`)).data},ns={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},ss={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},rs={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,createNotice:async e=>(await exports.apiClient.post("/notices",e)).data,updateNotice:async(e,t)=>(await exports.apiClient.put(`/notices/${e}`,t)).data,deleteNotice:async e=>{await exports.apiClient.delete(`/notices/${e}`)}},os={getPartners:async()=>(await exports.apiClient.get("/partners")).data,getPartner:async e=>(await exports.apiClient.get(`/partners/${e}`)).data,createPartner:async e=>(await exports.apiClient.post("/partners",e)).data,updatePartner:async(e,t)=>(await exports.apiClient.patch(`/partners/${e}`,t)).data,deletePartner:async e=>(await exports.apiClient.delete(`/partners/${e}`)).data},is={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,sendNotification:async e=>{await exports.apiClient.post("/push/send",e)}},as={getUserSettings:async()=>(await exports.apiClient.get("/user-settings")).data,updateUserSettings:async e=>(await exports.apiClient.put("/user-settings",e)).data},cs={getInstitutions:async()=>(await exports.apiClient.get("institutions")).data,register:async e=>(await exports.apiClient.post("institutions",e)).data,update:async({ykiho:e,data:t})=>(await exports.apiClient.patch(`institutions/${e}`,t)).data,delete:async e=>{await exports.apiClient.delete(`institutions/${e}`)}};exports.audioApi=Yn;exports.authApi=es;exports.captureRectsApi=ts;exports.feedbackApi=ns;exports.initailizeAxios=Wn;exports.institutionsApi=cs;exports.llmApi=ss;exports.noticeApi=rs;exports.partnersApi=os;exports.pushApi=is;exports.speechApi=Zn;exports.userSettingsApi=as;
7
7
  //# sourceMappingURL=index.js.map