Files
2026-09-12 21:29:34 +01:00

10 lines
52 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function Tt(e,t){return function(){return e.apply(t,arguments)}}const{toString:fn}=Object.prototype,{getPrototypeOf:J}=Object,{iterator:me,toStringTag:Pt}=Symbol,pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Ct=(e,t,n)=>e===Object.prototype||!n&&t===null,dn=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(xt(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},he=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const s=J(n);if(Ct(n,s,n===e))return!1;if(pe(n,t))return!0;n=s}return!1},pn=(e,t)=>e!=null&&he(e,t)?e[t]:void 0,hn=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=J(e);if(t===null&&dn(e))return e;const n=Object.create(null),r=Object.create(null),s=[];let o=e;for(;o!=null&&s.indexOf(o)===-1;){s.push(o);const i=o===e?t:J(o);if(Ct(o,i,o===e))break;const c=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&c.push(...Object.getOwnPropertySymbols(o));for(const l of c)xt(l)||pe(r,l)||(n[l]=e[l],r[l]=!0);o=i}return n},Je=(e=>t=>{const n=fn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),j=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ce=e=>t=>typeof t===e,{isArray:Y}=Array,ee=Ce("undefined");function oe(e){return e!==null&&!ee(e)&&e.constructor!==null&&!ee(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nt=j("ArrayBuffer");function mn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nt(e.buffer),t}const yn=Ce("string"),F=Ce("function"),Lt=Ce("number"),ie=e=>e!==null&&typeof e=="object",bn=e=>e===!0||e===!1,Se=e=>{if(!ie(e))return!1;const t=J(e);return(t===null||t===Object.prototype||J(t)===null)&&!he(e,Pt)&&!he(e,me)},wn=e=>{if(!ie(e)||oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gn=j("Date"),En=j("File"),Rn=e=>!!(e&&typeof e.uri<"u"),On=e=>e&&typeof e.getParts<"u",Sn=j("Blob"),An=j("FileList"),_n=j("Set"),Tn=e=>ie(e)&&F(e.pipe);function Pn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const it=Pn(),at=typeof it.FormData<"u"?it.FormData:void 0,xn=e=>{if(!e)return!1;if(at&&e instanceof at)return!0;const t=J(e);if(!t||t===Object.prototype||!F(e.append))return!1;const n=Je(e);return n==="formdata"||n==="object"&&F(e.toString)&&e.toString()==="[object FormData]"},Cn=j("URLSearchParams"),[Nn,Ln,Dn,Un]=["ReadableStream","Request","Response","Headers"].map(j),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ye(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Y(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(oe(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Dt(e,t){if(oe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ut=e=>!ee(e)&&e!==Q;function ze(...e){const{caseless:t,skipUndefined:n}=Ut(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&&typeof i=="string"&&Dt(r,i)||i,l=pe(r,c)?r[c]:void 0;Se(l)&&Se(o)?r[c]=ze(l,o):Se(o)?r[c]=ze({},o):Y(o)?r[c]=o.slice():(!n||!ee(o))&&(r[c]=o)};for(let o=0,i=e.length;o<i;o++){const c=e[o];if(!c||oe(c)||(ye(c,s),typeof c!="object"||Y(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let d=0;d<l.length;d++){const f=l[d];Vn.call(c,f)&&s(c[f],f)}}return r}const Bn=(e,t,n,{allOwnKeys:r}={})=>(ye(t,(s,o)=>{n&&F(s)?Object.defineProperty(e,o,{__proto__:null,value:Tt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),jn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},In=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&J(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hn=e=>{if(!e)return null;if(Y(e))return e;let t=e.length;if(!Lt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Mn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&J(Uint8Array)),$n=(e,t)=>{const r=(e&&e[me]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},zn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vn=j("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:Vn}=Object.prototype,Jn=j("RegExp"),Ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ye(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Kn=e=>{Ft(e,(t,n)=>{if(F(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(F(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Y(e)?r(e):r(String(e).split(t)),n},Gn=()=>{},Qn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zn(e){return!!(e&&F(e.append)&&e[Pt]==="FormData"&&e[me])}const Yn=e=>{const t=new WeakSet,n=r=>{if(ie(r)){if(t.has(r))return;if(oe(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(_n(r)){s=[];for(const o of r){const i=n(o);!ee(i)&&s.push(i)}}else s=Y(r)?[]:{},ye(r,(o,i)=>{const c=n(o);!ee(c)&&(s[i]=c)});return t.delete(r),s}}return r};return n(e)},er=j("AsyncFunction"),tr=e=>e&&(ie(e)||F(e))&&F(e.then)&&F(e.catch),Bt=((e,t)=>e?setImmediate:t?((n,r)=>(Q.addEventListener("message",({source:s,data:o})=>{s===Q&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(Q.postMessage)),nr=typeof queueMicrotask<"u"?queueMicrotask.bind(Q):typeof process<"u"&&process.nextTick||Bt,jt=e=>e!=null&&F(e[me]),rr=e=>e!=null&&he(e,me)&&jt(e),a={isArray:Y,isArrayBuffer:Nt,isBuffer:oe,isFormData:xn,isArrayBufferView:mn,isString:yn,isNumber:Lt,isBoolean:bn,isObject:ie,isPlainObject:Se,isEmptyObject:wn,isReadableStream:Nn,isRequest:Ln,isResponse:Dn,isHeaders:Un,isUndefined:ee,isDate:gn,isFile:En,isReactNativeBlob:Rn,isReactNative:On,isBlob:Sn,isRegExp:Jn,isFunction:F,isStream:Tn,isURLSearchParams:Cn,isTypedArray:Mn,isFileList:An,forEach:ye,merge:ze,extend:Bn,trim:Fn,stripBOM:jn,inherits:kn,toFlatObject:In,kindOf:Je,kindOfTest:j,endsWith:qn,toArray:Hn,forEachEntry:$n,matchAll:zn,isHTMLForm:vn,hasOwnProperty:pe,hasOwnProp:pe,hasOwnInPrototypeChain:he,getSafeProp:pn,toSafeFlatObject:hn,reduceDescriptors:Ft,freezeMethods:Kn,toObjectSet:Xn,toCamelCase:Wn,noop:Gn,toFiniteNumber:Qn,findKey:Dt,global:Q,isContextDefined:Ut,isSpecCompliantForm:Zn,toJSONObject:Yn,isAsyncFn:er,isThenable:tr,setImmediate:Bt,asap:nr,isIterable:jt,isSafeIterable:rr},sr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),or=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim();const c=a.hasOwnProp(t,n);!n||c&&a.hasOwnProp(sr,n)||(n==="set-cookie"?c?t[n].push(r):t[n]=[r]:t[n]=c?t[n]+", "+r:r)}),t};function ir(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const ar=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),cr=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ke(e,t){return a.isArray(e)?e.map(n=>Ke(n,t)):ir(String(e).replace(t,""))}const lr=e=>Ke(e,ar),ur=e=>Ke(e,cr);function kt(e){const t=Object.create(null);return a.forEach(e.toJSON(),(n,r)=>{t[r]=ur(n)}),t}const ct=Symbol("internals");function ue(e){return e&&String(e).trim().toLowerCase()}function Ae(e){return e===!1||e==null?e:a.isArray(e)?e.map(Ae):lr(String(e))}function fr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dr=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Be(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function pr(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const s=e.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function hr(e){const t=Object.create(null),n=String(e);let r=0,s=!1,o=!1;function i(c){const l=Be(n.slice(r,c)),d=l.indexOf("=");if(d<1)return;const f=Be(l.slice(0,d));if(!dr.test(f))return;const p=f.toLowerCase();if(p==="__proto__"||p==="constructor"||p==="prototype")return;const y=Be(l.slice(d+1));t[p]=pr(y)}for(let c=0;c<n.length;c++){const l=n.charCodeAt(c);s?o?o=!1:l===92?o=!0:l===34&&(s=!1):l===34?s=!0:(l===44||l===59)&&(i(c),r=c+1)}return i(n.length),t}const mr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function je(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function yr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function br(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let U=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,d){const f=ue(l);if(!f)return;const p=a.findKey(s,f);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||l]=Ae(c))}const i=(c,l)=>a.forEach(c,(d,f)=>o(d,f,l));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!mr(t))i(or(t),n);else if(a.isObject(t)&&a.isSafeIterable(t)){let c=Object.create(null),l,d;for(const f of t){if(!a.isArray(f))throw new TypeError("Object iterator must return a key-value pair");d=f[0],a.hasOwnProp(c,d)?(l=c[d],c[d]=a.isArray(l)?[...l,f[1]]:[l,f[1]]):c[d]=f[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ue(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return fr(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ue(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||je(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ue(i),i){const c=a.findKey(r,i);c&&(!n||je(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||je(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Ae(s),delete n[o];return}const c=t?yr(o):String(o).trim();c!==o&&delete n[o],n[c]=Ae(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){const t=this.get("set-cookie");return a.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return hr(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ct]=this[ct]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=ue(i);r[c]||(br(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};U.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(U.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(U);const Pe="[REDACTED ****]";function wr(e){if(a.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function gr(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||a.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof U&&(o=o.toJSON()),r.push(o);let i;if(a.isArray(o))i=[],o.forEach((c,l)=>{const d=s(c);a.isUndefined(d)||(i[l]=d)});else{if(!a.isPlainObject(o)&&wr(o))return r.pop(),o;i=Object.create(null);for(const[c,l]of Object.entries(o)){const d=n.has(c.toLowerCase())?Pe:s(l);a.isUndefined(d)||(i[c]=d)}}return r.pop(),i};return s(e)}function lt(e){try{return String(e)}catch{return""}}function Er(e){return e.errors.map(n=>{try{return n&&n.message?lt(n.message):lt(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let h=class It extends Error{static from(t,n,r,s,o,i){let c=t.message;!c&&a.isArray(t.errors)&&t.errors.length&&(c=Er(t));const l=new It(c,n||t.code,r,s,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&a.hasOwnProp(t,"redact")?t.redact:void 0,r=a.isArray(n)&&n.length>0?gr(t,n):a.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Rr=null,qt=100;function ve(e){return a.isPlainObject(e)||a.isArray(e)}function Ht(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Or(e){return a.isArray(e)&&!e.some(ve)}const Sr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Ne(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(m,g)=>{const b=a.getSafeProp(n,m);return a.isUndefined(b)?g:b},s=r("metaTokens",!0),o=r("visitor")||S,i=r("dots",!1),c=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,d=r("maxDepth",qt),f=l&&a.isSpecCompliantForm(t),p=[];if(!a.isFunction(o))throw new TypeError("visitor must be a function");function y(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(a.isBoolean(m))return m.toString();if(!f&&a.isBlob(m))throw new h("Blob is not supported. Use a Buffer instead.");if(a.isArrayBuffer(m)||a.isTypedArray(m)){if(f&&typeof l=="function")return new l([m]);throw new h("Blob is not supported. Use a Buffer instead.",h.ERR_NOT_SUPPORT)}return m}function E(m){if(m>d)throw new h("Object is too deeply nested ("+m+" levels). Max depth: "+d,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function R(m,g){if(d===1/0)return JSON.stringify(m);const b=[];return JSON.stringify(m,function(N,A){if(!a.isObject(A))return A;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(A),E(g+b.length-1),A})}function S(m,g,b){let P=m;if(a.isReactNative(t)&&a.isReactNativeBlob(m))return t.append(ke(b,g,i),y(m)),!1;if(m&&!b&&typeof m=="object"){if(a.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=R(m,1);else if(a.isArray(m)&&Or(m)||(a.isFileList(m)||a.endsWith(g,"[]"))&&(P=a.toArray(m)))return g=Ht(g),P.forEach(function(A,I){!(a.isUndefined(A)||A===null)&&t.append(c===!0?ke([g],I,i):c===null?g:g+"[]",y(A))}),!1}return ve(m)?!0:(t.append(ke(b,g,i),y(m)),!1)}const T=Object.assign(Sr,{defaultVisitor:S,convertValue:y,isVisitable:ve});function u(m,g,b=0){if(!a.isUndefined(m)){if(E(b),p.indexOf(m)!==-1)throw new Error("Circular reference detected in "+g.join("."));p.push(m),a.forEach(m,function(N,A){(!(a.isUndefined(N)||N===null)&&o.call(t,N,a.isString(A)?A.trim():A,g,T))===!0&&u(N,g?g.concat(A):[A],b+1)}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return u(e),t}function ut(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Xe(e,t){this._pairs=[],e&&Ne(e,this,t)}const Mt=Xe.prototype;Mt.append=function(t,n){this._pairs.push([t,n])};Mt.toString=function(t){const n=t?r=>t.call(this,r,ut):ut;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ar(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $t(e,t,n){if(!t)return e;e=e||"";const r=a.isFunction(n)?{serialize:n}:n,s=a.getSafeProp(r,"encode")||Ar,o=a.getSafeProp(r,"serialize");let i;if(o?i=o(t,r):i=a.isURLSearchParams(t)?t.toString():new Xe(t,r).toString(s),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const fe=Symbol("internals");function zt(e){return e?e.length:0}function ft(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function de(e,t){const n=e.handlers,r=zt(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,i){n[o.index]!==o.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=r}class dt{constructor(){this.handlers=[],this[fe]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const s={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[fe];this.handlers==null&&(this.handlers=[]),de(this,o);const i=o.nextId++;return this.handlers.push(s),o.handlerEntries.set(i,{handler:s,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(t){const n=this[fe];de(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(ft(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],de(this,this[fe]))}forEach(t){const n=this[fe];de(this,n),n.iterationDepth++;try{a.forEach(this.handlers,function(s){s!==null&&t(s)})}finally{--n.iterationDepth||(de(this,n),ft(this.handlers),n.handlersLength=zt(this.handlers))}}}const Ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},_r=typeof URLSearchParams<"u"?URLSearchParams:Xe,Tr=typeof FormData<"u"?FormData:null,Pr=typeof Blob<"u"?Blob:null,xr={isBrowser:!0,classes:{URLSearchParams:_r,FormData:Tr,Blob:Pr},protocols:["http","https","file","blob","url","data"]},Qe=typeof window<"u"&&typeof document<"u",We=typeof navigator=="object"&&navigator||void 0,Cr=Qe&&(!We||["ReactNative","NativeScript","NS"].indexOf(We.product)<0),Nr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lr=Qe&&window.location.href||"http://localhost",Dr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qe,hasStandardBrowserEnv:Cr,hasStandardBrowserWebWorkerEnv:Nr,navigator:We,origin:Lr},Symbol.toStringTag,{value:"Module"})),x={...Dr,...xr};function Ur(e,t){return Ne(e,new x.classes.URLSearchParams,{visitor:function(n,r,s,o){return x.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const pt=qt;function vt(e){if(e>pt)throw new h("FormData field is too deeply nested ("+e+" levels). Max depth: "+pt,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Fr(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)vt(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Br(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Wt(e){function t(n,r,s,o){vt(o);let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,l?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!c):((!a.hasOwnProp(s,i)||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Br(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Fr(r),s,n,0)}),n}return null}const Vt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),re=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function jr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const be={transitional:Ge,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Wt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){const l=re(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ur(t,l).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=re(this,"env"),f=d&&d.FormData;return Ne(c?{"files[]":t}:t,f&&new f,l)}}return o||s?(n.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const n=re(this,"transitional")||be.transitional,r=n&&n.forcedJSONParsing,s=re(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!s||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,re(this,"parseReviver"))}catch(l){if(c)throw l.name==="SyntaxError"?h.from(l,h.ERR_BAD_RESPONSE,this,null,re(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(Vt,e=>{be.headers[e]={}});function Ie(e,t){const n=this||be,r=t||n,s=U.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Jt(e){return!!(e&&e.__CANCEL__)}let we=class extends h{constructor(t,n,r){super(t??"canceled",h.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Kt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new h("Request failed with status code "+n.status,n.status>=400&&n.status<500?h.ERR_BAD_REQUEST:h.ERR_BAD_RESPONSE,n.config,n.request,n))}const kr=/[\t\n\r]/g;function Xt(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(kr,"")}function qe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Ir(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),f=r[o];i||(i=d),n[s]=l,r[s]=d;let p=o,y=0;for(;p!==s;)y+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const E=f&&d-f;return E?Math.round(y*1e3/E):void 0}}function qr(e,t){let n=0,r=1e3/t,s,o;const i=(f,p=Date.now())=>{n=p,s=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const p=Date.now(),y=p-n;y>=r?i(f,p):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-y)))},()=>s&&i(s),(...f)=>i(f)]}const xe=(e,t,n=3)=>{let r=0;const s=Ir(50,250);return qr(o=>{if(!o||!a.isNumber(o.loaded))return;const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=Math.max(0,c!=null?Math.min(i,c):i),d=Math.max(0,l-r),f=s(d);r=Math.max(r,l);const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},ht=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mt=(e,t=a.asap)=>(...n)=>t(()=>e(...n)),Hr=x.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,x.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,Mr=x.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $r(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zr(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const vr=/^https?:(?!\/\/)/i;function Wr(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Pe}`)}function Vr(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Pe}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Pe}`);return n===-1?s:`${s}#${Wr(t.slice(n+1))}`}function yt(e,t){if(typeof e=="string"){const n=Xt(e);if(vr.test(n))throw new h(`Invalid URL ${JSON.stringify(Vr(n))}: missing "//" after protocol`,h.ERR_INVALID_URL,t)}}function Gt(e,t,n,r){yt(t,r);let s=!$r(t);return e&&(s||n===!1)?(yt(e,r),zr(e,t)):t}const bt=e=>e instanceof U?{...e}:e,Jr=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function te(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,p,y,E){return a.isPlainObject(f)&&a.isPlainObject(p)?a.merge.call({caseless:E},f,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function s(f,p,y,E){if(a.isUndefined(p)){if(!a.isUndefined(f))return r(void 0,f,y,E)}else return r(f,p,y,E)}function o(f,p){if(!a.isUndefined(p))return r(void 0,p)}function i(f,p){if(a.isUndefined(p)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f){const p=a.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!a.isUndefined(p))if(a.isPlainObject(p)){if(a.hasOwnProp(p,f))return p[f]}else return;const y=a.hasOwnProp(e,"transitional")?e.transitional:void 0;if(a.isPlainObject(y)&&a.hasOwnProp(y,f))return y[f]}function l(f,p,y){if(a.hasOwnProp(t,y))return r(f,p);if(a.hasOwnProp(e,y))return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutErrorMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(f,p,y)=>s(bt(f),bt(p),y,!0)};return a.forEach(Jr({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const y=a.hasOwnProp(d,p)?d[p]:s,E=a.hasOwnProp(e,p)?e[p]:void 0,R=a.hasOwnProp(t,p)?t[p]:void 0,S=y(E,R,p);a.isUndefined(S)&&y!==l||(n[p]=S)}),a.hasOwnProp(t,"validateStatus")&&a.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(a.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Kr=["content-type","content-length"];function Xr(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{Kr.includes(r.toLowerCase())&&e.set(r,s)})}const Gr=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Qt(e){const t=te({},e),n=y=>a.hasOwnProp(t,y)?t[y]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const l=n("auth"),d=n("baseURL"),f=n("allowAbsoluteUrls"),p=n("url");if(t.headers=c=U.from(c),t.url=$t(Gt(d,p,f,t),n("params"),n("paramsSerializer")),l){const y=a.getSafeProp(l,"username")||"",E=a.getSafeProp(l,"password")||"";try{c.set("Authorization","Basic "+btoa(y+":"+(E?Gr(E):"")))}catch(R){throw h.from(R,h.ERR_BAD_OPTION_VALUE,e)}}if(a.isFormData(r)){const y=a.getSafeProp(r,"getHeaders");x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv||a.isReactNative(r)?c.setContentType(void 0):a.isFunction(y)&&Xr(c,y.call(r),n("formDataHeaderPolicy"))}if(x.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&Hr(t.url))){const E=o&&i&&Mr.read(i);E&&c.set(o,E)}return t}const Qr=typeof XMLHttpRequest<"u",Zr=Qr&&function(e){return new Promise(function(n,r){const s=Qt(e);let o=s.data;const i=U.from(s.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=s,f,p,y,E,R,S;function T(){E&&E(),R&&R(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(s.method.toUpperCase(),s.url,!0),u.timeout=s.timeout;function m(b){if(!u)return;if(u.status===0&&(qe(Xt(s.url))||qe(x.origin))!=="file"&&!(u.responseURL&&u.responseURL.startsWith("file:"))){r(new h("Request aborted",h.ECONNABORTED,e,u)),T(),u=null;return}try{b?S&&S(b):R&&R()}catch(I){setTimeout(()=>{throw I})}if(!u)return;const P=U.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:P,config:e,request:u};Kt(function(K){n(K),T()},function(K){r(K),T()},A),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.startsWith("file:"))||setTimeout(m)},u.onabort=function(){u&&(r(new h("Request aborted",h.ECONNABORTED,e,u)),T(),u=null)},u.onerror=function(P){const N=P&&P.message?P.message:"Network Error",A=new h(N,h.ERR_NETWORK,e,u);A.event=P||null,r(A),T(),u=null},u.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||Ge;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new h(P,N.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,u)),T(),u=null},o===void 0&&i.setContentType(null),"setRequestHeader"in u&&a.forEach(kt(i),function(P,N){u.setRequestHeader(N,P)}),a.isUndefined(s.withCredentials)||(u.withCredentials=!!s.withCredentials),c&&c!=="json"&&(u.responseType=s.responseType),d&&([y,R,S]=xe(d,!0),u.addEventListener("progress",y)),l&&u.upload&&([p,E]=xe(l),u.upload.addEventListener("progress",p),u.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(f=b=>{u&&(r(!b||b.type?new we(null,e,u):b),u.abort(),T(),u=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const g=qe(s.url);if(g&&!x.protocols.includes(g)){r(new h("Unsupported protocol "+g+":",h.ERR_BAD_REQUEST,e)),T();return}u.send(o||null)})},Yr=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(l){if(!r){r=!0,i();const d=l instanceof Error?l:this.reason;n.abort(d instanceof h?d:new we(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new h(`timeout of ${t}ms exceeded`,h.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){s.call(l);return}l.addEventListener("abort",s,{once:!0})}});const{signal:c}=n;return c.unsubscribe=()=>a.asap(i),c},es=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ts=async function*(e,t){for await(const n of ns(e))yield*es(n,t)},ns=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},wt=(e,t,n,r)=>{const s=ts(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:f}=await s.next();if(d){c(),l.close();return}let p=f.byteLength;if(n){let y=o+=p;n(y)}l.enqueue(new Uint8Array(f))}catch(d){throw c(d),d}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},gt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Zt=(e,t,n)=>t+2<n&&gt(e.charCodeAt(t+1))&&gt(e.charCodeAt(t+2)),Et=e=>e<=57?e-48:(e&223)-55,rs=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,ss=e=>e===9||e===10||e===12||e===13||e===32,os=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},is=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},as=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let i=e.charCodeAt(o);if(i===37&&Zt(e,o,t)&&(i=Et(e.charCodeAt(o+1))*16+Et(e.charCodeAt(o+2)),o+=2),!ss(i)){if(i===61){r++;continue}if(!rs(i)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?is(e):os(n)},cs=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let i=0;for(let c=0,l=s.length;c<l;c++){const d=s.charCodeAt(c);if(d===37&&Zt(s,c,l))i+=1,c+=2;else if(d<128)i+=1;else if(d<2048)i+=2;else if(d>=55296&&d<=56319&&c+1<l){const f=s.charCodeAt(c+1);f>=56320&&f<=57343?(i+=4,c++):i+=3}else i+=3}return i};function ls(e){const t=typeof e=="string"?e.indexOf("#"):-1;return cs(t===-1?e:e.slice(0,t),as)}const Ze="1.20.0",Rt=64*1024,us={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Oe}=a,fs=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Ot=e=>{if(!a.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},St=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ds=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},ps=e=>{const t=a.global!==void 0&&a.global!==null?a.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=a.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,c=s?Oe(s):typeof fetch=="function",l=Oe(o),d=Oe(i);if(!c)return!1;const f=c&&Oe(n),p=c&&(typeof r=="function"?(u=>m=>u.encode(m))(new r):async u=>new Uint8Array(await new o(u).arrayBuffer())),y=l&&f&&St(()=>{let u=!1;const m=new o(x.origin,{body:new n,method:"POST",get duplex(){return u=!0,"half"}}),g=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),u&&!g}),E=d&&f&&St(()=>a.isReadableStream(new i("").body)),R={stream:E&&(u=>u.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!R[u]&&(R[u]=(m,g)=>{let b=m&&m[u];if(b)return b.call(m);throw new h(`Response type '${u}' is not supported`,h.ERR_NOT_SUPPORT,g)})});const S=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new o(x.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await p(u)).byteLength},T=async(u,m)=>{const g=a.toFiniteNumber(u.getContentLength());return g??S(m)};return async u=>{let{url:m,method:g,data:b,signal:P,cancelToken:N,timeout:A,onDownloadProgress:I,onUploadProgress:K,responseType:z,headers:v,withCredentials:ge="same-origin",fetchOptions:De,maxContentLength:q,maxBodyLength:Ee,maxRedirects:an}=Qt(u);const ae=a.isNumber(q)&&q>-1,Ue=a.isNumber(Ee)&&Ee>-1,cn=O=>a.hasOwnProp(u,O)?u[O]:void 0;let tt=s||fetch;z=z?(z+"").toLowerCase():"text";let W=Yr([P,N&&N.toAbortSignal()],A),C=null;const X=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let ne,ce=null;const nt=()=>new h("Request body larger than maxBodyLength limit",h.ERR_BAD_REQUEST,u,C);try{let O;const B=cn("auth");if(B){const w=a.getSafeProp(B,"username")||"",L=a.getSafeProp(B,"password")||"";O={username:w,password:L}}if(ds(m)){const w=new URL(m,x.origin);if(!O&&(w.username||w.password)){const L=Ot(w.username),V=Ot(w.password);O={username:L,password:V}}(w.username||w.password)&&(w.username="",w.password="",m=w.href)}if(O&&(v.delete("authorization"),v.set("Authorization","Basic "+btoa(fs((O.username||"")+":"+(O.password||""))))),ae&&typeof m=="string"&&m.startsWith("data:")&&ls(m)>q)throw new h("maxContentLength size of "+q+" exceeded",h.ERR_BAD_RESPONSE,u,C);if(Ue&&g!=="get"&&g!=="head"){const w=await S(b);if(typeof w=="number"&&isFinite(w)&&(ne=w,w>Ee))throw nt()}const Re=Ue&&(a.isReadableStream(b)||a.isStream(b)),rt=(w,L,V)=>wt(w,Rt,G=>{if(Ue&&G>Ee)throw ce=nt();L&&L(G)},V);if(y&&g!=="get"&&g!=="head"&&(K||Re)){if(ne=ne??await T(v,b),ne!==0||Re){let w=new o(m,{method:"POST",body:b,duplex:"half"}),L;if(a.isFormData(b)&&(L=w.headers.get("content-type"))&&v.setContentType(L),w.body){const[V,G]=K&&ht(ne,xe(mt(K)))||[];b=rt(w.body,V,G)}}}else if(Re&&!l&&f&&g!=="get"&&g!=="head")b=rt(b);else if(Re&&l&&!y&&g!=="get"&&g!=="head")throw new h("Stream request bodies are not supported by the current fetch implementation",h.ERR_NOT_SUPPORT,u,C);a.isString(ge)||(ge=ge?"include":"omit");const ln=l&&"credentials"in o.prototype;if(a.isFormData(b)){const w=v.getContentType();w&&/^multipart\/form-data/i.test(w)&&!/boundary=/i.test(w)&&v.delete("content-type")}v.set("User-Agent","axios/"+Ze,!1);const k=De==null?De:Object.assign(Object.create(null),De);k&&(delete k.body,delete k.headers,delete k.method,delete k.signal,delete k.duplex,delete k.credentials);const H=Object.assign(Object.create(null),k,{signal:W,method:g.toUpperCase(),headers:kt(v.normalize()),body:b,duplex:"half",credentials:ln?ge:void 0});l&&(a.forEach(us,(w,L)=>{H[L]===void 0&&(H[L]=w)}),H.signal===void 0&&(H.signal=null),H.body===void 0&&(H.body=null)),an===0&&(H.redirect="manual",k&&(k.redirect="manual")),C=l&&new o(m,H);let M=await(l?tt(C,k):tt(m,H));const st=U.from(M.headers);if(ae){const w=a.toFiniteNumber(st.getContentLength());if(w!=null&&w>q)throw new h("maxContentLength size of "+q+" exceeded",h.ERR_BAD_RESPONSE,u,C)}const Fe=E&&(z==="stream"||z==="response");if(E&&M.body&&(I||ae||Fe&&X)){const w={};["status","statusText","headers"].forEach(le=>{w[le]=M[le]});const L=a.toFiniteNumber(st.getContentLength()),[V,G]=I&&ht(L,xe(mt(I),!0))||[];let ot=0;const un=le=>{if(ae&&(ot=le,ot>q))throw new h("maxContentLength size of "+q+" exceeded",h.ERR_BAD_RESPONSE,u,C);V&&V(le)};M=new i(wt(M.body,Rt,un,()=>{G&&G(),X&&X()}),w)}z=z||"text";let $=await R[a.findKey(R,z)||"text"](M,u);if(ae&&!E&&!Fe){let w;if($!=null&&(typeof $.byteLength=="number"?w=$.byteLength:typeof $.size=="number"?w=$.size:typeof $=="string"&&(w=typeof r=="function"?new r().encode($).byteLength:$.length)),typeof w=="number"&&w>q)throw new h("maxContentLength size of "+q+" exceeded",h.ERR_BAD_RESPONSE,u,C)}return!Fe&&X&&X(),await new Promise((w,L)=>{Kt(w,L,{data:$,headers:U.from(M.headers),status:M.status,statusText:M.statusText,config:u,request:C})})}catch(O){if(X&&X(),W&&W.aborted&&W.reason instanceof h){const B=W.reason;throw B.config=u,C&&(B.request=C),O!==B&&Object.defineProperty(B,"cause",{__proto__:null,value:O,writable:!0,enumerable:!1,configurable:!0}),B}if(ce)throw C&&!ce.request&&(ce.request=C),ce;if(O instanceof h)throw C&&!O.request&&(O.request=C),O;if(O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)){const B=new h("Network Error",h.ERR_NETWORK,u,C,O&&O.response);throw Object.defineProperty(B,"cause",{__proto__:null,value:O.cause||O,writable:!0,enumerable:!1,configurable:!0}),B}throw h.from(O,O&&O.code,u,C,O&&O.response)}}},hs=new Map,Yt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,l,d,f=hs;for(;c--;)l=o[c],d=f.get(l),d===void 0&&f.set(l,d=c?new Map:ps(t)),f=d;return d};Yt();const Ye={http:Rr,xhr:Zr,fetch:{get:Yt}};a.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const At=e=>`- ${e}`,ms=e=>a.isFunction(e)||e===null||e===!1;function ys(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!ms(r)&&(s=Ye[(c=String(r)).toLowerCase()],s===void 0))throw new h(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
`+i.map(At).join(`
`):" "+At(i[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,h.ERR_NOT_SUPPORT)}return s}const en={getAdapter:ys,adapters:Ye};function He(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Me(e){const t=a.toSafeFlatObject(e);return He(t),t.headers=U.from(a.getSafeProp(t,"headers")),t.data=Ie.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),en.getAdapter(t.adapter||be.adapter,t)(t).then(function(s){He(t),t.response=s;try{s.data=Ie.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=U.from(s.headers),s},function(s){if(!Jt(s)&&(He(t),s&&s.response)){t.response=s.response;try{s.response.data=Ie.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=U.from(s.response.headers)}return Promise.reject(s)})}const Le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _t={};Le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ze+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new h(s(i," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!_t[i]&&(_t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bs(e,t,n){if(typeof e!="object"||e===null)throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new h("option "+o+" must be "+l,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const _e={assertOptions:bs,validators:Le},D=_e.validators;let Z=class{constructor(t){this.defaults=t||{},this.interceptors={request:new dt,response:new dt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack;let i="";if(typeof o=="string"){const c=o.indexOf(`
`);i=c===-1?"":o.slice(c+1)}if(!r.stack)r.stack=i;else if(i){const c=i.indexOf(`
`),l=c===-1?-1:i.indexOf(`
`,c+1),d=l===-1?"":i.slice(l+1);String(r.stack).endsWith(d)||(r.stack+=`
`+i)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=te(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&_e.assertOptions(r,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean),legacyInterceptorReqResOrdering:D.transitional(D.boolean),advertiseZstdAcceptEncoding:D.transitional(D.boolean),validateStatusUndefinedResolves:D.transitional(D.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:_e.assertOptions(s,{encode:D.function,serialize:D.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_e.assertOptions(n,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.spelling("withXSRFToken")},!0),n.method=(a.getSafeProp(n,"method")||a.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(Vt.concat("common"),R=>{delete o[R]}),n.headers=U.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;l=l&&S.synchronous;const T=n.transitional||Ge;T&&T.legacyInterceptorReqResOrdering?c.unshift(S.fulfilled,S.rejected):c.push(S.fulfilled,S.rejected)});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let f,p=0,y;if(!l){const R=[Me.bind(this),void 0];for(R.unshift(...c),R.push(...d),y=R.length,f=Promise.resolve(n);p<y;)f=f.then(R[p++],R[p++]);return f}y=c.length;let E=n;for(;p<y;){const R=c[p++],S=c[p++];try{E=R?R(E):E}catch(T){if(!S){f=Promise.reject(T);break}try{const u=S.call(this,T);a.isThenable(u)&&(f=Promise.resolve(u).then(()=>Me.call(this,E)))}catch(u){f=Promise.reject(u)}break}}if(!f)try{f=Me.call(this,E)}catch(R){f=Promise.reject(R)}for(p=0,y=d.length;p<y;)f=f.then(d[p++],d[p++]);return f}getUri(t){t=te(this.defaults,t);const n=Gt(t.baseURL,t.url,t.allowAbsoluteUrls,t);return $t(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){Z.prototype[t]=function(n,r){return this.request(te(r||{},{method:t,url:n,data:r&&a.hasOwnProp(r,"data")?r.data:void 0}))}});a.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,c){return this.request(te(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Z.prototype[t]=n(),t!=="query"&&(Z.prototype[t+"Form"]=n(!0))});let ws=class tn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new we(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tn(function(s){t=s}),cancel:t}}};function gs(e){return function(n){return e.apply(null,n)}}function Es(e){return a.isObject(e)&&e.isAxiosError===!0}const Te={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Te).forEach(([e,t])=>{Te[t]===void 0&&(Te[t]=e)});function nn(e){const t=new Z(e),n=Tt(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return nn(te(e,s))},n}const _=nn(be);_.Axios=Z;_.CanceledError=we;_.CancelToken=ws;_.isCancel=Jt;_.VERSION=Ze;_.toFormData=Ne;_.AxiosError=h;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=gs;_.isAxiosError=Es;_.mergeConfig=te;_.AxiosHeaders=U;_.formToJSON=e=>Wt(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=en.getAdapter;_.HttpStatusCode=Te;_.default=_;const{Axios:_s,AxiosError:Ts,CanceledError:Ps,isCancel:xs,CancelToken:Cs,VERSION:Ns,all:Ls,Cancel:Ds,isAxiosError:Us,spread:Fs,toFormData:Bs,AxiosHeaders:js,HttpStatusCode:ks,formToJSON:Is,getAdapter:qs,mergeConfig:Hs,create:Ms}=_;window.axios=_;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";const se=document.querySelector("[data-menu-toggle]"),rn=document.querySelector("[data-menu-panel]");se?.addEventListener("click",()=>{const e=rn?.classList.toggle("open")??!1;se.setAttribute("aria-expanded",String(e)),se.textContent=e?"×":"☰"});document.querySelectorAll("[data-menu-panel] a").forEach(e=>{e.addEventListener("click",()=>{rn?.classList.remove("open"),se?.setAttribute("aria-expanded","false"),se&&(se.textContent="☰")})});const Rs=document.querySelector("#adminSidebar"),sn=document.querySelector("[data-admin-overlay]"),et=e=>{Rs?.classList.toggle("open",e),sn?.classList.toggle("open",e),document.body.classList.toggle("admin-menu-open",e)};document.querySelector("[data-admin-open]")?.addEventListener("click",()=>et(!0));document.querySelector("[data-admin-close]")?.addEventListener("click",()=>et(!1));sn?.addEventListener("click",()=>et(!1));const Ve=document.querySelectorAll("[data-admin-theme]"),on=window.matchMedia("(prefers-color-scheme: dark)"),$e=(e,t=!0)=>{["light","dark","system"].includes(e)||(e="system");const n=e==="system"?on.matches?"dark":"light":e;document.documentElement.dataset.adminTheme=n,document.documentElement.dataset.adminThemePreference=e,t&&localStorage.setItem("beatbook-admin-theme",e),Ve.forEach(r=>{const s=r.dataset.adminTheme===e;r.classList.toggle("active",s),r.setAttribute("aria-pressed",String(s))})};Ve.length&&($e(localStorage.getItem("beatbook-admin-theme")||"system",!1),Ve.forEach(e=>e.addEventListener("click",()=>$e(e.dataset.adminTheme))),on.addEventListener?.("change",()=>{(localStorage.getItem("beatbook-admin-theme")||"system")==="system"&&$e("system",!1)}));