@rimori/playwright-testing 0.3.23-next.0 → 0.3.23-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js +8 -0
  2. package/dist/harness/{index3.js → __mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js} +42 -42
  3. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs.js +1 -0
  4. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js +9 -0
  5. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs_commonjs-proxy.js +1 -0
  6. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_dev_mf_2_runtime__loadShare__.mjs.js +9 -0
  7. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js +9 -0
  8. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js +9 -0
  9. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy.js +1 -0
  10. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs.js +25 -0
  11. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__zod__loadShare__.mjs.js +1 -0
  12. package/dist/harness/hostInit.js +1 -1
  13. package/dist/harness/index.html +1 -12
  14. package/dist/harness/index.js +1 -25
  15. package/dist/harness/localSharedImportMap.js +1 -1
  16. package/dist/harness/mf-entry-bootstrap-0.js +13 -0
  17. package/dist/harness/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__rimori-scenario-host__remoteEntry-_hash_.js +5 -6
  18. package/package.json +5 -5
  19. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.js.js +0 -1
  20. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.js.js +0 -1
  21. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.js.js +0 -1
  22. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.js_commonjs-proxy.js +0 -1
  23. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js.js +0 -1
  24. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.js.js +0 -1
  25. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy.js +0 -1
  26. package/dist/harness/html2canvas.esm.js +0 -22
  27. package/dist/harness/index2.js +0 -8
  28. package/dist/harness/index4.js +0 -1
  29. package/dist/harness/index5.js +0 -9
  30. package/dist/harness/index6.js +0 -9
  31. package/dist/harness/index7.js +0 -1
  32. package/dist/harness/jsx-dev-runtime.js +0 -9
  33. package/dist/harness/jsx-runtime.js +0 -9
