@regulaforensics/facesdk-webclient 7.2.276-nightly → 7.2.278-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Me(t,e){return function(){return t.apply(e,arguments)}}const{toString:pt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:ae,toStringTag:je}=Symbol,ie=(t=>e=>{const s=pt.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),U=t=>(t=t.toLowerCase(),e=>ie(e)===t),ce=t=>e=>typeof e===t,{isArray:Q}=Array,z=ce("undefined");function ht(t){return t!==null&&!z(t)&&t.constructor!==null&&!z(t.constructor)&&L(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ke=U("ArrayBuffer");function ft(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ke(t.buffer),e}const mt=ce("string"),L=ce("function"),ve=ce("number"),le=t=>t!==null&&typeof t=="object",Et=t=>t===!0||t===!1,ee=t=>{if(ie(t)!=="object")return!1;const e=Pe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(je in t)&&!(ae in t)},At=U("Date"),Ot=U("File"),yt=U("Blob"),St=U("FileList"),Rt=t=>le(t)&&L(t.pipe),gt=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||L(t.append)&&((e=ie(t))==="formdata"||e==="object"&&L(t.toString)&&t.toString()==="[object FormData]"))},Pt=U("URLSearchParams"),[Tt,Ct,bt,_t]=["ReadableStream","Request","Response","Headers"].map(U),wt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),Q(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const o=s?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let i;for(r=0;r<a;r++)i=o[r],e.call(null,t[i],i,t)}}function qe(t,e){e=e.toLowerCase();const s=Object.keys(t);let r=s.length,n;for(;r-- >0;)if(n=s[r],e===n.toLowerCase())return n;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qe=t=>!z(t)&&t!==j;function Ae(){const{caseless:t}=Qe(this)&&this||{},e={},s=(r,n)=>{const o=t&&qe(e,n)||n;ee(e[o])&&ee(r)?e[o]=Ae(e[o],r):ee(r)?e[o]=Ae({},r):Q(r)?e[o]=r.slice():e[o]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&X(arguments[r],s);return e}const It=(t,e,s,{allOwnKeys:r}={})=>(X(e,(n,o)=>{s&&L(n)?t[o]=Me(n,s):t[o]=n},{allOwnKeys:r}),t),Nt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Lt=(t,e,s,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},Ft=(t,e,s,r)=>{let n,o,a;const i={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)a=n[o],(!r||r(a,t,e))&&!i[a]&&(e[a]=t[a],i[a]=!0);t=s!==!1&&Pe(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},Ut=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const r=t.indexOf(e,s);return r!==-1&&r===s},Vt=t=>{if(!t)return null;if(Q(t))return t;let e=t.length;if(!ve(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},Dt=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Gt=(t,e)=>{const r=(t&&t[ae]).call(t);let n;for(;(n=r.next())&&!n.done;){const o=n.value;e.call(t,o[0],o[1])}},Ht=(t,e)=>{let s;const r=[];for(;(s=t.exec(e))!==null;)r.push(s);return r},xt=U("HTMLFormElement"),Bt=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,r,n){return r.toUpperCase()+n}),_e=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),Mt=U("RegExp"),$e=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),r={};X(s,(n,o)=>{let a;(a=e(n,o,t))!==!1&&(r[o]=a||n)}),Object.defineProperties(t,r)},jt=t=>{$e(t,(e,s)=>{if(L(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=t[s];if(L(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},kt=(t,e)=>{const s={},r=n=>{n.forEach(o=>{s[o]=!0})};return Q(t)?r(t):r(String(t).split(e)),s},vt=()=>{},qt=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Qt(t){return!!(t&&L(t.append)&&t[je]==="FormData"&&t[ae])}const $t=t=>{const e=new Array(10),s=(r,n)=>{if(le(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const o=Q(r)?[]:{};return X(r,(a,i)=>{const c=s(a,n+1);!z(c)&&(o[i]=c)}),e[n]=void 0,o}}return r};return s(t,0)},Wt=U("AsyncFunction"),Kt=t=>t&&(le(t)||L(t))&&L(t.then)&&L(t.catch),We=((t,e)=>t?setImmediate:e?((s,r)=>(j.addEventListener("message",({source:n,data:o})=>{n===j&&o===s&&r.length&&r.shift()()},!1),n=>{r.push(n),j.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",L(j.postMessage)),zt=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||We,Xt=t=>t!=null&&L(t[ae]),u={isArray:Q,isArrayBuffer:ke,isBuffer:ht,isFormData:gt,isArrayBufferView:ft,isString:mt,isNumber:ve,isBoolean:Et,isObject:le,isPlainObject:ee,isReadableStream:Tt,isRequest:Ct,isResponse:bt,isHeaders:_t,isUndefined:z,isDate:At,isFile:Ot,isBlob:yt,isRegExp:Mt,isFunction:L,isStream:Rt,isURLSearchParams:Pt,isTypedArray:Dt,isFileList:St,forEach:X,merge:Ae,extend:It,trim:wt,stripBOM:Nt,inherits:Lt,toFlatObject:Ft,kindOf:ie,kindOfTest:U,endsWith:Ut,toArray:Vt,forEachEntry:Gt,matchAll:Ht,isHTMLForm:xt,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:$e,freezeMethods:jt,toObjectSet:kt,toCamelCase:Bt,noop:vt,toFiniteNumber:qt,findKey:qe,global:j,isContextDefined:Qe,isSpecCompliantForm:Qt,toJSONObject:$t,isAsyncFn:Wt,isThenable:Kt,setImmediate:We,asap:zt,isIterable:Xt};function E(t,e,s,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}u.inherits(E,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Ke=E.prototype,ze={};["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(t=>{ze[t]={value:t}});Object.defineProperties(E,ze);Object.defineProperty(Ke,"isAxiosError",{value:!0});E.from=(t,e,s,r,n,o)=>{const a=Object.create(Ke);return u.toFlatObject(t,a,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),E.call(a,t.message,e,s,r,n),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const Jt=null;function Oe(t){return u.isPlainObject(t)||u.isArray(t)}function Xe(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function we(t,e,s){return t?t.concat(e).map(function(n,o){return n=Xe(n),!s&&o?"["+n+"]":n}).join(s?".":""):e}function Yt(t){return u.isArray(t)&&!t.some(Oe)}const Zt=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function ue(t,e,s){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=u.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,f){return!u.isUndefined(f[A])});const r=s.metaTokens,n=s.visitor||d,o=s.dots,a=s.indexes,c=(s.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(e);if(!u.isFunction(n))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(u.isBoolean(h))return h.toString();if(!c&&u.isBlob(h))throw new E("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,A,f){let C=h;if(h&&!f&&typeof h=="object"){if(u.endsWith(A,"{}"))A=r?A:A.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&Yt(h)||(u.isFileList(h)||u.endsWith(A,"[]"))&&(C=u.toArray(h)))return A=Xe(A),C.forEach(function(w,G){!(u.isUndefined(w)||w===null)&&e.append(a===!0?we([A],G,o):a===null?A:A+"[]",l(w))}),!1}return Oe(h)?!0:(e.append(we(f,A,o),l(h)),!1)}const p=[],O=Object.assign(Zt,{defaultVisitor:d,convertValue:l,isVisitable:Oe});function b(h,A){if(!u.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+A.join("."));p.push(h),u.forEach(h,function(C,_){(!(u.isUndefined(C)||C===null)&&n.call(e,C,u.isString(_)?_.trim():_,A,O))===!0&&b(C,A?A.concat(_):[_])}),p.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return b(t),e}function Ie(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Te(t,e){this._pairs=[],t&&ue(t,this,e)}const Je=Te.prototype;Je.append=function(e,s){this._pairs.push([e,s])};Je.toString=function(e){const s=e?function(r){return e.call(this,r,Ie)}:Ie;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};function es(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(t,e,s){if(!e)return t;const r=s&&s.encode||es;u.isFunction(s)&&(s={serialize:s});const n=s&&s.serialize;let o;if(n?o=n(e,s):o=u.isURLSearchParams(e)?e.toString():new Te(e,s).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Ne{constructor(){this.handlers=[]}use(e,s,r){return this.handlers.push({fulfilled:e,rejected:s,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ts=typeof URLSearchParams<"u"?URLSearchParams:Te,ss=typeof FormData<"u"?FormData:null,rs=typeof Blob<"u"?Blob:null,ns={isBrowser:!0,classes:{URLSearchParams:ts,FormData:ss,Blob:rs},protocols:["http","https","file","blob","url","data"]},Ce=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,os=Ce&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),as=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",is=Ce&&window.location.href||"http://localhost",cs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserEnv:os,hasStandardBrowserWebWorkerEnv:as,navigator:ye,origin:is},Symbol.toStringTag,{value:"Module"})),I={...cs,...ns};function ls(t,e){return ue(t,new I.classes.URLSearchParams,Object.assign({visitor:function(s,r,n,o){return I.isNode&&u.isBuffer(s)?(this.append(r,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function us(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ds(t){const e={},s=Object.keys(t);let r;const n=s.length;let o;for(r=0;r<n;r++)o=s[r],e[o]=t[o];return e}function et(t){function e(s,r,n,o){let a=s[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),c=o>=s.length;return a=!a&&u.isArray(n)?n.length:a,c?(u.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i):((!n[a]||!u.isObject(n[a]))&&(n[a]=[]),e(s,r,n[a],o)&&u.isArray(n[a])&&(n[a]=ds(n[a])),!i)}if(u.isFormData(t)&&u.isFunction(t.entries)){const s={};return u.forEachEntry(t,(r,n)=>{e(us(r),n,s,0)}),s}return null}function ps(t,e,s){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(t)}const J={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const r=s.getContentType()||"",n=r.indexOf("application/json")>-1,o=u.isObject(e);if(o&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return n?JSON.stringify(et(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ls(e,this.formSerializer).toString();if((i=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ue(i?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),ps(e)):e}],transformResponse:[function(e){const s=this.transitional||J.transitional,r=s&&s.forcedJSONParsing,n=this.responseType==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!this.responseType||n)){const a=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(a)throw i.name==="SyntaxError"?E.from(i,E.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],t=>{J.headers[t]={}});const hs=u.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"]),fs=t=>{const e={};let s,r,n;return t&&t.split(`
2
- `).forEach(function(a){n=a.indexOf(":"),s=a.substring(0,n).trim().toLowerCase(),r=a.substring(n+1).trim(),!(!s||e[s]&&hs[s])&&(s==="set-cookie"?e[s]?e[s].push(r):e[s]=[r]:e[s]=e[s]?e[s]+", "+r:r)}),e},Le=Symbol("internals");function K(t){return t&&String(t).trim().toLowerCase()}function te(t){return t===!1||t==null?t:u.isArray(t)?t.map(te):String(t)}function ms(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(t);)e[r[1]]=r[2];return e}const Es=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function he(t,e,s,r,n){if(u.isFunction(r))return r.call(this,e,s);if(n&&(e=s),!!u.isString(e)){if(u.isString(r))return e.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(e)}}function As(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,r)=>s.toUpperCase()+r)}function Os(t,e){const s=u.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+s,{value:function(n,o,a){return this[r].call(this,e,n,o,a)},configurable:!0})})}let F=class{constructor(e){e&&this.set(e)}set(e,s,r){const n=this;function o(i,c,l){const d=K(c);if(!d)throw new Error("header name must be a non-empty string");const p=u.findKey(n,d);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(n[p||c]=te(i))}const a=(i,c)=>u.forEach(i,(l,d)=>o(l,d,c));if(u.isPlainObject(e)||e instanceof this.constructor)a(e,s);else if(u.isString(e)&&(e=e.trim())&&!Es(e))a(fs(e),s);else if(u.isObject(e)&&u.isIterable(e)){let i={},c,l;for(const d of e){if(!u.isArray(d))throw TypeError("Object iterator must return a key-value pair");i[l=d[0]]=(c=i[l])?u.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}a(i,s)}else e!=null&&o(s,e,r);return this}get(e,s){if(e=K(e),e){const r=u.findKey(this,e);if(r){const n=this[r];if(!s)return n;if(s===!0)return ms(n);if(u.isFunction(s))return s.call(this,n,r);if(u.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=K(e),e){const r=u.findKey(this,e);return!!(r&&this[r]!==void 0&&(!s||he(this,this[r],r,s)))}return!1}delete(e,s){const r=this;let n=!1;function o(a){if(a=K(a),a){const i=u.findKey(r,a);i&&(!s||he(r,r[i],i,s))&&(delete r[i],n=!0)}}return u.isArray(e)?e.forEach(o):o(e),n}clear(e){const s=Object.keys(this);let r=s.length,n=!1;for(;r--;){const o=s[r];(!e||he(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const s=this,r={};return u.forEach(this,(n,o)=>{const a=u.findKey(r,o);if(a){s[a]=te(n),delete s[o];return}const i=e?As(o):String(o).trim();i!==o&&delete s[o],s[i]=te(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return u.forEach(this,(r,n)=>{r!=null&&r!==!1&&(s[n]=e&&u.isArray(r)?r.join(", "):r)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const r=new this(e);return s.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[Le]=this[Le]={accessors:{}}).accessors,n=this.prototype;function o(a){const i=K(a);r[i]||(Os(n,a),r[i]=!0)}return u.isArray(e)?e.forEach(o):o(e),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(F.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[s]=r}}});u.freezeMethods(F);function fe(t,e){const s=this||J,r=e||s,n=F.from(r.headers);let o=r.data;return u.forEach(t,function(i){o=i.call(s,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function tt(t){return!!(t&&t.__CANCEL__)}function $(t,e,s){E.call(this,t??"canceled",E.ERR_CANCELED,e,s),this.name="CanceledError"}u.inherits($,E,{__CANCEL__:!0});function st(t,e,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?t(s):e(new E("Request failed with status code "+s.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ys(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ss(t,e){t=t||10;const s=new Array(t),r=new Array(t);let n=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=r[o];a||(a=l),s[n]=c,r[n]=l;let p=o,O=0;for(;p!==n;)O+=s[p++],p=p%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),l-a<e)return;const b=d&&l-d;return b?Math.round(O*1e3/b):void 0}}function Rs(t,e){let s=0,r=1e3/e,n,o;const a=(l,d=Date.now())=>{s=d,n=null,o&&(clearTimeout(o),o=null),t.apply(null,l)};return[(...l)=>{const d=Date.now(),p=d-s;p>=r?a(l,d):(n=l,o||(o=setTimeout(()=>{o=null,a(n)},r-p)))},()=>n&&a(n)]}const re=(t,e,s=3)=>{let r=0;const n=Ss(50,250);return Rs(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,c=a-r,l=n(c),d=a<=i;r=a;const p={loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&d?(i-a)/l:void 0,event:o,lengthComputable:i!=null,[e?"download":"upload"]:!0};t(p)},s)},Fe=(t,e)=>{const s=t!=null;return[r=>e[0]({lengthComputable:s,total:t,loaded:r}),e[1]]},Ue=t=>(...e)=>u.asap(()=>t(...e)),gs=I.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,I.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,Ps=I.hasStandardBrowserEnv?{write(t,e,s,r,n,o){const a=[t+"="+encodeURIComponent(e)];u.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),u.isString(r)&&a.push("path="+r),u.isString(n)&&a.push("domain="+n),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ts(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Cs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function rt(t,e,s){let r=!Ts(e);return t&&(r||s==!1)?Cs(t,e):e}const Ve=t=>t instanceof F?{...t}:t;function v(t,e){e=e||{};const s={};function r(l,d,p,O){return u.isPlainObject(l)&&u.isPlainObject(d)?u.merge.call({caseless:O},l,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function n(l,d,p,O){if(u.isUndefined(d)){if(!u.isUndefined(l))return r(void 0,l,p,O)}else return r(l,d,p,O)}function o(l,d){if(!u.isUndefined(d))return r(void 0,d)}function a(l,d){if(u.isUndefined(d)){if(!u.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function i(l,d,p){if(p in e)return r(l,d);if(p in t)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(l,d,p)=>n(Ve(l),Ve(d),p,!0)};return u.forEach(Object.keys(Object.assign({},t,e)),function(d){const p=c[d]||n,O=p(t[d],e[d],d);u.isUndefined(O)&&p!==i||(s[d]=O)}),s}const nt=t=>{const e=v({},t);let{data:s,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:o,headers:a,auth:i}=e;e.headers=a=F.from(a),e.url=Ye(rt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let c;if(u.isFormData(s)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...d].join("; "))}}if(I.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(e)),r||r!==!1&&gs(e.url))){const l=n&&o&&Ps.read(o);l&&a.set(n,l)}return e},bs=typeof XMLHttpRequest<"u",_s=bs&&function(t){return new Promise(function(s,r){const n=nt(t);let o=n.data;const a=F.from(n.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:l}=n,d,p,O,b,h;function A(){b&&b(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function C(){if(!f)return;const w=F.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),N={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:w,config:t,request:f};st(function(B){s(B),A()},function(B){r(B),A()},N),f=null}"onloadend"in f?f.onloadend=C:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(C)},f.onabort=function(){f&&(r(new E("Request aborted",E.ECONNABORTED,t,f)),f=null)},f.onerror=function(){r(new E("Network Error",E.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let G=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const N=n.transitional||Ze;n.timeoutErrorMessage&&(G=n.timeoutErrorMessage),r(new E(G,N.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,t,f)),f=null},o===void 0&&a.setContentType(null),"setRequestHeader"in f&&u.forEach(a.toJSON(),function(G,N){f.setRequestHeader(N,G)}),u.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),i&&i!=="json"&&(f.responseType=n.responseType),l&&([O,h]=re(l,!0),f.addEventListener("progress",O)),c&&f.upload&&([p,b]=re(c),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",b)),(n.cancelToken||n.signal)&&(d=w=>{f&&(r(!w||w.type?new $(null,t,f):w),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const _=ys(n.url);if(_&&I.protocols.indexOf(_)===-1){r(new E("Unsupported protocol "+_+":",E.ERR_BAD_REQUEST,t));return}f.send(o||null)})},ws=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let r=new AbortController,n;const o=function(l){if(!n){n=!0,i();const d=l instanceof Error?l:this.reason;r.abort(d instanceof E?d:new $(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,o(new E(`timeout ${e} of ms exceeded`,E.ETIMEDOUT))},e);const i=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),t=null)};t.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>u.asap(i),c}},Is=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let r=0,n;for(;r<s;)n=r+e,yield t.slice(r,n),r=n},Ns=async function*(t,e){for await(const s of Ls(t))yield*Is(s,e)},Ls=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:r}=await e.read();if(s)break;yield r}}finally{await e.cancel()}},De=(t,e,s,r)=>{const n=Ns(t,e);let o=0,a,i=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await n.next();if(l){i(),c.close();return}let p=d.byteLength;if(s){let O=o+=p;s(O)}c.enqueue(new Uint8Array(d))}catch(l){throw i(l),l}},cancel(c){return i(c),n.return()}},{highWaterMark:2})},de=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ot=de&&typeof ReadableStream=="function",Fs=de&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),at=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Us=ot&&at(()=>{let t=!1;const e=new Request(I.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ge=64*1024,Se=ot&&at(()=>u.isReadableStream(new Response("").body)),ne={stream:Se&&(t=>t.body)};de&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ne[e]&&(ne[e]=u.isFunction(t[e])?s=>s[e]():(s,r)=>{throw new E(`Response type '${e}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const Vs=async t=>{if(t==null)return 0;if(u.isBlob(t))return t.size;if(u.isSpecCompliantForm(t))return(await new Request(I.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(u.isArrayBufferView(t)||u.isArrayBuffer(t))return t.byteLength;if(u.isURLSearchParams(t)&&(t=t+""),u.isString(t))return(await Fs(t)).byteLength},Ds=async(t,e)=>{const s=u.toFiniteNumber(t.getContentLength());return s??Vs(e)},Gs=de&&(async t=>{let{url:e,method:s,data:r,signal:n,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:c,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:O}=nt(t);l=l?(l+"").toLowerCase():"text";let b=ws([n,o&&o.toAbortSignal()],a),h;const A=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let f;try{if(c&&Us&&s!=="get"&&s!=="head"&&(f=await Ds(d,r))!==0){let N=new Request(e,{method:"POST",body:r,duplex:"half"}),x;if(u.isFormData(r)&&(x=N.headers.get("content-type"))&&d.setContentType(x),N.body){const[B,Y]=Fe(f,re(Ue(c)));r=De(N.body,Ge,B,Y)}}u.isString(p)||(p=p?"include":"omit");const C="credentials"in Request.prototype;h=new Request(e,{...O,signal:b,method:s.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?p:void 0});let _=await fetch(h,O);const w=Se&&(l==="stream"||l==="response");if(Se&&(i||w&&A)){const N={};["status","statusText","headers"].forEach(be=>{N[be]=_[be]});const x=u.toFiniteNumber(_.headers.get("content-length")),[B,Y]=i&&Fe(x,re(Ue(i),!0))||[];_=new Response(De(_.body,Ge,B,()=>{Y&&Y(),A&&A()}),N)}l=l||"text";let G=await ne[u.findKey(ne,l)||"text"](_,t);return!w&&A&&A(),await new Promise((N,x)=>{st(N,x,{data:G,headers:F.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:h})})}catch(C){throw A&&A(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,t,h),{cause:C.cause||C}):E.from(C,C&&C.code,t,h)}}),Re={http:Jt,xhr:_s,fetch:Gs};u.forEach(Re,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const He=t=>`- ${t}`,Hs=t=>u.isFunction(t)||t===null||t===!1,it={getAdapter:t=>{t=u.isArray(t)?t:[t];const{length:e}=t;let s,r;const n={};for(let o=0;o<e;o++){s=t[o];let a;if(r=s,!Hs(s)&&(r=Re[(a=String(s)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${a}'`);if(r)break;n[a||"#"+o]=r}if(!r){const o=Object.entries(n).map(([i,c])=>`adapter ${i} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function je(s,e){return function(){return s.apply(e,arguments)}}const{toString:yt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:ae,toStringTag:ke}=Symbol,ie=(s=>e=>{const t=yt.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),U=s=>(s=s.toLowerCase(),e=>ie(e)===s),ce=s=>e=>typeof e===s,{isArray:$}=Array,K=ce("undefined");function St(s){return s!==null&&!K(s)&&s.constructor!==null&&!K(s.constructor)&&N(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const ve=U("ArrayBuffer");function Rt(s){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(s):e=s&&s.buffer&&ve(s.buffer),e}const gt=ce("string"),N=ce("function"),ze=ce("number"),le=s=>s!==null&&typeof s=="object",Pt=s=>s===!0||s===!1,ee=s=>{if(ie(s)!=="object")return!1;const e=Pe(s);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(ke in s)&&!(ae in s)},Tt=U("Date"),Ct=U("File"),bt=U("Blob"),_t=U("FileList"),wt=s=>le(s)&&N(s.pipe),It=s=>{let e;return s&&(typeof FormData=="function"&&s instanceof FormData||N(s.append)&&((e=ie(s))==="formdata"||e==="object"&&N(s.toString)&&s.toString()==="[object FormData]"))},Lt=U("URLSearchParams"),[Nt,Ft,Ut,Vt]=["ReadableStream","Request","Response","Headers"].map(U),Dt=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(s,e,{allOwnKeys:t=!1}={}){if(s===null||typeof s>"u")return;let r,n;if(typeof s!="object"&&(s=[s]),$(s))for(r=0,n=s.length;r<n;r++)e.call(null,s[r],r,s);else{const o=t?Object.getOwnPropertyNames(s):Object.keys(s),a=o.length;let i;for(r=0;r<a;r++)i=o[r],e.call(null,s[i],i,s)}}function Qe(s,e){e=e.toLowerCase();const t=Object.keys(s);let r=t.length,n;for(;r-- >0;)if(n=t[r],e===n.toLowerCase())return n;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$e=s=>!K(s)&&s!==j;function Ae(){const{caseless:s}=$e(this)&&this||{},e={},t=(r,n)=>{const o=s&&Qe(e,n)||n;ee(e[o])&&ee(r)?e[o]=Ae(e[o],r):ee(r)?e[o]=Ae({},r):$(r)?e[o]=r.slice():e[o]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&X(arguments[r],t);return e}const Gt=(s,e,t,{allOwnKeys:r}={})=>(X(e,(n,o)=>{t&&N(n)?s[o]=je(n,t):s[o]=n},{allOwnKeys:r}),s),Ht=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),xt=(s,e,t,r)=>{s.prototype=Object.create(e.prototype,r),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:e.prototype}),t&&Object.assign(s.prototype,t)},Bt=(s,e,t,r)=>{let n,o,a;const i={};if(e=e||{},s==null)return e;do{for(n=Object.getOwnPropertyNames(s),o=n.length;o-- >0;)a=n[o],(!r||r(a,s,e))&&!i[a]&&(e[a]=s[a],i[a]=!0);s=t!==!1&&Pe(s)}while(s&&(!t||t(s,e))&&s!==Object.prototype);return e},Mt=(s,e,t)=>{s=String(s),(t===void 0||t>s.length)&&(t=s.length),t-=e.length;const r=s.indexOf(e,t);return r!==-1&&r===t},jt=s=>{if(!s)return null;if($(s))return s;let e=s.length;if(!ze(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=s[e];return t},kt=(s=>e=>s&&e instanceof s)(typeof Uint8Array<"u"&&Pe(Uint8Array)),vt=(s,e)=>{const r=(s&&s[ae]).call(s);let n;for(;(n=r.next())&&!n.done;){const o=n.value;e.call(s,o[0],o[1])}},zt=(s,e)=>{let t;const r=[];for(;(t=s.exec(e))!==null;)r.push(t);return r},Qt=U("HTMLFormElement"),$t=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),_e=(({hasOwnProperty:s})=>(e,t)=>s.call(e,t))(Object.prototype),qt=U("RegExp"),qe=(s,e)=>{const t=Object.getOwnPropertyDescriptors(s),r={};X(t,(n,o)=>{let a;(a=e(n,o,s))!==!1&&(r[o]=a||n)}),Object.defineProperties(s,r)},Wt=s=>{qe(s,(e,t)=>{if(N(s)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=s[t];if(N(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Kt=(s,e)=>{const t={},r=n=>{n.forEach(o=>{t[o]=!0})};return $(s)?r(s):r(String(s).split(e)),t},Xt=()=>{},Jt=(s,e)=>s!=null&&Number.isFinite(s=+s)?s:e;function Yt(s){return!!(s&&N(s.append)&&s[ke]==="FormData"&&s[ae])}const Zt=s=>{const e=new Array(10),t=(r,n)=>{if(le(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const o=$(r)?[]:{};return X(r,(a,i)=>{const c=t(a,n+1);!K(c)&&(o[i]=c)}),e[n]=void 0,o}}return r};return t(s,0)},es=U("AsyncFunction"),ts=s=>s&&(le(s)||N(s))&&N(s.then)&&N(s.catch),We=((s,e)=>s?setImmediate:e?((t,r)=>(j.addEventListener("message",({source:n,data:o})=>{n===j&&o===t&&r.length&&r.shift()()},!1),n=>{r.push(n),j.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",N(j.postMessage)),ss=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||We,rs=s=>s!=null&&N(s[ae]),u={isArray:$,isArrayBuffer:ve,isBuffer:St,isFormData:It,isArrayBufferView:Rt,isString:gt,isNumber:ze,isBoolean:Pt,isObject:le,isPlainObject:ee,isReadableStream:Nt,isRequest:Ft,isResponse:Ut,isHeaders:Vt,isUndefined:K,isDate:Tt,isFile:Ct,isBlob:bt,isRegExp:qt,isFunction:N,isStream:wt,isURLSearchParams:Lt,isTypedArray:kt,isFileList:_t,forEach:X,merge:Ae,extend:Gt,trim:Dt,stripBOM:Ht,inherits:xt,toFlatObject:Bt,kindOf:ie,kindOfTest:U,endsWith:Mt,toArray:jt,forEachEntry:vt,matchAll:zt,isHTMLForm:Qt,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:qe,freezeMethods:Wt,toObjectSet:Kt,toCamelCase:$t,noop:Xt,toFiniteNumber:Jt,findKey:Qe,global:j,isContextDefined:$e,isSpecCompliantForm:Yt,toJSONObject:Zt,isAsyncFn:es,isThenable:ts,setImmediate:We,asap:ss,isIterable:rs};function E(s,e,t,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}u.inherits(E,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Ke=E.prototype,Xe={};["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(s=>{Xe[s]={value:s}});Object.defineProperties(E,Xe);Object.defineProperty(Ke,"isAxiosError",{value:!0});E.from=(s,e,t,r,n,o)=>{const a=Object.create(Ke);return u.toFlatObject(s,a,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),E.call(a,s.message,e,t,r,n),a.cause=s,a.name=s.name,o&&Object.assign(a,o),a};const ns=null;function Oe(s){return u.isPlainObject(s)||u.isArray(s)}function Je(s){return u.endsWith(s,"[]")?s.slice(0,-2):s}function we(s,e,t){return s?s.concat(e).map(function(n,o){return n=Je(n),!t&&o?"["+n+"]":n}).join(t?".":""):e}function os(s){return u.isArray(s)&&!s.some(Oe)}const as=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function ue(s,e,t){if(!u.isObject(s))throw new TypeError("target must be an object");e=e||new FormData,t=u.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,f){return!u.isUndefined(f[A])});const r=t.metaTokens,n=t.visitor||d,o=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(e);if(!u.isFunction(n))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(u.isBoolean(h))return h.toString();if(!c&&u.isBlob(h))throw new E("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,A,f){let C=h;if(h&&!f&&typeof h=="object"){if(u.endsWith(A,"{}"))A=r?A:A.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&os(h)||(u.isFileList(h)||u.endsWith(A,"[]"))&&(C=u.toArray(h)))return A=Je(A),C.forEach(function(w,G){!(u.isUndefined(w)||w===null)&&e.append(a===!0?we([A],G,o):a===null?A:A+"[]",l(w))}),!1}return Oe(h)?!0:(e.append(we(f,A,o),l(h)),!1)}const p=[],O=Object.assign(as,{defaultVisitor:d,convertValue:l,isVisitable:Oe});function b(h,A){if(!u.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+A.join("."));p.push(h),u.forEach(h,function(C,_){(!(u.isUndefined(C)||C===null)&&n.call(e,C,u.isString(_)?_.trim():_,A,O))===!0&&b(C,A?A.concat(_):[_])}),p.pop()}}if(!u.isObject(s))throw new TypeError("data must be an object");return b(s),e}function Ie(s){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Te(s,e){this._pairs=[],s&&ue(s,this,e)}const Ye=Te.prototype;Ye.append=function(e,t){this._pairs.push([e,t])};Ye.toString=function(e){const t=e?function(r){return e.call(this,r,Ie)}:Ie;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function is(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ze(s,e,t){if(!e)return s;const r=t&&t.encode||is;u.isFunction(t)&&(t={serialize:t});const n=t&&t.serialize;let o;if(n?o=n(e,t):o=u.isURLSearchParams(e)?e.toString():new Te(e,t).toString(r),o){const a=s.indexOf("#");a!==-1&&(s=s.slice(0,a)),s+=(s.indexOf("?")===-1?"?":"&")+o}return s}class Le{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cs=typeof URLSearchParams<"u"?URLSearchParams:Te,ls=typeof FormData<"u"?FormData:null,us=typeof Blob<"u"?Blob:null,ds={isBrowser:!0,classes:{URLSearchParams:cs,FormData:ls,Blob:us},protocols:["http","https","file","blob","url","data"]},Ce=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,ps=Ce&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),hs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fs=Ce&&window.location.href||"http://localhost",ms=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserEnv:ps,hasStandardBrowserWebWorkerEnv:hs,navigator:ye,origin:fs},Symbol.toStringTag,{value:"Module"})),I={...ms,...ds};function Es(s,e){return ue(s,new I.classes.URLSearchParams,Object.assign({visitor:function(t,r,n,o){return I.isNode&&u.isBuffer(t)?(this.append(r,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function As(s){return u.matchAll(/\w+|\[(\w*)]/g,s).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Os(s){const e={},t=Object.keys(s);let r;const n=t.length;let o;for(r=0;r<n;r++)o=t[r],e[o]=s[o];return e}function tt(s){function e(t,r,n,o){let a=t[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),c=o>=t.length;return a=!a&&u.isArray(n)?n.length:a,c?(u.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i):((!n[a]||!u.isObject(n[a]))&&(n[a]=[]),e(t,r,n[a],o)&&u.isArray(n[a])&&(n[a]=Os(n[a])),!i)}if(u.isFormData(s)&&u.isFunction(s.entries)){const t={};return u.forEachEntry(s,(r,n)=>{e(As(r),n,t,0)}),t}return null}function ys(s,e,t){if(u.isString(s))try{return(e||JSON.parse)(s),u.trim(s)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(s)}const J={transitional:et,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=u.isObject(e);if(o&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return n?JSON.stringify(tt(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Es(e,this.formSerializer).toString();if((i=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ue(i?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),ys(e)):e}],transformResponse:[function(e){const t=this.transitional||J.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!this.responseType||n)){const a=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(a)throw i.name==="SyntaxError"?E.from(i,E.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],s=>{J.headers[s]={}});const Ss=u.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"]),Rs=s=>{const e={};let t,r,n;return s&&s.split(`
2
+ `).forEach(function(a){n=a.indexOf(":"),t=a.substring(0,n).trim().toLowerCase(),r=a.substring(n+1).trim(),!(!t||e[t]&&Ss[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Ne=Symbol("internals");function W(s){return s&&String(s).trim().toLowerCase()}function te(s){return s===!1||s==null?s:u.isArray(s)?s.map(te):String(s)}function gs(s){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(s);)e[r[1]]=r[2];return e}const Ps=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function he(s,e,t,r,n){if(u.isFunction(r))return r.call(this,e,t);if(n&&(e=t),!!u.isString(e)){if(u.isString(r))return e.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(e)}}function Ts(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Cs(s,e){const t=u.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(s,r+t,{value:function(n,o,a){return this[r].call(this,e,n,o,a)},configurable:!0})})}let F=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(i,c,l){const d=W(c);if(!d)throw new Error("header name must be a non-empty string");const p=u.findKey(n,d);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(n[p||c]=te(i))}const a=(i,c)=>u.forEach(i,(l,d)=>o(l,d,c));if(u.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(u.isString(e)&&(e=e.trim())&&!Ps(e))a(Rs(e),t);else if(u.isObject(e)&&u.isIterable(e)){let i={},c,l;for(const d of e){if(!u.isArray(d))throw TypeError("Object iterator must return a key-value pair");i[l=d[0]]=(c=i[l])?u.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}a(i,t)}else e!=null&&o(t,e,r);return this}get(e,t){if(e=W(e),e){const r=u.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return gs(n);if(u.isFunction(t))return t.call(this,n,r);if(u.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=W(e),e){const r=u.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||he(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function o(a){if(a=W(a),a){const i=u.findKey(r,a);i&&(!t||he(r,r[i],i,t))&&(delete r[i],n=!0)}}return u.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];(!e||he(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return u.forEach(this,(n,o)=>{const a=u.findKey(r,o);if(a){t[a]=te(n),delete t[o];return}const i=e?Ts(o):String(o).trim();i!==o&&delete t[o],t[i]=te(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return u.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&u.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[Ne]=this[Ne]={accessors:{}}).accessors,n=this.prototype;function o(a){const i=W(a);r[i]||(Cs(n,a),r[i]=!0)}return u.isArray(e)?e.forEach(o):o(e),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(F.prototype,({value:s},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>s,set(r){this[t]=r}}});u.freezeMethods(F);function fe(s,e){const t=this||J,r=e||t,n=F.from(r.headers);let o=r.data;return u.forEach(s,function(i){o=i.call(t,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function st(s){return!!(s&&s.__CANCEL__)}function q(s,e,t){E.call(this,s??"canceled",E.ERR_CANCELED,e,t),this.name="CanceledError"}u.inherits(q,E,{__CANCEL__:!0});function rt(s,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?s(t):e(new E("Request failed with status code "+t.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function bs(s){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return e&&e[1]||""}function _s(s,e){s=s||10;const t=new Array(s),r=new Array(s);let n=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=r[o];a||(a=l),t[n]=c,r[n]=l;let p=o,O=0;for(;p!==n;)O+=t[p++],p=p%s;if(n=(n+1)%s,n===o&&(o=(o+1)%s),l-a<e)return;const b=d&&l-d;return b?Math.round(O*1e3/b):void 0}}function ws(s,e){let t=0,r=1e3/e,n,o;const a=(l,d=Date.now())=>{t=d,n=null,o&&(clearTimeout(o),o=null),s.apply(null,l)};return[(...l)=>{const d=Date.now(),p=d-t;p>=r?a(l,d):(n=l,o||(o=setTimeout(()=>{o=null,a(n)},r-p)))},()=>n&&a(n)]}const re=(s,e,t=3)=>{let r=0;const n=_s(50,250);return ws(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,c=a-r,l=n(c),d=a<=i;r=a;const p={loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&d?(i-a)/l:void 0,event:o,lengthComputable:i!=null,[e?"download":"upload"]:!0};s(p)},t)},Fe=(s,e)=>{const t=s!=null;return[r=>e[0]({lengthComputable:t,total:s,loaded:r}),e[1]]},Ue=s=>(...e)=>u.asap(()=>s(...e)),Is=I.hasStandardBrowserEnv?((s,e)=>t=>(t=new URL(t,I.origin),s.protocol===t.protocol&&s.host===t.host&&(e||s.port===t.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,Ls=I.hasStandardBrowserEnv?{write(s,e,t,r,n,o){const a=[s+"="+encodeURIComponent(e)];u.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),u.isString(r)&&a.push("path="+r),u.isString(n)&&a.push("domain="+n),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(s){const e=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ns(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function Fs(s,e){return e?s.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):s}function nt(s,e,t){let r=!Ns(e);return s&&(r||t==!1)?Fs(s,e):e}const Ve=s=>s instanceof F?{...s}:s;function v(s,e){e=e||{};const t={};function r(l,d,p,O){return u.isPlainObject(l)&&u.isPlainObject(d)?u.merge.call({caseless:O},l,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function n(l,d,p,O){if(u.isUndefined(d)){if(!u.isUndefined(l))return r(void 0,l,p,O)}else return r(l,d,p,O)}function o(l,d){if(!u.isUndefined(d))return r(void 0,d)}function a(l,d){if(u.isUndefined(d)){if(!u.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function i(l,d,p){if(p in e)return r(l,d);if(p in s)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(l,d,p)=>n(Ve(l),Ve(d),p,!0)};return u.forEach(Object.keys(Object.assign({},s,e)),function(d){const p=c[d]||n,O=p(s[d],e[d],d);u.isUndefined(O)&&p!==i||(t[d]=O)}),t}const ot=s=>{const e=v({},s);let{data:t,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:o,headers:a,auth:i}=e;e.headers=a=F.from(a),e.url=Ze(nt(e.baseURL,e.url,e.allowAbsoluteUrls),s.params,s.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let c;if(u.isFormData(t)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...d].join("; "))}}if(I.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(e)),r||r!==!1&&Is(e.url))){const l=n&&o&&Ls.read(o);l&&a.set(n,l)}return e},Us=typeof XMLHttpRequest<"u",Vs=Us&&function(s){return new Promise(function(t,r){const n=ot(s);let o=n.data;const a=F.from(n.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:l}=n,d,p,O,b,h;function A(){b&&b(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function C(){if(!f)return;const w=F.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),L={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:w,config:s,request:f};rt(function(B){t(B),A()},function(B){r(B),A()},L),f=null}"onloadend"in f?f.onloadend=C:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(C)},f.onabort=function(){f&&(r(new E("Request aborted",E.ECONNABORTED,s,f)),f=null)},f.onerror=function(){r(new E("Network Error",E.ERR_NETWORK,s,f)),f=null},f.ontimeout=function(){let G=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const L=n.transitional||et;n.timeoutErrorMessage&&(G=n.timeoutErrorMessage),r(new E(G,L.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,s,f)),f=null},o===void 0&&a.setContentType(null),"setRequestHeader"in f&&u.forEach(a.toJSON(),function(G,L){f.setRequestHeader(L,G)}),u.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),i&&i!=="json"&&(f.responseType=n.responseType),l&&([O,h]=re(l,!0),f.addEventListener("progress",O)),c&&f.upload&&([p,b]=re(c),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",b)),(n.cancelToken||n.signal)&&(d=w=>{f&&(r(!w||w.type?new q(null,s,f):w),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const _=bs(n.url);if(_&&I.protocols.indexOf(_)===-1){r(new E("Unsupported protocol "+_+":",E.ERR_BAD_REQUEST,s));return}f.send(o||null)})},Ds=(s,e)=>{const{length:t}=s=s?s.filter(Boolean):[];if(e||t){let r=new AbortController,n;const o=function(l){if(!n){n=!0,i();const d=l instanceof Error?l:this.reason;r.abort(d instanceof E?d:new q(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,o(new E(`timeout ${e} of ms exceeded`,E.ETIMEDOUT))},e);const i=()=>{s&&(a&&clearTimeout(a),a=null,s.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),s=null)};s.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>u.asap(i),c}},Gs=function*(s,e){let t=s.byteLength;if(t<e){yield s;return}let r=0,n;for(;r<t;)n=r+e,yield s.slice(r,n),r=n},Hs=async function*(s,e){for await(const t of xs(s))yield*Gs(t,e)},xs=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const e=s.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},De=(s,e,t,r)=>{const n=Hs(s,e);let o=0,a,i=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await n.next();if(l){i(),c.close();return}let p=d.byteLength;if(t){let O=o+=p;t(O)}c.enqueue(new Uint8Array(d))}catch(l){throw i(l),l}},cancel(c){return i(c),n.return()}},{highWaterMark:2})},de=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",at=de&&typeof ReadableStream=="function",Bs=de&&(typeof TextEncoder=="function"?(s=>e=>s.encode(e))(new TextEncoder):async s=>new Uint8Array(await new Response(s).arrayBuffer())),it=(s,...e)=>{try{return!!s(...e)}catch{return!1}},Ms=at&&it(()=>{let s=!1;const e=new Request(I.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!e}),Ge=64*1024,Se=at&&it(()=>u.isReadableStream(new Response("").body)),ne={stream:Se&&(s=>s.body)};de&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ne[e]&&(ne[e]=u.isFunction(s[e])?t=>t[e]():(t,r)=>{throw new E(`Response type '${e}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const js=async s=>{if(s==null)return 0;if(u.isBlob(s))return s.size;if(u.isSpecCompliantForm(s))return(await new Request(I.origin,{method:"POST",body:s}).arrayBuffer()).byteLength;if(u.isArrayBufferView(s)||u.isArrayBuffer(s))return s.byteLength;if(u.isURLSearchParams(s)&&(s=s+""),u.isString(s))return(await Bs(s)).byteLength},ks=async(s,e)=>{const t=u.toFiniteNumber(s.getContentLength());return t??js(e)},vs=de&&(async s=>{let{url:e,method:t,data:r,signal:n,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:c,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:O}=ot(s);l=l?(l+"").toLowerCase():"text";let b=Ds([n,o&&o.toAbortSignal()],a),h;const A=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let f;try{if(c&&Ms&&t!=="get"&&t!=="head"&&(f=await ks(d,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),x;if(u.isFormData(r)&&(x=L.headers.get("content-type"))&&d.setContentType(x),L.body){const[B,Y]=Fe(f,re(Ue(c)));r=De(L.body,Ge,B,Y)}}u.isString(p)||(p=p?"include":"omit");const C="credentials"in Request.prototype;h=new Request(e,{...O,signal:b,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?p:void 0});let _=await fetch(h,O);const w=Se&&(l==="stream"||l==="response");if(Se&&(i||w&&A)){const L={};["status","statusText","headers"].forEach(be=>{L[be]=_[be]});const x=u.toFiniteNumber(_.headers.get("content-length")),[B,Y]=i&&Fe(x,re(Ue(i),!0))||[];_=new Response(De(_.body,Ge,B,()=>{Y&&Y(),A&&A()}),L)}l=l||"text";let G=await ne[u.findKey(ne,l)||"text"](_,s);return!w&&A&&A(),await new Promise((L,x)=>{rt(L,x,{data:G,headers:F.from(_.headers),status:_.status,statusText:_.statusText,config:s,request:h})})}catch(C){throw A&&A(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,s,h),{cause:C.cause||C}):E.from(C,C&&C.code,s,h)}}),Re={http:ns,xhr:Vs,fetch:vs};u.forEach(Re,(s,e)=>{if(s){try{Object.defineProperty(s,"name",{value:e})}catch{}Object.defineProperty(s,"adapterName",{value:e})}});const He=s=>`- ${s}`,zs=s=>u.isFunction(s)||s===null||s===!1,ct={getAdapter:s=>{s=u.isArray(s)?s:[s];const{length:e}=s;let t,r;const n={};for(let o=0;o<e;o++){t=s[o];let a;if(r=t,!zs(t)&&(r=Re[(a=String(t)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${a}'`);if(r)break;n[a||"#"+o]=r}if(!r){const o=Object.entries(n).map(([i,c])=>`adapter ${i} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
4
4
  `+o.map(He).join(`
5
- `):" "+He(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Re};function me(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new $(null,t)}function xe(t){return me(t),t.headers=F.from(t.headers),t.data=fe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),it.getAdapter(t.adapter||J.adapter)(t).then(function(r){return me(t),r.data=fe.call(t,t.transformResponse,r),r.headers=F.from(r.headers),r},function(r){return tt(r)||(me(t),r&&r.response&&(r.response.data=fe.call(t,t.transformResponse,r.response),r.response.headers=F.from(r.response.headers))),Promise.reject(r)})}const ct="1.10.0",pe={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{pe[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Be={};pe.transitional=function(e,s,r){function n(o,a){return"[Axios v"+ct+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,i)=>{if(e===!1)throw new E(n(a," has been removed"+(s?" in "+s:"")),E.ERR_DEPRECATED);return s&&!Be[a]&&(Be[a]=!0,console.warn(n(a," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(o,a,i):!0}};pe.spelling=function(e){return(s,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function xs(t,e,s){if(typeof t!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;for(;n-- >0;){const o=r[n],a=e[o];if(a){const i=t[o],c=i===void 0||a(i,o,t);if(c!==!0)throw new E("option "+o+" must be "+c,E.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new E("Unknown option "+o,E.ERR_BAD_OPTION)}}const se={assertOptions:xs,validators:pe},V=se.validators;let k=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ne,response:new Ne}}async request(e,s){try{return await this._request(e,s)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+o):r.stack=o}catch{}}throw r}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=v(this.defaults,s);const{transitional:r,paramsSerializer:n,headers:o}=s;r!==void 0&&se.assertOptions(r,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean)},!1),n!=null&&(u.isFunction(n)?s.paramsSerializer={serialize:n}:se.assertOptions(n,{encode:V.function,serialize:V.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),se.assertOptions(s,{baseUrl:V.spelling("baseURL"),withXsrfToken:V.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let a=o&&u.merge(o.common,o[s.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),s.headers=F.concat(a,o);const i=[];let c=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(c=c&&A.synchronous,i.unshift(A.fulfilled,A.rejected))});const l=[];this.interceptors.response.forEach(function(A){l.push(A.fulfilled,A.rejected)});let d,p=0,O;if(!c){const h=[xe.bind(this),void 0];for(h.unshift.apply(h,i),h.push.apply(h,l),O=h.length,d=Promise.resolve(s);p<O;)d=d.then(h[p++],h[p++]);return d}O=i.length;let b=s;for(p=0;p<O;){const h=i[p++],A=i[p++];try{b=h(b)}catch(f){A.call(this,f);break}}try{d=xe.call(this,b)}catch(h){return Promise.reject(h)}for(p=0,O=l.length;p<O;)d=d.then(l[p++],l[p++]);return d}getUri(e){e=v(this.defaults,e);const s=rt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ye(s,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){k.prototype[e]=function(s,r){return this.request(v(r||{},{method:e,url:s,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(e){function s(r){return function(o,a,i){return this.request(v(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}k.prototype[e]=s(),k.prototype[e+"Form"]=s(!0)});let Bs=class lt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o;const a=new Promise(i=>{r.subscribe(i),o=i}).then(n);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,i){r.reason||(r.reason=new $(o,a,i),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=r=>{e.abort(r)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new lt(function(n){e=n}),cancel:e}}};function Ms(t){return function(s){return t.apply(null,s)}}function js(t){return u.isObject(t)&&t.isAxiosError===!0}const ge={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};Object.entries(ge).forEach(([t,e])=>{ge[e]=t});function ut(t){const e=new k(t),s=Me(k.prototype.request,e);return u.extend(s,k.prototype,e,{allOwnKeys:!0}),u.extend(s,e,null,{allOwnKeys:!0}),s.create=function(n){return ut(v(t,n))},s}const m=ut(J);m.Axios=k;m.CanceledError=$;m.CancelToken=Bs;m.isCancel=tt;m.VERSION=ct;m.toFormData=ue;m.AxiosError=E;m.Cancel=m.CanceledError;m.all=function(e){return Promise.all(e)};m.spread=Ms;m.isAxiosError=js;m.mergeConfig=v;m.AxiosHeaders=F;m.formToJSON=t=>et(u.isHTMLForm(t)?new FormData(t):t);m.getAdapter=it.getAdapter;m.HttpStatusCode=ge;m.default=m;const{Axios:Cr,AxiosError:br,CanceledError:_r,isCancel:wr,CancelToken:Ir,VERSION:Nr,all:Lr,Cancel:Fr,isAxiosError:Ur,spread:Vr,toFormData:Dr,AxiosHeaders:Gr,HttpStatusCode:Hr,formToJSON:xr,getAdapter:Br,mergeConfig:Mr}=m,S="http://localhost:41101".replace(/\/+$/,"");class W{constructor(e,s=S,r=m){this.basePath=s,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ks extends Error{constructor(e,s){super(s),this.field=e,this.name="RequiredError"}}const R="https://example.com",y=function(t,e,s){if(s==null)throw new ks(e,`Required parameter ${e} was null or undefined when calling ${t}.`)},g=function(t,...e){const s=new URLSearchParams(t.search);for(const r of e)for(const n in r)if(Array.isArray(r[n])){s.delete(n);for(const o of r[n])s.append(n,o)}else s.set(n,r[n]);t.search=s.toString()},D=function(t,e,s){const r=typeof t!="string";return(r&&s&&s.isJsonMime?s.isJsonMime(e.headers["Content-Type"]):r)?JSON.stringify(t!==void 0?t:{}):t||""},P=function(t){return t.pathname+t.search+t.hash},T=function(t,e,s,r){return(n=e,o=s)=>{const a={...t.options,url:((r==null?void 0:r.basePath)||o)+t.url};return n.request(a)}},vs=function(t){return{detect:async(e,s,r={})=>{y("detect","detectRequest",e);const n="/api/detect",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}},match:async(e,s,r={})=>{y("match","matchRequest",e);const n="/api/match",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}},matchAndSearch:async(e,s,r={})=>{y("matchAndSearch","matchAndSearchRequest",e);const n="/api/match_and_search",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}}}},Ee=function(t){const e=vs(t);return{async detect(s,r,n){const o=await e.detect(s,r,n);return T(o,m,S,t)},async match(s,r,n){const o=await e.match(s,r,n);return T(o,m,S,t)},async matchAndSearch(s,r,n){const o=await e.matchAndSearch(s,r,n);return T(o,m,S,t)}}};let qs=class extends W{detect(e,s,r){return Ee(this.configuration).detect(e,s,r).then(n=>n(this.axios,this.basePath))}match(e,s,r){return Ee(this.configuration).match(e,s,r).then(n=>n(this.axios,this.basePath))}matchAndSearch(e,s,r){return Ee(this.configuration).matchAndSearch(e,s,r).then(n=>n(this.axios,this.basePath))}};const Qs={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"},$s={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4},Ws={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8},Ks={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"},zs={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2},Xs={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"},Js={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""},Ys={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252,FACER_GENERAL_ERROR:253,FACER_PASSIVE_LIVENESS_FAIL:254},Zs={IN:"in",NOT_IN:"nin"},dt={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7},er={ACTIVE:0,PASSIVE:1};var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Z=0;Z<q.length;Z++)tr[q.charCodeAt(Z)]=Z;var oe=function(t){var e=new Uint8Array(t),s,r=e.length,n="";for(s=0;s<r;s+=3)n+=q[e[s]>>2],n+=q[(e[s]&3)<<4|e[s+1]>>4],n+=q[(e[s+1]&15)<<2|e[s+2]>>6],n+=q[e[s+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n};class sr{constructor(e,s,r){this.superClass=new qs(e,s,r)}async match(e,s,r){for(const o of e.images)o.type||(o.type=dt.LIVE),typeof o.data!="string"&&(o.data=oe(o.data));return(await this.superClass.match(e,s,r)).data}async detect(e,s,r){return e.image&&typeof e.image!="string"&&(e.image=oe(e.image)),(await this.superClass.detect(e,s,r)).data}}const rr=function(t){return{createGroup:async(e,s,r={})=>{y("createGroup","groupToCreate",e);const n="/api/groups",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}},deleteGroup:async(e,s,r={})=>{y("deleteGroup","groupId",e);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"DELETE",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},getAllGroups:async(e,s,r,n={})=>{const o="/api/groups",a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"GET",...i,...n},l={},d={};e!==void 0&&(d.page=e),s!==void 0&&(d.size=s),r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},getAllPersonsByGroupId:async(e,s,r,n,o={})=>{y("getAllPersonsByGroupId","groupId",e);const a="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;t&&(c=t.baseOptions);const l={method:"GET",...c,...o},d={},p={};s!==void 0&&(p.page=s),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getGroup:async(e,s,r={})=>{y("getGroup","groupId",e);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"GET",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},updateGroup:async(e,s,r,n={})=>{y("updateGroup","groupId",e),y("updateGroup","groupToCreate",s);const o="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(s,c,t),{url:P(a),options:c}},updatePersonsInGroup:async(e,s,r,n={})=>{y("updatePersonsInGroup","groupId",e),y("updatePersonsInGroup","updateGroup",s);const o="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(s,c,t),{url:P(a),options:c}}}},M=function(t){const e=rr(t);return{async createGroup(s,r,n){const o=await e.createGroup(s,r,n);return T(o,m,S,t)},async deleteGroup(s,r,n){const o=await e.deleteGroup(s,r,n);return T(o,m,S,t)},async getAllGroups(s,r,n,o){const a=await e.getAllGroups(s,r,n,o);return T(a,m,S,t)},async getAllPersonsByGroupId(s,r,n,o,a){const i=await e.getAllPersonsByGroupId(s,r,n,o,a);return T(i,m,S,t)},async getGroup(s,r,n){const o=await e.getGroup(s,r,n);return T(o,m,S,t)},async updateGroup(s,r,n,o){const a=await e.updateGroup(s,r,n,o);return T(a,m,S,t)},async updatePersonsInGroup(s,r,n,o){const a=await e.updatePersonsInGroup(s,r,n,o);return T(a,m,S,t)}}};let nr=class extends W{createGroup(e,s,r){return M(this.configuration).createGroup(e,s,r).then(n=>n(this.axios,this.basePath))}deleteGroup(e,s,r){return M(this.configuration).deleteGroup(e,s,r).then(n=>n(this.axios,this.basePath))}getAllGroups(e,s,r,n){return M(this.configuration).getAllGroups(e,s,r,n).then(o=>o(this.axios,this.basePath))}getAllPersonsByGroupId(e,s,r,n,o){return M(this.configuration).getAllPersonsByGroupId(e,s,r,n,o).then(a=>a(this.axios,this.basePath))}getGroup(e,s,r){return M(this.configuration).getGroup(e,s,r).then(n=>n(this.axios,this.basePath))}updateGroup(e,s,r,n){return M(this.configuration).updateGroup(e,s,r,n).then(o=>o(this.axios,this.basePath))}updatePersonsInGroup(e,s,r,n){return M(this.configuration).updatePersonsInGroup(e,s,r,n).then(o=>o(this.axios,this.basePath))}};class or{constructor(e,s,r){this.superClass=new nr(e,s,r)}async createGroup(e,s,r){const n={...e,metadata:e!=null&&e.metadata?e.metadata:{}};return(await this.superClass.createGroup(n,s,r)).data}async deleteGroup(e,s,r){await this.superClass.deleteGroup(e,s,r)}async getAllGroups(e,s,r,n){return(await this.superClass.getAllGroups(e,s,r,n)).data}async getAllPersonsByGroupId(e,s,r,n,o){return(await this.superClass.getAllPersonsByGroupId(r,e,s,n,o)).data}async getGroup(e,s,r){return(await this.superClass.getGroup(e,s,r)).data}async updateGroup(e,s,r,n){await this.superClass.updateGroup(e,s,r,n)}async updatePersonsInGroup(e,s,r,n){await this.superClass.updatePersonsInGroup(e,s,r,n)}}const ar=function(t){return{addImageToPerson:async(e,s,r,n={})=>{y("addImageToPerson","personId",e),y("addImageToPerson","addImageToPersonRequest",s);const o="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"POST",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(s,c,t),{url:P(a),options:c}},createPerson:async(e,s,r={})=>{y("createPerson","personFields",e);const n="/api/persons",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}},deleteImageOfPerson:async(e,s,r,n={})=>{y("deleteImageOfPerson","imageId",e),y("deleteImageOfPerson","personId",s);const o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(s))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"DELETE",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},deletePerson:async(e,s,r={})=>{y("deletePerson","personId",e);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"DELETE",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},getAllGroupsByPersonId:async(e,s,r,n,o={})=>{y("getAllGroupsByPersonId","personId",e);const a="/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;t&&(c=t.baseOptions);const l={method:"GET",...c,...o},d={},p={};s!==void 0&&(p.page=s),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getAllImagesByPersonId:async(e,s,r,n,o={})=>{y("getAllImagesByPersonId","personId",e);const a="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;t&&(c=t.baseOptions);const l={method:"GET",...c,...o},d={},p={};s!==void 0&&(p.page=s),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getImageOfPerson:async(e,s,r,n={})=>{y("getImageOfPerson","imageId",e),y("getImageOfPerson","personId",s);const o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(s))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"GET",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},getPerson:async(e,s,r={})=>{y("getPerson","personId",e);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"GET",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},updatePerson:async(e,s,r,n={})=>{y("updatePerson","personId",e),y("updatePerson","personToUpdateFields",s);const o="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;t&&(i=t.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(s,c,t),{url:P(a),options:c}}}},H=function(t){const e=ar(t);return{async addImageToPerson(s,r,n,o){const a=await e.addImageToPerson(s,r,n,o);return T(a,m,S,t)},async createPerson(s,r,n){const o=await e.createPerson(s,r,n);return T(o,m,S,t)},async deleteImageOfPerson(s,r,n,o){const a=await e.deleteImageOfPerson(s,r,n,o);return T(a,m,S,t)},async deletePerson(s,r,n){const o=await e.deletePerson(s,r,n);return T(o,m,S,t)},async getAllGroupsByPersonId(s,r,n,o,a){const i=await e.getAllGroupsByPersonId(s,r,n,o,a);return T(i,m,S,t)},async getAllImagesByPersonId(s,r,n,o,a){const i=await e.getAllImagesByPersonId(s,r,n,o,a);return T(i,m,S,t)},async getImageOfPerson(s,r,n,o){const a=await e.getImageOfPerson(s,r,n,o);return T(a,m,S,t)},async getPerson(s,r,n){const o=await e.getPerson(s,r,n);return T(o,m,S,t)},async updatePerson(s,r,n,o){const a=await e.updatePerson(s,r,n,o);return T(a,m,S,t)}}};let ir=class extends W{addImageToPerson(e,s,r,n){return H(this.configuration).addImageToPerson(e,s,r,n).then(o=>o(this.axios,this.basePath))}createPerson(e,s,r){return H(this.configuration).createPerson(e,s,r).then(n=>n(this.axios,this.basePath))}deleteImageOfPerson(e,s,r,n){return H(this.configuration).deleteImageOfPerson(e,s,r,n).then(o=>o(this.axios,this.basePath))}deletePerson(e,s,r){return H(this.configuration).deletePerson(e,s,r).then(n=>n(this.axios,this.basePath))}getAllGroupsByPersonId(e,s,r,n,o){return H(this.configuration).getAllGroupsByPersonId(e,s,r,n,o).then(a=>a(this.axios,this.basePath))}getAllImagesByPersonId(e,s,r,n,o){return H(this.configuration).getAllImagesByPersonId(e,s,r,n,o).then(a=>a(this.axios,this.basePath))}getImageOfPerson(e,s,r,n){return H(this.configuration).getImageOfPerson(e,s,r,n).then(o=>o(this.axios,this.basePath))}getPerson(e,s,r){return H(this.configuration).getPerson(e,s,r).then(n=>n(this.axios,this.basePath))}updatePerson(e,s,r,n){return H(this.configuration).updatePerson(e,s,r,n).then(o=>o(this.axios,this.basePath))}};class cr{constructor(e,s,r){this.superClass=new ir(e,s,r)}async createPerson(e,s,r){const n={...e,metadata:e!=null&&e.metadata?e.metadata:{}};return(await this.superClass.createPerson(n,s,r)).data}async addImageToPerson(e,s,r,n){var a;return(a=s==null?void 0:s.image)!=null&&a.content&&typeof s.image.content!="string"&&(s.image.content=oe(s.image.content)),(await this.superClass.addImageToPerson(e,s,r,n)).data}async deleteImageOfPerson(e,s,r,n){await this.superClass.deleteImageOfPerson(e,s,r,n)}async deletePerson(e,s,r){await this.superClass.deletePerson(e,s,r)}async getAllGroupsByPersonId(e,s,r,n,o){return(await this.superClass.getAllGroupsByPersonId(r,e,s,n,o)).data}async getAllImagesByPersonId(e,s,r,n,o){return(await this.superClass.getAllImagesByPersonId(r,e,s,n,o)).data}async getImageOfPerson(e,s,r,n){return(await this.superClass.getImageOfPerson(e,s,r,n)).data}async getPerson(e,s,r){return(await this.superClass.getPerson(e,s,r)).data}async updatePerson(e,s,r,n){await this.superClass.updatePerson(e,s,r,n)}}const lr=function(t){return{search:async(e,s,r={})=>{y("search","searchRequest",e);const n="/api/search",o=new URL(n,R);let a;t&&(a=t.baseOptions);const i={method:"POST",...a,...r},c={},l={};s!=null&&(c["X-RequestID"]=String(s)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,t),{url:P(o),options:i}}}},ur=function(t){const e=lr(t);return{async search(s,r,n){const o=await e.search(s,r,n);return T(o,m,S,t)}}};let dr=class extends W{search(e,s,r){return ur(this.configuration).search(e,s,r).then(n=>n(this.axios,this.basePath))}};class pr{constructor(e,s,r){this.superClass=new dr(e,s,r)}async search(e,s,r){var o;return(o=e==null?void 0:e.image)!=null&&o.content&&typeof e.image.content!="string"&&(e.image.content=oe(e.image.content)),(await this.superClass.search(e,s,r)).data}}const hr=function(t){return{readiness:async(e,s={})=>{const r="/api/readiness",n=new URL(r,R);let o;t&&(o=t.baseOptions);const a={method:"GET",...o,...s},i={},c={};e!=null&&(i["X-RequestID"]=String(e)),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...s.headers},{url:P(n),options:a}}}},fr=function(t){const e=hr(t);return{async readiness(s,r){const n=await e.readiness(s,r);return T(n,m,S,t)}}};let mr=class extends W{readiness(e,s){return fr(this.configuration).readiness(e,s).then(r=>r(this.axios,this.basePath))}};class Er{constructor(e,s,r){this.superClass=new mr(e,s,r)}async readiness(e,s){return(await this.superClass.readiness(e,s)).data}}const Ar=function(t){return{getLivenessTransactionInfo:async(e,s={})=>{y("getLivenessTransactionInfo","transactionId",e);const r="/api/v2/liveness",n=new URL(r,R);let o;t&&(o=t.baseOptions);const a={method:"GET",...o,...s},i={},c={};e!==void 0&&(c.transactionId=e),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...s.headers},{url:P(n),options:a}}}},Or=function(t){const e=Ar(t);return{async getLivenessTransactionInfo(s,r){const n=await e.getLivenessTransactionInfo(s,r);return T(n,m,S,t)}}};let yr=class extends W{getLivenessTransactionInfo(e,s){return Or(this.configuration).getLivenessTransactionInfo(e,s).then(r=>r(this.axios,this.basePath))}};class Sr{constructor(e,s,r){this.superClass=new yr(e,s,r)}async getLivenessTransactionInfo(e,s){return(await this.superClass.getLivenessTransactionInfo(e,s)).data}}class Rr{constructor(e,s=S,r=m){this.basePath=s,this.axios=r,this.matchApi=new sr(e,s,r),this.groupApi=new or(e,s,r),this.personApi=new cr(e,s,r),this.searchApi=new pr(e,s,r),this.diagnosticsApi=new Er(e,s,r),this.livenessApi=new Sr(e,s,r)}}class gr{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const s=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(s.test(e)||e.toLowerCase()==="application/json-patch+json")}}exports.Configuration=gr;exports.FaceAttribute=Qs;exports.FaceImageQualityAlignType=$s;exports.FaceImageQualityGroups=Ws;exports.FaceImageQualityGroupsStrings=Ks;exports.FaceImageQualityStatus=zs;exports.FaceQualityConfigName=Xs;exports.FaceQualityScenarios=Js;exports.FaceSDKResultCode=Ys;exports.FaceSdk=Rr;exports.FilterOp=Zs;exports.ImageSource=dt;exports.LivenessType=er;
5
+ `):" "+He(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Re};function me(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new q(null,s)}function xe(s){return me(s),s.headers=F.from(s.headers),s.data=fe.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),ct.getAdapter(s.adapter||J.adapter)(s).then(function(r){return me(s),r.data=fe.call(s,s.transformResponse,r),r.headers=F.from(r.headers),r},function(r){return st(r)||(me(s),r&&r.response&&(r.response.data=fe.call(s,s.transformResponse,r.response),r.response.headers=F.from(r.response.headers))),Promise.reject(r)})}const lt="1.10.0",pe={};["object","boolean","number","function","string","symbol"].forEach((s,e)=>{pe[s]=function(r){return typeof r===s||"a"+(e<1?"n ":" ")+s}});const Be={};pe.transitional=function(e,t,r){function n(o,a){return"[Axios v"+lt+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,i)=>{if(e===!1)throw new E(n(a," has been removed"+(t?" in "+t:"")),E.ERR_DEPRECATED);return t&&!Be[a]&&(Be[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,a,i):!0}};pe.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Qs(s,e,t){if(typeof s!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(s);let n=r.length;for(;n-- >0;){const o=r[n],a=e[o];if(a){const i=s[o],c=i===void 0||a(i,o,s);if(c!==!0)throw new E("option "+o+" must be "+c,E.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new E("Unknown option "+o,E.ERR_BAD_OPTION)}}const se={assertOptions:Qs,validators:pe},V=se.validators;let k=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Le,response:new Le}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=v(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;r!==void 0&&se.assertOptions(r,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean)},!1),n!=null&&(u.isFunction(n)?t.paramsSerializer={serialize:n}:se.assertOptions(n,{encode:V.function,serialize:V.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),se.assertOptions(t,{baseUrl:V.spelling("baseURL"),withXsrfToken:V.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&u.merge(o.common,o[t.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),t.headers=F.concat(a,o);const i=[];let c=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(t)===!1||(c=c&&A.synchronous,i.unshift(A.fulfilled,A.rejected))});const l=[];this.interceptors.response.forEach(function(A){l.push(A.fulfilled,A.rejected)});let d,p=0,O;if(!c){const h=[xe.bind(this),void 0];for(h.unshift.apply(h,i),h.push.apply(h,l),O=h.length,d=Promise.resolve(t);p<O;)d=d.then(h[p++],h[p++]);return d}O=i.length;let b=t;for(p=0;p<O;){const h=i[p++],A=i[p++];try{b=h(b)}catch(f){A.call(this,f);break}}try{d=xe.call(this,b)}catch(h){return Promise.reject(h)}for(p=0,O=l.length;p<O;)d=d.then(l[p++],l[p++]);return d}getUri(e){e=v(this.defaults,e);const t=nt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ze(t,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){k.prototype[e]=function(t,r){return this.request(v(r||{},{method:e,url:t,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(e){function t(r){return function(o,a,i){return this.request(v(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}k.prototype[e]=t(),k.prototype[e+"Form"]=t(!0)});let $s=class ut{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o;const a=new Promise(i=>{r.subscribe(i),o=i}).then(n);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,i){r.reason||(r.reason=new q(o,a,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut(function(n){e=n}),cancel:e}}};function qs(s){return function(t){return s.apply(null,t)}}function Ws(s){return u.isObject(s)&&s.isAxiosError===!0}const ge={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};Object.entries(ge).forEach(([s,e])=>{ge[e]=s});function dt(s){const e=new k(s),t=je(k.prototype.request,e);return u.extend(t,k.prototype,e,{allOwnKeys:!0}),u.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return dt(v(s,n))},t}const m=dt(J);m.Axios=k;m.CanceledError=q;m.CancelToken=$s;m.isCancel=st;m.VERSION=lt;m.toFormData=ue;m.AxiosError=E;m.Cancel=m.CanceledError;m.all=function(e){return Promise.all(e)};m.spread=qs;m.isAxiosError=Ws;m.mergeConfig=v;m.AxiosHeaders=F;m.formToJSON=s=>tt(u.isHTMLForm(s)?new FormData(s):s);m.getAdapter=ct.getAdapter;m.HttpStatusCode=ge;m.default=m;const{Axios:Ir,AxiosError:Lr,CanceledError:Nr,isCancel:Fr,CancelToken:Ur,VERSION:Vr,all:Dr,Cancel:Gr,isAxiosError:Hr,spread:xr,toFormData:Br,AxiosHeaders:Mr,HttpStatusCode:jr,formToJSON:kr,getAdapter:vr,mergeConfig:zr}=m,S="http://localhost:41101".replace(/\/+$/,"");class z{constructor(e,t=S,r=m){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Ks extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const R="https://example.com",y=function(s,e,t){if(t==null)throw new Ks(e,`Required parameter ${e} was null or undefined when calling ${s}.`)},g=function(s,...e){const t=new URLSearchParams(s.search);for(const r of e)for(const n in r)if(Array.isArray(r[n])){t.delete(n);for(const o of r[n])t.append(n,o)}else t.set(n,r[n]);s.search=t.toString()},D=function(s,e,t){const r=typeof s!="string";return(r&&t&&t.isJsonMime?t.isJsonMime(e.headers["Content-Type"]):r)?JSON.stringify(s!==void 0?s:{}):s||""},P=function(s){return s.pathname+s.search+s.hash},T=function(s,e,t,r){return(n=e,o=t)=>{const a={...s.options,url:((r==null?void 0:r.basePath)||o)+s.url};return n.request(a)}},Xs=function(s){return{detect:async(e,t,r={})=>{y("detect","detectRequest",e);const n="/api/detect",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}},match:async(e,t,r={})=>{y("match","matchRequest",e);const n="/api/match",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}},matchAndSearch:async(e,t,r={})=>{y("matchAndSearch","matchAndSearchRequest",e);const n="/api/match_and_search",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}}}},Ee=function(s){const e=Xs(s);return{async detect(t,r,n){const o=await e.detect(t,r,n);return T(o,m,S,s)},async match(t,r,n){const o=await e.match(t,r,n);return T(o,m,S,s)},async matchAndSearch(t,r,n){const o=await e.matchAndSearch(t,r,n);return T(o,m,S,s)}}};let Js=class extends z{detect(e,t,r){return Ee(this.configuration).detect(e,t,r).then(n=>n(this.axios,this.basePath))}match(e,t,r){return Ee(this.configuration).match(e,t,r).then(n=>n(this.axios,this.basePath))}matchAndSearch(e,t,r){return Ee(this.configuration).matchAndSearch(e,t,r).then(n=>n(this.axios,this.basePath))}};const Ys={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"},Zs={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4},er={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8},tr={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"},sr={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2},rr={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"},nr={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""},or={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252,FACER_GENERAL_ERROR:253,FACER_PASSIVE_LIVENESS_FAIL:254},ar={IN:"in",NOT_IN:"nin"},pt={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7},ir={ACTIVE:0,PASSIVE:1};var Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Z=0;Z<Q.length;Z++)cr[Q.charCodeAt(Z)]=Z;var oe=function(s){var e=new Uint8Array(s),t,r=e.length,n="";for(t=0;t<r;t+=3)n+=Q[e[t]>>2],n+=Q[(e[t]&3)<<4|e[t+1]>>4],n+=Q[(e[t+1]&15)<<2|e[t+2]>>6],n+=Q[e[t+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n};class ht{constructor(e,t,r){this.superClass=new Js(e,t,r)}async match(e,t,r){for(const o of e.images)o.type||(o.type=pt.LIVE),typeof o.data!="string"&&(o.data=oe(o.data));return(await this.superClass.match(e,t,r)).data}async detect(e,t,r){return e.image&&typeof e.image!="string"&&(e.image=oe(e.image)),(await this.superClass.detect(e,t,r)).data}}const lr=function(s){return{createGroup:async(e,t,r={})=>{y("createGroup","groupToCreate",e);const n="/api/groups",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}},deleteGroup:async(e,t,r={})=>{y("deleteGroup","groupId",e);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"DELETE",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},getAllGroups:async(e,t,r,n={})=>{const o="/api/groups",a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"GET",...i,...n},l={},d={};e!==void 0&&(d.page=e),t!==void 0&&(d.size=t),r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},getAllPersonsByGroupId:async(e,t,r,n,o={})=>{y("getAllPersonsByGroupId","groupId",e);const a="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;s&&(c=s.baseOptions);const l={method:"GET",...c,...o},d={},p={};t!==void 0&&(p.page=t),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getGroup:async(e,t,r={})=>{y("getGroup","groupId",e);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"GET",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},updateGroup:async(e,t,r,n={})=>{y("updateGroup","groupId",e),y("updateGroup","groupToCreate",t);const o="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(t,c,s),{url:P(a),options:c}},updatePersonsInGroup:async(e,t,r,n={})=>{y("updatePersonsInGroup","groupId",e),y("updatePersonsInGroup","updateGroup",t);const o="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(t,c,s),{url:P(a),options:c}}}},M=function(s){const e=lr(s);return{async createGroup(t,r,n){const o=await e.createGroup(t,r,n);return T(o,m,S,s)},async deleteGroup(t,r,n){const o=await e.deleteGroup(t,r,n);return T(o,m,S,s)},async getAllGroups(t,r,n,o){const a=await e.getAllGroups(t,r,n,o);return T(a,m,S,s)},async getAllPersonsByGroupId(t,r,n,o,a){const i=await e.getAllPersonsByGroupId(t,r,n,o,a);return T(i,m,S,s)},async getGroup(t,r,n){const o=await e.getGroup(t,r,n);return T(o,m,S,s)},async updateGroup(t,r,n,o){const a=await e.updateGroup(t,r,n,o);return T(a,m,S,s)},async updatePersonsInGroup(t,r,n,o){const a=await e.updatePersonsInGroup(t,r,n,o);return T(a,m,S,s)}}};let ur=class extends z{createGroup(e,t,r){return M(this.configuration).createGroup(e,t,r).then(n=>n(this.axios,this.basePath))}deleteGroup(e,t,r){return M(this.configuration).deleteGroup(e,t,r).then(n=>n(this.axios,this.basePath))}getAllGroups(e,t,r,n){return M(this.configuration).getAllGroups(e,t,r,n).then(o=>o(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,r,n,o){return M(this.configuration).getAllPersonsByGroupId(e,t,r,n,o).then(a=>a(this.axios,this.basePath))}getGroup(e,t,r){return M(this.configuration).getGroup(e,t,r).then(n=>n(this.axios,this.basePath))}updateGroup(e,t,r,n){return M(this.configuration).updateGroup(e,t,r,n).then(o=>o(this.axios,this.basePath))}updatePersonsInGroup(e,t,r,n){return M(this.configuration).updatePersonsInGroup(e,t,r,n).then(o=>o(this.axios,this.basePath))}};class ft{constructor(e,t,r){this.superClass=new ur(e,t,r)}async createGroup(e,t,r){const n={...e,metadata:e!=null&&e.metadata?e.metadata:{}};return(await this.superClass.createGroup(n,t,r)).data}async deleteGroup(e,t,r){await this.superClass.deleteGroup(e,t,r)}async getAllGroups(e,t,r,n){return(await this.superClass.getAllGroups(e,t,r,n)).data}async getAllPersonsByGroupId(e,t,r,n,o){return(await this.superClass.getAllPersonsByGroupId(r,e,t,n,o)).data}async getGroup(e,t,r){return(await this.superClass.getGroup(e,t,r)).data}async updateGroup(e,t,r,n){await this.superClass.updateGroup(e,t,r,n)}async updatePersonsInGroup(e,t,r,n){await this.superClass.updatePersonsInGroup(e,t,r,n)}}const dr=function(s){return{addImageToPerson:async(e,t,r,n={})=>{y("addImageToPerson","personId",e),y("addImageToPerson","addImageToPersonRequest",t);const o="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"POST",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(t,c,s),{url:P(a),options:c}},createPerson:async(e,t,r={})=>{y("createPerson","personFields",e);const n="/api/persons",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}},deleteImageOfPerson:async(e,t,r,n={})=>{y("deleteImageOfPerson","imageId",e),y("deleteImageOfPerson","personId",t);const o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(t))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"DELETE",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},deletePerson:async(e,t,r={})=>{y("deletePerson","personId",e);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"DELETE",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},getAllGroupsByPersonId:async(e,t,r,n,o={})=>{y("getAllGroupsByPersonId","personId",e);const a="/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;s&&(c=s.baseOptions);const l={method:"GET",...c,...o},d={},p={};t!==void 0&&(p.page=t),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getAllImagesByPersonId:async(e,t,r,n,o={})=>{y("getAllImagesByPersonId","personId",e);const a="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),i=new URL(a,R);let c;s&&(c=s.baseOptions);const l={method:"GET",...c,...o},d={},p={};t!==void 0&&(p.page=t),r!==void 0&&(p.size=r),n!=null&&(d["X-RequestID"]=String(n)),g(i,p);let O=c&&c.headers?c.headers:{};return l.headers={...d,...O,...o.headers},{url:P(i),options:l}},getImageOfPerson:async(e,t,r,n={})=>{y("getImageOfPerson","imageId",e),y("getImageOfPerson","personId",t);const o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(t))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"GET",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},{url:P(a),options:c}},getPerson:async(e,t,r={})=>{y("getPerson","personId",e);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"GET",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},{url:P(o),options:i}},updatePerson:async(e,t,r,n={})=>{y("updatePerson","personId",e),y("updatePerson","personToUpdateFields",t);const o="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),a=new URL(o,R);let i;s&&(i=s.baseOptions);const c={method:"PUT",...i,...n},l={},d={};r!=null&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",g(a,d);let p=i&&i.headers?i.headers:{};return c.headers={...l,...p,...n.headers},c.data=D(t,c,s),{url:P(a),options:c}}}},H=function(s){const e=dr(s);return{async addImageToPerson(t,r,n,o){const a=await e.addImageToPerson(t,r,n,o);return T(a,m,S,s)},async createPerson(t,r,n){const o=await e.createPerson(t,r,n);return T(o,m,S,s)},async deleteImageOfPerson(t,r,n,o){const a=await e.deleteImageOfPerson(t,r,n,o);return T(a,m,S,s)},async deletePerson(t,r,n){const o=await e.deletePerson(t,r,n);return T(o,m,S,s)},async getAllGroupsByPersonId(t,r,n,o,a){const i=await e.getAllGroupsByPersonId(t,r,n,o,a);return T(i,m,S,s)},async getAllImagesByPersonId(t,r,n,o,a){const i=await e.getAllImagesByPersonId(t,r,n,o,a);return T(i,m,S,s)},async getImageOfPerson(t,r,n,o){const a=await e.getImageOfPerson(t,r,n,o);return T(a,m,S,s)},async getPerson(t,r,n){const o=await e.getPerson(t,r,n);return T(o,m,S,s)},async updatePerson(t,r,n,o){const a=await e.updatePerson(t,r,n,o);return T(a,m,S,s)}}};let pr=class extends z{addImageToPerson(e,t,r,n){return H(this.configuration).addImageToPerson(e,t,r,n).then(o=>o(this.axios,this.basePath))}createPerson(e,t,r){return H(this.configuration).createPerson(e,t,r).then(n=>n(this.axios,this.basePath))}deleteImageOfPerson(e,t,r,n){return H(this.configuration).deleteImageOfPerson(e,t,r,n).then(o=>o(this.axios,this.basePath))}deletePerson(e,t,r){return H(this.configuration).deletePerson(e,t,r).then(n=>n(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,r,n,o){return H(this.configuration).getAllGroupsByPersonId(e,t,r,n,o).then(a=>a(this.axios,this.basePath))}getAllImagesByPersonId(e,t,r,n,o){return H(this.configuration).getAllImagesByPersonId(e,t,r,n,o).then(a=>a(this.axios,this.basePath))}getImageOfPerson(e,t,r,n){return H(this.configuration).getImageOfPerson(e,t,r,n).then(o=>o(this.axios,this.basePath))}getPerson(e,t,r){return H(this.configuration).getPerson(e,t,r).then(n=>n(this.axios,this.basePath))}updatePerson(e,t,r,n){return H(this.configuration).updatePerson(e,t,r,n).then(o=>o(this.axios,this.basePath))}};class mt{constructor(e,t,r){this.superClass=new pr(e,t,r)}async createPerson(e,t,r){const n={...e,metadata:e!=null&&e.metadata?e.metadata:{}};return(await this.superClass.createPerson(n,t,r)).data}async addImageToPerson(e,t,r,n){var a;return(a=t==null?void 0:t.image)!=null&&a.content&&typeof t.image.content!="string"&&(t.image.content=oe(t.image.content)),(await this.superClass.addImageToPerson(e,t,r,n)).data}async deleteImageOfPerson(e,t,r,n){await this.superClass.deleteImageOfPerson(e,t,r,n)}async deletePerson(e,t,r){await this.superClass.deletePerson(e,t,r)}async getAllGroupsByPersonId(e,t,r,n,o){return(await this.superClass.getAllGroupsByPersonId(r,e,t,n,o)).data}async getAllImagesByPersonId(e,t,r,n,o){return(await this.superClass.getAllImagesByPersonId(r,e,t,n,o)).data}async getImageOfPerson(e,t,r,n){return(await this.superClass.getImageOfPerson(e,t,r,n)).data}async getPerson(e,t,r){return(await this.superClass.getPerson(e,t,r)).data}async updatePerson(e,t,r,n){await this.superClass.updatePerson(e,t,r,n)}}const hr=function(s){return{search:async(e,t,r={})=>{y("search","searchRequest",e);const n="/api/search",o=new URL(n,R);let a;s&&(a=s.baseOptions);const i={method:"POST",...a,...r},c={},l={};t!=null&&(c["X-RequestID"]=String(t)),c["Content-Type"]="application/json",g(o,l);let d=a&&a.headers?a.headers:{};return i.headers={...c,...d,...r.headers},i.data=D(e,i,s),{url:P(o),options:i}}}},fr=function(s){const e=hr(s);return{async search(t,r,n){const o=await e.search(t,r,n);return T(o,m,S,s)}}};let mr=class extends z{search(e,t,r){return fr(this.configuration).search(e,t,r).then(n=>n(this.axios,this.basePath))}};class Et{constructor(e,t,r){this.superClass=new mr(e,t,r)}async search(e,t,r){var o;return(o=e==null?void 0:e.image)!=null&&o.content&&typeof e.image.content!="string"&&(e.image.content=oe(e.image.content)),(await this.superClass.search(e,t,r)).data}}const Er=function(s){return{readiness:async(e,t={})=>{const r="/api/readiness",n=new URL(r,R);let o;s&&(o=s.baseOptions);const a={method:"GET",...o,...t},i={},c={};e!=null&&(i["X-RequestID"]=String(e)),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:P(n),options:a}}}},Ar=function(s){const e=Er(s);return{async readiness(t,r){const n=await e.readiness(t,r);return T(n,m,S,s)}}};let Or=class extends z{readiness(e,t){return Ar(this.configuration).readiness(e,t).then(r=>r(this.axios,this.basePath))}};class At{constructor(e,t,r){this.superClass=new Or(e,t,r)}async readiness(e,t){return(await this.superClass.readiness(e,t)).data}}const yr=function(s){return{getLivenessTransactionInfo:async(e,t={})=>{y("getLivenessTransactionInfo","transactionId",e);const r="/api/v2/liveness",n=new URL(r,R);let o;s&&(o=s.baseOptions);const a={method:"GET",...o,...t},i={},c={};e!==void 0&&(c.transactionId=e),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:P(n),options:a}}}},Sr=function(s){const e=yr(s);return{async getLivenessTransactionInfo(t,r){const n=await e.getLivenessTransactionInfo(t,r);return T(n,m,S,s)}}};let Rr=class extends z{getLivenessTransactionInfo(e,t){return Sr(this.configuration).getLivenessTransactionInfo(e,t).then(r=>r(this.axios,this.basePath))}};class Ot{constructor(e,t,r){this.superClass=new Rr(e,t,r)}async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}}class gr{constructor(e,t=S,r=m){this.basePath=t,this.axios=r,this.matchApi=new ht(e,t,r),this.groupApi=new ft(e,t,r),this.personApi=new mt(e,t,r),this.searchApi=new Et(e,t,r),this.diagnosticsApi=new At(e,t,r),this.livenessApi=new Ot(e,t,r)}}const Pr=function(s){return{healthz:async(e,t={})=>{const r="/api/healthz",n=new URL(r,R);let o;s&&(o=s.baseOptions);const a={method:"GET",...o,...t},i={},c={};e!=null&&(i["X-RequestID"]=String(e)),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:P(n),options:a}},readyz:async(e,t={})=>{const r="/api/readyz",n=new URL(r,R);let o;s&&(o=s.baseOptions);const a={method:"GET",...o,...t},i={},c={};e!=null&&(i["X-RequestID"]=String(e)),g(n,c);let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:P(n),options:a}}}},Me=function(s){const e=Pr(s);return{async healthz(t,r){const n=await e.healthz(t,r);return T(n,m,S,s)},async readyz(t,r){const n=await e.readyz(t,r);return T(n,m,S,s)}}};let Tr=class extends z{healthz(e,t){return Me(this.configuration).healthz(e,t).then(r=>r(this.axios,this.basePath))}readyz(e,t){return Me(this.configuration).readyz(e,t).then(r=>r(this.axios,this.basePath))}};class Cr{constructor(e,t,r){this.superClass=new Tr(e,t,r)}async healthz(e,t){return(await this.superClass.healthz(e,t)).data}async readyz(e,t){return(await this.superClass.readyz(e,t)).data}}class br{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}}exports.Configuration=br;exports.DiagnosticsApi=At;exports.FaceAttribute=Ys;exports.FaceImageQualityAlignType=Zs;exports.FaceImageQualityGroups=er;exports.FaceImageQualityGroupsStrings=tr;exports.FaceImageQualityStatus=sr;exports.FaceQualityConfigName=rr;exports.FaceQualityScenarios=nr;exports.FaceSDKResultCode=or;exports.FaceSdk=gr;exports.FilterOp=ar;exports.GroupApi=ft;exports.HealthcheckApi=Cr;exports.ImageSource=pt;exports.Liveness20Api=Ot;exports.LivenessType=ir;exports.MatchApi=ht;exports.PersonApi=mt;exports.SearchApi=Et;
package/dist/index.d.ts CHANGED
@@ -136,7 +136,7 @@ export declare interface AttributeConfig {
136
136
  'name'?: FaceAttribute;
137
137
  }
138
138
 
139
- declare type Base64String = string;
139
+ export declare type Base64String = string;
140
140
 
141
141
  export declare class Configuration {
142
142
  /**
@@ -567,7 +567,7 @@ export declare interface DeviceInfo {
567
567
  'version': string | null;
568
568
  }
569
569
 
570
- declare class DiagnosticsApi {
570
+ export declare class DiagnosticsApi {
571
571
  private superClass;
572
572
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
573
573
  readiness(xRequestID?: string, options?: AxiosRequestConfig): Promise<Record<string, unknown>>;
@@ -915,7 +915,7 @@ export declare interface GroupAllOf {
915
915
  'createdAt'?: string;
916
916
  }
917
917
 
918
- declare class GroupApi {
918
+ export declare class GroupApi {
919
919
  private superClass;
920
920
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
921
921
  createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<Group>;
@@ -1019,6 +1019,13 @@ export declare interface GroupToCreate {
1019
1019
  };
1020
1020
  }
1021
1021
 
1022
+ export declare class HealthcheckApi {
1023
+ private superClass;
1024
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1025
+ healthz(xRequestID?: string, options?: AxiosRequestConfig): Promise<DeviceInfo>;
1026
+ readyz(xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
1027
+ }
1028
+
1022
1029
  /**
1023
1030
  * Regula Face SDK Web API
1024
1031
  * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
@@ -1084,6 +1091,7 @@ declare interface Image_2 {
1084
1091
  export { Image_2 as Image }
1085
1092
 
1086
1093
  declare type ImageData_2 = Base64String | ArrayBuffer;
1094
+ export { ImageData_2 as ImageData }
1087
1095
 
1088
1096
  /**
1089
1097
  * Image in the request data, includes image and contentType.
@@ -1166,7 +1174,7 @@ export declare const ImageSource: {
1166
1174
 
1167
1175
  export declare type ImageSource = typeof ImageSource[keyof typeof ImageSource];
1168
1176
 
1169
- declare class Liveness20Api {
1177
+ export declare class Liveness20Api {
1170
1178
  private superClass;
1171
1179
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1172
1180
  getLivenessTransactionInfo(transactionId: string, options?: AxiosRequestConfig): Promise<TransactionInfo>;
@@ -1302,7 +1310,7 @@ export declare interface MatchAndSearchResponseAllOfDetections {
1302
1310
  'status'?: FaceSDKResultCode;
1303
1311
  }
1304
1312
 
1305
- declare class MatchApi {
1313
+ export declare class MatchApi {
1306
1314
  private superClass;
1307
1315
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1308
1316
  match(compareRequest: MatchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<MatchResponse>;
@@ -1636,7 +1644,7 @@ export declare interface PersonAllOf {
1636
1644
  'groups'?: Array<string>;
1637
1645
  }
1638
1646
 
1639
- declare class PersonApi {
1647
+ export declare class PersonApi {
1640
1648
  private superClass;
1641
1649
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1642
1650
  createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
@@ -2022,7 +2030,7 @@ export declare interface ResizeOptions {
2022
2030
  'quality'?: number;
2023
2031
  }
2024
2032
 
2025
- declare class SearchApi {
2033
+ export declare class SearchApi {
2026
2034
  private superClass;
2027
2035
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2028
2036
  search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<SearchResult>;