@equinor/fusion-framework-cli 9.5.1 → 9.5.2
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,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1579](https://github.com/equinor/fusion-framework/pull/1579) [`8aecfdd`](https://github.com/equinor/fusion-framework/commit/8aecfdd892c5e4cc6afbf6c736d7d46d0199611b) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-side-sheet from 1.2.2 to 1.2.3
|
|
8
|
+
|
|
9
|
+
- [#1578](https://github.com/equinor/fusion-framework/pull/1578) [`e6859bf`](https://github.com/equinor/fusion-framework/commit/e6859bf9604b1ac388c077db97cb7bd7127f59db) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-menu from 0.2.0 to 0.3.0
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
|
|
12
|
+
- @equinor/fusion-observable@8.1.3
|
|
13
|
+
- @equinor/fusion-framework-react-components-people-provider@1.1.5
|
|
14
|
+
- @equinor/fusion-framework-app@7.1.11
|
|
15
|
+
|
|
3
16
|
## 9.5.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -416,7 +416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
416
416
|
*
|
|
417
417
|
* @license MIT
|
|
418
418
|
*/function Ot(){return Ot=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Ot.apply(this,arguments)}var St;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(St||(St={}));const E8="popstate";function Mj(r){r===void 0&&(r={});let{initialEntries:e=["/"],initialIndex:t,v5Compat:n=!1}=r,i;i=e.map((f,p)=>d(f,typeof f=="string"?null:f.state,p===0?"default":void 0));let o=c(t??i.length-1),a=St.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=fc(i?l().pathname:"/",f,p,m);return Qa(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(f)),w}function u(f){return typeof f=="string"?f:Ec(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"?Wi(f):f;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(f,p){a=St.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=St.Replace;let m=d(f,p);i[o]=m,n&&s&&s({action:a,location:m,delta:0})},go(f){a=St.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 $j(r){r===void 0&&(r={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return fc("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function t(n,i){return typeof i=="string"?i:Ec(i)}return iS(e,t,null,r)}function Hj(r){r===void 0&&(r={});function e(i,o){let{pathname:a="/",search:s="",hash:c=""}=Wi(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),fc("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function t(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:Ec(o))}function n(i,o){Qa(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return iS(e,t,n,r)}function je(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function Qa(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Zj(){return Math.random().toString(36).substr(2,8)}function k8(r,e){return{usr:r.state,key:r.key,idx:e}}function fc(r,e,t,n){return t===void 0&&(t=null),Ot({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:t,key:e&&e.key||n||Zj()})}function Ec(r){let{pathname:e="/",search:t="",hash:n=""}=r;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wi(r){let e={};if(r){let t=r.indexOf("#");t>=0&&(e.hash=r.substr(t),r=r.substr(0,t));let n=r.indexOf("?");n>=0&&(e.search=r.substr(n),r=r.substr(0,n)),r&&(e.pathname=r)}return e}function iS(r,e,t,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=St.Pop,c=null,l=d();l==null&&(l=0,a.replaceState(Ot({},a.state,{idx:l}),""));function d(){return(a.state||{idx:null}).idx}function u(){s=St.Pop;let w=d(),g=w==null?null:w-l;l=w,c&&c({action:s,location:m.location,delta:g})}function h(w,g){s=St.Push;let v=fc(m.location,w,g);t&&t(v,w),l=d()+1;let y=k8(v,l),_=m.createHref(v);try{a.pushState(y,"",_)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(_)}o&&c&&c({action:s,location:m.location,delta:1})}function f(w,g){s=St.Replace;let v=fc(m.location,w,g);t&&t(v,w),l=d();let y=k8(v,l),_=m.createHref(v);a.replaceState(y,"",_),o&&c&&c({action:s,location:m.location,delta:0})}function p(w){let g=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof w=="string"?w:Ec(w);return je(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let m={get action(){return s},get location(){return r(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(E8,u),c=w,()=>{i.removeEventListener(E8,u),c=null}},createHref(w){return e(i,w)},createURL:p,encodeLocation(w){let g=p(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(w){return a.go(w)}};return m}var Jt;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(Jt||(Jt={}));const Oj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Lj(r){return r.index===!0}function V4(r,e,t,n){return t===void 0&&(t=[]),n===void 0&&(n={}),r.map((i,o)=>{let a=[...t,o],s=typeof i.id=="string"?i.id:a.join("-");if(je(i.index!==!0||!i.children,"Cannot specify children on an index route"),je(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Lj(i)){let c=Ot({},i,e(i),{id:s});return n[s]=c,c}else{let c=Ot({},i,e(i),{id:s,children:void 0});return n[s]=c,i.children&&(c.children=V4(i.children,e,a,n)),c}})}function Sl(r,e,t){t===void 0&&(t="/");let n=typeof e=="string"?Wi(e):e,i=f1(n.pathname||"/",t);if(i==null)return null;let o=oS(r);Dj(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=Gj(o[s],Qj(i));return a}function Nj(r,e){let{route:t,pathname:n,params:i}=r;return{id:t.id,pathname:n,params:i,data:e[t.id],handle:t.handle}}function oS(r,e,t,n){e===void 0&&(e=[]),t===void 0&&(t=[]),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("/")&&(je(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=ec([n,c.relativePath]),d=t.concat(c);o.children&&o.children.length>0&&(je(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oS(o.children,e,d,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:qj(l,o.index),routesMeta:d})};return r.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of aS(o.path))i(o,a,c)}),e}function aS(r){let e=r.split("/");if(e.length===0)return[];let[t,...n]=e,i=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=aS(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>r.startsWith("/")&&c===""?"/":c)}function Dj(r){r.sort((e,t)=>e.score!==t.score?t.score-e.score:Wj(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}const Vj=/^:\w+$/,Fj=3,zj=2,Uj=1,jj=10,Bj=-2,S8=r=>r==="*";function qj(r,e){let t=r.split("/"),n=t.length;return t.some(S8)&&(n+=Bj),e&&(n+=zj),t.filter(i=>!S8(i)).reduce((i,o)=>i+(Vj.test(o)?Fj:o===""?Uj:jj),n)}function Wj(r,e){return r.length===e.length&&r.slice(0,-1).every((n,i)=>n===e[i])?r[r.length-1]-e[e.length-1]:0}function Gj(r,e){let{routesMeta:t}=r,n={},i="/",o=[];for(let a=0;a<t.length;++a){let s=t[a],c=a===t.length-1,l=i==="/"?e:e.slice(i.length)||"/",d=Kj({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:ec([i,d.pathname]),pathnameBase:rB(ec([i,d.pathnameBase])),route:u}),d.pathnameBase!=="/"&&(i=ec([i,d.pathnameBase]))}return o}function Kj(r,e){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[t,n]=Yj(r.path,r.caseSensitive,r.end),i=e.match(t);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]=Xj(s[u]||"",d),l},{}),pathname:o,pathnameBase:a,pattern:r}}function Yj(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Qa(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let n=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return r.endsWith("*")?(n.push("*"),i+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?i+="\\/*$":r!==""&&r!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function Qj(r){try{return decodeURI(r)}catch(e){return Qa(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),r}}function Xj(r,e){try{return decodeURIComponent(r)}catch(t){return Qa(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+r+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),r}}function f1(r,e){if(e==="/")return r;if(!r.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=r.charAt(t);return n&&n!=="/"?null:r.slice(t)||"/"}function Jj(r,e){e===void 0&&(e="/");let{pathname:t,search:n="",hash:i=""}=typeof r=="string"?Wi(r):r;return{pathname:t?t.startsWith("/")?t:eB(t,e):e,search:nB(n),hash:iB(i)}}function eB(r,e){let t=e.replace(/\/+$/,"").split("/");return r.split("/").forEach(i=>{i===".."?t.length>1&&t.pop():i!=="."&&t.push(i)}),t.length>1?t.join("/"):"/"}function _v(r,e,t,n){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sS(r){return r.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function tB(r,e,t,n){n===void 0&&(n=!1);let i;typeof r=="string"?i=Wi(r):(i=Ot({},r),je(!i.pathname||!i.pathname.includes("?"),_v("?","pathname","search",i)),je(!i.pathname||!i.pathname.includes("#"),_v("#","pathname","hash",i)),je(!i.search||!i.search.includes("#"),_v("#","search","hash",i)));let o=r===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=t;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=Jj(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const ec=r=>r.join("/").replace(/\/\/+/g,"/"),rB=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),nB=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,iB=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;class cS{constructor(e,t,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=t||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function lS(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const dS=["post","put","patch","delete"],oB=new Set(dS),aB=["get",...dS],sB=new Set(aB),cB=new Set([301,302,303,307,308]),lB=new Set([307,308]),bv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uB=r=>({hasErrorBoundary:!!r.hasErrorBoundary});function hB(r){const e=r.window?r.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!t;je(r.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(r.mapRouteProperties)i=r.mapRouteProperties;else if(r.detectErrorBoundary){let M=r.detectErrorBoundary;i=L=>({hasErrorBoundary:M(L)})}else i=uB;let o={},a=V4(r.routes,i,void 0,o),s,c=r.basename||"/",l=Ot({v7_normalizeFormMethod:!1,v7_prependBasename:!1},r.future),d=null,u=new Set,h=null,f=null,p=null,m=r.hydrationData!=null,w=Sl(a,r.history.location,c),g=null;if(w==null){let M=ni(404,{pathname:r.history.location.pathname}),{matches:L,route:q}=H8(a);w=L,g={[q.id]:M}}let v=!w.some(M=>M.route.lazy)&&(!w.some(M=>M.route.loader)||r.hydrationData!=null),y,_={historyAction:r.history.action,location:r.history.location,matches:w,initialized:v,navigation:bv,restoreScrollPosition:r.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:r.hydrationData&&r.hydrationData.loaderData||{},actionData:r.hydrationData&&r.hydrationData.actionData||null,errors:r.hydrationData&&r.hydrationData.errors||g,fetchers:new Map,blockers:new Map},E=St.Pop,S=!1,T,O=!1,re=!1,ee=[],ve=[],se=new Map,U=0,R=-1,$=new Map,H=new Set,D=new Map,k=new Map,F=new Map,Q=!1;function ne(){return d=r.history.listen(M=>{let{action:L,location:q,delta:de}=M;if(Q){Q=!1;return}Qa(F.size===0||de!=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 Ie=e_({currentLocation:_.location,nextLocation:q,historyAction:L});if(Ie&&de!=null){Q=!0,r.history.go(de*-1),M1(Ie,{state:"blocked",location:q,proceed(){M1(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),r.history.go(de)},reset(){let Ae=new Map(_.blockers);Ae.set(Ie,Jd),le({blockers:Ae})}});return}return _i(L,q)}),_.initialized||_i(St.Pop,_.location),y}function ge(){d&&d(),u.clear(),T&&T.abort(),_.fetchers.forEach((M,L)=>Q0(L)),_.blockers.forEach((M,L)=>Jy(L))}function lt(M){return u.add(M),()=>u.delete(M)}function le(M){_=Ot({},_,M),u.forEach(L=>L(_))}function at(M,L){var q,de;let Ie=_.actionData!=null&&_.navigation.formMethod!=null&&Pi(_.navigation.formMethod)&&_.navigation.state==="loading"&&((q=M.state)==null?void 0:q._isRedirect)!==!0,Ae;L.actionData?Object.keys(L.actionData).length>0?Ae=L.actionData:Ae=null:Ie?Ae=_.actionData:Ae=null;let Re=L.loaderData?$8(_.loaderData,L.loaderData,L.matches||[],L.errors):_.loaderData,be=_.blockers;be.size>0&&(be=new Map(be),be.forEach(($t,Ur)=>be.set(Ur,Jd)));let _e=S===!0||_.navigation.formMethod!=null&&Pi(_.navigation.formMethod)&&((de=M.state)==null?void 0:de._isRedirect)!==!0;s&&(a=s,s=void 0),O||E===St.Pop||(E===St.Push?r.history.push(M,M.state):E===St.Replace&&r.history.replace(M,M.state)),le(Ot({},L,{actionData:Ae,loaderData:Re,historyAction:E,location:M,initialized:!0,navigation:bv,revalidation:"idle",restoreScrollPosition:r_(M,L.matches||_.matches),preventScrollReset:_e,blockers:be})),E=St.Pop,S=!1,O=!1,re=!1,ee=[],ve=[]}async function Mt(M,L){if(typeof M=="number"){r.history.go(M);return}let q=F4(_.location,_.matches,c,l.v7_prependBasename,M,L==null?void 0:L.fromRouteId,L==null?void 0:L.relative),{path:de,submission:Ie,error:Ae}=A8(l.v7_normalizeFormMethod,!1,q,L),Re=_.location,be=fc(_.location,de,L&&L.state);be=Ot({},be,r.history.encodeLocation(be));let _e=L&&L.replace!=null?L.replace:void 0,$t=St.Push;_e===!0?$t=St.Replace:_e===!1||Ie!=null&&Pi(Ie.formMethod)&&Ie.formAction===_.location.pathname+_.location.search&&($t=St.Replace);let Ur=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,Ke=e_({currentLocation:Re,nextLocation:be,historyAction:$t});if(Ke){M1(Ke,{state:"blocked",location:be,proceed(){M1(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),Mt(M,L)},reset(){let ht=new Map(_.blockers);ht.set(Ke,Jd),le({blockers:ht})}});return}return await _i($t,be,{submission:Ie,pendingError:Ae,preventScrollReset:Ur,replace:L&&L.replace})}function nn(){if(Y0(),le({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){_i(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}_i(E||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function _i(M,L,q){T&&T.abort(),T=null,E=M,O=(q&&q.startUninterruptedRevalidation)===!0,YI(_.location,_.matches),S=(q&&q.preventScrollReset)===!0;let de=s||a,Ie=q&&q.overrideNavigation,Ae=Sl(de,L,c);if(!Ae){let ht=ni(404,{pathname:L.pathname}),{matches:Qt,route:fs}=H8(de);X0(),at(L,{matches:Qt,loaderData:{},errors:{[fs.id]:ht}});return}if(_.initialized&&!re&&gB(_.location,L)&&!(q&&q.submission&&Pi(q.submission.formMethod))){at(L,{matches:Ae});return}T=new AbortController;let Re=tu(r.history,L,T.signal,q&&q.submission),be,_e;if(q&&q.pendingError)_e={[Al(Ae).route.id]:q.pendingError};else if(q&&q.submission&&Pi(q.submission.formMethod)){let ht=await Rc(Re,L,q.submission,Ae,{replace:q.replace});if(ht.shortCircuited)return;be=ht.pendingActionData,_e=ht.pendingActionError,Ie=wv(L,q.submission),Re=new Request(Re.url,{signal:Re.signal})}let{shortCircuited:$t,loaderData:Ur,errors:Ke}=await Ki(Re,L,Ae,Ie,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,be,_e);$t||(T=null,at(L,Ot({matches:Ae},be?{actionData:be}:{},{loaderData:Ur,errors:Ke})))}async function Rc(M,L,q,de,Ie){Ie===void 0&&(Ie={}),Y0();let Ae=wB(L,q);le({navigation:Ae});let Re,be=U4(de,L);if(!be.route.action&&!be.route.lazy)Re={type:Jt.error,error:ni(405,{method:M.method,pathname:L.pathname,routeId:be.route.id})};else if(Re=await eu("action",M,be,de,o,i,c),M.signal.aborted)return{shortCircuited:!0};if(Dl(Re)){let _e;return Ie&&Ie.replace!=null?_e=Ie.replace:_e=Re.location===_.location.pathname+_.location.search,await Hd(_,Re,{submission:q,replace:_e}),{shortCircuited:!0}}if(oh(Re)){let _e=Al(de,be.route.id);return(Ie&&Ie.replace)!==!0&&(E=St.Push),{pendingActionData:{},pendingActionError:{[_e.route.id]:Re.error}}}if(Us(Re))throw ni(400,{type:"defer-action"});return{pendingActionData:{[be.route.id]:Re.data}}}async function Ki(M,L,q,de,Ie,Ae,Re,be,_e){let $t=de||wv(L,Ie),Ur=Ie||Ae||L8($t),Ke=s||a,[ht,Qt]=I8(r.history,_,q,Ur,L,re,ee,ve,D,H,Ke,c,be,_e);if(X0(dt=>!(q&&q.some(bi=>bi.route.id===dt))||ht&&ht.some(bi=>bi.route.id===dt)),R=++U,ht.length===0&&Qt.length===0){let dt=Qy();return at(L,Ot({matches:q,loaderData:{},errors:_e||null},be?{actionData:be}:{},dt?{fetchers:new Map(_.fetchers)}:{})),{shortCircuited:!0}}if(!O){Qt.forEach(bi=>{let pa=_.fetchers.get(bi.key),nm=ru(void 0,pa?pa.data:void 0);_.fetchers.set(bi.key,nm)});let dt=be||_.actionData;le(Ot({navigation:$t},dt?Object.keys(dt).length===0?{actionData:null}:{actionData:dt}:{},Qt.length>0?{fetchers:new Map(_.fetchers)}:{}))}Qt.forEach(dt=>{se.has(dt.key)&&fa(dt.key),dt.controller&&se.set(dt.key,dt.controller)});let fs=()=>Qt.forEach(dt=>fa(dt.key));T&&T.signal.addEventListener("abort",fs);let{results:ps,loaderResults:Zd,fetcherResults:J0}=await Ky(_.matches,q,ht,Qt,M);if(M.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",fs),Qt.forEach(dt=>se.delete(dt.key));let xo=Z8(ps);if(xo){if(xo.idx>=ht.length){let dt=Qt[xo.idx-ht.length].key;H.add(dt)}return await Hd(_,xo.result,{replace:Re}),{shortCircuited:!0}}let{loaderData:Co,errors:$1}=M8(_,q,ht,Zd,_e,Qt,J0,k);k.forEach((dt,bi)=>{dt.subscribe(pa=>{(pa||dt.done)&&k.delete(bi)})});let em=Qy(),tm=Xy(R),rm=em||tm||Qt.length>0;return Ot({loaderData:Co,errors:$1},rm?{fetchers:new Map(_.fetchers)}:{})}function Gy(M){return _.fetchers.get(M)||dB}function BI(M,L,q,de){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.");se.has(M)&&fa(M);let Ie=s||a,Ae=F4(_.location,_.matches,c,l.v7_prependBasename,q,L,de==null?void 0:de.relative),Re=Sl(Ie,Ae,c);if(!Re){P1(M,L,ni(404,{pathname:Ae}));return}let{path:be,submission:_e,error:$t}=A8(l.v7_normalizeFormMethod,!0,Ae,de);if($t){P1(M,L,$t);return}let Ur=U4(Re,be);if(S=(de&&de.preventScrollReset)===!0,_e&&Pi(_e.formMethod)){qI(M,L,be,Ur,Re,_e);return}D.set(M,{routeId:L,path:be}),WI(M,L,be,Ur,Re,_e)}async function qI(M,L,q,de,Ie,Ae){if(Y0(),D.delete(M),!de.route.action&&!de.route.lazy){let hr=ni(405,{method:Ae.formMethod,pathname:q,routeId:L});P1(M,L,hr);return}let Re=_.fetchers.get(M),be=xB(Ae,Re);_.fetchers.set(M,be),le({fetchers:new Map(_.fetchers)});let _e=new AbortController,$t=tu(r.history,q,_e.signal,Ae);se.set(M,_e);let Ur=U,Ke=await eu("action",$t,de,Ie,o,i,c);if($t.signal.aborted){se.get(M)===_e&&se.delete(M);return}if(Dl(Ke))if(se.delete(M),R>Ur){let hr=tl(void 0);_.fetchers.set(M,hr),le({fetchers:new Map(_.fetchers)});return}else{H.add(M);let hr=ru(Ae);return _.fetchers.set(M,hr),le({fetchers:new Map(_.fetchers)}),Hd(_,Ke,{fetcherSubmission:Ae})}if(oh(Ke)){P1(M,L,Ke.error);return}if(Us(Ke))throw ni(400,{type:"defer-action"});let ht=_.navigation.location||_.location,Qt=tu(r.history,ht,_e.signal),fs=s||a,ps=_.navigation.state!=="idle"?Sl(fs,_.navigation.location,c):_.matches;je(ps,"Didn't find any matches after fetcher action");let Zd=++U;$.set(M,Zd);let J0=ru(Ae,Ke.data);_.fetchers.set(M,J0);let[xo,Co]=I8(r.history,_,ps,Ae,ht,re,ee,ve,D,H,fs,c,{[de.route.id]:Ke.data},void 0);Co.filter(hr=>hr.key!==M).forEach(hr=>{let Od=hr.key,n_=_.fetchers.get(Od),XI=ru(void 0,n_?n_.data:void 0);_.fetchers.set(Od,XI),se.has(Od)&&fa(Od),hr.controller&&se.set(Od,hr.controller)}),le({fetchers:new Map(_.fetchers)});let $1=()=>Co.forEach(hr=>fa(hr.key));_e.signal.addEventListener("abort",$1);let{results:em,loaderResults:tm,fetcherResults:rm}=await Ky(_.matches,ps,xo,Co,Qt);if(_e.signal.aborted)return;_e.signal.removeEventListener("abort",$1),$.delete(M),se.delete(M),Co.forEach(hr=>se.delete(hr.key));let dt=Z8(em);if(dt){if(dt.idx>=xo.length){let hr=Co[dt.idx-xo.length].key;H.add(hr)}return Hd(_,dt.result)}let{loaderData:bi,errors:pa}=M8(_,_.matches,xo,tm,void 0,Co,rm,k);if(_.fetchers.has(M)){let hr=tl(Ke.data);_.fetchers.set(M,hr)}let nm=Xy(Zd);_.navigation.state==="loading"&&Zd>R?(je(E,"Expected pending action"),T&&T.abort(),at(_.navigation.location,{matches:ps,loaderData:bi,errors:pa,fetchers:new Map(_.fetchers)})):(le(Ot({errors:pa,loaderData:$8(_.loaderData,bi,ps,pa)},nm||Co.length>0?{fetchers:new Map(_.fetchers)}:{})),re=!1)}async function WI(M,L,q,de,Ie,Ae){let Re=_.fetchers.get(M),be=ru(Ae,Re?Re.data:void 0);_.fetchers.set(M,be),le({fetchers:new Map(_.fetchers)});let _e=new AbortController,$t=tu(r.history,q,_e.signal);se.set(M,_e);let Ur=U,Ke=await eu("loader",$t,de,Ie,o,i,c);if(Us(Ke)&&(Ke=await pS(Ke,$t.signal,!0)||Ke),se.get(M)===_e&&se.delete(M),$t.signal.aborted)return;if(Dl(Ke))if(R>Ur){let Qt=tl(void 0);_.fetchers.set(M,Qt),le({fetchers:new Map(_.fetchers)});return}else{H.add(M),await Hd(_,Ke);return}if(oh(Ke)){let Qt=Al(_.matches,L);_.fetchers.delete(M),le({fetchers:new Map(_.fetchers),errors:{[Qt.route.id]:Ke.error}});return}je(!Us(Ke),"Unhandled fetcher deferred data");let ht=tl(Ke.data);_.fetchers.set(M,ht),le({fetchers:new Map(_.fetchers)})}async function Hd(M,L,q){let{submission:de,fetcherSubmission:Ie,replace:Ae}=q===void 0?{}:q;L.revalidate&&(re=!0);let Re=fc(M.location,L.location,{_isRedirect:!0});if(je(Re,"Expected a location on the redirect navigation"),t){let ht=!1;if(L.reloadDocument)ht=!0;else if(uS.test(L.location)){const Qt=r.history.createURL(L.location);ht=Qt.origin!==e.location.origin||f1(Qt.pathname,c)==null}if(ht){Ae?e.location.replace(L.location):e.location.assign(L.location);return}}T=null;let be=Ae===!0?St.Replace:St.Push,{formMethod:_e,formAction:$t,formEncType:Ur}=M.navigation;!de&&!Ie&&_e&&$t&&Ur&&(de=L8(M.navigation));let Ke=de||Ie;if(lB.has(L.status)&&Ke&&Pi(Ke.formMethod))await _i(be,Re,{submission:Ot({},Ke,{formAction:L.location}),preventScrollReset:S});else{let ht=wv(Re,de);await _i(be,Re,{overrideNavigation:ht,fetcherSubmission:Ie,preventScrollReset:S})}}async function Ky(M,L,q,de,Ie){let Ae=await Promise.all([...q.map(_e=>eu("loader",Ie,_e,L,o,i,c)),...de.map(_e=>_e.matches&&_e.match&&_e.controller?eu("loader",tu(r.history,_e.path,_e.controller.signal),_e.match,_e.matches,o,i,c):{type:Jt.error,error:ni(404,{pathname:_e.path})})]),Re=Ae.slice(0,q.length),be=Ae.slice(q.length);return await Promise.all([O8(M,q,Re,Re.map(()=>Ie.signal),!1,_.loaderData),O8(M,de.map(_e=>_e.match),be,de.map(_e=>_e.controller?_e.controller.signal:null),!0)]),{results:Ae,loaderResults:Re,fetcherResults:be}}function Y0(){re=!0,ee.push(...X0()),D.forEach((M,L)=>{se.has(L)&&(ve.push(L),fa(L))})}function P1(M,L,q){let de=Al(_.matches,L);Q0(M),le({errors:{[de.route.id]:q},fetchers:new Map(_.fetchers)})}function Q0(M){let L=_.fetchers.get(M);se.has(M)&&!(L&&L.state==="loading"&&$.has(M))&&fa(M),D.delete(M),$.delete(M),H.delete(M),_.fetchers.delete(M)}function fa(M){let L=se.get(M);je(L,"Expected fetch controller: "+M),L.abort(),se.delete(M)}function Yy(M){for(let L of M){let q=Gy(L),de=tl(q.data);_.fetchers.set(L,de)}}function Qy(){let M=[],L=!1;for(let q of H){let de=_.fetchers.get(q);je(de,"Expected fetcher: "+q),de.state==="loading"&&(H.delete(q),M.push(q),L=!0)}return Yy(M),L}function Xy(M){let L=[];for(let[q,de]of $)if(de<M){let Ie=_.fetchers.get(q);je(Ie,"Expected fetcher: "+q),Ie.state==="loading"&&(fa(q),$.delete(q),L.push(q))}return Yy(L),L.length>0}function GI(M,L){let q=_.blockers.get(M)||Jd;return F.get(M)!==L&&F.set(M,L),q}function Jy(M){_.blockers.delete(M),F.delete(M)}function M1(M,L){let q=_.blockers.get(M)||Jd;je(q.state==="unblocked"&&L.state==="blocked"||q.state==="blocked"&&L.state==="blocked"||q.state==="blocked"&&L.state==="proceeding"||q.state==="blocked"&&L.state==="unblocked"||q.state==="proceeding"&&L.state==="unblocked","Invalid blocker state transition: "+q.state+" -> "+L.state);let de=new Map(_.blockers);de.set(M,L),le({blockers:de})}function e_(M){let{currentLocation:L,nextLocation:q,historyAction:de}=M;if(F.size===0)return;F.size>1&&Qa(!1,"A router only supports one blocker at a time");let Ie=Array.from(F.entries()),[Ae,Re]=Ie[Ie.length-1],be=_.blockers.get(Ae);if(!(be&&be.state==="proceeding")&&Re({currentLocation:L,nextLocation:q,historyAction:de}))return Ae}function X0(M){let L=[];return k.forEach((q,de)=>{(!M||M(de))&&(q.cancel(),L.push(de),k.delete(de))}),L}function KI(M,L,q){if(h=M,p=L,f=q||null,!m&&_.navigation===bv){m=!0;let de=r_(_.location,_.matches);de!=null&&le({restoreScrollPosition:de})}return()=>{h=null,p=null,f=null}}function t_(M,L){return f&&f(M,L.map(de=>Nj(de,_.loaderData)))||M.key}function YI(M,L){if(h&&p){let q=t_(M,L);h[q]=p()}}function r_(M,L){if(h){let q=t_(M,L),de=h[q];if(typeof de=="number")return de}return null}function QI(M){o={},s=V4(M,i,void 0,o)}return y={get basename(){return c},get state(){return _},get routes(){return a},initialize:ne,subscribe:lt,enableScrollRestoration:KI,navigate:Mt,fetch:BI,revalidate:nn,createHref:M=>r.history.createHref(M),encodeLocation:M=>r.history.encodeLocation(M),getFetcher:Gy,deleteFetcher:Q0,dispose:ge,getBlocker:GI,deleteBlocker:Jy,_internalFetchControllers:se,_internalActiveDeferreds:k,_internalSetRoutes:QI},y}function fB(r){return r!=null&&("formData"in r&&r.formData!=null||"body"in r&&r.body!==void 0)}function F4(r,e,t,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=tB(i||".",sS(s).map(d=>d.pathnameBase),f1(r.pathname,t)||r.pathname,a==="path");return i==null&&(l.search=r.search,l.hash=r.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!ry(l.search)&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n&&t!=="/"&&(l.pathname=l.pathname==="/"?t:ec([t,l.pathname])),Ec(l)}function A8(r,e,t,n){if(!n||!fB(n))return{path:t};if(n.formMethod&&!bB(n.formMethod))return{path:t,error:ni(405,{method:n.formMethod})};let i=()=>({path:t,error:ni(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=r?o.toUpperCase():o.toLowerCase(),s=fS(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pi(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+`
|
|
419
|
-
`},""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Pi(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}je(typeof FormData=="function","FormData is not available in this environment");let c,l;if(n.formData)c=z4(n.formData),l=n.formData;else if(n.body instanceof FormData)c=z4(n.body),l=n.body;else if(n.body instanceof URLSearchParams)c=n.body,l=P8(c);else if(n.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(n.body),l=P8(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(Pi(d.formMethod))return{path:t,submission:d};let u=Wi(t);return e&&u.search&&ry(u.search)&&c.append("index",""),u.search="?"+c,{path:Ec(u),submission:d}}function pB(r,e){let t=r;if(e){let n=r.findIndex(i=>i.route.id===e);n>=0&&(t=r.slice(0,n))}return t}function I8(r,e,t,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=r.createURL(e.location),w=r.createURL(i),g=f?Object.keys(f)[0]:void 0,y=pB(t,g).filter((E,S)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(mB(e.loaderData,e.matches[S],E)||a.some(re=>re===E.route.id))return!0;let T=e.matches[S],O=E;return T8(E,Ot({currentUrl:m,currentParams:T.params,nextUrl:w,nextParams:O.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||hS(T,O)}))}),_=[];return c.forEach((E,S)=>{if(!t.some(ve=>ve.route.id===E.routeId))return;let T=Sl(d,E.path,u);if(!T){_.push({key:S,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(S),re=U4(T,E.path),ee=!1;l.has(S)?ee=!1:s.includes(S)?ee=!0:O&&O.state!=="idle"&&O.data===void 0?ee=o:ee=T8(re,Ot({currentUrl:m,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:t[t.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})),ee&&_.push({key:S,routeId:E.routeId,path:E.path,matches:T,match:re,controller:new AbortController})}),[y,_]}function mB(r,e,t){let n=!e||t.route.id!==e.route.id,i=r[t.route.id]===void 0;return n||i}function hS(r,e){let t=r.route.path;return r.pathname!==e.pathname||t!=null&&t.endsWith("*")&&r.params["*"]!==e.params["*"]}function T8(r,e){if(r.route.shouldRevalidate){let t=r.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function R8(r,e,t){if(!r.lazy)return;let n=await r.lazy();if(!r.lazy)return;let i=t[r.id];je(i,"No route found in manifest");let o={};for(let a in n){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Qa(!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&&!Oj.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,Ot({},e(i),{lazy:void 0}))}async function eu(r,e,t,n,i,o,a,s){s===void 0&&(s={});let c,l,d,u=p=>{let m,w=new Promise((g,v)=>m=v);return d=()=>m(),e.signal.addEventListener("abort",d),Promise.race([p({request:e,params:t.params,context:s.requestContext}),w])};try{let p=t.route[r];if(t.route.lazy)if(p){let m,w=await Promise.all([u(p).catch(g=>{m=g}),R8(t.route,o,i)]);if(m)throw m;l=w[0]}else if(await R8(t.route,o,i),p=t.route[r],p)l=await u(p);else if(r==="action"){let m=new URL(e.url),w=m.pathname+m.search;throw ni(405,{method:e.method,pathname:w,routeId:t.route.id})}else return{type:Jt.data,data:void 0};else if(p)l=await u(p);else{let m=new URL(e.url),w=m.pathname+m.search;throw ni(404,{pathname:w})}je(l!==void 0,"You defined "+(r==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+r+"` ")+"function. Please return a value or `null`.")}catch(p){c=Jt.error,l=p}finally{d&&e.signal.removeEventListener("abort",d)}if(_B(l)){let p=l.status;if(cB.has(p)){let g=l.headers.get("Location");if(je(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!uS.test(g))g=F4(new URL(e.url),n.slice(0,n.indexOf(t)+1),a,!0,g);else if(!s.isStaticRequest){let v=new URL(e.url),y=g.startsWith("//")?new URL(v.protocol+g):new URL(g),_=f1(y.pathname,a)!=null;y.origin===v.origin&&_&&(g=y.pathname+y.search+y.hash)}if(s.isStaticRequest)throw l.headers.set("Location",g),l;return{type:Jt.redirect,status:p,location:g,revalidate:l.headers.get("X-Remix-Revalidate")!==null,reloadDocument:l.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Jt.error?Jt.error:Jt.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===Jt.error?{type:c,error:new cS(p,l.statusText,m),headers:l.headers}:{type:Jt.data,data:m,statusCode:l.status,headers:l.headers}}if(c===Jt.error)return{type:c,error:l};if(yB(l)){var h,f;return{type:Jt.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:Jt.data,data:l}}function tu(r,e,t,n){let i=r.createURL(fS(e)).toString(),o={signal:t};if(n&&Pi(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=z4(n.formData):o.body=n.formData}return new Request(i,o)}function z4(r){let e=new URLSearchParams;for(let[t,n]of r.entries())e.append(t,typeof n=="string"?n:n.name);return e}function P8(r){let e=new FormData;for(let[t,n]of r.entries())e.append(t,n);return e}function vB(r,e,t,n,i){let o={},a=null,s,c=!1,l={};return t.forEach((d,u)=>{let h=e[u].route.id;if(je(!Dl(d),"Cannot handle redirect results in processLoaderData"),oh(d)){let f=Al(r,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=lS(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else Us(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 M8(r,e,t,n,i,o,a,s){let{loaderData:c,errors:l}=vB(e,t,n,i,s);for(let d=0;d<o.length;d++){let{key:u,match:h,controller:f}=o[d];je(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let p=a[d];if(!(f&&f.signal.aborted))if(oh(p)){let m=Al(r.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=Ot({},l,{[m.route.id]:p.error})),r.fetchers.delete(u)}else if(Dl(p))je(!1,"Unhandled fetcher revalidation redirect");else if(Us(p))je(!1,"Unhandled fetcher deferred data");else{let m=tl(p.data);r.fetchers.set(u,m)}}return{loaderData:c,errors:l}}function $8(r,e,t,n){let i=Ot({},e);for(let o of t){let a=o.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):r[a]!==void 0&&o.route.loader&&(i[a]=r[a]),n&&n.hasOwnProperty(a))break}return i}function Al(r,e){return(e?r.slice(0,r.findIndex(n=>n.route.id===e)+1):[...r]).reverse().find(n=>n.route.hasErrorBoundary===!0)||r[0]}function H8(r){let e=r.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function ni(r,e){let{pathname:t,routeId:n,method:i,type:o}=e===void 0?{}:e,a="Unknown Server Error",s="Unknown @remix-run/router error";return r===400?(a="Bad Request",i&&t&&n?s="You made a "+i+' request to "'+t+'" 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")):r===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+t+'"'):r===404?(a="Not Found",s='No route matches URL "'+t+'"'):r===405&&(a="Method Not Allowed",i&&t&&n?s="You made a "+i.toUpperCase()+' request to "'+t+'" 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 cS(r||500,a,new Error(s),!0)}function Z8(r){for(let e=r.length-1;e>=0;e--){let t=r[e];if(Dl(t))return{result:t,idx:e}}}function fS(r){let e=typeof r=="string"?Wi(r):r;return Ec(Ot({},e,{hash:""}))}function gB(r,e){return r.pathname!==e.pathname||r.search!==e.search?!1:r.hash===""?e.hash!=="":r.hash===e.hash?!0:e.hash!==""}function Us(r){return r.type===Jt.deferred}function oh(r){return r.type===Jt.error}function Dl(r){return(r&&r.type)===Jt.redirect}function yB(r){let e=r;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function _B(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function bB(r){return sB.has(r.toLowerCase())}function Pi(r){return oB.has(r.toLowerCase())}async function O8(r,e,t,n,i,o){for(let a=0;a<t.length;a++){let s=t[a],c=e[a];if(!c)continue;let l=r.find(u=>u.route.id===c.route.id),d=l!=null&&!hS(l,c)&&(o&&o[c.route.id])!==void 0;if(Us(s)&&(i||d)){let u=n[a];je(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await pS(s,u,i).then(h=>{h&&(t[a]=h||t[a])})}}}async function pS(r,e,t){if(t===void 0&&(t=!1),!await r.deferredData.resolveData(e)){if(t)try{return{type:Jt.data,data:r.deferredData.unwrappedData}}catch(i){return{type:Jt.error,error:i}}return{type:Jt.data,data:r.deferredData.data}}}function ry(r){return new URLSearchParams(r).getAll("index").some(e=>e==="")}function U4(r,e){let t=typeof e=="string"?Wi(e).search:e.search;if(r[r.length-1].route.index&&ry(t||""))return r[r.length-1];let n=sS(r);return n[n.length-1]}function L8(r){let{formMethod:e,formAction:t,formEncType:n,text:i,formData:o,json:a}=r;if(!(!e||!t||!n)){if(i!=null)return{formMethod:e,formAction:t,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:t,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:t,formEncType:n,formData:void 0,json:a,text:void 0}}}function wv(r,e){return e?{state:"loading",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wB(r,e){return{state:"submitting",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function ru(r,e){return r?{state:"loading",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xB(r,e){return{state:"submitting",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e?e.data:void 0}}function tl(r){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}const CB=r=>{switch(r){case"hash":return Hj({v5Compat:!0});case"memory":return Mj({v5Compat:!0});case"browser":default:return $j({v5Compat:!0})}};var jt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},pf=function(r,e,t,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"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ti,fp,j4,pp,to,Tu;const N8=r=>typeof r=="object"&&"key"in r;class EB extends Ne{get basename(){return jt(this,fp,"f")}get origin(){return jt(this,j4,"f")}get state(){return jt(this,to,"f").asObservable()}get value(){return jt(this,to,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(i=>jt(this,to,"f").subscribe(i)),ti.set(this,void 0),fp.set(this,void 0),j4.set(this,window.location.origin),pp.set(this,new tn),to.set(this,void 0),Tu.set(this,void 0);const{basename:t,history:n}=e;pf(this,Tu,e.logger||console,"f"),pf(this,fp,t,"f"),pf(this,ti,n,"f"),pf(this,to,new hd({action:jt(this,ti,"f").action,location:jt(this,ti,"f").location,delta:null}),"f"),jt(this,pp,"f").add(jt(this,ti,"f").listen(i=>{i.location.key!==jt(this,to,"f").value.location.key&&jt(this,to,"f").next(i)}))}encodeLocation(e){return jt(this,ti,"f").encodeLocation(e)}listen(e){const t=jt(this,to,"f").subscribe(e);return jt(this,Tu,"f").debug("Navigator::listen",e),()=>(jt(this,Tu,"f").debug("Navigator::listen[unsubscribe]",e),t.unsubscribe())}createHref(e){return jt(this,ti,"f").createHref(e)}go(e){jt(this,ti,"f").go(e)}push(e,t){if(!(N8(e)&&this._isDuplicateLocation(e)))return jt(this,ti,"f").push(e,t)}replace(e,t){if(!(N8(e)&&this._isDuplicateLocation(e)))return jt(this,ti,"f").replace(e,t)}createURL(e){return jt(this,ti,"f").createURL(e)}_isDuplicateLocation(e){return e.key===jt(this,to,"f").value.location.key}dispose(){jt(this,pp,"f").unsubscribe()}}ti=new WeakMap,fp=new WeakMap,j4=new WeakMap,pp=new WeakMap,to=new WeakMap,Tu=new WeakMap;var Jn=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},D8=function(r,e,t,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"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},Ai,Ps;const V8=r=>r.replace(/\/+/g,"/");class kB extends TE{get state$(){return Jn(this,Ai,"f").pipe(Qe(e=>Jn(this,Ps,"f")?e.location.pathname.startsWith(Jn(this,Ps,"f")):!0),Ze(({action:e,location:t})=>({action:e,location:this._localizePath(t)})))}get navigator(){return Jn(this,Ai,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),Ai.set(this,void 0),Ps.set(this,void 0);const{basename:t,history:n}=e.config;if(D8(this,Ps,t,"f"),!n)throw Error("no history provided!");D8(this,Ai,new EB({basename:t,history:n}),"f"),this._addTeardown(()=>Jn(this,Ai,"f").dispose())}createRouter(e){const t=Jn(this,Ai,"f");console.debug("NavigationProvider::createRouter",e);const n=hB({basename:t.basename,history:t,routes:e,future:{v7_prependBasename:!0}});return n.initialize(),n}createHref(e){return Jn(this,Ai,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Jn(this,Ai,"f").createURL(this._createToPath(e??this.path))}push(e,t){return Jn(this,Ai,"f").push(this._createToPath(e),t)}replace(e,t){return Jn(this,Ai,"f").replace(this._createToPath(e),t)}_localizePath(e){var t;const{pathname:n,search:i,hash:o}=e;return{pathname:V8(n.replace((t=Jn(this,Ps,"f"))!==null&&t!==void 0?t:"","")),search:i,hash:o}}_createToPath(e){const{pathname:t,search:n,hash:i}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:V8([Jn(this,Ps,"f"),t==="/"?void 0:t].filter(o=>!!o).join("/")),search:n,hash:i}}}Ai=new WeakMap,Ps=new WeakMap;const F8="3.1.2",SB="navigation",AB={version:new qu(F8),name:SB,configure:r=>{const e=new Pj;return r&&(e.history=r.navigation.navigator),e},initialize:({config:r})=>{var e;return(e=r.history)!==null&&e!==void 0||(r.history=CB()),new kB({version:F8,config:r})},dispose({instance:r}){r.dispose()}},IB=(r,e)=>{const t=typeof e=="string"?{configure:n=>{n.basename=e}}:e;r.addConfig(Object.assign({module:AB},t))},TB=async r=>{r.logger.level=0,r.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),r.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),hj(r),IB(r),CV(r),Rj(r,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),r.onConfigured(()=>{console.log("framework config done")}),r.onInitialized(async e=>{e.auth.defaultClient.setLogger(new qE(0)),console.debug("📒 subscribing to all events")})},RB="bookmarkId",PB=r=>{const{event:e,context:t,navigation:{navigator:n}}=Pn().modules;b.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",o=>{var a;const{appKey:s,context:c}=o.detail,l=r.resolveAppPath(s);if(n.location.pathname!==l){const{hash:d,search:u}=n.location,h={pathname:l,search:MB(u),hash:d};n.push(h)}c&&((a=t.currentContext)===null||a===void 0?void 0:a.id)!==c.id&&t.setCurrentContextByIdAsync(c.id)}),[r,t,e,n])};function MB(r){const e=new URLSearchParams(r);return e.delete(RB),`?${e.toString()}`}const $B=()=>{const r=Pn().modules.event,[e,t]=b.useState(!1);return b.useEffect(()=>{const n=r.addEventListener("onBookmarkChanged",()=>{t(!1)}),i=r.addEventListener("onAddCreator",()=>{t(!0)});return()=>{n(),i()}},[r]),e};/**
|
|
419
|
+
`},""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Pi(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}je(typeof FormData=="function","FormData is not available in this environment");let c,l;if(n.formData)c=z4(n.formData),l=n.formData;else if(n.body instanceof FormData)c=z4(n.body),l=n.body;else if(n.body instanceof URLSearchParams)c=n.body,l=P8(c);else if(n.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(n.body),l=P8(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(Pi(d.formMethod))return{path:t,submission:d};let u=Wi(t);return e&&u.search&&ry(u.search)&&c.append("index",""),u.search="?"+c,{path:Ec(u),submission:d}}function pB(r,e){let t=r;if(e){let n=r.findIndex(i=>i.route.id===e);n>=0&&(t=r.slice(0,n))}return t}function I8(r,e,t,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=r.createURL(e.location),w=r.createURL(i),g=f?Object.keys(f)[0]:void 0,y=pB(t,g).filter((E,S)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(mB(e.loaderData,e.matches[S],E)||a.some(re=>re===E.route.id))return!0;let T=e.matches[S],O=E;return T8(E,Ot({currentUrl:m,currentParams:T.params,nextUrl:w,nextParams:O.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||hS(T,O)}))}),_=[];return c.forEach((E,S)=>{if(!t.some(ve=>ve.route.id===E.routeId))return;let T=Sl(d,E.path,u);if(!T){_.push({key:S,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(S),re=U4(T,E.path),ee=!1;l.has(S)?ee=!1:s.includes(S)?ee=!0:O&&O.state!=="idle"&&O.data===void 0?ee=o:ee=T8(re,Ot({currentUrl:m,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:t[t.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})),ee&&_.push({key:S,routeId:E.routeId,path:E.path,matches:T,match:re,controller:new AbortController})}),[y,_]}function mB(r,e,t){let n=!e||t.route.id!==e.route.id,i=r[t.route.id]===void 0;return n||i}function hS(r,e){let t=r.route.path;return r.pathname!==e.pathname||t!=null&&t.endsWith("*")&&r.params["*"]!==e.params["*"]}function T8(r,e){if(r.route.shouldRevalidate){let t=r.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function R8(r,e,t){if(!r.lazy)return;let n=await r.lazy();if(!r.lazy)return;let i=t[r.id];je(i,"No route found in manifest");let o={};for(let a in n){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Qa(!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&&!Oj.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,Ot({},e(i),{lazy:void 0}))}async function eu(r,e,t,n,i,o,a,s){s===void 0&&(s={});let c,l,d,u=p=>{let m,w=new Promise((g,v)=>m=v);return d=()=>m(),e.signal.addEventListener("abort",d),Promise.race([p({request:e,params:t.params,context:s.requestContext}),w])};try{let p=t.route[r];if(t.route.lazy)if(p){let m,w=await Promise.all([u(p).catch(g=>{m=g}),R8(t.route,o,i)]);if(m)throw m;l=w[0]}else if(await R8(t.route,o,i),p=t.route[r],p)l=await u(p);else if(r==="action"){let m=new URL(e.url),w=m.pathname+m.search;throw ni(405,{method:e.method,pathname:w,routeId:t.route.id})}else return{type:Jt.data,data:void 0};else if(p)l=await u(p);else{let m=new URL(e.url),w=m.pathname+m.search;throw ni(404,{pathname:w})}je(l!==void 0,"You defined "+(r==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+r+"` ")+"function. Please return a value or `null`.")}catch(p){c=Jt.error,l=p}finally{d&&e.signal.removeEventListener("abort",d)}if(_B(l)){let p=l.status;if(cB.has(p)){let g=l.headers.get("Location");if(je(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!uS.test(g))g=F4(new URL(e.url),n.slice(0,n.indexOf(t)+1),a,!0,g);else if(!s.isStaticRequest){let v=new URL(e.url),y=g.startsWith("//")?new URL(v.protocol+g):new URL(g),_=f1(y.pathname,a)!=null;y.origin===v.origin&&_&&(g=y.pathname+y.search+y.hash)}if(s.isStaticRequest)throw l.headers.set("Location",g),l;return{type:Jt.redirect,status:p,location:g,revalidate:l.headers.get("X-Remix-Revalidate")!==null,reloadDocument:l.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Jt.error?Jt.error:Jt.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===Jt.error?{type:c,error:new cS(p,l.statusText,m),headers:l.headers}:{type:Jt.data,data:m,statusCode:l.status,headers:l.headers}}if(c===Jt.error)return{type:c,error:l};if(yB(l)){var h,f;return{type:Jt.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:Jt.data,data:l}}function tu(r,e,t,n){let i=r.createURL(fS(e)).toString(),o={signal:t};if(n&&Pi(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=z4(n.formData):o.body=n.formData}return new Request(i,o)}function z4(r){let e=new URLSearchParams;for(let[t,n]of r.entries())e.append(t,typeof n=="string"?n:n.name);return e}function P8(r){let e=new FormData;for(let[t,n]of r.entries())e.append(t,n);return e}function vB(r,e,t,n,i){let o={},a=null,s,c=!1,l={};return t.forEach((d,u)=>{let h=e[u].route.id;if(je(!Dl(d),"Cannot handle redirect results in processLoaderData"),oh(d)){let f=Al(r,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=lS(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else Us(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 M8(r,e,t,n,i,o,a,s){let{loaderData:c,errors:l}=vB(e,t,n,i,s);for(let d=0;d<o.length;d++){let{key:u,match:h,controller:f}=o[d];je(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let p=a[d];if(!(f&&f.signal.aborted))if(oh(p)){let m=Al(r.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=Ot({},l,{[m.route.id]:p.error})),r.fetchers.delete(u)}else if(Dl(p))je(!1,"Unhandled fetcher revalidation redirect");else if(Us(p))je(!1,"Unhandled fetcher deferred data");else{let m=tl(p.data);r.fetchers.set(u,m)}}return{loaderData:c,errors:l}}function $8(r,e,t,n){let i=Ot({},e);for(let o of t){let a=o.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):r[a]!==void 0&&o.route.loader&&(i[a]=r[a]),n&&n.hasOwnProperty(a))break}return i}function Al(r,e){return(e?r.slice(0,r.findIndex(n=>n.route.id===e)+1):[...r]).reverse().find(n=>n.route.hasErrorBoundary===!0)||r[0]}function H8(r){let e=r.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function ni(r,e){let{pathname:t,routeId:n,method:i,type:o}=e===void 0?{}:e,a="Unknown Server Error",s="Unknown @remix-run/router error";return r===400?(a="Bad Request",i&&t&&n?s="You made a "+i+' request to "'+t+'" 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")):r===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+t+'"'):r===404?(a="Not Found",s='No route matches URL "'+t+'"'):r===405&&(a="Method Not Allowed",i&&t&&n?s="You made a "+i.toUpperCase()+' request to "'+t+'" 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 cS(r||500,a,new Error(s),!0)}function Z8(r){for(let e=r.length-1;e>=0;e--){let t=r[e];if(Dl(t))return{result:t,idx:e}}}function fS(r){let e=typeof r=="string"?Wi(r):r;return Ec(Ot({},e,{hash:""}))}function gB(r,e){return r.pathname!==e.pathname||r.search!==e.search?!1:r.hash===""?e.hash!=="":r.hash===e.hash?!0:e.hash!==""}function Us(r){return r.type===Jt.deferred}function oh(r){return r.type===Jt.error}function Dl(r){return(r&&r.type)===Jt.redirect}function yB(r){let e=r;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function _B(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function bB(r){return sB.has(r.toLowerCase())}function Pi(r){return oB.has(r.toLowerCase())}async function O8(r,e,t,n,i,o){for(let a=0;a<t.length;a++){let s=t[a],c=e[a];if(!c)continue;let l=r.find(u=>u.route.id===c.route.id),d=l!=null&&!hS(l,c)&&(o&&o[c.route.id])!==void 0;if(Us(s)&&(i||d)){let u=n[a];je(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await pS(s,u,i).then(h=>{h&&(t[a]=h||t[a])})}}}async function pS(r,e,t){if(t===void 0&&(t=!1),!await r.deferredData.resolveData(e)){if(t)try{return{type:Jt.data,data:r.deferredData.unwrappedData}}catch(i){return{type:Jt.error,error:i}}return{type:Jt.data,data:r.deferredData.data}}}function ry(r){return new URLSearchParams(r).getAll("index").some(e=>e==="")}function U4(r,e){let t=typeof e=="string"?Wi(e).search:e.search;if(r[r.length-1].route.index&&ry(t||""))return r[r.length-1];let n=sS(r);return n[n.length-1]}function L8(r){let{formMethod:e,formAction:t,formEncType:n,text:i,formData:o,json:a}=r;if(!(!e||!t||!n)){if(i!=null)return{formMethod:e,formAction:t,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:t,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:t,formEncType:n,formData:void 0,json:a,text:void 0}}}function wv(r,e){return e?{state:"loading",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wB(r,e){return{state:"submitting",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function ru(r,e){return r?{state:"loading",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xB(r,e){return{state:"submitting",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e?e.data:void 0}}function tl(r){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}const CB=r=>{switch(r){case"hash":return Hj({v5Compat:!0});case"memory":return Mj({v5Compat:!0});case"browser":default:return $j({v5Compat:!0})}};var jt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},pf=function(r,e,t,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"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ti,fp,j4,pp,to,Tu;const N8=r=>typeof r=="object"&&"key"in r;class EB extends Ne{get basename(){return jt(this,fp,"f")}get origin(){return jt(this,j4,"f")}get state(){return jt(this,to,"f").asObservable()}get value(){return jt(this,to,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(i=>jt(this,to,"f").subscribe(i)),ti.set(this,void 0),fp.set(this,void 0),j4.set(this,window.location.origin),pp.set(this,new tn),to.set(this,void 0),Tu.set(this,void 0);const{basename:t,history:n}=e;pf(this,Tu,e.logger||console,"f"),pf(this,fp,t,"f"),pf(this,ti,n,"f"),pf(this,to,new hd({action:jt(this,ti,"f").action,location:jt(this,ti,"f").location,delta:null}),"f"),jt(this,pp,"f").add(jt(this,ti,"f").listen(i=>{i.location.key!==jt(this,to,"f").value.location.key&&jt(this,to,"f").next(i)}))}encodeLocation(e){return jt(this,ti,"f").encodeLocation(e)}listen(e){const t=jt(this,to,"f").subscribe(e);return jt(this,Tu,"f").debug("Navigator::listen",e),()=>(jt(this,Tu,"f").debug("Navigator::listen[unsubscribe]",e),t.unsubscribe())}createHref(e){return jt(this,ti,"f").createHref(e)}go(e){jt(this,ti,"f").go(e)}push(e,t){if(!(N8(e)&&this._isDuplicateLocation(e)))return jt(this,ti,"f").push(e,t)}replace(e,t){if(!(N8(e)&&this._isDuplicateLocation(e)))return jt(this,ti,"f").replace(e,t)}createURL(e){return jt(this,ti,"f").createURL(e)}_isDuplicateLocation(e){return e.key===jt(this,to,"f").value.location.key}dispose(){jt(this,pp,"f").unsubscribe()}}ti=new WeakMap,fp=new WeakMap,j4=new WeakMap,pp=new WeakMap,to=new WeakMap,Tu=new WeakMap;var Jn=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},D8=function(r,e,t,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"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},Ai,Ps;const V8=r=>r.replace(/\/+/g,"/");class kB extends TE{get state$(){return Jn(this,Ai,"f").pipe(Qe(e=>Jn(this,Ps,"f")?e.location.pathname.startsWith(Jn(this,Ps,"f")):!0),Ze(({action:e,location:t})=>({action:e,location:this._localizePath(t)})))}get navigator(){return Jn(this,Ai,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),Ai.set(this,void 0),Ps.set(this,void 0);const{basename:t,history:n}=e.config;if(D8(this,Ps,t,"f"),!n)throw Error("no history provided!");D8(this,Ai,new EB({basename:t,history:n}),"f"),this._addTeardown(()=>Jn(this,Ai,"f").dispose())}createRouter(e){const t=Jn(this,Ai,"f");console.debug("NavigationProvider::createRouter",e);const n=hB({basename:t.basename,history:t,routes:e,future:{v7_prependBasename:!0}});return n.initialize(),n}createHref(e){return Jn(this,Ai,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Jn(this,Ai,"f").createURL(this._createToPath(e??this.path))}push(e,t){return Jn(this,Ai,"f").push(this._createToPath(e),t)}replace(e,t){return Jn(this,Ai,"f").replace(this._createToPath(e),t)}_localizePath(e){var t;const{pathname:n,search:i,hash:o}=e;return{pathname:V8(n.replace((t=Jn(this,Ps,"f"))!==null&&t!==void 0?t:"","")),search:i,hash:o}}_createToPath(e){const{pathname:t,search:n,hash:i}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:V8([Jn(this,Ps,"f"),t==="/"?void 0:t].filter(o=>!!o).join("/")),search:n,hash:i}}}Ai=new WeakMap,Ps=new WeakMap;const F8="3.1.3",SB="navigation",AB={version:new qu(F8),name:SB,configure:r=>{const e=new Pj;return r&&(e.history=r.navigation.navigator),e},initialize:({config:r})=>{var e;return(e=r.history)!==null&&e!==void 0||(r.history=CB()),new kB({version:F8,config:r})},dispose({instance:r}){r.dispose()}},IB=(r,e)=>{const t=typeof e=="string"?{configure:n=>{n.basename=e}}:e;r.addConfig(Object.assign({module:AB},t))},TB=async r=>{r.logger.level=0,r.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),r.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),hj(r),IB(r),CV(r),Rj(r,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),r.onConfigured(()=>{console.log("framework config done")}),r.onInitialized(async e=>{e.auth.defaultClient.setLogger(new qE(0)),console.debug("📒 subscribing to all events")})},RB="bookmarkId",PB=r=>{const{event:e,context:t,navigation:{navigator:n}}=Pn().modules;b.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",o=>{var a;const{appKey:s,context:c}=o.detail,l=r.resolveAppPath(s);if(n.location.pathname!==l){const{hash:d,search:u}=n.location,h={pathname:l,search:MB(u),hash:d};n.push(h)}c&&((a=t.currentContext)===null||a===void 0?void 0:a.id)!==c.id&&t.setCurrentContextByIdAsync(c.id)}),[r,t,e,n])};function MB(r){const e=new URLSearchParams(r);return e.delete(RB),`?${e.toString()}`}const $B=()=>{const r=Pn().modules.event,[e,t]=b.useState(!1);return b.useEffect(()=>{const n=r.addEventListener("onBookmarkChanged",()=>{t(!1)}),i=r.addEventListener("onAddCreator",()=>{t(!0)});return()=>{n(),i()}},[r]),e};/**
|
|
420
420
|
* React Router v6.16.0
|
|
421
421
|
*
|
|
422
422
|
* Copyright (c) Remix Software Inc.
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "9.5.
|
|
1
|
+
export declare const version = "9.5.2";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '9.5.
|
|
1
|
+
export const version = '9.5.2';
|
|
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.5.
|
|
3
|
+
"version": "9.5.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"vite-plugin-environment": "^1.1.3",
|
|
50
50
|
"vite-plugin-restart": "^0.4.0",
|
|
51
51
|
"vite-tsconfig-paths": "^4.2.0",
|
|
52
|
-
"@equinor/fusion-framework-app": "^7.1.
|
|
53
|
-
"@equinor/fusion-
|
|
54
|
-
"@equinor/fusion-
|
|
52
|
+
"@equinor/fusion-framework-app": "^7.1.11",
|
|
53
|
+
"@equinor/fusion-observable": "^8.1.3",
|
|
54
|
+
"@equinor/fusion-framework-react-components-people-provider": "^1.1.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@equinor/eds-core-react": "^0.34.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@equinor/fusion-react-button": "^0.9.0",
|
|
61
61
|
"@equinor/fusion-react-context-selector": "^0.5.0",
|
|
62
62
|
"@equinor/fusion-react-icon": "^0.3.0",
|
|
63
|
-
"@equinor/fusion-react-menu": "^0.
|
|
63
|
+
"@equinor/fusion-react-menu": "^0.3.0",
|
|
64
64
|
"@equinor/fusion-react-person": "^0.6.0",
|
|
65
65
|
"@equinor/fusion-react-progress-indicator": "^0.2.0",
|
|
66
|
-
"@equinor/fusion-react-side-sheet": "1.2.
|
|
66
|
+
"@equinor/fusion-react-side-sheet": "1.2.3",
|
|
67
67
|
"@equinor/fusion-react-styles": "^0.6.0",
|
|
68
68
|
"@material-ui/styles": "^4.11.5",
|
|
69
69
|
"@types/express": "^4.17.17",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
"styled-components": "^6.0.7",
|
|
79
79
|
"types": "link:./types",
|
|
80
80
|
"typescript": "^5.1.3",
|
|
81
|
-
"@equinor/fusion-framework": "^7.0.
|
|
82
|
-
"@equinor/fusion-framework-app": "^7.1.
|
|
83
|
-
"@equinor/fusion-framework-module-app": "^5.2.
|
|
84
|
-
"@equinor/fusion-framework-module-bookmark": "^1.0.
|
|
85
|
-
"@equinor/fusion-framework-module-
|
|
86
|
-
"@equinor/fusion-framework-module-
|
|
87
|
-
"@equinor/fusion-framework-module-
|
|
88
|
-
"@equinor/fusion-framework-module-
|
|
89
|
-
"@equinor/fusion-framework-react": "^5.3.
|
|
90
|
-
"@equinor/fusion-framework-module-
|
|
91
|
-
"@equinor/fusion-framework-react-components-bookmark": "^0.2.
|
|
92
|
-
"@equinor/fusion-
|
|
93
|
-
"@equinor/fusion-
|
|
81
|
+
"@equinor/fusion-framework": "^7.0.24",
|
|
82
|
+
"@equinor/fusion-framework-app": "^7.1.11",
|
|
83
|
+
"@equinor/fusion-framework-module-app": "^5.2.11",
|
|
84
|
+
"@equinor/fusion-framework-module-bookmark": "^1.0.16",
|
|
85
|
+
"@equinor/fusion-framework-module-context": "^4.0.18",
|
|
86
|
+
"@equinor/fusion-framework-module-http": "^5.1.2",
|
|
87
|
+
"@equinor/fusion-framework-module-msal": "^3.0.8",
|
|
88
|
+
"@equinor/fusion-framework-module-services": "^3.2.3",
|
|
89
|
+
"@equinor/fusion-framework-react": "^5.3.4",
|
|
90
|
+
"@equinor/fusion-framework-module-navigation": "^3.1.3",
|
|
91
|
+
"@equinor/fusion-framework-react-components-bookmark": "^0.2.13",
|
|
92
|
+
"@equinor/fusion-query": "^4.0.4",
|
|
93
|
+
"@equinor/fusion-framework-react-module-bookmark": "^2.0.23"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"prebuild": "pnpm build:source",
|