@@ -0,0 +1 @@
1
+ import{e as de,d as D,f as ye,b as V,k as De,m as N,g as q,c as te}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js";import{c as Ie}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";function ct(e,t){for(var s=0;s<t.length;s++){const r=t[s];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const n=Object.getOwnPropertyDescriptor(r,i);n&&Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var T=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(){}},lt=class extends T{#t;#e;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},J=new lt,ft={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dt=class{#t=ft;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},E=new dt;function yt(e){setTimeout(e,0)}var Te=typeof window>"u"||"Deno"in globalThis;function b(){}function pt(e,t){return typeof e=="function"?e(t):e}function se(e){return typeof e=="number"&&e>=0&&e!==1/0}function qe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e=="function"?e(t):e}function O(e,t){return typeof e=="function"?e(t):e}function re(e,t){const{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:u}=e;if(a){if(r){if(t.queryHash!==pe(a,t.options))return!1}else if(!A(t.queryKey,a))return!1}if(s!=="all"){const o=t.isActive();if(s==="active"&&!o||s==="inactive"&&o)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||n&&!n(t))}function ie(e,t){const{exact:s,status:r,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(I(t.options.mutationKey)!==I(n))return!1}else if(!A(t.options.mutationKey,n))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function pe(e,t){return(t?.queryKeyHashFn||I)(e)}function I(e){return JSON.stringify(e,(t,s)=>ne(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function A(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>A(e[s],t[s])):!1}var mt=Object.prototype.hasOwnProperty;function H(e,t,s=0){if(e===t)return e;if(s>500)return t;const r=Qe(e)&&Qe(t);if(!r&&!(ne(e)&&ne(t)))return t;const n=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),u=a.length,o=r?new Array(u):{};let c=0;for(let h=0;h<u;h++){const d=r?h:a[h],l=e[d],p=t[d];if(l===p){o[d]=l,(r?h<n:mt.call(e,d))&&c++;continue}if(l===null||p===null||typeof l!="object"||typeof p!="object"){o[d]=p;continue}const v=H(l,p,s+1);o[d]=v,v===l&&c++}return n===u&&c===n?e:o}function U(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Qe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ne(e){if(!Pe(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Pe(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pe(e){return Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return new Promise(t=>{E.setTimeout(t,e)})}function ae(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?H(e,t):t}function gt(e){return e}function Ae(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function _t(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var Z=Symbol();function xe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Z?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function X(e,t){return typeof e=="function"?e(...t):!!e}function ke(e,t,s){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),e}var x=(()=>{let e=()=>Te;return{isServer(){return e()},setIsServer(t){e=t}}})();function oe(){let e,t;const s=new Promise((i,n)=>{e=i,t=n});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},s.reject=i=>{r({status:"rejected",reason:i}),t(i)},s}function bt(e){let t;if(e.then(s=>(t=s,s),b)?.catch(b),t!==void 0)return{data:t}}function je(e){return e}function Ot(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function St(e,t,s){const r=()=>{const i=e.promise?.then(t).catch(n=>s(n)?Promise.reject(new Error("redacted")):Promise.reject(n));return i?.catch(b),i};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Ue(e){return e.state.isPaused}function Ke(e){return e.state.status==="success"}function Qt(e){return!0}function Pt(e,t={}){const s=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Ue,r=e.getMutationCache().getAll().flatMap(o=>s(o)?[Ot(o)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Ke,n=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??Qt,a=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??je,u=e.getQueryCache().getAll().flatMap(o=>i(o)?[St(o,a,n)]:[]);return{mutations:r,queries:u}}function ue(e,t,s){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),i=e.getQueryCache(),n=s?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??je,a=t.mutations||[],u=t.queries||[];a.forEach(({state:o,...c})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...c},o)}),u.forEach(({queryKey:o,state:c,queryHash:h,meta:d,promise:l,dehydratedAt:p,queryType:v})=>{const f=l?bt(l):void 0,y=c.data===void 0?f?.data:c.data,m=y===void 0?y:n(y);let _=i.get(h);const Q=_?.state.status==="pending",P=_?.state.fetchStatus==="fetching";if(_){const C=f&&p!==void 0&&p>_.state.dataUpdatedAt;if(c.dataUpdatedAt>_.state.dataUpdatedAt||C){const{fetchStatus:B,...R}=c;_.setState({...R,data:m,...c.status==="pending"&&m!==void 0&&{status:"success",...!P&&{fetchStatus:"idle"}}})}}else _=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:o,queryHash:h,meta:d,_type:v},{...c,data:m,fetchStatus:"idle",status:c.status==="pending"&&m!==void 0?"success":c.status});l&&!f&&!Q&&!P&&(p===void 0||p>_.state.dataUpdatedAt)&&_.fetch(void 0,{initialPromise:Promise.resolve(l).then(n)}).catch(b)})}var Le=yt;function Rt(){let e=[],t=0,s=u=>{u()},r=u=>{u()},i=Le;const n=u=>{t?e.push(u):i(()=>{s(u)})},a=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(o=>{s(o)})})})};return{batch:u=>{let o;t++;try{o=u()}finally{t--,t||a()}return o},batchCalls:u=>(...o)=>{n(()=>{u(...o)})},schedule:n,setNotifyFunction:u=>{s=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var g=Rt(),wt=class extends T{#t=!0;#e;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#t}},K=new wt;function Ct(e){return Math.min(1e3*2**e,3e4)}function Ne(e){return(e??"online")==="online"?K.isOnline():!0}var L=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Mt(e){return e instanceof L}function He(e){let t=!1,s=0,r;const i=oe(),n=()=>i.status!=="pending",a=f=>{if(!n()){const y=new L(f);l(y),e.onCancel?.(y)}},u=()=>{t=!0},o=()=>{t=!1},c=()=>J.isFocused()&&(e.networkMode==="always"||K.isOnline())&&e.canRun(),h=()=>Ne(e.networkMode)&&e.canRun(),d=f=>{n()||(r?.(),i.resolve(f))},l=f=>{n()||(r?.(),i.reject(f))},p=()=>new Promise(f=>{r=y=>{(n()||c())&&f(y)},e.onPause?.()}).then(()=>{r=void 0,n()||e.onContinue?.()}),v=()=>{if(n())return;let f;const y=s===0?e.initialPromise:void 0;try{f=y??e.fn()}catch(m){f=Promise.reject(m)}Promise.resolve(f).then(d).catch(m=>{if(n())return;const _=e.retry??(x.isServer()?0:3),Q=e.retryDelay??Ct,P=typeof Q=="function"?Q(s,m):Q,C=_===!0||typeof _=="number"&&s<_||typeof _=="function"&&_(s,m);if(t||!C){l(m);return}s++,e.onFail?.(s,m),vt(P).then(()=>c()?void 0:p()).then(()=>{t?l(m):v()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:u,continueRetry:o,canStart:h,start:()=>(h()?v():p().then(v),i)}}var Be=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),se(this.gcTime)&&(this.#t=E.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(x.isServer()?1/0:5*60*1e3))}clearGcTimeout(){this.#t!==void 0&&(E.clearTimeout(this.#t),this.#t=void 0)}};function Et(e){return{onFetch:(t,s)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},o=0;const c=async()=>{let h=!1;const d=v=>{ke(v,()=>t.signal,()=>h=!0)},l=xe(t.options,t.fetchOptions),p=async(v,f,y)=>{if(h)return Promise.reject(t.signal.reason);if(f==null&&v.pages.length)return Promise.resolve(v);const _=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:f,direction:y?"backward":"forward",meta:t.options.meta};return d(B),B})(),Q=await l(_),{maxPages:P}=t.options,C=y?_t:Ae;return{pages:C(v.pages,Q,P),pageParams:C(v.pageParams,f,P)}};if(i&&n.length){const v=i==="backward",f=v?ze:he,y={pages:n,pageParams:a},m=f(r,y);u=await p(y,m,v)}else{const v=e??n.length;do{const f=o===0?a[0]??r.initialPageParam:he(r,u);if(o>0&&f==null)break;u=await p(u,f),o++}while(o<v)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=c}}}function he(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function ze(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function Ft(e,t){return t?he(e,t)!=null:!1}function Dt(e,t){return!t||!e.getPreviousPageParam?!1:ze(e,t)!=null}var Ge=class extends Be{#t;#e;#s;#r;#i;#n;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=we(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=we(this.options);t.data!==void 0&&(this.setState(Re(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const s=ae(this.state.data,e,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#u({type:"setState",state:e})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>O(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(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:!qe(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a||this.#c()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(c=>c.options.queryFn);o&&this.setOptions(o.options)}const s=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},i=()=>{const o=xe(this.options,t),h=(()=>{const d={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#a=!1,this.options.persister?this.options.persister(o,h,this):o(h)},a=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();(this.#t==="infinite"?Et(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#s=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#n=He({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof L&&o.revert&&this.setState({...this.#s,fetchStatus:"idle"}),s.abort()},onFail:(o,c)=>{this.#u({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#n.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#r.config.onSuccess?.(o,this),this.#r.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof L){if(o.silent)return this.#n.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#u({type:"error",error:o}),this.#r.config.onError?.(o,this),this.#r.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#u(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...$e(s.data,this.options),fetchMeta:e.meta??null};case"success":const r={...s,...Re(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?r:void 0,r;case"error":const i=e.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function $e(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Re(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function we(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var k=class extends T{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#o=oe(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#s=void 0;#r=void 0;#i;#n;#o;#a;#c;#u;#d;#l;#y;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ce(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ce(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ce(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#O(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof O(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!U(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Me(this.#e,s,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#e!==s||O(this.options.enabled,this.#e)!==O(t.enabled,this.#e)||F(this.options.staleTime,this.#e)!==F(t.staleTime,this.#e))&&this.#m();const i=this.#v();r&&(this.#e!==s||O(this.options.enabled,this.#e)!==O(t.enabled,this.#e)||i!==this.#h)&&this.#g(i)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),s=this.createResult(t,e);return Tt(this,s)&&(this.#r=s,this.#n=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(s,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),s=this.#t.getQueryCache().build(this.#t,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(b)),t}#m(){this.#b();const e=F(this.options.staleTime,this.#e);if(x.isServer()||this.#r.isStale||!se(e))return;const s=qe(this.#r.dataUpdatedAt,e)+1;this.#l=E.setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(e){this.#O(),this.#h=e,!(x.isServer()||O(this.options.enabled,this.#e)===!1||!se(this.#h)||this.#h===0)&&(this.#y=E.setInterval(()=>{(this.options.refetchIntervalInBackground||J.isFocused())&&this.#f()},this.#h))}#_(){this.#m(),this.#g(this.#v())}#b(){this.#l!==void 0&&(E.clearTimeout(this.#l),this.#l=void 0)}#O(){this.#y!==void 0&&(E.clearInterval(this.#y),this.#y=void 0)}createResult(e,t){const s=this.#e,r=this.options,i=this.#r,n=this.#i,a=this.#n,o=e!==s?e.state:this.#s,{state:c}=e;let h={...c},d=!1,l;if(t._optimisticResults){const S=this.hasListeners(),j=!S&&Ce(e,t),z=S&&Me(e,s,t,r);(j||z)&&(h={...h,...$e(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:v,status:f}=h;l=h.data;let y=!1;if(t.placeholderData!==void 0&&l===void 0&&f==="pending"){let S;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(S=i.data,y=!0):S=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,S!==void 0&&(f="success",l=ae(i?.data,S,t),d=!0)}if(t.select&&l!==void 0&&!y)if(i&&l===n?.data&&t.select===this.#c)l=this.#u;else try{this.#c=t.select,l=t.select(l),l=ae(i?.data,l,t),this.#u=l,this.#a=null}catch(S){this.#a=S}this.#a&&(p=this.#a,l=this.#u,v=Date.now(),f="error");const m=h.fetchStatus==="fetching",_=f==="pending",Q=f==="error",P=_&&m,C=l!==void 0,R={status:f,fetchStatus:h.fetchStatus,isPending:_,isSuccess:f==="success",isError:Q,isInitialLoading:P,isLoading:P,data:l,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>o.dataUpdateCount||h.errorUpdateCount>o.errorUpdateCount,isFetching:m,isRefetching:m&&!_,isLoadingError:Q&&!C,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:Q&&C,isStale:me(e,t),refetch:this.refetch,promise:this.#o,isEnabled:O(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const S=R.data!==void 0,j=R.status==="error"&&!S,z=$=>{j?$.reject(R.error):S&&$.resolve(R.data)},Se=()=>{const $=this.#o=R.promise=oe();z($)},G=this.#o;switch(G.status){case"pending":e.queryHash===s.queryHash&&z(G);break;case"fulfilled":(j||R.data!==G.value)&&Se();break;case"rejected":(!j||R.error!==G.reason)&&Se();break}}return R}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#n=this.options,this.#i.data!==void 0&&(this.#d=this.#e),U(t,e))return;this.#r=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 n=new Set(i??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#r).some(a=>{const u=a;return this.#r[u]!==e[u]&&n.has(u)})};this.#Q({listeners:s()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#Q(e){g.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function It(e,t){return O(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&O(t.retryOnMount,e)===!1)}function Ce(e,t){return It(e,t)||e.state.data!==void 0&&ce(e,t,t.refetchOnMount)}function ce(e,t,s){if(O(t.enabled,e)!==!1&&F(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&me(e,t)}return!1}function Me(e,t,s,r){return(e!==t||O(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&me(e,s)}function me(e,t){return O(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function Tt(e,t){return!U(e.getCurrentResult(),t)}var ve=class extends k{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:n,isError:a,isRefetchError:u}=r,o=s.fetchMeta?.fetchMore?.direction,c=a&&o==="forward",h=i&&o==="forward",d=a&&o==="backward",l=i&&o==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ft(t,s.data),hasPreviousPage:Dt(t,s.data),isFetchNextPageError:c,isFetchingNextPage:h,isFetchPreviousPageError:d,isFetchingPreviousPage:l,isRefetchError:u&&!c&&!d,isRefetching:n&&!h&&!l}}},We=class extends Be{#t;#e;#s;#r;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#e=[],this.state=e.state||Ve(),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.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=He({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(n,a)=>{this.#i({type:"failed",failureCount:n,error:a})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,s);const a=await this.options.onMutate?.(e,s);a!==this.state.context&&this.#i({type:"pending",context:a,variables:e,isPaused:i})}const n=await this.#r.start();return await this.#s.config.onSuccess?.(n,e,this.state.context,this,s),await this.options.onSuccess?.(n,e,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,e,this.state.context,s),this.#i({type:"success",data:n}),n}catch(n){try{await this.#s.config.onError?.(n,e,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onError?.(n,e,this.state.context,s)}catch(a){Promise.reject(a)}try{await this.#s.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,n,e,this.state.context,s)}catch(a){Promise.reject(a)}throw this.#i({type:"error",error:n}),n}finally{this.#s.runNext(this)}}#i(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),g.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function Ve(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Je=class extends T{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#s=0}#t;#e;#s;build(e,t,s){const r=new We({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(r),r}add(e){this.#t.add(e);const t=W(e);if(typeof t=="string"){const s=this.#e.get(t);s?s.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=W(e);if(typeof t=="string"){const s=this.#e.get(t);if(s)if(s.length>1){const r=s.indexOf(e);r!==-1&&s.splice(r,1)}else s[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=W(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=W(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){g.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>ie(t,s))}findAll(e={}){return this.getAll().filter(t=>ie(e,t))}notify(e){g.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return g.batch(()=>Promise.all(e.map(t=>t.continue().catch(b))))}};function W(e){return e.options.scope?.id}var Ze=class extends T{#t;#e=void 0;#s;#r;constructor(e,t){super(),this.#t=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.#t.defaultMutationOptions(e),U(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),t?.mutationKey&&this.options.mutationKey&&I(t.mutationKey)!==I(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#n(e)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#i(),this.#n()}mutate(e,t){return this.#r=t,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(e)}#i(){const e=this.#s?.state??Ve();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#n(e){g.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#e.variables,s=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,s,r)}catch(i){Promise.reject(i)}try{this.#r.onSettled?.(e.data,null,t,s,r)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,s,r)}catch(i){Promise.reject(i)}try{this.#r.onSettled?.(void 0,e.error,t,s,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#e)})})}};function Ee(e,t){const s=new Set(t);return e.filter(r=>!s.has(r))}function qt(e,t,s){const r=e.slice(0);return r[t]=s,r}var Xe=class extends T{#t;#e;#s;#r;#i;#n;#o;#a;#c;#u=[];constructor(e,t,s){super(),this.#t=e,this.#r=s,this.#s=[],this.#i=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#r=t,g.batch(()=>{const s=this.#i,r=this.#h(this.#s);r.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const i=r.map(h=>h.observer),n=i.map(h=>h.getCurrentResult()),a=s.length!==i.length,u=i.some((h,d)=>h!==s[d]),o=a||u,c=o?!0:n.some((h,d)=>{const l=this.#e[d];return!l||!U(h,l)});!o&&!c||(o&&(this.#u=r,this.#i=i),this.#e=n,this.hasListeners()&&(o&&(Ee(s,i).forEach(h=>{h.destroy()}),Ee(i,s).forEach(h=>{h.subscribe(d=>{this.#p(h,d)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){const s=this.#h(e),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#l(n??r,t,i),()=>this.#d(r,s)]}#d(e,t){return t.map((s,r)=>{const i=e[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{t.forEach(a=>{a.observer.trackProp(n)})})})}#l(e,t,s){if(t){const r=this.#c,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,a)=>n!==r[a]));return(!this.#n||this.#e!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#e,s!==void 0&&(this.#c=s),this.#n=H(this.#n,t(e))),this.#n}return e}#y(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#h(e){const t=new Map;this.#i.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=t.get(i);n?n.push(r):t.set(i,[r])});const s=[];return e.forEach(r=>{const i=this.#t.defaultQueryOptions(r),a=t.get(i.queryHash)?.shift()??new k(this.#t,i);s.push({defaultedQueryOptions:i,observer:a})}),s}#p(e,t){const s=this.#i.indexOf(e);s!==-1&&(this.#e=qt(this.#e,s,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#d(this.#e,this.#u),t=this.#y(),s=this.#n,r=t?s:this.#l(e,this.#r?.combine);(t||s!==r)&&g.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}},Ye=class extends T{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,s){const r=t.queryKey,i=t.queryHash??pe(r,t);let n=this.get(i);return n||(n=new Ge({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){g.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>re(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>re(e,s)):t}notify(e){g.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){g.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){g.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},At=class{#t;#e;#s;#r;#i;#n;#o;#a;constructor(e={}){this.#t=e.queryCache||new Ye,this.#e=e.mutationCache||new Je,this.#s=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#o=J.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=K.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#t.build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(F(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:s})=>{const r=s.data;return[t,r]})}setQueryData(e,t,s){const r=this.defaultQueryOptions({queryKey:e}),n=this.#t.get(r.queryHash)?.state.data,a=pt(t,n);if(a!==void 0)return this.#t.build(this,r).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return g.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;g.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#t;return g.batch(()=>(s.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},r=g.batch(()=>this.#t.findAll(e).map(i=>i.cancel(s)));return Promise.all(r).then(b).catch(b)}invalidateQueries(e,t={}){return g.batch(()=>(this.#t.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=g.batch(()=>this.#t.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let n=i.fetch(void 0,s);return s.throwOnError||(n=n.catch(b)),i.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(r).then(b)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#t.build(this,t);return s.isStaleByTime(F(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return K.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#r.set(I(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],s={};return t.forEach(r=>{A(e,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(e,t){this.#i.set(I(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],s={};return t.forEach(r=>{A(e,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Z&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};function xt({streamFn:e,refetchMode:t="reset",reducer:s=(i,n)=>Ae(i,n),initialValue:r=[]}){return async i=>{const n=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),a=!!n&&n.isFetched();a&&t==="reset"&&n.setState({...n.resetState,fetchStatus:"fetching"});let u=r,o=!1;const c=ke({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>o=!0),h=await e(c),d=a&&t==="replace";for await(const l of h){if(o)break;d?u=s(u,l):i.client.setQueryData(i.queryKey,p=>s(p===void 0?r:p,l))}return d&&!o&&i.client.setQueryData(i.queryKey,u),i.client.getQueryData(i.queryKey)??r}}var kt=Symbol("dataTagSymbol"),jt=Symbol("dataTagErrorSymbol"),Ut=Symbol("unsetMarker"),ge=de(void 0),w=e=>{const t=ye(ge);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kt=({client:e,children:t})=>(D(()=>(e.mount(),()=>{e.unmount()}),[e]),Ie(ge.Provider,{value:e,children:t})),et=de(!1),_e=()=>ye(et),Lt=et.Provider;function tt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=de(tt()),be=()=>ye(st),Nt=({children:e})=>{const[t]=V(()=>tt());return Ie(st.Provider,{value:t,children:typeof e=="function"?e(t):e})},rt=(e,t,s)=>{const r=s?.state.error&&typeof e.throwOnError=="function"?X(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},it=e=>{D(()=>{e.clearReset()},[e])},nt=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||X(s,[e.error,r])),Oe=(e,t)=>t.state.data===void 0,at=e=>{if(e.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ht=(e,t)=>e.isLoading&&e.isFetching&&!t,le=(e,t)=>e?.suspense&&t.isPending,fe=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function ot({queries:e,...t},s){const r=w(s),i=_e(),n=be(),a=De(()=>e.map(f=>{const y=r.defaultQueryOptions(f);return y._optimisticResults=i?"isRestoring":"optimistic",y}),[e,r,i]);a.forEach(f=>{at(f);const y=r.getQueryCache().get(f.queryHash);rt(f,n,y)}),it(n);const[u]=V(()=>new Xe(r,a,t)),[o,c,h]=u.getOptimisticResult(a,t.combine),d=!i&&t.subscribed!==!1;N(q(f=>d?u.subscribe(g.batchCalls(f)):b,[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),D(()=>{u.setQueries(a,t)},[a,t,u]);const p=o.some((f,y)=>le(a[y],f))?o.flatMap((f,y)=>{const m=a[y];if(m&&le(m,f)){const _=new k(r,m);return fe(m,_,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const v=o.find((f,y)=>{const m=a[y];return m&&nt({result:f,errorResetBoundary:n,throwOnError:m.throwOnError,query:r.getQueryCache().get(m.queryHash),suspense:m.suspense})});if(v?.error)throw v.error;return c(h())}function Y(e,t,s){const r=_e(),i=be(),n=w(s),a=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const u=n.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",at(a),rt(a,i,u),it(i);const o=!n.getQueryCache().get(a.queryHash),[c]=V(()=>new t(n,a)),h=c.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(N(q(l=>{const p=d?c.subscribe(g.batchCalls(l)):b;return c.updateResult(),p},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),D(()=>{c.setOptions(a)},[a,c]),le(a,h))throw fe(a,c,i);if(nt({result:h,errorResetBoundary:i,throwOnError:a.throwOnError,query:u,suspense:a.suspense}))throw h.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!x.isServer()&&Ht(h,r)&&(o?fe(a,c,i):u?.promise)?.catch(b).finally(()=>{c.updateResult()}),a.notifyOnChangeProps?h:c.trackResult(h)}function Bt(e,t){return Y(e,k,t)}function zt(e,t){return Y({...e,enabled:!0,suspense:!0,throwOnError:Oe,placeholderData:void 0},k,t)}function Gt(e,t){return Y({...e,enabled:!0,suspense:!0,throwOnError:Oe},ve,t)}function $t(e,t){return ot({...e,queries:e.queries.map(s=>({...s,suspense:!0,throwOnError:Oe,enabled:!0,placeholderData:void 0}))},t)}function Wt(e,t){const s=w(t);s.getQueryState(e.queryKey)||s.prefetchQuery(e)}function Vt(e,t){const s=w(t);s.getQueryState(e.queryKey)||s.prefetchInfiniteQuery(e)}function Jt(e){return e}function Zt(e){return e}var Xt=({children:e,options:t={},state:s,queryClient:r})=>{const i=w(r),n=te(t);D(()=>{n.current=t});const a=De(()=>{if(s){if(typeof s!="object")return;const u=i.getQueryCache(),o=s.queries||[],c=[],h=[];for(const d of o){const l=u.get(d.queryHash);l?(d.state.dataUpdatedAt>l.state.dataUpdatedAt||d.promise&&l.state.status!=="pending"&&l.state.fetchStatus!=="fetching"&&d.dehydratedAt!==void 0&&d.dehydratedAt>l.state.dataUpdatedAt)&&h.push(d):c.push(d)}if(c.length>0&&ue(i,{queries:c},n.current),h.length>0)return h}},[i,s]);return D(()=>{a&&ue(i,{queries:a},n.current)},[i,a]),e};function Yt(e,t){const s=w(t),r=s.getQueryCache();return N(q(i=>r.subscribe(g.batchCalls(i)),[r]),()=>s.isFetching(e),()=>s.isFetching(e))}function es(e,t){const s=w(t);return ut({filters:{...e,status:"pending"}},s).length}function Fe(e,t){return e.findAll(t.filters).map(s=>t.select?t.select(s):s.state)}function ut(e={},t){const s=w(t).getMutationCache(),r=te(e),i=te(null);return i.current===null&&(i.current=Fe(s,e)),D(()=>{r.current=e}),N(q(n=>s.subscribe(()=>{const a=H(i.current,Fe(s,r.current));i.current!==a&&(i.current=a,g.schedule(n))}),[s]),()=>i.current,()=>i.current)}function ts(e,t){const s=w(t),[r]=V(()=>new Ze(s,e));D(()=>{r.setOptions(e)},[r,e]);const i=N(q(a=>r.subscribe(g.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),n=q((a,u)=>{r.mutate(a,u).catch(b)},[r]);if(i.error&&X(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function ss(e){return e}function rs(e,t){return Y(e,ve,t)}const is=Object.freeze(Object.defineProperty({__proto__:null,CancelledError:L,HydrationBoundary:Xt,InfiniteQueryObserver:ve,IsRestoringProvider:Lt,Mutation:We,MutationCache:Je,MutationObserver:Ze,QueriesObserver:Xe,Query:Ge,QueryCache:Ye,QueryClient:At,QueryClientContext:ge,QueryClientProvider:Kt,QueryErrorResetBoundary:Nt,QueryObserver:k,dataTagErrorSymbol:jt,dataTagSymbol:kt,defaultScheduler:Le,defaultShouldDehydrateMutation:Ue,defaultShouldDehydrateQuery:Ke,dehydrate:Pt,environmentManager:x,experimental_streamedQuery:xt,focusManager:J,hashKey:I,hydrate:ue,infiniteQueryOptions:Zt,isCancelledError:Mt,isServer:Te,keepPreviousData:gt,matchMutation:ie,matchQuery:re,mutationOptions:ss,noop:b,notifyManager:g,onlineManager:K,partialMatchKey:A,queryOptions:Jt,replaceEqualDeep:H,shouldThrowError:X,skipToken:Z,timeoutManager:E,unsetMarker:Ut,useInfiniteQuery:rs,useIsFetching:Yt,useIsMutating:es,useIsRestoring:_e,useMutation:ts,useMutationState:ut,usePrefetchInfiniteQuery:Vt,usePrefetchQuery:Wt,useQueries:ot,useQuery:Bt,useQueryClient:w,useQueryErrorResetBoundary:be,useSuspenseInfiniteQuery:Gt,useSuspenseQueries:$t,useSuspenseQuery:zt},Symbol.toStringTag,{value:"Module"})),ee="__mf_module_cache__";globalThis[ee]||={share:{},remote:{}};globalThis[ee].share||={};globalThis[ee].remote||={};const ht=globalThis[ee];let M=ht.share["@tanstack/react-query"];M===void 0&&(M=is,ht.share["@tanstack/react-query"]=M);const ns=M,as=M.__esModule?M.default:M.default??M,{HydrationBoundary:os,IsRestoringProvider:us,QueryClientContext:hs,QueryClientProvider:cs,QueryErrorResetBoundary:ls,infiniteQueryOptions:fs,mutationOptions:ds,queryOptions:ys,useInfiniteQuery:ps,useIsFetching:ms,useIsMutating:vs,useIsRestoring:gs,useMutation:_s,useMutationState:bs,usePrefetchInfiniteQuery:Os,usePrefetchQuery:Ss,useQueries:Qs,useQuery:Ps,useQueryClient:Rs,useQueryErrorResetBoundary:ws,useSuspenseInfiniteQuery:Cs,useSuspenseQueries:Ms,useSuspenseQuery:Es,CancelledError:Fs,InfiniteQueryObserver:Ds,Mutation:Is,MutationCache:Ts,MutationObserver:qs,QueriesObserver:As,Query:xs,QueryCache:ks,QueryClient:js,QueryObserver:Us,defaultScheduler:Ks,defaultShouldDehydrateMutation:Ls,defaultShouldDehydrateQuery:Ns,dehydrate:Hs,environmentManager:Bs,experimental_streamedQuery:zs,focusManager:Gs,hashKey:$s,hydrate:Ws,isCancelledError:Vs,isServer:Js,keepPreviousData:Zs,matchMutation:Xs,matchQuery:Ys,noop:er,notifyManager:tr,onlineManager:sr,partialMatchKey:rr,replaceEqualDeep:ir,shouldThrowError:nr,skipToken:ar,timeoutManager:or,dataTagErrorSymbol:ur,dataTagSymbol:hr,unsetMarker:cr}=M,dr=ct({__proto__:null,CancelledError:Fs,HydrationBoundary:os,InfiniteQueryObserver:Ds,IsRestoringProvider:us,Mutation:Is,MutationCache:Ts,MutationObserver:qs,QueriesObserver:As,Query:xs,QueryCache:ks,QueryClient:js,QueryClientContext:hs,QueryClientProvider:cs,QueryErrorResetBoundary:ls,QueryObserver:Us,dataTagErrorSymbol:ur,dataTagSymbol:hr,default:as,defaultScheduler:Ks,defaultShouldDehydrateMutation:Ls,defaultShouldDehydrateQuery:Ns,dehydrate:Hs,environmentManager:Bs,experimental_streamedQuery:zs,focusManager:Gs,hashKey:$s,hydrate:Ws,infiniteQueryOptions:fs,isCancelledError:Vs,isServer:Js,keepPreviousData:Zs,matchMutation:Xs,matchQuery:Ys,mutationOptions:ds,noop:er,notifyManager:tr,onlineManager:sr,partialMatchKey:rr,queryOptions:ys,replaceEqualDeep:ir,shouldThrowError:nr,skipToken:ar,timeoutManager:or,unsetMarker:cr,useInfiniteQuery:ps,useIsFetching:ms,useIsMutating:vs,useIsRestoring:gs,useMutation:_s,useMutationState:bs,usePrefetchInfiniteQuery:Os,usePrefetchQuery:Ss,useQueries:Qs,useQuery:Ps,useQueryClient:Rs,useQueryErrorResetBoundary:ws,useSuspenseInfiniteQuery:Cs,useSuspenseQueries:Ms,useSuspenseQuery:Es},[ns]);export{dr as _,is as a};
@@ -0,0 +1,9 @@
1
+ import{g as Y}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";function P(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var N={exports:{}},u={};/**
2
+ * @license React
3
+ * react.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var T=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),V=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),h=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=h&&e[h]||e["@@iterator"],typeof e=="function"?e:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,H={};function p(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||I}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function M(){}M.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||I}var C=v.prototype=new M;C.constructor=v;j(C,p.prototype);C.isPureReactComponent=!0;var g=Array.isArray;function R(){}var f={H:null,A:null,T:null,S:null},b=Object.prototype.hasOwnProperty;function d(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function X(e,t){return d(e.type,t,e.props)}function S(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function Z(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var A=/\/+/g;function y(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Z(""+e.key):t.toString(36)}function J(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(R,R):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var _=!1;if(e===null)_=!0;else switch(s){case"bigint":case"string":case"number":_=!0;break;case"object":switch(e.$$typeof){case T:case $:_=!0;break;case w:return _=e._init,l(_(e._payload),t,r,n,o)}}if(_)return o=o(e),_=n===""?"."+y(e,0):n,g(o)?(r="",_!=null&&(r=_.replace(A,"$&/")+"/"),l(o,t,r,"",function(U){return U})):o!=null&&(S(o)&&(o=X(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+_)),t.push(o)),1;_=0;var c=n===""?".":n+":";if(g(e))for(var i=0;i<e.length;i++)n=e[i],s=c+y(n,i),_+=l(n,t,r,s,o);else if(i=Q(e),typeof i=="function")for(e=i.call(e),i=0;!(n=e.next()).done;)n=n.value,s=c+y(n,i++),_+=l(n,t,r,s,o);else if(s==="object"){if(typeof e.then=="function")return l(J(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return _}function m(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(s){return t.call(r,s,o++)}),n}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var O=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ee={map:m,forEach:function(e,t,r){m(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return m(e,function(){t++}),t},toArray:function(e){return m(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Activity=B;u.Children=ee;u.Component=p;u.Fragment=D;u.Profiler=z;u.PureComponent=v;u.StrictMode=k;u.Suspense=W;u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return f.H.useMemoCache(e)}};u.cache=function(e){return function(){return e.apply(null,arguments)}};u.cacheSignal=function(){return null};u.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=j({},e.props),o=e.key;if(t!=null)for(s in t.key!==void 0&&(o=""+t.key),t)!b.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(n[s]=t[s]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var _=Array(s),c=0;c<s;c++)_[c]=arguments[c+2];n.children=_}return d(e.type,o,n)};u.createContext=function(e){return e={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:G,_context:e},e};u.createElement=function(e,t,r){var n,o={},s=null;if(t!=null)for(n in t.key!==void 0&&(s=""+t.key),t)b.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var _=arguments.length-2;if(_===1)o.children=r;else if(1<_){for(var c=Array(_),i=0;i<_;i++)c[i]=arguments[i+2];o.children=c}if(e&&e.defaultProps)for(n in _=e.defaultProps,_)o[n]===void 0&&(o[n]=_[n]);return d(e,s,o)};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:K,render:e}};u.isValidElement=S;u.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:F}};u.memo=function(e,t){return{$$typeof:V,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=f.T,r={};f.T=r;try{var n=e(),o=f.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(R,O)}catch(s){O(s)}finally{t!==null&&r.types!==null&&(t.types=r.types),f.T=t}};u.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};u.use=function(e){return f.H.use(e)};u.useActionState=function(e,t,r){return f.H.useActionState(e,t,r)};u.useCallback=function(e,t){return f.H.useCallback(e,t)};u.useContext=function(e){return f.H.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e,t){return f.H.useDeferredValue(e,t)};u.useEffect=function(e,t){return f.H.useEffect(e,t)};u.useEffectEvent=function(e){return f.H.useEffectEvent(e)};u.useId=function(){return f.H.useId()};u.useImperativeHandle=function(e,t,r){return f.H.useImperativeHandle(e,t,r)};u.useInsertionEffect=function(e,t){return f.H.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return f.H.useLayoutEffect(e,t)};u.useMemo=function(e,t){return f.H.useMemo(e,t)};u.useOptimistic=function(e,t){return f.H.useOptimistic(e,t)};u.useReducer=function(e,t,r){return f.H.useReducer(e,t,r)};u.useRef=function(e){return f.H.useRef(e)};u.useState=function(e){return f.H.useState(e)};u.useSyncExternalStore=function(e,t,r){return f.H.useSyncExternalStore(e,t,r)};u.useTransition=function(){return f.H.useTransition()};u.version="19.2.5";N.exports=u;var x=N.exports;const te=Y(x),ne=P({__proto__:null,default:te},[x]),E="__mf_module_cache__";globalThis[E]||={share:{},remote:{}};globalThis[E].share||={};globalThis[E].remote||={};const L=globalThis[E];let a=L.share.react;a===void 0&&(a=ne,L.share.react=a);const re=a,ue=a.__esModule?a.default:a.default??a,{Activity:oe,Children:se,Component:_e,Fragment:fe,Profiler:ie,PureComponent:ce,StrictMode:ae,Suspense:le,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:pe,__COMPILER_RUNTIME:me,cache:Ee,cacheSignal:ye,cloneElement:Re,createContext:Te,createElement:ve,createRef:Ce,forwardRef:de,isValidElement:Se,lazy:he,memo:ge,startTransition:Ae,unstable_useCacheRefresh:Oe,use:Pe,useActionState:Ne,useCallback:we,useContext:Ie,useDebugValue:je,useDeferredValue:He,useEffect:Me,useEffectEvent:be,useId:xe,useImperativeHandle:Le,useInsertionEffect:Ue,useLayoutEffect:Ye,useMemo:$e,useOptimistic:De,useReducer:ke,useRef:ze,useState:Ge,useSyncExternalStore:qe,useTransition:Ke,version:We}=a,Be=P({__proto__:null,Activity:oe,Children:se,Component:_e,Fragment:fe,Profiler:ie,PureComponent:ce,StrictMode:ae,Suspense:le,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:pe,__COMPILER_RUNTIME:me,cache:Ee,cacheSignal:ye,cloneElement:Re,createContext:Te,createElement:ve,createRef:Ce,default:ue,forwardRef:de,isValidElement:Se,lazy:he,memo:ge,startTransition:Ae,unstable_useCacheRefresh:Oe,use:Pe,useActionState:Ne,useCallback:we,useContext:Ie,useDebugValue:je,useDeferredValue:He,useEffect:Me,useEffectEvent:be,useId:xe,useImperativeHandle:Le,useInsertionEffect:Ue,useLayoutEffect:Ye,useMemo:$e,useOptimistic:De,useReducer:ke,useRef:ze,useState:Ge,useSyncExternalStore:qe,useTransition:Ke,version:We},[re]);export{ue as R,ne as _,Be as a,Ge as b,ze as c,Me as d,Te as e,Ie as f,we as g,Ye as h,de as i,Le as j,$e as k,je as l,qe as m};
@@ -0,0 +1 @@
1
+ import{a as _}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js";import{b as r}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";const o=r(_);export{o as r};
@@ -0,0 +1,9 @@
1
+ import{g as u}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";function f(o,m){for(var a=0;a<m.length;a++){const _=m[a];if(typeof _!="string"&&!Array.isArray(_)){for(const r in _)if(r!=="default"&&!(r in o)){const s=Object.getOwnPropertyDescriptor(_,r);s&&Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>_[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}},n={};/**
2
+ * @license React
3
+ * react-jsx-dev-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var d=Symbol.for("react.fragment");n.Fragment=d;n.jsxDEV=void 0;l.exports=n;var i=l.exports;const h=u(i),x=f({__proto__:null,default:h},[i]),t="__mf_module_cache__";globalThis[t]||={share:{},remote:{}};globalThis[t].share||={};globalThis[t].remote||={};const c=globalThis[t];let e=c.share["react/jsx-dev-runtime"];e===void 0&&(e=x,c.share["react/jsx-dev-runtime"]=e);const g=e,p=e.__esModule?e.default:e.default??e,{Fragment:j,jsxDEV:v}=e,y=f({__proto__:null,Fragment:j,default:p,jsxDEV:v},[g]);export{x as _,y as a};
@@ -0,0 +1,9 @@
1
+ function u(e,t){for(var r=0;r<t.length;r++){const _=t[r];if(typeof _!="string"&&!Array.isArray(_)){for(const o in _)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(_,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>_[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function _(){return this instanceof _?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(_){var o=Object.getOwnPropertyDescriptor(e,_);Object.defineProperty(r,_,o.get?o:{enumerable:!0,get:function(){return e[_]}})}),r}var f={exports:{}},a={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var p=Symbol.for("react.transitional.element"),h=Symbol.for("react.fragment");function i(e,t,r){var _=null;if(r!==void 0&&(_=""+r),t.key!==void 0&&(_=""+t.key),"key"in t){r={};for(var o in t)o!=="key"&&(r[o]=t[o])}else r=t;return t=r.ref,{$$typeof:p,type:e,key:_,ref:t!==void 0?t:null,props:r}}a.Fragment=h;a.jsx=i;a.jsxs=i;f.exports=a;var c=f.exports;const j=d(c),x=u({__proto__:null,default:j},[c]),n="__mf_module_cache__";globalThis[n]||={share:{},remote:{}};globalThis[n].share||={};globalThis[n].remote||={};const m=globalThis[n];let s=m.share["react/jsx-runtime"];s===void 0&&(s=x,m.share["react/jsx-runtime"]=s);const g=s,y=s.__esModule?s.default:s.default??s,{Fragment:v,jsx:b,jsxs:E}=s,T=u({__proto__:null,Fragment:v,default:y,jsx:b,jsxs:E},[g]);export{x as _,T as a,O as b,b as c,E as d,v as e,d as g};
@@ -0,0 +1,9 @@
1
+ import{g as v}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";import{r as T}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs_commonjs-proxy.js";function d(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const f in i)if(f!=="default"&&!(f in r)){const o=Object.getOwnPropertyDescriptor(i,f);o&&Object.defineProperty(r,f,o.get?o:{enumerable:!0,get:()=>i[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}},_={};/**
2
+ * @license React
3
+ * react-dom.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var h=T;function m(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var n={d:{f:c,r:function(){throw Error(m(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},p=Symbol.for("react.portal");function E(r,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:i==null?null:""+i,children:r,containerInfo:e,implementation:t}}var s=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n;_.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(m(299));return E(r,e,null,t)};_.flushSync=function(r){var e=s.T,t=n.p;try{if(s.T=null,n.p=2,r)return r()}finally{s.T=e,n.p=t,n.d.f()}};_.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,n.d.C(r,e))};_.prefetchDNS=function(r){typeof r=="string"&&n.d.D(r)};_.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,i=l(t,e.crossOrigin),f=typeof e.integrity=="string"?e.integrity:void 0,o=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?n.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:i,integrity:f,fetchPriority:o}):t==="script"&&n.d.X(r,{crossOrigin:i,integrity:f,fetchPriority:o,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};_.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=l(e.as,e.crossOrigin);n.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&n.d.M(r)};_.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,i=l(t,e.crossOrigin);n.d.L(r,t,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};_.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=l(e.as,e.crossOrigin);n.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else n.d.m(r)};_.requestFormReset=function(r){n.d.r(r)};_.unstable_batchedUpdates=function(r,e){return r(e)};_.useFormState=function(r,e,t){return s.H.useFormState(r,e,t)};_.useFormStatus=function(){return s.H.useHostTransitionStatus()};_.version="19.2.5";function y(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y)}catch(r){console.error(r)}}y(),g.exports=_;var O=g.exports;const R=v(O),N=d({__proto__:null,default:R},[O]),u="__mf_module_cache__";globalThis[u]||={share:{},remote:{}};globalThis[u].share||={};globalThis[u].remote||={};const S=globalThis[u];let a=S.share["react-dom"];a===void 0&&(a=N,S.share["react-dom"]=a);const D=a,A=a.__esModule?a.default:a.default??a,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,createPortal:b,flushSync:C,preconnect:M,prefetchDNS:L,preinit:U,preinitModule:F,preload:H,preloadModule:I,requestFormReset:x,unstable_batchedUpdates:G,useFormState:j,useFormStatus:k,version:Y}=a,w=d({__proto__:null,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,createPortal:b,default:A,flushSync:C,preconnect:M,prefetchDNS:L,preinit:U,preinitModule:F,preload:H,preloadModule:I,requestFormReset:x,unstable_batchedUpdates:G,useFormState:j,useFormStatus:k,version:Y},[D]);export{A as R,N as _,w as a};
@@ -0,0 +1 @@
1
+ import{a as _}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js";import{b as r}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";const m=r(_);export{m as r};