@techdocs/cli 1.7.0 → 1.8.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/cjs/{generate-5fb2bc8c.cjs.js → generate-f9a039d6.cjs.js} +3 -2
- package/dist/cjs/{generate-5fb2bc8c.cjs.js.map → generate-f9a039d6.cjs.js.map} +1 -1
- package/dist/cjs/{mkdocs-062c745e.cjs.js → mkdocs-35db8d18.cjs.js} +2 -2
- package/dist/cjs/{mkdocs-062c745e.cjs.js.map → mkdocs-35db8d18.cjs.js.map} +1 -1
- package/dist/cjs/{serve-d8eba600.cjs.js → serve-a43e7800.cjs.js} +6 -3
- package/dist/cjs/{serve-d8eba600.cjs.js.map → serve-a43e7800.cjs.js.map} +1 -1
- package/dist/cjs/{utils-fa60b533.cjs.js → utils-8afb2c2c.cjs.js} +9 -3
- package/dist/cjs/{utils-fa60b533.cjs.js.map → utils-8afb2c2c.cjs.js.map} +1 -1
- package/dist/embedded-app/.config-schema.json +773 -224
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/1032.aea6b1b2.chunk.js +5 -0
- package/dist/embedded-app/static/1032.aea6b1b2.chunk.js.map +1 -0
- package/dist/embedded-app/static/1105.e51fa25d.chunk.js +5 -0
- package/dist/embedded-app/static/1105.e51fa25d.chunk.js.map +1 -0
- package/dist/embedded-app/static/1113.b630124a.chunk.js +7 -0
- package/dist/embedded-app/static/1113.b630124a.chunk.js.map +1 -0
- package/dist/embedded-app/static/184.850e2e74.chunk.js +5 -0
- package/dist/embedded-app/static/184.850e2e74.chunk.js.map +1 -0
- package/dist/embedded-app/static/192.00f4964b.chunk.js +3 -0
- package/dist/embedded-app/static/192.00f4964b.chunk.js.map +1 -0
- package/dist/embedded-app/static/2440.82f480f9.chunk.js +5 -0
- package/dist/embedded-app/static/2440.82f480f9.chunk.js.map +1 -0
- package/dist/embedded-app/static/3487.7e91c5f8.chunk.js +5 -0
- package/dist/embedded-app/static/3487.7e91c5f8.chunk.js.map +1 -0
- package/dist/embedded-app/static/{3510.6d8cb98c.chunk.js → 3510.3082d0d9.chunk.js} +1 -1
- package/dist/embedded-app/static/{3510.6d8cb98c.chunk.js.map → 3510.3082d0d9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{4109.6335d16f.chunk.js → 4109.703c7257.chunk.js} +1 -1
- package/dist/embedded-app/static/4109.703c7257.chunk.js.map +1 -0
- package/dist/embedded-app/static/5458.1ea3fc06.chunk.js +5 -0
- package/dist/embedded-app/static/5458.1ea3fc06.chunk.js.map +1 -0
- package/dist/embedded-app/static/{5877.c521a57f.chunk.js → 5877.a7d3fb6d.chunk.js} +2 -2
- package/dist/embedded-app/static/5877.a7d3fb6d.chunk.js.map +1 -0
- package/dist/embedded-app/static/{5914.633b2934.chunk.js → 5914.1a3da6a4.chunk.js} +1 -1
- package/dist/embedded-app/static/{5914.633b2934.chunk.js.map → 5914.1a3da6a4.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{6051.9eefea24.chunk.js → 6051.7b016fe3.chunk.js} +2 -2
- package/dist/embedded-app/static/{6051.9eefea24.chunk.js.map → 6051.7b016fe3.chunk.js.map} +1 -1
- package/dist/embedded-app/static/7670.45b5aa4c.chunk.js +3 -0
- package/dist/embedded-app/static/7670.45b5aa4c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{7750.cb06dc85.chunk.js → 7750.80c8867a.chunk.js} +1 -1
- package/dist/embedded-app/static/7750.80c8867a.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8096.752da27d.chunk.js → 8096.c58c75a0.chunk.js} +1 -1
- package/dist/embedded-app/static/8096.c58c75a0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8662.7243a5c6.chunk.js → 8662.f83727a2.chunk.js} +1 -1
- package/dist/embedded-app/static/{8662.7243a5c6.chunk.js.map → 8662.f83727a2.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8951.6ae94626.chunk.js → 8951.1fe70f2a.chunk.js} +1 -1
- package/dist/embedded-app/static/{8951.6ae94626.chunk.js.map → 8951.1fe70f2a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/9545.90e07357.chunk.js +5 -0
- package/dist/embedded-app/static/9545.90e07357.chunk.js.map +1 -0
- package/dist/embedded-app/static/9770.f8df1ebe.chunk.js +5 -0
- package/dist/embedded-app/static/9770.f8df1ebe.chunk.js.map +1 -0
- package/dist/embedded-app/static/9814.75879d4f.chunk.js +3 -0
- package/dist/embedded-app/static/9814.75879d4f.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.58e94ce8.js +491 -0
- package/dist/embedded-app/static/main.58e94ce8.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.263ce9b5.js → module-material-ui.0420d68d.js} +2 -2
- package/dist/embedded-app/static/{module-material-ui.263ce9b5.js.map → module-material-ui.0420d68d.js.map} +1 -1
- package/dist/embedded-app/static/module-react-router-dom.48ea1f60.js +22 -0
- package/dist/embedded-app/static/module-react-router-dom.48ea1f60.js.map +1 -0
- package/dist/embedded-app/static/module-react-router.67245b2c.js +22 -0
- package/dist/embedded-app/static/module-react-router.67245b2c.js.map +1 -0
- package/dist/embedded-app/static/{runtime.6ea4af3c.js → runtime.58e94ce8.js} +3 -3
- package/dist/embedded-app/static/runtime.58e94ce8.js.map +1 -0
- package/dist/embedded-app/static/vendor.58e94ce8.js +164 -0
- package/dist/embedded-app/static/vendor.58e94ce8.js.map +1 -0
- package/dist/index.cjs.js +20 -4
- package/dist/index.cjs.js.map +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/1032.88fa9fda.chunk.js +0 -5
- package/dist/embedded-app/static/1032.88fa9fda.chunk.js.map +0 -1
- package/dist/embedded-app/static/1105.2ef0665c.chunk.js +0 -5
- package/dist/embedded-app/static/1105.2ef0665c.chunk.js.map +0 -1
- package/dist/embedded-app/static/1600.ec5e759e.chunk.js +0 -3
- package/dist/embedded-app/static/1600.ec5e759e.chunk.js.map +0 -1
- package/dist/embedded-app/static/184.8fc549e9.chunk.js +0 -5
- package/dist/embedded-app/static/184.8fc549e9.chunk.js.map +0 -1
- package/dist/embedded-app/static/2440.2451b337.chunk.js +0 -5
- package/dist/embedded-app/static/2440.2451b337.chunk.js.map +0 -1
- package/dist/embedded-app/static/3487.1c93df49.chunk.js +0 -5
- package/dist/embedded-app/static/3487.1c93df49.chunk.js.map +0 -1
- package/dist/embedded-app/static/4109.6335d16f.chunk.js.map +0 -1
- package/dist/embedded-app/static/5458.abed4572.chunk.js +0 -5
- package/dist/embedded-app/static/5458.abed4572.chunk.js.map +0 -1
- package/dist/embedded-app/static/5877.c521a57f.chunk.js.map +0 -1
- package/dist/embedded-app/static/7241.a066d2d0.chunk.js +0 -3
- package/dist/embedded-app/static/7241.a066d2d0.chunk.js.map +0 -1
- package/dist/embedded-app/static/7670.9faef6c0.chunk.js +0 -3
- package/dist/embedded-app/static/7670.9faef6c0.chunk.js.map +0 -1
- package/dist/embedded-app/static/7750.cb06dc85.chunk.js.map +0 -1
- package/dist/embedded-app/static/8096.752da27d.chunk.js.map +0 -1
- package/dist/embedded-app/static/8629.ee337616.chunk.js +0 -7
- package/dist/embedded-app/static/8629.ee337616.chunk.js.map +0 -1
- package/dist/embedded-app/static/9545.8e4a2868.chunk.js +0 -5
- package/dist/embedded-app/static/9545.8e4a2868.chunk.js.map +0 -1
- package/dist/embedded-app/static/9770.2d75fe33.chunk.js +0 -5
- package/dist/embedded-app/static/9770.2d75fe33.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.6ea4af3c.js +0 -487
- package/dist/embedded-app/static/main.6ea4af3c.js.map +0 -1
- package/dist/embedded-app/static/module-react-router-dom.9e5a6865.js +0 -22
- package/dist/embedded-app/static/module-react-router-dom.9e5a6865.js.map +0 -1
- package/dist/embedded-app/static/module-react-router.d96a5b36.js +0 -22
- package/dist/embedded-app/static/module-react-router.d96a5b36.js.map +0 -1
- package/dist/embedded-app/static/runtime.6ea4af3c.js.map +0 -1
- package/dist/embedded-app/static/vendor.6ea4af3c.js +0 -207
- package/dist/embedded-app/static/vendor.6ea4af3c.js.map +0 -1
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[179],{88797:function(_,P,t){"use strict";t.d(P,{n:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},34106:function(_,P,t){"use strict";t.d(P,{Tf:function(){return d},l2:function(){return i},zG:function(){return o}});const o="default",i="backstage.io/view-url",d="backstage.io/edit-url",b="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",f="kubernetes.io/auth-provider"},74314:function(_,P,t){"use strict";t.d(P,{eE:function(){return m},iB:function(){return d},of:function(){return b}});var o=t(34106);function i(f){let l=f.indexOf(":");const p=f.indexOf("/");p!==-1&&p<l&&(l=-1);const S=l===-1?void 0:f.slice(0,l),A=p===-1?void 0:f.slice(l+1,p),R=f.slice(Math.max(l+1,p+1));if(S===""||A===""||R==="")throw new TypeError(`Entity reference "${f}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:S,namespace:A,name:R}}function d(f){return{kind:f.kind,namespace:f.metadata.namespace||o.zG,name:f.metadata.name}}function b(f,l){if(!f)throw new Error("Entity reference must not be empty");const p=l==null?void 0:l.defaultKind,S=(l==null?void 0:l.defaultNamespace)||o.zG;let A,R,x;if(typeof f=="string"){const w=i(f);var C;A=(C=w.kind)!==null&&C!==void 0?C:p;var E;R=(E=w.namespace)!==null&&E!==void 0?E:S,x=w.name}else{var M;A=(M=f.kind)!==null&&M!==void 0?M:p;var B;R=(B=f.namespace)!==null&&B!==void 0?B:S,x=f.name}if(A)if(R){if(!x){const w=JSON.stringify(f);throw new Error(`Entity reference ${w} had missing or empty name`)}}else{const w=JSON.stringify(f);throw new Error(`Entity reference ${w} had missing or empty namespace`)}else{const w=JSON.stringify(f);throw new Error(`Entity reference ${w} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:A,namespace:R,name:x}}function m(f){let l,p,S;if("metadata"in f){l=f.kind;var A;p=(A=f.metadata.namespace)!==null&&A!==void 0?A:o.zG,S=f.metadata.name}else{l=f.kind;var R;p=(R=f.namespace)!==null&&R!==void 0?R:o.zG,S=f.name}return`${l.toLocaleLowerCase("en-US")}:${p.toLocaleLowerCase("en-US")}/${S.toLocaleLowerCase("en-US")}`}},8709:function(_,P,t){"use strict";t.d(P,{S4:function(){return o},aS:function(){return E},cz:function(){return C},nP:function(){return l},w$:function(){return p}});const o="ownedBy",i="ownerOf",d="consumesApi",b="apiConsumedBy",m="providesApi",f="apiProvidedBy",l="dependsOn",p="dependencyOf",S="parentOf",A="childOf",R="memberOf",x="hasMember",C="partOf",E="hasPart"},90663:function(_,P,t){"use strict";t.d(P,{M6:function(){return d},P1:function(){return o}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},51547:function(_,P,t){"use strict";t.d(P,{CV:function(){return f},NZ:function(){return m},Ou:function(){return b}});var o=t(74314),i=t(90663);const d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function b(l){if(typeof l!="string")throw new TypeError(`Unable to parse location ref '${l}', unexpected argument ${typeof l}`);const p=l.indexOf(":");if(p<0)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const S=l.substring(0,p).trim(),A=l.substring(p+1).trim();if(!S||!A)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(S==="http"||S==="https")throw new TypeError(`Invalid location ref '${l}', please prefix it with 'url:', e.g. 'url:${l}'`);if(d.test(A))throw new TypeError(`Invalid location ref '${l}', target is a javascript: URL`);return{type:S,target:A}}function m(l){const{type:p,target:S}=l;if(p){if(!S)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(S))throw new TypeError(`Invalid location ref '${p}:${S}', target is a javascript: URL`);return`${p}:${S}`}function f(l){var p,S,A,R,x;const C=(x=(S=l.metadata)===null||S===void 0||(p=S.annotations)===null||p===void 0?void 0:p[i.M6])!==null&&x!==void 0?x:(R=l.metadata)===null||R===void 0||(A=R.annotations)===null||A===void 0?void 0:A[i.P1];if(!C)throw new Error(`Entity '${(0,o.eE)(l)}' is missing location`);return b(C)}},9791:function(_,P,t){"use strict";t.d(P,{O:function(){return S}});var o=t(52322),i=t(62774),d=t(60364),b=t(2784),m=t(83229),f=t(26639),l=t(39595),p=t(58033);function S(A){const{text:R,language:x,showLineNumbers:C=!1,highlightedNumbers:E,customStyle:M,showCopyCodeButton:B=!1}=A,w=(0,d.Z)(),U=w.palette.type==="dark"?f.Z:l.Z,T=w.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.Z,{position:"relative",children:[(0,o.jsx)(m.Z,{customStyle:M,language:x,style:U,showLineNumbers:C,wrapLines:!0,lineNumberStyle:{color:w.palette.textVerySubtle},lineProps:g=>E!=null&&E.includes(g)?{style:{backgroundColor:T}}:{},children:R}),B&&(0,o.jsx)(i.Z,{position:"absolute",top:0,right:0,children:(0,o.jsx)(p.b,{text:R})})]})}},58033:function(_,P,t){"use strict";t.d(P,{b:function(){return S}});var o=t(52322),i=t(44394),d=t(58513),b=t(61837),m=t(80030),f=t(19353),l=t(2784),p=t(95074);function S(A){const{text:R,tooltipDelay:x=1e3,tooltipText:C="Text copied to clipboard","aria-label":E="Copy text"}=A,M=(0,i.h_)(d.V),[B,w]=(0,l.useState)(!1),[{error:U},T]=(0,p.Z)();(0,l.useEffect)(()=>{U&&M.post(U)},[U,M]);const g=K=>{K.stopPropagation(),w(!0),T(R)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(m.ZP,{id:"copy-test-tooltip",title:C,placement:"top",leaveDelay:x,onClose:()=>w(!1),open:B,children:(0,o.jsx)(b.Z,{onClick:g,"aria-label":E,children:(0,o.jsx)(f.Z,{})})})})}},70249:function(_,P,t){"use strict";t.d(P,{u:function(){return C}});var o=t(52322),i=t(60905),d=t(79692),b=t(90436),m=t(2784),f=t.p+"static/missingAnnotation.67f79e98..svg",l=t.p+"static/noInformation.4b426325..svg",p=t.p+"static/createComponent.975d1e1e..svg",S=t.p+"static/noBuild.1715fa71..svg";const A=(0,d.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),R=({missing:E})=>{const M=A();switch(E){case"field":return(0,o.jsx)("img",{src:f,className:M.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:l,alt:"no Information",className:M.generalImg});case"content":return(0,o.jsx)("img",{src:p,alt:"create Component",className:M.generalImg});case"data":return(0,o.jsx)("img",{src:S,alt:"no Build",className:M.generalImg});default:return null}},x=(0,d.Z)(E=>({root:{backgroundColor:E.palette.background.default,padding:E.spacing(2,0,0,0)},action:{marginTop:E.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function C(E){const{title:M,description:B,missing:w,action:U}=E,T=x();return(0,o.jsxs)(i.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:T.root,spacing:2,children:[(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.Z,{container:!0,direction:"column",children:[(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(b.Z,{variant:"h5",children:M})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(b.Z,{variant:"body1",children:B})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,className:T.action,children:U})]})}),(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,className:T.imageContainer,children:typeof w=="string"?(0,o.jsx)(R,{missing:w}):w.customImage})]})}},74359:function(_,P,t){"use strict";t.d(P,{y:function(){return R}});var o=t(52322),i=t(79692),d=t(11776),b=t(38402),m=t(49378),f=t(2784),l=t(58033),p=t(538);const S=(0,i.Z)(x=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:x.spacing(2)},divider:{margin:x.spacing(2)}}),{name:"BackstageErrorPanel"}),A=({error:x,message:C,stack:E,children:M})=>{const B=S();return(0,o.jsxs)(d.Z,{dense:!0,children:[(0,o.jsxs)(b.Z,{alignItems:"flex-start",children:[(0,o.jsx)(m.Z,{classes:{secondary:B.text},primary:"Error",secondary:x}),(0,o.jsx)(l.b,{text:x})]}),(0,o.jsxs)(b.Z,{alignItems:"flex-start",children:[(0,o.jsx)(m.Z,{classes:{secondary:B.text},primary:"Message",secondary:C}),(0,o.jsx)(l.b,{text:C})]}),E&&(0,o.jsxs)(b.Z,{alignItems:"flex-start",children:[(0,o.jsx)(m.Z,{classes:{secondary:B.text},primary:"Stack Trace",secondary:E}),(0,o.jsx)(l.b,{text:E})]}),M]})};function R(x){const{title:C,error:E,defaultExpanded:M,titleFormat:B,children:w}=x;return(0,o.jsx)(p.G,{severity:"error",title:C!=null?C:E.message,defaultExpanded:M,titleFormat:B,children:(0,o.jsx)(A,{error:E.name,message:E.message,stack:E.stack,children:w})})}},98864:function(_,P,t){"use strict";t.d(P,{rU:function(){return H}});var o=t(52322),i=t(44394),d=t(6542),b=t(62369),m=t(86689),f=t(79692),l=t(90436),p=t(72779),S=t.n(p),A=t(76635),R=t.n(A),x=t(2784),C=t(73557),E=t(71597);function M(){const[G]=(0,C.is)((0,o.jsx)(C.AW,{index:!0,element:(0,o.jsx)("div",{})}));return!G.index}const B=(0,f.Z)({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"}},{name:"Link"}),w=G=>/^([a-z+.-]+):/.test(G),U=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,T=window.open;if(T&&!T.__backstage){const G=function(...Y){const ot=String(Y[0]);if(U.test(ot))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return T.apply(this,Y)};G.__backstage=!0,window.open=G}const g=()=>{try{return(0,i.h_)(d.D).getOptionalString("app.baseUrl")}catch{return}},K=()=>{const G="http://sample.dev";var z;const Y=(z=g())!==null&&z!==void 0?z:"/",{pathname:ot}=new URL(Y,G);return(0,A.trimEnd)(ot,"/")},V=G=>{let z=String(G);const Y=K(),ot=w(z),lt=z.startsWith(Y);return!ot&&!lt&&(z=Y.concat(z)),z},X=G=>{if(G instanceof Array)return G.map(X).join(" ").trim();if(typeof G=="object"&&G){var z;return X(G==null||(z=G.props)===null||z===void 0?void 0:z.children)}return["string","number"].includes(typeof G)?String(G):""},H=x.forwardRef(({onClick:G,noTrack:z,...Y},ot)=>{const lt=B(),ht=(0,b.z)(),ft=M()?V(Y.to):Y.to,pt=X(Y.children)||ft,ct=w(ft),mt=ct&&!!/^https?:/.exec(ft);if(U.test(ft))throw new Error("Link component rejected javascript: URL as a security precaution");const Q=$=>{G==null||G($),z||ht.captureEvent("click",pt,{attributes:{to:ft}})};return ct?(0,o.jsxs)(m.Z,{...mt?{target:"_blank",rel:"noopener"}:{},...Y,...Y["aria-label"]?{"aria-label":`${Y["aria-label"]}, Opens in a new window`}:{},ref:ot,href:ft,onClick:Q,className:S()(lt.externalLink,Y.className),children:[Y.children,(0,o.jsx)(l.Z,{component:"span",className:lt.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(m.Z,{...Y,ref:ot,component:E.rU,to:ft,onClick:Q})})},15929:function(_,P,t){"use strict";t.d(P,{Q:function(){return f}});var o=t(52322),i=t(77277),d=t(2784),b=t(98864);const m=d.forwardRef((p,S)=>(0,o.jsx)(b.rU,{ref:S,...p,color:"initial"})),f=d.forwardRef((p,S)=>(0,o.jsx)(i.Z,{ref:S,component:m,...p})),l=null},78527:function(_,P,t){"use strict";t.d(P,{S:function(){return R}});var o=t(52322),i=t(79692),d=t(28865),b=t(60251),m=t(2784),f=t(9791);const l=(0,i.Z)(x=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${x.palette.border}`},"& th, & td":{border:`1px solid ${x.palette.border}`,padding:x.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:x.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:x.palette.background.paper},"& tr":{backgroundColor:x.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:x.palette.background.default},"& a":{color:x.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),p=(x,C)=>C?typeof C=="string"?x+C:m.Children.toArray(C.props.children).reduce(p,x):x,S=({level:x,children:C})=>{const B=m.Children.toArray(C).reduce(p,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${x}`,{id:B},C)},A={code:({inline:x,className:C,children:E,...M})=>{const B=String(E).replace(/\n+$/,""),w=/language-(\w+)/.exec(C||"");return!x&&w?(0,o.jsx)(f.O,{language:w[1],text:B}):(0,o.jsx)("code",{className:C,...M,children:E})},h1:S,h2:S,h3:S,h4:S,h5:S,h6:S};function R(x){const{content:C,dialect:E="gfm",linkTarget:M,transformLinkUri:B,transformImageUri:w,className:U}=x,T=l();return(0,o.jsx)(d.D,{remarkPlugins:E==="gfm"?[b.Z]:[],className:`${T.markdown} ${U}`,children:C,components:A,linkTarget:M,transformLinkUri:B,transformImageUri:w})}},55015:function(_,P,t){"use strict";t.d(P,{E:function(){return f}});var o=t(52322),i=t(62774),d=t(67358),b=t(60364),m=t(2784);function f(l){const p=(0,b.Z)(),[S,A]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const R=setTimeout(()=>A(!0),p.transitions.duration.short);return()=>clearTimeout(R)},[p.transitions.duration.short]),S?(0,o.jsx)(d.Z,{...l,"data-testid":"progress"}):(0,o.jsx)(i.Z,{display:"none"})}},35879:function(_,P,t){"use strict";t.d(P,{H:function(){return H}});var o=t(52322),i=t(62774),d=t(21324),b=t(7089),m=t(30192),f=t(74603),l=t(56939),p=t(12231),S=t(73698),A=t(15459),R=t(42494),x=t(79692),C=t(90436),E=t(2784),M=t(72379);const B=(0,x.Z)(G=>(0,R.Z)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var U=()=>{const G=B();return(0,o.jsx)(M.Z,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"})})};const T=(0,x.Z)(G=>(0,R.Z)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var K=()=>{const G=T();return(0,o.jsx)(M.Z,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"})})};const V=(0,A.Z)(G=>(0,R.Z)({root:{"label + &":{marginTop:G.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:G.palette.primary.main}},input:{borderRadius:G.shape.borderRadius,position:"relative",backgroundColor:G.palette.background.paper,border:"1px solid #ced4da",fontSize:G.typography.body1.fontSize,padding:G.spacing(1.25,3.25,1.25,1.5),transition:G.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:G.palette.background.paper,borderRadius:G.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(f.Z),X=(0,x.Z)(G=>(0,R.Z)({formControl:{margin:G.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function H(G){const{multiple:z,items:Y,label:ot,placeholder:lt,selected:ht,onChange:ft,triggerReset:pt,native:ct=!1,disabled:mt=!1,margin:Q}=G,$=X(),[J,et]=(0,E.useState)(ht||(z?[]:"")),[it,ut]=(0,E.useState)(!1);(0,E.useEffect)(()=>{et(z?[]:"")},[pt,z]),(0,E.useEffect)(()=>{et(ht||(z?[]:""))},[ht,z]);const F=dt=>{et(dt.target.value),ft(dt.target.value)},Z=dt=>{if(mt){dt.preventDefault();return}ut(Ct=>z&&!(dt.target instanceof HTMLElement)?!0:!Ct)},Et=()=>{ut(!1)},At=dt=>()=>{const Ct=J.filter(xt=>xt!==dt);et(Ct),ft(Ct)};return(0,o.jsx)(i.Z,{className:$.root,children:(0,o.jsxs)(m.Z,{className:$.formControl,children:[(0,o.jsx)(l.Z,{className:$.formLabel,children:ot}),(0,o.jsxs)(S.Z,{"aria-label":ot,value:J,native:ct,disabled:mt,"data-testid":"select",displayEmpty:!0,multiple:z,margin:Q,onChange:F,open:it,onOpen:Z,onClose:Et,input:(0,o.jsx)(V,{}),label:ot,renderValue:dt=>{var Ct;return z&&J.length!==0?(0,o.jsx)(i.Z,{className:$.chips,children:dt.map(xt=>{const Pt=Y.find(Dt=>Dt.value===xt);return Pt?(0,o.jsx)(b.Z,{label:Pt==null?void 0:Pt.label,clickable:!0,onDelete:At(xt),className:$.chip},Pt==null?void 0:Pt.value):!1})}):(0,o.jsx)(C.Z,{children:J.length===0?lt||"":(Ct=Y.find(xt=>xt.value===dt))===null||Ct===void 0?void 0:Ct.label})},IconComponent:()=>it?(0,o.jsx)(K,{}):(0,o.jsx)(U,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[lt&&!z&&(0,o.jsx)(p.Z,{value:[],children:lt}),ct?Y&&Y.map(dt=>(0,o.jsx)("option",{value:dt.value,children:dt.label},dt.value)):Y&&Y.map(dt=>(0,o.jsxs)(p.Z,{value:dt.value,children:[z&&(0,o.jsx)(d.Z,{color:"primary",checked:J.includes(dt.value)||!1,className:$.checkbox}),dt.label]},dt.value))]})]})})}},13788:function(_,P,t){"use strict";t.d(P,{q:function(){return Q}});var o=t(52322),i=t(80851),d=t(62774),b=t(77277),m=t(49429),f=t(61837),l=t(86136),p=t(49378),S=t(12231),A=t(50758),R=t(79784),x=t(79692),C=t(90436),E=t(41156),M=t(2784),B=t(77770),w=t(80079);function U($,J){const it=(0,i.q)().getSystemIcon($);return it?(0,o.jsx)(it,{...J}):(0,o.jsx)(w.Z,{...J})}function T($){return U("brokenImage",$)}function g($){return U("catalog",$)}function K($){return U("chat",$)}function V($){return U("dashboard",$)}function X($){return U("docs",$)}function H($){return U("email",$)}function G($){return U("github",$)}function z($){return U("group",$)}function Y($){return U("help",$)}function ot($){return U("user",$)}function lt($){return U("warning",$)}var ht=t(98864);const ft=(0,x.Z)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),pt=({icon:$})=>{const J=(0,i.q)();var et;const it=$&&(et=J.getSystemIcon($))!==null&&et!==void 0?et:Y;return(0,o.jsx)(it,{})},ct=({link:$})=>{var J;return(0,o.jsx)(ht.rU,{to:$.url,children:(J=$.title)!==null&&J!==void 0?J:$.url})},mt=({item:$})=>{var J;return(0,o.jsxs)(S.Z,{children:[(0,o.jsx)(l.Z,{children:(0,o.jsx)(pt,{icon:$.icon})}),(0,o.jsx)(p.Z,{primary:$.title,secondary:(J=$.links)===null||J===void 0?void 0:J.reduce((et,it,ut)=>[...et,ut>0&&(0,o.jsx)("br",{},ut),(0,o.jsx)(ct,{link:it},it.url)],[])})]})};function Q($){const{title:J,items:et,children:it}=$,{items:ut}=(0,B.v)(),[F,Z]=(0,M.useState)(!1),[Et,At]=(0,M.useState)(null),dt=ft(),Ct=(0,E.Z)(Dt=>Dt.breakpoints.down("sm")),xt=Dt=>{At(Dt.currentTarget),Z(!0)},Pt=()=>{Z(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{display:"flex",ml:1,children:Ct?(0,o.jsx)(f.Z,{color:"primary",size:"small",onClick:xt,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(Y,{})}):(0,o.jsx)(b.Z,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:xt,startIcon:(0,o.jsx)(Y,{}),children:"Support"})}),(0,o.jsxs)(R.ZP,{"data-testid":"support-button-popover",open:F,anchorEl:Et,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Pt,children:[(0,o.jsxs)(A.Z,{className:dt.popoverList,autoFocusItem:Boolean(Et),children:[J&&(0,o.jsx)(S.Z,{alignItems:"flex-start",className:dt.menuItem,children:(0,o.jsx)(C.Z,{variant:"subtitle1",children:J})}),M.Children.map(it,(Dt,Lt)=>(0,o.jsx)(S.Z,{alignItems:"flex-start",className:dt.menuItem,children:Dt},`child-${Lt}`)),(et!=null?et:ut).map((Dt,Lt)=>(0,o.jsx)(mt,{item:Dt},`item-${Lt}`))]}),(0,o.jsx)(m.Z,{children:(0,o.jsx)(b.Z,{color:"primary",onClick:Pt,"aria-label":"Close",children:"Close"})})]})]})}},84462:function(_,P,t){"use strict";t.d(P,{i:function(){return ut}});var o=t(52322),i=t(67222),d=t(62774),b=t(61837),m=t(15459),f=t(79692),l=t(60364),p=t(90436),S=t(21070),A=t(90324),R=t(98281),x=t(48049),C=t(51209),E=t(33375),M=t(44233),B=t(27604),w=t(36444),U=t(37971),T=t(59709),g=t(17373),K=t(3702),V=t(93111),X=t(76635),H=t(2784),G=t(77277),z=t(35879);const Y=(0,f.Z)(F=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:F.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:F.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${F.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:F.spacing(2)}}}),{name:"BackstageTableFilters"}),ot=F=>{var Z;const Et=Y(),{onChangeFilters:At}=F,[dt,Ct]=(0,H.useState)({...F.selectedFilters}),[xt,Pt]=(0,H.useState)(!1),Dt=()=>{Ct({}),Pt(Lt=>!Lt)};return(0,H.useEffect)(()=>{At(dt)},[dt,At]),(0,o.jsxs)(d.Z,{className:Et.root,children:[(0,o.jsxs)(d.Z,{className:Et.header,children:[(0,o.jsx)(d.Z,{className:Et.value,children:"Filters"}),(0,o.jsx)(G.Z,{color:"primary",onClick:Dt,children:"Clear all"})]}),(0,o.jsx)(d.Z,{className:Et.filters,children:((Z=F.filters)===null||Z===void 0?void 0:Z.length)&&F.filters.map(Lt=>(0,o.jsx)(z.H,{triggerReset:xt,...Lt.element,selected:dt[Lt.element.label],onChange:ie=>Ct({...dt,[Lt.element.label]:ie})},Lt.element.label))})]})};var lt=t(4614);const ht={Add:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(S.Z,{...F,ref:Z})),Check:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(R.Z,{...F,ref:Z})),Clear:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(E.Z,{...F,ref:Z})),Delete:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(M.Z,{...F,ref:Z})),DetailPanel:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(C.Z,{...F,ref:Z})),Edit:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(B.Z,{...F,ref:Z})),Export:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(K.Z,{...F,ref:Z})),Filter:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(w.Z,{...F,ref:Z})),FirstPage:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(U.Z,{...F,ref:Z})),LastPage:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(T.Z,{...F,ref:Z})),NextPage:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(C.Z,{...F,ref:Z})),PreviousPage:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(x.Z,{...F,ref:Z})),ResetSearch:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(E.Z,{...F,ref:Z})),Search:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(w.Z,{...F,ref:Z})),SortArrow:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(A.Z,{...F,ref:Z})),ThirdStateCheck:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(g.Z,{...F,ref:Z})),ViewColumn:(0,H.forwardRef)((F,Z)=>(0,o.jsx)(V.Z,{...F,ref:Z}))};function ft(F,Z){const Et=Z.split(".");let At=F[Et[0]];for(let dt=1;dt<Et.length;++dt){if(At===void 0)return At;const Ct=Et[dt];At=At[Ct]}return At}const pt=(0,m.Z)(F=>({header:{padding:F.spacing(1,2,1,2.5),borderTop:`1px solid ${F.palette.grey.A100}`,borderBottom:`1px solid ${F.palette.grey.A100}`,fontWeight:F.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.W$),ct=(0,m.Z)(F=>({root:{padding:F.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:F.typography.fontWeightBold}},searchField:{paddingRight:F.spacing(2)}}),{name:"BackstageTableToolbar"})(i.UW),mt=(0,f.Z)(F=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:F.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),Q=(0,f.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function $(F,Z){return F.map(Et=>{var At;const dt=(At=Et.headerStyle)!==null&&At!==void 0?At:{};let Ct=Et.cellStyle||{};if(Et.highlight)if(dt.color=Z.palette.textContrast,typeof Ct=="object")Ct.fontWeight=Z.typography.fontWeightBold;else{const xt=Ct;Ct=(Pt,Dt,Lt)=>({...xt(Pt,Dt,Lt),fontWeight:Z.typography.fontWeightBold})}return{...Et,headerStyle:dt,cellStyle:Ct}})}function J(F,Z){return(0,X.transform)(F,(Et,At,dt)=>{(0,X.isEqual)(At,Z[dt])||(Et[dt]=At)})}const et={search:"",filtersOpen:!1,filters:{}};function it(F){const{toolbarRef:Z,setSearch:Et,hasFilters:At,selectedFiltersLength:dt,toggleFilters:Ct}=F,xt=mt(),Pt=(0,H.useCallback)(Dt=>{F.onSearchChanged(Dt),Et(Dt)},[F,Et]);return At?(0,o.jsxs)(d.Z,{className:xt.root,children:[(0,o.jsxs)(d.Z,{className:xt.root,children:[(0,o.jsx)(b.Z,{onClick:Ct,"aria-label":"filter list",children:(0,o.jsx)(w.Z,{})}),(0,o.jsxs)(p.Z,{className:xt.title,children:["Filters (",dt,")"]})]}),(0,o.jsx)(ct,{...F,ref:Z,onSearchChanged:Pt})]}):(0,o.jsx)(ct,{...F,ref:Z,onSearchChanged:Pt})}function ut(F){const{data:Z,columns:Et,options:At,title:dt,subtitle:Ct,filters:xt,initialState:Pt,emptyContent:Dt,onStateChange:Lt,components:ie,isLoading:te,...he}=F,Nt=Q(),Mt=(0,l.Z)(),Kt={...et,...Pt},[Zt,Jt]=(0,H.useState)(Kt.filtersOpen),fe=(0,H.useCallback)(()=>Jt(u=>!u),[Jt]),[ye,Qe]=(0,H.useState)(0),[Je,Ke]=(0,H.useState)(Z),[Ae,Xe]=(0,H.useState)(Kt.filters),_e=$(Et,Mt),[ze,ne]=(0,H.useState)(Kt.search);(0,H.useEffect)(()=>{if(Lt){const u=J({search:ze,filtersOpen:Zt,filters:Ae},et);Lt(u)}},[ze,Zt,Ae,Lt]);const on={headerStyle:{textTransform:"uppercase"}},Se=(0,H.useCallback)(u=>{var L;return(L=Et.find(W=>W.title===u))===null||L===void 0?void 0:L.field},[Et]);(0,H.useEffect)(()=>{if(typeof Z=="function")return;if(!Ae){Ke(Z);return}const u=Object.values(Ae);if(Z&&u.flat().length){const L=Z.filter(W=>!!Object.entries(Ae).filter(([,rt])=>!!rt.length).every(([rt,vt])=>{const St=ft(W,Se(rt));return Array.isArray(St)&&Array.isArray(vt)?St.some(Gt=>vt.includes(Gt)):Array.isArray(St)?St.includes(vt):Array.isArray(vt)?vt.includes(St):St===vt}));Ke(L)}else Ke(Z);Qe(u.flat().length)},[Z,Ae,Se]);const $e=(u,L)=>{const W=vt=>{const St=new Set,Gt=zt=>{zt!=null&&St.add(zt)};return L&&L.forEach(zt=>{const Ut=ft(zt,Se(vt));Array.isArray(Ut)?Ut.forEach(Gt):Gt(Ut)}),St},rt=vt=>({placeholder:"All results",label:vt.column,multiple:vt.type==="multiple-select",items:[...W(vt.column)].sort().map(St=>({label:St,value:St}))});return u.map(vt=>({type:vt.type,element:rt(vt)}))},je=!!(xt!=null&&xt.length),pe=(0,H.useCallback)(u=>(0,o.jsx)(it,{setSearch:ne,hasFilters:je,selectedFiltersLength:ye,toggleFilters:fe,...u}),[fe,je,ye,ne]),He=typeof Z!="function"&&Z.length===0,Fe=Et.length,j=(0,H.useCallback)(u=>te?(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Fe,children:(0,o.jsx)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(lt.Z,{size:"5rem"})})})})}):Dt&&He?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Fe,children:Dt})})}):(0,o.jsx)(i.os,{...u}),[He,Dt,Fe,te]);return(0,o.jsxs)(d.Z,{className:Nt.root,children:[Zt&&Z&&typeof Z!="function"&&(xt==null?void 0:xt.length)&&(0,o.jsx)(ot,{filters:$e(xt,Z),selectedFilters:Ae,onChangeFilters:Xe}),(0,o.jsx)(i.ZP,{components:{Header:pt,Toolbar:pe,Body:j,...ie},options:{...on,...At},columns:_e,icons:ht,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{variant:"h5",component:"h2",children:dt}),Ct&&(0,o.jsx)(p.Z,{color:"textSecondary",variant:"body1",children:Ct})]}),data:typeof Z=="function"?Z:Je,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"}},...he})]})}ut.icons=Object.freeze(ht)},538:function(_,P,t){"use strict";t.d(P,{G:function(){return g}});var o=t(52322),i=t(41128),d=t(79692),b=t(27616),m=t(8284),f=t(70660),l=t(60905),p=t(90436),S=t(91750),A=t(38016),R=t(2784),x=t(78527);const C=(K,V)=>(V.palette.type==="light"?i._j:i.$n)(V.palette[K].light,.6),E=(K,V)=>(V.palette.type==="light"?i.$n:i._j)(V.palette[K].light,.9),M=(0,d.Z)(K=>({root:{marginRight:K.spacing(1),fill:({severity:V})=>C(V,K)}})),B=({severity:K})=>{const V=M({severity:K});return(0,o.jsx)(S.Z,{classes:V})},w=({severity:K})=>{const V=M({severity:K});return(0,o.jsx)(A.Z,{classes:V})},U=(0,d.Z)(K=>({panel:{backgroundColor:({severity:V})=>E(V,K),color:({severity:V})=>C(V,K),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:V})=>C(V,K),fontWeight:K.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:V})=>C(V,K),backgroundColor:({severity:V})=>E(V,K)},details:{width:"100%",display:"block",color:K.palette.textContrast,backgroundColor:K.palette.background.default,border:`1px solid ${K.palette.border}`,padding:K.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),T=K=>K.charAt(0).toLocaleUpperCase("en-US")+K.slice(1);function g(K){const{severity:V="warning",title:X,titleFormat:H,message:G,children:z,defaultExpanded:Y}=K,ot=U({severity:V}),lt=T(V)+(X?`: ${X}`:"");return(0,o.jsxs)(b.Z,{defaultExpanded:Y!=null?Y:!1,className:ot.panel,role:"alert",children:[(0,o.jsxs)(m.Z,{expandIcon:(0,o.jsx)(w,{severity:V}),className:ot.summary,children:[(0,o.jsx)(B,{severity:V}),(0,o.jsx)(p.Z,{className:ot.summaryText,variant:"subtitle1",children:H==="markdown"?(0,o.jsx)(x.S,{content:lt,className:ot.markdownContent}):lt})]}),(G||z)&&(0,o.jsx)(f.Z,{children:(0,o.jsxs)(l.Z,{container:!0,children:[G&&(0,o.jsx)(l.Z,{item:!0,xs:12,children:(0,o.jsx)(p.Z,{className:ot.message,variant:"body1",children:G})}),z&&(0,o.jsx)(l.Z,{item:!0,xs:12,className:ot.details,children:z})]})})]})}},77770:function(_,P,t){"use strict";t.d(P,{v:function(){return b}});var o=t(44394),i=t(6542);const d={url:"https://github.com/backstage/backstage/issues",items:[{title:"Support Not Configured",icon:"warning",links:[{title:"Add `app.support` config key",url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]};function b(){const f=(0,o.I_)().get(i.D),l=f==null?void 0:f.getOptionalConfig("app.support");return l?{url:l.getString("url"),items:l.getConfigArray("items").flatMap(p=>{var S;return{title:p.getString("title"),icon:p.getOptionalString("icon"),links:((S=p.getOptionalConfigArray("links"))!==null&&S!==void 0?S:[]).flatMap(A=>({url:A.getString("url"),title:A.getString("title")}))}})}:d}},42398:function(_,P,t){"use strict";t.d(P,{V:function(){return l}});var o=t(52322),i=t(79692),d=t(72779),b=t.n(d),m=t(2784);const f=(0,i.Z)(p=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:p.spacing(3),paddingBottom:p.spacing(3),paddingLeft:p.spacing(2),paddingRight:p.spacing(2),[p.breakpoints.up("sm")]:{paddingLeft:p.spacing(3),paddingRight:p.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(p){const{className:S,stretch:A,noPadding:R,children:x,...C}=p,E=f();return(0,o.jsx)("article",{...C,className:b()(E.root,S,{[E.stretch]:A,[E.noPadding]:R}),children:x})}},30706:function(_,P,t){"use strict";t.d(P,{y:function(){return S}});var o=t(52322),i=t(62774),d=t(79692),b=t(90436),m=t(2784),f=t(18671);const l=A=>(0,d.Z)(R=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:R.spacing(2),textAlign:A.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:R.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),p=({title:A="Unknown page",className:R})=>(0,o.jsx)(b.Z,{variant:"h4",component:"h2",className:R,"data-testid":"header-title",children:A});function S(A){const{description:R,title:x,titleComponent:C=void 0,children:E,textAlign:M="left"}=A,B=l({textAlign:M})(),w=C||(0,o.jsx)(p,{title:x,className:B.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.q,{title:x}),(0,o.jsxs)(i.Z,{className:B.container,children:[(0,o.jsxs)(i.Z,{className:B.leftItemsBox,children:[w,R&&(0,o.jsx)(b.Z,{className:B.description,variant:"body2",children:R})]}),(0,o.jsx)(i.Z,{className:B.rightItemsBox,children:E})]})]})}},87435:function(_,P,t){"use strict";t.d(P,{m:function(){return C}});var o=t(52322),i=t(60905),d=t(79692),b=t(90436),m=t(2784),f=t(73557),l=t(98864),p=t(77770),S=t.p+"static/mic-drop.fe3ef4d0..svg";const A=(0,d.Z)(E=>({micDrop:{maxWidth:"60%",bottom:E.spacing(2),right:E.spacing(2),[E.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:E.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),R=()=>{const E=A();return(0,o.jsx)("img",{src:S,className:E.micDrop,alt:"Girl dropping mic from her hands"})},x=(0,d.Z)(E=>({container:{padding:E.spacing(8),[E.breakpoints.down("xs")]:{padding:E.spacing(2)}},title:{paddingBottom:E.spacing(5),[E.breakpoints.down("xs")]:{paddingBottom:E.spacing(4),fontSize:E.typography.h3.fontSize}},subtitle:{color:E.palette.textSubtle}}),{name:"BackstageErrorPage"});function C(E){const{status:M,statusMessage:B,additionalInfo:w,supportUrl:U}=E,T=x(),g=(0,f.s0)(),K=(0,p.v)();return(0,o.jsxs)(i.Z,{container:!0,spacing:0,className:T.container,children:[(0,o.jsxs)(i.Z,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsxs)(b.Z,{"data-testid":"error",variant:"body1",className:T.subtitle,children:["ERROR ",M,": ",B]}),(0,o.jsx)(b.Z,{variant:"body1",className:T.subtitle,children:w}),(0,o.jsx)(b.Z,{variant:"h2",className:T.title,children:"Looks like someone dropped the mic!"}),(0,o.jsxs)(b.Z,{variant:"h6",children:[(0,o.jsx)(l.rU,{to:"#","data-testid":"go-back-link",onClick:()=>g(-1),children:"Go back"}),"... or please"," ",(0,o.jsx)(l.rU,{to:U||K.url,children:"contact support"})," if you think this is a bug."]})]}),(0,o.jsx)(R,{})]})}},48037:function(_,P,t){"use strict";t.d(P,{h:function(){return G}});var o=t(52322),i=t(44394),d=t(6542),b=t(62774),m=t(60905),f=t(79692),l=t(80030),p=t(90436),S=t(2784),A=t(18671),R=t(98864),x=t(16173),C=t(11776),E=t(38402),M=t(79784),B=t(15459);const w=(0,B.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(p.Z),U=(0,B.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(b.Z);function T(z){const{children:Y,...ot}=z,[lt,ht]=S.useState(null),ft=S.Children.toArray(Y),[pt,ct,...mt]=ft,Q=mt.length?mt.pop():ft[ft.length-1],$=ft.length>3,J=ut=>{ht(ut.currentTarget)},et=()=>{ht(null)},it=Boolean(lt);return(0,o.jsxs)(S.Fragment,{children:[(0,o.jsxs)(x.Z,{"aria-label":"breadcrumb",...ot,children:[ft.length>1&&(0,o.jsx)(U,{clone:!0,children:pt}),ft.length>2&&(0,o.jsx)(U,{clone:!0,children:ct}),$&&(0,o.jsx)(w,{onClick:J,children:"..."}),(0,o.jsx)(b.Z,{style:{fontStyle:"italic"},children:Q})]}),(0,o.jsx)(M.ZP,{open:it,anchorEl:lt,onClose:et,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(C.Z,{children:mt.map((ut,F)=>(0,o.jsx)(E.Z,{button:!0,children:(0,o.jsx)(U,{clone:!0,children:ut})},F))})})]})}var g=t(44409);const K=(0,f.Z)(z=>({header:{gridArea:"pageHeader",padding:z.spacing(3),width:"100%",boxShadow:z.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:z.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[z.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:z.page.fontColor,wordBreak:"break-word",fontSize:z.typography.h3.fontSize,marginBottom:0},subtitle:{color:z.page.fontColor,opacity:.8,display:"inline-block",marginTop:z.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:z.spacing(1),color:z.page.fontColor},breadcrumb:{color:z.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-z.spacing(.3),marginBottom:z.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-z.spacing(.3),marginBottom:z.spacing(.3)}}),{name:"BackstageHeader"}),V=({type:z,typeLink:Y,classes:ot,pageTitle:lt})=>z?Y?(0,o.jsxs)(T,{className:ot.breadcrumb,children:[(0,o.jsx)(R.rU,{to:Y,children:z}),(0,o.jsx)(p.Z,{children:lt})]}):(0,o.jsx)(p.Z,{className:ot.type,children:z}):null,X=({pageTitle:z,classes:Y,tooltip:ot})=>{const{contentRef:lt}=(0,g.r)(),ht=(0,o.jsx)(p.Z,{ref:lt,tabIndex:-1,className:Y.title,variant:"h1",children:z});return ot?(0,o.jsx)(l.ZP,{title:ot,placement:"top-start",children:ht}):ht},H=({classes:z,subtitle:Y})=>Y?typeof Y!="string"?(0,o.jsx)(o.Fragment,{children:Y}):(0,o.jsx)(p.Z,{className:z.subtitle,variant:"subtitle2",component:"span",children:Y}):null;function G(z){const{children:Y,pageTitleOverride:ot,style:lt,subtitle:ht,title:ft,tooltip:pt,type:ct,typeLink:mt}=z,Q=K(),J=(0,i.h_)(d.D).getOptionalString("app.title")||"Backstage",et=ot||ft,it=ft||ot,ut=`${et} | %s | ${J}`,F=`${et} | ${J}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.q,{titleTemplate:ut,defaultTitle:F}),(0,o.jsxs)("header",{style:lt,className:Q.header,children:[(0,o.jsxs)(b.Z,{className:Q.leftItemsBox,children:[(0,o.jsx)(V,{classes:Q,type:ct,typeLink:mt,pageTitle:it}),(0,o.jsx)(X,{classes:Q,pageTitle:it,tooltip:pt}),(0,o.jsx)(H,{classes:Q,subtitle:ht})]}),(0,o.jsx)(m.Z,{container:!0,className:Q.rightItemsBox,spacing:4,children:Y})]})]})}},67880:function(_,P,t){"use strict";t.d(P,{T:function(){return f}});var o=t(52322),i=t(2784),d=t(79692),b=t(41547);const m=(0,d.Z)(l=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[l.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function f(l){const{themeId:p,children:S}=l,A=m();return(0,o.jsx)(b.Z,{theme:R=>({...R,page:R.getPageTheme({themeId:p})}),children:(0,o.jsx)("main",{className:A.root,children:S})})}},32166:function(_,P,t){"use strict";t.d(P,{g:function(){return m}});var o=t(52322),i=t(2784),d=t(48037),b=t(67880);function m(f){const{themeId:l,children:p,...S}=f;return(0,o.jsxs)(b.T,{themeId:l,children:[(0,o.jsx)(d.h,{...S}),p]})}},44409:function(_,P,t){"use strict";t.d(P,{t:function(){return x},r:function(){return C}});var o=t(52322),i=t(62774),d=t(79692),b=t(41156),m=t(2784),f=t(76921),l;(function(E){E.SIDEBAR_PIN_STATE="sidebarPinState"})(l||(l={}));const p={getSidebarPinState(){let E;try{E=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!E},setSidebarPinState(E){return window.localStorage.setItem("sidebarPinState",JSON.stringify(E))}};var S=t(93539);const A=(0,d.Z)(E=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[E.breakpoints.up("sm")]:{paddingLeft:M=>M.isPinned?M.sidebarConfig.drawerWidthOpen:M.sidebarConfig.drawerWidthClosed},[E.breakpoints.down("xs")]:{paddingBottom:M=>M.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),R=(0,m.createContext)({content:{contentRef:void 0}});function x(E){const[M,B]=(0,m.useState)(()=>p.getSidebarPinState()),{sidebarConfig:w}=(0,m.useContext)(f.kG),U=(0,m.useRef)(null),T=(0,m.useMemo)(()=>({content:{contentRef:U}}),[U]);(0,m.useEffect)(()=>{p.setSidebarPinState(M)},[M]);const g=(0,b.Z)(X=>X.breakpoints.down("xs"),{noSsr:!0}),K=()=>B(!M),V=A({isPinned:M,sidebarConfig:w});return(0,o.jsx)(S.lE,{value:{isPinned:M,toggleSidebarPinState:K,isMobile:g},children:(0,o.jsx)(R.Provider,{value:T,children:(0,o.jsx)(i.Z,{className:V.root,children:E.children})})})}function C(){const{content:E}=(0,m.useContext)(R);return{focusContent:(0,m.useCallback)(()=>{var B,w;E==null||(w=E.contentRef)===null||w===void 0||(B=w.current)===null||B===void 0||B.focus()},[E]),contentRef:E==null?void 0:E.contentRef}}},93539:function(_,P,t){"use strict";t.d(P,{Pf:function(){return S},lE:function(){return p}});var o=t(52322),i=t(29651),d=t(68993),b=t(2784);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},f=(0,b.createContext)(m),l=(0,i.CT)("sidebar-pin-state-context");function p(A){const{children:R,value:x}=A;return(0,o.jsx)(f.Provider,{value:x,children:(0,o.jsx)(l.Provider,{value:(0,d.E)({1:x}),children:R})})}const S=()=>{const A=(0,b.useContext)(l),R=(0,b.useContext)(f);if(A===void 0)return R||m;const x=A.atVersion(1);if(x===void 0)throw new Error("No context found for version 1.");return x}},76921:function(_,P,t){"use strict";t.d(P,{$E:function(){return f},Ag:function(){return R},kG:function(){return A},po:function(){return m},rW:function(){return p}});var o=t(2784);const i=72,d=24,b=18,m={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:b,userBadgeDiameter:i-b*2,mobileSidebarHeight:56},f=x=>({...m,...x,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),l={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},p=x=>({...l,...x}),S="@backstage/core/sidebar-intro-dismissed",A=(0,o.createContext)({sidebarConfig:m,submenuConfig:l}),R=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},72388:function(_,P,t){"use strict";t.d(P,{Os:function(){return f},fC:function(){return l}});var o=t(52322),i=t(29651),d=t(68993),b=t(2784);const m=(0,i.CT)("analytics-context"),f=()=>{const S=(0,b.useContext)(m);if(S===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const A=S.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A},l=S=>{const{attributes:A,children:R}=S,C={...f(),...A},E=(0,d.E)({1:C});return(0,o.jsx)(m.Provider,{value:E,children:R})};function p(S,A){const R=x=>_jsx(l,{attributes:A,children:_jsx(S,{...x})});return R.displayName=`WithAnalyticsContext(${S.displayName||S.name||"Component"})`,R}},7355:function(_,P,t){"use strict";t.d(P,{f:function(){return m},h:function(){return b}});var o=t(87612),i=t(96087);const d=(0,i.u)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),b="_ROUTABLE-EXTENSION-RENDERED";class m{setContext(l){this.context=l}captureEvent(l,p,{value:S,attributes:A}={}){const{_routeNodeType:R,...x}=this.context;if(l===b){d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...x,extension:"App"}});return}if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(C){console.warn("Error during analytics event capture. %o",C)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if(l==="navigate"&&R==="gathered"&&x.pluginId==="root"){d.mostRecentGatheredNavigation={action:l,subject:p,value:S,attributes:A,context:x};return}try{this.analyticsApi.captureEvent({action:l,subject:p,value:S,attributes:A,context:x})}catch(C){console.warn("Error during analytics event capture. %o",C)}}constructor(l,p={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=l,this.context=p,d.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{d.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender}),d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),d.beforeUnloadRegistered=!0)}}},62369:function(_,P,t){"use strict";t.d(P,{z:function(){return l}});var o=t(72388),i=t(44394),d=t(86386),b=t(2784),m=t(7355);function f(){try{return(0,i.h_)(d.v)}catch{return{captureEvent:()=>{}}}}function l(){const p=(0,b.useRef)(null),S=(0,o.Os)(),A=f();function R(){return p.current===null&&(p.current=new m.f(A)),p.current}const x=R();return x.setContext(S),x}},78847:function(_,P,t){"use strict";t.d(P,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.alert"})},86386:function(_,P,t){"use strict";t.d(P,{v:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.analytics"})},6542:function(_,P,t){"use strict";t.d(P,{D:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.config"})},96727:function(_,P,t){"use strict";t.d(P,{N:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.discovery"})},58513:function(_,P,t){"use strict";t.d(P,{V:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.error"})},82723:function(_,P,t){"use strict";t.d(P,{C:function(){return i},W:function(){return d}});var o=t(95965),i;(function(b){b[b.None=0]="None",b[b.Active=1]="Active"})(i||(i={}));const d=(0,o.T)({id:"core.featureflags"})},85094:function(_,P,t){"use strict";t.d(P,{g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.fetch"})},77186:function(_,P,t){"use strict";t.d(P,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.identity"})},96253:function(_,P,t){"use strict";t.d(P,{o:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.translation"})},95965:function(_,P,t){"use strict";t.d(P,{T:function(){return d}});var o=t(87612);class i{get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}constructor(m){if((0,o._)(this,"config",void 0),this.config=m,!m.id.split(".").flatMap(l=>l.split("-")).every(l=>l.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${m.id}'`)}}function d(b){return new i(b)}},42380:function(_,P,t){"use strict";t.d(P,{n:function(){return o}});function o(i,d){return"id"in i?{api:i,deps:{},factory:()=>d}:i}},44394:function(_,P,t){"use strict";t.d(P,{I_:function(){return b},h_:function(){return m}});var o=t(52322),i=t(2784),d=t(29651);function b(){const l=(0,d.Vt)("api-context");if(!l)throw new Error("API context is not available");const p=l.atVersion(1);if(!p)throw new Error("ApiContext v1 not available");return p}function m(l){const S=b().get(l);if(!S)throw new Error(`No implementation available for ${l}`);return S}function f(l){return function(S){const A=x=>{const C=b(),E={};for(const M in l)if(l.hasOwnProperty(M)){const B=l[M],w=C.get(B);if(!w)throw new Error(`No implementation available for ${B}`);E[M]=w}return _jsx(S,{...x,...E})},R=S.displayName||S.name||"Component";return A.displayName=`withApis(${R})`,A}}},80851:function(_,P,t){"use strict";t.d(P,{q:function(){return i}});var o=t(29651);const i=()=>{const d=(0,o.Vt)("app-context");if(!d)throw new Error("App context is not available");const b=d.atVersion(1);if(!b)throw new Error("AppContext v1 not available");return b}},62584:function(_,P,t){"use strict";t.d(P,{I:function(){return m},R:function(){return b}});var o=t(96087);const i=(0,o.u)("component-data-store",()=>new WeakMap),d="__backstage_data";function b(f,l,p){const S=f;var A;let R=(A=S[d])!==null&&A!==void 0?A:i.get(f);if(R||(R={map:new Map},Object.defineProperty(S,d,{enumerable:!1,configurable:!0,writable:!1,value:R}),i.set(f,R)),R.map.has(l)){const x=f.displayName||f.name;throw new Error(`Attempted to attach duplicate data "${l}" to component "${x}"`)}R.map.set(l,p)}function m(f,l){if(!f)return;const p=f.type;if(!p)return;var S;const A=(S=p[d])!==null&&S!==void 0?S:i.get(p);if(A)return A.map.get(l)}},82963:function(_,P,t){"use strict";t.d(P,{CO:function(){return x},YO:function(){return C},P4:function(){return R}});var o=t(52322),i=t(2784),d=t(62369),b=t(72388),m=t(80851),f=t(37321),l=t(62584),p=t(87612);class S extends i.Component{static getDerivedStateFromError(M){return{error:M}}render(){const{error:M}=this.state,{app:B,plugin:w}=this.props,{ErrorBoundaryFallback:U}=B.getComponents();return M?(0,o.jsx)(U,{error:M,resetError:this.handleErrorReset,plugin:w}):this.props.children}constructor(...M){super(...M),(0,p._)(this,"state",{error:void 0}),(0,p._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var A=t(7355);function R(E){const{component:M,mountPoint:B,name:w}=E;return C({component:{lazy:()=>M().then(U=>{const T=K=>{const V=(0,d.z)();try{(0,f.t)(B)}catch(X){if(typeof X=="object"&&X!==null){const{message:H}=X;if(typeof H=="string"&&H.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${B} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw X}return(0,i.useEffect)(()=>{V.captureEvent(A.h,"")},[V]),(0,o.jsx)(U,{...K})},g=w||U.displayName||U.name||"LazyComponent";return T.displayName=`RoutableExtension(${g})`,T},U=>g=>{const K=(0,m.q)(),{BootErrorPage:V}=K.getComponents();return(0,o.jsx)(V,{step:"load-chunk",error:U})})},data:{"core.mountPoint":B},name:w})}function x(E){const{component:M,name:B}=E;return C({component:M,name:B})}function C(E){const{data:M={},name:B}=E;B||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let w;if("lazy"in E.component){const T=E.component.lazy;w=(0,i.lazy)(()=>T().then(g=>({default:g})))}else w=E.component.sync;const U=B||w.displayName||w.name||"Component";return{expose(T){const g=K=>{const V=(0,m.q)(),{Progress:X}=V.getComponents(),H=M==null?void 0:M["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(X,{}),children:(0,o.jsx)(S,{app:V,plugin:T,children:(0,o.jsx)(b.fC,{attributes:{pluginId:T.getId(),...B&&{extension:B},...H&&{routeRef:H.id}},children:(0,o.jsx)(w,{...K})})})})};(0,l.R)(g,"core.plugin",T),(0,l.R)(g,"core.extensionName",B);for(const[K,V]of Object.entries(M))(0,l.R)(g,K,V);return g.displayName=`Extension(${U})`,g}}}},2532:function(_,P,t){"use strict";t.d(P,{v:function(){return p}});var o=t(87612),i=t(2784),d=t(62584),b=t(44394),m=t(82723);function f(S,A,R,x){return i.Children.toArray(S).flatMap(C=>{if(!(0,i.isValidElement)(C))return[];if(C.type===i.Fragment)return f(C.props.children,A,R,x);if((0,d.I)(C,"core.featureFlagged")){const E=C.props;return("with"in E?A.isActive(E.with):!A.isActive(E.without))?f(C.props.children,A,R,x):[]}if(R===void 0||R(C))return[C];if(x)throw new Error(x);return f(C.props.children,A,R,x)})}class l{selectByComponentData(A){const R=f(this.node,this.featureFlagsApi,x=>(0,d.I)(x,A.key)!==void 0,A.withStrictError);return new l(R,this.featureFlagsApi)}findComponentData(A){return f(this.node,this.featureFlagsApi,x=>(0,d.I)(x,A.key)!==void 0).map(x=>(0,d.I)(x,A.key)).filter(x=>x!==void 0)}getElements(){return f(this.node,this.featureFlagsApi)}constructor(A,R){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=A,this.featureFlagsApi=R}}function p(S,A,R=[]){const x=(0,b.h_)(m.W),C=new l(S,x);return(0,i.useMemo)(()=>A(C),[S,...R])}},15006:function(_,P,t){"use strict";t.d(P,{r:function(){return d}});var o=t(87612);class i{getId(){return this.config.id}getApis(){var m;return(m=this.config.apis)!==null&&m!==void 0?m:[]}getFeatureFlags(){var m,f;return(f=(m=this.config.featureFlags)===null||m===void 0?void 0:m.slice())!==null&&f!==void 0?f:[]}get routes(){var m;return(m=this.config.routes)!==null&&m!==void 0?m:{}}get externalRoutes(){var m;return(m=this.config.externalRoutes)!==null&&m!==void 0?m:{}}provide(m){return m.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(m){(0,o._)(this,"config",void 0),this.config=m}}function d(b){return new i(b)}},30283:function(_,P,t){"use strict";t.d(P,{N:function(){return f}});var o=t(87612),i=t(92918);let d=i.K,b=d;class m{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(p,S){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,b,void 0),this.id=p,this.params=S,this[d]="absolute"}}function f(l){var p;return new m(l.id,(p=l.params)!==null&&p!==void 0?p:[])}},92918:function(_,P,t){"use strict";t.d(P,{K:function(){return i}});var o=t(96087);const i=(0,o.u)("route-ref-type",()=>Symbol("route-ref-type"))},37321:function(_,P,t){"use strict";t.d(P,{t:function(){return b}});var o=t(2784),i=t(73557),d=t(29651);function b(m){const{pathname:f}=(0,i.TH)(),l=(0,d.Vt)("routing-context");if(!l)throw new Error("Routing context is not available");const p=l.atVersion(1),S=(0,o.useMemo)(()=>p&&p.resolve(m,{pathname:f}),[p,m,f]);if(!l)throw new Error("useRouteRef used outside of routing context");if(!p)throw new Error("RoutingContext v1 not available");const A="optional"in m&&m.optional;if(!S&&!A)throw new Error(`No path for ${m}`);return S}},35304:function(_,P,t){"use strict";t.d(P,{F:function(){return A},y:function(){return R}});var o=t(88412),i=t(52475),d=t(80956),b=t(87612),m=t(18015),f=new WeakMap,l=new WeakMap,p=new WeakMap;class S{get id(){return(0,o._)(this,f)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,l)}setDefaultResource(C){(0,d._)(this,p,C)}getDefaultResource(){return(0,o._)(this,p)}toString(){return`TranslationRef{id=${this.id}}`}constructor(C){(0,i._)(this,f,{writable:!0,value:void 0}),(0,i._)(this,l,{writable:!0,value:void 0}),(0,i._)(this,p,{writable:!0,value:void 0}),(0,b._)(this,"$$type","@backstage/TranslationRef"),(0,b._)(this,"version","v1"),(0,d._)(this,f,C.id),(0,d._)(this,l,C.messages)}}function A(x){const C=new S(x);return x.translations&&C.setDefaultResource((0,m.N)({ref:C,translations:x.translations})),C}function R(x){const C=x;if(C.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${C.$$type}'`);if(C.version!=="v1")throw new Error(`Invalid translation ref, bad version '${C.version}'`);return C}},18015:function(_,P,t){"use strict";t.d(P,{N:function(){return i},W:function(){return o}});function o(d){const b=d;if(b.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${b.$$type}'`);if(b.version!=="v1")throw new Error(`Invalid translation resource, bad version '${b.version}'`);return b}function i(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([b,m])=>({language:b,loader:()=>m().then(f=>{const l=f.default;return{messages:(l==null?void 0:l.$$type)==="@backstage/TranslationMessages"?l.messages:l}})}))}}},41385:function(_,P,t){"use strict";t.d(P,{V:function(){return b}});var o=t(87612),i=t(48998);async function d(m){try{const l=await m.text();if(l){var f;if(!((f=m.headers.get("content-type"))===null||f===void 0)&&f.startsWith("application/json"))try{const p=JSON.parse(l);if(p.error&&p.response)return p}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}, ${l}`},response:{statusCode:m.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}`},response:{statusCode:m.status}}}class b extends Error{static async fromResponse(f){const l=await d(f),p=l.response.statusCode||f.status,S=l.error.name||f.statusText,A=`Request failed with ${p} ${S}`,R=(0,i.Fq)(l.error);return new b({message:A,response:f,data:l,cause:R})}constructor(f){super(f.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),this.name="ResponseError",this.response=f.response,this.body=f.data,this.cause=f.cause}}},30474:function(_,P,t){"use strict";t.d(P,{V:function(){return o}});function o(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const b=d;return!(typeof b.name!="string"||b.name===""||typeof b.message!="string")}function i(d){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error(`Encountered invalid error, not an object, got '${d}'`);const b=d;if(typeof b.name!="string"||b.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof b.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},48998:function(_,P,t){"use strict";t.d(P,{Fq:function(){return m},n:function(){return f}});var o=t(24852),i=t.n(o),d=t(30474);function b(l,p){const A={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(l)};return p!=null&&p.includeStack||delete A.stack,A}function m(l){const p=(0,o.deserializeError)(l);return l.stack||(p.stack=void 0),p}function f(l){if((0,d.V)(l)){const p=String(l);return p!=="[object Object]"?p:`${l.name}: ${l.message}`}return`unknown error '${l}'`}},91657:function(_,P,t){"use strict";t.d(P,{a:function(){return He},q:function(){return Fe}});var o=t(87612),i=t(38264);const d="amazonaws.com";function b(j){const u=j.getOptionalString("endpoint");var L;const W=(L=j.getOptionalBoolean("s3ForcePathStyle"))!==null&&L!==void 0?L:!1;let rt,vt;if(u){try{const jt=new URL(u);rt=jt.host,vt=jt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${u}' is not a valid URL`)}if(vt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${u}'`)}else rt=d;const St=j.getOptionalString("accessKeyId"),Gt=j.getOptionalString("secretAccessKey"),zt=j.getOptionalString("roleArn"),Ut=j.getOptionalString("externalId");return{host:rt,endpoint:u,s3ForcePathStyle:W,accessKeyId:St,secretAccessKey:Gt,roleArn:zt,externalId:Ut}}function m(j){const u=j.map(b);return u.some(L=>L.host===d)||u.push({host:d}),u}class f{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(f,"factory",({config:j})=>{var u;const L=m((u=j.getOptionalConfigArray("integrations.awsS3"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new f(W)),W=>W.config.host)});var l=t(88412),p=t(52475),S=t(80956);const A="GB";var R=new WeakMap,x=new WeakMap,C=new WeakMap,E=new WeakMap,M=new WeakMap,B=new WeakMap,w=new WeakMap;class U{static fromRepoUrl(u){const L=new URL(u);let W,rt,vt;const St=L.pathname.split("/").map(oe=>decodeURIComponent(oe));if(St[2]==="_git"?(W=St[1],rt=vt=St[3]):St[3]==="_git"?(W=St[1],rt=St[2],vt=St[4]):St[4]==="_git"&&(W=`${St[1]}/${St[2]}`,rt=St[3],vt=St[5]),!W||!rt||!vt)throw new Error("Azure URL must point to a git repository");var Gt;const zt=(Gt=L.searchParams.get("path"))!==null&&Gt!==void 0?Gt:void 0;let Ut;const jt=L.searchParams.get("version");if(jt){if(jt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");Ut=jt.slice(2)}return new U(L.origin,W,rt,vt,zt,Ut)}toRepoUrl(){let u;return(0,l._)(this,C)===(0,l._)(this,E)?u=(0,l._)(this,w).call(this,(0,l._)(this,x),"_git",(0,l._)(this,E)):u=(0,l._)(this,w).call(this,(0,l._)(this,x),(0,l._)(this,C),"_git",(0,l._)(this,E)),(0,l._)(this,M)&&u.searchParams.set("path",(0,l._)(this,M)),(0,l._)(this,B)&&u.searchParams.set("version",A+(0,l._)(this,B)),u.toString()}toFileUrl(){if(!(0,l._)(this,M))throw new Error("Azure URL must point to a specific path to be able to download a file");const u=(0,l._)(this,w).call(this,(0,l._)(this,x),(0,l._)(this,C),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("api-version","6.0"),u.searchParams.set("path",(0,l._)(this,M)),(0,l._)(this,B)&&u.searchParams.set("version",(0,l._)(this,B)),u.toString()}toArchiveUrl(){const u=(0,l._)(this,w).call(this,(0,l._)(this,x),(0,l._)(this,C),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("recursionLevel","full"),u.searchParams.set("download","true"),u.searchParams.set("api-version","6.0"),(0,l._)(this,M)&&u.searchParams.set("scopePath",(0,l._)(this,M)),(0,l._)(this,B)&&u.searchParams.set("version",(0,l._)(this,B)),u.toString()}toCommitsUrl(){const u=(0,l._)(this,w).call(this,(0,l._)(this,x),(0,l._)(this,C),"_apis","git","repositories",(0,l._)(this,E),"commits");return u.searchParams.set("api-version","6.0"),(0,l._)(this,B)&&u.searchParams.set("searchCriteria.itemVersion.version",(0,l._)(this,B)),u.toString()}getOwner(){return(0,l._)(this,x)}getProject(){return(0,l._)(this,C)}getRepo(){return(0,l._)(this,E)}getPath(){return(0,l._)(this,M)}getRef(){return(0,l._)(this,B)}constructor(u,L,W,rt,vt,St){(0,p._)(this,R,{writable:!0,value:void 0}),(0,p._)(this,x,{writable:!0,value:void 0}),(0,p._)(this,C,{writable:!0,value:void 0}),(0,p._)(this,E,{writable:!0,value:void 0}),(0,p._)(this,M,{writable:!0,value:void 0}),(0,p._)(this,B,{writable:!0,value:void 0}),(0,p._)(this,w,{writable:!0,value:(...Gt)=>{const zt=new URL((0,l._)(this,R));return zt.pathname=Gt.map(Ut=>encodeURIComponent(Ut)).join("/"),zt}}),(0,S._)(this,R,u),(0,S._)(this,x,L),(0,S._)(this,C,W),(0,S._)(this,E,rt),(0,S._)(this,M,vt),(0,S._)(this,B,St)}}const T="dev.azure.com",g=["clientId","clientSecret","tenantId","personalAccessToken"],K=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function V(j){for(const u of K.entries()){const[L,W]=u,rt=g.filter(vt=>!W.includes(vt));if(W.every(vt=>j[vt]!==void 0)&&rt.every(vt=>j[vt]===void 0))return{kind:L,organizations:j.organizations,...W.reduce((vt,St)=>(vt[St]=j[St],vt),{})}}throw new Error("is not a valid credential")}function X(j){var u,L;const W=(L=j.getOptionalString("host"))!==null&&L!==void 0?L:T;let rt=(u=j.getOptionalConfigArray("credentials"))===null||u===void 0?void 0:u.map(Ut=>({organizations:Ut.getOptionalStringArray("organizations"),personalAccessToken:Ut.getOptionalString("personalAccessToken"),tenantId:Ut.getOptionalString("tenantId"),clientId:Ut.getOptionalString("clientId"),clientSecret:Ut.getOptionalString("clientSecret")}));const vt=j.getOptionalString("token");if(j.getOptional("credential")!==void 0&&j.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(j.getOptional("token")!==void 0&&j.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(vt!==void 0){const Ut=[{personalAccessToken:vt}];var St;rt=(St=rt==null?void 0:rt.concat(Ut))!==null&&St!==void 0?St:Ut}if(j.getOptional("credential")!==void 0){const Ut=[{organizations:j.getOptionalStringArray("credential.organizations"),token:j.getOptionalString("credential.token"),tenantId:j.getOptionalString("credential.tenantId"),clientId:j.getOptionalString("credential.clientId"),clientSecret:j.getOptionalString("credential.clientSecret")}];var Gt;rt=(Gt=rt==null?void 0:rt.concat(Ut))!==null&&Gt!==void 0?Gt:Ut}if(!(0,i.bK)(W))throw new Error(`Invalid Azure integration config, '${W}' is not a valid host`);let zt;if(rt!==void 0){const Ut=rt==null?void 0:rt.reduce((jt,oe,we)=>{let Le;try{V(oe)}catch(We){Le=We.message}return Le!==void 0&&jt.push(`credential at position ${we+1} ${Le}`),jt},Array.of()).concat(Object.entries(rt.filter(jt=>jt.organizations!==void 0&&jt.organizations.length>0).reduce((jt,oe,we)=>{var Le;return(Le=oe.organizations)===null||Le===void 0||Le.forEach(We=>{jt[We]||(jt[We]=[]),jt[We].push(we+1)}),jt},{})).filter(([jt,oe])=>oe.length>1).reduce((jt,[oe,we])=>(jt.push(`organization ${oe} is specified multiple times in credentials at positions ${we.slice(0,we.length-1).join(", ")} and ${we[we.length-1]}`),jt),Array.of()));if((Ut==null?void 0:Ut.length)>0)throw new Error(`Invalid Azure integration config for ${W}: ${Ut.join("; ")}`);if(zt=rt.map(jt=>V(jt)),zt.some(jt=>jt.kind!=="PersonalAccessToken")&&W!==T)throw new Error(`Invalid Azure integration config for ${W}, only personal access tokens can be used with hosts other than ${T}`);if(zt.filter(jt=>jt.organizations===void 0||jt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${W}, you cannot specify multiple credentials without organizations`)}return{host:W,credentials:zt}}function H(j){const u=j.map(X);return u.some(L=>L.host===T)||u.push({host:T}),u}class G{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:L,base:W}=u;if((0,i.jv)(L))return L;try{const vt=U.fromRepoUrl(W),St=new URL(W);var rt;const Gt=new URL(`https://a.com${(rt=vt.getPath())!==null&&rt!==void 0?rt:""}`),zt=new URL(L,Gt).pathname;return St.searchParams.set("path",zt),u.lineNumber&&(St.searchParams.set("line",String(u.lineNumber)),St.searchParams.set("lineEnd",String(u.lineNumber+1)),St.searchParams.set("lineStartColumn","1"),St.searchParams.set("lineEndColumn","1")),St.toString()}catch{return new URL(L,W).toString()}}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(G,"factory",({config:j})=>{var u;const L=H((u=j.getOptionalConfigArray("integrations.azure"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new G(W)),W=>W.config.host)});var z=t(82717),Y=t.n(z);const ot="bitbucket.org",lt="https://api.bitbucket.org/2.0";function ht(j){const u=ot,L=lt,W=j.getString("username"),rt=j.getString("appPassword");return{host:u,apiBaseUrl:L,username:W,appPassword:rt}}function ft(j){const u=j.map(ht);return u.length===0&&u.push({host:ot,apiBaseUrl:lt}),u}class pt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const L=(0,i.FI)(u);if(u.lineNumber){const W=new URL(L);return W.hash=`lines-${u.lineNumber}`,W.toString()}return L}resolveEditUrl(u){const L=Y()(u),W=new URL(u);return W.searchParams.set("mode","edit"),W.searchParams.set("at",L.ref),W.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(pt,"factory",({config:j})=>{var u;const L=ft((u=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new pt(W)),W=>W.config.host)});var ct=t(76635);const mt="bitbucket.org",Q="https://api.bitbucket.org/2.0";function $(j){var u;const L=(u=j.getOptionalString("host"))!==null&&u!==void 0?u:mt;let W=j.getOptionalString("apiBaseUrl");const rt=j.getOptionalString("token"),vt=j.getOptionalString("username"),St=j.getOptionalString("appPassword");if(!(0,i.bK)(L))throw new Error(`Invalid Bitbucket integration config, '${L}' is not a valid host`);return W?W=(0,ct.trimEnd)(W,"/"):L===mt?W=Q:W=`https://${L}/rest/api/1.0`,{host:L,apiBaseUrl:W,token:rt,username:vt,appPassword:St}}function J(j){const u=j.map($);return u.some(L=>L.host===mt)||u.push({host:mt,apiBaseUrl:Q}),u}class et{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const L=(0,i.FI)(u);if(!u.lineNumber)return L;const W=new URL(L);return this.integrationConfig.host==="bitbucket.org"?W.hash=`lines-${u.lineNumber}`:W.hash=`${u.lineNumber}`,W.toString()}resolveEditUrl(u){const L=Y()(u),W=new URL(u);return W.searchParams.set("mode","edit"),W.searchParams.set("spa","0"),W.searchParams.set("at",L.ref),W.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(et,"factory",({config:j})=>{var u,L,W;const rt=J((W=j.getOptionalConfigArray("integrations.bitbucket"))!==null&&W!==void 0?W:[...(u=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[],...(L=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&L!==void 0?L:[]]);return(0,i.gz)(rt.map(vt=>new et(vt)),vt=>vt.config.host)});function it(j){const u=j.getString("host");let L=j.getOptionalString("apiBaseUrl");const W=j.getOptionalString("token"),rt=j.getOptionalString("username"),vt=j.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Bitbucket Server integration config, '${u}' is not a valid host`);return L?L=(0,ct.trimEnd)(L,"/"):L=`https://${u}/rest/api/1.0`,{host:u,apiBaseUrl:L,token:W,username:rt,password:vt}}function ut(j){return j.map(it)}class F{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const L=(0,i.FI)(u);if(u.lineNumber){const W=new URL(L);return W.hash=u.lineNumber.toString(),W.toString()}return L}resolveEditUrl(u){return u.includes("?")?u.substring(0,u.indexOf("?")):u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(F,"factory",({config:j})=>{var u;const L=ut((u=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new F(W)),W=>W.config.host)});function Z(j){const u=j.getString("host");let L=j.getOptionalString("baseUrl"),W=j.getOptionalString("cloneUrl"),rt=j.getOptionalString("gitilesBaseUrl");const vt=j.getOptionalString("username"),St=j.getOptionalString("password");if((0,i.bK)(u)){if(L&&!(0,i.jv)(L))throw new Error(`Invalid Gerrit integration config, '${L}' is not a valid baseUrl`);if(W&&!(0,i.jv)(W))throw new Error(`Invalid Gerrit integration config, '${W}' is not a valid cloneUrl`);if(rt&&!(0,i.jv)(rt))throw new Error(`Invalid Gerrit integration config, '${rt}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${u}' is not a valid host`);return L?L=(0,ct.trimEnd)(L,"/"):L=`https://${u}`,rt?rt=(0,ct.trimEnd)(rt,"/"):rt=`https://${u}`,W?W=(0,ct.trimEnd)(W,"/"):W=L,{host:u,baseUrl:L,cloneUrl:W,gitilesBaseUrl:rt,username:vt,password:St}}function Et(j){return j.map(Z)}var At=t(48834).lW;const dt=")]}'";function Ct(j,u){const L=new URL(j.gitilesBaseUrl),W=new URL(u),vt=W.pathname.substring(W.pathname.startsWith("/a/")?2:0).replace(L.pathname,"").split("/").filter(oe=>!!oe),St=vt.indexOf("+");if(St<=0)throw new Error(`Unable to parse project from url: ${u}`);const Gt=(0,ct.trimStart)(vt.slice(0,St).join("/"),"/"),zt=vt.indexOf("heads");if(zt<=0)throw new Error(`Unable to parse branch from url: ${u}`);const Ut=vt[zt+1],jt=vt.slice(zt+2).join("/");return{branch:Ut,filePath:jt===""?"/":jt,project:Gt}}function xt(j,u,L,W){return`${j.gitilesBaseUrl}/${u}/+/refs/heads/${L}/${(0,ct.trimStart)(W,"/")}`}function Pt(j,u,L,W){const rt=W==="/"||W===""?".tar.gz":`/${W}.tar.gz`;return`${Lt(j)}/${u}/+archive/refs/heads/${L}${rt}`}function Dt(j){return j.password?"/a/":"/"}function Lt(j){if(!j.baseUrl||!j.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(j.gitilesBaseUrl.startsWith(j.baseUrl))return j.gitilesBaseUrl.replace(j.baseUrl.concat("/"),j.baseUrl.concat(Dt(j)));if(j.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return j.gitilesBaseUrl}function ie(j,u){const{branch:L,project:W}=Ct(j,u);return`${j.baseUrl}${Dt(j)}projects/${encodeURIComponent(W)}/branches/${L}`}function te(j,u){const{project:L}=Ct(j,u);return`${j.cloneUrl}${Dt(j)}${L}`}function he(j,u){const{branch:L,filePath:W,project:rt}=Ct(j,u);return`${j.baseUrl}${Dt(j)}projects/${encodeURIComponent(rt)}/branches/${L}/files/${encodeURIComponent(W)}/content`}function Nt(j){return`${j.baseUrl}${Dt(j)}projects/`}function Mt(j){const u={};if(!j.password)return u;const L=At.from(`${j.username}:${j.password}`,"utf8");return u.Authorization=`Basic ${L.toString("base64")}`,{headers:u}}async function Kt(j){const u=await j.text();if(u.startsWith(dt))try{return JSON.parse(u.slice(dt.length))}catch(L){throw new Error(`Invalid response from Gerrit: ${u.slice(0,10)} - ${L}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${u.slice(0,10)}`)}class Zt{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:L,base:W,lineNumber:rt}=u;let vt;if(L.startsWith("/")){const{branch:St,project:Gt}=Ct(this.config,W);return xt(this.config,Gt,St,L)}return L?vt=new URL(L,W):vt=new URL(W),rt&&(vt.hash=rt.toString()),vt.toString()}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(Zt,"factory",({config:j})=>{var u;const L=Et((u=j.getOptionalConfigArray("integrations.gerrit"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new Zt(W)),W=>W.config.host)});var Jt=t(61800);const fe="gitlab.com",ye="https://gitlab.com/api/v4";function Qe(j){const u=j.getString("host");let L=j.getOptionalString("apiBaseUrl");const W=j.getOptionalString("token");let rt=j.getOptionalString("baseUrl");if(L?L=(0,ct.trimEnd)(L,"/"):u===fe&&(L=ye),rt?rt=(0,ct.trimEnd)(rt,"/"):rt=`https://${u}`,(0,i.bK)(u)){if(!L||!(0,i.jv)(L))throw new Error(`Invalid GitLab integration config, '${L}' is not a valid apiBaseUrl`);if(!(0,i.jv)(rt))throw new Error(`Invalid GitLab integration config, '${rt}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${u}' is not a valid host`);return{host:u,token:W,apiBaseUrl:L,baseUrl:rt}}function Je(j){const u=j.map(Qe);return u.some(L=>L.host===fe)||u.push({host:fe,apiBaseUrl:ye,baseUrl:`https://${fe}`}),u}function Ke(j){let u="";return j.host!==fe&&(u=new URL(j.baseUrl).pathname),trimEnd(u,"/")}class Ae{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return Xe(u,"edit")}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(Ae,"factory",({config:j})=>{var u;const L=Je((u=j.getOptionalConfigArray("integrations.gitlab"))!==null&&u!==void 0?u:[]);return(0,i.gz)(L.map(W=>new Ae(W)),W=>W.config.host)});function Xe(j,u){return j.replace(/\/\-\/(blob|tree|edit)\//,`/-/${u}/`)}function _e(j){const u=j.getString("host");let L=j.getOptionalString("baseUrl");const W=j.getOptionalString("username"),rt=j.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Gitea integration config, '${u}' is not a valid host`);return L?L=(0,ct.trimEnd)(L,"/"):L=`https://${u}`,{host:u,baseUrl:L,username:W,password:rt}}var ze=t(48834).lW;function ne(j,u){try{var L;const W=(L=j.baseUrl)!==null&&L!==void 0?L:`https://${j.host}`,[rt,vt,St,Gt,zt,Ut,...jt]=u.replace(W,"").split("/"),oe=jt.join("/").replace(/^\//,"");return`${W}/${vt}/${St}/_edit/${Ut}/${oe}`}catch(W){throw new Error(`Incorrect URL: ${u}, ${W}`)}}function on(j,u){try{var L;const W=(L=j.baseUrl)!==null&&L!==void 0?L:`https://${j.host}`,[rt,vt,St,Gt,zt,Ut,...jt]=u.replace(W,"").split("/"),oe=jt.join("/").replace(/^\//,"");return`${W}/api/v1/repos/${vt}/${St}/contents/${oe}?ref=${Ut}`}catch(W){throw new Error(`Incorrect URL: ${u}, ${W}`)}}function Se(j){const u={},{username:L,password:W}=j;return W?(L?u.Authorization=`basic ${ze.from(`${L}:${W}`).toString("base64")}`:u.Authorization=`token ${W}`,{headers:u}):u}class $e{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return ne(this.config,u)}constructor(u){(0,o._)(this,"config",void 0),this.config=u}}(0,o._)($e,"factory",({config:j})=>{var u;const W=((u=j.getOptionalConfigArray("integrations.gitea"))!==null&&u!==void 0?u:[]).map(rt=>_e(rt));return(0,i.gz)(W.map(rt=>new $e(rt)),rt=>rt.config.host)});class je{static fromConfig(u){return new je({awsS3:f.factory({config:u}),azure:G.factory({config:u}),bitbucket:et.factory({config:u}),bitbucketCloud:pt.factory({config:u}),bitbucketServer:F.factory({config:u}),gerrit:Zt.factory({config:u}),github:Jt.X.factory({config:u}),gitlab:Ae.factory({config:u}),gitea:$e.factory({config:u})})}get awsS3(){return this.byType.awsS3}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}list(){return Object.values(this.byType).flatMap(u=>u.list())}byUrl(u){let L=Object.values(this.byType).map(W=>W.byUrl(u)).filter(Boolean);if(L.length>1){const W=L.filter(rt=>!(rt instanceof et));W.length!==0&&(L=W)}return L[0]}byHost(u){return Object.values(this.byType).map(L=>L.byHost(u)).find(Boolean)}resolveUrl(u){const L=this.byUrl(u.base);return L?L.resolveUrl(u):(0,i.FI)(u)}resolveEditUrl(u){const L=this.byUrl(u);return L?L.resolveEditUrl(u):u}constructor(u){(0,o._)(this,"byType",void 0),this.byType=u}}var pe=t(95965);class He{static fromConfig(u){return je.fromConfig(u)}}const Fe=(0,pe.T)({id:"integration.scmintegrations"})},61800:function(_,P,t){"use strict";t.d(P,{X:function(){return S},B:function(){return A}});var o=t(87612),i=t(38264),d=t(76635);const b="github.com",m="https://api.github.com",f="https://raw.githubusercontent.com";function l(R){var x,C;const E=(C=R.getOptionalString("host"))!==null&&C!==void 0?C:b;let M=R.getOptionalString("apiBaseUrl"),B=R.getOptionalString("rawBaseUrl");const w=R.getOptionalString("token"),U=(x=R.getOptionalConfigArray("apps"))===null||x===void 0?void 0:x.map(T=>({appId:T.getNumber("appId"),clientId:T.getString("clientId"),clientSecret:T.getString("clientSecret"),webhookSecret:T.getString("webhookSecret"),privateKey:T.getString("privateKey"),allowedInstallationOwners:T.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.bK)(E))throw new Error(`Invalid GitHub integration config, '${E}' is not a valid host`);return M?M=(0,d.trimEnd)(M,"/"):E===b&&(M=m),B?B=(0,d.trimEnd)(B,"/"):E===b&&(B=f),{host:E,apiBaseUrl:M,rawBaseUrl:B,token:w,apps:U}}function p(R){const x=R.map(l);return x.some(C=>C.host===b)||x.push({host:b,apiBaseUrl:m,rawBaseUrl:f}),x}class S{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(x){return A((0,i.FI)(x),"tree")}resolveEditUrl(x){return A(x,"edit")}constructor(x){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=x}}(0,o._)(S,"factory",({config:R})=>{var x;const C=p((x=R.getOptionalConfigArray("integrations.github"))!==null&&x!==void 0?x:[]);return(0,i.gz)(C.map(E=>new S(E)),E=>E.config.host)});function A(R,x){return R.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(C,E,M,B)=>`//${E}/${M}/${B}/${x}/`)}},38264:function(_,P,t){"use strict";t.d(P,{FI:function(){return p},bK:function(){return m},gz:function(){return l},jv:function(){return f}});var o=t(82717),i=t.n(o),d=t(76635),b=t.n(d);function m(A){const R=new URL("http://example.com");return R.host=A,R.host===A}function f(A){try{return new URL(A),!0}catch{return!1}}function l(A,R){return{list(){return A},byUrl(x){try{const C=typeof x=="string"?new URL(x):x;return A.find(E=>R(E)===C.host)}catch{return}},byHost(x){return A.find(C=>R(C)===x)}}}function p(A){const{url:R,base:x,lineNumber:C}=A;try{return new URL(R),R}catch{}let E;if(R.startsWith("/")){const{filepath:M}=i()(x);E=new URL(x);const B=(0,d.trimEnd)(E.pathname.substring(0,E.pathname.length-M.length),"/");E.pathname=`${B}${R}`}else E=new URL(R,x);return E.search=new URL(x).search,C&&(E.hash=`L${C}`),E.toString()}function S(A){beforeAll(()=>A.listen({onUnhandledRequest:"error"})),afterAll(()=>A.close()),afterEach(()=>A.resetHandlers())}},99329:function(_,P,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return f.s4}});var i=t(52322),d=t(2784),b=t(17029),m=t(73557),f=t(4577),l=t(29895),p=t(2296),S=t(57058),A=t(77277),R=t(87435),x=t(74359),C=t(55015),E=t(71597);function M({children:r}){return(0,m.GV)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(m.VA,{children:r})}const B=()=>(0,i.jsx)(R.m,{status:"404",statusMessage:"PAGE NOT FOUND"}),w=({step:r,error:e})=>{let n="";return r==="load-config"?n=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,i.jsx)(M,{children:(0,i.jsx)(R.m,{status:"501",statusMessage:n})})},U=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(x.y,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(A.Z,{variant:"outlined",onClick:e,children:"Retry"})}),T={Progress:C.E,Router:E.VK,NotFoundErrorPage:B,BootErrorPage:w,ErrorBoundaryFallback:U};var g=t(87612);const K="Invalid discovery URL pattern,";class V{static compile(e){const n=e.split(/\{\{\s*pluginId\s*\}\}/),s=n.join("pluginId");let a;try{a=new URL(s)}catch{throw new Error(`${K} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${K} URL must not have a hash`);if(a.search)throw new Error(`${K} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${K} URL must not end with a slash`);return new V(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,g._)(this,"parts",void 0),this.parts=e}}var X=t(82394),H=t.n(X);let G=Symbol.observable;class z{[G](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(){(0,g._)(this,"isClosed",!1),(0,g._)(this,"terminatingError",void 0),(0,g._)(this,"observable",new(H())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,g._)(this,"subscribers",new Set)}}let Y=Symbol.observable;class ot{[Y](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(e){(0,g._)(this,"isClosed",void 0),(0,g._)(this,"currentValue",void 0),(0,g._)(this,"terminatingError",void 0),(0,g._)(this,"observable",void 0),(0,g._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(H())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class lt{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,g._)(this,"subject",new z)}}class ht{captureEvent(e){}}class ft{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,g._)(this,"alertApi",void 0),(0,g._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class pt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,g._)(this,"subject",new z)}}class ct{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const mt=new Map;class Q{static create(e){var n;return new Q((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of mt.entries()){var n;!((n=e.key)===null||n===void 0)&&n.startsWith(s)&&a.handleStorageChange(e.key)}})}get(e){return this.snapshot(e).value}snapshot(e){let n,s="absent";try{const a=localStorage.getItem(this.getKeyName(e));a&&(n=JSON.parse(a,(c,y)=>(typeof y=="object"&&y!==null&&Object.freeze(y),y)),s="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:n,presence:s}}forBucket(e){const n=`${this.namespace}/${e}`;return mt.has(n)||mt.set(n,new Q(n,this.errorApi)),mt.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return Q.hasSubscribed||(Q.addStorageEventListener(),Q.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0:e.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const s of this.subscribers)s.next(n)}constructor(e,n){(0,g._)(this,"namespace",void 0),(0,g._)(this,"errorApi",void 0),(0,g._)(this,"subscribers",void 0),(0,g._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(H())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,g._)(Q,"hasSubscribed",!1);function $(r){let e=r.baseImplementation||t.g.fetch;var n;const s=[(n=r.middleware)!==null&&n!==void 0?n:[]].flat().reverse();for(const a of s)e=a.apply(e);return{fetch:e}}class J{static create(e){var n,s;const a=et(e),c=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",y=((s=e.header)===null||s===void 0?void 0:s.value)||(v=>`Bearer ${v}`);return new J(e.identityApi,a,c,y)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:c}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(c)),e(a))}}constructor(e,n,s,a){(0,g._)(this,"identityApi",void 0),(0,g._)(this,"allowUrl",void 0),(0,g._)(this,"headerName",void 0),(0,g._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function et(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?it(r.urlPrefixAllowlist):r.config?it([r.config.getString("backend.baseUrl")]):()=>!1}function it(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function ut(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class F{apply(e){return async(n,s)=>{const a=new Request(n,s),c="plugin://";if(!a.url.startsWith(c))return e(n,s);const{hostname:y,pathname:v,search:I,hash:N,username:tt,password:st}=new URL(`http://${a.url.substring(c.length)}`);let gt=await this.discoveryApi.getBaseUrl(y);if(tt||st){const bt=new URL(gt),Wt=`${tt}${st?`:${st}`:""}@`;gt=`${bt.protocol}//${Wt}${bt.host}${bt.pathname}`}const yt=`${ut(gt,v)}${I}${N}`;return e(yt,typeof n=="string"||Z(n)?s:n)}}constructor(e){(0,g._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function Z(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class Et{static resolvePluginProtocol(e){return new F(e.discoveryApi)}static injectIdentityAuth(e){return J.create(e)}constructor(){}}function At(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function dt(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class Ct{request(e){return new Promise((n,s)=>{this.requests.push({scopes:e,resolve:n,reject:s}),this.subject.next(this.getCurrentPending())})}resolve(e,n){this.requests=this.requests.filter(s=>At(e,s.scopes)?(s.resolve(n),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(n=>n.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const e=this.requests.length===0?void 0:this.requests.slice(1).reduce((n,s)=>dt(n,s.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}constructor(){(0,g._)(this,"requests",[]),(0,g._)(this,"subject",new ot(this.getCurrentPending()))}}class xt{createAuthRequester(e){const n=new Ct,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const c=this.currentRequests.slice(),y=this.makeAuthRequest(a,e);y?c[s]=y:delete c[s],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),a=>n.request(a)}makeAuthRequest(e,n){const{scopes:s}=e;if(s)return{provider:n.provider,trigger:async()=>{const a=await n.onAuthRequest(s);e.resolve(a)},reject:()=>{const a=new Error("Login failed, rejected by user");a.name="RejectedError",e.reject(a)}}}authRequest$(){return this.subject}constructor(){(0,g._)(this,"subject",new ot([])),(0,g._)(this,"currentRequests",[]),(0,g._)(this,"handlerCount",0)}}function Pt(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,c=window.screen.width/2-s/2,y=window.screen.height/2-a/2,v=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${y},left=${c}`);let I="";if(!v||typeof v.closed=="undefined"||v.closed){const gt=new Error("Failed to open auth popup.");gt.name="PopupRejectedError",n(gt);return}const N=gt=>{if(gt.source!==v||gt.origin!==r.origin)return;const{data:yt}=gt;if(yt.type==="config_info"){I=yt.targetOrigin;return}if(yt.type!=="authorization_response")return;const bt=yt;if("error"in bt){const Wt=new Error(bt.error.message);Wt.name=bt.error.name,n(Wt)}else e(bt.response);st()},tt=setInterval(()=>{if(v.closed){const gt=`Login failed, ${I&&I!==window.location.origin?`Incorrect app origin, expected ${I}`:"popup was closed"}`,yt=new Error(gt);yt.name="PopupClosedError",n(yt),st()}},100);function st(){window.removeEventListener("message",N),clearInterval(tt)}window.addEventListener("message",N)})}let Dt=!1;function Lt(r){return[...r].join(" ")}class ie{async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const n=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(a=>{throw new Error(`Auth refresh request failed, ${a}`)});if(!n.ok){const a=new Error(`Auth refresh request failed, ${n.statusText}`);throw a.status=n.status,a}const s=await n.json();if(s.error){const a=new Error(s.error.message);throw s.error.name&&(a.name=s.error.name),a}return await this.sessionTransform(s)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(n=>{throw new Error(`Logout request failed, ${n}`)});if(!e.ok){const n=new Error(`Logout request failed, ${e.statusText}`);throw n.status=e.status,n}}async showPopup(e){var n,s,a,c,y,v,I,N;const tt=this.joinScopesFunc(e),st=await this.buildUrl("/start",{scope:tt,origin:window.location.origin,flow:"popup"}),gt=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((c=this.popupOptions)===null||c===void 0||(a=c.size)===null||a===void 0?void 0:a.width)||450,yt=!((v=this.popupOptions)===null||v===void 0||(y=v.size)===null||y===void 0)&&y.fullscreen?window.screen.height:((N=this.popupOptions)===null||N===void 0||(I=N.size)===null||I===void 0?void 0:I.height)||730,bt=await Pt({url:st,name:`${this.provider.title} Login`,origin:new URL(st).origin,width:gt,height:yt});return await this.sessionTransform(bt)}async executeRedirect(e){const n=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:n,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,n){const s=await this.discoveryApi.getBaseUrl("auth"),a=this.buildQueryString({...n,env:this.environment});return`${s}/${this.provider.id}${e}${a}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([s,a])=>{if(typeof a=="string")return`${encodeURIComponent(s)}=${encodeURIComponent(a)}`;if(a)return encodeURIComponent(s)}).filter(Boolean).join("&");return n?`?${n}`:""}constructor(e){(0,g._)(this,"discoveryApi",void 0),(0,g._)(this,"environment",void 0),(0,g._)(this,"provider",void 0),(0,g._)(this,"joinScopesFunc",void 0),(0,g._)(this,"authRequester",void 0),(0,g._)(this,"sessionTransform",void 0),(0,g._)(this,"enableExperimentalRedirectFlow",void 0),(0,g._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:c,joinScopes:y=Lt,oauthRequestApi:v,sessionTransform:I=st=>st,popupOptions:N}=e;!Dt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),Dt=!0);var tt;this.enableExperimentalRedirectFlow=n&&(tt=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&tt!==void 0?tt:!1,this.authRequester=v.createAuthRequester({provider:c,onAuthRequest:async st=>this.enableExperimentalRedirectFlow?this.executeRedirect(st):this.showPopup(st)}),this.discoveryApi=s,this.environment=a,this.provider=c,this.joinScopesFunc=y,this.sessionTransform=I,this.popupOptions=N}}function te(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class he{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return te(s,n)}getExtendedScope(e,n){const s=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const a=this.options.sessionScopes(e);for(const c of a)s.add(c)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,g._)(this,"options",void 0),this.options=e}}var Nt=t(95965),Mt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Mt||(Mt={}));const Kt=(0,Nt.T)({id:"core.auth.google"}),Zt=(0,Nt.T)({id:"core.auth.github"}),Jt=(0,Nt.T)({id:"core.auth.okta"}),fe=(0,Nt.T)({id:"core.auth.gitlab"}),ye=(0,Nt.T)({id:"core.auth.microsoft"}),Qe=(0,Nt.T)({id:"core.auth.onelogin"}),Je=(0,Nt.T)({id:"core.auth.bitbucket"}),Ke=(0,Nt.T)({id:"core.auth.bitbucket-server"}),Ae=(0,Nt.T)({id:"core.auth.atlassian"});class Xe{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Mt.SignedIn:Mt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,g._)(this,"subject",new ot(Mt.SignedOut)),(0,g._)(this,"signedIn",!1)}}class _e{async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const s=await this.collapsedSessionRefresh(e.scopes),a=this.sessionScopesFunc(this.currentSession),c=this.sessionScopesFunc(s);return te(c,a)&&(this.currentSession=s),s}catch(s){if(e.optional)return;throw s}}if(!this.currentSession&&!e.instantPopup)try{const n=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=n,this.getSession(e)}catch{}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession(this.helper.getExtendedScope(this.currentSession,e));try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,g._)(this,"connector",void 0),(0,g._)(this,"helper",void 0),(0,g._)(this,"sessionScopesFunc",void 0),(0,g._)(this,"sessionShouldRefreshFunc",void 0),(0,g._)(this,"stateTracker",new Xe),(0,g._)(this,"refreshPromise",void 0),(0,g._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:c}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=c,this.helper=new he({sessionScopes:a,defaultScopes:s})}}const ze={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class ne{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=ze,oauthRequestApi:y,defaultScopes:v=[],scopeTransform:I=gt=>gt,popupOptions:N}=e,tt=new ie({configApi:n,discoveryApi:s,environment:a,provider:c,oauthRequestApi:y,sessionTransform({backstageIdentity:gt,...yt}){const bt={...yt,providerInfo:{idToken:yt.providerInfo.idToken,accessToken:yt.providerInfo.accessToken,scopes:ne.normalizeScopes(I,yt.providerInfo.scope),expiresAt:yt.providerInfo.expiresInSeconds?new Date(Date.now()+yt.providerInfo.expiresInSeconds*1e3):void 0}};if(gt){var Wt;const Ht=(Wt=gt.expiresInSeconds)!==null&&Wt!==void 0?Wt:yt.providerInfo.expiresInSeconds;bt.backstageIdentity={token:gt.token,identity:gt.identity,expiresAt:Ht?new Date(Date.now()+Ht*1e3):void 0}}return bt},popupOptions:N}),st=new _e({connector:tt,defaultScopes:new Set(v),sessionScopes:gt=>gt.providerInfo.scopes,sessionShouldRefresh:gt=>{var yt,bt;let Wt=1/0;return!((yt=gt.providerInfo)===null||yt===void 0)&&yt.expiresAt&&(Wt=Math.min(Wt,(gt.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((bt=gt.backstageIdentity)===null||bt===void 0)&&bt.expiresAt&&(Wt=Math.min(Wt,(gt.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Wt<60*5}});return new ne({sessionManager:st,scopeTransform:I})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=ne.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var c;return(c=a==null?void 0:a.providerInfo.accessToken)!==null&&c!==void 0?c:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,g._)(this,"sessionManager",void 0),(0,g._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const on={id:"google",title:"Google",icon:()=>null},Se="https://www.googleapis.com/auth/";class $e{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:c="development",provider:y=on,defaultScopes:v=["openid",`${Se}userinfo.email`,`${Se}userinfo.profile`]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:y,environment:c,defaultScopes:v,scopeTransform(I){return I.map(N=>N==="openid"?N:N==="profile"||N==="email"?`${Se}userinfo.${N}`:N.startsWith(Se)?N:`${Se}${N}`)}})}}const je={id:"microsoft",title:"Microsoft",icon:()=>null};class pe{static create(e){return new pe(e)}microsoftGraph(){return this.oauth2[pe.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(pe.resourceForScope).filter(c=>c!=="openid"))];if(n.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${n.join(", ")}. Access tokens can only have a single audience.`));var s;const a=(s=n[0])!==null&&s!==void 0?s:pe.MicrosoftGraphID;return Promise.resolve(a)}static resourceForScope(e){var n;const s=(n=e.match(RegExp("^(?<resourceURI>.*)\\/(?<scp>[^\\/]*)$")))===null||n===void 0?void 0:n.groups;if(s){const{resourceURI:a}=s;return a.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return pe.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?pe.MicrosoftGraphID:await pe.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=ne.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[s].getAccessToken(e,n)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}constructor(e){(0,g._)(this,"oauth2",void 0),(0,g._)(this,"configApi",void 0),(0,g._)(this,"environment",void 0),(0,g._)(this,"provider",void 0),(0,g._)(this,"oauthRequestApi",void 0),(0,g._)(this,"discoveryApi",void 0),(0,g._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=je,oauthRequestApi:c,discoveryApi:y,defaultScopes:v=["openid","offline_access","profile","email","User.Read"],scopeTransform:I=N=>N.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=c,this.discoveryApi=y,this.scopeTransform=I,this.oauth2={[pe.MicrosoftGraphID]:ne.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:v})}}}(0,g._)(pe,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const He={id:"github",title:"GitHub",icon:()=>null};class Fe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=He,oauthRequestApi:y,defaultScopes:v=["read:user"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const j={id:"okta",title:"Okta",icon:()=>null},u=new Set(["openid","profile","email","phone","address","groups","offline_access"]),L="okta.";class W{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=j,oauthRequestApi:y,defaultScopes:v=["openid","email","profile","offline_access"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v,scopeTransform(I){return I.map(N=>u.has(N)||N.startsWith(L)?N:`${L}${N}`)}})}}const rt={id:"gitlab",title:"GitLab",icon:()=>null};class vt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=rt,oauthRequestApi:y,defaultScopes:v=["read_user"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const St={id:"onelogin",title:"onelogin",icon:()=>null},Gt=new Set(["openid","profile","email","phone","address","groups","offline_access"]),zt="onelogin.";class Ut{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=St,oauthRequestApi:y}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(v){return v.map(I=>Gt.has(I)||I.startsWith(zt)?I:`${zt}${I}`)}})}}const jt={id:"bitbucket",title:"Bitbucket",icon:()=>null};class oe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=jt,oauthRequestApi:y,defaultScopes:v=["team"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const we={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class Le{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=we,oauthRequestApi:y,defaultScopes:v=["PROJECT_ADMIN"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const We={id:"atlassian",title:"Atlassian",icon:()=>null};class uo{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=We,oauthRequestApi:y}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a})}}var Xt=t(42380),Ee=t(96727),ae=t(6542),Dn=t(78847),ho=t(86386),Ln=t(58513);const Mn=(0,Nt.T)({id:"core.storage"});var jn=t(85094),ge=t(77186);const Te=(0,Nt.T)({id:"core.oauthrequest"}),fo=(0,Nt.T)({id:"plugin.permission.api"});var Ge=t(41385),po=t(96279),Bn=t.n(po),go=t(9571),Vt=t(30195),Be;(function(r){r.DENY="DENY",r.ALLOW="ALLOW",r.CONDITIONAL="CONDITIONAL"})(Be||(Be={}));const rn=Vt.z.lazy(()=>Vt.z.object({rule:Vt.z.string(),resourceType:Vt.z.string(),params:Vt.z.record(Vt.z.any()).optional()}).or(Vt.z.object({anyOf:Vt.z.array(rn).nonempty()})).or(Vt.z.object({allOf:Vt.z.array(rn).nonempty()})).or(Vt.z.object({not:rn}))),vo=Vt.z.object({result:Vt.z.literal(Be.ALLOW).or(Vt.z.literal(Be.DENY))}),mo=Vt.z.union([Vt.z.object({result:Vt.z.literal(Be.ALLOW).or(Vt.z.literal(Be.DENY))}),Vt.z.object({result:Vt.z.literal(Be.CONDITIONAL),pluginId:Vt.z.string(),resourceType:Vt.z.string(),conditions:rn})]),yo=(r,e)=>Vt.z.object({items:Vt.z.array(Vt.z.intersection(Vt.z.object({id:Vt.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:s})=>e.has(s)),{message:"Items in response do not match request"})});class Un{async authorize(e,n){return this.makeRequest(e,vo,n)}async authorizeConditional(e,n){return this.makeRequest(e,mo,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(tt=>({result:Be.ALLOW}));const a={items:e.map(tt=>({id:go.Z(),...tt}))},c=await this.discovery.getBaseUrl("permission"),y=await Bn()(`${c}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!y.ok)throw await Ge.V.fromResponse(y);const v=await y.json(),N=yo(n,new Set(a.items.map(({id:tt})=>tt))).parse(v).items.reduce((tt,st)=>(tt[st.id]=st,tt),{});return a.items.map(tt=>N[tt.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,g._)(this,"enabled",void 0),(0,g._)(this,"discovery",void 0),this.discovery=e.discovery;var n;this.enabled=(n=e.config.getOptionalBoolean("permission.enabled"))!==null&&n!==void 0?n:!1}}class vn{static create(e){const{config:n,discovery:s,identity:a}=e,c=new Un({discovery:s,config:n});return new vn(c,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,g._)(this,"permissionClient",void 0),(0,g._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const Eo=[(0,Xt.n)({api:Ee.N,deps:{configApi:ae.D},factory:({configApi:r})=>V.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Xt.n)({api:Dn.$,deps:{},factory:()=>new lt}),(0,Xt.n)({api:ho.v,deps:{},factory:()=>new ht}),(0,Xt.n)({api:Ln.V,deps:{alertApi:Dn.$},factory:({alertApi:r})=>{const e=new ft(r,new pt);return ct.forward(e,{hidden:!1}),e}}),(0,Xt.n)({api:Mn,deps:{errorApi:Ln.V},factory:({errorApi:r})=>Q.create({errorApi:r})}),(0,Xt.n)({api:jn.g,deps:{configApi:ae.D,identityApi:ge.$,discoveryApi:Ee.N},factory:({configApi:r,identityApi:e,discoveryApi:n})=>$({middleware:[Et.resolvePluginProtocol({discoveryApi:n}),Et.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Xt.n)({api:Te,deps:{},factory:()=>new xt}),(0,Xt.n)({api:Kt,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>$e.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:ye,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>pe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Zt,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Fe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Jt,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>W.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:fe,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>vt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Qe,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Ut.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Je,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>oe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Ke,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Le.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,Xt.n)({api:Ae,deps:{discoveryApi:Ee.N,oauthRequestApi:Te,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>uo.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:fo,deps:{discovery:Ee.N,identity:ge.$,config:ae.D},factory:({config:r,discovery:e,identity:n})=>vn.create({config:r,discovery:e,identity:n})})];var $n=t(43642),xo=t(80079),Co=t(90941),Fn=t(32915),mn=t(40562),Ao=t(21853),So=t(60744),bo=t(66569),Oo=t(30254),Po=t(13384),Wn=t(15933),Ro=t(58838),wo=t(86737),Nn=t(4989),Zn=t(44407),To=t(18628),yn=t(84219),En=t(98685),Io=t(39781),Do=t(39412),Lo=t(78258);const Mo={brokenImage:xo.Z,catalog:To.Z,scaffolder:Fn.Z,techdocs:mn.Z,search:Ao.Z,chat:So.Z,dashboard:bo.Z,docs:Oo.Z,email:Po.Z,github:Ro.Z,group:yn.Z,help:wo.Z,"kind:api":Wn.Z,"kind:component":Zn.Z,"kind:domain":$n.Z,"kind:group":yn.Z,"kind:location":Nn.Z,"kind:system":Co.Z,"kind:user":En.Z,"kind:resource":Do.Z,"kind:template":Lo.Z,user:En.Z,warning:Io.Z};var jo=t(87561),Bo=t(12536),kn=t(19219),Uo=t(41547),$o=t(3493),Fo=t(81887);const Wo=(0,Bo.Z)({productionPrefix:"jss4-"});function sn(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),c=n.getTheme("v5");let y;s||(y=(0,i.jsx)(jo.ZP,{}));let v=(0,i.jsxs)(i.Fragment,{children:[y,e]});return a&&(v=(0,i.jsx)(kn.ZP,{generateClassName:Wo,children:(0,i.jsx)(Uo.Z,{theme:a,children:v})})),c&&(v=(0,i.jsx)($o.Z,{injectFirst:!0,children:(0,i.jsx)(Fo.Z,{theme:c,children:v})})),v}const Kn={light:{type:"light",mode:"light",background:{default:"#F8F8F8",paper:"#FFFFFF"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#1F5493",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#1F5493"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:"#FFD600",navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},dark:{type:"dark",mode:"dark",background:{default:"#333333",paper:"#424242"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:"#FFD600",navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}};var Rt=t(88412),le=t(52475),ce=t(80956),No=t(73689),ar=t(93606);const h={wave:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,wave2:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,round:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`},O={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function D(r){const{colors:e,shape:n,options:s}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,y=`${n}, ${c}`;var v;const I=(v=s==null?void 0:s.fontColor)!==null&&v!==void 0?v:"#FFFFFF";return{colors:e,shape:n,backgroundImage:y,fontColor:I}}const k={home:D({colors:O.teal,shape:h.wave}),documentation:D({colors:O.pinkSea,shape:h.wave2}),tool:D({colors:O.purpleSky,shape:h.round}),service:D({colors:O.marineBlue,shape:h.wave}),website:D({colors:O.veryBlue,shape:h.wave}),library:D({colors:O.rubyRed,shape:h.wave}),other:D({colors:O.darkGrey,shape:h.wave}),app:D({colors:O.toastyOrange,shape:h.wave}),apis:D({colors:O.teal,shape:h.wave2}),card:D({colors:O.greens,shape:h.wave})},q=16,nt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',at="home";function Ot(r){const{palette:e,htmlFontSize:n=q,fontFamily:s=nt,defaultPageTheme:a=at,pageTheme:c=k,typography:y}=r;if(!c[a])throw new Error(`${a} is not defined in pageTheme.`);const v={htmlFontSize:n,fontFamily:s,h1:{fontSize:54,fontWeight:700,marginBottom:10},h2:{fontSize:40,fontWeight:700,marginBottom:8},h3:{fontSize:32,fontWeight:700,marginBottom:6},h4:{fontWeight:700,fontSize:28,marginBottom:6},h5:{fontWeight:700,fontSize:24,marginBottom:4},h6:{fontWeight:700,fontSize:20,marginBottom:2}};return{palette:e,typography:y!=null?y:v,page:c[a],getPageTheme:({themeId:I})=>{var N;return(N=c[I])!==null&&N!==void 0?N:c[a]}}}var Tt=t(47591);const $t={MuiCssBaseline:{styleOverrides:r=>({html:{height:"100%",fontFamily:r.typography.fontFamily},body:{height:"100%",fontFamily:r.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:r.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:r})=>({padding:r.spacing(1.5,2,1.5,2.5)}),head:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",color:r.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:r})=>({color:r.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,Tt._j)(r.palette.link,.3),background:(0,Tt.$n)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}}},Yt=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,c)=>typeof a=="string"?a:c*a;return n.map(a=>{const c=s(a,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function Ft(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function wt(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=Yt(s)),Object.fromEntries(Object.entries(e).map(([a,c])=>typeof c=="function"?[a,c({theme:n})]:[a,c]))}return e}}const re=/^&.Mui-([\w-]+)$/;function ve(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const s=r[n];if(!(!s||typeof s!="object"))for(const a of Object.keys(s)){const c=a,y=c.match(re);if(y){const[,v]=y,{[c]:I,...N}=s;I&&(e={...e,[n]:N,[v]:I})}}}return e}function Qt(r,e={}){const n={},s={};for(const a of Object.keys(e)){const c=e[a];c&&("styleOverrides"in c&&(a==="MuiCssBaseline"?n[a]=Ft(r,c.styleOverrides):n[a]=ve(wt(r,c.styleOverrides))),"defaultProps"in c&&(s[a]=c.defaultProps))}return{overrides:n,props:s}}var Bt=new WeakMap;class ee{getTheme(e){return(0,Rt._)(this,Bt).get(e)}constructor(e,n){(0,le._)(this,Bt,{writable:!0,value:new Map}),(0,ce._)(this,Bt,new Map),e&&(0,Rt._)(this,Bt).set("v4",e),n&&(0,Rt._)(this,Bt).set("v5",n)}}function me(r){const e=Ot(r),n={...$t,...r.components},s=(0,ar.Z)({...e,components:n}),a=Qt(s,n),c={...(0,No.Z)(e),...a};return new ee(c,s)}function It(r){const e=adaptV4Theme(r),n=createTheme(r);return new ee(n,e)}const kt={light:me({palette:Kn.light}),dark:me({palette:Kn.dark})};var _t=t(98192),xe=t(15222);const Oe=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(xe.Z,{}),Provider:({children:r})=>(0,i.jsx)(sn,{theme:kt.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(_t.Z,{}),Provider:({children:r})=>(0,i.jsx)(sn,{theme:kt.dark,children:r})}];var Me=t(64279),se=t(13980),Ue=t.n(se);class de{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,g._)(this,"holders",void 0),this.holders=e}}var Ve=t(29651),an=t(68993);const lr=(0,Ve.CT)("api-context"),Zo=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,d.useContext)(lr))===null||e===void 0?void 0:e.atVersion(1),c=a?new de(n,a):n;return(0,i.jsx)(lr.Provider,{value:(0,an.E)({1:c}),children:s})};Zo.propTypes={apis:Ue().shape({get:Ue().func.isRequired}).isRequired,children:Ue().node};var ls=t(9850),cs=t.n(ls),ds=t(12782),us=t.n(ds);const hs=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function xn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ko(r){if(r===null)return"null";if(Array.isArray(r))return"array";const e=typeof r;return e==="number"&&isNaN(r)?"nan":e==="string"&&r===""?"empty-string":e}const Ie={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r){return`Missing required config value at '${r}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class ln{static fromConfigs(e){return e.length===0?new ln(void 0):e.reduce((n,{data:s,context:a,filteredKeys:c,deprecatedKeys:y})=>{const v=new ln(s,a,n);if(v.filteredKeys=c,y)for(const{key:I,description:N}of y)console.warn(`The configuration key '${I}' of ${a} is deprecated and may be removed soon. ${N||""}`);return v},void 0)}has(e){var n;if(this.readValue(e)!==void 0)return!0;var a;return(a=(n=this.fallback)===null||n===void 0?void 0:n.has(e))!==null&&a!==void 0?a:!1}keys(){var e;const n=this.data?Object.keys(this.data):[];var s;const a=(s=(e=this.fallback)===null||e===void 0?void 0:e.keys())!==null&&s!==void 0?s:[];return[...new Set([...n,...a])]}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=cs()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(!1)var c;return a}else if(a===void 0)return s;return us()({},{value:a},{value:s},(y,v)=>!xn(v)||!xn(y)?v:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalConfig(e){var n;const s=this.readValue(e),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptionalConfig(e);if(xn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(Ie.type(this.fullKey(e),this.context,ko(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[c,y]of a.entries())if(!xn(y))return{expected:"object-array",value:y,key:`${e}[${c}]`};return!0});if(!n){if(!1)var s;return}return n.map((a,c)=>this.copy(a,`${e}[${c}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalNumber(e){const n=this.readConfigValue(e,a=>typeof a=="number"||typeof a=="string"||{expected:"number"});if(typeof n=="number"||n===void 0)return n;const s=Number(n);if(!Number.isFinite(s))throw new Error(Ie.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalBoolean(e){const n=this.readConfigValue(e,a=>typeof a=="boolean"||typeof a=="number"||typeof a=="string"||{expected:"boolean"});if(typeof n=="boolean"||n===void 0)return n;const s=String(n).trim();if(/^(?:y|yes|true|1|on)$/i.test(s))return!0;if(/^(?:n|no|false|0|off)$/i.test(s))return!1;throw new Error(Ie.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalString(e){return this.readConfigValue(e,n=>typeof n=="string"&&n!==""||{expected:"string"})}getStringArray(e){const n=this.getOptionalStringArray(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[s,a]of n.entries())if(typeof a!="string"||a==="")return{expected:"string-array",value:a,key:`${e}[${s}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,n,s){const a=new ln(e,this.context,s,this.fullKey(n));return a.filteredKeys=this.filteredKeys,a}readConfigValue(e,n){const s=this.readValue(e);if(s===void 0){var a;if(!1)var c;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const y=n(s);if(y!==!0){const{key:v=e,value:I=s,expected:N}=y;throw new TypeError(Ie.type(this.fullKey(v),this.context,ko(I),N))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!hs.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,c]of n.entries())if(xn(s))s=s[c];else if(s!==void 0){const y=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Ie.type(y,this.context,ko(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,g._)(this,"data",void 0),(0,g._)(this,"context",void 0),(0,g._)(this,"fallback",void 0),(0,g._)(this,"prefix",void 0),(0,g._)(this,"filteredKeys",void 0),(0,g._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const Cn="theme";class zn{static createWithStorage(e){const n=new zn(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(Cn))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(c=>{c?window.localStorage.setItem(Cn,c):window.localStorage.removeItem(Cn)}),window.addEventListener("storage",c=>{if(c.key===Cn){var y;const v=(y=localStorage.getItem(Cn))!==null&&y!==void 0?y:void 0;n.setActiveThemeId(v)}}),n}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}constructor(e){(0,g._)(this,"themes",void 0),(0,g._)(this,"activeThemeId",void 0),(0,g._)(this,"subject",void 0),this.themes=e,this.subject=new ot(void 0)}}var cn=t(82723);function cr(r){if(r.length<3)throw new Error(`The '${r}' feature flag must have a minimum length of three characters.`);if(r.length>150)throw new Error(`The '${r}' feature flag must not exceed 150 characters.`);if(!r.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${r}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class fs{registerFlag(e){cr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===cn.C.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===cn.C.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const s=Object.entries(n).filter(([a,c])=>(cr(a),c===cn.C.Active));return new Map(s)}catch{return new Map}}constructor(){(0,g._)(this,"registeredFeatureFlags",[]),(0,g._)(this,"flags",void 0)}}const Hn=(0,Nt.T)({id:"core.apptheme"}),dr=(0,Nt.T)({id:"core.applanguage"});var ps=t(96253);class Ko{static validateFactories(e,n){for(const s of n){const a=[s],c=new Set;for(;a.length;){const y=a.shift(),v=e.get(y);if(v)for(const I of Object.values(v.deps)){if(I.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);c.has(I)||(c.add(I),a.push(I))}}}}get(e){return this.load(e)}load(e,n=[]){const s=this.apis.get(e.id);if(s)return s;const a=this.factories.get(e);if(!a)return;if(n.includes(a.api))throw new Error(`Circular dependency of api factory for ${a.api}`);const c=this.loadDeps(e,a.deps,[...n,a.api]),y=a.factory(c);return this.apis.set(e.id,y),y}loadDeps(e,n,s){const a={};for(const c in n)if(n.hasOwnProperty(c)){const y=n[c],v=this.load(y,s);if(!v)throw new Error(`No API factory available for dependency ${y} of dependent ${e}`);a[c]=v}return a}constructor(e){(0,g._)(this,"factories",void 0),(0,g._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var zo;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(zo||(zo={}));class gs{register(e,n){const s=zo[e],a=this.factories.get(n.api.id);return a&&a.priority>=s?!1:(this.factories.set(n.api.id,{priority:s,factory:n}),!0)}get(e){const n=this.factories.get(e.id);if(n)return n.factory}getAllApis(){const e=new Set;for(const{factory:n}of this.factories.values())e.add(n.api);return e}constructor(){(0,g._)(this,"factories",new Map)}}function vs(r){const e={};for(const s in r.collectors)r.collectors.hasOwnProperty(s)&&(e[s]=r.collectors[s]());const n=[{node:d.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:s,parent:a,contexts:c}=n.shift();d.Children.forEach(s,y=>{if(!(0,d.isValidElement)(y))return;const v={};for(const I in e)if(e.hasOwnProperty(I)){const N=e[I];v[I]=N.visit(N.accumulator,y,a,c[I])}for(const I of r.discoverers){const N=I(y);N&&n.push({node:N,parent:y,contexts:v})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function Gn(r,e){return()=>({accumulator:r(),visit:e})}function ms(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function ys(r){var e,n;if(!((e=r.props)===null||e===void 0)&&e.path&&(!((n=r.props)===null||n===void 0)&&n.element)){var s;return(s=r.props)===null||s===void 0?void 0:s.element}}var be=t(62584);const Es=Gn(()=>new Set,(r,e)=>{const n=(0,be.I)(e,"core.plugin");n&&r.add(n)});var An=t(44394);const ur=r=>{const{children:e}=r,n=(0,An.h_)(cn.W),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,be.R)(ur,"core.featureFlagged",!0);const Vn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function Yn(r){const e=r;if(e!=null&&e.type){var n,s;return(s=(n=e.type.displayName)!==null&&n!==void 0?n:e.type.name)!==null&&s!==void 0?s:String(e.type)}return String(e)}const hr=r=>{const e=new Set;return r&&e.add(r),e};function fr(r,e=new Array){return d.Children.forEach(r,n=>{if(!(0,d.isValidElement)(n))return;const s=(0,be.I)(n,"core.mountPoint");if(s){const a=(0,be.I)(n,"core.plugin");e.push({routeRef:s,plugin:a})}fr(n.props.children,e)}),e}const xs=Gn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const y=(a=e.props)===null||a===void 0?void 0:a.path,v=(0,be.I)(e,"core.mountPoint");if(v&&y)throw new Error(`Path property may not be set directly on a routable extension "${Yn(e)}"`);var I;const N=(I=s==null||(c=s.obj)===null||c===void 0?void 0:c.children)!==null&&I!==void 0?I:r.objects;if(y!==void 0){if(typeof y!="string")throw new Error(`Element path must be a string at "${Yn(e)}"`);const bt=y.startsWith("/")?y.slice(1):y,Wt=e.props.element;if((0,be.I)(e,"core.gatherMountPoints")){var tt;if(Wt)throw new Error(`Mount point gatherers may not have an element prop "${Yn(e)}"`);const Ht={path:bt,element:"gathered",routeRefs:new Set,caseSensitive:Boolean((tt=e.props)===null||tt===void 0?void 0:tt.caseSensitive),children:[Vn],plugins:new Set};return N.push(Ht),{obj:Ht,gatherPath:bt,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Wt){var st;const[Ht,...qt]=fr(Wt);if(qt.length>0)throw new Error(`Route element with path "${y}" may not contain multiple routable extensions`);if(!Ht)return s;const{routeRef:ue,plugin:ke}=Ht,In={path:bt,element:"mounted",routeRefs:new Set([ue]),caseSensitive:Boolean((st=e.props)===null||st===void 0?void 0:st.caseSensitive),children:[Vn],plugins:hr(ke)};return N.push(In),r.paths.set(ue,bt),r.parents.set(ue,s==null?void 0:s.routeRef),{obj:In,routeRef:ue!=null?ue:s==null?void 0:s.routeRef,gatherPath:bt,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(v){var gt;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${Yn(e)}" with mount point "${v}" must be assigned a path`);s==null||(gt=s.obj)===null||gt===void 0||gt.routeRefs.add(v);const bt=(0,be.I)(e,"core.plugin");if(bt){var yt;s==null||(yt=s.obj)===null||yt===void 0||yt.plugins.add(bt)}return r.paths.set(v,s.gatherPath),r.parents.set(v,s==null?void 0:s.gatherRouteRef),{...s,routeRef:v}}return s}),Cs=Gn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c,y;if((n==null?void 0:n.props.element)===e)return s;let v=s==null?void 0:s.obj,I=s==null?void 0:s.routeRef,N=s==null?void 0:s.sticky;const tt=(a=e.props)===null||a===void 0?void 0:a.path;var st;const gt=(st=v==null?void 0:v.children)!==null&&st!==void 0?st:r.objects,yt=Boolean((c=e.props)===null||c===void 0?void 0:c.caseSensitive);let bt=s==null?void 0:s.path;if((0,be.I)(e,"core.gatherMountPoints")){if(!tt)throw new Error("Mount point gatherer must have a path");bt=tt}const Wt=(y=e.props)===null||y===void 0?void 0:y.element;let Ht=(0,be.I)(e,"core.mountPoint");if(!Ht&&(0,d.isValidElement)(Wt)&&(Ht=(0,be.I)(Wt,"core.mountPoint")),Ht){let ke=tt;if(bt&&(ke?bt=void 0:ke=bt),!ke)throw new Error("Mounted routable extension must have a path");r.paths.set(Ht,ke),I&&N?(r.parents.set(Ht,I),tt&&(I=Ht,N=!1)):(r.parents.set(Ht,I),I=Ht),tt?(v={caseSensitive:yt,path:tt,element:"mounted",routeRefs:new Set([Ht]),children:[Vn],plugins:hr((0,be.I)(e.props.element,"core.plugin"))},gt.push(v)):v==null||v.routeRefs.add(Ht)}if((0,be.I)(e,"core.gatherMountPoints")&&(N=!0),(0,be.I)(e,"core.gatherMountPoints")){if(!tt)throw new Error("Mount point gatherer must have a path");if(!Ht){var ue;v={caseSensitive:yt,path:tt,element:"gathered",routeRefs:new Set,children:[Vn],plugins:(s==null||(ue=s.obj)===null||ue===void 0?void 0:ue.plugins)||new Set},gt.push(v)}}return{obj:v,path:bt,routeRef:I,sticky:N}}),As=Gn(()=>new Set,(r,e)=>{if(e.type===ur){const n=e.props;r.add("with"in n?n.with:n.without)}});var Sn=t(84800),Ss=t(96087);const bn=(0,Ss.u)("route-ref-type",()=>Symbol("route-ref-type"));function pr(r){return r[bn]==="absolute"}function gr(r){return r[bn]==="sub"}function bs(r){return r[bn]==="external"}function Qn(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Os=t(34519),Ps=t.n(Os);function Rs(r,e,n){let s,a="";if(pr(r))s=r;else if(gr(r))s=r.parent,a=r.path;else if(bs(r)){const v=n.get(r);if(!v)return[void 0,""];if(pr(v))s=v;else if(gr(v))s=v.parent,a=v.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${v}`)}else throw r[bn]?new Error(`Unknown or invalid route ref type, ${r[bn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const c=e.get(s);if(c===void 0)return[void 0,""];const y=Qn(c,a);return[s,y]}function ws(r,e,n,s,a){var c;const y=(c=(0,Sn.fp)(a,e))!==null&&c!==void 0?c:[],v=Array();let I=-1;for(let st=r;st&&(I=y.findIndex(gt=>gt.route.routeRefs.has(st)),I===-1);st=s.get(st))v.unshift(st);v.length===0&&(I-=1);const N=I===-1?"":y[I].pathname,tt=v.slice(0,-1).map(st=>{const gt=n.get(st);if(gt===void 0)throw new Error(`No path for ${st}`);if(gt.includes(":"))throw new Error(`Cannot route to ${r} with parent ${st} as it has parameters`);return gt});return`${Qn(N,...tt)}/`}class Ts{resolve(e,n){const[s,a]=Rs(e,this.routePaths,this.routeBindings);if(!s)return;let c;typeof n=="string"?c=this.trimPath(n):n.pathname?c={...n,pathname:this.trimPath(n.pathname)}:c=n;const y=this.appBasePath+ws(s,c,this.routePaths,this.routeParents,this.routeObjects);return(...[I])=>{const N=I&&Ps()(I,tt=>typeof tt=="string"?tt.replaceAll(/[&?#;\/]/g,st=>encodeURIComponent(st)):tt);return Qn(y,(0,Sn.Gn)(a,N))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,c){(0,g._)(this,"routePaths",void 0),(0,g._)(this,"routeParents",void 0),(0,g._)(this,"routeObjects",void 0),(0,g._)(this,"routeBindings",void 0),(0,g._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=c}}const Is=(0,Ve.CT)("routing-context"),Ds=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:c})=>{const y=new Ts(r,e,n,s,a),v=(0,an.E)({1:y});return(0,i.jsx)(Is.Provider,{value:v,children:c})};function Ls(r,e){const n=new Set(e.values());n.delete(void 0);for(const s of e.keys()){if(n.has(s))continue;let a=s,c="";for(;a;){const v=r.get(a);if(v===void 0)throw new Error(`No path for ${a}`);c=Qn(v,c),a=e.get(a)}const y=c.match(/:(\w+)/g);if(y){for(let v=0;v<y.length;v++)for(let I=v+1;I<y.length;I++)if(y[I]===y[v])throw new Error(`Parameter ${y[I]} is duplicated in path ${c}`)}}}function Ms(r,e){for(const n of e)if(n.externalRoutes){for(const[s,a]of Object.entries(n.externalRoutes))if(!a.optional&&!r.has(a))throw new Error(`External route '${s}' of the '${n.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const js=(0,Ve.CT)("app-context"),Bs=({appContext:r,children:e})=>{const n=(0,an.E)({1:r});return(0,i.jsx)(js.Provider,{value:n,children:e})};function vr(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Ho(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Us{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw vr("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Ho("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw vr("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Ho("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(n=>n.getBackstageIdentity());return e.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${e.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),e}async getCredentials(){return this.waitForTarget.then(e=>e.getCredentials())}async getIdToken(){return this.waitForTarget.then(e=>{if(!e.getIdToken)throw new Error("IdentityApi does not implement getIdToken");return Ho("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,g._)(this,"target",void 0),(0,g._)(this,"waitForTarget",void 0),(0,g._)(this,"resolveTarget",()=>{}),(0,g._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var $s=t(72164);function Fs(r,e,n){if(r!==void 0){const a=n.find(c=>c.id===r);if(a)return a}if(e){const a=n.find(c=>c.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Ws=()=>{const r=(0,d.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,d.useState)(r.matches);return(0,d.useEffect)(()=>{const s=a=>{n(a.matches)};return r.addListener(s),()=>{r.removeListener(s)}},[r]),e};function mr({children:r}){const e=(0,An.h_)(Hn),n=(0,$s.Z)(e.activeThemeId$(),e.getActiveThemeId()),s=Boolean(window.matchMedia)?Ws():!1,a=Fs(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const yr=async()=>Ns();function Ns(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(!e)throw new Error("No static configuration provided");if(!Array.isArray(e))throw new Error("Static configuration has invalid format");const n=e.slice();if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const a=JSON.parse(r);Array.isArray(a)?n.push(...a):n.push({data:a,context:"env"})}catch(a){throw new Error(`Failed to load runtime configuration, ${a}`)}const s=window.__APP_CONFIG__;return s&&n.push({context:"window",data:s}),n}class Zs{add(e,n){return this.apis.push([e.id,n]),n}build(){return new dn(new Map(this.apis))}constructor(){(0,g._)(this,"apis",[])}}class dn{static builder(){return new Zs}static from(e){return new dn(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new dn(new Map([[e.id,n]]))}with(e,n){return new dn(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,g._)(this,"apis",void 0),this.apis=e}}function ks(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[c,y]of Object.entries(a)){const v=s[c];if(!v)throw new Error(`Key ${c} is not an existing external route`);if(!y&&!v.optional)throw new Error(`External route ${c} is required but was undefined`);y&&e.set(v,y)}}}),e}function On(){const[r]=(0,m.is)((0,i.jsx)(m.AW,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const Er=(0,d.createContext)(void 0);var xr=t(80851),Cr=t(62369),Ks=t(72388);const zs=(r,e)=>{try{const n=(0,Sn.fp)(e,{pathname:r}),s=n==null?void 0:n.filter(I=>{var N;return(I==null||(N=I.route.routeRefs)===null||N===void 0?void 0:N.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let c;a.routeRefs.size===1&&(c=a.routeRefs.values().next().value);let y;a.plugins.size===1&&(y=a.plugins.values().next().value);const v=Object.entries((s==null?void 0:s.params)||{}).reduce((I,[N,tt])=>(tt!==void 0&&N!=="*"&&(I[N]=tt),I),{});return{extension:"App",pluginId:(y==null?void 0:y.getId())||"root",...c?{routeRef:c.id}:{},_routeNodeType:a.element,params:v}}catch{return}},Hs=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,Cr.z)();return(0,d.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},Jn=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,m.TH)(),{params:a,...c}=zs(e,r)||{params:{}};return(0,i.jsx)(Ks.fC,{attributes:c,children:(0,i.jsx)(Hs,{pathname:e,search:n,hash:s,attributes:a})})};function Gs(r){return On()?Go(r):""}function Go(r){var e;let{pathname:n}=new URL((e=r.getOptionalString("app.baseUrl"))!==null&&e!==void 0?e:"/","http://sample.dev");return n=n.replace(/\/*$/,""),n}function Ar({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,d.useState)(),c=(0,An.h_)(ae.D),y=Go(c);return s?(e.setTarget(s,{signOutTargetUrl:y||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function Sr(r){const{Router:e,SignInPage:n}=(0,xr.q)().getComponents(),s=(0,An.h_)(ae.D),a=Go(s),c=`${a}/*`,y=(0,d.useContext)(Er);if(!y)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:v,appIdentityProxy:I}=y;return n?On()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Jn,{routeObjects:v}),(0,i.jsx)(Ar,{component:n,appIdentityProxy:I,children:(0,i.jsx)(m.Z5,{children:(0,i.jsx)(m.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Jn,{routeObjects:v}),(0,i.jsx)(Ar,{component:n,appIdentityProxy:I,children:r.children})]}):(I.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:a||"/"}),On()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Jn,{routeObjects:v}),(0,i.jsx)(m.Z5,{children:(0,i.jsx)(m.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Jn,{routeObjects:v}),r.children]}))}(0,be.R)(Sr,"core.type","AppRouter");const Pn="language",Ne="en";var Rn=new WeakMap,un=new WeakMap,Xn=new WeakMap;class _n{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Ne];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Ne))throw new Error(`Supported languages must include '${Ne}'`);var a;const c=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Ne;if(!s.includes(c))throw new Error(`Initial language must be one of the supported languages, got '${c}'`);return new _n(s,c)}static createWithStorage(e){const n=_n.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(Pn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(Pn)&&window.localStorage.setItem(Pn,c)}),window.addEventListener("storage",c=>{if(c.key===Pn){var y;const v=(y=localStorage.getItem(Pn))!==null&&y!==void 0?y:void 0;v&&n.setLanguage(v)}}),n}getAvailableLanguages(){return{languages:(0,Rt._)(this,Rn).slice()}}setLanguage(e){const n=e!=null?e:Ne;if(n!==(0,Rt._)(this,un)){if(n&&!(0,Rt._)(this,Rn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Rt._)(this,Rn).join("', '")}'`);(0,ce._)(this,un,n),(0,Rt._)(this,Xn).next({language:n})}}getLanguage(){return{language:(0,Rt._)(this,un)}}language$(){return(0,Rt._)(this,Xn)}constructor(e,n){(0,le._)(this,Rn,{writable:!0,value:void 0}),(0,le._)(this,un,{writable:!0,value:void 0}),(0,le._)(this,Xn,{writable:!0,value:void 0}),(0,ce._)(this,Rn,e),(0,ce._)(this,un,n),(0,ce._)(this,Xn,new ot({language:(0,Rt._)(this,un)}))}}var De=t(29190),qe=t(15356),Vs=t(24991),Ys=t(18015),br=t(35304);function Or(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var hn=new WeakMap,qn=new WeakMap,fn=new WeakMap,to=new WeakSet;class Qs{addTranslationResource(e){const n=(0,Ys.W)(e);for(const s of n.resources){const a=(0,De._)(this,to,Vo).call(this,s.language,n.id);(0,Rt._)(this,fn).has(a)||(0,Rt._)(this,fn).set(a,s.loader)}}needsLoading(e,n){const s=(0,De._)(this,to,Vo).call(this,e,n);return(0,Rt._)(this,fn).get(s)?!(0,Rt._)(this,hn).has(s):!1}async load(e,n){const s=(0,De._)(this,to,Vo).call(this,e,n),a=(0,Rt._)(this,fn).get(s);if(!a||(0,Rt._)(this,hn).has(s))return;const c=(0,Rt._)(this,qn).get(s);if(c){await c;return}const y=a().then(v=>{this.onLoad({language:e,namespace:n,messages:v.messages}),(0,Rt._)(this,hn).add(s)},v=>{throw(0,Rt._)(this,hn).add(s),v});(0,Rt._)(this,qn).set(s,y),await y}constructor(e){(0,qe._)(this,to),(0,g._)(this,"onLoad",void 0),(0,le._)(this,hn,{writable:!0,value:void 0}),(0,le._)(this,qn,{writable:!0,value:void 0}),(0,le._)(this,fn,{writable:!0,value:void 0}),this.onLoad=e,(0,ce._)(this,hn,new Set),(0,ce._)(this,qn,new Map),(0,ce._)(this,fn,new Map)}}function Vo(r,e){return`${r}/${e}`}var wn=new WeakMap,pn=new WeakMap,tn=new WeakMap,Yo=new WeakMap,eo=new WeakMap,Pr=new WeakSet,no=new WeakSet,Qo=new WeakSet;class Jo{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,Vs.Fs)({fallbackLng:Ne,supportedLngs:n,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(s.init(),!s.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:a}=e.languageApi.getLanguage();a!==Ne&&s.changeLanguage(a);const c=new Qs(I=>{s.addResourceBundle(I.language,I.namespace,Or(I.messages),!1,!0)}),y=(e==null?void 0:e.resources)||[];for(let I=y.length-1;I>=0;I--){const N=y[I];N.$$type==="@backstage/TranslationResource"?c.addTranslationResource(N):N.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Ne,N.id,Or(N.messages),!0,!1)}const v=new Jo(s,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:I})=>{(0,De._)(v,Pr,Js).call(v,I)}),v}getTranslation(e){const n=(0,br.y)(e);return(0,De._)(this,Qo,Rr).call(this,n),(0,De._)(this,no,Xo).call(this,n)}translation$(e){const n=(0,br.y)(e);return(0,De._)(this,Qo,Rr).call(this,n),new(H())(s=>{let a={};const c=()=>{a={};const v=a;(0,Rt._)(this,pn).load((0,Rt._)(this,tn),n.id).then(()=>{if(v===a){const I=(0,De._)(this,no,Xo).call(this,n);I.ready&&s.next(I)}},I=>{v===a&&s.error(Array.isArray(I)?I[0]:I)})},y=()=>{const v=(0,De._)(this,no,Xo).call(this,n);v.ready?s.next(v):c()};return(0,Rt._)(this,pn).needsLoading((0,Rt._)(this,tn),n.id)&&c(),(0,Rt._)(this,eo).add(y),()=>{(0,Rt._)(this,eo).delete(y)}})}constructor(e,n,s){(0,qe._)(this,Pr),(0,qe._)(this,no),(0,qe._)(this,Qo),(0,le._)(this,wn,{writable:!0,value:void 0}),(0,le._)(this,pn,{writable:!0,value:void 0}),(0,le._)(this,tn,{writable:!0,value:void 0}),(0,le._)(this,Yo,{writable:!0,value:new Set}),(0,le._)(this,eo,{writable:!0,value:new Set}),(0,ce._)(this,wn,e),(0,ce._)(this,pn,n),(0,ce._)(this,tn,s)}}function Js(r){(0,Rt._)(this,tn)!==r&&((0,ce._)(this,tn,r),(0,Rt._)(this,wn).changeLanguage(r),(0,Rt._)(this,eo).forEach(e=>e()))}function Xo(r){return(0,Rt._)(this,pn).needsLoading((0,Rt._)(this,tn),r.id)?{ready:!1}:{ready:!0,t:(0,Rt._)(this,wn).getFixedT(null,r.id)}}function Rr(r){if((0,Rt._)(this,Yo).has(r.id))return;(0,Rt._)(this,Yo).add(r.id);const e=r.getDefaultMessages();(0,Rt._)(this,wn).addResourceBundle(Ne,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Rt._)(this,pn).addTranslationResource(n)}function wr(r){const e=new URL(r);return e.protocol=document.location.protocol,e.hostname=document.location.hostname,e.port=document.location.port,e.toString().replace(/\/$/,"")}function Xs(r){const e=ln.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,c,y;if(n&&s){const v=new URL(n).origin,I=new URL(s).origin;if(v===I){const N=wr(s);s!==N&&(c=N)}}if(n){const v=wr(n);n!==v&&(y=v)}return(y||c)&&(a=a.concat({data:{app:y&&{baseUrl:y},backend:c&&{baseUrl:c}},context:"relative-resolver"})),a}function _s(r,e,n){var s;const a=Boolean(r),c=(0,Me.default)(r||(()=>Promise.resolve([])));let y;if(a&&c.loading){const{Progress:N}=e;y=(0,i.jsx)(N,{})}else if(c.error){const{BootErrorPage:N}=e;y=(0,i.jsx)(N,{step:"load-config",error:c.error})}const{ThemeProvider:v=mr}=e;return y?{node:(0,i.jsx)(Zo,{apis:dn.with(Hn,n),children:(0,i.jsx)(v,{children:y})})}:{api:ln.fromConfigs(!((s=c.value)===null||s===void 0)&&s.length?Xs(c.value):[])}}class qs{getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}constructor(e){(0,g._)(this,"app",void 0),this.app=e}}var _o=new WeakMap;class ti{getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){const n=this.getProvider();return()=>(0,i.jsx)(n,{children:e})}getProvider(){if((0,Rt._)(this,_o))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,ce._)(this,_o,!0);const e=new qs(this);let n=!1;return({children:a})=>{const c=(0,d.useRef)(!0),y=(0,d.useMemo)(()=>zn.createWithStorage(this.themes),[]),{routing:v,featureFlags:I,routeBindings:N}=(0,d.useMemo)(()=>{const bt=vs({root:a,discoverers:[ms,ys],collectors:{routing:On()?Cs:xs,collectedPlugins:Es,featureFlags:As}});return bt.collectedPlugins.forEach(Wt=>this.plugins.add(Wt)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...bt,routeBindings:ks(this.bindRoutes)}},[a]);n||(n=!0,Ls(v.paths,v.parents),Ms(N,this.plugins));const tt=_s(this.configLoader,this.components,y),st="api"in tt;if(st){const{api:bt}=tt;this.configApi=bt}if("node"in tt)return tt.node;if(st&&c.current){c.current=!1;const bt=this.getApiHolder().get(cn.W);if(bt){for(const qt of this.featureFlags)bt.registerFlag({...qt,pluginId:""});for(const qt of this.plugins.values())if("getFeatureFlags"in qt)for(const ue of qt.getFeatureFlags())bt.registerFlag({name:ue.name,pluginId:qt.getId()});else for(const ue of qt.output())ue.type==="feature-flag"&&bt.registerFlag({name:ue.name,pluginId:qt.getId()});const Wt=bt.getRegisteredFlags(),Ht=new Set(Wt.map(qt=>qt.name));for(const qt of I)Ht.has(qt)||bt.registerFlag({name:qt,pluginId:""})}}const{ThemeProvider:gt=mr,Progress:yt}=this.components;return(0,i.jsx)(Zo,{apis:this.getApiHolder(),children:(0,i.jsx)(Bs,{appContext:e,children:(0,i.jsx)(gt,{children:(0,i.jsx)(Ds,{routePaths:v.paths,routeParents:v.parents,routeObjects:v.objects,routeBindings:N,basePath:Gs(tt.api),children:(0,i.jsx)(Er.Provider,{value:{routeObjects:v.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(yt,{}),children:a})})})})})})}}getRouter(){return Sr}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const n of e.getApis())this.apiFactoryRegistry.get(n.api)||this.apiFactoryRegistry.register("default",n);return Ko.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:Hn,deps:{},factory:()=>zn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:ae.D,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:ge.$,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:dr,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:ps.o,deps:{languageApi:dr},factory:({languageApi:e})=>Jo.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:cn.W,deps:{},factory:()=>new fs});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const n of e.getApis())if(!this.apiFactoryRegistry.register("default",n))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${n.api}`);for(const e of this.apis)if(!this.apiFactoryRegistry.register("app",e))throw new Error(`Duplicate or forbidden API factory for ${e.api} in app`);return Ko.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Ko(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const s of e){const a=s.getId();if(n.has(a))throw new Error(`Duplicate plugin found '${a}'`);n.add(a)}}constructor(e){var n,s,a;(0,g._)(this,"apiHolder",void 0),(0,g._)(this,"configApi",void 0),(0,g._)(this,"apis",void 0),(0,g._)(this,"icons",void 0),(0,g._)(this,"plugins",void 0),(0,g._)(this,"featureFlags",void 0),(0,g._)(this,"components",void 0),(0,g._)(this,"themes",void 0),(0,g._)(this,"configLoader",void 0),(0,g._)(this,"defaultApis",void 0),(0,g._)(this,"bindRoutes",void 0),(0,g._)(this,"appLanguageApi",void 0),(0,g._)(this,"translationResources",void 0),(0,g._)(this,"appIdentityProxy",new Us),(0,g._)(this,"apiFactoryRegistry",void 0),(0,le._)(this,_o,{writable:!0,value:!1});var c;this.apis=(c=e.apis)!==null&&c!==void 0?c:[],this.icons=e.icons;var y;this.plugins=new Set((y=e.plugins)!==null&&y!==void 0?y:[]);var v;this.featureFlags=(v=e.featureFlags)!==null&&v!==void 0?v:[],this.components=e.components,this.themes=e.themes;var I;this.configLoader=(I=e.configLoader)!==null&&I!==void 0?I:yr;var N;this.defaultApis=(N=e.defaultApis)!==null&&N!==void 0?N:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new gs,this.appLanguageApi=_n.createWithStorage({defaultLanguage:(n=e.__experimentalTranslations)===null||n===void 0?void 0:n.defaultLanguage,availableLanguages:(s=e.__experimentalTranslations)===null||s===void 0?void 0:s.availableLanguages});var tt;this.translationResources=(tt=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&tt!==void 0?tt:[]}}function ei(r){return new ti(r)}function ni(r){var e,n,s,a;return ei({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...T,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:Eo,icons:{...Mo,...r==null?void 0:r.icons},plugins:(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[],featureFlags:(s=r==null?void 0:r.featureFlags)!==null&&s!==void 0?s:[],themes:(a=r==null?void 0:r.themes)!==null&&a!==void 0?a:Oe})}var oo=t(2532);let Tr=!1;const Ir=r=>{const e=(0,xr.q)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>On(),[]),c=[...(0,oo.v)(r.children,y=>y.getElements().flatMap(v=>{let I=v.props.path;if(I==="")return[];var N;I=(N=I==null?void 0:I.replace(/\/\*$/,""))!==null&&N!==void 0?N:"/";let tt=s?v:v.props.element;return!s&&!tt&&(tt=v,Tr||(console.warn("DEPRECATION WARNING: All elements within <FlatRoutes> must be of type <Route> with an element prop. Existing usages of <Navigate key=[path] to=[to] /> should be replaced with <Route path=[path] element={<Navigate to=[to] />} />."),Tr=!0)),[{path:I,element:tt,children:v.props.children?[{path:I==="/"?"/":"*",element:v.props.children}]:void 0}]}).sort((v,I)=>I.path.localeCompare(v.path)).map(v=>({...v,path:v.path==="/"?"/":`${v.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,m.V$)(c)};(0,be.R)(Ir,"core.type","FlatRoutes");var en=t(74314),oi=t(51547),ri=t(88797);function Dr(r){return!r.cursor}function Ma(r){return!Dr(r)}class si{async getEntityAncestors(e,n){const{kind:s,namespace:a,name:c}=(0,en.of)(e.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}/ancestry`,n)}async getLocationById(e,n){return await this.requestOptional("GET",`/locations/${encodeURIComponent(e)}`,n)}async getEntities(e,n){const{filter:s=[],fields:a=[],order:c,offset:y,limit:v,after:I}=e!=null?e:{},N=this.getParams(s);if(a.length&&N.push(`fields=${a.map(encodeURIComponent).join(",")}`),c)for(const yt of[c].flat())yt&&N.push(`order=${encodeURIComponent(yt.order)}:${encodeURIComponent(yt.field)}`);y!==void 0&&N.push(`offset=${y}`),v!==void 0&&N.push(`limit=${v}`),I!==void 0&&N.push(`after=${encodeURIComponent(I)}`);const tt=N.length?`?${N.join("&")}`:"",st=await this.requestRequired("GET",`/entities${tt}`,n),gt=(yt,bt)=>{var Wt,Ht;if(((Wt=yt.metadata)===null||Wt===void 0?void 0:Wt.name)===void 0||yt.kind===void 0||((Ht=bt.metadata)===null||Ht===void 0?void 0:Ht.name)===void 0||bt.kind===void 0)return 0;const qt=(0,en.eE)(yt),ue=(0,en.eE)(bt);return qt<ue?-1:qt>ue?1:0};return{items:st.sort(gt)}}async getEntitiesByRefs(e,n){var s;const a={entityRefs:e.entityRefs};!((s=e.fields)===null||s===void 0)&&s.length&&(a.fields=e.fields);const y=`${await this.discoveryApi.getBaseUrl("catalog")}/entities/by-refs`,v=await this.fetchApi.fetch(y,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(a)});if(!v.ok)throw await Ge.V.fromResponse(v);const{items:I}=await v.json();return{items:I.map(N=>N!=null?N:void 0)}}async queryEntities(e={},n){const s=[];if(Dr(e)){var a,c;const{fields:v=[],filter:I,limit:N,orderFields:tt,fullTextFilter:st}=e;s.push(...this.getParams(I)),N!==void 0&&s.push(`limit=${N}`),tt!==void 0&&(Array.isArray(tt)?tt:[tt]).forEach(({field:yt,order:bt})=>s.push(`orderField=${yt},${bt}`)),v.length&&s.push(`fields=${v.map(encodeURIComponent).join(",")}`);const gt=st==null||(a=st.term)===null||a===void 0?void 0:a.trim();gt&&s.push(`fullTextFilterTerm=${gt}`),!(st==null||(c=st.fields)===null||c===void 0)&&c.length&&s.push(`fullTextFilterFields=${st.fields.join(",")}`)}else{const{fields:v=[],limit:I,cursor:N}=e;s.push(`cursor=${N}`),I!==void 0&&s.push(`limit=${I}`),v.length&&s.push(`fields=${v.map(encodeURIComponent).join(",")}`)}const y=s.length?`?${s.join("&")}`:"";return this.requestRequired("GET",`/entities/by-query${y}`,n)}async getEntityByRef(e,n){const{kind:s,namespace:a,name:c}=(0,en.of)(e);return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:c}=e;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async refreshEntity(e,n){const s=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({entityRef:e})});if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e,c=this.getParams(s);for(const v of a)c.push(`facet=${encodeURIComponent(v)}`);const y=c.length?`?${c.join("&")}`:"";return await this.requestOptional("GET",`/entity-facets${y}`,n)}async addLocation(e,n){const{type:s="url",target:a,dryRun:c}=e,y=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${c?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({type:s,target:a})});if(y.status!==201)throw new Error(await y.text());const{location:v,entities:I,exists:N}=await y.json();if(!v)throw new Error(`Location wasn't added: ${a}`);return{location:v,entities:I,exists:N}}async getLocationByRef(e,n){return(await this.requestRequired("GET","/locations",n)).map(a=>a.data).find(a=>e===(0,oi.NZ)(a))}async removeLocationById(e,n){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(e)}`,n)}async removeEntityByUid(e,n){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(e)}`,n)}async validateEntity(e,n,s){const a=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/validate-entity`,{headers:{"Content-Type":"application/json",...(s==null?void 0:s.token)&&{Authorization:`Bearer ${s==null?void 0:s.token}`}},method:"POST",body:JSON.stringify({entity:e,location:n})});if(a.ok)return{valid:!0};if(a.status!==400)throw await Ge.V.fromResponse(a);const{errors:c=[]}=await a.json();return{valid:!1,errors:c}}async requestIgnored(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok)throw await Ge.V.fromResponse(y)}async requestRequired(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok)throw await Ge.V.fromResponse(y);return y.json()}async requestOptional(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok){if(y.status===404)return;throw await Ge.V.fromResponse(y)}return await y.json()}getParams(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[c,y]of Object.entries(s))for(const v of[y].flat())v===ri.n?a.push(encodeURIComponent(c)):typeof v=="string"&&a.push(`${encodeURIComponent(c)}=${encodeURIComponent(v)}`);a.length&&n.push(`filter=${a.join(",")}`)}return n}constructor(e){(0,g._)(this,"discoveryApi",void 0),(0,g._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Bn()}}}var Lr=t(88624),ii=t(36802),ai=t(51271),Mr=t(36434),Tn=t(65524),li=t(15006),Re=t(82963),ci=t(53945),gn=t(76635);async function di({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,gn.isArray)(s))return;var a;const c=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(gn.isString).map(y=>y.split(":")).filter(y=>y.length===4&&y[0]==="entity").map(([y,v,I,N])=>(0,en.eE)({kind:v,namespace:I,name:N})).forEach(y=>c.add(y)),await n.set("entityRefs",Array.from(c)),await e.remove("starredEntities")}class ui{async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}constructor(e){(0,g._)(this,"settingsStore",void 0),(0,g._)(this,"starredEntities",void 0),(0,g._)(this,"subscribers",new Set),(0,g._)(this,"observable",new(H())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),di(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities");var n;this.starredEntities=new Set((n=this.settingsStore.snapshot("entityRefs").value)!==null&&n!==void 0?n:[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{var a;this.starredEntities=new Set((a=s.value)!==null&&a!==void 0?a:[]),this.notifyChanges()}})}}function qo(r){const{years:e=0,months:n=0,weeks:s=0,days:a=0,hours:c=0,minutes:y=0,seconds:v=0,milliseconds:I=0}=r;return((((e*365+n*30+s*7+a)*24+c)*60+y)*60+v)*1e3+I}var hi=t(99798),fi=t.n(hi),pi=t(12830),gi=t.n(pi),vi=t(68203),mi=t(77224),yi=t(78898);const Ei={seconds:10},xi={milliseconds:50},ja=null,Ci={api:Wn.Z,component:Zn.Z,system:mi.Z,domain:$n.Z,location:Nn.Z,user:En.Z,group:yn.Z,template:yi.Z};function jr(r){return{async:r.async,render:({entityRef:e,entity:n,context:s})=>({snapshot:(0,vi.n)(n||e,s),loadEntity:r.async})}}var ro=new WeakMap,tr=new WeakMap,so=new WeakMap,er=new WeakMap,io=new WeakMap,Br=new WeakSet,Ur=new WeakSet,$r=new WeakSet;class ao{static createLocal(){return new ao({renderer:jr({async:!1})})}static create(e){return new ao(e)}forEntity(e,n){const{entityRef:s,kind:a,entity:c,needsLoad:y}=(0,De._)(this,Br,Ai).call(this,e),v=tt=>{const{snapshot:st}=(0,Rt._)(this,io).render({entityRef:s,loading:tt.loading,entity:tt.entity,context:n||{}});return{...st,entityRef:s,Icon:(0,De._)(this,$r,bi).call(this,st.Icon,a)}};let I;try{I=v({loading:y,entity:c})}catch{I={primaryTitle:s,entityRef:s}}const N=y?new(H())(tt=>{let st=!1;return Promise.resolve().then(()=>{var gt;return(gt=(0,Rt._)(this,so))===null||gt===void 0?void 0:gt.load(s)}).then(gt=>{if(!st&>&>.metadata.etag!==(c==null?void 0:c.metadata.etag)){const yt=v({loading:!1,entity:gt});tt.next(yt)}}).catch(()=>{}).finally(()=>{st||tt.complete()}),()=>{st=!0}}):void 0;return{snapshot:I,update$:N}}constructor(e){(0,qe._)(this,Br),(0,qe._)(this,Ur),(0,qe._)(this,$r),(0,le._)(this,ro,{writable:!0,value:void 0}),(0,le._)(this,tr,{writable:!0,value:void 0}),(0,le._)(this,so,{writable:!0,value:void 0}),(0,le._)(this,er,{writable:!0,value:void 0}),(0,le._)(this,io,{writable:!0,value:void 0});var n;const s=(n=e.cacheTtl)!==null&&n!==void 0?n:Ei;var a;const c=(a=e.batchDelay)!==null&&a!==void 0?a:xi;var y;const v=(y=e.renderer)!==null&&y!==void 0?y:jr({async:!0}),I={};var N;if(Object.entries((N=e.kindIcons)!==null&&N!==void 0?N:Ci).forEach(([tt,st])=>{I[tt.toLocaleLowerCase("en-US")]=st}),v.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");(0,ce._)(this,so,(0,De._)(this,Ur,Si).call(this,{cacheTtl:s,batchDelay:c,renderer:v,catalogApi:e.catalogApi}))}(0,ce._)(this,tr,qo(s)),(0,ce._)(this,ro,new Map),(0,ce._)(this,er,I),(0,ce._)(this,io,v)}}function Ai(r){if(typeof r!="string")return{entity:r,kind:r.kind,entityRef:(0,en.eE)(r),needsLoad:!1};const e=(0,Rt._)(this,ro).get(r),n=e==null?void 0:e.entity,a=(!e||Date.now()-e.updatedAt>(0,Rt._)(this,tr))&&(0,Rt._)(this,io).async!==!1&&(0,Rt._)(this,so)!==void 0;return{entity:n,kind:(0,en.of)(r).kind,entityRef:r,needsLoad:a}}function Si(r){const e=qo(r.cacheTtl),n=qo(r.batchDelay);return new(fi())(async s=>{const{items:a}=await r.catalogApi.getEntitiesByRefs({entityRefs:s}),c=Date.now();return s.forEach((y,v)=>{(0,Rt._)(this,ro).set(y,{updatedAt:c,entity:a[v]})}),a},{name:"DefaultEntityPresentationApi",cacheMap:new(gi())(e),maxBatchSize:100,batchScheduleFn:n?s=>setTimeout(s,n):void 0})}function bi(r,e){return r||(r===!1?!1:(0,Rt._)(this,er)[e.toLocaleLowerCase("en-US")])}const Pe=(0,li.r)({id:"catalog",apis:[(0,Xt.n)({api:Lr.A,deps:{discoveryApi:Ee.N,fetchApi:jn.g},factory:({discoveryApi:r,fetchApi:e})=>new si({discoveryApi:r,fetchApi:e})}),(0,Xt.n)({api:ii.p,deps:{storageApi:Mn},factory:({storageApi:r})=>new ui({storageApi:r})}),(0,Xt.n)({api:ai.X,deps:{catalogApi:Lr.A},factory:({catalogApi:r})=>ao.create({catalogApi:r})})],routes:{catalogIndex:Tn._Z,catalogEntity:Mr.w},externalRoutes:{createComponent:Tn.yw,viewTechDoc:Tn.jU,createFromTemplate:Tn.ql}}),Ba=Pe.provide((0,Re.P4)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(7241),t.e(1600)]).then(t.bind(t,51600)).then(r=>r.CatalogPage),mountPoint:Tn._Z})),Oi=Pe.provide((0,Re.P4)({name:"CatalogEntityPage",component:()=>t.e(8951).then(t.bind(t,78951)).then(r=>r.CatalogEntityPage),mountPoint:Mr.w})),Ua=Pe.provide((0,Re.CO)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(1059),t.e(3510)]).then(t.bind(t,43510)).then(r=>r.AboutCard)}})),$a=Pe.provide((0,Re.CO)({name:"EntityLinksCard",component:{lazy:()=>t.e(7750).then(t.bind(t,17750)).then(r=>r.EntityLinksCard)}})),Fa=Pe.provide((0,Re.CO)({name:"EntityLabelsCard",component:{lazy:()=>t.e(5877).then(t.bind(t,85877)).then(r=>r.EntityLabelsCard)}})),Wa=Pe.provide((0,Re.CO)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(5458).then(t.bind(t,5458)).then(r=>r.HasSystemsCard)}})),Na=Pe.provide((0,Re.CO)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(1105).then(t.bind(t,1105)).then(r=>r.HasComponentsCard)}})),Za=Pe.provide((0,Re.CO)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(2440).then(t.bind(t,82440)).then(r=>r.HasSubcomponentsCard)}})),ka=Pe.provide((0,Re.CO)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(9770).then(t.bind(t,79770)).then(r=>r.HasResourcesCard)}})),Ka=Pe.provide((0,Re.CO)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(9545).then(t.bind(t,19545)).then(r=>r.DependsOnComponentsCard)}})),za=Pe.provide((0,Re.CO)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(184).then(t.bind(t,40184)).then(r=>r.DependencyOfComponentsCard)}})),Ha=Pe.provide((0,Re.CO)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(1032).then(t.bind(t,81032)).then(r=>r.DependsOnResourcesCard)}})),Ga=Pe.provide((0,Re.CO)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(3487).then(t.bind(t,33487)).then(r=>r.RelatedEntitiesCard)}})),Va=Pe.provide((0,ci.E5)({name:"CatalogSearchResultListItem",component:()=>t.e(7670).then(t.bind(t,27670)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Fr=t(91657),Wr=t(58496);class Pi{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,n){const a=`${await this.getApiOrigin()}/${n}`,c=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(c.status===404)throw new Error("Page not found");return c.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,s){const a=await this.getApiOrigin();return new URL(e,`${a}/${s}`).toString()}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,g._)(this,"configApi",void 0),(0,g._)(this,"discoveryApi",void 0),(0,g._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class Ri{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,g._)(this,"configApi",void 0),(0,g._)(this,"discoveryApi",void 0),(0,g._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const wi=[(0,Xt.n)({api:Wr.D,deps:{configApi:ae.D,discoveryApi:Ee.N,identityApi:ge.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Pi({configApi:r,discoveryApi:e,identityApi:n})}),(0,Xt.n)({api:Wr.g,deps:{configApi:ae.D,discoveryApi:Ee.N,identityApi:ge.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Ri({configApi:r,discoveryApi:e,identityApi:n})}),(0,Xt.n)({api:Fr.q,deps:{configApi:ae.D},factory:({configApi:r})=>Fr.a.fromConfig(r)})],Ti={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},Ii={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function Di(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function Li(){const r=await yr(),e=await Di();return[...r,{context:"detected",data:e?Ti:Ii}]}var Ze=t(79692),Mi=t(58845);const ji=(0,Ze.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var Bi=()=>{const r=ji();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,i.jsx)("path",{className:r.path,d:"M302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Zm241-88.84q7.94,0,17.09.17t18.12,1a139.3,139.3,0,0,1,16.74,2.57,42.78,42.78,0,0,1,13.3,5.14,64.27,64.27,0,0,1,20.54,19.89Q662,168,662,186.54q0,19.54-9.49,33.78t-27.1,21.09v.68q22.78,4.82,34.87,20.58t12.08,38.4a72.62,72.62,0,0,1-4.83,26.06,65.29,65.29,0,0,1-14.33,22.46,71.57,71.57,0,0,1-23.47,15.78q-14,6-32.28,6H478.38V126.54Zm9,105.27q28,0,40.21-9.78t12.26-29.31q0-13-4.14-20.58a29.47,29.47,0,0,0-11.4-11.66A45,45,0,0,0,597,155.17a161.2,161.2,0,0,0-20.19-1.2h-65.6v77.84Zm16.57,112.13q21.74,0,34-11.66T639.59,300q0-12-4.48-19.88a34.85,34.85,0,0,0-11.91-12.52,50.14,50.14,0,0,0-17.09-6.52,105,105,0,0,0-20-1.88H511.17v84.7Zm274.79,26.74q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58A41.19,41.19,0,0,1,705,348.56q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.08-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7T736.6,249.29H707.26q.69-16.46,6.9-27.77a52.21,52.21,0,0,1,16.57-18.35,70,70,0,0,1,23.65-10.11A125.51,125.51,0,0,1,782.86,190a168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7A41.23,41.23,0,0,1,844,213.59q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-18,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.5,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14ZM1002.07,225q-11.05-9.25-29.69-9.26-15.89,0-26.58,5.83A47.29,47.29,0,0,0,928.71,237a64.66,64.66,0,0,0-9.15,22.12A119.83,119.83,0,0,0,916.8,285a98.22,98.22,0,0,0,2.93,24,64.18,64.18,0,0,0,9.15,20.74,46.2,46.2,0,0,0,16.23,14.58q10,5.49,23.82,5.48,21.75,0,34-11.31t15-31.89h30q-4.83,32.91-24.68,50.75t-54,17.83q-20.37,0-36.07-6.52A69.86,69.86,0,0,1,907,350.11a79.92,79.92,0,0,1-15.88-28.63A118.64,118.64,0,0,1,885.73,285a129.41,129.41,0,0,1,5.18-37.21,85.63,85.63,0,0,1,15.71-30.17A73.46,73.46,0,0,1,933,197.35Q948.91,190,970,190a108.54,108.54,0,0,1,28.48,3.6,69.59,69.59,0,0,1,23.48,11.15,61,61,0,0,1,16.74,19q6.55,11.49,8.29,27.26h-30.38Q1013.11,234.21,1002.07,225Zm109.77-98.41v145l81.47-77.49h39.36l-70.77,64.46,75.95,112.82h-37.29l-61.1-92.59-27.62,25.38v67.21H1082.5V126.54Zm170.54,205.22a31.07,31.07,0,0,0,10.87,10.63,49,49,0,0,0,15.19,5.66,87.06,87.06,0,0,0,17.44,1.71,109.18,109.18,0,0,0,14.5-1,53.22,53.22,0,0,0,14-3.78,26.27,26.27,0,0,0,10.53-8q4.14-5.32,4.14-13.55,0-11.31-8.63-17.14a73.69,73.69,0,0,0-21.58-9.43q-12.94-3.6-28.13-6.52a146,146,0,0,1-28.14-8.23A58.16,58.16,0,0,1,1261,267.13q-8.64-9.6-8.63-26.75,0-13.38,6-23a49.26,49.26,0,0,1,15.53-15.61,71.76,71.76,0,0,1,21.4-8.91A99.41,99.41,0,0,1,1319,190a141.31,141.31,0,0,1,28,2.58,64.85,64.85,0,0,1,22.62,8.91,46.16,46.16,0,0,1,15.7,17.15q5.87,10.8,6.91,26.91h-29.35q-.69-8.57-4.48-14.23a29.36,29.36,0,0,0-9.67-9.08,44.16,44.16,0,0,0-12.94-5,67.68,67.68,0,0,0-14.33-1.54,87.29,87.29,0,0,0-13.29,1,45.28,45.28,0,0,0-12.26,3.6,24.49,24.49,0,0,0-9,6.86q-3.46,4.29-3.46,11.14a16.32,16.32,0,0,0,5.36,12.52,42.75,42.75,0,0,0,13.63,8.23,120,120,0,0,0,18.64,5.48q10.37,2.24,20.72,4.63,11,2.4,21.57,5.83A70.74,70.74,0,0,1,1382,284.1a44.55,44.55,0,0,1,13.12,14.23q5,8.58,5,21.26,0,16.13-6.73,26.75a52.5,52.5,0,0,1-17.61,17.14,73.89,73.89,0,0,1-24.51,9.09,146.3,146.3,0,0,1-27.1,2.57,126.24,126.24,0,0,1-28.31-3.09A69.56,69.56,0,0,1,1272,361.94a51.74,51.74,0,0,1-16.57-18.52q-6.21-11.49-6.9-27.95h29.34A32.65,32.65,0,0,0,1282.38,331.76Zm226.46-137.67v25.72h-35.56V329.88a31.37,31.37,0,0,0,.87,8.23,8.42,8.42,0,0,0,3.28,4.8,14.61,14.61,0,0,0,6.73,2.23,99.19,99.19,0,0,0,11.22.51h13.46v25.72H1486.4a105.8,105.8,0,0,1-19.5-1.55,28.65,28.65,0,0,1-13.12-5.65,24.09,24.09,0,0,1-7.42-11.66q-2.43-7.54-2.42-19.89V219.81h-30.38V194.09h30.38V140.94h29.34v53.15ZM1699.4,370.68q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58,41.19,41.19,0,0,1-12.6-15.26q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.07-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7t-13.46,26.57h-29.34q.67-16.46,6.9-27.77A52.21,52.21,0,0,1,1562,203.17a70,70,0,0,1,23.65-10.11,125.51,125.51,0,0,1,28.48-3.09,168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7,41.23,41.23,0,0,1,15.53,14.89q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-17.95,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.51,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14Zm208.85,141.62q-20,21.6-62.83,21.6a122.11,122.11,0,0,1-25.37-2.74,78,78,0,0,1-23.48-8.92,54.41,54.41,0,0,1-17.43-16.11q-6.91-10-7.6-24.35h29.35a21.47,21.47,0,0,0,5,13.38,36.67,36.67,0,0,0,11.4,8.91,55.52,55.52,0,0,0,14.67,5,79.51,79.51,0,0,0,15.19,1.55q14.49,0,24.51-5A46,46,0,0,0,1840.59,401a56.53,56.53,0,0,0,9.49-21.09,117.46,117.46,0,0,0,2.94-27.09V341.19h-.7q-7.59,16.46-23,24.18a71.8,71.8,0,0,1-32.63,7.71q-20,0-34.86-7.2A72.88,72.88,0,0,1,1737,346.51a82.13,82.13,0,0,1-15-28.46,116.62,116.62,0,0,1-5-34.47,133.92,133.92,0,0,1,4.14-32.4A88.17,88.17,0,0,1,1735,221a75.49,75.49,0,0,1,25.55-22.29q15.87-8.75,39-8.75a66.21,66.21,0,0,1,31.07,7.38,52.13,52.13,0,0,1,22.09,22.11h.35V194.09h27.61V356.28Q1880.63,399.83,1860.61,421.43Zm-37.46-79.72a47.94,47.94,0,0,0,16.4-15.78,71.89,71.89,0,0,0,9.15-22.11,106.77,106.77,0,0,0,2.93-24.69,96.71,96.71,0,0,0-2.76-23,64,64,0,0,0-8.8-20.4,45.76,45.76,0,0,0-15.71-14.57q-9.66-5.49-23.47-5.49-14.16,0-24.17,5.32a46.77,46.77,0,0,0-16.4,14.23,60.14,60.14,0,0,0-9.32,20.57,99.69,99.69,0,0,0-2.93,24.35,120.63,120.63,0,0,0,2.42,24,67.5,67.5,0,0,0,8.28,21.77,46.37,46.37,0,0,0,15.54,15.78q9.66,6,24.16,6T1823.15,341.71Zm228,18.34q-20,15.09-50.41,15.09-21.4,0-37.11-6.86a73.16,73.16,0,0,1-26.41-19.2,81.52,81.52,0,0,1-16-29.49,141.12,141.12,0,0,1-6-37.38,106.1,106.1,0,0,1,6.21-37A88.56,88.56,0,0,1,1938.8,216a79.09,79.09,0,0,1,26.58-19.2A81.66,81.66,0,0,1,1999,190q23.82,0,39.53,9.78a78,78,0,0,1,25.2,24.86,98.18,98.18,0,0,1,13.12,32.91,140.6,140.6,0,0,1,2.93,34h-133.6a70,70,0,0,0,2.76,22.12,49.9,49.9,0,0,0,10,18.51A49.1,49.1,0,0,0,1976.6,345q10.7,4.82,25.2,4.8,18.65,0,30.55-8.57t15.71-26.06h29Q2071.18,345,2051.17,360.05Zm-7.08-113.84a50,50,0,0,0-10.7-16,53.1,53.1,0,0,0-56.62-10.63,47.48,47.48,0,0,0-15.71,10.81,51.69,51.69,0,0,0-10.35,15.94,60.18,60.18,0,0,0-4.49,19.37h102.53A59.47,59.47,0,0,0,2044.09,246.21ZM302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Z"})})};const Ui=(0,Ze.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var $i=()=>{const r=Ui();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,i.jsx)("path",{className:r.path,d:"M303,166.05a80.69,80.69,0,0,0,13.45-10.37c.79-.77,1.55-1.53,2.3-2.3a83.12,83.12,0,0,0,7.93-9.38A63.69,63.69,0,0,0,333,133.23a48.58,48.58,0,0,0,4.35-16.4c1.49-19.39-10-38.67-35.62-54.22L198.56,0,78.3,115.23,0,190.25l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.22,49.22,0,0,0-6.8-8.87A89.17,89.17,0,0,0,259,178.29h.15a85.08,85.08,0,0,0,31-5.79A80.88,80.88,0,0,0,303,166.05ZM202.45,225.86c-19.32,18.51-50.4,21.23-75.7,5.9L51.61,186.15l67.45-64.64,76.41,46.38C223,184.58,221.49,207.61,202.45,225.86Zm8.93-82.22-70.65-42.89L205.14,39,274.51,81.1c25.94,15.72,29.31,37,10.55,55A60.69,60.69,0,0,1,211.38,143.64Zm29.86,190c-19.57,18.75-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,282.52v24.67L108.6,373.1a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.27,87.27,0,0,1,241.24,333.68Zm0-39c-19.57,18.75-46.17,29.08-74.88,29.08a123.81,123.81,0,0,1-64.1-18.19L0,243.53v24.68l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.5v-1.78A87.27,87.27,0,0,1,241.24,294.7Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.81,123.81,0,0,1-64.1-18.19L0,204.55v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.82A86.09,86.09,0,0,1,241.24,255.71Zm83.7,25.74a94.15,94.15,0,0,1-60.2,25.86h0V334a81.6,81.6,0,0,0,51.74-22.37c14-13.38,21.14-28.11,21-42.64v-2.19A94.92,94.92,0,0,1,324.94,281.45Zm-83.7,91.21c-19.57,18.76-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,321.5v24.68l108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A86.29,86.29,0,0,1,241.24,372.66ZM327,162.45c-.68.69-1.35,1.38-2.05,2.06a94.37,94.37,0,0,1-10.64,8.65,91.35,91.35,0,0,1-11.6,7,94.53,94.53,0,0,1-26.24,8.71,97.69,97.69,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a53.27,53.27,0,0,1,1.14,12V217h.05a84.41,84.41,0,0,0,25.35-5.55,81,81,0,0,0,26.39-16.82c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,172.17a48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7V150q-1.08,1.54-2.25,3.09A96.73,96.73,0,0,1,327,162.45Zm0,77.92c-.69.7-1.31,1.41-2,2.1a94.2,94.2,0,0,1-60.2,25.86h0l0,26.67h0a81.6,81.6,0,0,0,51.74-22.37A73.51,73.51,0,0,0,333,250.13a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.47.19-3.71v-2.19c-.74,1.07-1.46,2.15-2.27,3.21A95.68,95.68,0,0,1,327,240.37Zm0-39c-.69.7-1.31,1.41-2,2.1a93.18,93.18,0,0,1-10.63,8.65,91.63,91.63,0,0,1-11.63,7,95.47,95.47,0,0,1-37.94,10.18h0V256h0a81.65,81.65,0,0,0,51.74-22.37c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,211.15a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.46,2.16-2.27,3.22A95.68,95.68,0,0,1,327,201.39Z"})})},Ce=t(76921);const Nr={isOpen:!1,setOpen:()=>{}},Zr=(0,d.createContext)(Nr),kr=(0,Ve.CT)("sidebar-open-state-context");function Kr(r){const{children:e,value:n}=r;return(0,i.jsx)(Zr.Provider,{value:n,children:(0,i.jsx)(kr.Provider,{value:(0,an.E)({1:n}),children:e})})}const nr=()=>{const r=(0,d.useContext)(kr),e=(0,d.useContext)(Zr);if(r===void 0)return e||Nr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var zr=t(98864),Hr=t(44409),Ye=t(62774),Gr=t(41156),Fi=t(72779),nn=t.n(Fi),Wi=t(50023),Vr=t(61837),Ni=t(4190),or=t(90436),Zi=t(87685),ki=t(44882),Ki=t(57998);const Yr=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var rr=t(93539);const zi=(0,Ze.Z)(r=>({root:{flexGrow:0,margin:r.spacing(0,2),color:r.palette.navigation.color},selected:e=>({color:`${r.palette.navigation.selectedColor}!important`,borderTop:`solid ${e.sidebarConfig.selectedIndicatorWidth}px ${r.palette.navigation.indicator}`,marginTop:"-1px"}),label:{display:"none"}})),Hi=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:c}=(0,d.useContext)(Ce.kG),y=zi({sidebarConfig:c}),v=(0,m.TH)(),{selectedMenuItemIndex:I,setSelectedMenuItemIndex:N}=(0,d.useContext)(Yr),tt=(gt,yt)=>{N(yt===I?-1:yt)},st=a===I&&I>=0||a!==I&&!(I>=0)&&e===v.pathname;return(0,i.jsx)(Ki.Z,{"aria-label":n,label:n,icon:s,component:zr.rU,to:e||v.pathname,onChange:tt,value:a,selected:st,classes:y})},Qr=r=>{const{children:e,to:n,label:s,icon:a,value:c}=r,{isMobile:y}=(0,rr.Pf)();return y?(0,i.jsx)(Hi,{to:n,label:s,icon:a,value:c}):(0,i.jsx)(i.Fragment,{children:e})},Jr=(0,Ze.Z)(r=>({root:{position:"fixed",backgroundColor:r.palette.navigation.background,color:r.palette.navigation.color,bottom:0,left:0,right:0,zIndex:r.zIndex.snackbar,borderTop:"1px solid #383838","@media print":{display:"none"}},overlay:e=>({background:r.palette.navigation.background,width:"100%",bottom:`${e.sidebarConfig.mobileSidebarHeight}px`,height:`calc(100% - ${e.sidebarConfig.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"}),overlayHeader:{display:"flex",color:r.palette.navigation.color,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.navigation.color},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Gi=r=>(0,gn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Vi=d.createElement(Qr).type,Yi=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,d.useContext)(Ce.kG),c=Jr({sidebarConfig:a});return(0,i.jsxs)(Ni.ZP,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:c.marginMobileSidebar}}},classes:{root:c.marginMobileSidebar,paperAnchorBottom:c.overlay},children:[(0,i.jsxs)(Ye.Z,{className:c.overlayHeader,children:[(0,i.jsx)(or.Z,{variant:"h3",children:e}),(0,i.jsx)(Vr.Z,{onClick:s,classes:{root:c.overlayHeaderClose},children:(0,i.jsx)(Zi.Z,{})})]}),(0,i.jsx)(Ye.Z,{component:"nav",children:r})]})},Qi=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ce.kG),{children:n}=r,s=Jr({sidebarConfig:e}),a=(0,m.TH)(),[c,y]=(0,d.useState)(-1);(0,d.useEffect)(()=>{y(-1)},[a.pathname]);let v=(0,oo.v)(n,N=>N.getElements().filter(tt=>tt.type===Vi));if(n)v.length?v=Gi(v):v.push((0,i.jsx)(Qr,{icon:(0,i.jsx)(ki.Z,{}),children:n},"default_menu"));else return null;const I=c>=0&&!v[c].props.to;return(0,i.jsx)(Kr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(Yr.Provider,{value:{selectedMenuItemIndex:c,setSelectedMenuItemIndex:y},children:[(0,i.jsx)(Yi,{label:v[c]&&v[c].props.label,open:I,onClose:()=>y(-1),children:v[c]&&v[c].props.children}),(0,i.jsx)(Wi.Z,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:v})]})})},Xr=(0,Ze.Z)(r=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:r.zIndex.appBar,background:r.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"},"@media print":{display:"none"}},drawerWidth:e=>({width:e.sidebarConfig.drawerWidthClosed}),drawerOpen:e=>({width:e.sidebarConfig.drawerWidthOpen,transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shorter})}),visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var _r;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(_r||(_r={}));const Ji=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ce.kG),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:c}=r,y=Xr({sidebarConfig:e}),v=(0,Gr.Z)(qt=>qt.breakpoints.down("md"),{noSsr:!0}),[I,N]=(0,d.useState)(0),tt=(0,d.useRef)(),{isPinned:st,toggleSidebarPinState:gt}=(0,rr.Pf)(),yt=()=>{st||a||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),I!==2&&!v&&(tt.current=window.setTimeout(()=>{tt.current=void 0,N(2)},n),N(1)))},bt=()=>{st||a||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),I===1?N(0):I===2&&(tt.current=window.setTimeout(()=>{tt.current=void 0,N(0)},s)))},Wt=I===2&&!v||st,Ht=qt=>{qt?(N(2),gt()):(N(0),gt())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(_i,{}),(0,i.jsx)(Kr,{value:{isOpen:Wt,setOpen:Ht},children:(0,i.jsx)(Ye.Z,{className:y.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:yt,onFocus:a?()=>{}:yt,onMouseLeave:a?()=>{}:bt,onBlur:a?()=>{}:bt,children:(0,i.jsx)(Ye.Z,{className:nn()(y.drawer,y.drawerWidth,{[y.drawerOpen]:Wt}),children:c})})})]})},Xi=r=>{var e;const n=(0,Ce.$E)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Ce.rW)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:c,disableExpandOnHover:y,openDelayMs:v,closeDelayMs:I}=r,{isMobile:N}=(0,rr.Pf)();return N?(0,i.jsx)(Qi,{children:c}):(0,i.jsx)(Ce.kG.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(Ji,{openDelayMs:v,closeDelayMs:I,disableExpandOnHover:y,children:c})})};function _i(){const{sidebarConfig:r}=(0,d.useContext)(Ce.kG),{focusContent:e,contentRef:n}=(0,Hr.r)(),s=Xr({sidebarConfig:r});return n!=null&&n.current?(0,i.jsx)(A.Z,{onClick:e,variant:"contained",className:nn()(s.visuallyHidden),children:"Skip to content"}):null}var qi=t(26739),lo=t(1667),ta=t(83543),ea=t(59797),qr=t(98989);const na=(0,Ze.Z)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}},drawerOpen:e=>({width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),oa=r=>{const{isOpen:e}=nr(),{sidebarConfig:n,submenuConfig:s}=(0,d.useContext)(Ce.kG),a=e?n.drawerWidthOpen:n.drawerWidthClosed,c=na({left:a,submenuConfig:s}),{isHoveredOn:y}=(0,d.useContext)(Ce.Ag),[v,I]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{I(y)},[y]),(0,i.jsxs)(Ye.Z,{className:nn()(c.drawer,{[c.drawerOpen]:v}),children:[(0,i.jsx)(or.Z,{variant:"h5",component:"span",className:c.title,children:r.title}),r.children]})};var ra=t(19126),ts=t.n(ra);function es(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=ts().parse(s),c=new URLSearchParams(r.search).toString(),y=ts().parse(c),v=n?gn.isEqual:gn.isMatch;return(0,gn.isEqual)(e.pathname,r.pathname)&&v(y,a)}const sa=r=>(0,Ze.Z)(e=>{var n,s,a,c;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(c=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&c!==void 0?c:"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:r.iconContainerWidth,marginRight:-e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.fontSize},searchFieldHTMLInput:{padding:e.spacing(2,0,2)},searchContainer:{width:r.drawerWidthOpen-r.iconContainerWidth},secondaryAction:{width:e.spacing(6),textAlign:"center",marginRight:e.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:e.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${r.selectedIndicatorWidth}px ${e.palette.navigation.indicator}`,color:e.palette.navigation.selectedColor},"&$closed":{width:r.drawerWidthClosed},"& $closedItemIcon":{paddingRight:r.selectedIndicatorWidth},"& $iconContainer":{marginLeft:-r.selectedIndicatorWidth}}}},{name:"BackstageSidebarItem"});function co(r){return(0,d.useMemo)(()=>sa(r),[r])()}const ia=(r,e)=>(0,oo.v)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:c}})=>{if(!s){if(c!=null&&c.length){c.forEach(({to:y})=>s=s||es(e,(0,Sn.i3)(y)));return}a&&(s=es(e,(0,Sn.i3)(a)))}}),s},[e.pathname]);function sr(r){return r.to===void 0}const aa=d.createElement(oa).type,la=d.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:c,caseSensitive:y,activeClassName:v="active","aria-current":I="page",...N},tt){let{pathname:st}=(0,m.TH)(),{pathname:gt}=(0,m.WU)(e);y||(st=st.toLocaleLowerCase("en-US"),gt=gt.toLocaleLowerCase("en-US"));let yt=st===gt;!yt&&!n&&(yt=st.startsWith(`${gt}/`));const bt=yt?I:void 0;return(0,i.jsx)(E.rU,{...N,to:e,ref:tt,"aria-current":bt,style:{...s,...yt?c:void 0},className:nn()([typeof a!="function"?a:void 0,yt?v:void 0])})}),ns=(0,d.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:c=!1,disableHighlight:y=!1,onClick:v,noTrack:I,children:N,className:tt,...st}=r,{sidebarConfig:gt}=(0,d.useContext)(Ce.kG),yt=co(gt),{isOpen:bt}=nr(),Wt=!bt&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Ht=(0,i.jsxs)(Ye.Z,{style:Wt,children:[(0,i.jsx)(n,{fontSize:"small"}),!bt&&c?(0,i.jsx)(qr.Z,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),qt=(0,i.jsx)(qi.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:nn()({[yt.closedItemIcon]:!bt}),children:Ht}),ue=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ye.Z,{"data-testid":"login-button",className:yt.iconContainer,children:qt}),s&&(0,i.jsx)(or.Z,{variant:"subtitle2",component:"span",className:yt.label,children:s}),(0,i.jsx)("div",{className:yt.secondaryAction,children:N})]}),ke=bt?ue:qt,In={onClick:v,className:nn()(tt,yt.root,bt?yt.open:yt.closed,sr(r)&&yt.buttonItem,{[yt.highlightable]:!y})},is=(0,Cr.z)(),{pathname:ir}=(0,m.WU)(!sr(r)&&r.to?r.to:""),as=(0,d.useCallback)(Ta=>{if(!I){const Ia="click",Da=s!=null?s:"Sidebar Item",La=ir?{attributes:{to:ir}}:void 0;is.captureEvent(Ia,Da,La)}v==null||v(Ta)},[is,s,ir,I,v]);return sr(r)?(0,i.jsx)(A.Z,{role:"button","aria-label":s,...In,ref:e,onClick:as,children:ke}):(0,i.jsx)(la,{...In,activeClassName:yt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...st,onClick:as,children:ke})}),ca=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(Ce.kG),s=co(n),[a,c]=(0,d.useState)(!1),y=(0,m.TH)(),v=ia(r,y),I=(0,Gr.Z)(gt=>gt.breakpoints.down("sm")),N=()=>{c(!0)},tt=()=>{c(!1)},st=()=>I?a?(0,i.jsx)(ea.Z,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(ta.Z,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(qr.Z,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(Ce.Ag.Provider,{value:{isHoveredOn:a,setIsHoveredOn:c},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:tt,onTouchStart:a?tt:N,onMouseEnter:N,className:nn()(a&&s.highlighted),children:[(0,i.jsx)(ns,{hasSubmenu:!0,className:v?s.selected:"",...e,children:st()}),a&&r]})})},os=(0,d.forwardRef)((r,e)=>{const[n]=(0,oo.v)(r.children,s=>s.getElements().filter(a=>a.type===aa));return n?(0,i.jsx)(ca,{...r,children:n}):(0,i.jsx)(ns,{...r,ref:e})});function Ja(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=co(e),c=r.icon?r.icon:SearchIcon,y=()=>{r.onSearch(n),s("")},v=st=>{st.key==="Enter"&&(st.preventDefault(),y())},I=st=>{s(st.target.value)},N=st=>{st.preventDefault(),st.stopPropagation()},tt=st=>{y(),st.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(os,{icon:c,to:r.to,onClick:tt,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:N,onChange:I,onKeyDown:v,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const Xa=(0,lo.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),_a=(0,lo.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),da=(0,lo.Z)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),ua=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),qa=(0,lo.Z)("div")(({theme:r})=>{const e=ua(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),tl=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=co(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(y=>y.breakpoints.down("md"),{noSsr:!0}))return null;const c=()=>{s(!n)};return _jsx(Button,{role:"button",onClick:c,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},ha=(0,Ze.Z)({root:{width:Ce.po.drawerWidthClosed,height:3*Ce.po.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Ce.po.drawerWidthClosed,marginLeft:24}}),fa=()=>{const r=ha(),{isOpen:e}=nr();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(zr.rU,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(Bi,{}):(0,i.jsx)($i,{})})})},pa=({children:r})=>(0,i.jsxs)(Hr.t,{children:[(0,i.jsxs)(Xi,{children:[(0,i.jsx)(fa,{}),(0,i.jsx)(da,{}),(0,i.jsx)(os,{icon:Mi.Z,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var ga=t(80030),va=t(32388),ma=t(4142),ya=t(65386),Ea=t(14540);const xa=(0,Ze.Z)(r=>({headerIcon:{color:r.palette.common.white,width:"32px",height:"32px"},content:{backgroundColor:r.palette.background.default},contentToolbar:{display:"flex",justifyContent:"flex-end",padding:0}}));var rs;(function(r){r.LIGHT="light",r.DARK="dark"})(rs||(rs={}));const Ca=()=>{const r=(0,An.h_)(Hn),e=xa(),[n,s]=(0,d.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:ma.Z,title:"Dark theme"},dark:{icon:va.Z,title:"Light theme"}},{title:c,icon:y}=a[n],v=()=>{s(I=>{const N=I==="light"?"dark":"light";return r.setActiveThemeId(N),N})};return(0,i.jsx)(Ye.Z,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(ga.ZP,{title:c,arrow:!0,children:(0,i.jsx)(Vr.Z,{size:"small",onClick:v,children:(0,i.jsx)(y,{className:e.headerIcon})})})})},Aa=()=>(0,i.jsxs)(f.I6,{children:[(0,i.jsx)(ya.S,{}),(0,i.jsx)(Ea.F,{withSearch:!1})]}),Sa=(0,i.jsx)(Aa,{}),ss=ni({apis:wi,configLoader:Li,plugins:Object.values(o)}),ba=ss.getProvider(),Oa=ss.getRouter(),Pa=f.s4.provide((0,p.KY)({name:"ThemeToggleAddon",component:Ca,location:S.o.Header})),Ra=(0,i.jsxs)(Ir,{children:[(0,i.jsx)(m.Fg,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(m.AW,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(Oi,{})}),(0,i.jsx)(m.AW,{path:"/docs",element:(0,i.jsx)(f.Jl,{}),children:(0,i.jsx)(l.u,{})}),(0,i.jsxs)(m.AW,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(f.I6,{}),children:[Sa,(0,i.jsx)(p.DR,{children:(0,i.jsx)(Pa,{})})]})]});var wa=()=>(0,i.jsx)(ba,{children:(0,i.jsx)(Oa,{children:(0,i.jsx)(pa,{children:Ra})})});b.createRoot(document.getElementById("root")).render((0,i.jsx)(wa,{}))},29651:function(_,P,t){"use strict";t.d(P,{CT:function(){return d},Vt:function(){return b}});var o=t(2784),i=t(96087);function d(f){return(0,i.u)(f,()=>(0,o.createContext)(void 0))}function b(f){return(0,o.useContext)(d(f))}function m(f){return{set(l){globalThis[`__@backstage/${f}__`]=createContext(createVersionedValueMap(l))},reset(){delete globalThis[`__@backstage/${f}__`]}}}},68993:function(_,P,t){"use strict";t.d(P,{E:function(){return o}});function o(i){Object.freeze(i);const d={atVersion(b){return i[b]}};return Object.defineProperty(d,"$map",{configurable:!0,enumerable:!0,get(){return i}}),d}},96087:function(_,P,t){"use strict";t.d(P,{u:function(){return b}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),d=m=>`__@backstage/${m}__`;function b(m,f){const l=d(m);let p=i[l];return p||(p=f(),i[l]=p,p)}},88624:function(_,P,t){"use strict";t.d(P,{A:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.catalog.service"})},51271:function(_,P,t){"use strict";t.d(P,{X:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.catalog.entity-presentation"})},68203:function(_,P,t){"use strict";t.d(P,{n:function(){return B}});var o=t(74314),i=t(34106),d=t(43642),b=t(77224),m=t(15933),f=t(86737),l=t(78898),p=t(4989),S=t(44407),A=t(84219),R=t(98685),x=t(72579),C=t.n(x);const E=f.Z,M={api:m.Z,component:S.Z,system:b.Z,domain:d.Z,location:p.Z,user:R.Z,group:A.Z,template:l.Z};function B(T,g){const{kind:K,namespace:V,name:X,title:H,description:G,displayName:z,type:Y}=w(T),ot=K&&M[K.toLocaleLowerCase("en-US")]||E,lt=(0,o.eE)({kind:K||"unknown",namespace:V||i.zG,name:X||"unknown"}),ht=U({kind:K,namespace:V,name:X,context:g}),ft=[z,H,ht].find(ct=>ct&&typeof ct=="string"),pt=[ft!==lt?lt:void 0,Y,G].filter(ct=>ct&&typeof ct=="string").join(" | ");return{entityRef:lt,primaryTitle:ft,secondaryTitle:pt||void 0,Icon:ot}}function w(T){if(typeof T=="string"){let g=T.indexOf(":");const K=T.indexOf("/");K!==-1&&K<g&&(g=-1);const V=g===-1?void 0:T.slice(0,g),X=K===-1?void 0:T.slice(g+1,K),H=T.slice(Math.max(g+1,K+1));return{kind:V,namespace:X,name:H}}if(typeof T=="object"&&T!==null){const g=[C()(T,"kind")].find(Y=>Y&&typeof Y=="string"),K=[C()(T,"metadata.namespace"),C()(T,"namespace")].find(Y=>Y&&typeof Y=="string"),V=[C()(T,"metadata.name"),C()(T,"name")].find(Y=>Y&&typeof Y=="string"),X=[C()(T,"metadata.title")].find(Y=>Y&&typeof Y=="string"),H=[C()(T,"metadata.description")].find(Y=>Y&&typeof Y=="string"),G=[C()(T,"spec.profile.displayName")].find(Y=>Y&&typeof Y=="string"),z=[C()(T,"spec.type")].find(Y=>Y&&typeof Y=="string");return{kind:g,namespace:K,name:V,title:X,description:H,displayName:G,type:z}}return{}}function U(T){var g,K,V,X,H;const G=((g=T.kind)===null||g===void 0?void 0:g.toLocaleLowerCase("en-US"))||"unknown",z=T.namespace||i.zG,Y=T.name||"unknown",ot=(V=T.context)===null||V===void 0||(K=V.defaultKind)===null||K===void 0?void 0:K.toLocaleLowerCase("en-US"),lt=(H=T.context)===null||H===void 0||(X=H.defaultNamespace)===null||X===void 0?void 0:X.toLocaleLowerCase("en-US");let ht=Y;return(lt&&z.toLocaleLowerCase("en-US")!==lt||z!==i.zG)&&(ht=`${z}/${ht}`),ot&&G.toLocaleLowerCase("en-US")!==ot&&(ht=`${G}:${ht}`),ht}},36802:function(_,P,t){"use strict";t.d(P,{p:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"catalog-react.starred-entities"})},30389:function(_,P,t){"use strict";t.d(P,{_i:function(){return C}});var o=t(52322),i=t(2784),d=t(41156),b=t(60364),m=t(77277),f=t(4190),l=t(62774),p=t(90436),S=t(60905),A=t(36444);const R=E=>{var M;const B=(0,d.Z)(K=>{var V,X;return K.breakpoints.down((X=(V=E.options)===null||V===void 0?void 0:V.drawerBreakpoint)!==null&&X!==void 0?X:"md")}),w=(0,b.Z)(),[U,T]=(0,i.useState)(!1);var g;return B?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.Z,{style:{marginTop:w.spacing(1),marginLeft:w.spacing(1)},onClick:()=>T(!0),startIcon:(0,o.jsx)(A.Z,{}),children:"Filters"}),(0,o.jsx)(f.ZP,{open:U,onClose:()=>T(!1),anchor:(g=(M=E.options)===null||M===void 0?void 0:M.drawerAnchor)!==null&&g!==void 0?g:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(l.Z,{m:2,children:[(0,o.jsx)(p.Z,{variant:"h6",component:"h2",style:{marginBottom:w.spacing(1)},children:"Filters"}),E.children]})})]}):(0,o.jsx)(S.Z,{item:!0,lg:2,children:E.children})},x=E=>(0,o.jsx)(S.Z,{item:!0,xs:12,lg:10,children:E.children}),C=E=>(0,o.jsx)(S.Z,{container:!0,style:{position:"relative"},children:E.children});C.Filters=R,C.Content=x},77605:function(_,P,t){"use strict";t.d(P,{K:function(){return G}});var o=t(52322),i=t(62774),d=t(90436),b=t(38016),m=t(88013),f=t(2784),l=t(44394),p=t(64279),S=t(88624),A=t(21324),R=t(5806),x=t(19996),C=t(25505);const E=(0,o.jsx)(C.Z,{fontSize:"small"}),M=(0,o.jsx)(x.Z,{fontSize:"small"});function B({selected:z}){return(0,o.jsx)(A.Z,{icon:E,checkedIcon:M,checked:z})}const w=(0,f.memo)(z=>{const{selected:Y,value:ot,availableOptions:lt,showCounts:ht}=z,ft=ht?`${ot} (${lt==null?void 0:lt[ot]})`:ot;return(0,o.jsx)(R.Z,{control:(0,o.jsx)(B,{selected:Y}),label:ft,onClick:pt=>pt.preventDefault()})});var U=t(79692),T=t(86619),g=t(72779),K=t.n(g);const V=(0,U.Z)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function X(z){const Y=V();return(0,o.jsx)(T.Z,{variant:"outlined",...z,className:K()(Y.input,z.className)})}var H=t(25942);function G(z){var Y;const{label:ot,name:lt,path:ht,showCounts:ft,Filter:pt,InputProps:ct,initialSelectedOptions:mt=[]}=z,{updateFilters:Q,filters:$,queryParameters:{[lt]:J}}=(0,H.wp)(),et=(0,l.h_)(S.A),{value:it}=(0,p.default)(async()=>{var xt;const Pt=ht,{facets:Dt}=await et.getEntityFacets({facets:[Pt],filter:(xt=$.kind)===null||xt===void 0?void 0:xt.getCatalogFilters()});return Object.fromEntries(Dt[Pt].map(({value:Lt,count:ie})=>[Lt,ie]))},[$.kind]),ut=(0,f.useMemo)(()=>[J].flat().filter(Boolean),[J]);var F;const[Z,Et]=(0,f.useState)(ut.length?ut:(F=(Y=$[lt])===null||Y===void 0?void 0:Y.values)!==null&&F!==void 0?F:mt);(0,f.useEffect)(()=>{ut.length&&Et(ut)},[ut]);const At=Object.keys(it!=null?it:{}),dt=Z.length&&At.length;(0,f.useEffect)(()=>{Q({[lt]:dt?new pt(Z):void 0})},[lt,dt,Z,pt,Q]);const Ct=$[lt];return Ct&&typeof Ct=="object"&&!("values"in Ct)||!At.length||At.length<=1?null:(0,o.jsx)(i.Z,{pb:1,pt:1,children:(0,o.jsxs)(d.Z,{variant:"button",component:"label",children:[ot,(0,o.jsx)(m.ZP,{multiple:!0,disableCloseOnSelect:!0,options:At,value:Z,onChange:(xt,Pt)=>Et(Pt),renderOption:(xt,{selected:Pt})=>(0,o.jsx)(w,{selected:Pt,value:xt,availableOptions:it,showCounts:!!ft}),size:"small",popupIcon:(0,o.jsx)(b.Z,{"data-testid":`${String(lt)}-picker-expand`}),renderInput:xt=>(0,o.jsx)(X,{...xt,...ct})})]})})}},63833:function(_,P,t){"use strict";t.d(P,{d:function(){return Q}});var o=t(52322),i=t(74314),d=t(79692),b=t(62774),m=t(90436),f=t(5806),l=t(21324),p=t(86619),S=t(19996),A=t(25505),R=t(38016),x=t(88013),C=t(2784),E=t(25942),M=t(4967),B=t(6232),w=t(98685),U=t(62367),T=t(86540),g=t(44394),K=t(69294),V=t(88624);function X({enabled:$}){const J=(0,g.h_)(V.A),[et]=(0,C.useState)(async()=>{if(!$)return[];const it="relations.ownedBy";return J.getEntityFacets({facets:[it]}).then(ut=>ut.facets[it].map(F=>F.value).map(F=>{const{kind:Z,name:Et,namespace:At}=(0,i.of)(F);return{apiVersion:"backstage.io/v1beta1",kind:Z,metadata:{name:Et,namespace:At}}}).sort((F,Z)=>(F.metadata.namespace||"").localeCompare(Z.metadata.namespace||"","en-US")||F.metadata.name.localeCompare(Z.metadata.name,"en-US")||F.kind.localeCompare(Z.kind,"en-US"))).catch(()=>[])});return(0,K.default)(async(it,ut)=>{const F=await et;if(!F)return{items:[]};var Z;const Et=(Z=ut==null?void 0:ut.limit)!==null&&Z!==void 0?Z:20,{text:At,start:dt}=H(it),Ct=F.filter(Pt=>Y(At,Pt)),xt=dt+Et;return{items:Ct.slice(0,xt),...z({entities:Ct,limit:xt,payload:{text:At,start:xt}})}},[et],{loading:!0,value:{items:[]}})}function H($){return G($)&&$.cursor?JSON.parse(atob($.cursor)):{text:$.text||"",start:0}}function G($){return!!$.cursor}function z({entities:$,limit:J,payload:et}){return $.length>J?{cursor:btoa(JSON.stringify(et))}:{}}function Y($,J){var et;const it=$.trim();return J.kind.includes(it)||((et=J.metadata.namespace)===null||et===void 0?void 0:et.includes(it))||J.metadata.name.includes(it)}function ot(){const $=(0,g.h_)(V.A);return(0,K.default)(async(J,et)=>{const it=J,ut=J;var F;const Z=(F=et==null?void 0:et.limit)!==null&&F!==void 0?F:20;if(ut.cursor){const At=await $.queryEntities({cursor:ut.cursor,limit:Z});return{cursor:At.pageInfo.nextCursor,items:[...ut.items,...At.items]}}const Et=await $.queryEntities({fullTextFilter:{term:it.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:Z});return{cursor:Et.pageInfo.nextCursor,items:Et.items}},[],{loading:!0})}var lt=t(21638);function ht({mode:$,initialSelectedOwnersRefs:J}){const et=$==="owners-only",it=ot(),ut=X({enabled:et}),[F,Z]=et?ut:it;return[F,Z,ft({enabled:!et,initialSelectedOwnersRefs:J})]}function ft({enabled:$,initialSelectedOwnersRefs:J}){const et=(0,C.useRef)({}),it=(0,g.h_)(V.A),[,ut]=(0,K.default)(async()=>{(await it.getEntitiesByRefs({entityRefs:J})).items.forEach(Z=>{Z&&(et.current[(0,i.eE)(Z)]=Z)})},[]);return(0,lt.n)(()=>{$&&J.length>0&&ut()}),{getEntity:F=>et.current[F],setEntity:F=>{et.current[(0,i.eE)(F)]=F}}}const pt=(0,d.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),ct=(0,o.jsx)(A.Z,{fontSize:"small"}),mt=(0,o.jsx)(S.Z,{fontSize:"small"}),Q=$=>{var J,et;const it=pt(),{mode:ut="owners-only"}=$||{},{updateFilters:F,filters:Z,queryParameters:{owners:Et}}=(0,E.wp)(),[At,dt]=(0,C.useState)(""),Ct=(0,C.useMemo)(()=>[Et].flat().filter(Boolean),[Et]);var xt;const[Pt,Dt]=(0,C.useState)(Ct.length?Ct:(xt=(J=Z.owners)===null||J===void 0?void 0:J.values)!==null&&xt!==void 0?xt:[]),[{value:Lt,loading:ie},te,he]=ht({mode:ut,initialSelectedOwnersRefs:Pt});(0,B.b)(()=>te({text:At}),[At,te],250);const Nt=(Lt==null?void 0:Lt.items)||[];return(0,C.useEffect)(()=>{if(Ct.length){const Mt=new M.rf(Ct);Dt(Mt.values)}},[Ct]),(0,C.useEffect)(()=>{F({owners:Pt.length?new M.rf(Pt):void 0})},[Pt,F]),["user","group"].includes(((et=Z.kind)===null||et===void 0?void 0:et.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(b.Z,{pb:1,pt:1,children:(0,o.jsxs)(m.Z,{variant:"button",component:"label",children:["Owner",(0,o.jsx)(x.ZP,{multiple:!0,disableCloseOnSelect:!0,loading:ie,options:Nt,value:Pt,getOptionSelected:(Mt,Kt)=>typeof Kt=="string"?(0,i.eE)(Mt)===Kt:Mt===Kt,getOptionLabel:Mt=>{const Kt=typeof Mt=="string"?he.getEntity(Mt)||(0,i.of)(Mt,{defaultKind:"group",defaultNamespace:"default"}):Mt;return(0,T.w)(Kt,(0,T.$)(Kt))},onChange:(Mt,Kt)=>{dt(""),Dt(Kt.map(Zt=>{const Jt=typeof Zt=="string"?Zt:(0,i.eE)(Zt);return typeof Zt!="string"&&he.setEntity(Zt),Jt}))},filterOptions:Mt=>Mt,renderOption:(Mt,{selected:Kt})=>{const Zt=Mt.kind.toLocaleLowerCase("en-US")==="group";return(0,o.jsx)(f.Z,{control:(0,o.jsx)(l.Z,{icon:ct,checkedIcon:mt,checked:Kt}),onClick:Jt=>Jt.preventDefault(),label:(0,o.jsxs)(b.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",children:[Zt?(0,o.jsx)(U.Z,{fontSize:"small"}):(0,o.jsx)(w.Z,{fontSize:"small"}),"\xA0",(0,T.w)(Mt,(0,T.$)(Mt,{defaultKind:Mt.kind}))]})})},size:"small",popupIcon:(0,o.jsx)(R.Z,{"data-testid":"owner-picker-expand"}),renderInput:Mt=>(0,o.jsx)(p.Z,{...Mt,className:it.input,onChange:Kt=>{dt(Kt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Mt=>{const Kt=Mt.currentTarget;Math.abs(Kt.scrollHeight-Kt.clientHeight-Kt.scrollTop)<1&&(Lt!=null&&Lt.cursor)&&te({items:Lt.items,cursor:Lt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},84719:function(_,P,t){"use strict";t.d(P,{d:function(){return U}});var o=t(52322),i=t(74314),d=t(34106),b=t(98864),m=t(37321),f=t(2784),l=t(36434),p=t(79692),S=t(62774),A=t(80030),R=t(44394),x=t(51271),C=t(68203);function E(g,K,V){const[X,H]=(0,f.useState)(g);return(0,f.useEffect)(()=>{H(g);const G=K==null?void 0:K.subscribe({next:z=>{H(z)},complete:()=>{G==null||G.unsubscribe()}});return()=>{G==null||G.unsubscribe()}},V),X}function M(g,K){const X=(0,R.I_)().get(x.X),H=[X,JSON.stringify(g),JSON.stringify(K||null)],G=(0,f.useMemo)(()=>X?X.forEntity(typeof g=="string"||"metadata"in g?g:(0,i.eE)(g),K):{snapshot:(0,C.n)(g,K)},H);return E(G.snapshot,G.update$,[G])}const B=(0,p.Z)(g=>({root:{display:"inline-flex",alignItems:"center"},icon:{marginRight:g.spacing(.5),color:g.palette.text.secondary,lineHeight:0}}),{name:"CatalogReactEntityDisplayName"}),w=g=>{const{entityRef:K,hideIcon:V,disableTooltip:X,defaultKind:H,defaultNamespace:G}=g,z=B(),{primaryTitle:Y,secondaryTitle:ot,Icon:lt}=M(K,{defaultKind:H,defaultNamespace:G});let ht=(0,o.jsx)(o.Fragment,{children:Y});return ht=(0,o.jsxs)(S.Z,{component:"span",className:z.root,children:[lt&&!V?(0,o.jsx)(S.Z,{component:"span",className:z.icon,children:(0,o.jsx)(lt,{fontSize:"inherit"})}):null,ht]}),ot&&!X&&(ht=(0,o.jsx)(A.ZP,{enterDelay:1500,title:ot,children:ht})),ht},U=(0,f.forwardRef)((g,K)=>{const{entityRef:V,defaultKind:X,defaultNamespace:H,title:G,children:z,hideIcon:Y,...ot}=g,lt=T(g.entityRef);var ht;const ft=(ht=z!=null?z:G)!==null&&ht!==void 0?ht:(0,o.jsx)(w,{entityRef:V,defaultKind:X,defaultNamespace:H,hideIcon:Y});return(0,o.jsx)(b.rU,{...ot,ref:K,to:lt,children:ft})});function T(g){const K=(0,m.t)(l.w);let V,X,H;if(typeof g=="string"){const Y=(0,i.of)(g);V=Y.kind,X=Y.namespace,H=Y.name}else"metadata"in g?(V=g.kind,X=g.metadata.namespace,H=g.metadata.name):(V=g.kind,X=g.namespace,H=g.name);V=V.toLocaleLowerCase("en-US");var G;X=(G=X==null?void 0:X.toLocaleLowerCase("en-US"))!==null&&G!==void 0?G:d.zG;const z={kind:encodeURIComponent(V),namespace:encodeURIComponent(X),name:encodeURIComponent(H)};return K(z)}},51194:function(_,P,t){"use strict";t.d(P,{r:function(){return m}});var o=t(52322),i=t(74314),d=t(2784),b=t(84719);function m(f){const{entityRefs:l,hideIcons:p,...S}=f;return(0,o.jsx)(o.Fragment,{children:l.map((A,R)=>{const x=typeof A=="string"?A:(0,i.eE)(A);return(0,o.jsxs)(d.Fragment,{children:[R>0&&", ",(0,o.jsx)(b.d,{...S,entityRef:A,hideIcon:p})]},`${R}.${x}`)})})}},86540:function(_,P,t){"use strict";t.d(P,{$:function(){return b},w:function(){return m}});var o=t(34106),i=t(72579),d=t.n(i);function b(f,l){const p=l==null?void 0:l.defaultKind;let S,A,R;return"metadata"in f?(S=f.kind,A=f.metadata.namespace,R=f.metadata.name):(S=f.kind,A=f.namespace,R=f.name),(A===void 0||A==="")&&(A=o.zG),(l==null?void 0:l.defaultNamespace)!==void 0?(l==null?void 0:l.defaultNamespace)===A&&(A=void 0):A===o.zG&&(A=void 0),S=S.toLocaleLowerCase("en-US"),S=p&&p.toLocaleLowerCase("en-US")===S?void 0:S,`${S?`${S}:`:""}${A?`${A}/`:""}${R}`}function m(f,l){for(const p of["spec.profile.displayName","metadata.title"]){const S=d()(f,p);if(S&&typeof S=="string")return S}return l}},97894:function(_,P,t){"use strict";t.d(P,{x:function(){return l}});var o=t(52322),i=t(79692),d=t(2784),b=t(4967),m=t(77605);const f=(0,i.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),l=p=>{const S=f();return(0,o.jsx)(m.K,{label:"Tags",name:"tags",path:"metadata.tags",Filter:b.Cu,showCounts:p.showCounts,InputProps:{className:S.input}})}},32494:function(_,P,t){"use strict";t.d(P,{E:function(){return ft}});var o=t(52322),i=t(44394),d=t(6542),b=t(79692),m=t(94339),f=t(90436),l=t(11776),p=t(12231),S=t(86136),A=t(49378),R=t(9520),x=t(47603),C=t(11640),E=t(2784),M=t(4967),B=t(25942),w=t(77186),U=t(76635),T=t(64279),g=t(88624),K=t(64039),V=t(69294);function X(){const pt=(0,i.h_)(w.$),ct=(0,i.h_)(g.A),{filters:mt}=(0,B.wp)(),{value:Q,loading:$}=(0,T.default)(async()=>(await pt.getBackstageIdentity()).ownershipEntityRefs,[]),J=(0,E.useRef)(),et=(0,E.useMemo)(()=>{const{user:At,owners:dt,...Ct}=mt,xt=(0,U.compact)(Object.values(Ct)),Pt=(0,K.wq)(xt),{["metadata.name"]:Dt,...Lt}=Pt,ie=H(dt,Q);if((Q==null?void 0:Q.length)===0||ie===void 0||Object.keys(Lt).length===0){J.current=void 0;return}const te={filter:{...Lt,"relations.ownedBy":ie},limit:0};return(0,U.isEqual)(te,J.current)?J.current:(J.current=te,te)},[mt,Q]),[{value:it,loading:ut},F]=(0,V.default)(async(At,dt)=>{if(dt&&!At)return 0;const{totalItems:Ct}=await ct.queryEntities(At);return Ct},[],{loading:!0});(0,E.useEffect)(()=>{if(Q){if(et&&Object.keys(et).length===0)return;F(et,Q)}},[F,et,Q]);const Z=$||ut,Et=(0,E.useMemo)(()=>M.t$.owned(Q!=null?Q:[]),[Q]);return{count:it,loading:Z,filter:Et,ownershipEntityRefs:Q}}function H(pt,ct){if(ct===void 0)return;var mt;const Q=(mt=pt==null?void 0:pt.values)!==null&&mt!==void 0?mt:[];if(Q.length){const $=(0,U.intersection)(Q,ct);return $.length===0?void 0:$}return ct}function G(){const pt=(0,i.h_)(g.A),{filters:ct}=(0,B.wp)(),mt=(0,E.useRef)(),Q=(0,E.useMemo)(()=>{const{user:et,...it}=ct,ut=(0,U.compact)(Object.values(it)),F=(0,K.wq)(ut),Z={filter:F,limit:0};return Object.keys(F).length===0?(mt.current=void 0,mt.current):(0,U.isEqual)(Z,mt.current)?mt.current:(mt.current=Z,Z)},[ct]),{value:$,loading:J}=(0,T.default)(async()=>{if(Q===void 0)return 0;const{totalItems:et}=await pt.queryEntities(Q);return et},[Q]);return{count:$,loading:J}}var z=t(74314),Y=t(42870);function ot(){const pt=(0,i.h_)(g.A),{filters:ct}=(0,B.wp)(),{starredEntities:mt}=(0,Y.C)(),Q=(0,E.useRef)(),$=(0,E.useMemo)(()=>{const{user:ut,...F}=ct,Z=(0,U.compact)(Object.values(F)),dt={filter:{...(0,K.wq)(Z),["metadata.name"]:Array.from(mt).map(Ct=>(0,z.of)(Ct).name)},limit:1e3};return(0,U.isEqual)(dt,Q.current)?Q.current:(Q.current=dt,dt)},[ct,mt]),{value:J,loading:et}=(0,T.default)(async()=>mt.size?(await pt.queryEntities($)).items.map(F=>(0,z.eE)({kind:F.kind,namespace:F.metadata.namespace,name:F.metadata.name})).filter(F=>mt.has(F)).length:0,[$,mt]),it=(0,E.useMemo)(()=>M.t$.starred(Array.from(mt)),[mt]);return{count:J,loading:et,filter:it}}const lt=(0,b.Z)(pt=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:pt.spacing(1,0,1,0)},title:{margin:pt.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:pt.palette.text.primary},menuItem:{minHeight:pt.spacing(6)},groupWrapper:{margin:pt.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function ht(pt){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:x.Z},{id:"starred",label:"Starred",icon:C.Z}]},{name:pt!=null?pt:"Company",items:[{id:"all",label:"All"}]}]}const ft=pt=>{const{initialFilter:ct,availableFilters:mt}=pt,Q=lt(),$=(0,i.h_)(d.D);var J;const et=(J=$.getOptionalString("organization.name"))!==null&&J!==void 0?J:"Company",{filters:it,updateFilters:ut,queryParameters:{kind:F,user:Z}}=(0,B.wp)(),Et=["starred","all"],At=ht(et).map(Zt=>({...Zt,items:Zt.items.filter(({id:Jt})=>["group","user"].some(fe=>fe===F)?Et.includes(Jt):!mt||mt.includes(Jt))})).filter(({items:Zt})=>!!Zt.length),{count:dt,loading:Ct,filter:xt}=X(),{count:Pt}=G(),{count:Dt,filter:Lt,loading:ie}=ot(),te=(0,E.useMemo)(()=>[Z].flat()[0],[Z]),[he,Nt]=(0,E.useState)(te!=null?te:ct),Mt=(0,E.useMemo)(()=>({all:Pt,starred:Dt,owned:dt}),[Dt,dt,Pt]);(0,E.useEffect)(()=>{te&&Nt(te)},[te]);const Kt=Ct||ie;return(0,E.useEffect)(()=>{!Kt&&he&&he!=="all"&&Mt[he]===0&&Nt("all")},[Kt,Mt,he,Nt]),(0,E.useEffect)(()=>{if(!he||Kt)return;ut({user:(()=>he==="owned"?xt:he==="starred"?Lt:M.t$.all())()})},[he,Lt,xt,ut,Kt]),(0,o.jsx)(m.Z,{className:Q.root,children:At.map(Zt=>(0,o.jsxs)(E.Fragment,{children:[(0,o.jsx)(f.Z,{variant:"subtitle2",component:"span",className:Q.title,children:Zt.name}),(0,o.jsx)(m.Z,{className:Q.groupWrapper,children:(0,o.jsx)(l.Z,{disablePadding:!0,dense:!0,role:"menu","aria-label":Zt.name,children:Zt.items.map(Jt=>{var fe,ye;return(0,o.jsxs)(p.Z,{role:"none presentation",divider:!0,onClick:()=>Nt(Jt.id),selected:Jt.id===((fe=it.user)===null||fe===void 0?void 0:fe.value),className:Q.menuItem,disabled:Mt[Jt.id]===0,"data-testid":`user-picker-${Jt.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[Jt.icon&&(0,o.jsx)(S.Z,{className:Q.listIcon,children:(0,o.jsx)(Jt.icon,{fontSize:"small"})}),(0,o.jsx)(A.Z,{children:(0,o.jsxs)(f.Z,{variant:"body1",children:[Jt.label," "]})}),(0,o.jsx)(R.Z,{children:(ye=Mt[Jt.id])!==null&&ye!==void 0?ye:"-"})]},Jt.id)})})})]},Zt.name))})}},4967:function(_,P,t){"use strict";t.d(P,{A5:function(){return M},Bf:function(){return f},Cu:function(){return l},IZ:function(){return C},Qe:function(){return R},SZ:function(){return p},mM:function(){return E},rf:function(){return S},t$:function(){return x},zH:function(){return A},zo:function(){return m}});var o=t(87612),i=t(8709),d=t(74314),b=t(75435);class m{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class f{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class l{filterEntity(w){return this.values.every(U=>{var T;return((T=w.metadata.tags)!==null&&T!==void 0?T:[]).includes(U)})}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class p{filterEntity(w){const U=this.toUpperArray(this.value.split(/\s/)),T=this.toUpperArray([w.metadata.tags]),g=this.toUpperArray([w.metadata.name,w.metadata.title]);for(const K of U)if(T.every(V=>V!==K)&&g.every(V=>!V.includes(K)))return!1;return!0}toUpperArray(w){return w.flat().filter(U=>Boolean(U)).map(U=>U.toLocaleUpperCase("en-US"))}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class S{getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(w){return this.values.some(U=>(0,b.h)(w,i.S4).some(T=>(0,d.eE)(T)===U))}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w.reduce((U,T)=>{try{return U.push((0,d.eE)((0,d.of)(T,{defaultKind:"Group"}))),U}catch{return U}},[])}}class A{getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(w){return this.values.some(U=>{var T;return((T=w.spec)===null||T===void 0?void 0:T.lifecycle)===U})}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class R{getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(w){return this.values.some(U=>w.metadata.namespace===U)}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class x{static owned(w){return new x("owned",w)}static all(){return new x("all")}static starred(w){return new x("starred",w)}getCatalogFilters(){if(this.value==="owned"){var w;return{"relations.ownedBy":(w=this.refs)!==null&&w!==void 0?w:[]}}if(this.value==="starred"){var U,T;return{"metadata.name":(T=(U=this.refs)===null||U===void 0?void 0:U.map(g=>(0,d.of)(g).name))!==null&&T!==void 0?T:[]}}return{}}filterEntity(w){if(this.value==="starred"){var U,T;return(T=(U=this.refs)===null||U===void 0?void 0:U.includes((0,d.eE)(w)))!==null&&T!==void 0?T:!0}if(this.value==="owned"){var g;const V=(0,b.h)(w,i.S4);var K;return(K=(g=this.refs)===null||g===void 0?void 0:g.some(X=>V.some(H=>(0,d.eE)(H)===X)))!==null&&K!==void 0?K:!1}return!0}toQueryValue(){return this.value}constructor(w,U){(0,o._)(this,"value",void 0),(0,o._)(this,"refs",void 0),this.value=w,this.refs=U}}class C{filterEntity(w){switch(this.value){case"owned":return this.isOwnedEntity(w);case"starred":return this.isStarredEntity(w);default:return!0}}toQueryValue(){return this.value}constructor(w,U,T){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=w,this.isOwnedEntity=U,this.isStarredEntity=T}}class E{getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(w){var U;const T=(U=w.metadata.annotations)===null||U===void 0?void 0:U["backstage.io/orphan"];return T!==void 0&&this.value.toString()===T}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class M{filterEntity(w){var U,T;const g=(w==null||(T=w.status)===null||T===void 0||(U=T.items)===null||U===void 0?void 0:U.length)>0;return g!==void 0&&this.value===g}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}},25942:function(_,P,t){"use strict";t.d(P,{UO:function(){return M},wp:function(){return B}});var o=t(52322),i=t(76635),d=t.n(i),b=t(19126),m=t.n(b),f=t(2784),l=t(73557),p=t(69294),S=t(48760),A=t(90736),R=t(88624),x=t(64039),C=t(44394);const E=(0,f.createContext)(void 0),M=w=>{const U=(0,A.default)(),T=(0,C.h_)(R.A),[g,K]=(0,f.useState)({}),V=(0,l.TH)(),X=(0,f.useMemo)(()=>{var ft;return(ft=m().parse(V.search,{ignoreQueryPrefix:!0}).filters)!==null&&ft!==void 0?ft:{}},[V]),[H,G]=(0,f.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[]})),[{loading:z,error:Y},ot]=(0,p.default)(async()=>{const ft=(0,i.compact)(Object.values(g)),pt=(0,x.Gz)(ft),ct=(0,x.Oq)(ft),mt=(0,x.Oq)((0,i.compact)(Object.values(H.appliedFilters))),Q=Object.keys(g).reduce((J,et)=>{const it=g[et];return it!=null&&it.toQueryValue&&(J[et]=it.toQueryValue()),J},{});if((0,i.isEqual)(mt,ct))G({appliedFilters:g,backendEntities:H.backendEntities,entities:H.backendEntities.filter(pt)});else{const J=await T.getEntities({filter:ct});G({appliedFilters:g,backendEntities:J.items,entities:J.items.filter(pt)})}if(U()){var $;const J=m().parse(V.search,{ignoreQueryPrefix:!0}),et=m().stringify({...J,filters:Q},{addQueryPrefix:!0,arrayFormat:"repeat"}),it=`${window.location.pathname}${et}`;($=window.history)===null||$===void 0||$.replaceState(null,document.title,it)}},[T,X,g,H],{loading:!0});(0,S.Z)(ot,10,[g]);const lt=(0,f.useCallback)(ft=>{K(pt=>{const ct=typeof ft=="function"?ft(pt):ft;return{...pt,...ct}})},[]),ht=(0,f.useMemo)(()=>({filters:H.appliedFilters,entities:H.entities,backendEntities:H.backendEntities,updateFilters:lt,queryParameters:X,loading:z,error:Y}),[H,lt,X,z,Y]);return(0,o.jsx)(E.Provider,{value:ht,children:w.children})};function B(){const w=(0,f.useContext)(E);if(!w)throw new Error("useEntityList must be used within EntityListProvider");return w}},42870:function(_,P,t){"use strict";t.d(P,{C:function(){return l}});var o=t(74314),i=t(44394),d=t(2784),b=t(72164),m=t(36802);function f(p){return typeof p=="string"?p:(0,o.eE)(p)}function l(){const p=(0,i.h_)(m.p),S=(0,b.Z)((0,d.useMemo)(()=>p.starredEntitie$(),[p]),new Set),A=(0,d.useCallback)(x=>S.has(f(x)),[S]),R=(0,d.useCallback)(x=>p.toggleStarred(f(x)).then(),[p]);return{starredEntities:S,toggleStarredEntity:R,isStarredEntity:A}}},36434:function(_,P,t){"use strict";t.d(P,{w:function(){return d}});var o=t(30283),i=t(96087);const d=(0,i.u)("catalog:entity-route-ref",()=>(0,o.N)({id:"catalog:entity",params:["namespace","kind","name"]}));function b(m){var f,l;return{kind:m.kind.toLocaleLowerCase("en-US"),namespace:(l=(f=m.metadata.namespace)===null||f===void 0?void 0:f.toLocaleLowerCase("en-US"))!==null&&l!==void 0?l:DEFAULT_NAMESPACE,name:m.metadata.name}}},64039:function(_,P,t){"use strict";t.d(P,{Gz:function(){return b},Oq:function(){return d},wq:function(){return i}});var o=t(4967);function i(m){return m.reduce((f,l)=>({...f,...l.getCatalogFilters?l.getCatalogFilters():{}}),{})}function d(m){const f={};return m.forEach(l=>{var p;l instanceof o.Cu||l instanceof o.rf||l instanceof o.zH||l instanceof o.Qe||l instanceof o.t$||l instanceof o.mM||l instanceof o.SZ||l instanceof o.IZ||Object.assign(f,((p=l.getCatalogFilters)===null||p===void 0?void 0:p.call(l))||{})}),f}function b(m){return f=>m.every(l=>!l.filterEntity||l.filterEntity(f))}},75435:function(_,P,t){"use strict";t.d(P,{h:function(){return i}});var o=t(74314);function i(d,b,m){var f;let l=(d==null||(f=d.relations)===null||f===void 0?void 0:f.filter(p=>p.type===b).map(p=>(0,o.of)(p.targetRef)))||[];return m!=null&&m.kind&&(l=l.filter(p=>p.kind.toLocaleLowerCase("en-US")===m.kind.toLocaleLowerCase("en-US"))),l}},65524:function(_,P,t){"use strict";t.d(P,{yw:function(){return p},ql:function(){return A},_Z:function(){return R},jU:function(){return S}});var o=t(87612),i=t(92918);let d=i.K,b=d;class m{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(C,E,M){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,b,void 0),this.id=C,this.params=E,this.optional=M,this[d]="external"}}function f(x){var C;return new m(x.id,(C=x.params)!==null&&C!==void 0?C:[],Boolean(x.optional))}var l=t(30283);const p=f({id:"create-component",optional:!0}),S=f({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=f({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),R=(0,l.N)({id:"catalog"})},76079:function(_,P,t){"use strict";t.d(P,{F:function(){return m}});var o=t(52322),i=t(2784),d=t(79692);const b=(0,d.Z)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),m=f=>{const{text:l,preTag:p,postTag:S}=f,A=b(),R=(0,i.useMemo)(()=>l.split(new RegExp(`(${p}.+?${S})`)),[S,p,l]);return(0,o.jsx)(o.Fragment,{children:R.map((x,C)=>x.includes(p)?(0,o.jsx)("mark",{className:A.highlight,children:x.replace(new RegExp(`${p}|${S}`,"g"),"")},C):x)})}},53945:function(_,P,t){"use strict";t.d(P,{E5:function(){return S}});var o=t(52322),i=t(2784),d=t(62369),b=t(82963),m=t(38402);const f="search.results.list.items.extensions.v1",l=(x,C)=>{for(const E of x){if(!isValidElement(E))continue;const M=getComponentData(E,f);if(M!=null&&M(C))return cloneElement(E,{rank:C.rank,highlight:C.highlight,result:C.document,...E.props})}return null},p=x=>{const{rank:C,result:E,noTrack:M,children:B,alignItems:w="flex-start",...U}=x,T=(0,d.z)(),g=(0,i.useCallback)(()=>{M||E&&T.captureEvent("discover",E.title,{attributes:{to:E.location},value:C})},[C,E,M,T]);return(0,o.jsx)(m.Z,{divider:!0,alignItems:w,onClickCapture:g,...U,children:B})},S=x=>{const{name:C,component:E,predicate:M=()=>!0}=x;return(0,b.YO)({name:C,component:{lazy:()=>E().then(B=>w=>(0,o.jsx)(p,{rank:w.rank,result:w.result,noTrack:w.noTrack,children:(0,i.createElement)(B,w)}))},data:{[f]:M}})},A=x=>{const C=useElementFilter(x,E=>E.selectByComponentData({key:f}).getElements(),[x]);return useCallback((E,M)=>{const B=l(C,E);return _jsx(Fragment,{children:B!=null?B:_jsx(p,{rank:E.rank,result:E.document,children:_jsx(DefaultResultListItem,{rank:E.rank,highlight:E.highlight,result:E.document})})},M)},[C])},R=x=>{const{results:C,children:E,...M}=x,B=A(E);return _jsx(List,{...M,children:C.map(B)})}},2296:function(_,P,t){"use strict";t.d(P,{$L:function(){return M},DR:function(){return S},KY:function(){return R},Zz:function(){return p},jM:function(){return l}});var o=t(52322),i=t(2784),d=t(73557),b=t(62584),m=t(82963),f=t(2532);const l="techdocs.addons.addon.v1",p="techdocs.addons.wrapper.v1",S=()=>null;(0,b.R)(S,p,!0);const A=B=>`${l}.${B.toLocaleLowerCase("en-US")}`;function R(B){const{name:w,component:U}=B;return(0,m.YO)({name:w,component:{sync:T=>(0,o.jsx)(U,{...T})},data:{[l]:B,[A(w)]:!0}})}const x=(B,w)=>B.selectByComponentData({key:w}).getElements()[0],C=B=>B.selectByComponentData({key:p}).selectByComponentData({key:l}),E=B=>B.selectByComponentData({key:p}).findComponentData({key:l}),M=()=>{const B=(0,d.pC)(),w=(0,f.v)(B,C),U=(0,f.v)(B,E),T=(0,i.useCallback)(V=>{if(!w||!V)return null;const X=A(V.name);var H;return(H=x(w,X))!==null&&H!==void 0?H:null},[w]),g=(0,i.useCallback)(V=>{const X=U.find(H=>H.name===V);return X?T(X):null},[U,T]),K=(0,i.useCallback)(V=>{const X=U.filter(H=>H.location===V);return X.length?X.map(T):null},[U,T]);return{renderComponentByName:g,renderComponentsByLocation:K}}},58496:function(_,P,t){"use strict";t.d(P,{D:function(){return d},g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.techdocs.service"}),d=(0,o.T)({id:"plugin.techdocs.storageservice"})},68979:function(_,P,t){"use strict";t.d(P,{Z:function(){return B},x:function(){return w}});var o=t(52322),i=t(2784),d=t(64279),b=t(77446),m=t(74314),f=t(29651),l=t(68993),p=t(44394),S=t(6542),A=t(72388),R=t(58496);function x(U,T){return T.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(U.kind=U.kind.toLocaleLowerCase(),U.name=U.name.toLocaleLowerCase(),U.namespace=U.namespace.toLocaleLowerCase()),U}const C=(U,T)=>(0,m.eE)(U)===(0,m.eE)(T),E={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},M=(0,f.CT)("techdocs-reader-page-context"),B=(0,i.memo)(U=>{const{entityRef:T,children:g}=U,K=(0,p.h_)(R.g),V=(0,p.h_)(S.D),X=(0,d.default)(async()=>K.getEntityMetadata(T),[T]),H=(0,b.Z)(async()=>K.getTechDocsMetadata(T),[T]),[G,z]=(0,i.useState)(E.title),[Y,ot]=(0,i.useState)(E.subtitle),[lt,ht]=(0,i.useState)(E.shadowRoot);(0,i.useEffect)(()=>{lt&&!H.value&&!H.loading&&H.retry()},[H.value,H.loading,lt,H.retry,H]);const ft={metadata:H,entityRef:x(T,V),entityMetadata:X,shadowRoot:lt,setShadowRoot:ht,title:G,setTitle:z,subtitle:Y,setSubtitle:ot},pt=(0,l.E)({1:ft});return(0,o.jsx)(A.fC,{attributes:{entityRef:(0,m.eE)(T)},children:(0,o.jsx)(M.Provider,{value:pt,children:g instanceof Function?g(ft):g})})},(U,T)=>C(U.entityRef,T.entityRef)),w=()=>{const U=(0,i.useContext)(M);if(U===void 0)return E;const T=U.atVersion(1);if(T===void 0)throw new Error("No context found for version 1.");return T}},57058:function(_,P,t){"use strict";t.d(P,{o:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},51953:function(_,P,t){"use strict";t.d(P,{D:function(){return o}});function o(i,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},29895:function(_,P,t){"use strict";t.d(P,{u:function(){return H}});var o=t(52322),i=t(2784),d=t(42398),b=t(30706),m=t(13788),f=t(25942),l=t(30389),p=t(32494),S=t(63833),A=t(97894),R=t(42081),x=t(88797);class C{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":x.n}}}const E=()=>{const{updateFilters:G}=(0,f.wp)();return(0,i.useEffect)(()=>{G({techdocs:new C})},[G]),null};var M=t(95074),B=t(76635),w=t(538),U=t(9791),T=t(42870),g=t(16787),K=t(45342),V=t(49079);const X=G=>{var z;const{columns:Y,actions:ot,options:lt}=G,{loading:ht,error:ft,entities:pt,filters:ct}=(0,f.wp)(),{isStarredEntity:mt,toggleStarredEntity:Q}=(0,T.C)(),[,$]=(0,M.Z)();var J;const et=(0,B.capitalize)((J=(z=ct.user)===null||z===void 0?void 0:z.value)!==null&&J!==void 0?J:"all"),it=[K.n.createCopyDocsUrlAction($),K.n.createStarEntityAction(mt,Q)];return ft?(0,o.jsx)(w.G,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(U.O,{language:"text",text:ft.toString()})}):(0,o.jsx)(g.H,{title:et,entities:pt,loading:ht,actions:ot||it,columns:Y,options:lt})};X.columns=V.N,X.actions=K.n;const H=G=>{const{initialFilter:z="owned",columns:Y,actions:ot}=G;return(0,o.jsx)(R.j,{children:(0,o.jsxs)(d.V,{children:[(0,o.jsx)(b.y,{title:"",children:(0,o.jsx)(m.q,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(f.UO,{children:(0,o.jsxs)(l._i,{children:[(0,o.jsxs)(l._i.Filters,{children:[(0,o.jsx)(E,{}),(0,o.jsx)(p.E,{initialFilter:z}),(0,o.jsx)(S.d,{}),(0,o.jsx)(A.x,{})]}),(0,o.jsx)(l._i.Content,{children:(0,o.jsx)(X,{actions:ot,columns:Y})})]})})]})})}},16787:function(_,P,t){"use strict";t.d(P,{H:function(){return w}});var o=t(52322),i=t(2784),d=t(95074),b=t(37321),m=t(44394),f=t(6542),l=t(8709),p=t(75435),S=t(86540),A=t(95573),R=t(84462),x=t(70249),C=t(15929),E=t(45342),M=t(49079),B=t(51953);const w=U=>{const{entities:T,title:g,loading:K,columns:V,actions:X,options:H}=U,[,G]=(0,d.Z)(),z=(0,b.t)(A.Fw),Y=(0,m.h_)(f.D);if(!T)return null;const ot=T.map(ct=>{const mt=(0,p.h)(ct,l.S4);var Q;return{entity:ct,resolved:{docsUrl:z({namespace:(0,B.D)((Q=ct.metadata.namespace)!==null&&Q!==void 0?Q:"default",Y),kind:(0,B.D)(ct.kind,Y),name:(0,B.D)(ct.metadata.name,Y)}),ownedByRelations:mt,ownedByRelationsTitle:mt.map($=>(0,S.$)($,{defaultKind:"group"})).join(", ")}}}),lt=[M.N.createNameColumn(),M.N.createOwnerColumn(),M.N.createKindColumn(),M.N.createTypeColumn()],ht=[E.n.createCopyDocsUrlAction(G)],ft=20,pt=ot&&ot.length>ft;return(0,o.jsx)(o.Fragment,{children:K||ot&&ot.length>0?(0,o.jsx)(R.i,{isLoading:K,options:{paging:pt,pageSize:ft,search:!0,actionsColumnIndex:-1,...H},data:ot,columns:V||lt,actions:X||ht,title:g?`${g} (${ot.length})`:`All (${ot.length})`}):(0,o.jsx)(x.u,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(C.Q,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};w.columns=M.N,w.actions=E.n},45342:function(_,P,t){"use strict";t.d(P,{n:function(){return p}});var o=t(52322),i=t(2784),d=t(39981),b=t(2337),m=t(11640),f=t(28347);const l=(0,b.Z)({root:{color:"#f3ba37"}})(m.Z),p={createCopyDocsUrlAction(S){return A=>({icon:()=>(0,o.jsx)(d.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>S(`${window.location.origin}${A.resolved.docsUrl}`)})},createStarEntityAction(S,A){return R=>{const x=R.entity,C=S(x);return{cellStyle:{paddingLeft:"1em"},icon:()=>C?(0,o.jsx)(l,{}):(0,o.jsx)(f.Z,{}),tooltip:C?"Remove from favorites":"Add to favorites",onClick:()=>A(x)}}}}},49079:function(_,P,t){"use strict";t.d(P,{N:function(){return A}});var o=t(52322),i=t(2784),d=t(62774),b=t(79692);const m=(0,b.Z)(R=>({value:{marginBottom:R.spacing(.75)},subvalue:{color:R.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function f(R){const{value:x,subvalue:C}=R,E=m();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{className:E.value,children:x}),(0,o.jsx)(d.Z,{className:E.subvalue,children:C})]})}var l=t(98864),p=t(51194);function S(R){return R.metadata.title||R.metadata.name}const A={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:R=>(0,o.jsx)(f,{value:(0,o.jsx)(l.rU,{to:R.resolved.docsUrl,children:S(R.entity)}),subvalue:R.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:R})=>(0,o.jsx)(p.r,{entityRefs:R.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},42081:function(_,P,t){"use strict";t.d(P,{j:function(){return f}});var o=t(52322),i=t(2784),d=t(32166),b=t(44394),m=t(6542);const f=l=>{const{children:p}=l,S=(0,b.h_)(m.D);var A;const R=`Documentation available in ${(A=S.getOptionalString("organization.name"))!==null&&A!==void 0?A:"Backstage"}`;return(0,o.jsx)(d.g,{title:"Documentation",subtitle:R,themeId:"documentation",children:p})}},4577:function(_,P,t){"use strict";t.d(P,{Jl:function(){return pt},I6:function(){return ct},s4:function(){return ot}});var o=t(58496),i=t(87612),d=t(41385),b=t(48998),m=t(30474);class f extends Error{constructor($,J){var et,it;let ut=$;if(J!==void 0){const F=(0,b.n)(J);ut?ut+=`; caused by ${F}`:ut=`caused by ${F}`}super(ut),(0,i._)(this,"cause",void 0),(et=(it=Error).captureStackTrace)===null||et===void 0||et.call(it,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,m.V)(J)?J:void 0}}class l extends null{constructor(...$){super(...$),_define_property(this,"name","InputError")}}class p extends null{constructor(...$){super(...$),_define_property(this,"name","AuthenticationError")}}class S extends null{constructor(...$){super(...$),_define_property(this,"name","NotAllowedError")}}class A extends f{constructor(...$){super(...$),(0,i._)(this,"name","NotFoundError")}}class R extends null{constructor(...$){super(...$),_define_property(this,"name","ConflictError")}}class x extends null{constructor(...$){super(...$),_define_property(this,"name","NotModifiedError")}}class C extends null{constructor(...$){super(...$),_define_property(this,"name","NotImplementedError")}}class E extends null{}class M extends null{constructor($,J){super($,J),this.name=isError(J)?J.name:"Error"}}var B=t(54847);class w{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata($){const{kind:J,namespace:et,name:it}=$,F=`${await this.getApiOrigin()}/metadata/techdocs/${et}/${J}/${it}`,Z=await this.fetchApi.fetch(`${F}`);if(!Z.ok)throw await d.V.fromResponse(Z);return await Z.json()}async getEntityMetadata($){const{kind:J,namespace:et,name:it}=$,F=`${await this.getApiOrigin()}/metadata/entity/${et}/${J}/${it}`,Z=await this.fetchApi.fetch(`${F}`);if(!Z.ok)throw await d.V.fromResponse(Z);return await Z.json()}constructor($){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=$.configApi,this.discoveryApi=$.discoveryApi,this.fetchApi=$.fetchApi}}class U{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var $;return($=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&$!==void 0?$:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs($,J){const{kind:et,namespace:it,name:ut}=$,Z=`${await this.getStorageUrl()}/${it}/${et}/${ut}/${J}`,Et=await this.fetchApi.fetch(`${Z.endsWith("/")?Z:`${Z}/`}index.html`);let At="";switch(Et.status){case 404:throw At="Page not found. ",J||(At+="This could be because there is no index.md file in the root of the docs directory of this repository."),new A(At);case 500:throw At="Could not generate documentation or an error in the TechDocs backend. ",new Error(At);default:break}return Et.text()}async syncEntityDocs($,J=()=>{}){const{kind:et,namespace:it,name:ut}=$,Z=`${await this.getApiOrigin()}/sync/${it}/${et}/${ut}`,{token:Et}=await this.identityApi.getCredentials();return new Promise((At,dt)=>{const Ct=new B.EventSourcePolyfill(Z,{withCredentials:!0,headers:Et?{Authorization:`Bearer ${Et}`}:{}});Ct.addEventListener("log",xt=>{xt.data&&J(JSON.parse(xt.data))}),Ct.addEventListener("finish",xt=>{let Pt=!1;xt.data&&({updated:Pt}=JSON.parse(xt.data)),At(Pt?"updated":"cached")}),Ct.onerror=xt=>{switch(Ct.close(),xt.status){case 404:dt(new A(xt.message));return;default:dt(new Error(xt.data));return}}})}async getBaseUrl($,J,et){const{kind:it,namespace:ut,name:F}=J,Et=`${await this.getApiOrigin()}/static/docs/${ut}/${it}/${F}/${et}`;return new URL($,Et.endsWith("/")?Et:`${Et}/`).toString()}constructor($){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"identityApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=$.configApi,this.discoveryApi=$.discoveryApi,this.identityApi=$.identityApi,this.fetchApi=$.fetchApi}}var T=t(95573),g=t(15006),K=t(42380),V=t(6542),X=t(96727),H=t(77186),G=t(85094),z=t(82963),Y=t(53945);const ot=(0,g.r)({id:"techdocs",apis:[(0,K.n)({api:o.D,deps:{configApi:V.D,discoveryApi:X.N,identityApi:H.$,fetchApi:G.g},factory:({configApi:Q,discoveryApi:$,identityApi:J,fetchApi:et})=>new U({configApi:Q,discoveryApi:$,identityApi:J,fetchApi:et})}),(0,K.n)({api:o.g,deps:{configApi:V.D,discoveryApi:X.N,fetchApi:G.g},factory:({configApi:Q,discoveryApi:$,fetchApi:J})=>new w({configApi:Q,discoveryApi:$,fetchApi:J})})],routes:{root:T._Z,docRoot:T.Fw,entityContent:T.pd}}),lt=ot.provide((0,z.P4)({name:"TechdocsPage",component:()=>t.e(8096).then(t.bind(t,8096)).then(Q=>Q.Router),mountPoint:T._Z})),ht=ot.provide((0,z.P4)({name:"EntityTechdocsContent",component:()=>t.e(8096).then(t.bind(t,8096)).then(Q=>Q.EmbeddedDocsRouter),mountPoint:T.pd})),ft=ot.provide((0,z.P4)({name:"TechDocsCustomHome",component:()=>t.e(4109).then(t.bind(t,44109)).then(Q=>Q.TechDocsCustomHome),mountPoint:T._Z})),pt=ot.provide((0,z.P4)({name:"TechDocsIndexPage",component:()=>t.e(8662).then(t.bind(t,18662)).then(Q=>Q.TechDocsIndexPage),mountPoint:T._Z})),ct=ot.provide((0,z.P4)({name:"TechDocsReaderPage",component:()=>t.e(5914).then(t.bind(t,35914)).then(Q=>Q.TechDocsReaderPage),mountPoint:T.Fw})),mt=ot.provide((0,Y.E5)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,55511)).then(Q=>Q.TechDocsSearchResultListItem),predicate:Q=>Q.type==="techdocs"}))},14540:function(_,P,t){"use strict";t.d(P,{F:function(){return No}});var o=t(52322),i=t(2784),d=t(79692),b=t(60905),m=t(68979),f=t(70882),l=t(50236),p=t(19219),S=t(55015);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",R=h=>{(0,i.useEffect)(()=>{if(!h)return()=>{};const O=h.querySelectorAll('head > link[rel="stylesheet"]');var D;let k=(D=O==null?void 0:O.length)!==null&&D!==void 0?D:0;const q=new CustomEvent(A);if(!k)return h.dispatchEvent(q),()=>{};const nt=()=>{--k===0&&h.dispatchEvent(q)};return O==null||O.forEach(at=>{at.addEventListener("load",nt)}),()=>{O==null||O.forEach(at=>{at.removeEventListener("load",nt)})}},[h])},x=h=>{const[O,D]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};D(!0);const k=h.style;k.setProperty("opacity","0");const q=()=>{D(!1),k.setProperty("opacity","1")};return h.addEventListener(A,q),()=>{h.removeEventListener(A,q)}},[h]),O},C=h=>{const{element:O,onAppend:D,children:k}=h,[q,nt]=(0,i.useState)((0,f.Ue)({...(0,l.Z)(),insertionPoint:void 0}));R(O);const at=x(O),Ot=(0,i.useCallback)(Tt=>{if(!O||!Tt)return;nt((0,f.Ue)({...(0,l.Z)(),insertionPoint:O.querySelector("head")||void 0}));let $t=Tt.shadowRoot;$t||($t=Tt.attachShadow({mode:"open"})),$t.replaceChildren(O),typeof D=="function"&&D($t)},[O,D]);return(0,o.jsxs)(o.Fragment,{children:[at&&(0,o.jsx)(S.E,{}),(0,o.jsxs)(p.ZP,{jss:q,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:Ot,"data-testid":"techdocs-native-shadowroot"}),k]})]})};var E=t(54073);const M=()=>{const{shadowRoot:h}=(0,m.x)();return h},B=h=>{const O=M();return O?h.map(D=>O==null?void 0:O.querySelectorAll(D)).filter(D=>D.length).map(D=>Array.from(D)).flat():[]},w=h=>h.toString()&&h.rangeCount&&h.getRangeAt(0).getBoundingClientRect().top,U=(h=0)=>{const O=M(),[D,k]=useState(null),q=useMemo(()=>debounce(()=>{const nt=O,at=nt.getSelection?nt.getSelection():document.getSelection();at&&w(at)?k(at):k(null)},h),[O,k,h]);return useEffect(()=>(window.document.addEventListener("selectionchange",q),()=>{q.cancel(),window.document.removeEventListener("selectionchange",q)}),[q]),D};var T=t(87435),g=t(42398),K=t(76635),V=t(64279),X=t(1849),H=t(29651),G=t(68993),z=t(44394),Y=t(62369),ot=t(72388),lt=t(6542),ht=t(95965);const ft=(0,ht.T)({id:"plugin.search.queryservice"});class pt{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(O){_define_property(this,"mockedResults",void 0),this.mockedResults=O}}const ct=(0,H.CT)("search-context"),mt=()=>{const h=(0,i.useContext)(ct);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const O=h.atVersion(1);if(!O)throw new Error("No SearchContext v1 found");return O},Q=()=>(0,i.useContext)(ct)!==void 0,$={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},J=(h=$)=>{var O,D,k,q;const nt=(0,z.h_)(ft),at=(0,Y.z)(),[Ot,Tt]=(0,i.useState)(h.term),[$t,Yt]=(0,i.useState)(h.types),[Ft,wt]=(0,i.useState)(h.filters),[re,ve]=(0,i.useState)(h.pageLimit),[Qt,Bt]=(0,i.useState)(h.pageCursor),ee=(0,X.Z)(Ot),me=(0,X.Z)(Ft),It=(0,V.default)(async()=>{const se=await nt.query({term:Ot,types:$t,filters:Ft,pageLimit:re,pageCursor:Qt});return Ot&&se.numberOfResults!==void 0&&at.captureEvent("search",Ot,{value:se.numberOfResults}),se},[Ot,$t,Ft,re,Qt]),kt=!It.loading&&!It.error&&((O=It.value)===null||O===void 0?void 0:O.nextPageCursor),_t=!It.loading&&!It.error&&((D=It.value)===null||D===void 0?void 0:D.previousPageCursor),xe=(0,i.useCallback)(()=>{var se;Bt((se=It.value)===null||se===void 0?void 0:se.nextPageCursor)},[(k=It.value)===null||k===void 0?void 0:k.nextPageCursor]),Oe=(0,i.useCallback)(()=>{var se;Bt((se=It.value)===null||se===void 0?void 0:se.previousPageCursor)},[(q=It.value)===null||q===void 0?void 0:q.previousPageCursor]);return(0,i.useEffect)(()=>{ee!==void 0&&Ot!==ee&&Bt(void 0)},[Ot,ee,Bt]),(0,i.useEffect)(()=>{me!==void 0&&!(0,K.isEqual)(Ft,me)&&Bt(void 0)},[Ft,me,Bt]),{result:It,term:Ot,setTerm:Tt,types:$t,setTypes:Yt,filters:Ft,setFilters:wt,pageLimit:re,setPageLimit:ve,pageCursor:Qt,setPageCursor:Bt,fetchNextPage:kt?xe:void 0,fetchPreviousPage:_t?Oe:void 0}},et=h=>{const{initialState:O,children:D}=h,k=J(O);return(0,o.jsx)(ot.fC,{attributes:{searchTypes:k.types.sort().join(",")},children:(0,o.jsx)(ct.Provider,{value:(0,G.E)({1:k}),children:D})})},it=h=>{const{initialState:O,inheritParentContextIfAvailable:D,children:k}=h,q=Q(),nt=(0,z.h_)(lt.D),at=O!=null?O:{},Ot=nt.has("search.query.pageLimit")?{pageLimit:nt.getNumber("search.query.pageLimit")}:{},Tt={...$,...at,...Ot};return q&&D?(0,o.jsx)(o.Fragment,{children:k}):(0,o.jsx)(et,{initialState:Tt,children:k})};var ut=t(4614),F=t(88013),Z=t(50581),Et=t(61837),At=t(86619),dt=t(77277),Ct=t(21853),xt=t(48760);function Pt(h){return(0,i.forwardRef)((O,D)=>(0,o.jsx)(it,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...O,ref:D})}))}const Dt=Pt((0,i.forwardRef)((h,O)=>{const{onChange:D,onKeyDown:k=()=>{},onClear:q=()=>{},onSubmit:nt=()=>{},debounceTime:at=200,clearButton:Ot=!0,fullWidth:Tt=!0,value:$t,label:Yt,placeholder:Ft,inputProps:wt={},InputProps:re={},endAdornment:ve,...Qt}=h,Bt=(0,z.h_)(lt.D),[ee,me]=(0,i.useState)(""),It=(0,i.useRef)("");(0,i.useEffect)(()=>{me(de=>de===It.current?String($t):de)},[$t,It]),(0,xt.Z)(()=>{It.current=ee,D(ee)},at,[ee]);const kt=(0,i.useCallback)(de=>{me(de.target.value)},[me]),_t=(0,i.useCallback)(de=>{k&&k(de),nt&&de.key==="Enter"&&nt()},[k,nt]),xe=(0,i.useCallback)(()=>{It.current="",D(""),me(""),q&&q()},[D,q]),Oe=Yt?void 0:"Search",Me=Ft!=null?Ft:`Search in ${Bt.getOptionalString("app.title")||"Backstage"}`,se=(0,o.jsx)(Z.Z,{position:"start",children:(0,o.jsx)(Et.Z,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(Ct.Z,{})})}),Ue=(0,o.jsx)(Z.Z,{position:"end",children:(0,o.jsx)(dt.Z,{"aria-label":"Clear",size:"small",onClick:xe,onKeyDown:de=>{de.key==="Enter"&&de.stopPropagation()},children:"Clear"})});return(0,o.jsx)(At.Z,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:O,value:ee,label:Yt,placeholder:Me,InputProps:{startAdornment:se,endAdornment:Ot?Ue:ve,...re},inputProps:{"aria-label":Oe,...wt},fullWidth:Tt,onChange:kt,onKeyDown:_t,...Qt})})),Lt=Pt((0,i.forwardRef)((h,O)=>{const{value:D="",onChange:k,...q}=h,{term:nt,setTerm:at}=mt();(0,i.useEffect)(()=>{D&&at(String(D))},[D,at]);const Ot=(0,i.useCallback)(Tt=>{k?k(Tt):at(Tt)},[k,at]);return(0,o.jsx)(ot.fC,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(Dt,{...q,ref:O,value:nt,onChange:Ot})})})),ie=(0,d.Z)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),te=h=>O=>(0,o.jsx)(it,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...O})}),he=()=>{const h=ie();return(0,o.jsx)(ut.Z,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Nt=te(function(O){const{loading:D,value:k,onChange:q=()=>{},options:nt=[],getOptionLabel:at=It=>String(It),inputPlaceholder:Ot,inputDebounceTime:Tt,freeSolo:$t=!0,fullWidth:Yt=!0,clearOnBlur:Ft=!1,"data-testid":wt="search-autocomplete",...re}=O,{setTerm:ve}=mt(),Qt=(0,i.useCallback)(It=>It?typeof It=="string"?It:at(It):"",[at]),Bt=(0,i.useMemo)(()=>Qt(k),[k,Qt]),ee=(0,i.useCallback)((It,kt,_t,xe)=>{ve(Qt(kt)),q(It,kt,_t,xe)},[Qt,ve,q]),me=(0,i.useCallback)(({InputProps:{ref:It,className:kt,endAdornment:_t},InputLabelProps:xe,...Oe})=>(0,o.jsx)(Lt,{...Oe,ref:It,clearButton:!1,value:Bt,placeholder:Ot,debounceTime:Tt,endAdornment:D?(0,o.jsx)(he,{}):_t,InputProps:{className:kt}}),[D,Bt,Ot,Tt]);return(0,o.jsx)(F.ZP,{...re,"data-testid":wt,value:k,onChange:ee,options:nt,getOptionLabel:at,renderInput:me,freeSolo:$t,fullWidth:Yt,clearOnBlur:Ft})});var Mt=t(73557),Kt=t(55511);const Zt=h=>h==null?void 0:h.document,Jt=h=>{const{entityId:O,entityTitle:D,debounceTime:k=150}=h,[q,nt]=(0,i.useState)(!1),at=(0,Mt.s0)(),{setFilters:Ot,result:{loading:Tt,value:$t}}=mt(),[Yt,Ft]=(0,i.useState)([]);(0,i.useEffect)(()=>{let Bt=!0;if(Bt&&$t){const ee=$t.results.slice(0,10);Ft(ee)}return()=>{Bt=!1}},[Tt,$t]);const{kind:wt,name:re,namespace:ve}=O;(0,i.useEffect)(()=>{Ot(Bt=>({...Bt,kind:wt,namespace:ve,name:re}))},[wt,ve,re,Ot]);const Qt=(Bt,ee)=>{if(Zt(ee)){const{location:me}=ee.document;at(me)}};return(0,o.jsx)(Nt,{"data-testid":"techdocs-search-bar",size:"small",open:q,getOptionLabel:()=>"",filterOptions:Bt=>Bt,onClose:()=>{nt(!1)},onFocus:()=>{nt(!0)},onChange:Qt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Yt,renderOption:({document:Bt,highlight:ee})=>(0,o.jsx)(Kt.TechDocsSearchResultListItem,{result:Bt,lineClamp:3,asListItem:!1,asLink:!1,title:Bt.title,highlight:ee}),loading:Tt,inputDebounceTime:k,inputPlaceholder:`Search ${D||O.name} docs`,freeSolo:!1})},fe=h=>{const O={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(it,{initialState:O,children:(0,o.jsx)(Jt,{...h})})};var ye=t(99688),Qe=t(80851);const Je=(0,i.lazy)(()=>Promise.all([t.e(8629),t.e(6051)]).then(t.bind(t,76051)).then(h=>({default:h.RealLogViewer})));function Ke(h){const{Progress:O}=(0,Qe.q)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(O,{}),children:(0,o.jsx)(Je,{...h})})}var Ae=t(42494),Xe=t(90436),_e=t(4190),ze=t(87685);const ne=(0,d.Z)(h=>(0,Ae.Z)({paper:{width:"100%",[h.breakpoints.up("sm")]:{width:"75%"},[h.breakpoints.up("md")]:{width:"50%"},padding:h.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:h.palette.background.default}})),on=({buildLog:h,onClose:O})=>{const D=ne(),k=h.length===0?"Waiting for logs...":h.join(`
|
|
2
|
-
`);return(0,o.jsxs)(b.Z,{container:!0,direction:"column",className:D.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(b.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(Xe.Z,{variant:"h5",children:"Build Details"}),(0,o.jsx)(Et.Z,{title:"Close the drawer",onClick:O,color:"inherit",children:(0,o.jsx)(ze.Z,{})},"dismiss")]}),(0,o.jsx)(b.Z,{item:!0,xs:!0,children:(0,o.jsx)(Ke,{text:k,classes:{root:D.logs}})})]})},Se=({buildLog:h})=>{const O=ne(),[D,k]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(dt.Z,{color:"inherit",onClick:()=>k(!0),children:"Show Build Logs"}),(0,o.jsx)(_e.ZP,{classes:{paper:O.paper},anchor:"right",open:D,onClose:()=>k(!1),children:(0,o.jsx)(on,{buildLog:h,onClose:()=>k(!1)})})]})},$e=({errorMessage:h})=>{const O=(0,z.h_)(lt.D).getOptionalString("techdocs.builder"),D=(0,Y.z)(),{entityRef:k}=(0,m.x)(),q=(0,Mt.TH)();(0,i.useEffect)(()=>{const{pathname:at,search:Ot,hash:Tt}=q;D.captureEvent("not-found",`${at}${Ot}${Tt}`,{attributes:k})},[D,k,q]);let nt="";return O!=="local"&&(nt="Note that techdocs.builder is not set to 'local' in your config, which means this Backstage app will not generate docs if they are not found. Make sure the project's docs are generated and published by some external process (e.g. CI/CD pipeline). Or change techdocs.builder to 'local' to generate docs from this Backstage instance."),(0,o.jsx)(T.m,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:nt})};var je=t(77446),pe=t(58496);function He({contentLoading:h,content:O,activeSyncState:D}){return h||D==="BUILD_READY_RELOAD"||!O&&D==="CHECKING"?"CHECKING":!O&&D==="BUILDING"?"INITIAL_BUILD":O?D==="BUILDING"?"CONTENT_STALE_REFRESHING":D==="BUILD_READY"?"CONTENT_STALE_READY":D==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Fe(h,O){const D={...h};switch(O.type){case"sync":O.state==="CHECKING"&&(D.buildLog=[]),D.activeSyncState=O.state,D.syncError=O.syncError;break;case"contentLoading":D.contentLoading=!0,D.contentError=void 0;break;case"content":typeof O.path=="string"&&(D.path=O.path),D.contentLoading=!1,D.content=O.content,D.contentError=O.contentError;break;case"buildLog":D.buildLog=D.buildLog.concat(O.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(D.activeSyncState)&&["contentLoading","content"].includes(O.type)&&(D.activeSyncState="UP_TO_DATE",D.buildLog=[]),D}function j(h,O,D,k){var q,nt;const[at,Ot]=(0,i.useReducer)(Fe,{activeSyncState:"CHECKING",path:k,contentLoading:!0,buildLog:[]}),Tt=(0,z.h_)(pe.D),{retry:$t}=(0,je.Z)(async()=>{Ot({type:"contentLoading"});try{const wt=await Tt.getEntityDocs({kind:h,namespace:O,name:D},k);return Ot({type:"content",content:wt,path:k}),wt}catch(wt){Ot({type:"content",contentError:wt,path:k})}},[Tt,h,O,D,k]),Yt=(0,i.useRef)({content:void 0,reload:()=>{}});return Yt.current={content:at.content,reload:$t},(0,V.default)(async()=>{Ot({type:"sync",state:"CHECKING"});const wt=setTimeout(()=>{Ot({type:"sync",state:"BUILDING"})},1e3);try{switch(await Tt.syncEntityDocs({kind:h,namespace:O,name:D},ve=>{Ot({type:"buildLog",log:ve})})){case"updated":Yt.current.content?Ot({type:"sync",state:"BUILD_READY"}):(Yt.current.reload(),Ot({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":Ot({type:"sync",state:"UP_TO_DATE"});break;default:Ot({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(re){Ot({type:"sync",state:"ERROR",syncError:re})}finally{clearTimeout(wt)}},[h,D,O,Tt,Ot,Yt]),{state:(0,i.useMemo)(()=>He({activeSyncState:at.activeSyncState,contentLoading:at.contentLoading,content:at.content}),[at.activeSyncState,at.content,at.contentLoading]),contentReload:$t,path:at.path,content:at.content,contentErrorMessage:(q=at.contentError)===null||q===void 0?void 0:q.toString(),syncErrorMessage:(nt=at.syncError)===null||nt===void 0?void 0:nt.toString(),buildLog:at.buildLog}}const u=(0,i.createContext)({}),L=()=>(0,i.useContext)(u),W=h=>{const{children:O}=h,{"*":D=""}=(0,Mt.UO)(),{entityRef:k}=(0,m.x)(),{kind:q,namespace:nt,name:at}=k,Ot=j(q,nt,at,D);return(0,o.jsx)(u.Provider,{value:Ot,children:O instanceof Function?O(Ot):O})},rt=h=>O=>(0,o.jsx)(W,{children:(0,o.jsx)(h,{...O})}),vt=(0,d.Z)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),St=()=>{let h=null;const O=vt(),{state:D,contentReload:k,contentErrorMessage:q,syncErrorMessage:nt,buildLog:at}=L();return D==="INITIAL_BUILD"&&(h=(0,o.jsx)(ye.Z,{classes:{root:O.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(ut.Z,{size:"24px"}),action:(0,o.jsx)(Se,{buildLog:at}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),D==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(ye.Z,{variant:"outlined",severity:"info",icon:(0,o.jsx)(ut.Z,{size:"24px"}),action:(0,o.jsx)(Se,{buildLog:at}),classes:{root:O.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),D==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(ye.Z,{variant:"outlined",severity:"success",action:(0,o.jsx)(dt.Z,{color:"inherit",onClick:()=>k(),children:"Refresh"}),classes:{root:O.root},children:"A newer version of this documentation is now available, please refresh to view."})),D==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(ye.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Se,{buildLog:at}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",nt]})),D==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[nt&&(0,o.jsxs)(ye.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Se,{buildLog:at}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",nt]}),(0,o.jsx)($e,{errorMessage:q})]})),h};var Gt=t(60364),zt=t(41156),Ut=t(91657),jt=t(35368),oe=t.n(jt);const we=/main\.[A-Fa-f0-9]{8}\.min\.css$/,Le=/^https:\/\/fonts\.googleapis\.com/,We=/^https:\/\/fonts\.gstatic\.com/,uo=h=>h.nodeName==="LINK",Xt=h=>{const O=(h==null?void 0:h.getAttribute("href"))||"",D=O.match(we),k=O.match(Le),q=O.match(We);return D||k||q},Ee=h=>(uo(h)&&!Xt(h)&&h.remove(),h),ae=h=>h.nodeName==="IFRAME",Dn=(h,O)=>{const D=h.getAttribute("src")||"";try{const{host:k}=new URL(D);return O.includes(k)}catch{return!1}},ho=h=>O=>(ae(O)&&!Dn(O,h)&&O.remove(),O),Ln=()=>{const h=(0,z.h_)(lt.D);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},Mn=()=>{const h=Ln();return(0,i.useCallback)(async O=>{const D=h==null?void 0:h.getOptionalStringArray("allowedIframeHosts");oe().addHook("beforeSanitizeElements",Ee);const k=["link"];return D&&(k.push("iframe"),oe().addHook("beforeSanitizeElements",ho(D))),oe().sanitize(O.outerHTML,{ADD_TAGS:k,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var jn=t(93539),ge=t(41128),Te=({theme:h})=>`
|
|
3
|
-
/*================== Variables ==================*/
|
|
4
|
-
/*
|
|
5
|
-
As the MkDocs output is rendered in shadow DOM, the CSS variable definitions on the root selector are not applied. Instead, they have to be applied on :host.
|
|
6
|
-
As there is no way to transform the served main*.css yet (for example in the backend), we have to copy from main*.css and modify them.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
:host {
|
|
10
|
-
/* FONT */
|
|
11
|
-
--md-default-fg-color: ${h.palette.text.primary};
|
|
12
|
-
--md-default-fg-color--light: ${h.palette.text.secondary};
|
|
13
|
-
--md-default-fg-color--lighter: ${(0,ge.$n)(h.palette.text.secondary,.7)};
|
|
14
|
-
--md-default-fg-color--lightest: ${(0,ge.$n)(h.palette.text.secondary,.3)};
|
|
15
|
-
|
|
16
|
-
/* BACKGROUND */
|
|
17
|
-
--md-default-bg-color:${h.palette.background.default};
|
|
18
|
-
--md-default-bg-color--light: ${h.palette.background.paper};
|
|
19
|
-
--md-default-bg-color--lighter: ${(0,ge.$n)(h.palette.background.paper,.7)};
|
|
20
|
-
--md-default-bg-color--lightest: ${(0,ge.$n)(h.palette.background.paper,.3)};
|
|
21
|
-
|
|
22
|
-
/* PRIMARY */
|
|
23
|
-
--md-primary-fg-color: ${h.palette.primary.main};
|
|
24
|
-
--md-primary-fg-color--light: ${h.palette.primary.light};
|
|
25
|
-
--md-primary-fg-color--dark: ${h.palette.primary.dark};
|
|
26
|
-
--md-primary-bg-color: ${h.palette.primary.contrastText};
|
|
27
|
-
--md-primary-bg-color--light: ${(0,ge.$n)(h.palette.primary.contrastText,.7)};
|
|
28
|
-
|
|
29
|
-
/* ACCENT */
|
|
30
|
-
--md-accent-fg-color: var(--md-primary-fg-color);
|
|
31
|
-
|
|
32
|
-
/* SHADOW */
|
|
33
|
-
--md-shadow-z1: ${h.shadows[1]};
|
|
34
|
-
--md-shadow-z2: ${h.shadows[2]};
|
|
35
|
-
--md-shadow-z3: ${h.shadows[3]};
|
|
36
|
-
|
|
37
|
-
/* EXTENSIONS */
|
|
38
|
-
--md-admonition-fg-color: var(--md-default-fg-color);
|
|
39
|
-
--md-admonition-bg-color: var(--md-default-bg-color);
|
|
40
|
-
/* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
|
|
41
|
-
--md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>');
|
|
42
|
-
--md-admonition-icon--abstract: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 5h16v2H4V5m0 4h16v2H4V9m0 4h16v2H4v-2m0 4h10v2H4v-2z"/></svg>');
|
|
43
|
-
--md-admonition-icon--info: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10A10 10 0 0012 2z"/></svg>');
|
|
44
|
-
--md-admonition-icon--tip: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.55 11.2c-.23-.3-.5-.56-.76-.82-.65-.6-1.4-1.03-2.03-1.66C13.3 7.26 13 4.85 13.91 3c-.91.23-1.75.75-2.45 1.32-2.54 2.08-3.54 5.75-2.34 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.22.1-.46.04-.64-.12a.83.83 0 01-.15-.17c-1.1-1.43-1.28-3.48-.53-5.12C5.89 10 5 12.3 5.14 14.47c.04.5.1 1 .27 1.5.14.6.4 1.2.72 1.73 1.04 1.73 2.87 2.97 4.84 3.22 2.1.27 4.35-.12 5.96-1.6 1.8-1.66 2.45-4.32 1.5-6.6l-.13-.26c-.2-.46-.47-.87-.8-1.25l.05-.01m-3.1 6.3c-.28.24-.73.5-1.08.6-1.1.4-2.2-.16-2.87-.82 1.19-.28 1.89-1.16 2.09-2.05.17-.8-.14-1.46-.27-2.23-.12-.74-.1-1.37.18-2.06.17.38.37.76.6 1.06.76 1 1.95 1.44 2.2 2.8.04.14.06.28.06.43.03.82-.32 1.72-.92 2.27h.01z"/></svg>');
|
|
45
|
-
--md-admonition-icon--success: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
|
|
46
|
-
--md-admonition-icon--question: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.07 11.25l-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 00-2-2 2 2 0 00-2 2H8a4 4 0 014-4 4 4 0 014 4 3.2 3.2 0 01-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10c0-5.53-4.5-10-10-10z"/></svg>');
|
|
47
|
-
--md-admonition-icon--warning: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"/></svg>');
|
|
48
|
-
--md-admonition-icon--failure: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z"/></svg>');
|
|
49
|
-
--md-admonition-icon--danger: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.5 20l4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2z"/></svg>');
|
|
50
|
-
--md-admonition-icon--bug: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 00-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 00-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z"/></svg>');
|
|
51
|
-
--md-admonition-icon--example: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 01.75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z"/></svg>');
|
|
52
|
-
--md-admonition-icon--quote: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z"/></svg>');
|
|
53
|
-
--md-footnotes-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2z"/></svg>');
|
|
54
|
-
--md-details-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
|
|
55
|
-
--md-tasklist-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>');
|
|
56
|
-
--md-tasklist-icon--checked: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
|
|
57
|
-
--md-nav-icon--prev: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>');
|
|
58
|
-
--md-nav-icon--next: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
|
|
59
|
-
--md-toc-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>');
|
|
60
|
-
--md-clipboard-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1z"/></svg>');
|
|
61
|
-
--md-search-result-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5z"/></svg>');
|
|
62
|
-
--md-source-forks-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg>');
|
|
63
|
-
--md-source-repositories-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 1 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 0 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8zM5 12.25v3.25a.25.25 0 0 0 .4.2l1.45-1.087a.25.25 0 0 1 .3 0L8.6 15.7a.25.25 0 0 0 .4-.2v-3.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25z"/></svg>');
|
|
64
|
-
--md-source-stars-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694v.001z"/></svg>');
|
|
65
|
-
--md-source-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 7.775V2.75a.25.25 0 0 1 .25-.25h5.025a.25.25 0 0 1 .177.073l6.25 6.25a.25.25 0 0 1 0 .354l-5.025 5.025a.25.25 0 0 1-.354 0l-6.25-6.25a.25.25 0 0 1-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.75 1.75 0 0 1 1 7.775zM6 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></svg>');
|
|
66
|
-
--md-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="m310.6 246.6-127.1 128c-7.1 6.3-15.3 9.4-23.5 9.4s-16.38-3.125-22.63-9.375l-127.1-128C.224 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75s3.12 25.75-6.08 34.85z"/></svg>');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host > * {
|
|
70
|
-
/* CODE */
|
|
71
|
-
--md-code-fg-color: ${h.palette.text.primary};
|
|
72
|
-
--md-code-bg-color: ${h.palette.background.paper};
|
|
73
|
-
--md-code-hl-color: ${(0,ge.Fq)(h.palette.warning.main,.5)};
|
|
74
|
-
--md-code-hl-keyword-color: ${h.palette.type==="dark"?h.palette.primary.light:h.palette.primary.dark};
|
|
75
|
-
--md-code-hl-function-color: ${h.palette.type==="dark"?h.palette.secondary.light:h.palette.secondary.dark};
|
|
76
|
-
--md-code-hl-string-color: ${h.palette.type==="dark"?h.palette.success.light:h.palette.success.dark};
|
|
77
|
-
--md-code-hl-number-color: ${h.palette.type==="dark"?h.palette.error.light:h.palette.error.dark};
|
|
78
|
-
--md-code-hl-constant-color: var(--md-code-hl-function-color);
|
|
79
|
-
--md-code-hl-special-color: var(--md-code-hl-function-color);
|
|
80
|
-
--md-code-hl-name-color: var(--md-code-fg-color);
|
|
81
|
-
--md-code-hl-comment-color: var(--md-default-fg-color--light);
|
|
82
|
-
--md-code-hl-generic-color: var(--md-default-fg-color--light);
|
|
83
|
-
--md-code-hl-variable-color: var(--md-default-fg-color--light);
|
|
84
|
-
--md-code-hl-operator-color: var(--md-default-fg-color--light);
|
|
85
|
-
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
|
|
86
|
-
|
|
87
|
-
/* TYPESET */
|
|
88
|
-
--md-typeset-font-size: 1rem;
|
|
89
|
-
--md-typeset-color: var(--md-default-fg-color);
|
|
90
|
-
--md-typeset-a-color: ${h.palette.link};
|
|
91
|
-
--md-typeset-table-color: ${h.palette.text.primary};
|
|
92
|
-
--md-typeset-del-color: ${h.palette.type==="dark"?(0,ge.Fq)(h.palette.error.dark,.5):(0,ge.Fq)(h.palette.error.light,.5)};
|
|
93
|
-
--md-typeset-ins-color: ${h.palette.type==="dark"?(0,ge.Fq)(h.palette.success.dark,.5):(0,ge.Fq)(h.palette.success.light,.5)};
|
|
94
|
-
--md-typeset-mark-color: ${h.palette.type==="dark"?(0,ge.Fq)(h.palette.warning.dark,.5):(0,ge.Fq)(h.palette.warning.light,.5)};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@media screen and (max-width: 76.1875em) {
|
|
98
|
-
:host > * {
|
|
99
|
-
/* TYPESET */
|
|
100
|
-
--md-typeset-font-size: .9rem;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@media screen and (max-width: 600px) {
|
|
105
|
-
:host > * {
|
|
106
|
-
/* TYPESET */
|
|
107
|
-
--md-typeset-font-size: .7rem;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`,fo=({theme:h})=>`
|
|
111
|
-
/*================== Reset ==================*/
|
|
112
|
-
|
|
113
|
-
body {
|
|
114
|
-
--md-text-color: var(--md-default-fg-color);
|
|
115
|
-
--md-text-link-color: var(--md-accent-fg-color);
|
|
116
|
-
--md-text-font-family: ${h.typography.fontFamily};
|
|
117
|
-
font-family: var(--md-text-font-family);
|
|
118
|
-
background-color: unset;
|
|
119
|
-
}
|
|
120
|
-
`;const Ge="224px";var po=({theme:h,sidebar:O})=>`
|
|
121
|
-
/*================== Layout ==================*/
|
|
122
|
-
|
|
123
|
-
/* mkdocs material v9 compat */
|
|
124
|
-
.md-nav__title {
|
|
125
|
-
color: var(--md-default-fg-color);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.md-grid {
|
|
129
|
-
max-width: 100%;
|
|
130
|
-
margin: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.md-nav {
|
|
134
|
-
font-size: calc(var(--md-typeset-font-size) * 0.9);
|
|
135
|
-
}
|
|
136
|
-
.md-nav__link {
|
|
137
|
-
display: flex;
|
|
138
|
-
align-items: center;
|
|
139
|
-
justify-content: space-between;
|
|
140
|
-
}
|
|
141
|
-
.md-nav__icon {
|
|
142
|
-
height: 20px !important;
|
|
143
|
-
width: 20px !important;
|
|
144
|
-
margin-left:${h.spacing(1)}px;
|
|
145
|
-
}
|
|
146
|
-
.md-nav__icon svg {
|
|
147
|
-
margin: 0;
|
|
148
|
-
width: 20px !important;
|
|
149
|
-
height: 20px !important;
|
|
150
|
-
}
|
|
151
|
-
.md-nav__icon:after {
|
|
152
|
-
width: 20px !important;
|
|
153
|
-
height: 20px !important;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.md-nav__item--active > .md-nav__link, a.md-nav__link--active {
|
|
157
|
-
text-decoration: underline;
|
|
158
|
-
color: var(--md-typeset-a-color);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.md-main__inner {
|
|
162
|
-
margin-top: 0;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.md-sidebar {
|
|
166
|
-
bottom: 75px;
|
|
167
|
-
position: fixed;
|
|
168
|
-
width: 16rem;
|
|
169
|
-
overflow-y: auto;
|
|
170
|
-
overflow-x: hidden;
|
|
171
|
-
scrollbar-color: rgb(193, 193, 193) #eee;
|
|
172
|
-
scrollbar-width: thin;
|
|
173
|
-
}
|
|
174
|
-
.md-sidebar .md-sidebar__scrollwrap {
|
|
175
|
-
width: calc(12.1rem);
|
|
176
|
-
}
|
|
177
|
-
.md-sidebar--secondary {
|
|
178
|
-
right: ${h.spacing(3)}px;
|
|
179
|
-
}
|
|
180
|
-
.md-sidebar::-webkit-scrollbar {
|
|
181
|
-
width: 5px;
|
|
182
|
-
}
|
|
183
|
-
.md-sidebar::-webkit-scrollbar-button {
|
|
184
|
-
width: 5px;
|
|
185
|
-
height: 5px;
|
|
186
|
-
}
|
|
187
|
-
.md-sidebar::-webkit-scrollbar-track {
|
|
188
|
-
background: #eee;
|
|
189
|
-
border: 1 px solid rgb(250, 250, 250);
|
|
190
|
-
box-shadow: 0px 0px 3px #dfdfdf inset;
|
|
191
|
-
border-radius: 3px;
|
|
192
|
-
}
|
|
193
|
-
.md-sidebar::-webkit-scrollbar-thumb {
|
|
194
|
-
width: 5px;
|
|
195
|
-
background: rgb(193, 193, 193);
|
|
196
|
-
border: transparent;
|
|
197
|
-
border-radius: 3px;
|
|
198
|
-
}
|
|
199
|
-
.md-sidebar::-webkit-scrollbar-thumb:hover {
|
|
200
|
-
background: rgb(125, 125, 125);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.md-content {
|
|
204
|
-
max-width: calc(100% - 16rem * 2);
|
|
205
|
-
margin-left: 16rem;
|
|
206
|
-
margin-bottom: 50px;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.md-footer {
|
|
210
|
-
position: fixed;
|
|
211
|
-
bottom: 0px;
|
|
212
|
-
pointer-events: none;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.md-footer-nav__link, .md-footer__link {
|
|
216
|
-
pointer-events: all;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.md-footer__title {
|
|
220
|
-
background-color: unset;
|
|
221
|
-
}
|
|
222
|
-
.md-footer-nav__link, .md-footer__link {
|
|
223
|
-
width: 16rem;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.md-dialog {
|
|
227
|
-
background-color: unset;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
@media screen and (min-width: 76.25em) {
|
|
231
|
-
.md-sidebar {
|
|
232
|
-
height: auto;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@media screen and (max-width: 76.1875em) {
|
|
237
|
-
.md-nav {
|
|
238
|
-
transition: none !important;
|
|
239
|
-
background-color: var(--md-default-bg-color)
|
|
240
|
-
}
|
|
241
|
-
.md-nav--primary .md-nav__title {
|
|
242
|
-
cursor: auto;
|
|
243
|
-
color: var(--md-default-fg-color);
|
|
244
|
-
font-weight: 700;
|
|
245
|
-
white-space: normal;
|
|
246
|
-
line-height: 1rem;
|
|
247
|
-
height: auto;
|
|
248
|
-
display: flex;
|
|
249
|
-
flex-flow: column;
|
|
250
|
-
row-gap: 1.6rem;
|
|
251
|
-
padding: 1.2rem .8rem .8rem;
|
|
252
|
-
background-color: var(--md-default-bg-color);
|
|
253
|
-
}
|
|
254
|
-
.md-nav--primary .md-nav__title~.md-nav__list {
|
|
255
|
-
box-shadow: none;
|
|
256
|
-
}
|
|
257
|
-
.md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
|
|
258
|
-
border-top: none;
|
|
259
|
-
}
|
|
260
|
-
.md-nav--primary .md-nav__title .md-nav__button {
|
|
261
|
-
display: none;
|
|
262
|
-
}
|
|
263
|
-
.md-nav--primary .md-nav__title .md-nav__icon {
|
|
264
|
-
color: var(--md-default-fg-color);
|
|
265
|
-
position: static;
|
|
266
|
-
height: auto;
|
|
267
|
-
margin: 0 0 0 -0.2rem;
|
|
268
|
-
}
|
|
269
|
-
.md-nav--primary > .md-nav__title [for="none"] {
|
|
270
|
-
padding-top: 0;
|
|
271
|
-
}
|
|
272
|
-
.md-nav--primary .md-nav__item {
|
|
273
|
-
border-top: none;
|
|
274
|
-
}
|
|
275
|
-
.md-nav--primary :is(.md-nav__title,.md-nav__item) {
|
|
276
|
-
font-size : var(--md-typeset-font-size);
|
|
277
|
-
}
|
|
278
|
-
.md-nav .md-source {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.md-sidebar {
|
|
283
|
-
height: 100%;
|
|
284
|
-
}
|
|
285
|
-
.md-sidebar--primary {
|
|
286
|
-
width: 12.1rem !important;
|
|
287
|
-
z-index: 200;
|
|
288
|
-
left: ${O.isPinned?`calc(-12.1rem + ${Ge})`:"calc(-12.1rem + 72px)"} !important;
|
|
289
|
-
}
|
|
290
|
-
.md-sidebar--secondary:not([hidden]) {
|
|
291
|
-
display: none;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.md-content {
|
|
295
|
-
max-width: 100%;
|
|
296
|
-
margin-left: 0;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.md-header__button {
|
|
300
|
-
margin: 0.4rem 0;
|
|
301
|
-
margin-left: 0.4rem;
|
|
302
|
-
padding: 0;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.md-overlay {
|
|
306
|
-
left: 0;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.md-footer {
|
|
310
|
-
position: static;
|
|
311
|
-
padding-left: 0;
|
|
312
|
-
}
|
|
313
|
-
.md-footer-nav__link {
|
|
314
|
-
/* footer links begin to overlap at small sizes without setting width */
|
|
315
|
-
width: 50%;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
@media screen and (max-width: 600px) {
|
|
320
|
-
.md-sidebar--primary {
|
|
321
|
-
left: -12.1rem !important;
|
|
322
|
-
width: 12.1rem;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
@media print {
|
|
328
|
-
.md-sidebar,
|
|
329
|
-
#toggle-sidebar {
|
|
330
|
-
display: none;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.md-content {
|
|
334
|
-
margin: 0;
|
|
335
|
-
width: 100%;
|
|
336
|
-
max-width: 100%;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
`;const Bn=["h1","h2","h3","h4","h5","h6"];var go=({theme:h})=>`
|
|
340
|
-
/*================== Typeset ==================*/
|
|
341
|
-
|
|
342
|
-
.md-typeset {
|
|
343
|
-
font-size: var(--md-typeset-font-size);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
${Bn.reduce((O,D)=>{var k;const q=(k=h.typography.htmlFontSize)!==null&&k!==void 0?k:16,nt=h.typography[D],{lineHeight:at,fontFamily:Ot,fontWeight:Tt,fontSize:$t}=nt,Yt=Ft=>{let wt=1;return typeof Ft=="number"&&(wt=Ft/q*.6),typeof Ft=="string"&&(wt=Ft.replace("rem","")),`calc(${wt} * var(--md-typeset-font-size))`};return O.concat(`
|
|
347
|
-
.md-typeset ${D} {
|
|
348
|
-
color: var(--md-default-fg-color);
|
|
349
|
-
line-height: ${at};
|
|
350
|
-
font-family: ${Ot};
|
|
351
|
-
font-weight: ${Tt};
|
|
352
|
-
font-size: ${Yt($t)};
|
|
353
|
-
}
|
|
354
|
-
`)},"")}
|
|
355
|
-
|
|
356
|
-
.md-typeset .md-content__button {
|
|
357
|
-
color: var(--md-default-fg-color);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.md-typeset hr {
|
|
361
|
-
border-bottom: 0.05rem dotted ${h.palette.divider};
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.md-typeset details {
|
|
365
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
366
|
-
}
|
|
367
|
-
.md-typeset details summary {
|
|
368
|
-
padding-left: 2.5rem !important;
|
|
369
|
-
}
|
|
370
|
-
.md-typeset details summary:before,
|
|
371
|
-
.md-typeset details summary:after {
|
|
372
|
-
top: 50% !important;
|
|
373
|
-
width: 20px !important;
|
|
374
|
-
height: 20px !important;
|
|
375
|
-
transform: rotate(0deg) translateY(-50%) !important;
|
|
376
|
-
}
|
|
377
|
-
.md-typeset details[open] > summary:after {
|
|
378
|
-
transform: rotate(90deg) translateX(-50%) !important;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.md-typeset blockquote {
|
|
382
|
-
color: var(--md-default-fg-color--light);
|
|
383
|
-
border-left: 0.2rem solid var(--md-default-fg-color--light);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.md-typeset table:not([class]) {
|
|
387
|
-
font-size: var(--md-typeset-font-size);
|
|
388
|
-
border: 1px solid var(--md-default-fg-color);
|
|
389
|
-
border-bottom: none;
|
|
390
|
-
border-collapse: collapse;
|
|
391
|
-
}
|
|
392
|
-
.md-typeset table:not([class]) th {
|
|
393
|
-
font-weight: bold;
|
|
394
|
-
}
|
|
395
|
-
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
|
|
396
|
-
border-bottom: 1px solid var(--md-default-fg-color);
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb {
|
|
400
|
-
background-color: hsla(0, 0%, 0%, 0.32);
|
|
401
|
-
}
|
|
402
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb:hover {
|
|
403
|
-
background-color: hsla(0, 0%, 0%, 0.87);
|
|
404
|
-
}
|
|
405
|
-
`,Vt=()=>`
|
|
406
|
-
/*================== Animations ==================*/
|
|
407
|
-
/*
|
|
408
|
-
Disable CSS animations on link colors as they lead to issues in dark mode.
|
|
409
|
-
The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
|
|
410
|
-
*/
|
|
411
|
-
.md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
|
|
412
|
-
transition: none;
|
|
413
|
-
}
|
|
414
|
-
`,Be=({theme:h})=>`
|
|
415
|
-
/*================== Extensions ==================*/
|
|
416
|
-
|
|
417
|
-
/* HIGHLIGHT */
|
|
418
|
-
.highlight .md-clipboard:after {
|
|
419
|
-
content: unset;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.highlight .nx {
|
|
423
|
-
color: ${h.palette.type==="dark"?"#ff53a3":"#ec407a"};
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/* CODE HILITE */
|
|
427
|
-
.codehilite .gd {
|
|
428
|
-
background-color: ${h.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.codehilite .gi {
|
|
432
|
-
background-color: ${h.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/* TABBED */
|
|
436
|
-
.tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
|
|
437
|
-
.tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
|
|
438
|
-
.tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
|
|
439
|
-
.tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
|
|
440
|
-
.tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
|
|
441
|
-
.tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
|
|
442
|
-
.tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
|
|
443
|
-
.tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
|
|
444
|
-
.tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
|
|
445
|
-
.tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
|
|
446
|
-
.tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
|
|
447
|
-
.tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
|
|
448
|
-
.tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
|
|
449
|
-
.tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
|
|
450
|
-
.tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
|
|
451
|
-
.tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
|
|
452
|
-
.tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
|
|
453
|
-
.tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
|
|
454
|
-
.tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
|
|
455
|
-
.tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
|
|
456
|
-
color: var(--md-accent-fg-color);
|
|
457
|
-
border-color: var(--md-accent-fg-color);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/* TASK-LIST */
|
|
461
|
-
.task-list-control .task-list-indicator::before {
|
|
462
|
-
background-color: ${h.palette.action.disabledBackground};
|
|
463
|
-
}
|
|
464
|
-
.task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
465
|
-
background-color: ${h.palette.success.main};
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/* ADMONITION */
|
|
469
|
-
.admonition {
|
|
470
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
471
|
-
}
|
|
472
|
-
.admonition .admonition-title {
|
|
473
|
-
padding-left: 2.5rem !important;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.admonition .admonition-title:before {
|
|
477
|
-
top: 50% !important;
|
|
478
|
-
width: 20px !important;
|
|
479
|
-
height: 20px !important;
|
|
480
|
-
transform: translateY(-50%) !important;
|
|
481
|
-
}
|
|
482
|
-
`;const rn=[Te,fo,po,go,Vt,Be],vo=()=>(0,jn.Pf)(),mo=()=>{const h=vo(),O=(0,Gt.Z)();return(0,i.useMemo)(()=>{const D={theme:O,sidebar:h};return rn.reduce((k,q)=>k+q(D),"")},[O,h])},yo=()=>{const h=mo();return(0,i.useCallback)(O=>(O.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),O),[h])},Un=async(h,O)=>{let D;if(typeof h=="string")D=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)D=h;else throw new Error("dom is not a recognized type");for(const k of O)D=await k(D);return D},vn=(h,O,D)=>{const k=h==="src"&&O.endsWith(".svg"),q=!O.match(/^([a-z]*:)?\/\//i),nt=O.startsWith(D);return k&&(q||nt)},Eo=({techdocsStorageApi:h,entityId:O,path:D})=>async k=>{const q=await h.getApiOrigin(),nt=async(at,Ot)=>{for(const Tt of at)if(Tt.hasAttribute(Ot)){const $t=Tt.getAttribute(Ot);if(!$t)return;const Yt=await h.getBaseUrl($t,O,D);if(vn(Ot,$t,q))try{const wt=await(await fetch(Yt,{credentials:"include"})).text();Tt.setAttribute(Ot,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(wt)))}`)}catch{Tt.setAttribute("alt",`Error: ${$t}`)}else Tt.setAttribute(Ot,Yt)}};return await Promise.all([nt(k.querySelectorAll("img"),"src"),nt(k.querySelectorAll("script"),"src"),nt(k.querySelectorAll("source"),"src"),nt(k.querySelectorAll("link"),"href"),nt(k.querySelectorAll("a[download]"),"href")]),k},$n=()=>h=>(((D,k)=>{Array.from(D).filter(q=>q.hasAttribute(k)).forEach(q=>{const nt=q.getAttribute(k);if(nt){nt.match(/^https?:\/\//i)&&q.setAttribute("target","_blank");try{const at=xo(window.location.href);q.setAttribute(k,new URL(nt,at).toString())}catch{q.replaceWith(q.textContent||nt)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function xo(h){const O=new URL(h);return!O.pathname.endsWith("/")&&!O.pathname.endsWith(".html")&&(O.pathname+="/"),O.toString()}var Co=t(44882);let Fn;Fn=Promise.resolve().then(t.t.bind(t,17029,19));function mn(h,O){Fn.then(D=>{"createRoot"in D?D.createRoot(O).render(h):D.render(h,O)})}const Ao=()=>h=>{const O=h.querySelector('.md-header label[for="__drawer"]'),D=h.querySelector("article");if(!O||!D)return h;const k=O.cloneNode();return mn(i.createElement(Co.Z),k),k.id="toggle-sidebar",k.title="Toggle Sidebar",k.classList.add("md-content__button"),k.style.setProperty("padding","0 0 0 5px"),k.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),D==null||D.prepend(k),h},So=()=>h=>{var O;return(O=h.querySelector(".md-header"))===null||O===void 0||O.remove(),h},bo=()=>h=>{var O,D;return(O=h.querySelector(".md-footer .md-copyright"))===null||O===void 0||O.remove(),(D=h.querySelector(".md-footer-copyright"))===null||D===void 0||D.remove(),h};var Oo=t(61800),Po=t(67097),Wn=t(82717),Ro=t.n(Wn);const wo=h=>O=>{var D;const k=O.querySelector('[title="Edit this page"]');if(!k||!k.href)return O;const q=new URL(k.href),nt=h.byUrl(q);if((nt==null?void 0:nt.type)!=="github"&&(nt==null?void 0:nt.type)!=="gitlab")return O;const at=((D=O.querySelector("article>h1"))===null||D===void 0?void 0:D.childNodes[0].textContent)||"",Ot=encodeURIComponent(`Documentation Feedback: ${at}`),Tt=encodeURIComponent(`Page source:
|
|
483
|
-
${k.href}
|
|
484
|
-
|
|
485
|
-
Feedback:`),$t=(nt==null?void 0:nt.type)==="github"?(0,Oo.B)(q.href,"blob"):q.href,Yt=Ro()($t),Ft=`/${Yt.organization}/${Yt.name}`,wt=k.cloneNode();switch(nt==null?void 0:nt.type){case"gitlab":wt.href=`${q.origin}${Ft}/issues/new?issue[title]=${Ot}&issue[description]=${Tt}`;break;case"github":wt.href=`${q.origin}${Ft}/issues/new?title=${Ot}&body=${Tt}`;break;default:return O}return mn(i.createElement(Po.Z),wt),wt.style.paddingLeft="5px",wt.title="Leave feedback for this page",wt.id="git-feedback-link",k==null||k.insertAdjacentElement("beforebegin",wt),O},Nn=()=>h=>(setTimeout(()=>{const O=h==null?void 0:h.querySelectorAll("li.md-nav__item--active");O.length!==0&&(O.forEach(k=>{const q=k==null?void 0:k.querySelector("input");q!=null&&q.checked||q==null||q.click()}),O[O.length-1].scrollIntoView())},200),h);var Zn=t(15459),To=t(80030),yn=t(72379),En=t(41547),Io=t(95074);const Do=(0,Zn.Z)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(To.ZP),Lo=()=>(0,o.jsx)(yn.Z,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),Mo=({text:h})=>{const[O,D]=(0,i.useState)(!1),[,k]=(0,Io.Z)(),q=(0,i.useCallback)(()=>{k(h),D(!0)},[h,k]),nt=(0,i.useCallback)(()=>{D(!1)},[D]);return(0,o.jsx)(Do,{title:"Copied to clipboard",placement:"left",open:O,onClose:nt,leaveDelay:1e3,children:(0,o.jsx)(Et.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:q,children:(0,o.jsx)(Lo,{})})})},jo=h=>O=>{const D=O.querySelectorAll("pre > code");for(const q of D){var k;const nt=q.textContent||"",at=document.createElement("div");q==null||(k=q.parentElement)===null||k===void 0||k.prepend(at),mn((0,o.jsx)(En.Z,{theme:h,children:(0,o.jsx)(Mo,{text:nt})}),at)}return O},Bo=({baseUrl:h,onClick:O})=>D=>(Array.from(D.getElementsByTagName("a")).forEach(k=>{k.addEventListener("click",q=>{const at=k.getAttribute("href");at&&at.startsWith(h)&&!k.hasAttribute("download")&&(q.preventDefault(),O(q,at))})}),D),kn=({onLoading:h,onLoaded:O})=>D=>(h(),D.addEventListener(A,function k(){O(),D.removeEventListener(A,k)}),D);function Uo(h,O){const D=new URL(O),k=`${D.origin}${D.pathname.replace(/\/$/,"")}`,q=h.replace(k,"").replace(/^\/+/,""),nt=new URL(`http://localhost/${q}`);return`${nt.pathname}${nt.search}${nt.hash}`}function $o(){const h=(0,Mt.s0)(),D=(0,z.h_)(lt.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(q=>{let nt=q;if(D)try{nt=Uo(q,D)}catch{}h(nt)},[h,D])}const Fo="screen and (max-width: 76.1875em)",Wo=h=>{const O=$o(),D=(0,Gt.Z)(),k=(0,zt.Z)(Fo),q=Mn(),nt=yo(),at=(0,Y.z)(),Ot=(0,z.h_)(pe.D),Tt=(0,z.h_)(Ut.q),{state:$t,path:Yt,content:Ft}=L(),[wt,re]=(0,i.useState)(null),ve=x(wt),Qt=(0,i.useCallback)(()=>{if(!wt)return;wt.querySelectorAll(".md-sidebar").forEach(kt=>{if(k)kt.style.top="0px";else{var _t;const se=(_t=document)===null||_t===void 0?void 0:_t.querySelector(".techdocs-reader-page");var xe;const Ue=(xe=se==null?void 0:se.getBoundingClientRect().top)!==null&&xe!==void 0?xe:0;var Oe;let de=(Oe=wt.getBoundingClientRect().top)!==null&&Oe!==void 0?Oe:0;const Ve=wt.querySelector(".md-container > .md-tabs");var Me;const an=(Me=Ve==null?void 0:Ve.getBoundingClientRect().height)!==null&&Me!==void 0?Me:0;de<Ue&&(de=Ue),kt.style.top=`${Math.max(de,0)+an}px`}kt.style.setProperty("opacity","1")})},[wt,k]);(0,i.useEffect)(()=>(window.addEventListener("resize",Qt),window.addEventListener("scroll",Qt,!0),()=>{window.removeEventListener("resize",Qt),window.removeEventListener("scroll",Qt,!0)}),[wt,Qt]);const Bt=(0,i.useCallback)(()=>{if(!wt)return;const It=wt.querySelector(".md-footer");It&&(It.style.width=`${wt.getBoundingClientRect().width}px`)},[wt]);(0,i.useEffect)(()=>(window.addEventListener("resize",Bt),()=>{window.removeEventListener("resize",Bt)}),[wt,Bt]),(0,i.useEffect)(()=>{ve||(Bt(),Qt())},[$t,ve,Bt,Qt]);const ee=(0,i.useCallback)((It,kt)=>Un(It,[q,Eo({techdocsStorageApi:Ot,entityId:h,path:kt}),$n(),Ao(),So(),bo(),wo(Tt),nt]),[h,Tt,Ot,q,nt]),me=(0,i.useCallback)(async It=>Un(It,[Nn(),jo(D),Bo({baseUrl:window.location.origin,onClick:(kt,_t)=>{var xe;const Oe=kt.ctrlKey||kt.metaKey,Me=new URL(_t),se=((xe=kt.target)===null||xe===void 0?void 0:xe.innerText)||_t,Ue=_t.replace(window.location.origin,"");if(at.captureEvent("click",se,{attributes:{to:Ue}}),Me.hash)if(Oe)window.open(_t,"_blank");else{var de;O(_t),It==null||(de=It.querySelector(`[id="${Me.hash.slice(1)}"]`))===null||de===void 0||de.scrollIntoView()}else Oe?window.open(_t,"_blank"):O(_t)}}),kn({onLoading:()=>{},onLoaded:()=>{var kt;(kt=It.querySelector(".md-nav__title"))===null||kt===void 0||kt.removeAttribute("for")}}),kn({onLoading:()=>{Array.from(It.querySelectorAll(".md-sidebar")).forEach(_t=>{_t.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[D,O,at]);return(0,i.useEffect)(()=>{if(!Ft)return()=>{};let It=!0;return ee(Ft,Yt).then(async kt=>{if(!(kt!=null&&kt.innerHTML)||!It)return;window.scroll({top:0});const _t=await me(kt);re(_t)}),()=>{It=!1}},[Ft,Yt,ee,me]),wt};var sn=t(8560),Kn=t(2296),Rt=t(57058);const le=()=>{const h=(0,Kn.$L)(),{shadowRoot:O}=(0,m.x)(),D=O==null?void 0:O.querySelector('[data-md-component="content"]'),k=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let q=k==null?void 0:k.querySelector('[data-techdocs-addons-location="primary sidebar"]');q||(q=document.createElement("div"),q.setAttribute("data-techdocs-addons-location","primary sidebar"),k==null||k.prepend(q));const nt=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let at=nt==null?void 0:nt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return at||(at=document.createElement("div"),at.setAttribute("data-techdocs-addons-location","secondary sidebar"),nt==null||nt.prepend(at)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(sn.Z,{container:q,children:h.renderComponentsByLocation(Rt.o.PrimarySidebar)}),(0,o.jsx)(sn.Z,{container:D,children:h.renderComponentsByLocation(Rt.o.Content)}),(0,o.jsx)(sn.Z,{container:at,children:h.renderComponentsByLocation(Rt.o.SecondarySidebar)})]})},ce=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),No=rt(h=>{var O;const{withSearch:D=!0,onReady:k}=h,q=ce(),{entityMetadata:{value:nt,loading:at},entityRef:Ot,setShadowRoot:Tt}=(0,m.x)(),$t=Wo(Ot),Yt=window.location.pathname,Ft=window.location.hash,wt=x($t),[re]=B([`[id="${Ft.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!wt)if(Ft)re&&re.scrollIntoView();else{var Qt,Bt;(Bt=document)===null||Bt===void 0||(Qt=Bt.querySelector("header"))===null||Qt===void 0||Qt.scrollIntoView()}},[Yt,Ft,re,wt]);const ve=(0,i.useCallback)(Qt=>{Tt(Qt),k instanceof Function&&k()},[Tt,k]);return at===!1&&!nt?(0,o.jsx)(T.m,{status:"404",statusMessage:"PAGE NOT FOUND"}):$t?(0,o.jsx)(g.V,{children:(0,o.jsxs)(b.Z,{container:!0,children:[(0,o.jsx)(b.Z,{xs:12,item:!0,children:(0,o.jsx)(St,{})}),D&&(0,o.jsx)(b.Z,{className:q.search,xs:"auto",item:!0,children:(0,o.jsx)(fe,{entityId:Ot,entityTitle:nt==null||(O=nt.metadata)===null||O===void 0?void 0:O.title})}),(0,o.jsx)(b.Z,{xs:12,item:!0,children:(0,o.jsx)(C,{element:$t,onAppend:ve,children:(0,o.jsx)(le,{})})})]})}):(0,o.jsx)(g.V,{children:(0,o.jsx)(b.Z,{container:!0,children:(0,o.jsx)(b.Z,{xs:12,item:!0,children:(0,o.jsx)(St,{})})})})}),ar=null},65386:function(_,P,t){"use strict";t.d(P,{S:function(){return lt}});var o=t(52322),i=t(2784),d=t(18671),b=t(60905),m=t(98069),f=t(60364),l=t(73250),p=t(2296),S=t(68979),A=t(57058),R=t(75435),x=t(84719),C=t(51194),E=t(8709),M=t(79692),B=t(41128),w=t(90436),U=t(98864);const T=(0,M.Z)(ht=>({root:{textAlign:"left"},label:{color:ht.page.fontColor,fontWeight:ht.typography.fontWeightBold,letterSpacing:0,fontSize:ht.typography.fontSize,marginBottom:ht.spacing(1)/2,lineHeight:1},value:{color:(0,B.Fq)(ht.page.fontColor,.8),fontSize:ht.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),g=({value:ht,className:ft,typographyRootComponent:pt})=>(0,o.jsx)(w.Z,{component:pt!=null?pt:typeof ht=="string"?"p":"span",className:ft,children:ht});function K(ht){const{label:ft,value:pt,url:ct,contentTypograpyRootComponent:mt}=ht,Q=T(),$=(0,o.jsx)(g,{className:Q.value,value:pt||"<Unknown>",typographyRootComponent:mt});return(0,o.jsx)(b.Z,{item:!0,children:(0,o.jsxs)(w.Z,{component:"span",className:Q.root,children:[(0,o.jsx)(w.Z,{className:Q.label,children:ft}),ct?(0,o.jsx)(U.rU,{to:ct,children:$}):$]})})}var V=t(48037),X=t(44394),H=t(6542),G=t(37321),z=t(76635),Y=t(95573);const ot=(0,o.jsx)(m.Z,{animation:"wave",variant:"text",height:40}),lt=ht=>{const{palette:{common:{white:ft}}}=(0,f.Z)(),{children:pt}=ht,ct=(0,p.$L)(),mt=(0,X.h_)(H.D),{title:Q,setTitle:$,subtitle:J,setSubtitle:et,entityRef:it,metadata:{value:ut,loading:F},entityMetadata:{value:Z,loading:Et}}=(0,S.x)();(0,i.useEffect)(()=>{ut&&($(ut.site_name),et(()=>{let{site_description:Nt}=ut;return(!Nt||Nt==="None")&&(Nt=""),Nt}))},[ut,$,et]);const At=mt.getOptional("app.title")||"Backstage",dt=[Q,J,At].filter(Boolean).join(" | "),{locationMetadata:Ct,spec:xt}=Z||{},Pt=xt==null?void 0:xt.lifecycle,Dt=Z?(0,R.h)(Z,E.S4):[],Lt=(0,G.t)(Y._Z)(),ie=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(K,{label:(0,z.capitalize)((Z==null?void 0:Z.kind)||"entity"),value:(0,o.jsx)(x.d,{color:"inherit",entityRef:it,title:Z==null?void 0:Z.metadata.title,defaultKind:"Component"})}),Dt.length>0&&(0,o.jsx)(K,{label:"Owner",value:(0,o.jsx)(C.r,{color:"inherit",entityRefs:Dt,defaultKind:"group"})}),Pt?(0,o.jsx)(K,{label:"Lifecycle",value:String(Pt)}):null,Ct&&Ct.type!=="dir"&&Ct.type!=="file"?(0,o.jsx)(K,{label:"",value:(0,o.jsxs)(b.Z,{container:!0,direction:"column",alignItems:"center",style:{color:ft},children:[(0,o.jsx)(b.Z,{style:{padding:0},item:!0,children:(0,o.jsx)(l.Z,{style:{marginTop:"-25px"}})}),(0,o.jsx)(b.Z,{style:{padding:0},item:!0,children:"Source"})]}),url:Ct.target}):null]});return!Et&&Z===void 0||!F&&ut===void 0?null:(0,o.jsxs)(V.h,{type:"Documentation",typeLink:Lt,title:Q||ot,subtitle:J===""?void 0:J||ot,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:dt})}),ie,pt,ct.renderComponentsByLocation(A.o.Header)]})}},95573:function(_,P,t){"use strict";t.d(P,{Fw:function(){return d},_Z:function(){return i},pd:function(){return b}});var o=t(30283);const i=(0,o.N)({id:"techdocs:index-page"}),d=(0,o.N)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),b=(0,o.N)({id:"techdocs:catalog-reader-view"})},55511:function(_,P,t){"use strict";t.r(P),t.d(P,{TechDocsSearchResultListItem:function(){return A}});var o=t(52322),i=t(2784),d=t(79692),b=t(49378),m=t(86136),f=t(90436),l=t(98864),p=t(76079);const S=(0,d.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=R=>{const{result:x,highlight:C,lineClamp:E=5,asListItem:M=!0,asLink:B=!0,title:w,icon:U}=R,T=S(),g=({children:X})=>B?(0,o.jsx)(l.rU,{noTrack:!0,to:x.location,children:X}):(0,o.jsx)(o.Fragment,{children:X}),K=()=>{const X=C!=null&&C.fields.title?(0,o.jsx)(p.F,{text:C.fields.title,preTag:C.preTag,postTag:C.postTag}):x.title,H=C!=null&&C.fields.entityTitle?(0,o.jsx)(p.F,{text:C.fields.entityTitle,preTag:C.preTag,postTag:C.postTag}):x.entityTitle,G=C!=null&&C.fields.name?(0,o.jsx)(p.F,{text:C.fields.name,preTag:C.preTag,postTag:C.postTag}):x.name;return x?(0,o.jsx)(b.Z,{className:T.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(g,{children:w||(0,o.jsxs)(o.Fragment,{children:[X," | ",H!=null?H:G," docs"]})}),secondary:(0,o.jsx)(f.Z,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:E,overflow:"hidden"},color:"textSecondary",variant:"body2",children:C!=null&&C.fields.text?(0,o.jsx)(p.F,{text:C.fields.text,preTag:C.preTag,postTag:C.postTag}):x.text})}):null},V=({children:X})=>M?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(m.Z,{children:typeof U=="function"?U(x):U}),(0,o.jsx)("div",{className:T.flexContainer,children:X})]}):(0,o.jsx)(o.Fragment,{children:X});return(0,o.jsx)(V,{children:(0,o.jsx)(K,{})})}},53260:function(){}},function(_){var P=function(o){return _(_.s=o)};_.O(0,[2370,6202,9284,7012,427,242,5109,6816,1213,5218,4736],function(){return P(99329)});var t=_.O()}]);})();
|
|
486
|
-
|
|
487
|
-
//# sourceMappingURL=main.6ea4af3c.js.map
|