1import{i as tn,u as is,h as os,a as as,r as us,n as cs,s as nn,b as sn,w as le,o as rn,c as on,d as an,e as un,t as cn}from"./vue-vendor-c0W5WEtO.js";const ls="VUE_QUERY_CLIENT";function ln(e){const t=e?`:${e}`:"";return`${ls}${t}`}function et(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function tt(e,t,n="",s=0){if(t){const r=t(e,n,s);if(r===void 0&&tn(e)||r!==void 0)return r}if(Array.isArray(e))return e.map((r,i)=>tt(r,t,String(i),s+1));if(typeof e=="object"&&hs(e)){const r=Object.entries(e).map(([i,o])=>[i,tt(o,t,i,s+1)]);return Object.fromEntries(r)}return e}function fs(e,t){return tt(e,t)}function E(e,t=!1){return fs(e,(n,s,r)=>{if(r===1&&s==="queryKey")return E(n,!0);if(t&&ds(n))return E(n(),t);if(tn(n))return E(is(n),t)})}function hs(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ds(e){return typeof e=="function"}function fn(e=""){if(!os())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=ln(e),n=as(t);if(!n)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return n}const ps={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var ys=class{#e=ps;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const te=new ys;function ms(e){setTimeout(e,0)}const bs=typeof window>"u"||"Deno"in globalThis;function I(){}function gs(e,t){return typeof e=="function"?e(t):e}function hn(e){return typeof e=="number"&&e>=0&&e!==1/0}function dn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _(e,t){return typeof e=="function"?e(t):e}function At(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==lt(o,t.options))return!1}else if(!fe(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function vt(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(re(t.options.mutationKey)!==re(i))return!1}else if(!fe(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function lt(e,t){return(t?.queryKeyHashFn||re)(e)}function re(e){return JSON.stringify(e,(t,n)=>nt(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function fe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let s=0;s<t.length;s++)if(!fe(e[s],t[s]))return!1;return!0}const n=Object.keys(t);for(const s of n)if(!fe(e[s],t[s]))return!1;return!0}return!1}const ws=Object.prototype.hasOwnProperty;function pn(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Tt(e)&&Tt(t);if(!s&&!(nt(e)&&nt(t)))return t;const r=(s?e:Object.keys(e)).length,i=s?t:Object.keys(t),o=i.length,a=s?new Array(o):{};let c=0;for(let f=0;f<o;f++){const l=s?f:i[f],h=e[l],m=t[l];if(h===m){a[l]=h,(s?f<r:ws.call(e,l))&&c++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){a[l]=m;continue}const b=pn(h,m,n+1);a[l]=b,b===h&&c++}return r===o&&c===r?e:a}function Fe(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Tt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nt(e){if(!_t(e))return!1;const t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!="function")return!1;const s=n.prototype;return!(!_t(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function _t(e){return Object.prototype.toString.call(e)==="[object Object]"}function Os(e){return new Promise(t=>{te.setTimeout(t,e)})}function st(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pn(e,t):t}function Rs(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function Ss(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}const ft=Symbol();function yn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ft?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function rt(e,t){return typeof e=="function"?e(...t):!!e}function Es(e,t,n){let s=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),s||(s=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}let mn=()=>bs;const Qe=()=>mn(),Ps={isServer:Qe,setIsServer(e){mn=e}};var he=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cs=class extends he{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}};const ht=new Cs,As=ms;function vs(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=As;const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}const U=vs();var Ts=class extends he{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};const Me=new Ts;function _s(e){return Math.min(1e3*2**e,3e4)}function bn(e){return(e??"online")==="online"?Me.isOnline():!0}var it=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function gn(e){let t=!1,n=0,s,r="pending",i,o;const a=new Promise((p,O)=>{i=p,o=O});a.catch(I);const c=()=>r!=="pending",f=p=>{if(!c()){const O=new it(p);R(O),e.onCancel?.(O)}},l=()=>{t=!0},h=()=>{t=!1},m=()=>ht.isFocused()&&(e.networkMode==="always"||Me.isOnline())&&e.canRun(),b=()=>bn(e.networkMode)&&e.canRun(),g=p=>{c()||(s?.(),r="resolved",i(p))},R=p=>{c()||(s?.(),r="rejected",o(p))},C=()=>new Promise(p=>{s=O=>{(c()||m())&&p(O)},e.onPause?.()}).then(()=>{s=void 0,c()||e.onContinue?.()}),d=()=>{if(c())return;let p;const O=n===0?e.initialPromise:void 0;try{p=O??e.fn()}catch(w){p=Promise.reject(w)}Promise.resolve(p).then(g).catch(w=>{if(c())return;const P=e.retry??(Qe()?0:3),v=e.retryDelay??_s,T=typeof v=="function"?v(n,w):v,q=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,w);if(t||!q){R(w);return}n++,e.onFail?.(n,w),Os(T).then(()=>m()?void 0:C()).then(()=>{t?R(w):d()})})};return{promise:a,status:()=>r,cancel:f,continue:()=>(s?.(),a),cancelRetry:l,continueRetry:h,canStart:b,start:()=>(b()?d():C().then(d),a)}}var wn=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hn(this.gcTime)&&(this.#e=te.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qe()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(te.clearTimeout(this.#e),this.#e=void 0)}};function xs(e){return{onFetch:(t,n)=>{const s=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const f=async()=>{let l=!1;const h=g=>{Es(g,()=>t.signal,()=>l=!0)},m=yn(t.options,t.fetchOptions),b=async(g,R,C)=>{if(l)return Promise.reject(t.signal.reason);if(R==null&&g.pages.length)return Promise.resolve(g);const p=(()=>{const v={client:t.client,queryKey:t.queryKey,pageParam:R,direction:C?"backward":"forward",meta:t.options.meta};return h(v),v})(),O=await m(p),{maxPages:w}=t.options,P=C?Ss:Rs;return{pages:P(g.pages,O,w),pageParams:P(g.pageParams,R,w)}};if(r&&i.length){const g=r==="backward",R=g?Ds:xt,C={pages:i,pageParams:o};a=await b(C,R(s,C),g)}else{const g=e??i.length;do{const R=c===0?o[0]??s.initialPageParam:xt(s,a);if(c>0&&R==null)break;a=await b(a,R),c++}while(c<g)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function xt(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Ds(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Fs=class extends wn{#e;#t;#n;#s;#i;#r;#o;#u;constructor(e){super(),this.#u=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#s=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ft(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Ft(this.options);t.data!==void 0&&(this.setState(Dt(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const n=st(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#a({type:"setState",state:e})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(I).catch(I):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>_(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ft||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,708 bytes, line 1
1Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>_(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!dn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#r&&(this.#u||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,s=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},r=()=>{const c=yn(this.options,t),l=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(h),h})();return this.#u=!1,this.options.persister?this.options.persister(c,l,this):c(l)},o=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return s(c),c})();(this.#e==="infinite"?xs(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta});const a=this.#r=gn({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:c=>{c instanceof it&&c.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#a({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const c=await a.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#s.config.onSuccess?.(c,this),this.#s.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof it){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#a({type:"error",error:c}),this.#s.config.onError?.(c,this),this.#s.config.onSettled?.(this.state.data,c,this),c}finally{this.#r===a&&(this.#r=void 0),this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...On(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...Dt(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),U.batch(()=>{this.observers.slice().forEach(n=>{n.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function On(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Dt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ft(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Us=class extends he{#e;#t=void 0;#n=void 0;#s=void 0;#i;#r;#o;#u;#a;#d;#l;#f;#c;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ut(this.#t,this.options)?this.#h():this.updateResult(),this.#w())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ot(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ot(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#R(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Fe(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Nt(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),s&&(this.#t!==n||_(this.options.enabled,this.#t)!==_(t.enabled,this.#t)||_(this.options.staleTime,this.#t)!==_(t.staleTime,this.#t))&&this.#m();const r=this.#b();s&&(this.#t!==n||_(this.options.enabled,this.#t)!==_(t.enabled,this.#t)||r!==this.#c)&&this.#g(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Fe(this.getCurrentResult(),n)||(this.#s=n,this.#r=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(n,s)=>(this.trackProp(s),t?.(s),Reflect.get(n,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);let s=()=>{},r;const i=new Promise(o=>{r=o,s=this.#e.getQueryCache().subscribe(a=>{a.type==="updated"&&a.query.queryHash===n.queryHash&&n.state.data!==void 0&&(s(),o(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{const o=this.createResult(n,t);return r?.(o),o}).finally(()=>{s()}),i])}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(I)),t}#y(e){return!Qe()&&_(this.options.enabled,this.#t)!==!1&&hn(e)}#m(){this.#O();const e=_(this.options.staleTime,this.#t);if(this.#s.isStale||!this.#y(e))return;const t=dn(this.#s.dataUpdatedAt,e)+1;this.#l=te.setTimeout(()=>{this.#s.isStale||this.updateResult()},t)}#b(){return _(this.options.refetchInterval,this.#t)??!1}#g(e){this.#R(),this.#c=e,!(this.#c===0||!this.#y(this.#c))&&(this.#f=te.setInterval(()=>{(this.options.refetchIntervalInBackground||ht.isFocused())&&this.#h()},this.#c))}#w(){this.#m(),this.#g(this.#b())}#O(){this.#l!==void 0&&(te.clearTimeout(this.#l),this.#l=void 0)}#R(){this.#f!==void 0&&(te.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,s=this.options,r=this.#s,i=this.#i,o=this.#r,a=e!==n?e.state:this.#n,{state:c}=e;let f={...c},l=!1,h;if(t._optimisticResults){const P=this.hasListeners(),v=!P&&Ut(e,t),T=P&&Nt(e,n,t,s);(v||T)&&(f={...f,...On(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:b,status:g}=f;h=f.data;let R=!1;if(t.placeholderData!==void 0&&h===void 0&&g==="pending"){let P;r?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(P=r.data,R=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,P!==void 0&&(g="success",h=st(r?.data,P,t),l=!0)}if(t.select&&h!==void 0&&!R)if(r&&h===i?.data&&t.select===this.#u)h=this.#a;else try{this.#u=t.select,h=t.select(h),h=st(r?.data,h,t),this.#a=h,this.#o=null}catch(P){this.#o=P}else h===void 0&&(this.#o=null);this.#o&&(m=this.#o,h=this.#a,b=Date.now(),g="error",l=!1);const C=f.fetchStatus==="fetching",d=g==="pending",p=g==="error",O=d&&C,w=h!==void 0;return{status:g,fetchStatus:f.fetchStatus,isPending:d,isSuccess:g==="success",isError:p,isInitialLoading:O,isLoading:O,data:h,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdate
1Count:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>a.dataUpdateCount||f.errorUpdateCount>a.errorUpdateCount,isFetching:C,isRefetching:C&&!d,isLoadingError:p&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:l,isRefetchError:p&&w,isStale:dt(e,t),refetch:this.refetch,isEnabled:_(t.enabled,e)!==!1}}updateResult(){const e=this.#s,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#r=this.options,this.#i.data!==void 0&&(this.#d=this.#t),Fe(t,e))return;this.#s=t;const s=(()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return!0;const o=new Set(i??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#s).some(a=>{const c=a;return this.#s[c]!==e[c]&&o.has(c)})})();U.batch(()=>{s&&this.listeners.forEach(r=>{r(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#w()}};function Ns(e,t){return _(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&_(t.retryOnMount,e)===!1)}function Ut(e,t){return Ns(e,t)||e.state.data!==void 0&&ot(e,t,t.refetchOnMount)}function ot(e,t,n){if(_(t.enabled,e)!==!1&&_(t.staleTime,e)!=="static"){const s=_(n,e);return s==="always"||s!==!1&&dt(e,t)}return!1}function Nt(e,t,n,s){return(e!==t||_(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&dt(e,n)}function dt(e,t){return _(t.enabled,e)!==!1&&e.isStaleByTime(_(t.staleTime,e))}var Ls=class extends wn{#e;#t;#n;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Rn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},s=this.#s=gn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#i({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),r=this.state.status==="pending",i=!s.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const a=await this.options.onMutate?.(e,n);a!==this.state.context&&this.#i({type:"pending",context:a,variables:e,isPaused:i})}const o=await s.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(a){Promise.reject(a)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(a){Promise.reject(a)}throw this.#i({type:"error",error:o}),o}finally{this.#s===s&&(this.#s=void 0),this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
1case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),U.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Rn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sn=class extends he{#e;#t;#n;constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}build(t,n,s){const r=new Ls({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){this.#e.add(t);const n=xe(t);if(typeof n=="string"){const s=this.#t.get(n);s?s.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=xe(t);if(typeof n=="string"){const s=this.#t.get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=xe(t);if(typeof n=="string"){const s=this.#t.get(n)?.find(r=>r.state.status==="pending");return!s||s===t}else return!0}runNext(t){const n=xe(t);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){U.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(s=>vt(n,s))}findAll(t={}){return this.getAll().filter(n=>vt(t,n))}notify(t){U.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return U.batch(()=>Promise.all(t.map(n=>n.continue().catch(I))))}};function xe(e){return e.options.scope?.id}var js=class extends he{#e;#t=void 0;#n;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Fe(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&re(t.mutationKey)!==re(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#r(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#r()}mutate(e,t){return this.#s=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){const e=this.#n?.state??Rn();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){U.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,n,s)}catch(r){Promise.reject(r)}try{this.#s.onSettled?.(e.data,null,t,n,s)}catch(r){Promise.reject(r)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,n,s)}catch(r){Promise.reject(r)}try{this.#s.onSettled?.(void 0,e.error,t,n,s)}catch(r){Promise.reject(r)}}}this.listeners.forEach(t=>{t(this.#t)})})}},En=class extends he{#e;constructor(t={}){super(),this.config=t,this.#e=new Map}build(t,n,s){const r=n.queryKey,i=n.queryHash??lt(r,n);let o=this.get(i);return o||(o=new Fs({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}
1remove(t){this.#e.get(t.queryHash)===t&&(t.destroy(),this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){U.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>At(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>At(t,s)):n}notify(t){U.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){U.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){U.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ms=class{#e;#t;#n;#s;#i;#r;#o;#u;constructor(t={}){this.#e=t.queryCache||new En,this.#t=t.mutationCache||new Sn,this.#n=t.defaultOptions||{},this.#s=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=ht.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#u=Me.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#u?.(),this.#u=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),s=this.#e.build(this,n),r=s.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(_(n.staleTime,s))&&this.prefetchQuery(n),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:s})=>[n,s.data])}setQueryData(t,n,s){const r=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(r.queryHash)?.state.data,o=gs(n,i);if(o!==void 0)return this.#e.build(this,r).setData(o,{...s,manual:!0})}setQueriesData(t,n,s){return U.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,n,s)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;U.batch(()=>{n.findAll(t).forEach(s=>{n.remove(s)})})}resetQueries(t,n){const s=this.#e;return U.batch(()=>{const r=s.findAll(t),i=new Set(r);return r.forEach(o=>{o.reset()}),this.refetchQueries({type:"active",predicate:o=>i.has(o)},n)})}cancelQueries(t,n={}){const s={revert:!0,...n},r=U.batch(()=>this.#e.findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(I).catch(I)}invalidateQueries(t,n={}){return U.batch(()=>(this.#e.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const s={...n,cancelRefetch:n.cancelRefetch??!0},r=U.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,s);return s.throwOnError||(o=o.catch(I)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(I)}async query(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const s=this.#e.build(this,n),r=s.isStaleByTime(_(n.staleTime,s))?await s.fetch(n):s.state.data,i=n.select;return i?i(r):r}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const s=this.#e.build(this,n);return s.isStaleByTime(_(n.staleTime,s))?s.fetch(n):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(I).catch(I)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(I).catch(I)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return Me.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#s.set(re(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#s.values()],s={};return n.forEach(r=>{fe(t,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(t,n){this.#i.set(re(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#i.values()],s={};
1return n.forEach(r=>{fe(t,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=lt(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ft&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Is=class extends En{find(e){return super.find(E(e))}findAll(e={}){return super.findAll(E(e))}},qs=class extends Sn{find(e){return super.find(E(e))}findAll(e={}){return super.findAll(E(e))}},Qs=class extends Ms{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new Is,mutationCache:e.mutationCache||new qs};super(t),this.isRestoring=us(!1)}isFetching(e={}){return super.isFetching(E(e))}isMutating(e={}){return super.isMutating(E(e))}getQueryData(e){return super.getQueryData(E(e))}ensureQueryData(e){return super.ensureQueryData(E(e))}getQueriesData(e){return super.getQueriesData(E(e))}setQueryData(e,t,n={}){return super.setQueryData(E(e),t,E(n))}setQueriesData(e,t,n={}){return super.setQueriesData(E(e),t,E(n))}getQueryState(e){return super.getQueryState(E(e))}removeQueries(e={}){return super.removeQueries(E(e))}resetQueries(e={},t={}){return super.resetQueries(E(e),E(t))}cancelQueries(e={},t={}){return super.cancelQueries(E(e),E(t))}invalidateQueries(e={},t={}){const n=E(e),s=E(t);if(super.invalidateQueries({...n,refetchType:"none"},s),n.refetchType==="none")return Promise.resolve();const r={...n,type:n.refetchType??n.type??"active"};return cs().then(()=>super.refetchQueries(r,s))}refetchQueries(e={},t={}){return super.refetchQueries(E(e),E(t))}query(e){return super.query(E(e))}fetchQuery(e){return super.fetchQuery(E(e))}prefetchQuery(e){return super.prefetchQuery(E(e))}infiniteQuery(e){return super.infiniteQuery(E(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(E(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(E(e))}setDefaultOptions(e){super.setDefaultOptions(E(e))}setQueryDefaults(e,t){super.setQueryDefaults(E(e),E(t))}getQueryDefaults(e){return super.getQueryDefaults(E(e))}setMutationDefaults(e,t){super.setMutationDefaults(E(e),E(t))}getMutationDefaults(e){return super.getMutationDefaults(E(e))}};const Oo={install:(e,t={})=>{const n=ln(t.queryClientKey);let s;if("queryClient"in t&&t.queryClient)s=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;s=new Qs(o)}Ps.isServer()||s.mount();let r=()=>{};if(t.clientPersister){s.isRestoring&&(s.isRestoring.value=!0);const[o,a]=t.clientPersister(s);r=o,a.then(()=>{s.isRestoring&&(s.isRestoring.value=!1),t.clientPersisterOnSuccess?.(s)})}const i=()=>{s.unmount(),r()};if(e.onUnmount)e.onUnmount(i);else{const o=e.unmount;e.unmount=function(){i(),o()}}e.provide(n,s)}};function Bs(e,t,n){const s=fn(),r=un(()=>{let b=t;typeof b=="function"&&(b=b());const g=E(b);typeof g.enabled=="function"&&(g.enabled=g.enabled());const R=s.defaultQueryOptions(g);return R._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",R}),i=new e(s,r.value),o=r.value.shallow?nn(i.getCurrentResult()):sn(i.getCurrentResult());let a=()=>{};s.isRestoring&&le(s.isRestoring,b=>{b||(a(),a=i.subscribe(g=>{et(o,g)}))},{immediate:!0});const c=()=>{i.setOptions(r.value),et(o,i.getCurrentResult())};le(r,c),rn(()=>{a()});const f=(...b)=>(c(),o.refetch(...b)),l=()=>new Promise((b,g)=>{let R=()=>{};const C=()=>{if(r.value.enabled!==!1){i.setOptions(r.value);const d=i.getOptimisticResult(r.value);d.isStale?(R(),i.fetchOptimistic(r.value).then(b,p=>{rt(r.value.throwOnError,[p,i.getCurrentQuery()])?g(p):b(i.getCurrentResult())})):(R(),b(d))}};C(),R=le(r,C)});le(()=>o.error,b=>{if(o.isError&&!o.isFetching&&rt(r.value.throwOnError,[b,i.getCurrentQuery()]))throw b});const h=r.value.shallow?on(o):an(o),m=cn(h);for(const b in o)typeof o[b]=="function"&&(m[b]=o[b]);return m.suspense=l,m.refetch=f,m}function Ro(e,t){return Bs(Us,e)}function So(e,t){const n=fn(),s=un(()=>{const l=typeof e=="function"?e():e;return n.defaultMutationOptions(E(l))}
1),r=new js(n,s.value),i=s.value.shallow?nn(r.getCurrentResult()):sn(r.getCurrentResult()),o=r.subscribe(l=>{et(i,l)}),a=(...l)=>{r.mutate(l[0],l[1]).catch(()=>{})};le(s,()=>{r.setOptions(s.value)}),rn(()=>{o()});const c=s.value.shallow?on(i):an(i),f=cn(c);return le(()=>i.error,l=>{if(l&&rt(s.value.throwOnError,[l]))throw l}),{...f,mutate:a,mutateAsync:i.mutate,reset:i.reset}}function Pn(e,t){return function(){return e.apply(t,arguments)}}const{toString:ks}=Object.prototype,{getPrototypeOf:X}=Object,{iterator:Ee,toStringTag:Cn}=Symbol,Re=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),An=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),vn=(e,t,n)=>e===Object.prototype||!n&&t===null,Hs=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(An(n))return!1;const s=Object.getOwnPropertyDescriptor(e,n);return!!s&&s.configurable&&s.writable===!0})},Se=(e,t)=>{let n=e;const s=[];for(;n!=null;){if(s.indexOf(n)!==-1)return!1;s.push(n);const r=X(n);if(vn(n,r,n===e))return!1;if(Re(n,t))return!0;n=r}return!1},$s=(e,t)=>e!=null&&Se(e,t)?e[t]:void 0,Ks=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=X(e);if(t===null&&Hs(e))return e;const n=Object.create(null),s=Object.create(null),r=[];let i=e;for(;i!=null&&r.indexOf(i)===-1;){r.push(i);const o=i===e?t:X(i);if(vn(i,o,i===e))break;const a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(const c of a)An(c)||Re(s,c)||(n[c]=e[c],s[c]=!0);i=o}return n},pt=(e=>t=>{const n=ks.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>pt(t)===e),Be=e=>t=>typeof t===e,{isArray:ie}=Array,oe=Be("undefined");function de(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tn=B("ArrayBuffer");function zs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tn(e.buffer),t}const Vs=Be("string"),M=Be("function"),_n=Be("number"),pe=e=>e!==null&&typeof e=="object",Ws=e=>e===!0||e===!1,Ue=e=>{if(!pe(e))return!1;const t=X(e);return(t===null||t===Object.prototype||X(t)===null)&&!Se(e,Cn)&&!Se(e,Ee)},Js=e=>{if(!pe(e)||de(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gs=B("Date"),Xs=B("File"),Zs=e=>!!(e&&typeof e.uri<"u"),Ys=e=>e&&typeof e.getParts<"u",er=B("Blob"),tr=B("FileList"),nr=B("Set"),sr=e=>pe(e)&&M(e.pipe);function rr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Lt=rr(),jt=typeof Lt.FormData<"u"?Lt.FormData:void 0,ir=e=>{if(!e)return!1;if(jt&&e instanceof jt)return!0;const t=X(e);if(!t||t===Object.prototype||!M(e.append))return!1;const n=pt(e);return n==="formdata"||n==="object"&&M(e.toString)&&e.toString()==="[object FormData]"},or=B("URLSearchParams"),[ar,ur,cr,lr]=["ReadableStream","Request","Response","Headers"].map(B),fr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pe(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),ie(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(de(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function xn(e,t){if(de(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dn=e=>!oe(e)&&e!==ne;function at(...e){const{caseless:t,skipUndefined:n}=Dn(this)&&this||{},s={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&typeof o=="string"&&xn(s,o)||o,c=Re(s,a)?s[a]:void 0;Ue(c)&&Ue(i)?s[a]=at(c,i):Ue(i)?s[a]=at({},i):ie(i)?s[a]=i.slice():(!n||!oe(i))&&(s[a]=i)};for(let i=0,o=e.length;i<o;i++){const a=e[i];if(!a||de(a)||(Pe(a,r),typeof a!="object"||ie(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let f=0;f<c.length;f++){const l=c[f];Er.call(a,l)&&r(a[l],l)}}return s}const hr=(e,t,n,{allOwnKeys:s}={})=>(Pe(t,(r,i)=>{n&&M(r)?Object.defineProperty(e,i,{__proto__:null,value:Pn(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pr=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,066 bytes, lines 1-2
1configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},yr=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&X(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},br=e=>{if(!e)return null;if(ie(e))return e;let t=e.length;if(!_n(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&X(Uint8Array)),wr=(e,t)=>{const s=(e&&e[Ee]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Or=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Rr=B("HTMLFormElement"),Sr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),{propertyIsEnumerable:Er}=Object.prototype,Pr=B("RegExp"),Fn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pe(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},Cr=e=>{Fn(e,(t,n)=>{if(M(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(M(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ar=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return ie(e)?s(e):s(String(e).split(t)),n},vr=()=>{},Tr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _r(e){return!!(e&&M(e.append)&&e[Cn]==="FormData"&&e[Ee])}const xr=e=>{const t=new WeakSet,n=s=>{if(pe(s)){if(t.has(s))return;if(de(s))return s;if(!("toJSON"in s)){t.add(s);let r;if(nr(s)){r=[];for(const i of s){const o=n(i);!oe(o)&&r.push(o)}}else r=ie(s)?[]:{},Pe(s,(i,o)=>{const a=n(i);!oe(a)&&(r[o]=a)});return t.delete(s),r}}return s};return n(e)},Dr=B("AsyncFunction"),Fr=e=>e&&(pe(e)||M(e))&&M(e.then)&&M(e.catch),Un=((e,t)=>e?setImmediate:t?((n,s)=>(ne.addEventListener("message",({source:r,data:i})=>{r===ne&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),ne.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",M(ne.postMessage)),Ur=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||Un,Nn=e=>e!=null&&M(e[Ee]),Nr=e=>e!=null&&Se(e,Ee)&&Nn(e),u={isArray:ie,isArrayBuffer:Tn,isBuffer:de,isFormData:ir,isArrayBufferView:zs,isString:Vs,isNumber:_n,isBoolean:Ws,isObject:pe,isPlainObject:Ue,isEmptyObject:Js,isReadableStream:ar,isRequest:ur,isResponse:cr,isHeaders:lr,isUndefined:oe,isDate:Gs,isFile:Xs,isReactNativeBlob:Zs,isReactNative:Ys,isBlob:er,isRegExp:Pr,isFunction:M,isStream:sr,isURLSearchParams:or,isTypedArray:gr,isFileList:tr,forEach:Pe,merge:at,extend:hr,trim:fr,stripBOM:dr,inherits:pr,toFlatObject:yr,kindOf:pt,kindOfTest:B,endsWith:mr,toArray:br,forEachEntry:wr,matchAll:Or,isHTMLForm:Rr,hasOwnProperty:Re,hasOwnProp:Re,hasOwnInPrototypeChain:Se,getSafeProp:$s,toSafeFlatObject:Ks,reduceDescriptors:Fn,freezeMethods:Cr,toObjectSet:Ar,toCamelCase:Sr,noop:vr,toFiniteNumber:Tr,findKey:xn,global:ne,isContextDefined:Dn,isSpecCompliantForm:_r,toJSONObject:xr,isAsyncFn:Dr,isThenable:Fr,setImmediate:Un,asap:Ur,isIterable:Nn,isSafeIterable:Nr},Lr=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jr=e=>{const t={};let n,s,r;return e&&e.split(` 2`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim();const a=u.hasOwnProp(t,n);!n||a&&u.hasOwnProp(Lr,n)||(n==="set-cookie"?a?t[n].push(s):t[n]=[s]:t[n]=a?t[n]+", "+s:s)}),t};function Mr(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}
2const Ir=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qr=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yt(e,t){return u.isArray(e)?e.map(n=>yt(n,t)):Mr(String(e).replace(t,""))}const Qr=e=>yt(e,Ir),Br=e=>yt(e,qr);function Ln(e){const t=Object.create(null);return u.forEach(e.toJSON(),(n,s)=>{t[s]=Br(n)}),t}const Mt=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function Ne(e){return e===!1||e==null?e:u.isArray(e)?e.map(Ne):Qr(String(e))}function kr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Hr=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Ve(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function $r(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let s=1;s<t;s++){const r=e.charCodeAt(s);if(r===34||r===92&&(s+=1,s>=t))return e;n+=e[s]}return n}function Kr(e){const t=Object.create(null),n=String(e);let s=0,r=!1,i=!1;function o(a){const c=Ve(n.slice(s,a)),f=c.indexOf("=");if(f<1)return;const l=Ve(c.slice(0,f));if(!Hr.test(l))return;const h=l.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=Ve(c.slice(f+1));t[h]=$r(m)}for(let a=0;a<n.length;a++){const c=n.charCodeAt(a);r?i?i=!1:c===92?i=!0:c===34&&(r=!1):c===34?r=!0:(c===44||c===59)&&(o(a),s=a+1)}return o(n.length),t}const zr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function We(e,t,n,s,r){if(u.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!u.isString(t)){if(u.isString(s))return t.indexOf(s)!==-1;if(u.isRegExp(s))return s.test(t)}}function Vr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Wr(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let j=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,f){const l=ge(c);if(!l)return;const h=u.findKey(r,l);(!h||r[h]===void 0||f===!0||f===void 0&&r[h]!==!1)&&(r[h||c]=Ne(a))}const o=(a,c)=>u.forEach(a,(f,l)=>i(f,l,c));if(u.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(u.isString(t)&&(t=t.trim())&&!zr(t))o(jr(t),n);else if(u.isObject(t)&&u.isSafeIterable(t)){let a=Object.create(null),c,f;for(const l of t){if(!u.isArray(l))throw new TypeError("Object iterator must return a key-value pair");f=l[0],u.hasOwnProp(a,f)?(c=a[f],a[f]=u.isArray(c)?[...c,l[1]]:[c,l[1]]):a[f]=l[1]}o(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=ge(t),t){const s=u.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return kr(r);if(u.isFunction(n))return n.call(this,r,s);if(u.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ge(t),t){const s=u.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||We(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=ge(o),o){const a=u.findKey(s,o);a&&(!n||We(s,s[a],a,n))&&(delete s[a],r=!0)}}return u.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||We(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return u.forEach(this,(r,i)=>{const o=u.findKey(s,i);if(o){n[o]=Ne(r),delete n[i];return}const a=t?Vr(i):String(i).trim();a!==i&&delete n[i],n[a]=Ne(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&u.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 3`)}getSetCookie(){const t=this.get("set-cookie");return u.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 Kr(t)}static concat(t,...n){const s=new this(t);
3return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Mt]=this[Mt]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=ge(o);s[a]||(Wr(r,o),s[a]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}};j.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(j.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});u.freezeMethods(j);const Ie="[REDACTED ****]";function Jr(e){if(u.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(u.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Gr(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],r=i=>{if(i===null||typeof i!="object"||u.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof j&&(i=i.toJSON()),s.push(i);let o;if(u.isArray(i))o=[],i.forEach((a,c)=>{const f=r(a);u.isUndefined(f)||(o[c]=f)});else{if(!u.isPlainObject(i)&&Jr(i))return s.pop(),i;o=Object.create(null);for(const[a,c]of Object.entries(i)){const f=n.has(a.toLowerCase())?Ie:r(c);u.isUndefined(f)||(o[a]=f)}}return s.pop(),o};return r(e)}function It(e){try{return String(e)}catch{return""}}function Xr(e){return e.errors.map(n=>{try{return n&&n.message?It(n.message):It(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}
3let y=class jn extends Error{static from(t,n,s,r,i,o){let a=t.message;!a&&u.isArray(t.errors)&&t.errors.length&&(a=Xr(t));const c=new jn(a,n||t.code,s,r,i);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(t,n,s,r,i){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),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&u.hasOwnProp(t,"redact")?t.redact:void 0,s=u.isArray(n)&&n.length>0?Gr(t,n):u.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:s,code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ECONNREFUSED="ECONNREFUSED";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Zr=null,Mn=100;function ut(e){return u.isPlainObject(e)||u.isArray(e)}function In(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,n){return e?e.concat(t).map(function(r,i){return r=In(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Yr(e){return u.isArray(e)&&!e.some(ut)}const ei=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ke(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(p,O)=>{const w=u.getSafeProp(n,p);return u.isUndefined(w)?O:w},r=s("metaTokens",!0),i=s("visitor")||R,o=s("dots",!1),a=s("indexes",!1),c=s("Blob")||typeof Blob<"u"&&Blob,f=s("maxDepth",Mn),l=c&&u.isSpecCompliantForm(t),h=[];if(!u.isFunction(i))throw new TypeError("visitor must be a function");function m(p){if(p===null)return"";if(u.isDate(p))return p.toISOString();if(u.isBoolean(p))return p.toString();if(!l&&u.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");if(u.isArrayBuffer(p)||u.isTypedArray(p)){if(l&&typeof c=="function")return new c([p]);throw new y("Blob is not supported. Use a Buffer instead.",y.ERR_NOT_SUPPORT)}return p}function b(p){if(p>f)throw new y("Object is too deeply nested ("+p+" levels). Max depth: "+f,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function g(p,O){if(f===1/0)return JSON.stringify(p);const w=[];return JSON.stringify(p,function(v,T){if(!u.isObject(T))return T;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(T),b(O+w.length-1),T})}function R(p,O,w){let P=p;if(u.isReactNative(t)&&u.isReactNativeBlob(p))return t.append(Je(w,O,o),m(p)),!1;if(p&&!w&&typeof p=="object"){if(u.endsWith(O,"{}"))O=r?O:O.slice(0,-2),p=g(p,1);else if(u.isArray(p)&&Yr(p)||(u.isFileList(p)||u.endsWith(O,"[]"))&&(P=u.toArray(p)))return O=In(O),P.forEach(function(T,q){!(u.isUndefined(T)||T===null)&&t.append(a===!0?Je([O],q,o):a===null?O:O+"[]",m(T))}),!1}return ut(p)?!0:(t.append(Je(w,O,o),m(p)),!1)}const C=Object.assign(ei,{defaultVisitor:R,convertValue:m,isVisitable:ut});function d(p,O,w=0){if(!u.isUndefined(p)){if(b(w),h.indexOf(p)!==-1)throw new Error("Circular reference detected in "+O.join("."));h.push(p),u.forEach(p,function(v,T){(!(u.isUndefined(v)||v===null)&&i.call(t,v,u.isString(T)?T.trim():T,O,C))===!0&&d(v,O?O.concat(T):[T],w+1)}),h.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return d(e),t}function qt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function mt(e,t){this._pairs=[],e&&ke(e,this,t)}const qn=mt.prototype;qn.append=function(t,n){this._pairs.push([t,n])};qn.toString=function(t){const n=t?s=>t.call(this,s,qt):qt;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ti(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qn(e,t,n){if(!t)return e;e=e||"";const s=u.isFunction(n)?{serialize:n}:n,r=u.getSafeProp(s,"encode")||ti,i=u.getSafeProp(s,"serialize");let o;if(i?o=i(t,s):o=u.isURLSearchParams(t)?t.toString():new mt(t,s).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}const we=Symbol("internals");function Bn(e){return e?e.length:0}function Qt(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Oe(e,t){const n=e.handlers,s=Bn(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):s!==t.handlersLength&&(s?t.handlerEntries.forEac
3h(function(i,o){n[i.index]!==i.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=s}class Bt{constructor(){this.handlers=[],this[we]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,s){const r={fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null},i=this[we];this.handlers==null&&(this.handlers=[]),Oe(this,i);const o=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(o,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,o}eject(t){const n=this[we];Oe(this,n);const s=n.handlerEntries.get(t);if(s){if(n.handlerEntries.delete(t),this.handlers[s.index]!==s.handler)return;this.handlers[s.index]=null,n.iterationDepth||(Qt(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Oe(this,this[we]))}forEach(t){const n=this[we];Oe(this,n),n.iterationDepth++;try{u.forEach(this.handlers,function(r){r!==null&&t(r)})}finally{--n.iterationDepth||(Oe(this,n),Qt(this.handlers),n.handlersLength=Bn(this.handlers))}}}const bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ni=typeof URLSearchParams<"u"?URLSearchParams:mt,si=typeof FormData<"u"?FormData:null,ri=typeof Blob<"u"?Blob:null,ii={isBrowser:!0,classes:{URLSearchParams:ni,FormData:si,Blob:ri},protocols:["http","https","file","blob","url","data"]},gt=typeof window<"u"&&typeof document<"u",ct=typeof navigator=="object"&&navigator||void 0,oi=gt&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),ai=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ui=gt&&window.location.href||"http://localhost",ci=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gt,hasStandardBrowserEnv:oi,hasStandardBrowserWebWorkerEnv:ai,navigator:ct,origin:ui},Symbol.toStringTag,{value:"Module"})),D={...ci,...ii};function li(e,t){return ke(e,new D.classes.URLSearchParams,{visitor:function(n,s,r,i){return D.isNode&&u.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const kt=Mn;function kn(e){if(e>kt)throw new y("FormData field is too deeply nested ("+e+" levels). Max depth: "+kt,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function fi(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=n.exec(e))!==null;)kn(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function hi(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function Hn(e){function t(n,s,r,i){kn(i);let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&u.isArray(r)?r.length:o,c?(u.hasOwnProp(r,o)?r[o]=u.isArray(r[o])?r[o].concat(s):[r[o],s]:r[o]=s,!a):((!u.hasOwnProp(r,o)||!u.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&u.isArray(r[o])&&(r[o]=hi(r[o])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(s,r)=>{t(fi(s),r,n,0)}),n}return null}const $n=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),ce=(e,t)=>e!=null&&u.hasOwnProp(e,t)?e[t]:void 0;function di(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ce={transitional:bt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return r?JSON.stringify(Hn(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;
3if(i){const c=ce(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return li(t,c).toString();if((a=u.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=ce(this,"env"),l=f&&f.FormData;return ke(a?{"files[]":t}:t,l&&new l,c)}}return i||r?(n.setContentType("application/json",!1),di(t)):t}],transformResponse:[function(t){const n=ce(this,"transitional")||Ce.transitional,s=n&&n.forcedJSONParsing,r=ce(this,"responseType"),i=r==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(s&&!r||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,ce(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,ce(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:D.classes.FormData,Blob:D.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach($n,e=>{Ce.headers[e]={}});function Ge(e,t){const n=this||Ce,s=t||n,r=j.from(s.headers);let i=s.data;return u.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Kn(e){return!!(e&&e.__CANCEL__)}let Ae=class extends y{constructor(t,n,s){super(t??"canceled",y.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function zn(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new y("Request failed with status code "+n.status,n.status>=400&&n.status<500?y.ERR_BAD_REQUEST:y.ERR_BAD_RESPONSE,n.config,n.request,n))}const pi=/[\t\n\r]/g;function Vn(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(pi,"")}function Xe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function yi(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),l=s[i];o||(o=f),n[r]=c,s[r]=f;let h=i,m=0;for(;h!==r;)m+=n[h++],h=h%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),f-o<t)return;const b=l&&f-l;return b?Math.round(m*1e3/b):void 0}}function mi(e,t){let n=0,s=1e3/t,r,i;const o=(l,h=Date.now())=>{n=h,r=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const h=Date.now(),m=h-n;m>=s?o(l,h):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-m)))},()=>r&&o(r),(...l)=>o(l)]}const qe=(e,t,n=3)=>{let s=0;const r=yi(50,250);return mi(i=>{if(!i||!u.isNumber(i.loaded))return;const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=Math.max(0,a!=null?Math.min(o,a):o),f=Math.max(0,c-s),l=r(f);s=Math.max(s,c);const h={loaded:c,total:a,progress:a?c/a:void 0,bytes:f,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Ht=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},$t=(e,t=u.asap)=>(...n)=>t(()=>e(...n)),bi=D.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,D.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(D.origin),D.navigator&&/(msie|trident)/i.test(D.navigator.userAgent)):()=>!0,gi=D.hasStandardBrowserEnv?{write(e,t,n,s,r,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];u.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),u.isString(s)&&a.push(`path=${s}`),u.isString(r)&&a.push(`domain=${r}`),i===!0&&a.push("secure"),u.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),r=s.indexOf("=");if(r!==-1&&s.slice(0,r)===e)try{return decodeURIComponent(s.slice(r+1))}catch{return s.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function wi(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Oi(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 Ri=/^https?:(?!\/\/)/i;function Si(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,s="")=>`${n}${s}${Ie}`)}function Ei(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ie}@`),n=t.indexOf("#"),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ie}`);return n===-1?r:`${r}#${Si(t.slice(n+1))}`}function Kt(e,t){if(typeof e=="string"){const n=Vn(e);if(Ri.test(n))throw new y(`Invalid URL ${JSON.stringify(Ei(n))}: missing "//" after protocol`,y.ERR_INVALID_URL,t)}}function Wn(e,t,n,s){Kt(t,s);let r=!wi(t);return e&&(r||n===!1)?(Kt(e,s),Oi(e,t)):t}const zt=e=>e instanceof j?{...e}:e,Pi=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function ae(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 s(l,h,m,b){return u.isPlainObject(l)&&u.isPlainObject(h)?u.merge.call({caseless:b},l,h):u.isPlainObject(h)?u.merge({},h):u.isArray(h)?h.slice():h}function r(l,h,m,b){if(u.isUndefined(h)){if(!u.isUndefined(l))return s(void 0,l,m,b)}else return s(l,h,m,b)}function i(l,h){if(!u.isUndefined(h))return s(void 0,h)}function o(l,h){if(u.isUndefined(h)){if(!u.isUndefined(l))return s(void 0,l)}else return s(void 0,h)}function a(l){const h=u.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!u.isUndefined(h))if(u.isPlainObject(h)){if(u.hasOwnProp(h,l))return h[l]}else return;const m=u.hasOwnProp(e,"transitional")?e.transitional:void 0;if(u.isPlainObject(m)&&u.hasOwnProp(m,l))return m[l]}function c(l,h,m){if(u.hasOwnProp(t,m))return s(l,h);if(u.hasOwnProp(e,m))return s(void 0,l)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
3dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(l,h,m)=>r(zt(l),zt(h),m,!0)};return u.forEach(Pi({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=u.hasOwnProp(f,h)?f[h]:r,b=u.hasOwnProp(e,h)?e[h]:void 0,g=u.hasOwnProp(t,h)?t[h]:void 0,R=m(b,g,h);u.isUndefined(R)&&m!==c||(n[h]=R)}),u.hasOwnProp(t,"validateStatus")&&u.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(u.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.validateStatus),n}const Ci=["content-type","content-length"];function Ai(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,r])=>{Ci.includes(s.toLowerCase())&&e.set(s,r)})}const vi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Jn(e){const t=ae({},e),n=m=>u.hasOwnProp(t,m)?t[m]:void 0,s=n("data");let r=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let a=n("headers");const c=n("auth"),f=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=j.from(a),t.url=Qn(Wn(f,h,l,t),n("params"),n("paramsSerializer")),c){const m=u.getSafeProp(c,"username")||"",b=u.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(m+":"+(b?vi(b):"")))}catch(g){throw y.from(g,y.ERR_BAD_OPTION_VALUE,e)}}if(u.isFormData(s)){const m=u.getSafeProp(s,"getHeaders");D.hasStandardBrowserEnv||D.hasStandardBrowserWebWorkerEnv||u.isReactNative(s)?a.setContentType(void 0):u.isFunction(m)&&Ai(a,m.call(s),n("formDataHeaderPolicy"))}if(D.hasStandardBrowserEnv&&(u.isFunction(r)&&(r=r(t)),r===!0||r==null&&bi(t.url))){const b=i&&o&&gi.read(o);b&&a.set(i,b)}return t}const Ti=typeof XMLHttpRequest<"u",_i=Ti&&function(e){return new Promise(function(n,s){const r=Jn(e);let i=r.data;const o=j.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:f}=r,l,h,m,b,g,R;function C(){b&&b(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(w){if(!d)return;if(d.status===0&&(Xe(Vn(r.url))||Xe(D.origin))!=="file"&&!(d.responseURL&&d.responseURL.startsWith("file:"))){s(new y("Request aborted",y.ECONNABORTED,e,d)),C(),d=null;return}try{w?R&&R(w):g&&g()}catch(q){setTimeout(()=>{throw q})}if(!d)return;const P=j.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:P,config:e,request:d};zn(function(Z){n(Z),C()},function(Z){s(Z),C()},T),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(p)},d.onabort=function(){d&&(s(new y("Request aborted",y.ECONNABORTED,e,d)),C(),d=null)},d.onerror=function(P){const v=P&&P.message?P.message:"Network Error",T=new y(v,y.ERR_NETWORK,e,d);T.event=P||null,s(T),C(),d=null},d.ontimeout=function(){let P=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||bt;r.timeoutErrorMessage&&(P=r.timeoutErrorMessage),s(new y(P,v.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,d)),C(),d=null},i===void 0&&o.setContentType(null),"setRequestHeader"in d&&u.forEach(Ln(o),function(P,v){d.setRequestHeader(v,P)}),u.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),a&&a!=="json"&&(d.responseType=r.responseType),f&&([m,g,R]=qe(f,!0),d.addEventListener("progress",m)),c&&d.upload&&([h,b]=qe(c),d.upload.addEventListener("progress",h),d.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(l=w=>{d&&(s(!w||w.type?new Ae(null,e,d):w),d.abort(),C(),d=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const O=Xe(r.url);if(O&&!D.protocols.includes(O)){s(new y("Unsupported protocol "+O+":",y.ERR_BAD_REQUEST,e)),C();return}d.send(i||null)})},xi=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const r=function(c){if(!s){s=!0,o();const f=c instanceof Error?c:this.reason;n.abort(f instanceof y?f:new Ae(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>
3{i=null,r(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),e=null)};e.forEach(c=>{if(!s){if(c.aborted){r.call(c);return}c.addEventListener("abort",r,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>u.asap(o),a},Di=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Fi=async function*(e,t){for await(const n of Ui(e))yield*Di(n,t)},Ui=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Vt=(e,t,n,s)=>{const r=Fi(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:f,value:l}=await r.next();if(f){a(),c.close();return}let h=l.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(l))}catch(f){throw a(f),f}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Wt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Gn=(e,t,n)=>t+2<n&&Wt(e.charCodeAt(t+1))&&Wt(e.charCodeAt(t+2)),Jt=e=>e<=57?e-48:(e&223)-55,Ni=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Li=e=>e===9||e===10||e===12||e===13||e===32,ji=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Mi=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)},Ii=e=>{const t=e.length;let n=0,s=0,r=!1;for(let i=0;i<t;i++){let o=e.charCodeAt(i);if(o===37&&Gn(e,i,t)&&(o=Jt(e.charCodeAt(i+1))*16+Jt(e.charCodeAt(i+2)),i+=2),!Li(o)){if(o===61){s++;continue}if(!Ni(o)||s>0){r=!0;continue}n++}}return r||s>2||s>0&&(n+s)%4!==0||n%4===1?Mi(e):ji(n)},qi=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const s=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(s))return t(r);let o=0;for(let a=0,c=r.length;a<c;a++){const f=r.charCodeAt(a);if(f===37&&Gn(r,a,c))o+=1,a+=2;else if(f<128)o+=1;else if(f<2048)o+=2;else if(f>=55296&&f<=56319&&a+1<c){const l=r.charCodeAt(a+1);l>=56320&&l<=57343?(o+=4,a++):o+=3}else o+=3}return o};function Qi(e){const t=typeof e=="string"?e.indexOf("#"):-1;return qi(t===-1?e:e.slice(0,t),Ii)}
vendor: 10,113 bytes, lines 3-9
3const wt="1.20.0",Gt=64*1024,Bi={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:De}=u,ki=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Xt=e=>{if(!u.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Zt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Hi=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},$i=e=>{const t=u.global!==void 0&&u.global!==null?u.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=u.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:i,Response:o}=e,a=r?De(r):typeof fetch=="function",c=De(i),f=De(o);if(!a)return!1;const l=a&&De(n),h=a&&(typeof s=="function"?(d=>p=>d.encode(p))(new s):async d=>new Uint8Array(await new i(d).arrayBuffer())),m=c&&l&&Zt(()=>{let d=!1;const p=new i(D.origin,{body:new n,method:"POST",get duplex(){return d=!0,"half"}}),O=p.headers.has("Content-Type");return p.body!=null&&p.body.cancel(),d&&!O}),b=f&&l&&Zt(()=>u.isReadableStream(new o("").body)),g={stream:b&&(d=>d.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!g[d]&&(g[d]=(p,O)=>{let w=p&&p[d];if(w)return w.call(p);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,O)})});const R=async d=>{if(d==null)return 0;if(u.isBlob(d))return d.size;if(u.isSpecCompliantForm(d))return(await new i(D.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(u.isArrayBufferView(d)||u.isArrayBuffer(d))return d.byteLength;if(u.isURLSearchParams(d)&&(d=d+""),u.isString(d))return(await h(d)).byteLength},C=async(d,p)=>{const O=u.toFiniteNumber(d.getContentLength());return O??R(p)};return async d=>{let{url:p,method:O,data:w,signal:P,cancelToken:v,timeout:T,onDownloadProgress:q,onUploadProgress:Z,responseType:V,headers:W,withCredentials:ve="same-origin",fetchOptions:$e,maxContentLength:H,maxBodyLength:Te,maxRedirects:ts}=Jn(d);const ye=u.isNumber(H)&&H>-1,Ke=u.isNumber(Te)&&Te>-1,ns=A=>u.hasOwnProp(d,A)?d[A]:void 0;let Rt=r||fetch;V=V?(V+"").toLowerCase():"text";let J=xi([P,v&&v.toAbortSignal()],T),F=null;const Y=J&&J.unsubscribe&&(()=>{J.unsubscribe()});let ue,me=null;const St=()=>new y("Request body larger than maxBodyLength limit",y.ERR_BAD_REQUEST,d,F);try{let A;const Q=ns("auth");if(Q){const S=u.getSafeProp(Q,"username")||"",N=u.getSafeProp(Q,"password")||"";A={username:S,password:N}}if(Hi(p)){const S=new URL(p,D.origin);if(!A&&(S.username||S.password)){const N=Xt(S.username),G=Xt(S.password);A={username:N,password:G}}(S.username||S.password)&&(S.username="",S.password="",p=S.href)}if(A&&(W.delete("authorization"),W.set("Authorization","Basic "+btoa(ki((A.username||"")+":"+(A.password||""))))),ye&&typeof p=="string"&&p.startsWith("data:")&&Qi(p)>H)throw new y("maxContentLength size of "+H+" exceeded",y.ERR_BAD_RESPONSE,d,F);if(Ke&&O!=="get"&&O!=="head"){const S=await R(w);if(typeof S=="number"&&isFinite(S)&&(ue=S,S>Te))throw St()}const _e=Ke&&(u.isReadableStream(w)||u.isStream(w)),Et=(S,N,G)=>Vt(S,Gt,ee=>{if(Ke&&ee>Te)throw me=St();N&&N(ee)},G);if(m&&O!=="get"&&O!=="head"&&(Z||_e)){if(ue=ue??await C(W,w),ue!==0||_e){let S=new i(p,{method:"POST",body:w,duplex:"half"}),N;if(u.isFormData(w)&&(N=S.headers.get("content-type"))&&W.setContentType(N),S.body){const[G,ee]=Z&&Ht(ue,qe($t(Z)))||[];w=Et(S.body,G,ee)}}}else if(_e&&!c&&l&&O!=="get"&&O!=="head")w=Et(w);else if(_e&&c&&!m&&O!=="get"&&O!=="head")throw new y("Stream request bodies are not supported by the current fetch implementation",y.ERR_NOT_SUPPORT,d,F);u.isString(ve)||(ve=ve?"include":"omit");const ss=c&&"credentials"in i.prototype;if(u.isFormData(w)){const S=W.getContentType();S&&/^multipart\/form-data/i.test(S)&&!/boundary=/i.test(S)&&W.delete("content-type")}W.set("User-Agent","axios/"+wt,!1);const k=$e==null?$e:Object.assign(Object.create(null),$e);k&&(delete k.body,delete k.headers,delete k.method,delete k.signal,delete k.duplex,delete k.credentials);const $=Object.assign(Object.create(null),k,{signal:J,method:O.toUpperCase(),headers:Ln(W.normalize()),body:w,duplex:"half",credentials:ss?ve:void 0});c&&(u.forEach(Bi,(S,N)=>{$[N]===void 0&&($[N]=S)}),$.signal===void 0&&($.signal=null),$.body===void 0&&($.body=null)),ts===0&&($.redirect="manual",k&&(k.redirect="manual")),F=c&&new i(p,$);let K=await(c?Rt(F,k):Rt(p,$));const Pt=j.from(K.headers);if(ye){const S=u.toFiniteNumber(Pt.getContentLength());if(S!=null&&S>H)throw new y("maxContentLength size of "+H+" exceeded",y.ERR_BAD_RESPONSE,d,F)}const ze=b&&(V==="stream"||V==="response");if(b&&K.body&&(q||ye||ze&&Y)){const S={};["status","statusText","headers"].forEach(be=>{S[be]=K[be]});const N=u.toFiniteNumber(Pt.getContentLength()),[G,ee]=q&&Ht(N,qe($t(q),!0))||[];let Ct=0;const rs=be=>{if(ye&&(Ct=be,Ct>H))throw new y("maxContentLength size of "+H+" exceeded",y.ERR_BAD_RESPONSE,d,F);G&&G(be)};K=new o(Vt(K.body,Gt,rs,()=>{ee&&ee(),Y&&Y()}),S)}V=V||"text";let z=await g[u.findKey(g,V)||"text"](K,d);if(ye&&!b&&!ze){let S;if(z!=null&&(typeof z.byteLength=="number"?S=z.byteLength:typeof z.size=="number"?S=z.size:typeof z=="string"&&(S=typeof s=="function"?new s().encode(z).byteLength:z.length)),typeof S=="number"&&S>H)throw new y("maxContentLength size of "+H+" exceeded",y.ERR_BAD_RESPONSE,d,F)}return!ze&&Y&&Y(),await new Promise((S,N)=>{zn(S,N,{data:z,headers:j.from(K.headers),status:K.status,statusText:K.statusText,config:d,request:F})})}catch(A){if(Y&&Y(),J&&J.aborted&&J.reason instanceof y){const Q=J.reason;throw Q.config=d,F&&(Q.request=F),A!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0}),Q}if(me)throw F&&!me.request&&(me.request=F),me;if(A instanceof y)throw F&&!A.request&&(A.request=F),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){const Q=new y("Network Error",y.ERR_NETWORK,d,F,A&&A.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),Q}throw y.from(A,A&&A.code,d,F,A&&A.response)}}},Ki=new Map,Xn=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,i=[s,r,n];let o=i.length,a=o,c,f,l=Ki;for(;a--;)c=i[a],f=l.get(c),f===void 0&&l.set(c,f=a?new Map:$i(t)),l=f;return f};Xn();const Ot={http:Zr,xhr:_i,fetch:{get:Xn}};u.forEach(Ot,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Yt=e=>`- ${e}`,zi=e=>u.isFunction(e)||e===null||e===!1;function Vi(e,t){e=u.isArray(e)?e:[e];const{length:n}=e;let s,r;const i={};for(let o=0;o<n;o++){s=e[o];let a;if(r=s,!zi(s)&&(r=Ot[(a=String(s)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${a}'`);if(r&&(u.isFunction(r)||(r=r.get(t))))break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : 4`+o.map(Yt).join(` 5`):" "+Yt(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+a,y.ERR_NOT_SUPPORT)}return r}const Zn={getAdapter:Vi,adapters:Ot};function Ze(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function Ye(e){const t=u.toSafeFlatObject(e);return Ze(t),t.headers=j.from(u.getSafeProp(t,"headers")),t.data=Ge.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Zn.getAdapter(t.adapter||Ce.adapter,t)(t).then(function(r){Ze(t),t.response=r;try{r.data=Ge.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=j.from(r.headers),r},function(r){if(!Kn(r)&&(Ze(t),r&&r.response)){t.response=r.response;try{r.response.data=Ge.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=j.from(r.response.headers)}return Promise.reject(r)})}const He={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{He[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const en={};He.transitional=function(t,n,s){function r(i,o){return"[Axios v"+wt+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new y(r(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!en[o]&&(en[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};He.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Wi(e,t,n){if(typeof e!="object"||e===null)throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new y("option "+i+" must be "+c,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const Le={assertOptions:Wi,validators:He},L=Le.validators;let se=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Bt,response:new Bt}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error)try{let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack;let o="";if(typeof i=="string"){const a=i.indexOf(` 6`);o=a===-1?"":i.slice(a+1)}if(!s.stack)s.stack=o;else if(o){const a=o.indexOf(` 7`),c=a===-1?-1:o.indexOf(` 8`,a+1),f=c===-1?"":o.slice(c+1);String(s.stack).endsWith(f)||(s.stack+=` 9`+o)}}catch{}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ae(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Le.assertOptions(s,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean),legacyInterceptorReqResOrdering:L.transitional(L.boolean),advertiseZstdAcceptEncoding:L.transitional(L.boolean),validateStatusUndefinedResolves:L.transitional(L.boolean)}
9,!1),r!=null&&(u.isFunction(r)?n.paramsSerializer={serialize:r}:Le.assertOptions(r,{encode:L.function,serialize:L.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Le.assertOptions(n,{baseUrl:L.spelling("baseURL"),withXsrfToken:L.spelling("withXSRFToken")},!0),n.method=(u.getSafeProp(n,"method")||u.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=i&&u.merge(i.common,i[n.method]);i&&u.forEach($n.concat("common"),g=>{delete i[g]}),n.headers=j.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(R){if(typeof R.runWhen=="function"&&R.runWhen(n)===!1)return;c=c&&R.synchronous;const C=n.transitional||bt;C&&C.legacyInterceptorReqResOrdering?a.unshift(R.fulfilled,R.rejected):a.push(R.fulfilled,R.rejected)});const f=[];this.interceptors.response.forEach(function(R){f.push(R.fulfilled,R.rejected)});let l,h=0,m;if(!c){const g=[Ye.bind(this),void 0];for(g.unshift(...a),g.push(...f),m=g.length,l=Promise.resolve(n);h<m;)l=l.then(g[h++],g[h++]);return l}m=a.length;let b=n;for(;h<m;){const g=a[h++],R=a[h++];try{b=g?g(b):b}catch(C){if(!R){l=Promise.reject(C);break}try{const d=R.call(this,C);u.isThenable(d)&&(l=Promise.resolve(d).then(()=>Ye.call(this,b)))}catch(d){l=Promise.reject(d)}break}}if(!l)try{l=Ye.call(this,b)}catch(g){l=Promise.reject(g)}for(h=0,m=f.length;h<m;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=ae(this.defaults,t);const n=Wn(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Qn(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){se.prototype[t]=function(n,s){return this.request(ae(s||{},{method:t,url:n,data:s&&u.hasOwnProp(s,"data")?s.data:void 0}))}});u.forEach(["post","put","patch","query"],function(t){function n(s){return function(i,o,a){return this.request(ae(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}se.prototype[t]=n(),t!=="query"&&(se.prototype[t+"Form"]=n(!0))});let Ji=class Yn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Ae(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Yn(function(r){t=r}),cancel:t}}};function Gi(e){return function(n){return e.apply(null,n)}}function Xi(e){return u.isObject(e)&&e.isAxiosError===!0}const je={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
9alContent: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(je).forEach(([e,t])=>{je[t]===void 0&&(je[t]=e)});function es(e){const t=new se(e),n=Pn(se.prototype.request,t);return u.extend(n,se.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return es(ae(e,r))},n}const x=es(Ce);x.Axios=se;x.CanceledError=Ae;x.CancelToken=Ji;x.isCancel=Kn;x.VERSION=wt;x.toFormData=ke;x.AxiosError=y;x.Cancel=x.CanceledError;x.all=function(t){return Promise.all(t)};x.spread=Gi;x.isAxiosError=Xi;x.mergeConfig=ae;x.AxiosHeaders=j;x.formToJSON=e=>Hn(u.isHTMLForm(e)?new FormData(e):e);x.getAdapter=Zn.getAdapter;x.HttpStatusCode=je;x.default=x;const{Axios:Zi,AxiosError:Yi,CanceledError:eo,isCancel:to,CancelToken:no,VERSION:so,all:ro,Cancel:io,isAxiosError:oo,spread:ao,toFormData:uo,AxiosHeaders:co,HttpStatusCode:lo,formToJSON:fo,getAdapter:ho,mergeConfig:po,create:yo}=x,Ao=Object.freeze(Object.defineProperty({__proto__:null,Axios:Zi,AxiosError:Yi,AxiosHeaders:co,Cancel:io,CancelToken:no,CanceledError:eo,HttpStatusCode:lo,VERSION:so,all:ro,create:yo,default:x,formToJSON:fo,getAdapter:ho,isAxiosError:oo,isCancel:to,mergeConfig:po,spread:ao,toFormData:uo},Symbol.toStringTag,{value:"Module"}));export{Qs as Q,Oo as V,x as a,Ro as b,So as c,Ao as i,fn as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.