@equinor/fusion-framework-cli 9.1.0 → 9.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
8
+
9
+ - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
10
+ - @equinor/fusion-framework-app@7.1.6
11
+ - @equinor/fusion-framework-react-components-people-provider@1.0.1
12
+ - @equinor/fusion-observable@8.1.2
13
+
3
14
  ## 9.1.0
4
15
 
5
16
  ### Minor Changes
@@ -412,7 +412,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
412
412
  *
413
413
  * @license MIT
414
414
  */function xt(){return xt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xt.apply(this,arguments)}var wt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(wt||(wt={}));const B8="popstate";function vz(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:r,v5Compat:n=!1}=t,i;i=e.map((f,p)=>d(f,typeof f=="string"?null:f.state,p===0?"default":void 0));let o=c(r??i.length-1),a=wt.Pop,s=null;function c(f){return Math.min(Math.max(f,0),i.length-1)}function l(){return i[o]}function d(f,p,m){p===void 0&&(p=null);let w=zs(i?l().pathname:"/",f,p,m);return Ea(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(f)),w}function u(f){return typeof f=="string"?f:Ys(f)}return{get index(){return o},get action(){return a},get location(){return l()},createHref:u,createURL(f){return new URL(u(f),"http://localhost")},encodeLocation(f){let p=typeof f=="string"?Si(f):f;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(f,p){a=wt.Push;let m=d(f,p);o+=1,i.splice(o,i.length,m),n&&s&&s({action:a,location:m,delta:1})},replace(f,p){a=wt.Replace;let m=d(f,p);i[o]=m,n&&s&&s({action:a,location:m,delta:0})},go(f){a=wt.Pop;let p=c(o+f),m=i[p];o=p,s&&s({action:a,location:m,delta:f})},listen(f){return s=f,()=>{s=null}}}}function gz(t){t===void 0&&(t={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return zs("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Ys(i)}return fC(e,r,null,t)}function yz(t){t===void 0&&(t={});function e(i,o){let{pathname:a="/",search:s="",hash:c=""}=Si(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),zs("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let c=i.location.href,l=c.indexOf("#");s=l===-1?c:c.slice(0,l)}return s+"#"+(typeof o=="string"?o:Ys(o))}function n(i,o){Ea(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return fC(e,r,n,t)}function Ne(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ea(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _z(){return Math.random().toString(36).substr(2,8)}function W8(t,e){return{usr:t.state,key:t.key,idx:e}}function zs(t,e,r,n){return r===void 0&&(r=null),xt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Si(e):e,{state:r,key:e&&e.key||n||_z()})}function Ys(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Si(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function fC(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=wt.Pop,c=null,l=d();l==null&&(l=0,a.replaceState(xt({},a.state,{idx:l}),""));function d(){return(a.state||{idx:null}).idx}function u(){s=wt.Pop;let w=d(),v=w==null?null:w-l;l=w,c&&c({action:s,location:m.location,delta:v})}function h(w,v){s=wt.Push;let g=zs(m.location,w,v);r&&r(g,w),l=d()+1;let _=W8(g,l),y=m.createHref(g);try{a.pushState(_,"",y)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(y)}o&&c&&c({action:s,location:m.location,delta:1})}function f(w,v){s=wt.Replace;let g=zs(m.location,w,v);r&&r(g,w),l=d();let _=W8(g,l),y=m.createHref(g);a.replaceState(_,"",y),o&&c&&c({action:s,location:m.location,delta:0})}function p(w){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof w=="string"?w:Ys(w);return Ne(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return s},get location(){return t(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(B8,u),c=w,()=>{i.removeEventListener(B8,u),c=null}},createHref(w){return e(i,w)},createURL:p,encodeLocation(w){let v=p(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:f,go(w){return a.go(w)}};return m}var Ft;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ft||(Ft={}));const bz=new Set(["lazy","caseSensitive","path","id","index","children"]);function wz(t){return t.index===!0}function yg(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,o)=>{let a=[...r,o],s=typeof i.id=="string"?i.id:a.join("-");if(Ne(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ne(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),wz(i)){let c=xt({},i,e(i),{id:s});return n[s]=c,c}else{let c=xt({},i,e(i),{id:s,children:void 0});return n[s]=c,i.children&&(c.children=yg(i.children,e,a,n)),c}})}function Wc(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Si(e):e,i=uh(n.pathname||"/",r);if(i==null)return null;let o=pC(t);xz(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=Pz(o[s],Hz(i));return a}function pC(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Ne(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Rs([n,c.relativePath]),d=r.concat(c);o.children&&o.children.length>0&&(Ne(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),pC(o.children,e,d,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:Iz(l,o.index),routesMeta:d})};return t.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of mC(o.path))i(o,a,c)}),e}function mC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=mC(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>t.startsWith("/")&&c===""?"/":c)}function xz(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Tz(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Ez=/^:\w+$/,Cz=3,Sz=2,kz=1,Az=10,Rz=-2,q8=t=>t==="*";function Iz(t,e){let r=t.split("/"),n=r.length;return r.some(q8)&&(n+=Rz),e&&(n+=Sz),r.filter(i=>!q8(i)).reduce((i,o)=>i+(Ez.test(o)?Cz:o===""?kz:Az),n)}function Tz(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function Pz(t,e){let{routesMeta:r}=t,n={},i="/",o=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=i==="/"?e:e.slice(i.length)||"/",d=Mz({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!d)return null;Object.assign(n,d.params);let u=s.route;o.push({params:n,pathname:Rs([i,d.pathname]),pathnameBase:Nz(Rs([i,d.pathnameBase])),route:u}),d.pathnameBase!=="/"&&(i=Rs([i,d.pathnameBase]))}return o}function Mz(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=Zz(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((l,d,u)=>{if(d==="*"){let h=s[u]||"";a=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return l[d]=Oz(s[u]||"",d),l},{}),pathname:o,pathnameBase:a,pattern:t}}function Zz(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Ea(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function Hz(t){try{return decodeURI(t)}catch(e){return Ea(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Oz(t,e){try{return decodeURIComponent(t)}catch(r){return Ea(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function uh(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function Lz(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Si(t):t;return{pathname:r?r.startsWith("/")?r:$z(r,e):e,search:Vz(n),hash:Fz(i)}}function $z(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function am(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Dz(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Si(t):(i=xt({},t),Ne(!i.pathname||!i.pathname.includes("?"),am("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),am("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),am("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=r;else{let u=e.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),u-=1;i.pathname=h.join("/")}s=u>=0?e[u]:"/"}let c=Lz(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const Rs=t=>t.join("/").replace(/\/\/+/g,"/"),Nz=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Vz=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Fz=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class gC{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function yC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const _C=["post","put","patch","delete"],zz=new Set(_C),jz=["get",..._C],Uz=new Set(jz),Bz=new Set([301,302,303,307,308]),Wz=new Set([307,308]),sm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qz={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gz=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function Kz(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Ne(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let M=t.detectErrorBoundary;i=H=>({hasErrorBoundary:M(H)})}else i=Gz;let o={},a=yg(t.routes,i,void 0,o),s,c=t.basename||"/",l=xt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),d=null,u=new Set,h=null,f=null,p=null,m=t.hydrationData!=null,w=Wc(a,t.history.location,c),v=null;if(w==null){let M=Nn(404,{pathname:t.history.location.pathname}),{matches:H,route:j}=t_(a);w=H,v={[j.id]:M}}let g=!w.some(M=>M.route.lazy)&&(!w.some(M=>M.route.loader)||t.hydrationData!=null),_,y={historyAction:t.history.action,location:t.history.location,matches:w,initialized:g,navigation:sm,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=wt.Pop,S=!1,A,F=!1,J=!1,Y=[],K=[],ne=new Map,P=0,T=-1,z=new Map,V=new Set,W=new Map,R=new Map,$=new Map,U=!1;function ee(){return d=t.history.listen(M=>{let{action:H,location:j,delta:ce}=M;if(U){U=!1;return}Ea($.size===0||ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Se=C3({currentLocation:y.location,nextLocation:j,historyAction:H});if(Se&&ce!=null){U=!0,t.history.go(ce*-1),Eh(Se,{state:"blocked",location:j,proceed(){Eh(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),t.history.go(ce)},reset(){let ve=new Map(y.blockers);ve.set(Se,vd),fe({blockers:ve})}});return}return Hn(H,j)}),y.initialized||Hn(wt.Pop,y.location),_}function he(){d&&d(),u.clear(),A&&A.abort(),y.fetchers.forEach((M,H)=>$p(H)),y.blockers.forEach((M,H)=>E3(H))}function dt(M){return u.add(M),()=>u.delete(M)}function fe(M){y=xt({},y,M),u.forEach(H=>H(y))}function qt(M,H){var j,ce;let Se=y.actionData!=null&&y.navigation.formMethod!=null&&hi(y.navigation.formMethod)&&y.navigation.state==="loading"&&((j=M.state)==null?void 0:j._isRedirect)!==!0,ve;H.actionData?Object.keys(H.actionData).length>0?ve=H.actionData:ve=null:Se?ve=y.actionData:ve=null;let be=H.loaderData?e_(y.loaderData,H.loaderData,H.matches||[],H.errors):y.loaderData,pe=y.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((rt,mr)=>pe.set(mr,vd)));let ue=S===!0||y.navigation.formMethod!=null&&hi(y.navigation.formMethod)&&((ce=M.state)==null?void 0:ce._isRedirect)!==!0;s&&(a=s,s=void 0),F||C===wt.Pop||(C===wt.Push?t.history.push(M,M.state):C===wt.Replace&&t.history.replace(M,M.state)),fe(xt({},H,{actionData:ve,loaderData:be,historyAction:C,location:M,initialized:!0,navigation:sm,revalidation:"idle",restoreScrollPosition:k3(M,H.matches||y.matches),preventScrollReset:ue,blockers:pe})),C=wt.Pop,S=!1,F=!1,J=!1,Y=[],K=[]}async function pr(M,H){if(typeof M=="number"){t.history.go(M);return}let j=_g(y.location,y.matches,c,l.v7_prependBasename,M,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ce,submission:Se,error:ve}=G8(l.v7_normalizeFormMethod,!1,j,H),be=y.location,pe=zs(y.location,ce,H&&H.state);pe=xt({},pe,t.history.encodeLocation(pe));let ue=H&&H.replace!=null?H.replace:void 0,rt=wt.Push;ue===!0?rt=wt.Replace:ue===!1||Se!=null&&hi(Se.formMethod)&&Se.formAction===y.location.pathname+y.location.search&&(rt=wt.Replace);let mr=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,Je=C3({currentLocation:be,nextLocation:pe,historyAction:rt});if(Je){Eh(Je,{state:"blocked",location:pe,proceed(){Eh(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),pr(M,H)},reset(){let Dt=new Map(y.blockers);Dt.set(Je,vd),fe({blockers:Dt})}});return}return await Hn(rt,pe,{submission:Se,pendingError:ve,preventScrollReset:mr,replace:H&&H.replace})}function nn(){if(Lp(),fe({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){Hn(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}Hn(C||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function Hn(M,H,j){A&&A.abort(),A=null,C=M,F=(j&&j.startUninterruptedRevalidation)===!0,Yk(y.location,y.matches),S=(j&&j.preventScrollReset)===!0;let ce=s||a,Se=j&&j.overrideNavigation,ve=Wc(ce,H,c);if(!ve){let Dt=Nn(404,{pathname:H.pathname}),{matches:or,route:Na}=t_(ce);Dp(),qt(H,{matches:or,loaderData:{},errors:{[Na.id]:Dt}});return}if(y.initialized&&!J&&ej(y.location,H)&&!(j&&j.submission&&hi(j.submission.formMethod))){qt(H,{matches:ve});return}A=new AbortController;let be=yd(t.history,H,A.signal,j&&j.submission),pe,ue;if(j&&j.pendingError)ue={[qc(ve).route.id]:j.pendingError};else if(j&&j.submission&&hi(j.submission.formMethod)){let Dt=await tc(be,H,j.submission,ve,{replace:j.replace});if(Dt.shortCircuited)return;pe=Dt.pendingActionData,ue=Dt.pendingActionError,Se=r1(H,j.submission),be=new Request(be.url,{signal:be.signal})}let{shortCircuited:rt,loaderData:mr,errors:Je}=await Ri(be,H,ve,Se,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,pe,ue);rt||(A=null,qt(H,xt({matches:ve},pe?{actionData:pe}:{},{loaderData:mr,errors:Je})))}async function tc(M,H,j,ce,Se){Se===void 0&&(Se={}),Lp();let ve=oj(H,j);fe({navigation:ve});let be,pe=wg(ce,H);if(!pe.route.action&&!pe.route.lazy)be={type:Ft.error,error:Nn(405,{method:M.method,pathname:H.pathname,routeId:pe.route.id})};else if(be=await gd("action",M,pe,ce,o,i,c),M.signal.aborted)return{shortCircuited:!0};if(ol(be)){let ue;return Se&&Se.replace!=null?ue=Se.replace:ue=be.location===y.location.pathname+y.location.search,await Jl(y,be,{submission:j,replace:ue}),{shortCircuited:!0}}if(hu(be)){let ue=qc(ce,pe.route.id);return(Se&&Se.replace)!==!0&&(C=wt.Push),{pendingActionData:{},pendingActionError:{[ue.route.id]:be.error}}}if(ys(be))throw Nn(400,{type:"defer-action"});return{pendingActionData:{[pe.route.id]:be.data}}}async function Ri(M,H,j,ce,Se,ve,be,pe,ue){let rt=ce||r1(H,Se),mr=Se||ve||i_(rt),Je=s||a,[Dt,or]=K8(t.history,y,j,mr,H,J,Y,K,W,V,Je,c,pe,ue);if(Dp(et=>!(j&&j.some(ei=>ei.route.id===et))||Dt&&Dt.some(ei=>ei.route.id===et)),T=++P,Dt.length===0&&or.length===0){let et=w3();return qt(H,xt({matches:j,loaderData:{},errors:ue||null},pe?{actionData:pe}:{},et?{fetchers:new Map(y.fetchers)}:{})),{shortCircuited:!0}}if(!F){or.forEach(ei=>{let jo=y.fetchers.get(ei.key),jp=_d(void 0,jo?jo.data:void 0);y.fetchers.set(ei.key,jp)});let et=pe||y.actionData;fe(xt({navigation:rt},et?Object.keys(et).length===0?{actionData:null}:{actionData:et}:{},or.length>0?{fetchers:new Map(y.fetchers)}:{}))}or.forEach(et=>{ne.has(et.key)&&zo(et.key),et.controller&&ne.set(et.key,et.controller)});let Na=()=>or.forEach(et=>zo(et.key));A&&A.signal.addEventListener("abort",Na);let{results:Va,loaderResults:ed,fetcherResults:Np}=await _3(y.matches,j,Dt,or,M);if(M.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Na),or.forEach(et=>ne.delete(et.key));let to=r_(Va);if(to){if(to.idx>=Dt.length){let et=or[to.idx-Dt.length].key;V.add(et)}return await Jl(y,to.result,{replace:be}),{shortCircuited:!0}}let{loaderData:ro,errors:Ch}=J8(y,j,Dt,ed,ue,or,Np,R);R.forEach((et,ei)=>{et.subscribe(jo=>{(jo||et.done)&&R.delete(ei)})});let Vp=w3(),Fp=x3(T),zp=Vp||Fp||or.length>0;return xt({loaderData:ro,errors:Ch},zp?{fetchers:new Map(y.fetchers)}:{})}function y3(M){return y.fetchers.get(M)||qz}function Bk(M,H,j,ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(M)&&zo(M);let Se=s||a,ve=_g(y.location,y.matches,c,l.v7_prependBasename,j,H,ce==null?void 0:ce.relative),be=Wc(Se,ve,c);if(!be){xh(M,H,Nn(404,{pathname:ve}));return}let{path:pe,submission:ue,error:rt}=G8(l.v7_normalizeFormMethod,!0,ve,ce);if(rt){xh(M,H,rt);return}let mr=wg(be,pe);if(S=(ce&&ce.preventScrollReset)===!0,ue&&hi(ue.formMethod)){Wk(M,H,pe,mr,be,ue);return}W.set(M,{routeId:H,path:pe}),qk(M,H,pe,mr,be,ue)}async function Wk(M,H,j,ce,Se,ve){if(Lp(),W.delete(M),!ce.route.action&&!ce.route.lazy){let tr=Nn(405,{method:ve.formMethod,pathname:j,routeId:H});xh(M,H,tr);return}let be=y.fetchers.get(M),pe=aj(ve,be);y.fetchers.set(M,pe),fe({fetchers:new Map(y.fetchers)});let ue=new AbortController,rt=yd(t.history,j,ue.signal,ve);ne.set(M,ue);let mr=P,Je=await gd("action",rt,ce,Se,o,i,c);if(rt.signal.aborted){ne.get(M)===ue&&ne.delete(M);return}if(ol(Je))if(ne.delete(M),T>mr){let tr=kc(void 0);y.fetchers.set(M,tr),fe({fetchers:new Map(y.fetchers)});return}else{V.add(M);let tr=_d(ve);return y.fetchers.set(M,tr),fe({fetchers:new Map(y.fetchers)}),Jl(y,Je,{submission:ve,isFetchActionRedirect:!0})}if(hu(Je)){xh(M,H,Je.error);return}if(ys(Je))throw Nn(400,{type:"defer-action"});let Dt=y.navigation.location||y.location,or=yd(t.history,Dt,ue.signal),Na=s||a,Va=y.navigation.state!=="idle"?Wc(Na,y.navigation.location,c):y.matches;Ne(Va,"Didn't find any matches after fetcher action");let ed=++P;z.set(M,ed);let Np=_d(ve,Je.data);y.fetchers.set(M,Np);let[to,ro]=K8(t.history,y,Va,ve,Dt,J,Y,K,W,V,Na,c,{[ce.route.id]:Je.data},void 0);ro.filter(tr=>tr.key!==M).forEach(tr=>{let td=tr.key,A3=y.fetchers.get(td),Qk=_d(void 0,A3?A3.data:void 0);y.fetchers.set(td,Qk),ne.has(td)&&zo(td),tr.controller&&ne.set(td,tr.controller)}),fe({fetchers:new Map(y.fetchers)});let Ch=()=>ro.forEach(tr=>zo(tr.key));ue.signal.addEventListener("abort",Ch);let{results:Vp,loaderResults:Fp,fetcherResults:zp}=await _3(y.matches,Va,to,ro,or);if(ue.signal.aborted)return;ue.signal.removeEventListener("abort",Ch),z.delete(M),ne.delete(M),ro.forEach(tr=>ne.delete(tr.key));let et=r_(Vp);if(et){if(et.idx>=to.length){let tr=ro[et.idx-to.length].key;V.add(tr)}return Jl(y,et.result)}let{loaderData:ei,errors:jo}=J8(y,y.matches,to,Fp,void 0,ro,zp,R);if(y.fetchers.has(M)){let tr=kc(Je.data);y.fetchers.set(M,tr)}let jp=x3(ed);y.navigation.state==="loading"&&ed>T?(Ne(C,"Expected pending action"),A&&A.abort(),qt(y.navigation.location,{matches:Va,loaderData:ei,errors:jo,fetchers:new Map(y.fetchers)})):(fe(xt({errors:jo,loaderData:e_(y.loaderData,ei,Va,jo)},jp||ro.length>0?{fetchers:new Map(y.fetchers)}:{})),J=!1)}async function qk(M,H,j,ce,Se,ve){let be=y.fetchers.get(M),pe=_d(ve,be?be.data:void 0);y.fetchers.set(M,pe),fe({fetchers:new Map(y.fetchers)});let ue=new AbortController,rt=yd(t.history,j,ue.signal);ne.set(M,ue);let mr=P,Je=await gd("loader",rt,ce,Se,o,i,c);if(ys(Je)&&(Je=await EC(Je,rt.signal,!0)||Je),ne.get(M)===ue&&ne.delete(M),rt.signal.aborted)return;if(ol(Je))if(T>mr){let or=kc(void 0);y.fetchers.set(M,or),fe({fetchers:new Map(y.fetchers)});return}else{V.add(M),await Jl(y,Je);return}if(hu(Je)){let or=qc(y.matches,H);y.fetchers.delete(M),fe({fetchers:new Map(y.fetchers),errors:{[or.route.id]:Je.error}});return}Ne(!ys(Je),"Unhandled fetcher deferred data");let Dt=kc(Je.data);y.fetchers.set(M,Dt),fe({fetchers:new Map(y.fetchers)})}async function Jl(M,H,j){let{submission:ce,replace:Se,isFetchActionRedirect:ve}=j===void 0?{}:j;H.revalidate&&(J=!0);let be=zs(M.location,H.location,xt({_isRedirect:!0},ve?{_isFetchActionRedirect:!0}:{}));if(Ne(be,"Expected a location on the redirect navigation"),r){let rt=!1;if(H.reloadDocument)rt=!0;else if(bC.test(H.location)){const mr=t.history.createURL(H.location);rt=mr.origin!==e.location.origin||uh(mr.pathname,c)==null}if(rt){Se?e.location.replace(H.location):e.location.assign(H.location);return}}A=null;let pe=Se===!0?wt.Replace:wt.Push,ue=ce||i_(M.navigation);if(Wz.has(H.status)&&ue&&hi(ue.formMethod))await Hn(pe,be,{submission:xt({},ue,{formAction:H.location}),preventScrollReset:S});else if(ve)await Hn(pe,be,{overrideNavigation:r1(be),fetcherSubmission:ue,preventScrollReset:S});else{let rt=r1(be,ue);await Hn(pe,be,{overrideNavigation:rt,preventScrollReset:S})}}async function _3(M,H,j,ce,Se){let ve=await Promise.all([...j.map(ue=>gd("loader",Se,ue,H,o,i,c)),...ce.map(ue=>ue.matches&&ue.match&&ue.controller?gd("loader",yd(t.history,ue.path,ue.controller.signal),ue.match,ue.matches,o,i,c):{type:Ft.error,error:Nn(404,{pathname:ue.path})})]),be=ve.slice(0,j.length),pe=ve.slice(j.length);return await Promise.all([n_(M,j,be,be.map(()=>Se.signal),!1,y.loaderData),n_(M,ce.map(ue=>ue.match),pe,ce.map(ue=>ue.controller?ue.controller.signal:null),!0)]),{results:ve,loaderResults:be,fetcherResults:pe}}function Lp(){J=!0,Y.push(...Dp()),W.forEach((M,H)=>{ne.has(H)&&(K.push(H),zo(H))})}function xh(M,H,j){let ce=qc(y.matches,H);$p(M),fe({errors:{[ce.route.id]:j},fetchers:new Map(y.fetchers)})}function $p(M){let H=y.fetchers.get(M);ne.has(M)&&!(H&&H.state==="loading"&&z.has(M))&&zo(M),W.delete(M),z.delete(M),V.delete(M),y.fetchers.delete(M)}function zo(M){let H=ne.get(M);Ne(H,"Expected fetch controller: "+M),H.abort(),ne.delete(M)}function b3(M){for(let H of M){let j=y3(H),ce=kc(j.data);y.fetchers.set(H,ce)}}function w3(){let M=[],H=!1;for(let j of V){let ce=y.fetchers.get(j);Ne(ce,"Expected fetcher: "+j),ce.state==="loading"&&(V.delete(j),M.push(j),H=!0)}return b3(M),H}function x3(M){let H=[];for(let[j,ce]of z)if(ce<M){let Se=y.fetchers.get(j);Ne(Se,"Expected fetcher: "+j),Se.state==="loading"&&(zo(j),z.delete(j),H.push(j))}return b3(H),H.length>0}function Gk(M,H){let j=y.blockers.get(M)||vd;return $.get(M)!==H&&$.set(M,H),j}function E3(M){y.blockers.delete(M),$.delete(M)}function Eh(M,H){let j=y.blockers.get(M)||vd;Ne(j.state==="unblocked"&&H.state==="blocked"||j.state==="blocked"&&H.state==="blocked"||j.state==="blocked"&&H.state==="proceeding"||j.state==="blocked"&&H.state==="unblocked"||j.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+j.state+" -> "+H.state);let ce=new Map(y.blockers);ce.set(M,H),fe({blockers:ce})}function C3(M){let{currentLocation:H,nextLocation:j,historyAction:ce}=M;if($.size===0)return;$.size>1&&Ea(!1,"A router only supports one blocker at a time");let Se=Array.from($.entries()),[ve,be]=Se[Se.length-1],pe=y.blockers.get(ve);if(!(pe&&pe.state==="proceeding")&&be({currentLocation:H,nextLocation:j,historyAction:ce}))return ve}function Dp(M){let H=[];return R.forEach((j,ce)=>{(!M||M(ce))&&(j.cancel(),H.push(ce),R.delete(ce))}),H}function Kk(M,H,j){if(h=M,p=H,f=j||null,!m&&y.navigation===sm){m=!0;let ce=k3(y.location,y.matches);ce!=null&&fe({restoreScrollPosition:ce})}return()=>{h=null,p=null,f=null}}function S3(M,H){return f&&f(M,H.map(ce=>ij(ce,y.loaderData)))||M.key}function Yk(M,H){if(h&&p){let j=S3(M,H);h[j]=p()}}function k3(M,H){if(h){let j=S3(M,H),ce=h[j];if(typeof ce=="number")return ce}return null}function Xk(M){o={},s=yg(M,i,void 0,o)}return _={get basename(){return c},get state(){return y},get routes(){return a},initialize:ee,subscribe:dt,enableScrollRestoration:Kk,navigate:pr,fetch:Bk,revalidate:nn,createHref:M=>t.history.createHref(M),encodeLocation:M=>t.history.encodeLocation(M),getFetcher:y3,deleteFetcher:$p,dispose:he,getBlocker:Gk,deleteBlocker:E3,_internalFetchControllers:ne,_internalActiveDeferreds:R,_internalSetRoutes:Xk},_}function Yz(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function _g(t,e,r,n,i,o,a){let s,c;if(o!=null&&a!=="path"){s=[];for(let d of e)if(s.push(d),d.route.id===o){c=d;break}}else s=e,c=e[e.length-1];let l=Dz(i||".",vC(s).map(d=>d.pathnameBase),uh(t.pathname,r)||t.pathname,a==="path");return i==null&&(l.search=t.search,l.hash=t.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!T5(l.search)&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(l.pathname=l.pathname==="/"?r:Rs([r,l.pathname])),Ys(l)}function G8(t,e,r,n){if(!n||!Yz(n))return{path:r};if(n.formMethod&&!nj(n.formMethod))return{path:r,error:Nn(405,{method:n.formMethod})};let i=()=>({path:r,error:Nn(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=t?o.toUpperCase():o.toLowerCase(),s=xC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!hi(a))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((f,p)=>{let[m,w]=p;return""+f+m+"="+w+`
415
- `},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!hi(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let c,l;if(n.formData)c=bg(n.formData),l=n.formData;else if(n.body instanceof FormData)c=bg(n.body),l=n.body;else if(n.body instanceof URLSearchParams)c=n.body,l=Q8(c);else if(n.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(n.body),l=Q8(c)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(hi(d.formMethod))return{path:r,submission:d};let u=Si(r);return e&&u.search&&T5(u.search)&&c.append("index",""),u.search="?"+c,{path:Ys(u),submission:d}}function Xz(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function K8(t,e,r,n,i,o,a,s,c,l,d,u,h,f){let p=f?Object.values(f)[0]:h?Object.values(h)[0]:void 0,m=t.createURL(e.location),w=t.createURL(i),v=f?Object.keys(f)[0]:void 0,_=Xz(r,v).filter((C,S)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(Qz(e.loaderData,e.matches[S],C)||a.some(J=>J===C.route.id))return!0;let A=e.matches[S],F=C;return Y8(C,xt({currentUrl:m,currentParams:A.params,nextUrl:w,nextParams:F.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||wC(A,F)}))}),y=[];return c.forEach((C,S)=>{if(!r.some(K=>K.route.id===C.routeId))return;let A=Wc(d,C.path,u);if(!A){y.push({key:S,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let F=e.fetchers.get(S),J=wg(A,C.path),Y=!1;l.has(S)?Y=!1:s.includes(S)?Y=!0:F&&F.state!=="idle"&&F.data===void 0?Y=o:Y=Y8(J,xt({currentUrl:m,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})),Y&&y.push({key:S,routeId:C.routeId,path:C.path,matches:A,match:J,controller:new AbortController})}),[_,y]}function Qz(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function wC(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Y8(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function X8(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Ne(i,"No route found in manifest");let o={};for(let a in n){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Ea(!c,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!bz.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,xt({},e(i),{lazy:void 0}))}async function gd(t,e,r,n,i,o,a,s){s===void 0&&(s={});let c,l,d,u=p=>{let m,w=new Promise((v,g)=>m=g);return d=()=>m(),e.signal.addEventListener("abort",d),Promise.race([p({request:e,params:r.params,context:s.requestContext}),w])};try{let p=r.route[t];if(r.route.lazy)if(p)l=(await Promise.all([u(p),X8(r.route,o,i)]))[0];else if(await X8(r.route,o,i),p=r.route[t],p)l=await u(p);else if(t==="action"){let m=new URL(e.url),w=m.pathname+m.search;throw Nn(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:Ft.data,data:void 0};else if(p)l=await u(p);else{let m=new URL(e.url),w=m.pathname+m.search;throw Nn(404,{pathname:w})}Ne(l!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(p){c=Ft.error,l=p}finally{d&&e.signal.removeEventListener("abort",d)}if(rj(l)){let p=l.status;if(Bz.has(p)){let v=l.headers.get("Location");if(Ne(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!bC.test(v))v=_g(new URL(e.url),n.slice(0,n.indexOf(r)+1),a,!0,v);else if(!s.isStaticRequest){let g=new URL(e.url),_=v.startsWith("//")?new URL(g.protocol+v):new URL(v),y=uh(_.pathname,a)!=null;_.origin===g.origin&&y&&(v=_.pathname+_.search+_.hash)}if(s.isStaticRequest)throw l.headers.set("Location",v),l;return{type:Ft.redirect,status:p,location:v,revalidate:l.headers.get("X-Remix-Revalidate")!==null,reloadDocument:l.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Ft.error?Ft.error:Ft.data,response:l};let m,w=l.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?m=await l.json():m=await l.text(),c===Ft.error?{type:c,error:new gC(p,l.statusText,m),headers:l.headers}:{type:Ft.data,data:m,statusCode:l.status,headers:l.headers}}if(c===Ft.error)return{type:c,error:l};if(tj(l)){var h,f;return{type:Ft.deferred,deferredData:l,statusCode:(h=l.init)==null?void 0:h.status,headers:((f=l.init)==null?void 0:f.headers)&&new Headers(l.init.headers)}}return{type:Ft.data,data:l}}function yd(t,e,r,n){let i=t.createURL(xC(e)).toString(),o={signal:r};if(n&&hi(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=bg(n.formData):o.body=n.formData}return new Request(i,o)}function bg(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function Q8(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function Jz(t,e,r,n,i){let o={},a=null,s,c=!1,l={};return r.forEach((d,u)=>{let h=e[u].route.id;if(Ne(!ol(d),"Cannot handle redirect results in processLoaderData"),hu(d)){let f=qc(t,h),p=d.error;n&&(p=Object.values(n)[0],n=void 0),a=a||{},a[f.route.id]==null&&(a[f.route.id]=p),o[h]=void 0,c||(c=!0,s=yC(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else ys(d)?(i.set(h,d.deferredData),o[h]=d.deferredData.data):o[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers)}),n&&(a=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:l}}function J8(t,e,r,n,i,o,a,s){let{loaderData:c,errors:l}=Jz(e,r,n,i,s);for(let d=0;d<o.length;d++){let{key:u,match:h,controller:f}=o[d];Ne(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let p=a[d];if(!(f&&f.signal.aborted))if(hu(p)){let m=qc(t.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=xt({},l,{[m.route.id]:p.error})),t.fetchers.delete(u)}else if(ol(p))Ne(!1,"Unhandled fetcher revalidation redirect");else if(ys(p))Ne(!1,"Unhandled fetcher deferred data");else{let m=kc(p.data);t.fetchers.set(u,m)}}return{loaderData:c,errors:l}}function e_(t,e,r,n){let i=xt({},e);for(let o of r){let a=o.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):t[a]!==void 0&&o.route.loader&&(i[a]=t[a]),n&&n.hasOwnProperty(a))break}return i}function qc(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function t_(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Nn(t,e){let{pathname:r,routeId:n,method:i,type:o}=e===void 0?{}:e,a="Unknown Server Error",s="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):t===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):t===404?(a="Not Found",s='No route matches URL "'+r+'"'):t===405&&(a="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new gC(t||500,a,new Error(s),!0)}function r_(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(ol(r))return{result:r,idx:e}}}function xC(t){let e=typeof t=="string"?Si(t):t;return Ys(xt({},e,{hash:""}))}function ej(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function ys(t){return t.type===Ft.deferred}function hu(t){return t.type===Ft.error}function ol(t){return(t&&t.type)===Ft.redirect}function tj(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function rj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function nj(t){return Uz.has(t.toLowerCase())}function hi(t){return zz.has(t.toLowerCase())}async function n_(t,e,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=e[a];if(!c)continue;let l=t.find(u=>u.route.id===c.route.id),d=l!=null&&!wC(l,c)&&(o&&o[c.route.id])!==void 0;if(ys(s)&&(i||d)){let u=n[a];Ne(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await EC(s,u,i).then(h=>{h&&(r[a]=h||r[a])})}}}async function EC(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ft.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Ft.error,error:i}}return{type:Ft.data,data:t.deferredData.data}}}function T5(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function ij(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function wg(t,e){let r=typeof e=="string"?Si(e).search:e.search;if(t[t.length-1].route.index&&T5(r||""))return t[t.length-1];let n=vC(t);return n[n.length-1]}function i_(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:o,json:a}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function r1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function oj(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function _d(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function aj(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function kc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}const sj=t=>{switch(t){case"hash":return yz({v5Compat:!0});case"memory":return vz({v5Compat:!0});case"browser":default:return gz({v5Compat:!0})}};var bt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},n1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},$n,of,xg,af,Zi,ns;class cj extends Fe{get basename(){return bt(this,of,"f")}get origin(){return bt(this,xg,"f")}get state(){return bt(this,Zi,"f").asObservable()}get value(){return bt(this,Zi,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(i=>bt(this,Zi,"f").subscribe(i)),$n.set(this,void 0),of.set(this,void 0),xg.set(this,window.location.origin),af.set(this,new jr),Zi.set(this,void 0),ns.set(this,void 0);const{basename:r,history:n}=e;n1(this,ns,e.logger||console,"f"),n1(this,of,r,"f"),n1(this,$n,n,"f"),n1(this,Zi,new Ml({action:bt(this,$n,"f").action,location:bt(this,$n,"f").location,delta:null}),"f"),bt(this,af,"f").add(bt(this,$n,"f").listen(i=>{i.location.key!==bt(this,Zi,"f").value.location.key&&(bt(this,ns,"f").debug("Navigator::constructor","history changed",i,bt(this,Zi,"f").value),bt(this,Zi,"f").next(i))}))}encodeLocation(e){return bt(this,$n,"f").encodeLocation(e)}listen(e){bt(this,ns,"f").debug("Navigator::listen",e);const r=bt(this,Zi,"f").pipe(kZ(1)).subscribe(n=>{bt(this,ns,"f").debug("Navigator::listen[onchange]"),e(n)});return()=>(bt(this,ns,"f").debug("Navigator::listen[unsubscribe]"),r.unsubscribe())}createHref(e){return bt(this,$n,"f").createHref(e)}go(e){bt(this,$n,"f").go(e)}push(e,r){return bt(this,$n,"f").push(e,r)}replace(e,r){return bt(this,$n,"f").replace(e,r)}createURL(e){return bt(this,$n,"f").createURL(e)}dispose(){bt(this,af,"f").unsubscribe()}}$n=new WeakMap,of=new WeakMap,xg=new WeakMap,af=new WeakMap,Zi=new WeakMap,ns=new WeakMap;var Ln=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},o_=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},si,is;const a_=t=>t.replace(/\/+/g,"/");class lj extends Lx{get state$(){return Ln(this,si,"f").pipe(Ue(e=>Ln(this,is,"f")?e.location.pathname.startsWith(Ln(this,is,"f")):!0),ge(({action:e,location:r})=>({action:e,location:this._localizePath(r)})))}get navigator(){return Ln(this,si,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),si.set(this,void 0),is.set(this,void 0);const{basename:r,history:n}=e.config;if(o_(this,is,r,"f"),!n)throw Error("no history provided!");o_(this,si,new cj({basename:r,history:n}),"f"),this._addTeardown(()=>Ln(this,si,"f").dispose())}createRouter(e){const r=Ln(this,si,"f");console.debug("NavigationProvider::createRouter",e);const n=Kz({basename:r.basename,history:r,routes:e,future:{v7_prependBasename:!0}});return n.initialize(),n}createHref(e){return Ln(this,si,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Ln(this,si,"f").createURL(this._createToPath(e??this.path))}push(e,r){return Ln(this,si,"f").push(this._createToPath(e),r)}replace(e,r){return Ln(this,si,"f").replace(this._createToPath(e),r)}_localizePath(e){var r;const{pathname:n,search:i,hash:o}=e;return{pathname:a_(n.replace((r=Ln(this,is,"f"))!==null&&r!==void 0?r:"","")),search:i,hash:o}}_createToPath(e){const{pathname:r,search:n,hash:i}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:a_([Ln(this,is,"f"),r==="/"?void 0:r].filter(o=>!!o).join("/")),search:n,hash:i}}}si=new WeakMap,is=new WeakMap;const s_="3.0.5",dj="navigation",uj={version:new ou(s_),name:dj,configure:t=>{const e=new mz;return t&&(e.history=t.navigation.navigator),e},initialize:({config:t})=>{var e;return(e=t.history)!==null&&e!==void 0||(t.history=sj()),new lj({version:s_,config:t})},dispose({instance:t}){t.dispose()}},hj=(t,e)=>{const r=typeof e=="string"?{configure:n=>{n.basename=e}}:e;t.addConfig(Object.assign({module:uj},r))},fj=async t=>{t.logger.level=0,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),YF(t),hj(t),pD(t),pz(t,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new Yx(0)),console.debug("📒 subscribing to all events")})},pj="bookmarkId",mj=t=>{const{event:e,context:r,navigation:{navigator:n}}=pn().modules;b.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",o=>{var a;const{appKey:s,context:c}=o.detail,l=t.resolveAppPath(s);if(n.location.pathname!==l){const{hash:d,search:u}=n.location,h={pathname:l,search:vj(u),hash:d};n.push(h)}c&&((a=r.currentContext)===null||a===void 0?void 0:a.id)!==c.id&&r.setCurrentContextByIdAsync(c.id)}),[t,r,e,n])};function vj(t){const e=new URLSearchParams(t);return e.delete(pj),`?${e.toString()}`}const gj=()=>{const t=pn().modules.event,[e,r]=b.useState(!1);return b.useEffect(()=>{const n=t.addEventListener("onBookmarkChanged",()=>{r(!1)}),i=t.addEventListener("onAddCreator",()=>{r(!0)});return()=>{n(),i()}},[t]),e};/**
415
+ `},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!hi(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let c,l;if(n.formData)c=bg(n.formData),l=n.formData;else if(n.body instanceof FormData)c=bg(n.body),l=n.body;else if(n.body instanceof URLSearchParams)c=n.body,l=Q8(c);else if(n.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(n.body),l=Q8(c)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(hi(d.formMethod))return{path:r,submission:d};let u=Si(r);return e&&u.search&&T5(u.search)&&c.append("index",""),u.search="?"+c,{path:Ys(u),submission:d}}function Xz(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function K8(t,e,r,n,i,o,a,s,c,l,d,u,h,f){let p=f?Object.values(f)[0]:h?Object.values(h)[0]:void 0,m=t.createURL(e.location),w=t.createURL(i),v=f?Object.keys(f)[0]:void 0,_=Xz(r,v).filter((C,S)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(Qz(e.loaderData,e.matches[S],C)||a.some(J=>J===C.route.id))return!0;let A=e.matches[S],F=C;return Y8(C,xt({currentUrl:m,currentParams:A.params,nextUrl:w,nextParams:F.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||wC(A,F)}))}),y=[];return c.forEach((C,S)=>{if(!r.some(K=>K.route.id===C.routeId))return;let A=Wc(d,C.path,u);if(!A){y.push({key:S,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let F=e.fetchers.get(S),J=wg(A,C.path),Y=!1;l.has(S)?Y=!1:s.includes(S)?Y=!0:F&&F.state!=="idle"&&F.data===void 0?Y=o:Y=Y8(J,xt({currentUrl:m,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})),Y&&y.push({key:S,routeId:C.routeId,path:C.path,matches:A,match:J,controller:new AbortController})}),[_,y]}function Qz(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function wC(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Y8(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function X8(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Ne(i,"No route found in manifest");let o={};for(let a in n){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Ea(!c,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!bz.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,xt({},e(i),{lazy:void 0}))}async function gd(t,e,r,n,i,o,a,s){s===void 0&&(s={});let c,l,d,u=p=>{let m,w=new Promise((v,g)=>m=g);return d=()=>m(),e.signal.addEventListener("abort",d),Promise.race([p({request:e,params:r.params,context:s.requestContext}),w])};try{let p=r.route[t];if(r.route.lazy)if(p)l=(await Promise.all([u(p),X8(r.route,o,i)]))[0];else if(await X8(r.route,o,i),p=r.route[t],p)l=await u(p);else if(t==="action"){let m=new URL(e.url),w=m.pathname+m.search;throw Nn(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:Ft.data,data:void 0};else if(p)l=await u(p);else{let m=new URL(e.url),w=m.pathname+m.search;throw Nn(404,{pathname:w})}Ne(l!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(p){c=Ft.error,l=p}finally{d&&e.signal.removeEventListener("abort",d)}if(rj(l)){let p=l.status;if(Bz.has(p)){let v=l.headers.get("Location");if(Ne(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!bC.test(v))v=_g(new URL(e.url),n.slice(0,n.indexOf(r)+1),a,!0,v);else if(!s.isStaticRequest){let g=new URL(e.url),_=v.startsWith("//")?new URL(g.protocol+v):new URL(v),y=uh(_.pathname,a)!=null;_.origin===g.origin&&y&&(v=_.pathname+_.search+_.hash)}if(s.isStaticRequest)throw l.headers.set("Location",v),l;return{type:Ft.redirect,status:p,location:v,revalidate:l.headers.get("X-Remix-Revalidate")!==null,reloadDocument:l.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Ft.error?Ft.error:Ft.data,response:l};let m,w=l.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?m=await l.json():m=await l.text(),c===Ft.error?{type:c,error:new gC(p,l.statusText,m),headers:l.headers}:{type:Ft.data,data:m,statusCode:l.status,headers:l.headers}}if(c===Ft.error)return{type:c,error:l};if(tj(l)){var h,f;return{type:Ft.deferred,deferredData:l,statusCode:(h=l.init)==null?void 0:h.status,headers:((f=l.init)==null?void 0:f.headers)&&new Headers(l.init.headers)}}return{type:Ft.data,data:l}}function yd(t,e,r,n){let i=t.createURL(xC(e)).toString(),o={signal:r};if(n&&hi(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=bg(n.formData):o.body=n.formData}return new Request(i,o)}function bg(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function Q8(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function Jz(t,e,r,n,i){let o={},a=null,s,c=!1,l={};return r.forEach((d,u)=>{let h=e[u].route.id;if(Ne(!ol(d),"Cannot handle redirect results in processLoaderData"),hu(d)){let f=qc(t,h),p=d.error;n&&(p=Object.values(n)[0],n=void 0),a=a||{},a[f.route.id]==null&&(a[f.route.id]=p),o[h]=void 0,c||(c=!0,s=yC(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else ys(d)?(i.set(h,d.deferredData),o[h]=d.deferredData.data):o[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers)}),n&&(a=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:l}}function J8(t,e,r,n,i,o,a,s){let{loaderData:c,errors:l}=Jz(e,r,n,i,s);for(let d=0;d<o.length;d++){let{key:u,match:h,controller:f}=o[d];Ne(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let p=a[d];if(!(f&&f.signal.aborted))if(hu(p)){let m=qc(t.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=xt({},l,{[m.route.id]:p.error})),t.fetchers.delete(u)}else if(ol(p))Ne(!1,"Unhandled fetcher revalidation redirect");else if(ys(p))Ne(!1,"Unhandled fetcher deferred data");else{let m=kc(p.data);t.fetchers.set(u,m)}}return{loaderData:c,errors:l}}function e_(t,e,r,n){let i=xt({},e);for(let o of r){let a=o.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):t[a]!==void 0&&o.route.loader&&(i[a]=t[a]),n&&n.hasOwnProperty(a))break}return i}function qc(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function t_(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Nn(t,e){let{pathname:r,routeId:n,method:i,type:o}=e===void 0?{}:e,a="Unknown Server Error",s="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):t===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):t===404?(a="Not Found",s='No route matches URL "'+r+'"'):t===405&&(a="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new gC(t||500,a,new Error(s),!0)}function r_(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(ol(r))return{result:r,idx:e}}}function xC(t){let e=typeof t=="string"?Si(t):t;return Ys(xt({},e,{hash:""}))}function ej(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function ys(t){return t.type===Ft.deferred}function hu(t){return t.type===Ft.error}function ol(t){return(t&&t.type)===Ft.redirect}function tj(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function rj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function nj(t){return Uz.has(t.toLowerCase())}function hi(t){return zz.has(t.toLowerCase())}async function n_(t,e,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=e[a];if(!c)continue;let l=t.find(u=>u.route.id===c.route.id),d=l!=null&&!wC(l,c)&&(o&&o[c.route.id])!==void 0;if(ys(s)&&(i||d)){let u=n[a];Ne(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await EC(s,u,i).then(h=>{h&&(r[a]=h||r[a])})}}}async function EC(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ft.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Ft.error,error:i}}return{type:Ft.data,data:t.deferredData.data}}}function T5(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function ij(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function wg(t,e){let r=typeof e=="string"?Si(e).search:e.search;if(t[t.length-1].route.index&&T5(r||""))return t[t.length-1];let n=vC(t);return n[n.length-1]}function i_(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:o,json:a}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function r1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function oj(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function _d(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function aj(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function kc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}const sj=t=>{switch(t){case"hash":return yz({v5Compat:!0});case"memory":return vz({v5Compat:!0});case"browser":default:return gz({v5Compat:!0})}};var bt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},n1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},$n,of,xg,af,Zi,ns;class cj extends Fe{get basename(){return bt(this,of,"f")}get origin(){return bt(this,xg,"f")}get state(){return bt(this,Zi,"f").asObservable()}get value(){return bt(this,Zi,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(i=>bt(this,Zi,"f").subscribe(i)),$n.set(this,void 0),of.set(this,void 0),xg.set(this,window.location.origin),af.set(this,new jr),Zi.set(this,void 0),ns.set(this,void 0);const{basename:r,history:n}=e;n1(this,ns,e.logger||console,"f"),n1(this,of,r,"f"),n1(this,$n,n,"f"),n1(this,Zi,new Ml({action:bt(this,$n,"f").action,location:bt(this,$n,"f").location,delta:null}),"f"),bt(this,af,"f").add(bt(this,$n,"f").listen(i=>{i.location.key!==bt(this,Zi,"f").value.location.key&&(bt(this,ns,"f").debug("Navigator::constructor","history changed",i,bt(this,Zi,"f").value),bt(this,Zi,"f").next(i))}))}encodeLocation(e){return bt(this,$n,"f").encodeLocation(e)}listen(e){bt(this,ns,"f").debug("Navigator::listen",e);const r=bt(this,Zi,"f").pipe(kZ(1)).subscribe(n=>{bt(this,ns,"f").debug("Navigator::listen[onchange]"),e(n)});return()=>(bt(this,ns,"f").debug("Navigator::listen[unsubscribe]"),r.unsubscribe())}createHref(e){return bt(this,$n,"f").createHref(e)}go(e){bt(this,$n,"f").go(e)}push(e,r){return bt(this,$n,"f").push(e,r)}replace(e,r){return bt(this,$n,"f").replace(e,r)}createURL(e){return bt(this,$n,"f").createURL(e)}dispose(){bt(this,af,"f").unsubscribe()}}$n=new WeakMap,of=new WeakMap,xg=new WeakMap,af=new WeakMap,Zi=new WeakMap,ns=new WeakMap;var Ln=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},o_=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},si,is;const a_=t=>t.replace(/\/+/g,"/");class lj extends Lx{get state$(){return Ln(this,si,"f").pipe(Ue(e=>Ln(this,is,"f")?e.location.pathname.startsWith(Ln(this,is,"f")):!0),ge(({action:e,location:r})=>({action:e,location:this._localizePath(r)})))}get navigator(){return Ln(this,si,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),si.set(this,void 0),is.set(this,void 0);const{basename:r,history:n}=e.config;if(o_(this,is,r,"f"),!n)throw Error("no history provided!");o_(this,si,new cj({basename:r,history:n}),"f"),this._addTeardown(()=>Ln(this,si,"f").dispose())}createRouter(e){const r=Ln(this,si,"f");console.debug("NavigationProvider::createRouter",e);const n=Kz({basename:r.basename,history:r,routes:e,future:{v7_prependBasename:!0}});return n.initialize(),n}createHref(e){return Ln(this,si,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Ln(this,si,"f").createURL(this._createToPath(e??this.path))}push(e,r){return Ln(this,si,"f").push(this._createToPath(e),r)}replace(e,r){return Ln(this,si,"f").replace(this._createToPath(e),r)}_localizePath(e){var r;const{pathname:n,search:i,hash:o}=e;return{pathname:a_(n.replace((r=Ln(this,is,"f"))!==null&&r!==void 0?r:"","")),search:i,hash:o}}_createToPath(e){const{pathname:r,search:n,hash:i}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:a_([Ln(this,is,"f"),r==="/"?void 0:r].filter(o=>!!o).join("/")),search:n,hash:i}}}si=new WeakMap,is=new WeakMap;const s_="3.0.6",dj="navigation",uj={version:new ou(s_),name:dj,configure:t=>{const e=new mz;return t&&(e.history=t.navigation.navigator),e},initialize:({config:t})=>{var e;return(e=t.history)!==null&&e!==void 0||(t.history=sj()),new lj({version:s_,config:t})},dispose({instance:t}){t.dispose()}},hj=(t,e)=>{const r=typeof e=="string"?{configure:n=>{n.basename=e}}:e;t.addConfig(Object.assign({module:uj},r))},fj=async t=>{t.logger.level=0,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),YF(t),hj(t),pD(t),pz(t,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new Yx(0)),console.debug("📒 subscribing to all events")})},pj="bookmarkId",mj=t=>{const{event:e,context:r,navigation:{navigator:n}}=pn().modules;b.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",o=>{var a;const{appKey:s,context:c}=o.detail,l=t.resolveAppPath(s);if(n.location.pathname!==l){const{hash:d,search:u}=n.location,h={pathname:l,search:vj(u),hash:d};n.push(h)}c&&((a=r.currentContext)===null||a===void 0?void 0:a.id)!==c.id&&r.setCurrentContextByIdAsync(c.id)}),[t,r,e,n])};function vj(t){const e=new URLSearchParams(t);return e.delete(pj),`?${e.toString()}`}const gj=()=>{const t=pn().modules.event,[e,r]=b.useState(!1);return b.useEffect(()=>{const n=t.addEventListener("onBookmarkChanged",()=>{r(!1)}),i=t.addEventListener("onAddCreator",()=>{r(!0)});return()=>{n(),i()}},[t]),e};/**
416
416
  * React Router v6.15.0
417
417
  *
418
418
  * Copyright (c) Remix Software Inc.
@@ -32,7 +32,7 @@
32
32
  }
33
33
  </style>
34
34
 
35
- <script type="module" crossorigin src="/assets/index-85671ebc.js"></script>
35
+ <script type="module" crossorigin src="/assets/index-724bd2a9.js"></script>
36
36
 
37
37
  <body>
38
38
  <div id="root"></div>
@@ -1 +1 @@
1
- export declare const version = "9.0.2";
1
+ export declare const version = "9.1.1";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '9.0.2';
1
+ export const version = '9.1.1';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -52,9 +52,9 @@
52
52
  "vite-plugin-environment": "^1.1.3",
53
53
  "vite-plugin-restart": "^0.3.1",
54
54
  "vite-tsconfig-paths": "^4.2.0",
55
- "@equinor/fusion-framework-app": "^7.1.5",
56
- "@equinor/fusion-framework-react-components-people-provider": "^1.0.0",
57
- "@equinor/fusion-observable": "^8.1.1"
55
+ "@equinor/fusion-framework-app": "^7.1.6",
56
+ "@equinor/fusion-framework-react-components-people-provider": "^1.0.1",
57
+ "@equinor/fusion-observable": "^8.1.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@equinor/eds-core-react": "^0.32.4",
@@ -81,19 +81,19 @@
81
81
  "styled-components": "^6.0.7",
82
82
  "types": "link:./types",
83
83
  "typescript": "^5.1.3",
84
- "@equinor/fusion-framework": "^7.0.20",
85
- "@equinor/fusion-framework-app": "^7.1.5",
86
- "@equinor/fusion-framework-module-app": "^5.2.5",
87
- "@equinor/fusion-framework-module-bookmark": "^1.0.11",
88
- "@equinor/fusion-framework-module-context": "^4.0.14",
89
- "@equinor/fusion-framework-module-http": "^5.1.0",
90
- "@equinor/fusion-framework-module-msal": "^3.0.6",
91
- "@equinor/fusion-framework-module-navigation": "^3.0.5",
92
- "@equinor/fusion-framework-module-services": "^3.2.0",
93
- "@equinor/fusion-framework-react": "^5.3.0",
94
- "@equinor/fusion-framework-react-components-bookmark": "^0.2.7",
95
- "@equinor/fusion-framework-react-module-bookmark": "^2.0.18",
96
- "@equinor/fusion-query": "^4.0.0"
84
+ "@equinor/fusion-framework": "^7.0.21",
85
+ "@equinor/fusion-framework-app": "^7.1.6",
86
+ "@equinor/fusion-framework-module-app": "^5.2.6",
87
+ "@equinor/fusion-framework-module-bookmark": "^1.0.12",
88
+ "@equinor/fusion-framework-module-context": "^4.0.15",
89
+ "@equinor/fusion-framework-module-http": "^5.1.1",
90
+ "@equinor/fusion-framework-module-msal": "^3.0.7",
91
+ "@equinor/fusion-framework-module-navigation": "^3.0.6",
92
+ "@equinor/fusion-framework-module-services": "^3.2.1",
93
+ "@equinor/fusion-framework-react": "^5.3.1",
94
+ "@equinor/fusion-framework-react-components-bookmark": "^0.2.8",
95
+ "@equinor/fusion-framework-react-module-bookmark": "^2.0.19",
96
+ "@equinor/fusion-query": "^4.0.1"
97
97
  },
98
98
  "scripts": {
99
99
  "prebuild": "pnpm build:source",