From 89f1d70dd6c055aea17b032906a181f652652a4f Mon Sep 17 00:00:00 2001 From: LT Date: Mon, 30 Sep 2024 20:48:36 +0300 Subject: [PATCH] feat: TableBuilder lazy --- src/Laravel/config/moonshine.php | 5 +- src/UI/dist/assets/app.js | 16 +- .../resources/js/Components/TableBuilder.js | 12 ++ src/UI/resources/js/Request/Sets.js | 5 +- .../views/components/table/builder.blade.php | 180 +++++++++--------- src/UI/src/Traits/HasAsync.php | 11 ++ src/UI/src/Traits/Table/TableStates.php | 15 ++ 7 files changed, 145 insertions(+), 99 deletions(-) diff --git a/src/Laravel/config/moonshine.php b/src/Laravel/config/moonshine.php index 8152ec83f..0f87b613b 100644 --- a/src/Laravel/config/moonshine.php +++ b/src/Laravel/config/moonshine.php @@ -22,9 +22,8 @@ return [ 'title' => env('MOONSHINE_TITLE', 'MoonShine'), 'domain' => env('MOONSHINE_DOMAIN'), - - 'prefix' => 'admin', - 'page_prefix' => 'page', + 'prefix' => env('MOONSHINE_ROUTE_PREFIX', 'admin'), + 'page_prefix' =>env('MOONSHINE_PAGE_PREFIX', 'page'), 'middleware' => [ EncryptCookies::class, diff --git a/src/UI/dist/assets/app.js b/src/UI/dist/assets/app.js index 8432be551..7e56769ee 100644 --- a/src/UI/dist/assets/app.js +++ b/src/UI/dist/assets/app.js @@ -1,18 +1,18 @@ -(()=>{function xa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jc}=Object.prototype,{getPrototypeOf:Lo}=Object,ai=(e=>t=>{const n=Jc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ut=e=>(e=e.toLowerCase(),t=>ai(t)===e),li=e=>t=>typeof t===e,{isArray:Rn}=Array,ur=li("undefined");function Qc(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&Ge(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ia=ut("ArrayBuffer");function Zc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ia(e.buffer),t}const eu=li("string"),Ge=li("function"),La=li("number"),ci=e=>e!==null&&typeof e=="object",tu=e=>e===!0||e===!1,$r=e=>{if(ai(e)!=="object")return!1;const t=Lo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nu=ut("Date"),ru=ut("File"),iu=ut("Blob"),ou=ut("FileList"),su=e=>ci(e)&&Ge(e.pipe),au=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ge(e.append)&&((t=ai(e))==="formdata"||t==="object"&&Ge(e.toString)&&e.toString()==="[object FormData]"))},lu=ut("URLSearchParams"),[cu,uu,du,fu]=["ReadableStream","Request","Response","Headers"].map(ut),hu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Rn(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Qt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Da=e=>!ur(e)&&e!==Qt;function Gi(){const{caseless:e}=Da(this)&&this||{},t={},n=(r,i)=>{const o=e&&Pa(t,i)||i;$r(t[o])&&$r(r)?t[o]=Gi(t[o],r):$r(r)?t[o]=Gi({},r):Rn(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(pr(t,(i,o)=>{n&&Ge(i)?e[o]=xa(i,n):e[o]=i},{allOwnKeys:r}),e),mu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gu=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vu=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Lo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bu=(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},yu=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!La(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_u=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lo(Uint8Array)),Eu=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},wu=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Su=ut("HTMLFormElement"),Au=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),vs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ou=ut("RegExp"),Ma=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Cu=e=>{Ma(e,(t,n)=>{if(Ge(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ge(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+"'")})}})},Tu=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},xu=()=>{},Iu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ti="abcdefghijklmnopqrstuvwxyz",bs="0123456789",ka={DIGIT:bs,ALPHA:Ti,ALPHA_DIGIT:Ti+Ti.toUpperCase()+bs},Lu=(e=16,t=ka.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Pu(e){return!!(e&&Ge(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Du=e=>{const t=new Array(10),n=(r,i)=>{if(ci(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Rn(r)?[]:{};return pr(r,(a,s)=>{const l=n(a,i+1);!ur(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Mu=ut("AsyncFunction"),ku=e=>e&&(ci(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),Na=((e,t)=>e?setImmediate:t?((n,r)=>(Qt.addEventListener("message",({source:i,data:o})=>{i===Qt&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Qt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ge(Qt.postMessage)),Nu=typeof queueMicrotask<"u"?queueMicrotask.bind(Qt):typeof process<"u"&&process.nextTick||Na,D={isArray:Rn,isArrayBuffer:Ia,isBuffer:Qc,isFormData:au,isArrayBufferView:Zc,isString:eu,isNumber:La,isBoolean:tu,isObject:ci,isPlainObject:$r,isReadableStream:cu,isRequest:uu,isResponse:du,isHeaders:fu,isUndefined:ur,isDate:nu,isFile:ru,isBlob:iu,isRegExp:Ou,isFunction:Ge,isStream:su,isURLSearchParams:lu,isTypedArray:_u,isFileList:ou,forEach:pr,merge:Gi,extend:pu,trim:hu,stripBOM:mu,inherits:gu,toFlatObject:vu,kindOf:ai,kindOfTest:ut,endsWith:bu,toArray:yu,forEachEntry:Eu,matchAll:wu,isHTMLForm:Su,hasOwnProperty:vs,hasOwnProp:vs,reduceDescriptors:Ma,freezeMethods:Cu,toObjectSet:Tu,toCamelCase:Au,noop:xu,toFiniteNumber:Iu,findKey:Pa,global:Qt,isContextDefined:Da,ALPHABET:ka,generateString:Lu,isSpecCompliantForm:Pu,toJSONObject:Du,isAsyncFn:Mu,isThenable:ku,setImmediate:Na,asap:Nu};function se(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}D.inherits(se,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});const Ra=se.prototype,Fa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fa[e]={value:e}});Object.defineProperties(se,Fa);Object.defineProperty(Ra,"isAxiosError",{value:!0});se.from=(e,t,n,r,i,o)=>{const a=Object.create(Ra);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),se.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Ru=null;function Xi(e){return D.isPlainObject(e)||D.isArray(e)}function $a(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ys(e,t,n){return e?e.concat(t).map(function(i,o){return i=$a(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Fu(e){return D.isArray(e)&&!e.some(Xi)}const $u=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function ui(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!D.isUndefined(b[v])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(D.isDate(m))return m.toISOString();if(!l&&D.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(m)||D.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,b){let S=m;if(m&&!b&&typeof m=="object"){if(D.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(D.isArray(m)&&Fu(m)||(D.isFileList(m)||D.endsWith(v,"[]"))&&(S=D.toArray(m)))return v=$a(v),S.forEach(function(T,_){!(D.isUndefined(T)||T===null)&&t.append(a===!0?ys([v],_,o):a===null?v:v+"[]",c(T))}),!1}return Xi(m)?!0:(t.append(ys(b,v,o),c(m)),!1)}const d=[],f=Object.assign($u,{defaultVisitor:u,convertValue:c,isVisitable:Xi});function p(m,v){if(!D.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),D.forEach(m,function(S,w){(!(D.isUndefined(S)||S===null)&&i.call(t,S,D.isString(w)?w.trim():w,v,f))===!0&&p(S,v?v.concat(w):[w])}),d.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return p(e),t}function _s(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Po(e,t){this._pairs=[],e&&ui(e,this,t)}const ja=Po.prototype;ja.append=function(t,n){this._pairs.push([t,n])};ja.toString=function(t){const n=t?function(r){return t.call(this,r,_s)}:_s;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function ju(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ba(e,t,n){if(!t)return e;const r=n&&n.encode||ju,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Po(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Es{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ha={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bu=typeof URLSearchParams<"u"?URLSearchParams:Po,Hu=typeof FormData<"u"?FormData:null,Uu=typeof Blob<"u"?Blob:null,Wu={isBrowser:!0,classes:{URLSearchParams:Bu,FormData:Hu,Blob:Uu},protocols:["http","https","file","blob","url","data"]},Do=typeof window<"u"&&typeof document<"u",Ji=typeof navigator=="object"&&navigator||void 0,Ku=Do&&(!Ji||["ReactNative","NativeScript","NS"].indexOf(Ji.product)<0),Vu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qu=Do&&window.location.href||"http://localhost",zu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Do,hasStandardBrowserEnv:Ku,hasStandardBrowserWebWorkerEnv:Vu,navigator:Ji,origin:qu},Symbol.toStringTag,{value:"Module"})),We={...zu,...Wu};function Yu(e,t){return ui(e,new We.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return We.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gu(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xu(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=Xu(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(Gu(r),i,n,0)}),n}return null}function Ju(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mr={transitional:Ha,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(Ua(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yu(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ui(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Ju(t)):t}],transformResponse:[function(t){const n=this.transitional||mr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{mr.headers[e]={}});const Qu=D.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"]),Zu=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Qu[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ws=Symbol("internals");function Kn(e){return e&&String(e).trim().toLowerCase()}function jr(e){return e===!1||e==null?e:D.isArray(e)?e.map(jr):String(e)}function ed(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 td=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xi(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function nd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rd(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let Ke=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=Kn(l);if(!u)throw new Error("header name must be a non-empty string");const d=D.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=jr(s))}const a=(s,l)=>D.forEach(s,(c,u)=>o(c,u,l));if(D.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(D.isString(t)&&(t=t.trim())&&!td(t))a(Zu(t),n);else if(D.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Kn(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ed(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Kn(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Kn(a),a){const s=D.findKey(r,a);s&&(!n||xi(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||xi(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=jr(i),delete n[o];return}const s=t?nd(o):String(o).trim();s!==o&&delete n[o],n[s]=jr(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.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(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ws]=this[ws]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Kn(a);r[s]||(rd(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}};Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Ke);function Ii(e,t){const n=this||mr,r=t||n,i=Ke.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Wa(e){return!!(e&&e.__CANCEL__)}function Fn(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Fn,se,{__CANCEL__:!0});function Ka(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function id(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function od(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const Yr=(e,t,n=3)=>{let r=0;const i=od(50,250);return sd(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Ss=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},As=e=>(...t)=>D.asap(()=>e(...t)),ad=We.hasStandardBrowserEnv?function(){const t=We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),ld=We.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ud(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Va(e,t){return e&&!cd(t)?ud(e,t):t}const Os=e=>e instanceof Ke?{...e}:e;function an(e,t){t=t||{};const n={};function r(c,u,d){return D.isPlainObject(c)&&D.isPlainObject(u)?D.merge.call({caseless:d},c,u):D.isPlainObject(u)?D.merge({},u):D.isArray(u)?u.slice():u}function i(c,u,d){if(D.isUndefined(u)){if(!D.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function o(c,u){if(!D.isUndefined(u))return r(void 0,u)}function a(c,u){if(D.isUndefined(u)){if(!D.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>i(Os(c),Os(u),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);D.isUndefined(f)&&d!==s||(n[u]=f)}),n}const qa=e=>{const t=an({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ke.from(a),t.url=Ba(Va(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(D.isFormData(n)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(We.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&ad(t.url))){const c=i&&o&&ld.read(o);c&&a.set(i,c)}return t},dd=typeof XMLHttpRequest<"u",fd=dd&&function(e){return new Promise(function(n,r){const i=qa(e);let o=i.data;const a=Ke.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,m;function v(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function S(){if(!b)return;const T=Ke.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),W={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:T,config:e,request:b};Ka(function(Y){n(Y),v()},function(Y){r(Y),v()},W),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new se("Request aborted",se.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const W=i.transitional||Ha;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new se(_,W.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,b)),b=null},o===void 0&&a.setContentType(null),"setRequestHeader"in b&&D.forEach(a.toJSON(),function(_,W){b.setRequestHeader(W,_)}),D.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),s&&s!=="json"&&(b.responseType=i.responseType),c&&([f,m]=Yr(c,!0),b.addEventListener("progress",f)),l&&b.upload&&([d,p]=Yr(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=T=>{b&&(r(!T||T.type?new Fn(null,e,b):T),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=id(i.url);if(w&&We.protocols.indexOf(w)===-1){r(new se("Unsupported protocol "+w+":",se.ERR_BAD_REQUEST,e));return}b.send(o||null)})},hd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof se?u:new Fn(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new se(`timeout ${t} of ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>D.asap(s),l}},pd=function*(e,t){let n=e.byteLength;if(!t||n{const i=md(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},di=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",za=di&&typeof ReadableStream=="function",vd=di&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ya=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bd=za&&Ya(()=>{let e=!1;const t=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ts=64*1024,Qi=za&&Ya(()=>D.isReadableStream(new Response("").body)),Gr={stream:Qi&&(e=>e.body)};di&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gr[t]&&(Gr[t]=D.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new se(`Response type '${t}' is not supported`,se.ERR_NOT_SUPPORT,r)})})})(new Response);const yd=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(We.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await vd(e)).byteLength},_d=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??yd(t)},Ed=di&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qa(e);c=c?(c+"").toLowerCase():"text";let p=hd([i,o&&o.toAbortSignal()],a),m;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(l&&bd&&n!=="get"&&n!=="head"&&(b=await _d(u,r))!==0){let W=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(D.isFormData(r)&&(R=W.headers.get("content-type"))&&u.setContentType(R),W.body){const[Y,x]=Ss(b,Yr(As(l)));r=Cs(W.body,Ts,Y,x)}}D.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:S?d:void 0});let w=await fetch(m);const T=Qi&&(c==="stream"||c==="response");if(Qi&&(s||T&&v)){const W={};["status","statusText","headers"].forEach(P=>{W[P]=w[P]});const R=D.toFiniteNumber(w.headers.get("content-length")),[Y,x]=s&&Ss(R,Yr(As(s),!0))||[];w=new Response(Cs(w.body,Ts,Y,()=>{x&&x(),v&&v()}),W)}c=c||"text";let _=await Gr[D.findKey(Gr,c)||"text"](w,e);return!T&&v&&v(),await new Promise((W,R)=>{Ka(W,R,{data:_,headers:Ke.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,e,m),{cause:S.cause||S}):se.from(S,S&&S.code,e,m)}}),Zi={http:Ru,xhr:fd,fetch:Ed};D.forEach(Zi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xs=e=>`- ${e}`,wd=e=>D.isFunction(e)||e===null||e===!1,Ga={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +(()=>{function xa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jc}=Object.prototype,{getPrototypeOf:Lo}=Object,li=(e=>t=>{const n=Jc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ut=e=>(e=e.toLowerCase(),t=>li(t)===e),ci=e=>t=>typeof t===e,{isArray:Rn}=Array,ur=ci("undefined");function Qc(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&Ge(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ia=ut("ArrayBuffer");function Zc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ia(e.buffer),t}const eu=ci("string"),Ge=ci("function"),La=ci("number"),ui=e=>e!==null&&typeof e=="object",tu=e=>e===!0||e===!1,jr=e=>{if(li(e)!=="object")return!1;const t=Lo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nu=ut("Date"),ru=ut("File"),iu=ut("Blob"),ou=ut("FileList"),su=e=>ui(e)&&Ge(e.pipe),au=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ge(e.append)&&((t=li(e))==="formdata"||t==="object"&&Ge(e.toString)&&e.toString()==="[object FormData]"))},lu=ut("URLSearchParams"),[cu,uu,du,fu]=["ReadableStream","Request","Response","Headers"].map(ut),hu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Rn(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Qt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Da=e=>!ur(e)&&e!==Qt;function Gi(){const{caseless:e}=Da(this)&&this||{},t={},n=(r,i)=>{const o=e&&Pa(t,i)||i;jr(t[o])&&jr(r)?t[o]=Gi(t[o],r):jr(r)?t[o]=Gi({},r):Rn(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(pr(t,(i,o)=>{n&&Ge(i)?e[o]=xa(i,n):e[o]=i},{allOwnKeys:r}),e),mu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gu=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vu=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Lo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bu=(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},yu=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!La(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_u=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lo(Uint8Array)),Eu=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},wu=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Su=ut("HTMLFormElement"),Au=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),vs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ou=ut("RegExp"),Ma=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Cu=e=>{Ma(e,(t,n)=>{if(Ge(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ge(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+"'")})}})},Tu=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},xu=()=>{},Iu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ti="abcdefghijklmnopqrstuvwxyz",bs="0123456789",ka={DIGIT:bs,ALPHA:Ti,ALPHA_DIGIT:Ti+Ti.toUpperCase()+bs},Lu=(e=16,t=ka.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Pu(e){return!!(e&&Ge(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Du=e=>{const t=new Array(10),n=(r,i)=>{if(ui(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Rn(r)?[]:{};return pr(r,(a,s)=>{const l=n(a,i+1);!ur(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Mu=ut("AsyncFunction"),ku=e=>e&&(ui(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),Na=((e,t)=>e?setImmediate:t?((n,r)=>(Qt.addEventListener("message",({source:i,data:o})=>{i===Qt&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Qt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ge(Qt.postMessage)),Nu=typeof queueMicrotask<"u"?queueMicrotask.bind(Qt):typeof process<"u"&&process.nextTick||Na,D={isArray:Rn,isArrayBuffer:Ia,isBuffer:Qc,isFormData:au,isArrayBufferView:Zc,isString:eu,isNumber:La,isBoolean:tu,isObject:ui,isPlainObject:jr,isReadableStream:cu,isRequest:uu,isResponse:du,isHeaders:fu,isUndefined:ur,isDate:nu,isFile:ru,isBlob:iu,isRegExp:Ou,isFunction:Ge,isStream:su,isURLSearchParams:lu,isTypedArray:_u,isFileList:ou,forEach:pr,merge:Gi,extend:pu,trim:hu,stripBOM:mu,inherits:gu,toFlatObject:vu,kindOf:li,kindOfTest:ut,endsWith:bu,toArray:yu,forEachEntry:Eu,matchAll:wu,isHTMLForm:Su,hasOwnProperty:vs,hasOwnProp:vs,reduceDescriptors:Ma,freezeMethods:Cu,toObjectSet:Tu,toCamelCase:Au,noop:xu,toFiniteNumber:Iu,findKey:Pa,global:Qt,isContextDefined:Da,ALPHABET:ka,generateString:Lu,isSpecCompliantForm:Pu,toJSONObject:Du,isAsyncFn:Mu,isThenable:ku,setImmediate:Na,asap:Nu};function se(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}D.inherits(se,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});const Ra=se.prototype,Fa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fa[e]={value:e}});Object.defineProperties(se,Fa);Object.defineProperty(Ra,"isAxiosError",{value:!0});se.from=(e,t,n,r,i,o)=>{const a=Object.create(Ra);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),se.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Ru=null;function Xi(e){return D.isPlainObject(e)||D.isArray(e)}function $a(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ys(e,t,n){return e?e.concat(t).map(function(i,o){return i=$a(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Fu(e){return D.isArray(e)&&!e.some(Xi)}const $u=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function di(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!D.isUndefined(b[v])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(D.isDate(m))return m.toISOString();if(!l&&D.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(m)||D.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,b){let S=m;if(m&&!b&&typeof m=="object"){if(D.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(D.isArray(m)&&Fu(m)||(D.isFileList(m)||D.endsWith(v,"[]"))&&(S=D.toArray(m)))return v=$a(v),S.forEach(function(T,_){!(D.isUndefined(T)||T===null)&&t.append(a===!0?ys([v],_,o):a===null?v:v+"[]",c(T))}),!1}return Xi(m)?!0:(t.append(ys(b,v,o),c(m)),!1)}const d=[],f=Object.assign($u,{defaultVisitor:u,convertValue:c,isVisitable:Xi});function p(m,v){if(!D.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),D.forEach(m,function(S,w){(!(D.isUndefined(S)||S===null)&&i.call(t,S,D.isString(w)?w.trim():w,v,f))===!0&&p(S,v?v.concat(w):[w])}),d.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return p(e),t}function _s(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Po(e,t){this._pairs=[],e&&di(e,this,t)}const ja=Po.prototype;ja.append=function(t,n){this._pairs.push([t,n])};ja.toString=function(t){const n=t?function(r){return t.call(this,r,_s)}:_s;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function ju(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ba(e,t,n){if(!t)return e;const r=n&&n.encode||ju,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Po(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Es{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ha={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bu=typeof URLSearchParams<"u"?URLSearchParams:Po,Hu=typeof FormData<"u"?FormData:null,Uu=typeof Blob<"u"?Blob:null,Wu={isBrowser:!0,classes:{URLSearchParams:Bu,FormData:Hu,Blob:Uu},protocols:["http","https","file","blob","url","data"]},Do=typeof window<"u"&&typeof document<"u",Ji=typeof navigator=="object"&&navigator||void 0,Ku=Do&&(!Ji||["ReactNative","NativeScript","NS"].indexOf(Ji.product)<0),Vu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qu=Do&&window.location.href||"http://localhost",zu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Do,hasStandardBrowserEnv:Ku,hasStandardBrowserWebWorkerEnv:Vu,navigator:Ji,origin:qu},Symbol.toStringTag,{value:"Module"})),We={...zu,...Wu};function Yu(e,t){return di(e,new We.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return We.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gu(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xu(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=Xu(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(Gu(r),i,n,0)}),n}return null}function Ju(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mr={transitional:Ha,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(Ua(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yu(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return di(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Ju(t)):t}],transformResponse:[function(t){const n=this.transitional||mr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{mr.headers[e]={}});const Qu=D.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"]),Zu=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Qu[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ws=Symbol("internals");function Kn(e){return e&&String(e).trim().toLowerCase()}function Br(e){return e===!1||e==null?e:D.isArray(e)?e.map(Br):String(e)}function ed(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 td=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xi(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function nd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rd(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let Ke=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=Kn(l);if(!u)throw new Error("header name must be a non-empty string");const d=D.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Br(s))}const a=(s,l)=>D.forEach(s,(c,u)=>o(c,u,l));if(D.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(D.isString(t)&&(t=t.trim())&&!td(t))a(Zu(t),n);else if(D.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Kn(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ed(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Kn(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Kn(a),a){const s=D.findKey(r,a);s&&(!n||xi(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||xi(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=Br(i),delete n[o];return}const s=t?nd(o):String(o).trim();s!==o&&delete n[o],n[s]=Br(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.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(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ws]=this[ws]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Kn(a);r[s]||(rd(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}};Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Ke);function Ii(e,t){const n=this||mr,r=t||n,i=Ke.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Wa(e){return!!(e&&e.__CANCEL__)}function Fn(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Fn,se,{__CANCEL__:!0});function Ka(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function id(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function od(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const Gr=(e,t,n=3)=>{let r=0;const i=od(50,250);return sd(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Ss=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},As=e=>(...t)=>D.asap(()=>e(...t)),ad=We.hasStandardBrowserEnv?function(){const t=We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),ld=We.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ud(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Va(e,t){return e&&!cd(t)?ud(e,t):t}const Os=e=>e instanceof Ke?{...e}:e;function an(e,t){t=t||{};const n={};function r(c,u,d){return D.isPlainObject(c)&&D.isPlainObject(u)?D.merge.call({caseless:d},c,u):D.isPlainObject(u)?D.merge({},u):D.isArray(u)?u.slice():u}function i(c,u,d){if(D.isUndefined(u)){if(!D.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function o(c,u){if(!D.isUndefined(u))return r(void 0,u)}function a(c,u){if(D.isUndefined(u)){if(!D.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>i(Os(c),Os(u),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);D.isUndefined(f)&&d!==s||(n[u]=f)}),n}const qa=e=>{const t=an({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ke.from(a),t.url=Ba(Va(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(D.isFormData(n)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(We.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&ad(t.url))){const c=i&&o&&ld.read(o);c&&a.set(i,c)}return t},dd=typeof XMLHttpRequest<"u",fd=dd&&function(e){return new Promise(function(n,r){const i=qa(e);let o=i.data;const a=Ke.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,m;function v(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function S(){if(!b)return;const T=Ke.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),U={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:T,config:e,request:b};Ka(function(z){n(z),v()},function(z){r(z),v()},U),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new se("Request aborted",se.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const U=i.transitional||Ha;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new se(_,U.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,b)),b=null},o===void 0&&a.setContentType(null),"setRequestHeader"in b&&D.forEach(a.toJSON(),function(_,U){b.setRequestHeader(U,_)}),D.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),s&&s!=="json"&&(b.responseType=i.responseType),c&&([f,m]=Gr(c,!0),b.addEventListener("progress",f)),l&&b.upload&&([d,p]=Gr(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=T=>{b&&(r(!T||T.type?new Fn(null,e,b):T),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=id(i.url);if(w&&We.protocols.indexOf(w)===-1){r(new se("Unsupported protocol "+w+":",se.ERR_BAD_REQUEST,e));return}b.send(o||null)})},hd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof se?u:new Fn(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new se(`timeout ${t} of ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>D.asap(s),l}},pd=function*(e,t){let n=e.byteLength;if(!t||n{const i=md(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},fi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",za=fi&&typeof ReadableStream=="function",vd=fi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ya=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bd=za&&Ya(()=>{let e=!1;const t=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ts=64*1024,Qi=za&&Ya(()=>D.isReadableStream(new Response("").body)),Xr={stream:Qi&&(e=>e.body)};fi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xr[t]&&(Xr[t]=D.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new se(`Response type '${t}' is not supported`,se.ERR_NOT_SUPPORT,r)})})})(new Response);const yd=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(We.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await vd(e)).byteLength},_d=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??yd(t)},Ed=fi&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qa(e);c=c?(c+"").toLowerCase():"text";let p=hd([i,o&&o.toAbortSignal()],a),m;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(l&&bd&&n!=="get"&&n!=="head"&&(b=await _d(u,r))!==0){let U=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(D.isFormData(r)&&(R=U.headers.get("content-type"))&&u.setContentType(R),U.body){const[z,x]=Ss(b,Gr(As(l)));r=Cs(U.body,Ts,z,x)}}D.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:S?d:void 0});let w=await fetch(m);const T=Qi&&(c==="stream"||c==="response");if(Qi&&(s||T&&v)){const U={};["status","statusText","headers"].forEach(P=>{U[P]=w[P]});const R=D.toFiniteNumber(w.headers.get("content-length")),[z,x]=s&&Ss(R,Gr(As(s),!0))||[];w=new Response(Cs(w.body,Ts,z,()=>{x&&x(),v&&v()}),U)}c=c||"text";let _=await Xr[D.findKey(Xr,c)||"text"](w,e);return!T&&v&&v(),await new Promise((U,R)=>{Ka(U,R,{data:_,headers:Ke.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,e,m),{cause:S.cause||S}):se.from(S,S&&S.code,e,m)}}),Zi={http:Ru,xhr:fd,fetch:Ed};D.forEach(Zi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xs=e=>`- ${e}`,wd=e=>D.isFunction(e)||e===null||e===!1,Ga={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(xs).join(` `):" "+xs(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Zi};function Li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fn(null,e)}function Is(e){return Li(e),e.headers=Ke.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ga.getAdapter(e.adapter||mr.adapter)(e).then(function(r){return Li(e),r.data=Ii.call(e,e.transformResponse,r),r.headers=Ke.from(r.headers),r},function(r){return Wa(r)||(Li(e),r&&r.response&&(r.response.data=Ii.call(e,e.transformResponse,r.response),r.response.headers=Ke.from(r.response.headers))),Promise.reject(r)})}const Xa="1.7.7",Mo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ls={};Mo.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Xa+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new se(i(a," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!Ls[a]&&(Ls[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function Sd(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new se("option "+o+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+o,se.ERR_BAD_OPTION)}}const eo={assertOptions:Sd,validators:Mo},Dt=eo.validators;let en=class{constructor(t){this.defaults=t,this.interceptors={request:new Es,response:new Es}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=an(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&eo.assertOptions(r,{silentJSONParsing:Dt.transitional(Dt.boolean),forcedJSONParsing:Dt.transitional(Dt.boolean),clarifyTimeoutError:Dt.transitional(Dt.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:eo.assertOptions(i,{encode:Dt.function,serialize:Dt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&D.merge(o.common,o[n.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Ke.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,f;if(!l){const m=[Is.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Fn(o,a,s),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 Ja(function(i){t=i}),cancel:t}}};function Od(e){return function(n){return e.apply(null,n)}}function Cd(e){return D.isObject(e)&&e.isAxiosError===!0}const to={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(to).forEach(([e,t])=>{to[t]=e});function Qa(e){const t=new en(e),n=xa(en.prototype.request,t);return D.extend(n,en.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Qa(an(e,i))},n}const Ce=Qa(mr);Ce.Axios=en;Ce.CanceledError=Fn;Ce.CancelToken=Ad;Ce.isCancel=Wa;Ce.VERSION=Xa;Ce.toFormData=ui;Ce.AxiosError=se;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=Od;Ce.isAxiosError=Cd;Ce.mergeConfig=an;Ce.AxiosHeaders=Ke;Ce.formToJSON=e=>Ua(D.isHTMLForm(e)?new FormData(e):e);Ce.getAdapter=Ga.getAdapter;Ce.HttpStatusCode=to;Ce.default=Ce;const{Axios:Kg,AxiosError:Vg,CanceledError:qg,isCancel:zg,CancelToken:Yg,VERSION:Gg,all:Xg,Cancel:Jg,isAxiosError:Qg,spread:Zg,toFormData:ev,AxiosHeaders:tv,HttpStatusCode:nv,formToJSON:Td,getAdapter:rv,mergeConfig:iv}=Ce;window.axios=Ce;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";CSS.supports("selector(:has(*))")||document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".layout-wrapper");e&&e.querySelector(":scope > .layout-menu")&&e.classList.add("layout-wrapper--sidebar"),e&&e.querySelector(":scope > .layout-menu-horizontal")&&e.classList.add("layout-wrapper--top-menu"),e&&e.querySelector(":scope > .layout-menu-mobile")&&e.classList.add("layout-wrapper--mobilebar")});var no=!1,ro=!1,tn=[],io=-1;function xd(e){Id(e)}function Id(e){tn.includes(e)||tn.push(e),Ld()}function Za(e){let t=tn.indexOf(e);t!==-1&&t>io&&tn.splice(t,1)}function Ld(){!ro&&!no&&(no=!0,queueMicrotask(Pd))}function Pd(){no=!1,ro=!0;for(let e=0;ee.effect(t,{scheduler:n=>{oo?xd(n):n()}}),el=e.raw}function Ps(e){jn=e}function kd(e){let t=()=>{};return[r=>{let i=jn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),gr(i))},i},()=>{t()}]}function Zn(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Ft(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>Ft(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Ft(r,t),r=r.nextElementSibling}function St(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Ds=!1;function Nd(){Ds&&St("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Ds=!0,document.body||St("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `