@vizzly-testing/cli
Version:
Visual review platform for UI developers and designers
1 lines • 409 kB
JavaScript
(function(){"use strict";function _m(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function ao(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var cr={exports:{}},bn={};var lo;function Lm(){if(lo)return bn;lo=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var x in d)x!=="key"&&(m[x]=d[x])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return bn.Fragment=s,bn.jsx=c,bn.jsxs=c,bn}var no;function Um(){return no||(no=1,cr.exports=Lm()),cr.exports}var r=Um(),Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},km={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},Bm=class{#e=km;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},Ja=new Bm;function Hm(n){setTimeout(n,0)}var Fa=typeof window>"u"||"Deno"in globalThis;function ft(){}function qm(n,s){return typeof n=="function"?n(s):n}function or(n){return typeof n=="number"&&n>=0&&n!==1/0}function so(n,s){return Math.max(n+(s||0)-Date.now(),0)}function ja(n,s){return typeof n=="function"?n(s):n}function Dt(n,s){return typeof n=="function"?n(s):n}function io(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:x}=n;if(v){if(o){if(s.queryHash!==fr(v,s.options))return!1}else if(!yn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof x=="boolean"&&s.isStale()!==x||d&&d!==s.state.fetchStatus||m&&!m(s))}function ro(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(Wa(s.options.mutationKey)!==Wa(m))return!1}else if(!yn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function fr(n,s){return(s?.queryKeyHashFn||Wa)(n)}function Wa(n){return JSON.stringify(n,(s,c)=>dr(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function yn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>yn(n[c],s[c])):!1}var Qm=Object.prototype.hasOwnProperty;function uo(n,s){if(n===s)return n;const c=co(n)&&co(s);if(!c&&!(dr(n)&&dr(s)))return s;const d=(c?n:Object.keys(n)).length,m=c?s:Object.keys(s),v=m.length,x=c?new Array(v):{};let b=0;for(let g=0;g<v;g++){const y=c?g:m[g],N=n[y],E=s[y];if(N===E){x[y]=N,(c?g<d:Qm.call(n,y))&&b++;continue}if(N===null||E===null||typeof N!="object"||typeof E!="object"){x[y]=E;continue}const U=uo(N,E);x[y]=U,U===N&&b++}return d===v&&b===d?n:x}function Ns(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function co(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function dr(n){if(!oo(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!oo(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function oo(n){return Object.prototype.toString.call(n)==="[object Object]"}function Vm(n){return new Promise(s=>{Ja.setTimeout(s,n)})}function hr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?uo(n,s):s}function Ym(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Gm(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var mr=Symbol();function fo(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===mr?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function vr(n,s){return typeof n=="function"?n(...s):!!n}function Zm(n,s,c){let o=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),o||(o=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),n}var Xm=class extends Cl{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pr=new Xm;function gr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var Km=Hm;function $m(){let n=[],s=0,c=x=>{x()},o=x=>{x()},d=Km;const m=x=>{s?n.push(x):d(()=>{c(x)})},v=()=>{const x=n;n=[],x.length&&d(()=>{o(()=>{x.forEach(b=>{c(b)})})})};return{batch:x=>{let b;s++;try{b=x()}finally{s--,s||v()}return b},batchCalls:x=>(...b)=>{m(()=>{x(...b)})},schedule:m,setNotifyFunction:x=>{c=x},setBatchNotifyFunction:x=>{o=x},setScheduler:x=>{d=x}}}var Ie=$m(),Jm=class extends Cl{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Es=new Jm;function Fm(n){return Math.min(1e3*2**n,3e4)}function ho(n){return(n??"online")==="online"?Es.isOnline():!0}var xr=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function mo(n){let s=!1,c=0,o;const d=gr(),m=()=>d.status!=="pending",v=_=>{if(!m()){const Q=new xr(_);E(Q),n.onCancel?.(Q)}},x=()=>{s=!0},b=()=>{s=!1},g=()=>pr.isFocused()&&(n.networkMode==="always"||Es.isOnline())&&n.canRun(),y=()=>ho(n.networkMode)&&n.canRun(),N=_=>{m()||(o?.(),d.resolve(_))},E=_=>{m()||(o?.(),d.reject(_))},U=()=>new Promise(_=>{o=Q=>{(m()||g())&&_(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),M=()=>{if(m())return;let _;const Q=c===0?n.initialPromise:void 0;try{_=Q??n.fn()}catch(B){_=Promise.reject(B)}Promise.resolve(_).then(N).catch(B=>{if(m())return;const F=n.retry??(Fa?0:3),X=n.retryDelay??Fm,I=typeof X=="function"?X(c,B):X,ve=F===!0||typeof F=="number"&&c<F||typeof F=="function"&&F(c,B);if(s||!ve){E(B);return}c++,n.onFail?.(c,B),Vm(I).then(()=>g()?void 0:U()).then(()=>{s?E(B):M()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:x,continueRetry:b,canStart:y,start:()=>(y()?M():U().then(M),d)}}var vo=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),or(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Fa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ja.clearTimeout(this.#e),this.#e=void 0)}},Wm=class extends vo{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=xo(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=xo(this.options);s.data!==void 0&&(this.setState(go(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=hr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ja(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!so(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const x=this.observers.find(b=>b.options.queryFn);x&&this.setOptions(x.options)}const c=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const x=fo(this.options,s),g=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(x,g,this):x(g)},v=(()=>{const x={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(x),x})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=mo({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:x=>{x instanceof xr&&x.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(x,b)=>{this.#s({type:"failed",failureCount:x,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const x=await this.#l.start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),this.#a.config.onSuccess?.(x,this),this.#a.config.onSettled?.(x,this.state.error,this),x}catch(x){if(x instanceof xr){if(x.silent)return this.#l.promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw this.#s({type:"error",error:x}),this.#a.config.onError?.(x,this),this.#a.config.onSettled?.(this.state.data,x,this),x}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...po(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...go(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Ie.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function po(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ho(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function go(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xo(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Im=class extends Cl{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=gr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),bo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return br(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return br(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),s._defaulted&&!Ns(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&yo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||ja(this.options.staleTime,this.#t)!==ja(s.staleTime,this.#t))&&this.#p();const d=this.#g();o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||d!==this.#u)&&this.#x(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return ev(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#w();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ft)),s}#p(){this.#y();const n=ja(this.options.staleTime,this.#t);if(Fa||this.#n.isStale||!or(n))return;const c=so(this.#n.dataUpdatedAt,n)+1;this.#c=Ja.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(n){this.#j(),this.#u=n,!(Fa||Dt(this.options.enabled,this.#t)===!1||!or(this.#u)||this.#u===0)&&(this.#o=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||pr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#x(this.#g())}#y(){this.#c&&(Ja.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Ja.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:g}=n;let y={...g},N=!1,E;if(s._optimisticResults){const ee=this.hasListeners(),ge=!ee&&bo(n,s),Te=ee&&yo(n,c,s,o);(ge||Te)&&(y={...y,...po(g.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:U,errorUpdatedAt:M,status:_}=y;E=y.data;let Q=!1;if(s.placeholderData!==void 0&&E===void 0&&_==="pending"){let ee;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(ee=d.data,Q=!0):ee=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,ee!==void 0&&(_="success",E=hr(d?.data,ee,s),N=!0)}if(s.select&&E!==void 0&&!Q)if(d&&E===m?.data&&s.select===this.#v)E=this.#d;else try{this.#v=s.select,E=s.select(E),E=hr(d?.data,E,s),this.#d=E,this.#s=null}catch(ee){this.#s=ee}this.#s&&(U=this.#s,E=this.#d,M=Date.now(),_="error");const B=y.fetchStatus==="fetching",F=_==="pending",X=_==="error",I=F&&B,ve=E!==void 0,V={status:_,fetchStatus:y.fetchStatus,isPending:F,isSuccess:_==="success",isError:X,isInitialLoading:I,isLoading:I,data:E,dataUpdatedAt:y.dataUpdatedAt,error:U,errorUpdatedAt:M,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:B,isRefetching:B&&!F,isLoadingError:X&&!ve,isPaused:y.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:X&&ve,isStale:yr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:Dt(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=Ne=>{V.status==="error"?Ne.reject(V.error):V.data!==void 0&&Ne.resolve(V.data)},ge=()=>{const Ne=this.#r=V.promise=gr();ee(Ne)},Te=this.#r;switch(Te.status){case"pending":n.queryHash===c.queryHash&&ee(Te);break;case"fulfilled":(V.status==="error"||V.data!==Te.value)&&ge();break;case"rejected":(V.status!=="error"||V.error!==Te.reason)&&ge();break}}return V}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Ns(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const x=v;return this.#n[x]!==n[x]&&m.has(x)})};this.#S({listeners:c()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Ie.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Pm(n,s){return Dt(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function bo(n,s){return Pm(n,s)||n.state.data!==void 0&&br(n,s,s.refetchOnMount)}function br(n,s,c){if(Dt(s.enabled,n)!==!1&&ja(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&yr(n,s)}return!1}function yo(n,s,c,o){return(n!==s||Dt(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&yr(n,c)}function yr(n,s){return Dt(s.enabled,n)!==!1&&n.isStaleByTime(ja(s.staleTime,n))}function ev(n,s){return!Ns(n.getCurrentResult(),s)}function jo(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let x={pages:[],pageParams:[]},b=0;const g=async()=>{let y=!1;const N=M=>{Zm(M,()=>s.signal,()=>y=!0)},E=fo(s.options,s.fetchOptions),U=async(M,_,Q)=>{if(y)return Promise.reject();if(_==null&&M.pages.length)return Promise.resolve(M);const F=(()=>{const de={client:s.client,queryKey:s.queryKey,pageParam:_,direction:Q?"backward":"forward",meta:s.options.meta};return N(de),de})(),X=await E(F),{maxPages:I}=s.options,ve=Q?Gm:Ym;return{pages:ve(M.pages,X,I),pageParams:ve(M.pageParams,_,I)}};if(d&&m.length){const M=d==="backward",_=M?tv:wo,Q={pages:m,pageParams:v},B=_(o,Q);x=await U(Q,B,M)}else{const M=n??m.length;do{const _=b===0?v[0]??o.initialPageParam:wo(o,x);if(b>0&&_==null)break;x=await U(x,_),b++}while(b<M)}return x};s.options.persister?s.fetchFn=()=>s.options.persister?.(g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=g}}}function wo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function tv(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var av=class extends vo{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||So(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=mo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),await this.#a.config.onMutate?.(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{await this.#a.config.onError?.(m,n,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onError?.(m,n,this.state.context,c)}catch(v){Promise.reject(v)}try{await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,c)}catch(v){Promise.reject(v)}throw this.#l({type:"error",error:m}),m}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Ie.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function So(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var lv=class extends Cl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new av({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=Cs(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=Cs(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=Cs(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=Cs(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ie.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>ro(s,c))}findAll(n={}){return this.getAll().filter(s=>ro(n,s))}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Ie.batch(()=>Promise.all(n.map(s=>s.continue().catch(ft))))}};function Cs(n){return n.options.scope?.id}var nv=class extends Cl{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Ns(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Wa(s.mutationKey)!==Wa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??So();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Ie.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#n.onSuccess?.(n.data,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(n.data,null,s,c,o)}catch(d){Promise.reject(d)}}else if(n?.type==="error"){try{this.#n.onError?.(n.error,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(void 0,n.error,s,c,o)}catch(d){Promise.reject(d)}}}this.listeners.forEach(s=>{s(this.#t)})})}},sv=class extends Cl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??fr(o,s);let m=this.get(d);return m||(m=new Wm({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ie.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>io(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>io(n,c)):s}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},iv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new sv,this.#t=n.mutationCache||new lv,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=pr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Es.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ja(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=qm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Ie.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Ie.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Ie.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Ie.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ft).catch(ft)}invalidateQueries(n,s={}){return Ie.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Ie.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ft)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(ja(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ft).catch(ft)}fetchInfiniteQuery(n){return n.behavior=jo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ft).catch(ft)}ensureInfiniteQueryData(n){return n.behavior=jo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Es.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(Wa(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{yn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(Wa(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{yn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=fr(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===mr&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},jr={exports:{}},ae={};var No;function rv(){if(No)return ae;No=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),E=Symbol.iterator;function U(S){return S===null||typeof S!="object"?null:(S=E&&S[E]||S["@@iterator"],typeof S=="function"?S:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,Q={};function B(S,H,Y){this.props=S,this.context=H,this.refs=Q,this.updater=Y||M}B.prototype.isReactComponent={},B.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,H,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=B.prototype;function X(S,H,Y){this.props=S,this.context=H,this.refs=Q,this.updater=Y||M}var I=X.prototype=new F;I.constructor=X,_(I,B.prototype),I.isPureReactComponent=!0;var ve=Array.isArray;function de(){}var V={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ge(S,H,Y){var $=Y.ref;return{$$typeof:n,type:S,key:H,ref:$!==void 0?$:null,props:Y}}function Te(S,H){return ge(S.type,H,S.props)}function Ne(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function De(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return H[Y]})}var pe=/\/+/g;function we(S,H){return typeof S=="object"&&S!==null&&S.key!=null?De(""+S.key):H.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,H,Y,$,te){var le=typeof S;(le==="undefined"||le==="boolean")&&(S=null);var ie=!1;if(S===null)ie=!0;else switch(le){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(S.$$typeof){case n:case s:ie=!0;break;case y:return ie=S._init,R(ie(S._payload),H,Y,$,te)}}if(ie)return te=te(S),ie=$===""?"."+we(S,0):$,ve(te)?(Y="",ie!=null&&(Y=ie.replace(pe,"$&/")+"/"),R(te,H,Y,"",function(G){return G})):te!=null&&(Ne(te)&&(te=Te(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(pe,"$&/")+"/")+ie)),H.push(te)),1;ie=0;var at=$===""?".":$+":";if(ve(S))for(var Se=0;Se<S.length;Se++)$=S[Se],le=at+we($,Se),ie+=R($,H,Y,le,te);else if(Se=U(S),typeof Se=="function")for(S=Se.call(S),Se=0;!($=S.next()).done;)$=$.value,le=at+we($,Se++),ie+=R($,H,Y,le,te);else if(le==="object"){if(typeof S.then=="function")return R(_e(S),H,Y,$,te);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ie}function q(S,H,Y){if(S==null)return S;var $=[],te=0;return R(S,$,"","",function(le){return H.call(Y,le,te++)}),$}function Z(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},xe={map:q,forEach:function(S,H,Y){q(S,function(){H.apply(this,arguments)},Y)},count:function(S){var H=0;return q(S,function(){H++}),H},toArray:function(S){return q(S,function(H){return H})||[]},only:function(S){if(!Ne(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=N,ae.Children=xe,ae.Component=B,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=X,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return V.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,H,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=_({},S.props),te=S.key;if(H!=null)for(le in H.key!==void 0&&(te=""+H.key),H)!ee.call(H,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&H.ref===void 0||($[le]=H[le]);var le=arguments.length-2;if(le===1)$.children=Y;else if(1<le){for(var ie=Array(le),at=0;at<le;at++)ie[at]=arguments[at+2];$.children=ie}return ge(S.type,te,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,H,Y){var $,te={},le=null;if(H!=null)for($ in H.key!==void 0&&(le=""+H.key),H)ee.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(te[$]=H[$]);var ie=arguments.length-2;if(ie===1)te.children=Y;else if(1<ie){for(var at=Array(ie),Se=0;Se<ie;Se++)at[Se]=arguments[Se+2];te.children=at}if(S&&S.defaultProps)for($ in ie=S.defaultProps,ie)te[$]===void 0&&(te[$]=ie[$]);return ge(S,le,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:x,render:S}},ae.isValidElement=Ne,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:Z}},ae.memo=function(S,H){return{$$typeof:g,type:S,compare:H===void 0?null:H}},ae.startTransition=function(S){var H=V.T,Y={};V.T=Y;try{var $=S(),te=V.S;te!==null&&te(Y,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(de,re)}catch(le){re(le)}finally{H!==null&&Y.types!==null&&(H.types=Y.types),V.T=H}},ae.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ae.use=function(S){return V.H.use(S)},ae.useActionState=function(S,H,Y){return V.H.useActionState(S,H,Y)},ae.useCallback=function(S,H){return V.H.useCallback(S,H)},ae.useContext=function(S){return V.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,H){return V.H.useDeferredValue(S,H)},ae.useEffect=function(S,H){return V.H.useEffect(S,H)},ae.useEffectEvent=function(S){return V.H.useEffectEvent(S)},ae.useId=function(){return V.H.useId()},ae.useImperativeHandle=function(S,H,Y){return V.H.useImperativeHandle(S,H,Y)},ae.useInsertionEffect=function(S,H){return V.H.useInsertionEffect(S,H)},ae.useLayoutEffect=function(S,H){return V.H.useLayoutEffect(S,H)},ae.useMemo=function(S,H){return V.H.useMemo(S,H)},ae.useOptimistic=function(S,H){return V.H.useOptimistic(S,H)},ae.useReducer=function(S,H,Y){return V.H.useReducer(S,H,Y)},ae.useRef=function(S){return V.H.useRef(S)},ae.useState=function(S){return V.H.useState(S)},ae.useSyncExternalStore=function(S,H,Y){return V.H.useSyncExternalStore(S,H,Y)},ae.useTransition=function(){return V.H.useTransition()},ae.version="19.2.3",ae}var Eo;function As(){return Eo||(Eo=1,jr.exports=rv()),jr.exports}var h=As();const Ia=ao(h),uv=_m({__proto__:null,default:Ia},[h]);var Co=h.createContext(void 0),vt=n=>{const s=h.useContext(Co);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},cv=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(Co.Provider,{value:n,children:s})),Ao=h.createContext(!1),ov=()=>h.useContext(Ao);Ao.Provider;function fv(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var dv=h.createContext(fv()),hv=()=>h.useContext(dv),mv=(n,s,c)=>{const o=c?.state.error&&typeof n.throwOnError=="function"?vr(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(s.isReset()||(n.retryOnMount=!1))},vv=n=>{h.useEffect(()=>{n.clearReset()},[n])},pv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||vr(c,[n.error,o])),gv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},xv=(n,s)=>n.isLoading&&n.isFetching&&!s,bv=(n,s)=>n?.suspense&&s.isPending,Oo=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function yv(n,s,c){const o=ov(),d=hv(),m=vt(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v);const x=m.getQueryCache().get(v.queryHash);v._optimisticResults=o?"isRestoring":"optimistic",gv(v),mv(v,d,x),vv(d);const b=!m.getQueryCache().get(v.queryHash),[g]=h.useState(()=>new s(m,v)),y=g.getOptimisticResult(v),N=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(E=>{const U=N?g.subscribe(Ie.batchCalls(E)):ft;return g.updateResult(),U},[g,N]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),h.useEffect(()=>{g.setOptions(v)},[v,g]),bv(v,y))throw Oo(v,g,d);if(pv({result:y,errorResetBoundary:d,throwOnError:v.throwOnError,query:x,suspense:v.suspense}))throw y.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,y),v.experimental_prefetchInRender&&!Fa&&xv(y,o)&&(b?Oo(v,g,d):x?.promise)?.catch(ft).finally(()=>{g.updateResult()}),v.notifyOnChangeProps?y:g.trackResult(y)}function Al(n,s){return yv(n,Im)}function Gt(n,s){const c=vt(),[o]=h.useState(()=>new nv(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Ie.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,x)=>{o.mutate(v,x).catch(ft)},[o]);if(d.error&&vr(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var wr={exports:{}},jn={},Sr={exports:{}},Nr={};var Mo;function jv(){return Mo||(Mo=1,(function(n){function s(R,q){var Z=R.length;R.push(q);e:for(;0<Z;){var re=Z-1>>>1,xe=R[re];if(0<d(xe,q))R[re]=q,R[Z]=xe,Z=re;else break e}}function c(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var q=R[0],Z=R.pop();if(Z!==q){R[0]=Z;e:for(var re=0,xe=R.length,S=xe>>>1;re<S;){var H=2*(re+1)-1,Y=R[H],$=H+1,te=R[$];if(0>d(Y,Z))$<xe&&0>d(te,Y)?(R[re]=te,R[$]=Z,re=$):(R[re]=Y,R[H]=Z,re=H);else if($<xe&&0>d(te,Z))R[re]=te,R[$]=Z,re=$;else break e}}return q}function d(R,q){var Z=R.sortIndex-q.sortIndex;return Z!==0?Z:R.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,x=v.now();n.unstable_now=function(){return v.now()-x}}var b=[],g=[],y=1,N=null,E=3,U=!1,M=!1,_=!1,Q=!1,B=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function I(R){for(var q=c(g);q!==null;){if(q.callback===null)o(g);else if(q.startTime<=R)o(g),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(g)}}function ve(R){if(_=!1,I(R),!M)if(c(b)!==null)M=!0,de||(de=!0,De());else{var q=c(g);q!==null&&_e(ve,q.startTime-R)}}var de=!1,V=-1,ee=5,ge=-1;function Te(){return Q?!0:!(n.unstable_now()-ge<ee)}function Ne(){if(Q=!1,de){var R=n.unstable_now();ge=R;var q=!0;try{e:{M=!1,_&&(_=!1,F(V),V=-1),U=!0;var Z=E;try{t:{for(I(R),N=c(b);N!==null&&!(N.expirationTime>R&&Te());){var re=N.callback;if(typeof re=="function"){N.callback=null,E=N.priorityLevel;var xe=re(N.expirationTime<=R);if(R=n.unstable_now(),typeof xe=="function"){N.callback=xe,I(R),q=!0;break t}N===c(b)&&o(b),I(R)}else o(b);N=c(b)}if(N!==null)q=!0;else{var S=c(g);S!==null&&_e(ve,S.startTime-R),q=!1}}break e}finally{N=null,E=Z,U=!1}q=void 0}}finally{q?De():de=!1}}}var De;if(typeof X=="function")De=function(){X(Ne)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,we=pe.port2;pe.port1.onmessage=Ne,De=function(){we.postMessage(null)}}else De=function(){B(Ne,0)};function _e(R,q){V=B(function(){R(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(R){switch(E){case 1:case 2:case 3:var q=3;break;default:q=E}var Z=E;E=q;try{return R()}finally{E=Z}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(R,q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=E;E=R;try{return q()}finally{E=Z}},n.unstable_scheduleCallback=function(R,q,Z){var re=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?re+Z:re):Z=re,R){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=Z+xe,R={id:y++,callback:q,priorityLevel:R,startTime:Z,expirationTime:xe,sortIndex:-1},Z>re?(R.sortIndex=Z,s(g,R),c(b)===null&&R===c(g)&&(_?(F(V),V=-1):_=!0,_e(ve,Z-re))):(R.sortIndex=xe,s(b,R),M||U||(M=!0,de||(de=!0,De()))),R},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(R){var q=E;return function(){var Z=E;E=q;try{return R.apply(this,arguments)}finally{E=Z}}}})(Nr)),Nr}var zo;function wv(){return zo||(zo=1,Sr.exports=jv()),Sr.exports}var Er={exports:{}},ot={};var To;function Sv(){if(To)return ot;To=1;var n=As();function s(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,g,y){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:N==null?null:""+N,children:b,containerInfo:g,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ot.createPortal=function(b,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return m(b,g,null,y)},ot.flushSync=function(b){var g=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=g,o.p=y,o.d.f()}},ot.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},ot.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ot.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var y=g.as,N=x(y,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:N,integrity:E,fetchPriority:U}):y==="script"&&o.d.X(b,{crossOrigin:N,integrity:E,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ot.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=x(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof g.