UNPKG

@betalytics/api

Version:

TypeScript SDK for Betalytics API - Sports analytics and betting data

6 lines 53.8 kB
var G$=Object.defineProperty;var Q$=($,z)=>{for(var S in z)G$($,S,{get:z[S],enumerable:!0,configurable:!0,set:(G)=>z[S]=()=>G})};var Z$={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},g5=Object.entries(Z$);function d($,z){return function S(){return $.apply(z,arguments)}}var{toString:Y$}=Object.prototype,{getPrototypeOf:R0}=Object,{iterator:Y0,toStringTag:e0}=Symbol,M0=(($)=>(z)=>{let S=Y$.call(z);return $[S]||($[S]=S.slice(8,-1).toLowerCase())})(Object.create(null)),q=($)=>{return $=$.toLowerCase(),(z)=>M0(z)===$},B0=($)=>(z)=>typeof z===$,{isArray:f}=Array,c=B0("undefined");function u($){return $!==null&&!c($)&&$.constructor!==null&&!c($.constructor)&&T($.constructor.isBuffer)&&$.constructor.isBuffer($)}var $1=q("ArrayBuffer");function M$($){let z;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)z=ArrayBuffer.isView($);else z=$&&$.buffer&&$1($.buffer);return z}var B$=B0("string"),T=B0("function"),z1=B0("number"),l=($)=>$!==null&&typeof $==="object",J$=($)=>$===!0||$===!1,Z0=($)=>{if(M0($)!=="object")return!1;let z=R0($);return(z===null||z===Object.prototype||Object.getPrototypeOf(z)===null)&&!(e0 in $)&&!(Y0 in $)},W$=($)=>{if(!l($)||u($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(z){return!1}},N$=q("Date"),X$=q("File"),K$=q("Blob"),V$=q("FileList"),I$=($)=>l($)&&T($.pipe),w$=($)=>{let z;return $&&(typeof FormData==="function"&&$ instanceof FormData||T($.append)&&((z=M0($))==="formdata"||z==="object"&&T($.toString)&&$.toString()==="[object FormData]"))},P$=q("URLSearchParams"),[H$,E$,D$,F$]=["ReadableStream","Request","Response","Headers"].map(q),L$=($)=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function p($,z,{allOwnKeys:S=!1}={}){if($===null||typeof $==="undefined")return;let G,Q;if(typeof $!=="object")$=[$];if(f($))for(G=0,Q=$.length;G<Q;G++)z.call(null,$[G],G,$);else{if(u($))return;let Y=S?Object.getOwnPropertyNames($):Object.keys($),Z=Y.length,J;for(G=0;G<Z;G++)J=Y[G],z.call(null,$[J],J,$)}}function S1($,z){if(u($))return null;z=z.toLowerCase();let S=Object.keys($),G=S.length,Q;while(G-- >0)if(Q=S[G],z===Q.toLowerCase())return Q;return null}var m=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),G1=($)=>!c($)&&$!==m;function L0(){let{caseless:$}=G1(this)&&this||{},z={},S=(G,Q)=>{let Y=$&&S1(z,Q)||Q;if(Z0(z[Y])&&Z0(G))z[Y]=L0(z[Y],G);else if(Z0(G))z[Y]=L0({},G);else if(f(G))z[Y]=G.slice();else z[Y]=G};for(let G=0,Q=arguments.length;G<Q;G++)arguments[G]&&p(arguments[G],S);return z}var R$=($,z,S,{allOwnKeys:G}={})=>{return p(z,(Q,Y)=>{if(S&&T(Q))$[Y]=d(Q,S);else $[Y]=Q},{allOwnKeys:G}),$},U$=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},O$=($,z,S,G)=>{$.prototype=Object.create(z.prototype,G),$.prototype.constructor=$,Object.defineProperty($,"super",{value:z.prototype}),S&&Object.assign($.prototype,S)},x$=($,z,S,G)=>{let Q,Y,Z,J={};if(z=z||{},$==null)return z;do{Q=Object.getOwnPropertyNames($),Y=Q.length;while(Y-- >0)if(Z=Q[Y],(!G||G(Z,$,z))&&!J[Z])z[Z]=$[Z],J[Z]=!0;$=S!==!1&&R0($)}while($&&(!S||S($,z))&&$!==Object.prototype);return z},T$=($,z,S)=>{if($=String($),S===void 0||S>$.length)S=$.length;S-=z.length;let G=$.indexOf(z,S);return G!==-1&&G===S},q$=($)=>{if(!$)return null;if(f($))return $;let z=$.length;if(!z1(z))return null;let S=new Array(z);while(z-- >0)S[z]=$[z];return S},_$=(($)=>{return(z)=>{return $&&z instanceof $}})(typeof Uint8Array!=="undefined"&&R0(Uint8Array)),k$=($,z)=>{let G=($&&$[Y0]).call($),Q;while((Q=G.next())&&!Q.done){let Y=Q.value;z.call($,Y[0],Y[1])}},b$=($,z)=>{let S,G=[];while((S=$.exec(z))!==null)G.push(S);return G},A$=q("HTMLFormElement"),C$=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function z(S,G,Q){return G.toUpperCase()+Q})},o0=(({hasOwnProperty:$})=>(z,S)=>$.call(z,S))(Object.prototype),y$=q("RegExp"),Q1=($,z)=>{let S=Object.getOwnPropertyDescriptors($),G={};p(S,(Q,Y)=>{let Z;if((Z=z(Q,Y,$))!==!1)G[Y]=Z||Q}),Object.defineProperties($,G)},j$=($)=>{Q1($,(z,S)=>{if(T($)&&["arguments","caller","callee"].indexOf(S)!==-1)return!1;let G=$[S];if(!T(G))return;if(z.enumerable=!1,"writable"in z){z.writable=!1;return}if(!z.set)z.set=()=>{throw Error("Can not rewrite read-only method '"+S+"'")}})},m$=($,z)=>{let S={},G=(Q)=>{Q.forEach((Y)=>{S[Y]=!0})};return f($)?G($):G(String($).split(z)),S},f$=()=>{},v$=($,z)=>{return $!=null&&Number.isFinite($=+$)?$:z};function h$($){return!!($&&T($.append)&&$[e0]==="FormData"&&$[Y0])}var g$=($)=>{let z=new Array(10),S=(G,Q)=>{if(l(G)){if(z.indexOf(G)>=0)return;if(u(G))return G;if(!("toJSON"in G)){z[Q]=G;let Y=f(G)?[]:{};return p(G,(Z,J)=>{let W=S(Z,Q+1);!c(W)&&(Y[J]=W)}),z[Q]=void 0,Y}}return G};return S($,0)},d$=q("AsyncFunction"),c$=($)=>$&&(l($)||T($))&&T($.then)&&T($.catch),Z1=(($,z)=>{if($)return setImmediate;return z?((S,G)=>{return m.addEventListener("message",({source:Q,data:Y})=>{if(Q===m&&Y===S)G.length&&G.shift()()},!1),(Q)=>{G.push(Q),m.postMessage(S,"*")}})(`axios@${Math.random()}`,[]):(S)=>setTimeout(S)})(typeof setImmediate==="function",T(m.postMessage)),u$=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(m):typeof process!=="undefined"&&process.nextTick||Z1,l$=($)=>$!=null&&T($[Y0]),M={isArray:f,isArrayBuffer:$1,isBuffer:u,isFormData:w$,isArrayBufferView:M$,isString:B$,isNumber:z1,isBoolean:J$,isObject:l,isPlainObject:Z0,isEmptyObject:W$,isReadableStream:H$,isRequest:E$,isResponse:D$,isHeaders:F$,isUndefined:c,isDate:N$,isFile:X$,isBlob:K$,isRegExp:y$,isFunction:T,isStream:I$,isURLSearchParams:P$,isTypedArray:_$,isFileList:V$,forEach:p,merge:L0,extend:R$,trim:L$,stripBOM:U$,inherits:O$,toFlatObject:x$,kindOf:M0,kindOfTest:q,endsWith:T$,toArray:q$,forEachEntry:k$,matchAll:b$,isHTMLForm:A$,hasOwnProperty:o0,hasOwnProp:o0,reduceDescriptors:Q1,freezeMethods:j$,toObjectSet:m$,toCamelCase:C$,noop:f$,toFiniteNumber:v$,findKey:S1,global:m,isContextDefined:G1,isSpecCompliantForm:h$,toJSONObject:g$,isAsyncFn:d$,isThenable:c$,setImmediate:Z1,asap:u$,isIterable:l$};function v($,z,S,G,Q){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;if(this.message=$,this.name="AxiosError",z&&(this.code=z),S&&(this.config=S),G&&(this.request=G),Q)this.response=Q,this.status=Q.status?Q.status:null}M.inherits(v,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:M.toJSONObject(this.config),code:this.code,status:this.status}}});var Y1=v.prototype,M1={};["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(($)=>{M1[$]={value:$}});Object.defineProperties(v,M1);Object.defineProperty(Y1,"isAxiosError",{value:!0});v.from=($,z,S,G,Q,Y)=>{let Z=Object.create(Y1);return M.toFlatObject($,Z,function J(W){return W!==Error.prototype},(J)=>{return J!=="isAxiosError"}),v.call(Z,$.message,z,S,G,Q),Z.cause=$,Z.name=$.name,Y&&Object.assign(Z,Y),Z};var w=v;var J0=null;function U0($){return M.isPlainObject($)||M.isArray($)}function J1($){return M.endsWith($,"[]")?$.slice(0,-2):$}function B1($,z,S){if(!$)return z;return $.concat(z).map(function G(Q,Y){return Q=J1(Q),!S&&Y?"["+Q+"]":Q}).join(S?".":"")}function p$($){return M.isArray($)&&!$.some(U0)}var r$=M.toFlatObject(M,{},null,function $(z){return/^is[A-Z]/.test(z)});function n$($,z,S){if(!M.isObject($))throw new TypeError("target must be an object");z=z||new(J0||FormData),S=M.toFlatObject(S,{metaTokens:!0,dots:!1,indexes:!1},!1,function K(P,I){return!M.isUndefined(I[P])});let G=S.metaTokens,Q=S.visitor||X,Y=S.dots,Z=S.indexes,W=(S.Blob||typeof Blob!=="undefined"&&Blob)&&M.isSpecCompliantForm(z);if(!M.isFunction(Q))throw new TypeError("visitor must be a function");function B(K){if(K===null)return"";if(M.isDate(K))return K.toISOString();if(M.isBoolean(K))return K.toString();if(!W&&M.isBlob(K))throw new w("Blob is not supported. Use a Buffer instead.");if(M.isArrayBuffer(K)||M.isTypedArray(K))return W&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function X(K,P,I){let F=K;if(K&&!I&&typeof K==="object"){if(M.endsWith(P,"{}"))P=G?P:P.slice(0,-2),K=JSON.stringify(K);else if(M.isArray(K)&&p$(K)||(M.isFileList(K)||M.endsWith(P,"[]"))&&(F=M.toArray(K)))return P=J1(P),F.forEach(function R(O,A){!(M.isUndefined(O)||O===null)&&z.append(Z===!0?B1([P],A,Y):Z===null?P:P+"[]",B(O))}),!1}if(U0(K))return!0;return z.append(B1(I,P,Y),B(K)),!1}let V=[],E=Object.assign(r$,{defaultVisitor:X,convertValue:B,isVisitable:U0});function H(K,P){if(M.isUndefined(K))return;if(V.indexOf(K)!==-1)throw Error("Circular reference detected in "+P.join("."));V.push(K),M.forEach(K,function I(F,R){if((!(M.isUndefined(F)||F===null)&&Q.call(z,F,M.isString(R)?R.trim():R,P,E))===!0)H(F,P?P.concat(R):[R])}),V.pop()}if(!M.isObject($))throw new TypeError("data must be an object");return H($),z}var y=n$;function W1($){let z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function S(G){return z[G]})}function N1($,z){this._pairs=[],$&&y($,this,z)}var X1=N1.prototype;X1.append=function $(z,S){this._pairs.push([z,S])};X1.toString=function $(z){let S=z?function(G){return z.call(this,G,W1)}:W1;return this._pairs.map(function G(Q){return S(Q[0])+"="+S(Q[1])},"").join("&")};var W0=N1;function t$($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r($,z,S){if(!z)return $;let G=S&&S.encode||t$;if(M.isFunction(S))S={serialize:S};let Q=S&&S.serialize,Y;if(Q)Y=Q(z,S);else Y=M.isURLSearchParams(z)?z.toString():new W0(z,S).toString(G);if(Y){let Z=$.indexOf("#");if(Z!==-1)$=$.slice(0,Z);$+=($.indexOf("?")===-1?"?":"&")+Y}return $}class K1{constructor(){this.handlers=[]}use($,z,S){return this.handlers.push({fulfilled:$,rejected:z,synchronous:S?S.synchronous:!1,runWhen:S?S.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){M.forEach(this.handlers,function z(S){if(S!==null)$(S)})}}var O0=K1;var N0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var V1=typeof URLSearchParams!=="undefined"?URLSearchParams:W0;var I1=typeof FormData!=="undefined"?FormData:null;var w1=typeof Blob!=="undefined"?Blob:null;var P1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:I1,Blob:w1},protocols:["http","https","file","blob","url","data"]};var q0={};Q$(q0,{origin:()=>s$,navigator:()=>x0,hasStandardBrowserWebWorkerEnv:()=>a$,hasStandardBrowserEnv:()=>i$,hasBrowserEnv:()=>T0});var T0=typeof window!=="undefined"&&typeof document!=="undefined",x0=typeof navigator==="object"&&navigator||void 0,i$=T0&&(!x0||["ReactNative","NativeScript","NS"].indexOf(x0.product)<0),a$=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),s$=T0&&window.location.href||"http://localhost";var D={...q0,...P1};function _0($,z){return y($,new D.classes.URLSearchParams,{visitor:function(S,G,Q,Y){if(D.isNode&&M.isBuffer(S))return this.append(G,S.toString("base64")),!1;return Y.defaultVisitor.apply(this,arguments)},...z})}function o$($){return M.matchAll(/\w+|\[(\w*)]/g,$).map((z)=>{return z[0]==="[]"?"":z[1]||z[0]})}function e$($){let z={},S=Object.keys($),G,Q=S.length,Y;for(G=0;G<Q;G++)Y=S[G],z[Y]=$[Y];return z}function $5($){function z(S,G,Q,Y){let Z=S[Y++];if(Z==="__proto__")return!0;let J=Number.isFinite(+Z),W=Y>=S.length;if(Z=!Z&&M.isArray(Q)?Q.length:Z,W){if(M.hasOwnProp(Q,Z))Q[Z]=[Q[Z],G];else Q[Z]=G;return!J}if(!Q[Z]||!M.isObject(Q[Z]))Q[Z]=[];if(z(S,G,Q[Z],Y)&&M.isArray(Q[Z]))Q[Z]=e$(Q[Z]);return!J}if(M.isFormData($)&&M.isFunction($.entries)){let S={};return M.forEachEntry($,(G,Q)=>{z(o$(G),Q,S,0)}),S}return null}var X0=$5;function z5($,z,S){if(M.isString($))try{return(z||JSON.parse)($),M.trim($)}catch(G){if(G.name!=="SyntaxError")throw G}return(S||JSON.stringify)($)}var k0={transitional:N0,adapter:["xhr","http","fetch"],transformRequest:[function $(z,S){let G=S.getContentType()||"",Q=G.indexOf("application/json")>-1,Y=M.isObject(z);if(Y&&M.isHTMLForm(z))z=new FormData(z);if(M.isFormData(z))return Q?JSON.stringify(X0(z)):z;if(M.isArrayBuffer(z)||M.isBuffer(z)||M.isStream(z)||M.isFile(z)||M.isBlob(z)||M.isReadableStream(z))return z;if(M.isArrayBufferView(z))return z.buffer;if(M.isURLSearchParams(z))return S.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),z.toString();let J;if(Y){if(G.indexOf("application/x-www-form-urlencoded")>-1)return _0(z,this.formSerializer).toString();if((J=M.isFileList(z))||G.indexOf("multipart/form-data")>-1){let W=this.env&&this.env.FormData;return y(J?{"files[]":z}:z,W&&new W,this.formSerializer)}}if(Y||Q)return S.setContentType("application/json",!1),z5(z);return z}],transformResponse:[function $(z){let S=this.transitional||k0.transitional,G=S&&S.forcedJSONParsing,Q=this.responseType==="json";if(M.isResponse(z)||M.isReadableStream(z))return z;if(z&&M.isString(z)&&(G&&!this.responseType||Q)){let Z=!(S&&S.silentJSONParsing)&&Q;try{return JSON.parse(z)}catch(J){if(Z){if(J.name==="SyntaxError")throw w.from(J,w.ERR_BAD_RESPONSE,this,null,this.response);throw J}}}return z}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:D.classes.FormData,Blob:D.classes.Blob},validateStatus:function $(z){return z>=200&&z<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],($)=>{k0.headers[$]={}});var h=k0;var S5=M.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"]),H1=($)=>{let z={},S,G,Q;return $&&$.split(` `).forEach(function Y(Z){if(Q=Z.indexOf(":"),S=Z.substring(0,Q).trim().toLowerCase(),G=Z.substring(Q+1).trim(),!S||z[S]&&S5[S])return;if(S==="set-cookie")if(z[S])z[S].push(G);else z[S]=[G];else z[S]=z[S]?z[S]+", "+G:G}),z};var E1=Symbol("internals");function n($){return $&&String($).trim().toLowerCase()}function K0($){if($===!1||$==null)return $;return M.isArray($)?$.map(K0):String($)}function G5($){let z=Object.create(null),S=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,G;while(G=S.exec($))z[G[1]]=G[2];return z}var Q5=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function b0($,z,S,G,Q){if(M.isFunction(G))return G.call(this,z,S);if(Q)z=S;if(!M.isString(z))return;if(M.isString(G))return z.indexOf(G)!==-1;if(M.isRegExp(G))return G.test(z)}function Z5($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(z,S,G)=>{return S.toUpperCase()+G})}function Y5($,z){let S=M.toCamelCase(" "+z);["get","set","has"].forEach((G)=>{Object.defineProperty($,G+S,{value:function(Q,Y,Z){return this[G].call(this,z,Q,Y,Z)},configurable:!0})})}class t{constructor($){$&&this.set($)}set($,z,S){let G=this;function Q(Z,J,W){let B=n(J);if(!B)throw new Error("header name must be a non-empty string");let X=M.findKey(G,B);if(!X||G[X]===void 0||W===!0||W===void 0&&G[X]!==!1)G[X||J]=K0(Z)}let Y=(Z,J)=>M.forEach(Z,(W,B)=>Q(W,B,J));if(M.isPlainObject($)||$ instanceof this.constructor)Y($,z);else if(M.isString($)&&($=$.trim())&&!Q5($))Y(H1($),z);else if(M.isObject($)&&M.isIterable($)){let Z={},J,W;for(let B of $){if(!M.isArray(B))throw TypeError("Object iterator must return a key-value pair");Z[W=B[0]]=(J=Z[W])?M.isArray(J)?[...J,B[1]]:[J,B[1]]:B[1]}Y(Z,z)}else $!=null&&Q(z,$,S);return this}get($,z){if($=n($),$){let S=M.findKey(this,$);if(S){let G=this[S];if(!z)return G;if(z===!0)return G5(G);if(M.isFunction(z))return z.call(this,G,S);if(M.isRegExp(z))return z.exec(G);throw new TypeError("parser must be boolean|regexp|function")}}}has($,z){if($=n($),$){let S=M.findKey(this,$);return!!(S&&this[S]!==void 0&&(!z||b0(this,this[S],S,z)))}return!1}delete($,z){let S=this,G=!1;function Q(Y){if(Y=n(Y),Y){let Z=M.findKey(S,Y);if(Z&&(!z||b0(S,S[Z],Z,z)))delete S[Z],G=!0}}if(M.isArray($))$.forEach(Q);else Q($);return G}clear($){let z=Object.keys(this),S=z.length,G=!1;while(S--){let Q=z[S];if(!$||b0(this,this[Q],Q,$,!0))delete this[Q],G=!0}return G}normalize($){let z=this,S={};return M.forEach(this,(G,Q)=>{let Y=M.findKey(S,Q);if(Y){z[Y]=K0(G),delete z[Q];return}let Z=$?Z5(Q):String(Q).trim();if(Z!==Q)delete z[Q];z[Z]=K0(G),S[Z]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let z=Object.create(null);return M.forEach(this,(S,G)=>{S!=null&&S!==!1&&(z[G]=$&&M.isArray(S)?S.join(", "):S)}),z}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,z])=>$+": "+z).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...z){let S=new this($);return z.forEach((G)=>S.set(G)),S}static accessor($){let S=(this[E1]=this[E1]={accessors:{}}).accessors,G=this.prototype;function Q(Y){let Z=n(Y);if(!S[Z])Y5(G,Y),S[Z]=!0}return M.isArray($)?$.forEach(Q):Q($),this}}t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(t.prototype,({value:$},z)=>{let S=z[0].toUpperCase()+z.slice(1);return{get:()=>$,set(G){this[S]=G}}});M.freezeMethods(t);var U=t;function i($,z){let S=this||h,G=z||S,Q=U.from(G.headers),Y=G.data;return M.forEach($,function Z(J){Y=J.call(S,Y,Q.normalize(),z?z.status:void 0)}),Q.normalize(),Y}function a($){return!!($&&$.__CANCEL__)}function D1($,z,S){w.call(this,$==null?"canceled":$,w.ERR_CANCELED,z,S),this.name="CanceledError"}M.inherits(D1,w,{__CANCEL__:!0});var k=D1;function s($,z,S){let G=S.config.validateStatus;if(!S.status||!G||G(S.status))$(S);else z(new w("Request failed with status code "+S.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(S.status/100)-4],S.config,S.request,S))}function A0($){let z=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return z&&z[1]||""}function M5($,z){$=$||10;let S=new Array($),G=new Array($),Q=0,Y=0,Z;return z=z!==void 0?z:1000,function J(W){let B=Date.now(),X=G[Y];if(!Z)Z=B;S[Q]=W,G[Q]=B;let V=Y,E=0;while(V!==Q)E+=S[V++],V=V%$;if(Q=(Q+1)%$,Q===Y)Y=(Y+1)%$;if(B-Z<z)return;let H=X&&B-X;return H?Math.round(E*1000/H):void 0}}var F1=M5;function B5($,z){let S=0,G=1000/z,Q,Y,Z=(B,X=Date.now())=>{if(S=X,Q=null,Y)clearTimeout(Y),Y=null;$(...B)};return[(...B)=>{let X=Date.now(),V=X-S;if(V>=G)Z(B,X);else if(Q=B,!Y)Y=setTimeout(()=>{Y=null,Z(Q)},G-V)},()=>Q&&Z(Q)]}var L1=B5;var g=($,z,S=3)=>{let G=0,Q=F1(50,250);return L1((Y)=>{let Z=Y.loaded,J=Y.lengthComputable?Y.total:void 0,W=Z-G,B=Q(W),X=Z<=J;G=Z;let V={loaded:Z,total:J,progress:J?Z/J:void 0,bytes:W,rate:B?B:void 0,estimated:B&&J&&X?(J-Z)/B:void 0,event:Y,lengthComputable:J!=null,[z?"download":"upload"]:!0};$(V)},S)},C0=($,z)=>{let S=$!=null;return[(G)=>z[0]({lengthComputable:S,total:$,loaded:G}),z[1]]},y0=($)=>(...z)=>M.asap(()=>$(...z));var R1=D.hasStandardBrowserEnv?(($,z)=>(S)=>{return S=new URL(S,D.origin),$.protocol===S.protocol&&$.host===S.host&&(z||$.port===S.port)})(new URL(D.origin),D.navigator&&/(msie|trident)/i.test(D.navigator.userAgent)):()=>!0;var U1=D.hasStandardBrowserEnv?{write($,z,S,G,Q,Y){let Z=[$+"="+encodeURIComponent(z)];M.isNumber(S)&&Z.push("expires="+new Date(S).toGMTString()),M.isString(G)&&Z.push("path="+G),M.isString(Q)&&Z.push("domain="+Q),Y===!0&&Z.push("secure"),document.cookie=Z.join("; ")},read($){let z=document.cookie.match(new RegExp("(^|;\\s*)("+$+")=([^;]*)"));return z?decodeURIComponent(z[3]):null},remove($){this.write($,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function j0($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function m0($,z){return z?$.replace(/\/?\/$/,"")+"/"+z.replace(/^\/+/,""):$}function o($,z,S){let G=!j0(z);if($&&(G||S==!1))return m0($,z);return z}var O1=($)=>$ instanceof U?{...$}:$;function _($,z){z=z||{};let S={};function G(B,X,V,E){if(M.isPlainObject(B)&&M.isPlainObject(X))return M.merge.call({caseless:E},B,X);else if(M.isPlainObject(X))return M.merge({},X);else if(M.isArray(X))return X.slice();return X}function Q(B,X,V,E){if(!M.isUndefined(X))return G(B,X,V,E);else if(!M.isUndefined(B))return G(void 0,B,V,E)}function Y(B,X){if(!M.isUndefined(X))return G(void 0,X)}function Z(B,X){if(!M.isUndefined(X))return G(void 0,X);else if(!M.isUndefined(B))return G(void 0,B)}function J(B,X,V){if(V in z)return G(B,X);else if(V in $)return G(void 0,B)}let W={url:Y,method:Y,data:Y,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,responseEncoding:Z,validateStatus:J,headers:(B,X,V)=>Q(O1(B),O1(X),V,!0)};return M.forEach(Object.keys({...$,...z}),function B(X){let V=W[X]||Q,E=V($[X],z[X],X);M.isUndefined(E)&&V!==J||(S[X]=E)}),S}var V0=($)=>{let z=_({},$),{data:S,withXSRFToken:G,xsrfHeaderName:Q,xsrfCookieName:Y,headers:Z,auth:J}=z;if(z.headers=Z=U.from(Z),z.url=r(o(z.baseURL,z.url,z.allowAbsoluteUrls),$.params,$.paramsSerializer),J)Z.set("Authorization","Basic "+btoa((J.username||"")+":"+(J.password?unescape(encodeURIComponent(J.password)):"")));let W;if(M.isFormData(S)){if(D.hasStandardBrowserEnv||D.hasStandardBrowserWebWorkerEnv)Z.setContentType(void 0);else if((W=Z.getContentType())!==!1){let[B,...X]=W?W.split(";").map((V)=>V.trim()).filter(Boolean):[];Z.setContentType([B||"multipart/form-data",...X].join("; "))}}if(D.hasStandardBrowserEnv){if(G&&M.isFunction(G)&&(G=G(z)),G||G!==!1&&R1(z.url)){let B=Q&&Y&&U1.read(Y);if(B)Z.set(Q,B)}}return z};var J5=typeof XMLHttpRequest!=="undefined",x1=J5&&function($){return new Promise(function z(S,G){let Q=V0($),Y=Q.data,Z=U.from(Q.headers).normalize(),{responseType:J,onUploadProgress:W,onDownloadProgress:B}=Q,X,V,E,H,K;function P(){H&&H(),K&&K(),Q.cancelToken&&Q.cancelToken.unsubscribe(X),Q.signal&&Q.signal.removeEventListener("abort",X)}let I=new XMLHttpRequest;I.open(Q.method.toUpperCase(),Q.url,!0),I.timeout=Q.timeout;function F(){if(!I)return;let O=U.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),x={data:!J||J==="text"||J==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:O,config:$,request:I};s(function C(j){S(j),P()},function C(j){G(j),P()},x),I=null}if("onloadend"in I)I.onloadend=F;else I.onreadystatechange=function O(){if(!I||I.readyState!==4)return;if(I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0))return;setTimeout(F)};if(I.onabort=function O(){if(!I)return;G(new w("Request aborted",w.ECONNABORTED,$,I)),I=null},I.onerror=function O(){G(new w("Network Error",w.ERR_NETWORK,$,I)),I=null},I.ontimeout=function O(){let A=Q.timeout?"timeout of "+Q.timeout+"ms exceeded":"timeout exceeded",x=Q.transitional||N0;if(Q.timeoutErrorMessage)A=Q.timeoutErrorMessage;G(new w(A,x.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,$,I)),I=null},Y===void 0&&Z.setContentType(null),"setRequestHeader"in I)M.forEach(Z.toJSON(),function O(A,x){I.setRequestHeader(x,A)});if(!M.isUndefined(Q.withCredentials))I.withCredentials=!!Q.withCredentials;if(J&&J!=="json")I.responseType=Q.responseType;if(B)[E,K]=g(B,!0),I.addEventListener("progress",E);if(W&&I.upload)[V,H]=g(W),I.upload.addEventListener("progress",V),I.upload.addEventListener("loadend",H);if(Q.cancelToken||Q.signal){if(X=(O)=>{if(!I)return;G(!O||O.type?new k(null,$,I):O),I.abort(),I=null},Q.cancelToken&&Q.cancelToken.subscribe(X),Q.signal)Q.signal.aborted?X():Q.signal.addEventListener("abort",X)}let R=A0(Q.url);if(R&&D.protocols.indexOf(R)===-1){G(new w("Unsupported protocol "+R+":",w.ERR_BAD_REQUEST,$));return}I.send(Y||null)})};var W5=($,z)=>{let{length:S}=$=$?$.filter(Boolean):[];if(z||S){let G=new AbortController,Q,Y=function(B){if(!Q){Q=!0,J();let X=B instanceof Error?B:this.reason;G.abort(X instanceof w?X:new k(X instanceof Error?X.message:X))}},Z=z&&setTimeout(()=>{Z=null,Y(new w(`timeout ${z} of ms exceeded`,w.ETIMEDOUT))},z),J=()=>{if($)Z&&clearTimeout(Z),Z=null,$.forEach((B)=>{B.unsubscribe?B.unsubscribe(Y):B.removeEventListener("abort",Y)}),$=null};$.forEach((B)=>B.addEventListener("abort",Y));let{signal:W}=G;return W.unsubscribe=()=>M.asap(J),W}},T1=W5;var N5=function*($,z){let S=$.byteLength;if(!z||S<z){yield $;return}let G=0,Q;while(G<S)Q=G+z,yield $.slice(G,Q),G=Q},X5=async function*($,z){for await(let S of K5($))yield*N5(S,z)},K5=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let z=$.getReader();try{for(;;){let{done:S,value:G}=await z.read();if(S)break;yield G}}finally{await z.cancel()}},f0=($,z,S,G)=>{let Q=X5($,z),Y=0,Z,J=(W)=>{if(!Z)Z=!0,G&&G(W)};return new ReadableStream({async pull(W){try{let{done:B,value:X}=await Q.next();if(B){J(),W.close();return}let V=X.byteLength;if(S){let E=Y+=V;S(E)}W.enqueue(new Uint8Array(X))}catch(B){throw J(B),B}},cancel(W){return J(W),Q.return()}},{highWaterMark:2})};var w0=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",_1=w0&&typeof ReadableStream==="function",V5=w0&&(typeof TextEncoder==="function"?(($)=>(z)=>$.encode(z))(new TextEncoder):async($)=>new Uint8Array(await new Response($).arrayBuffer())),k1=($,...z)=>{try{return!!$(...z)}catch(S){return!1}},I5=_1&&k1(()=>{let $=!1,z=new Request(D.origin,{body:new ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type");return $&&!z}),q1=65536,v0=_1&&k1(()=>M.isReadableStream(new Response("").body)),I0={stream:v0&&(($)=>$.body)};w0&&(($)=>{["text","arrayBuffer","blob","formData","stream"].forEach((z)=>{!I0[z]&&(I0[z]=M.isFunction($[z])?(S)=>S[z]():(S,G)=>{throw new w(`Response type '${z}' is not supported`,w.ERR_NOT_SUPPORT,G)})})})(new Response);var w5=async($)=>{if($==null)return 0;if(M.isBlob($))return $.size;if(M.isSpecCompliantForm($))return(await new Request(D.origin,{method:"POST",body:$}).arrayBuffer()).byteLength;if(M.isArrayBufferView($)||M.isArrayBuffer($))return $.byteLength;if(M.isURLSearchParams($))$=$+"";if(M.isString($))return(await V5($)).byteLength},P5=async($,z)=>{let S=M.toFiniteNumber($.getContentLength());return S==null?w5(z):S},b1=w0&&(async($)=>{let{url:z,method:S,data:G,signal:Q,cancelToken:Y,timeout:Z,onDownloadProgress:J,onUploadProgress:W,responseType:B,headers:X,withCredentials:V="same-origin",fetchOptions:E}=V0($);B=B?(B+"").toLowerCase():"text";let H=T1([Q,Y&&Y.toAbortSignal()],Z),K,P=H&&H.unsubscribe&&(()=>{H.unsubscribe()}),I;try{if(W&&I5&&S!=="get"&&S!=="head"&&(I=await P5(X,G))!==0){let x=new Request(z,{method:"POST",body:G,duplex:"half"}),C;if(M.isFormData(G)&&(C=x.headers.get("content-type")))X.setContentType(C);if(x.body){let[j,Q0]=C0(I,g(y0(W)));G=f0(x.body,q1,j,Q0)}}if(!M.isString(V))V=V?"include":"omit";let F="credentials"in Request.prototype;K=new Request(z,{...E,signal:H,method:S.toUpperCase(),headers:X.normalize().toJSON(),body:G,duplex:"half",credentials:F?V:void 0});let R=await fetch(K,E),O=v0&&(B==="stream"||B==="response");if(v0&&(J||O&&P)){let x={};["status","statusText","headers"].forEach((s0)=>{x[s0]=R[s0]});let C=M.toFiniteNumber(R.headers.get("content-length")),[j,Q0]=J&&C0(C,g(y0(J),!0))||[];R=new Response(f0(R.body,q1,j,()=>{Q0&&Q0(),P&&P()}),x)}B=B||"text";let A=await I0[M.findKey(I0,B)||"text"](R,$);return!O&&P&&P(),await new Promise((x,C)=>{s(x,C,{data:A,headers:U.from(R.headers),status:R.status,statusText:R.statusText,config:$,request:K})})}catch(F){if(P&&P(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message))throw Object.assign(new w("Network Error",w.ERR_NETWORK,$,K),{cause:F.cause||F});throw w.from(F,F&&F.code,$,K)}});var h0={http:J0,xhr:x1,fetch:b1};M.forEach(h0,($,z)=>{if($){try{Object.defineProperty($,"name",{value:z})}catch(S){}Object.defineProperty($,"adapterName",{value:z})}});var A1=($)=>`- ${$}`,H5=($)=>M.isFunction($)||$===null||$===!1,P0={getAdapter:($)=>{$=M.isArray($)?$:[$];let{length:z}=$,S,G,Q={};for(let Y=0;Y<z;Y++){S=$[Y];let Z;if(G=S,!H5(S)){if(G=h0[(Z=String(S)).toLowerCase()],G===void 0)throw new w(`Unknown adapter '${Z}'`)}if(G)break;Q[Z||"#"+Y]=G}if(!G){let Y=Object.entries(Q).map(([J,W])=>`adapter ${J} `+(W===!1?"is not supported by the environment":"is not available in the build")),Z=z?Y.length>1?`since : `+Y.map(A1).join(` `):" "+A1(Y[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+Z,"ERR_NOT_SUPPORT")}return G},adapters:h0};function g0($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new k(null,$)}function H0($){if(g0($),$.headers=U.from($.headers),$.data=i.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return P0.getAdapter($.adapter||h.adapter)($).then(function S(G){return g0($),G.data=i.call($,$.transformResponse,G),G.headers=U.from(G.headers),G},function S(G){if(!a(G)){if(g0($),G&&G.response)G.response.data=i.call($,$.transformResponse,G.response),G.response.headers=U.from(G.response.headers)}return Promise.reject(G)})}var E0="1.11.0";var D0={};["object","boolean","number","function","string","symbol"].forEach(($,z)=>{D0[$]=function S(G){return typeof G===$||"a"+(z<1?"n ":" ")+$}});var C1={};D0.transitional=function $(z,S,G){function Q(Y,Z){return"[Axios v"+E0+"] Transitional option '"+Y+"'"+Z+(G?". "+G:"")}return(Y,Z,J)=>{if(z===!1)throw new w(Q(Z," has been removed"+(S?" in "+S:"")),w.ERR_DEPRECATED);if(S&&!C1[Z])C1[Z]=!0,console.warn(Q(Z," has been deprecated since v"+S+" and will be removed in the near future"));return z?z(Y,Z,J):!0}};D0.spelling=function $(z){return(S,G)=>{return console.warn(`${G} is likely a misspelling of ${z}`),!0}};function E5($,z,S){if(typeof $!=="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);let G=Object.keys($),Q=G.length;while(Q-- >0){let Y=G[Q],Z=z[Y];if(Z){let J=$[Y],W=J===void 0||Z(J,Y,$);if(W!==!0)throw new w("option "+Y+" must be "+W,w.ERR_BAD_OPTION_VALUE);continue}if(S!==!0)throw new w("Unknown option "+Y,w.ERR_BAD_OPTION)}}var e={assertOptions:E5,validators:D0};var b=e.validators;class $0{constructor($){this.defaults=$||{},this.interceptors={request:new O0,response:new O0}}async request($,z){try{return await this._request($,z)}catch(S){if(S instanceof Error){let G={};Error.captureStackTrace?Error.captureStackTrace(G):G=new Error;let Q=G.stack?G.stack.replace(/^.+\n/,""):"";try{if(!S.stack)S.stack=Q;else if(Q&&!String(S.stack).endsWith(Q.replace(/^.+\n.+\n/,"")))S.stack+=` `+Q}catch(Y){}}throw S}}_request($,z){if(typeof $==="string")z=z||{},z.url=$;else z=$||{};z=_(this.defaults,z);let{transitional:S,paramsSerializer:G,headers:Q}=z;if(S!==void 0)e.assertOptions(S,{silentJSONParsing:b.transitional(b.boolean),forcedJSONParsing:b.transitional(b.boolean),clarifyTimeoutError:b.transitional(b.boolean)},!1);if(G!=null)if(M.isFunction(G))z.paramsSerializer={serialize:G};else e.assertOptions(G,{encode:b.function,serialize:b.function},!0);if(z.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)z.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else z.allowAbsoluteUrls=!0;e.assertOptions(z,{baseUrl:b.spelling("baseURL"),withXsrfToken:b.spelling("withXSRFToken")},!0),z.method=(z.method||this.defaults.method||"get").toLowerCase();let Y=Q&&M.merge(Q.common,Q[z.method]);Q&&M.forEach(["delete","get","head","post","put","patch","common"],(H)=>{delete Q[H]}),z.headers=U.concat(Y,Q);let Z=[],J=!0;this.interceptors.request.forEach(function H(K){if(typeof K.runWhen==="function"&&K.runWhen(z)===!1)return;J=J&&K.synchronous,Z.unshift(K.fulfilled,K.rejected)});let W=[];this.interceptors.response.forEach(function H(K){W.push(K.fulfilled,K.rejected)});let B,X=0,V;if(!J){let H=[H0.bind(this),void 0];H.unshift(...Z),H.push(...W),V=H.length,B=Promise.resolve(z);while(X<V)B=B.then(H[X++],H[X++]);return B}V=Z.length;let E=z;X=0;while(X<V){let H=Z[X++],K=Z[X++];try{E=H(E)}catch(P){K.call(this,P);break}}try{B=H0.call(this,E)}catch(H){return Promise.reject(H)}X=0,V=W.length;while(X<V)B=B.then(W[X++],W[X++]);return B}getUri($){$=_(this.defaults,$);let z=o($.baseURL,$.url,$.allowAbsoluteUrls);return r(z,$.params,$.paramsSerializer)}}M.forEach(["delete","get","head","options"],function $(z){$0.prototype[z]=function(S,G){return this.request(_(G||{},{method:z,url:S,data:(G||{}).data}))}});M.forEach(["post","put","patch"],function $(z){function S(G){return function Q(Y,Z,J){return this.request(_(J||{},{method:z,headers:G?{"Content-Type":"multipart/form-data"}:{},url:Y,data:Z}))}}$0.prototype[z]=S(),$0.prototype[z+"Form"]=S(!0)});var z0=$0;class d0{constructor($){if(typeof $!=="function")throw new TypeError("executor must be a function.");let z;this.promise=new Promise(function G(Q){z=Q});let S=this;this.promise.then((G)=>{if(!S._listeners)return;let Q=S._listeners.length;while(Q-- >0)S._listeners[Q](G);S._listeners=null}),this.promise.then=(G)=>{let Q,Y=new Promise((Z)=>{S.subscribe(Z),Q=Z}).then(G);return Y.cancel=function Z(){S.unsubscribe(Q)},Y},$(function G(Q,Y,Z){if(S.reason)return;S.reason=new k(Q,Y,Z),z(S.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let z=this._listeners.indexOf($);if(z!==-1)this._listeners.splice(z,1)}toAbortSignal(){let $=new AbortController,z=(S)=>{$.abort(S)};return this.subscribe(z),$.signal.unsubscribe=()=>this.unsubscribe(z),$.signal}static source(){let $;return{token:new d0(function S(G){$=G}),cancel:$}}}var y1=d0;function c0($){return function z(S){return $.apply(null,S)}}function u0($){return M.isObject($)&&$.isAxiosError===!0}var l0={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(l0).forEach(([$,z])=>{l0[z]=$});var j1=l0;function m1($){let z=new z0($),S=d(z0.prototype.request,z);return M.extend(S,z0.prototype,z,{allOwnKeys:!0}),M.extend(S,z,null,{allOwnKeys:!0}),S.create=function G(Q){return m1(_($,Q))},S}var L=m1(h);L.Axios=z0;L.CanceledError=k;L.CancelToken=y1;L.isCancel=a;L.VERSION=E0;L.toFormData=y;L.AxiosError=w;L.Cancel=L.CanceledError;L.all=function $(z){return Promise.all(z)};L.spread=c0;L.isAxiosError=u0;L.mergeConfig=_;L.AxiosHeaders=U;L.formToJSON=($)=>X0(M.isHTMLForm($)?new FormData($):$);L.getAdapter=P0.getAdapter;L.HttpStatusCode=j1;L.default=L;var p0=L;var f1=async($,z)=>{let S=typeof z==="function"?await z($):z;if(!S)return;if($.scheme==="bearer")return`Bearer ${S}`;if($.scheme==="basic")return`Basic ${btoa(S)}`;return S};var D5=($)=>{switch($){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},F5=($)=>{switch($){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},L5=($)=>{switch($){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},r0=({allowReserved:$,explode:z,name:S,style:G,value:Q})=>{if(!z){let J=($?Q:Q.map((W)=>encodeURIComponent(W))).join(F5(G));switch(G){case"label":return`.${J}`;case"matrix":return`;${S}=${J}`;case"simple":return J;default:return`${S}=${J}`}}let Y=D5(G),Z=Q.map((J)=>{if(G==="label"||G==="simple")return $?J:encodeURIComponent(J);return S0({allowReserved:$,name:S,value:J})}).join(Y);return G==="label"||G==="matrix"?Y+Z:Z},S0=({allowReserved:$,name:z,value:S})=>{if(S===void 0||S===null)return"";if(typeof S==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${z}=${$?S:encodeURIComponent(S)}`},n0=({allowReserved:$,explode:z,name:S,style:G,value:Q,valueOnly:Y})=>{if(Q instanceof Date)return Y?Q.toISOString():`${S}=${Q.toISOString()}`;if(G!=="deepObject"&&!z){let W=[];Object.entries(Q).forEach(([X,V])=>{W=[...W,X,$?V:encodeURIComponent(V)]});let B=W.join(",");switch(G){case"form":return`${S}=${B}`;case"label":return`.${B}`;case"matrix":return`;${S}=${B}`;default:return B}}let Z=L5(G),J=Object.entries(Q).map(([W,B])=>S0({allowReserved:$,name:G==="deepObject"?`${S}[${W}]`:W,value:B})).join(Z);return G==="label"||G==="matrix"?Z+J:J};var R5=/\{[^{}]+\}/g,U5=({path:$,url:z})=>{let S=z,G=z.match(R5);if(G)for(let Q of G){let Y=!1,Z=Q.substring(1,Q.length-1),J="simple";if(Z.endsWith("*"))Y=!0,Z=Z.substring(0,Z.length-1);if(Z.startsWith("."))Z=Z.substring(1),J="label";else if(Z.startsWith(";"))Z=Z.substring(1),J="matrix";let W=$[Z];if(W===void 0||W===null)continue;if(Array.isArray(W)){S=S.replace(Q,r0({explode:Y,name:Z,style:J,value:W}));continue}if(typeof W==="object"){S=S.replace(Q,n0({explode:Y,name:Z,style:J,value:W,valueOnly:!0}));continue}if(J==="matrix"){S=S.replace(Q,`;${S0({name:Z,value:W})}`);continue}let B=encodeURIComponent(J==="label"?`.${W}`:W);S=S.replace(Q,B)}return S},O5=({allowReserved:$,array:z,object:S}={})=>{return(Q)=>{let Y=[];if(Q&&typeof Q==="object")for(let Z in Q){let J=Q[Z];if(J===void 0||J===null)continue;if(Array.isArray(J)){let W=r0({allowReserved:$,explode:!0,name:Z,style:"form",value:J,...z});if(W)Y.push(W)}else if(typeof J==="object"){let W=n0({allowReserved:$,explode:!0,name:Z,style:"deepObject",value:J,...S});if(W)Y.push(W)}else{let W=S0({allowReserved:$,name:Z,value:J});if(W)Y.push(W)}}return Y.join("&")}},v1=async({security:$,...z})=>{for(let S of $){let G=await f1(S,z.auth);if(!G)continue;let Q=S.name??"Authorization";switch(S.in){case"query":if(!z.query)z.query={};z.query[Q]=G;break;case"cookie":{let Y=`${Q}=${G}`;if("Cookie"in z.headers&&z.headers.Cookie)z.headers.Cookie=`${z.headers.Cookie}; ${Y}`;else z.headers.Cookie=Y;break}case"header":default:z.headers[Q]=G;break}return}},t0=($)=>{return x5({path:$.path,query:!$.paramsSerializer?$.query:void 0,querySerializer:typeof $.querySerializer==="function"?$.querySerializer:O5($.querySerializer),url:$.url})},x5=({path:$,query:z,querySerializer:S,url:G})=>{let Y=G.startsWith("/")?G:`/${G}`;if($)Y=U5({path:$,url:Y});let Z=z?S(z):"";if(Z.startsWith("?"))Z=Z.substring(1);if(Z)Y+=`?${Z}`;return Y},i0=($,z)=>{let S={...$,...z};return S.headers=F0($.headers,z.headers),S},T5=["common","delete","get","head","patch","post","put"],F0=(...$)=>{let z={};for(let S of $){if(!S||typeof S!=="object")continue;let G=Object.entries(S);for(let[Q,Y]of G)if(T5.includes(Q)&&typeof Y==="object")z[Q]={...z[Q],...Y};else if(Y===null)delete z[Q];else if(Array.isArray(Y))for(let Z of Y)z[Q]=[...z[Q]??[],Z];else if(Y!==void 0)z[Q]=typeof Y==="object"?JSON.stringify(Y):Y}return z},G0=($={})=>({...$});var a0=($={})=>{let z=i0(G0(),$),{auth:S,...G}=z,Q=p0.create(G),Y=()=>({...z}),Z=(W)=>{return z=i0(z,W),Q.defaults={...Q.defaults,...z,headers:F0(Q.defaults.headers,z.headers)},Y()},J=async(W)=>{let B={...z,...W,axios:W.axios??z.axios??Q,headers:F0(z.headers,W.headers)};if(B.security)await v1({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body&&B.bodySerializer)B.body=B.bodySerializer(B.body);let X=t0(B);try{let V=B.axios,{auth:E,...H}=B,K=await V({...H,baseURL:B.baseURL,data:B.body,headers:B.headers,params:B.paramsSerializer?B.query:void 0,url:X}),{data:P}=K;if(B.responseType==="json"){if(B.responseValidator)await B.responseValidator(P);if(B.responseTransformer)P=await B.responseTransformer(P)}return{...K,data:P??{}}}catch(V){let E=V;if(B.throwOnError)throw E;return E.error=E.response?.data??{},E}};return{buildUrl:t0,delete:(W)=>J({...W,method:"DELETE"}),get:(W)=>J({...W,method:"GET"}),getConfig:Y,head:(W)=>J({...W,method:"HEAD"}),instance:Q,options:(W)=>J({...W,method:"OPTIONS"}),patch:(W)=>J({...W,method:"PATCH"}),post:(W)=>J({...W,method:"POST"}),put:(W)=>J({...W,method:"PUT"}),request:J,setConfig:Z}};var N=a0(G0({baseURL:"http://localhost:3000"}));var h1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/games/bets",...$})},g1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/games/bets/options",...$})},d1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/bets",...$})},c1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/bets/options",...$})},u1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/goalscorer/bets",...$})},l1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/goalscorer/bets/options",...$})},p1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/goalie/bets",...$})},r1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/goalie/bets/options",...$})},n1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/historical/games/bets",...$})},t1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/historical/games/bets/options",...$})},i1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/historical/player/bets",...$})},a1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/historical/player/bets/options",...$})},s1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/trends",...$})},o1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/trends/options",...$})},e1=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/team/trends",...$})},$4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/team/trends/options",...$})},z4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/team/shots",...$})},S4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/team/shots/options",...$})},G4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/shots",...$})},Q4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nhl/v1/player/shots/options",...$})},Z4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/fantasy",...$})},Y4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/fantasy/options",...$})},M4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/games/bets",...$})},B4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/games/bets/options",...$})},J4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/team/trends",...$})},W4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/team/trends/options",...$})},N4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/trends",...$})},X4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/trends/options",...$})},K4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/bets",...$})},V4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/bets/options",...$})},I4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/historical/games/bets",...$})},w4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/historical/games/bets/options",...$})},P4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/historical/player/bets",...$})},H4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/historical/player/bets/options",...$})},E4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/touchdown/bets",...$})},D4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/touchdown/bets/options",...$})},W8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/gamelogs",...$})},N8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/player/gamelogs/options",...$})},X8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/team/gamelogs",...$})},K8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nfl/v1/team/gamelogs/options",...$})},F4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/ncaaf/v1/games/bets",...$})},L4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/ncaaf/v1/games/bets/options",...$})},R4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/ncaaf/v1/historical/games/bets",...$})},U4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/ncaaf/v1/historical/games/bets/options",...$})},O4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/games/bets",...$})},x4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/games/bets/options",...$})},T4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/player/bets",...$})},q4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/player/bets/options",...$})},_4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/historical/games/bets",...$})},k4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/historical/games/bets/options",...$})},b4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/historical/player/bets",...$})},A4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/historical/player/bets/options",...$})},C4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/player/trends",...$})},y4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/player/trends/options",...$})},j4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/team/trends",...$})},m4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/nba/v1/team/trends/options",...$})},f4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/soccer/v1/games/bets",...$})},v4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/soccer/v1/games/bets/options",...$})},h4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/soccer/v1/historical/games/bets",...$})},g4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/soccer/v1/historical/games/bets/options",...$})},d4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/games/bets",...$})},c4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/games/bets/options",...$})},u4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/bets",...$})},l4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/bets/options",...$})},p4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/historical/games/bets",...$})},r4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/historical/games/bets/options",...$})},n4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/historical/player/bets",...$})},t4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/historical/player/bets/options",...$})},i4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/trends",...$})},a4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/trends/options",...$})},s4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/team/trends",...$})},o4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/team/trends/options",...$})},V8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/gamelogs",...$})},I8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/player/gamelogs/options",...$})},w8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/team/gamelogs",...$})},P8=($)=>{return($?.client??N).get({responseType:"json",url:"/api/mlb/v1/team/gamelogs/options",...$})},e4=($)=>{return($?.client??N).get({responseType:"json",url:"/api/partners/bet-openly/v1",...$})},$$=($)=>{return($?.client??N).get({responseType:"json",url:"/api/partners/bet-openly/v1/open-bets",...$})};var z$="0.3.0";var k5="https://api.betalytics.com";N.setConfig({baseURL:k5});var b5={games:{getBets:O4,getBetsOptions:x4},player:{getBets:T4,getBetsOptions:q4,getTrends:C4,getTrendsOptions:y4},team:{getTrends:j4,getTrendsOptions:m4},historical:{games:{getBets:_4,getBetsOptions:k4},player:{getBets:b4,getBetsOptions:A4}}},A5={games:{getBets:M4,getBetsOptions:B4},player:{getBets:K4,getBetsOptions:V4,getTrends:N4,getTrendsOptions:X4,getFantasy:Z4,getFantasyOptions:Y4},team:{getTrends:J4,getTrendsOptions:W4},touchdown:{getBets:E4,getBetsOptions:D4},historical:{games:{getBets:I4,getBetsOptions:w4},player:{getBets:P4,getBetsOptions:H4}}},C5={games:{getBets:d4,getBetsOptions:c4},player:{getBets:u4,getBets