@techdocs/cli 1.8.0-next.0 → 1.8.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- 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/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/5458.1ea3fc06.chunk.js +5 -0
- package/dist/embedded-app/static/5458.1ea3fc06.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6051.b5d6107a.chunk.js → 6051.7b016fe3.chunk.js} +2 -2
- package/dist/embedded-app/static/{6051.b5d6107a.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/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.d48dafd2.chunk.js → 9814.75879d4f.chunk.js} +2 -2
- package/dist/embedded-app/static/9814.75879d4f.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.2d8911ca.js +491 -0
- package/dist/embedded-app/static/main.2d8911ca.js.map +1 -0
- package/dist/embedded-app/static/module-react-router-dom.8011e8db.js +22 -0
- package/dist/embedded-app/static/module-react-router-dom.8011e8db.js.map +1 -0
- package/dist/embedded-app/static/module-react-router.5b9ed471.js +22 -0
- package/dist/embedded-app/static/module-react-router.5b9ed471.js.map +1 -0
- package/dist/embedded-app/static/{runtime.2b22ee03.js → runtime.2d8911ca.js} +2 -2
- package/dist/embedded-app/static/{runtime.2b22ee03.js.map → runtime.2d8911ca.js.map} +1 -1
- package/dist/embedded-app/static/vendor.2d8911ca.js +164 -0
- package/dist/embedded-app/static/vendor.2d8911ca.js.map +1 -0
- package/dist/index.cjs.js +15 -3
- package/dist/index.cjs.js.map +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/1032.8ff1a4ae.chunk.js +0 -5
- package/dist/embedded-app/static/1032.8ff1a4ae.chunk.js.map +0 -1
- package/dist/embedded-app/static/1105.cdd66625.chunk.js +0 -5
- package/dist/embedded-app/static/1105.cdd66625.chunk.js.map +0 -1
- package/dist/embedded-app/static/184.c5591ae8.chunk.js +0 -5
- package/dist/embedded-app/static/184.c5591ae8.chunk.js.map +0 -1
- package/dist/embedded-app/static/2440.f1360e66.chunk.js +0 -5
- package/dist/embedded-app/static/2440.f1360e66.chunk.js.map +0 -1
- package/dist/embedded-app/static/3487.8e09c79a.chunk.js +0 -5
- package/dist/embedded-app/static/3487.8e09c79a.chunk.js.map +0 -1
- package/dist/embedded-app/static/5458.8860bd67.chunk.js +0 -5
- package/dist/embedded-app/static/5458.8860bd67.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/8629.ee337616.chunk.js +0 -7
- package/dist/embedded-app/static/8629.ee337616.chunk.js.map +0 -1
- package/dist/embedded-app/static/9545.d08cf7be.chunk.js +0 -5
- package/dist/embedded-app/static/9545.d08cf7be.chunk.js.map +0 -1
- package/dist/embedded-app/static/9770.733a2bbb.chunk.js +0 -5
- package/dist/embedded-app/static/9770.733a2bbb.chunk.js.map +0 -1
- package/dist/embedded-app/static/9814.d48dafd2.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.2b22ee03.js +0 -487
- package/dist/embedded-app/static/main.2b22ee03.js.map +0 -1
- package/dist/embedded-app/static/module-react-router-dom.48ea1f60.js +0 -22
- package/dist/embedded-app/static/module-react-router-dom.48ea1f60.js.map +0 -1
- package/dist/embedded-app/static/module-react-router.67245b2c.js +0 -22
- package/dist/embedded-app/static/module-react-router.67245b2c.js.map +0 -1
- package/dist/embedded-app/static/vendor.2b22ee03.js +0 -159
- package/dist/embedded-app/static/vendor.2b22ee03.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",h="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(h){let l=h.indexOf(":");const p=h.indexOf("/");p!==-1&&p<l&&(l=-1);const S=l===-1?void 0:h.slice(0,l),A=p===-1?void 0:h.slice(l+1,p),R=h.slice(Math.max(l+1,p+1));if(S===""||A===""||R==="")throw new TypeError(`Entity reference "${h}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:S,namespace:A,name:R}}function d(h){return{kind:h.kind,namespace:h.metadata.namespace||o.zG,name:h.metadata.name}}function b(h,l){if(!h)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 h=="string"){const w=i(h);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 U;A=(U=h.kind)!==null&&U!==void 0?U:p;var B;R=(B=h.namespace)!==null&&B!==void 0?B:S,x=h.name}if(A)if(R){if(!x){const w=JSON.stringify(h);throw new Error(`Entity reference ${w} had missing or empty name`)}}else{const w=JSON.stringify(h);throw new Error(`Entity reference ${w} had missing or empty namespace`)}else{const w=JSON.stringify(h);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(h){let l,p,S;if("metadata"in h){l=h.kind;var A;p=(A=h.metadata.namespace)!==null&&A!==void 0?A:o.zG,S=h.metadata.name}else{l=h.kind;var R;p=(R=h.namespace)!==null&&R!==void 0?R:o.zG,S=h.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",h="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 h},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 h(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),h=t(26639),l=t(39595),p=t(58033);function S(A){const{text:R,language:x,showLineNumbers:C=!1,highlightedNumbers:E,customStyle:U,showCopyCodeButton:B=!1}=A,w=(0,d.Z)(),$=w.palette.type==="dark"?h.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:U,language:x,style:$,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),h=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,U=(0,i.h_)(d.V),[B,w]=(0,l.useState)(!1),[{error:$},T]=(0,p.Z)();(0,l.useEffect)(()=>{$&&U.post($)},[$,U]);const g=Z=>{Z.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)(h.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),h=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 U=A();switch(E){case"field":return(0,o.jsx)("img",{src:h,className:U.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:l,alt:"no Information",className:U.generalImg});case"content":return(0,o.jsx)("img",{src:p,alt:"create Component",className:U.generalImg});case"data":return(0,o.jsx)("img",{src:S,alt:"no Build",className:U.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:U,description:B,missing:w,action:$}=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:U})}),(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:$})]})}),(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),h=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:U})=>{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})]}),U]})};function R(x){const{title:C,error:E,defaultExpanded:U,titleFormat:B,children:w}=x;return(0,o.jsx)(p.G,{severity:"error",title:C!=null?C:E.message,defaultExpanded:U,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 V}});var o=t(52322),i=t(44394),d=t(6542),b=t(62369),m=t(86689),h=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 U(){const[K]=(0,C.is)((0,o.jsx)(C.AW,{index:!0,element:(0,o.jsx)("div",{})}));return!K.index}const B=(0,h.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=K=>/^([a-z+.-]+):/.test(K),$=/^[\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 K=function(...z){const nt=String(z[0]);if($.test(nt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return T.apply(this,z)};K.__backstage=!0,window.open=K}const g=()=>{try{return(0,i.h_)(d.D).getOptionalString("app.baseUrl")}catch{return}},Z=()=>{const K="http://sample.dev";var k;const z=(k=g())!==null&&k!==void 0?k:"/",{pathname:nt}=new URL(z,K);return(0,A.trimEnd)(nt,"/")},H=K=>{let k=String(K);const z=Z(),nt=w(k),lt=k.startsWith(z);return!nt&&!lt&&(k=z.concat(k)),k},J=K=>{if(K instanceof Array)return K.map(J).join(" ").trim();if(typeof K=="object"&&K){var k;return J(K==null||(k=K.props)===null||k===void 0?void 0:k.children)}return["string","number"].includes(typeof K)?String(K):""},V=x.forwardRef(({onClick:K,noTrack:k,...z},nt)=>{const lt=B(),gt=(0,b.z)(),Et=U()?H(z.to):z.to,Rt=J(z.children)||Et,ut=w(Et),Ct=ut&&!!/^https?:/.exec(Et);if($.test(Et))throw new Error("Link component rejected javascript: URL as a security precaution");const X=L=>{K==null||K(L),k||gt.captureEvent("click",Rt,{attributes:{to:Et}})};return ut?(0,o.jsxs)(m.Z,{...Ct?{target:"_blank",rel:"noopener"}:{},...z,...z["aria-label"]?{"aria-label":`${z["aria-label"]}, Opens in a new window`}:{},ref:nt,href:Et,onClick:X,className:S()(lt.externalLink,z.className),children:[z.children,(0,o.jsx)(l.Z,{component:"span",className:lt.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(m.Z,{...z,ref:nt,component:E.rU,to:Et,onClick:X})})},15929:function(_,P,t){"use strict";t.d(P,{Q:function(){return h}});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"})),h=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),h=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,...U})=>{const B=String(E).replace(/\n+$/,""),w=/language-(\w+)/.exec(C||"");return!x&&w?(0,o.jsx)(h.O,{language:w[1],text:B}):(0,o.jsx)("code",{className:C,...U,children:E})},h1:S,h2:S,h3:S,h4:S,h5:S,h6:S};function R(x){const{content:C,dialect:E="gfm",linkTarget:U,transformLinkUri:B,transformImageUri:w,className:$}=x,T=l();return(0,o.jsx)(d.D,{remarkPlugins:E==="gfm"?[b.Z]:[],className:`${T.markdown} ${$}`,children:C,components:A,linkTarget:U,transformLinkUri:B,transformImageUri:w})}},55015:function(_,P,t){"use strict";t.d(P,{E:function(){return h}});var o=t(52322),i=t(62774),d=t(67358),b=t(60364),m=t(2784);function h(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 V}});var o=t(52322),i=t(62774),d=t(21324),b=t(7089),m=t(30192),h=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),U=t(72379);const B=(0,x.Z)(K=>(0,R.Z)({icon:{position:"absolute",right:K.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var $=()=>{const K=B();return(0,o.jsx)(U.Z,{className:K.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)(K=>(0,R.Z)({icon:{position:"absolute",right:K.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var Z=()=>{const K=T();return(0,o.jsx)(U.Z,{className:K.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 H=(0,A.Z)(K=>(0,R.Z)({root:{"label + &":{marginTop:K.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:K.palette.primary.main}},input:{borderRadius:K.shape.borderRadius,position:"relative",backgroundColor:K.palette.background.paper,border:"1px solid #ced4da",fontSize:K.typography.body1.fontSize,padding:K.spacing(1.25,3.25,1.25,1.5),transition:K.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:K.palette.background.paper,borderRadius:K.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(h.Z),J=(0,x.Z)(K=>(0,R.Z)({formControl:{margin:K.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:K.typography.body2.fontSize,fontFamily:K.typography.fontFamily,color:K.palette.text.primary,"&.Mui-focused":{color:K.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:K.typography.body2.fontSize,fontFamily:K.typography.fontFamily,color:K.palette.text.primary,"&.Mui-focused":{color:K.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function V(K){const{multiple:k,items:z,label:nt,placeholder:lt,selected:gt,onChange:Et,triggerReset:Rt,native:ut=!1,disabled:Ct=!1,margin:X}=K,L=J(),[G,q]=(0,E.useState)(gt||(k?[]:"")),[st,it]=(0,E.useState)(!1);(0,E.useEffect)(()=>{q(k?[]:"")},[Rt,k]),(0,E.useEffect)(()=>{q(gt||(k?[]:""))},[gt,k]);const ct=Y=>{q(Y.target.value),Et(Y.target.value)},ot=Y=>{if(Ct){Y.preventDefault();return}it(ht=>k&&!(Y.target instanceof HTMLElement)?!0:!ht)},St=()=>{it(!1)},Q=Y=>()=>{const ht=G.filter(ft=>ft!==Y);q(ht),Et(ht)};return(0,o.jsx)(i.Z,{className:L.root,children:(0,o.jsxs)(m.Z,{className:L.formControl,children:[(0,o.jsx)(l.Z,{className:L.formLabel,children:nt}),(0,o.jsxs)(S.Z,{"aria-label":nt,value:G,native:ut,disabled:Ct,"data-testid":"select",displayEmpty:!0,multiple:k,margin:X,onChange:ct,open:st,onOpen:ot,onClose:St,input:(0,o.jsx)(H,{}),label:nt,renderValue:Y=>{var ht;return k&&G.length!==0?(0,o.jsx)(i.Z,{className:L.chips,children:Y.map(ft=>{const yt=z.find(bt=>bt.value===ft);return yt?(0,o.jsx)(b.Z,{label:yt==null?void 0:yt.label,clickable:!0,onDelete:Q(ft),className:L.chip},yt==null?void 0:yt.value):!1})}):(0,o.jsx)(C.Z,{children:G.length===0?lt||"":(ht=z.find(ft=>ft.value===Y))===null||ht===void 0?void 0:ht.label})},IconComponent:()=>st?(0,o.jsx)(Z,{}):(0,o.jsx)($,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[lt&&!k&&(0,o.jsx)(p.Z,{value:[],children:lt}),ut?z&&z.map(Y=>(0,o.jsx)("option",{value:Y.value,children:Y.label},Y.value)):z&&z.map(Y=>(0,o.jsxs)(p.Z,{value:Y.value,children:[k&&(0,o.jsx)(d.Z,{color:"primary",checked:G.includes(Y.value)||!1,className:L.checkbox}),Y.label]},Y.value))]})]})})}},13788:function(_,P,t){"use strict";t.d(P,{q:function(){return X}});var o=t(52322),i=t(80851),d=t(62774),b=t(77277),m=t(49429),h=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),U=t(2784),B=t(77770),w=t(80079);function $(L,G){const st=(0,i.q)().getSystemIcon(L);return st?(0,o.jsx)(st,{...G}):(0,o.jsx)(w.Z,{...G})}function T(L){return $("brokenImage",L)}function g(L){return $("catalog",L)}function Z(L){return $("chat",L)}function H(L){return $("dashboard",L)}function J(L){return $("docs",L)}function V(L){return $("email",L)}function K(L){return $("github",L)}function k(L){return $("group",L)}function z(L){return $("help",L)}function nt(L){return $("user",L)}function lt(L){return $("warning",L)}var gt=t(98864);const Et=(0,x.Z)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),Rt=({icon:L})=>{const G=(0,i.q)();var q;const st=L&&(q=G.getSystemIcon(L))!==null&&q!==void 0?q:z;return(0,o.jsx)(st,{})},ut=({link:L})=>{var G;return(0,o.jsx)(gt.rU,{to:L.url,children:(G=L.title)!==null&&G!==void 0?G:L.url})},Ct=({item:L})=>{var G;return(0,o.jsxs)(S.Z,{children:[(0,o.jsx)(l.Z,{children:(0,o.jsx)(Rt,{icon:L.icon})}),(0,o.jsx)(p.Z,{primary:L.title,secondary:(G=L.links)===null||G===void 0?void 0:G.reduce((q,st,it)=>[...q,it>0&&(0,o.jsx)("br",{},it),(0,o.jsx)(ut,{link:st},st.url)],[])})]})};function X(L){const{title:G,items:q,children:st}=L,{items:it}=(0,B.v)(),[ct,ot]=(0,U.useState)(!1),[St,Q]=(0,U.useState)(null),Y=Et(),ht=(0,E.Z)(bt=>bt.breakpoints.down("sm")),ft=bt=>{Q(bt.currentTarget),ot(!0)},yt=()=>{ot(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{display:"flex",ml:1,children:ht?(0,o.jsx)(h.Z,{color:"primary",size:"small",onClick:ft,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(z,{})}):(0,o.jsx)(b.Z,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:ft,startIcon:(0,o.jsx)(z,{}),children:"Support"})}),(0,o.jsxs)(R.ZP,{"data-testid":"support-button-popover",open:ct,anchorEl:St,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:yt,children:[(0,o.jsxs)(A.Z,{className:Y.popoverList,autoFocusItem:Boolean(St),children:[G&&(0,o.jsx)(S.Z,{alignItems:"flex-start",className:Y.menuItem,children:(0,o.jsx)(C.Z,{variant:"subtitle1",children:G})}),U.Children.map(st,(bt,Mt)=>(0,o.jsx)(S.Z,{alignItems:"flex-start",className:Y.menuItem,children:bt},`child-${Mt}`)),(q!=null?q:it).map((bt,Mt)=>(0,o.jsx)(Ct,{item:bt},`item-${Mt}`))]}),(0,o.jsx)(m.Z,{children:(0,o.jsx)(b.Z,{color:"primary",onClick:yt,"aria-label":"Close",children:"Close"})})]})]})}},34378:function(_,P,t){"use strict";t.d(P,{i:function(){return ct}});var o=t(52322),i=t(67222),d=t(62774),b=t(61837),m=t(15459),h=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),U=t(44233),B=t(27604),w=t(36444),$=t(37971),T=t(59709),g=t(17373),Z=t(3702),H=t(93111),J=t(76635),V=t(2784),K=t(77277),k=t(35879);const z=(0,h.Z)(Q=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:Q.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:Q.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${Q.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:Q.spacing(2)}}}),{name:"BackstageTableFilters"}),nt=Q=>{var Y;const ht=z(),{onChangeFilters:ft}=Q,[yt,bt]=(0,V.useState)({...Q.selectedFilters}),[Mt,Jt]=(0,V.useState)(!1),Nt=()=>{bt({}),Jt(zt=>!zt)};return(0,V.useEffect)(()=>{ft(yt)},[yt,ft]),(0,o.jsxs)(d.Z,{className:ht.root,children:[(0,o.jsxs)(d.Z,{className:ht.header,children:[(0,o.jsx)(d.Z,{className:ht.value,children:"Filters"}),(0,o.jsx)(K.Z,{color:"primary",onClick:Nt,children:"Clear all"})]}),(0,o.jsx)(d.Z,{className:ht.filters,children:((Y=Q.filters)===null||Y===void 0?void 0:Y.length)&&Q.filters.map(zt=>(0,o.jsx)(k.H,{triggerReset:Mt,...zt.element,selected:yt[zt.element.label],onChange:Dt=>bt({...yt,[zt.element.label]:Dt})},zt.element.label))})]})};var lt=t(4614);function gt(Q){return(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Q.colSpan,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"})})})})})}const Et={Add:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(S.Z,{...Q,ref:Y})),Check:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(R.Z,{...Q,ref:Y})),Clear:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(E.Z,{...Q,ref:Y})),Delete:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(U.Z,{...Q,ref:Y})),DetailPanel:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(C.Z,{...Q,ref:Y})),Edit:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(B.Z,{...Q,ref:Y})),Export:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(Z.Z,{...Q,ref:Y})),Filter:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(w.Z,{...Q,ref:Y})),FirstPage:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)($.Z,{...Q,ref:Y})),LastPage:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(T.Z,{...Q,ref:Y})),NextPage:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(C.Z,{...Q,ref:Y})),PreviousPage:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(x.Z,{...Q,ref:Y})),ResetSearch:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(E.Z,{...Q,ref:Y})),Search:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(w.Z,{...Q,ref:Y})),SortArrow:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(A.Z,{...Q,ref:Y})),ThirdStateCheck:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(g.Z,{...Q,ref:Y})),ViewColumn:(0,V.forwardRef)((Q,Y)=>(0,o.jsx)(H.Z,{...Q,ref:Y}))};function Rt(Q,Y){const ht=Y.split(".");let ft=Q[ht[0]];for(let yt=1;yt<ht.length;++yt){if(ft===void 0)return ft;const bt=ht[yt];ft=ft[bt]}return ft}const ut=(0,m.Z)(Q=>({header:{padding:Q.spacing(1,2,1,2.5),borderTop:`1px solid ${Q.palette.grey.A100}`,borderBottom:`1px solid ${Q.palette.grey.A100}`,fontWeight:Q.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.W$),Ct=(0,m.Z)(Q=>({root:{padding:Q.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:Q.typography.fontWeightBold}},searchField:{paddingRight:Q.spacing(2)}}),{name:"BackstageTableToolbar"})(i.UW),X=(0,h.Z)(Q=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:Q.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),L=(0,h.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function G(Q,Y){return Q.map(ht=>{var ft;const yt=(ft=ht.headerStyle)!==null&&ft!==void 0?ft:{};let bt=ht.cellStyle||{};if(ht.highlight)if(yt.color=Y.palette.textContrast,typeof bt=="object")bt.fontWeight=Y.typography.fontWeightBold;else{const Mt=bt;bt=(Jt,Nt,zt)=>({...Mt(Jt,Nt,zt),fontWeight:Y.typography.fontWeightBold})}return{...ht,headerStyle:yt,cellStyle:bt}})}function q(Q,Y){return(0,J.transform)(Q,(ht,ft,yt)=>{(0,J.isEqual)(ft,Y[yt])||(ht[yt]=ft)})}const st={search:"",filtersOpen:!1,filters:{}};function it(Q){const{toolbarRef:Y,setSearch:ht,hasFilters:ft,selectedFiltersLength:yt,toggleFilters:bt}=Q,Mt=X(),Jt=(0,V.useCallback)(Nt=>{Q.onSearchChanged(Nt),ht(Nt)},[Q,ht]);return ft?(0,o.jsxs)(d.Z,{className:Mt.root,children:[(0,o.jsxs)(d.Z,{className:Mt.root,children:[(0,o.jsx)(b.Z,{onClick:bt,"aria-label":"filter list",children:(0,o.jsx)(w.Z,{})}),(0,o.jsxs)(p.Z,{className:Mt.title,children:["Filters (",yt,")"]})]}),(0,o.jsx)(Ct,{...Q,ref:Y,onSearchChanged:Jt})]}):(0,o.jsx)(Ct,{...Q,ref:Y,onSearchChanged:Jt})}function ct(Q){const{data:Y,columns:ht,emptyContent:ft,options:yt,title:bt,subtitle:Mt,localization:Jt,filters:Nt,initialState:zt,onStateChange:Dt,components:jt,isLoading:Gt,...ee}=Q,re=L(),qt=(0,l.Z)(),de={...st,...zt},[we,ze]=(0,V.useState)(de.filtersOpen),Je=(0,V.useCallback)(()=>ze(Se=>!Se),[ze]),[xe,Xe]=(0,V.useState)(de.filters),[He,Ge]=(0,V.useState)(de.search);(0,V.useEffect)(()=>{if(Dt){const Se=q({search:He,filtersOpen:we,filters:xe},st);Dt(Se)}},[He,we,xe,Dt]);const se=(0,V.useCallback)(Se=>{var je;return(je=ht.find(Be=>Be.title===Se))===null||je===void 0?void 0:je.field},[ht]),on=(0,V.useMemo)(()=>{if(typeof Y=="function"||!xe)return Y;const Se=Object.values(xe);return Y&&Se.flat().length?Y.filter(Be=>!!Object.entries(xe).filter(([,j])=>!!j.length).every(([j,u])=>{const D=Rt(Be,se(j));return Array.isArray(D)&&Array.isArray(u)?D.some(N=>u.includes(N)):Array.isArray(D)?D.includes(u):Array.isArray(u)?u.includes(D):D===u})):Y},[Y,xe,se]),Oe=Object.values(xe).flat().length,_e=!!(Nt!=null&&Nt.length),rn=(0,V.useCallback)(Se=>(0,o.jsx)(it,{setSearch:Ge,hasFilters:_e,selectedFiltersLength:Oe,toggleFilters:Je,...Se}),[Je,_e,Oe,Ge]),ie=typeof Y!="function"&&Y.length===0,$e=ht.length,Ne=(0,V.useMemo)(()=>ot({hasNoRows:ie,emptyContent:ft,columnCount:$e,loading:Gt}),[ie,ft,$e,Gt]);return(0,o.jsxs)(d.Z,{className:re.root,children:[we&&Y&&typeof Y!="function"&&(Nt==null?void 0:Nt.length)&&(0,o.jsx)(nt,{filters:St(Nt,Y,ht),selectedFilters:xe,onChangeFilters:Xe}),(0,o.jsx)(i.ZP,{components:{Header:ut,Body:Ne,Toolbar:rn,...jt},options:{headerStyle:{textTransform:"uppercase"},...yt},columns:G(ht,qt),icons:Et,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{variant:"h5",component:"h2",children:bt}),Mt&&(0,o.jsx)(p.Z,{color:"textSecondary",variant:"body1",children:Mt})]}),data:on,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"},...Jt},...ee})]})}ct.icons=Object.freeze(Et);function ot({columnCount:Q,emptyContent:Y,hasNoRows:ht,loading:ft}){return yt=>ft?(0,o.jsx)(gt,{colSpan:Q}):Y&&ht?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Q,children:Y})})}):(0,o.jsx)(i.os,{...yt})}function St(Q,Y,ht){const ft=bt=>{const Mt=new Set,Jt=Nt=>{Nt!=null&&Mt.add(Nt)};return Y&&Y.forEach(Nt=>{var zt;const Dt=Rt(Nt,(zt=ht.find(jt=>jt.title===bt))===null||zt===void 0?void 0:zt.field);Array.isArray(Dt)?Dt.forEach(Jt):Jt(Dt)}),Mt},yt=bt=>({placeholder:"All results",label:bt.column,multiple:bt.type==="multiple-select",items:[...ft(bt.column)].sort().map(Mt=>({label:Mt,value:Mt}))});return Q.map(bt=>({type:bt.type,element:yt(bt)}))}},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),h=t(70660),l=t(60905),p=t(90436),S=t(91750),A=t(38016),R=t(2784),x=t(78527);const C=(Z,H)=>(H.palette.type==="light"?i._j:i.$n)(H.palette[Z].light,.6),E=(Z,H)=>(H.palette.type==="light"?i.$n:i._j)(H.palette[Z].light,.9),U=(0,d.Z)(Z=>({root:{marginRight:Z.spacing(1),fill:({severity:H})=>C(H,Z)}})),B=({severity:Z})=>{const H=U({severity:Z});return(0,o.jsx)(S.Z,{classes:H})},w=({severity:Z})=>{const H=U({severity:Z});return(0,o.jsx)(A.Z,{classes:H})},$=(0,d.Z)(Z=>({panel:{backgroundColor:({severity:H})=>E(H,Z),color:({severity:H})=>C(H,Z),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:H})=>C(H,Z),fontWeight:Z.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:H})=>C(H,Z),backgroundColor:({severity:H})=>E(H,Z)},details:{width:"100%",display:"block",color:Z.palette.textContrast,backgroundColor:Z.palette.background.default,border:`1px solid ${Z.palette.border}`,padding:Z.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),T=Z=>Z.charAt(0).toLocaleUpperCase("en-US")+Z.slice(1);function g(Z){const{severity:H="warning",title:J,titleFormat:V,message:K,children:k,defaultExpanded:z}=Z,nt=$({severity:H}),lt=T(H)+(J?`: ${J}`:"");return(0,o.jsxs)(b.Z,{defaultExpanded:z!=null?z:!1,className:nt.panel,role:"alert",children:[(0,o.jsxs)(m.Z,{expandIcon:(0,o.jsx)(w,{severity:H}),className:nt.summary,children:[(0,o.jsx)(B,{severity:H}),(0,o.jsx)(p.Z,{className:nt.summaryText,variant:"subtitle1",children:V==="markdown"?(0,o.jsx)(x.S,{content:lt,className:nt.markdownContent}):lt})]}),(K||k)&&(0,o.jsx)(h.Z,{children:(0,o.jsxs)(l.Z,{container:!0,children:[K&&(0,o.jsx)(l.Z,{item:!0,xs:12,children:(0,o.jsx)(p.Z,{className:nt.message,variant:"body1",children:K})}),k&&(0,o.jsx)(l.Z,{item:!0,xs:12,className:nt.details,children:k})]})})]})}},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 h=(0,o.I_)().get(i.D),l=h==null?void 0:h.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 h=(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=h();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),h=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:U="left"}=A,B=l({textAlign:U})(),w=C||(0,o.jsx)(p,{title:x,className:B.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.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),h=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:U,statusMessage:B,additionalInfo:w,supportUrl:$}=E,T=x(),g=(0,h.s0)(),Z=(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 ",U,": ",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:$||Z.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 K}});var o=t(52322),i=t(44394),d=t(6542),b=t(62774),m=t(60905),h=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),U=t(79784),B=t(15459);const w=(0,B.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(p.Z),$=(0,B.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(b.Z);function T(k){const{children:z,...nt}=k,[lt,gt]=S.useState(null),Et=S.Children.toArray(z),[Rt,ut,...Ct]=Et,X=Ct.length?Ct.pop():Et[Et.length-1],L=Et.length>3,G=it=>{gt(it.currentTarget)},q=()=>{gt(null)},st=Boolean(lt);return(0,o.jsxs)(S.Fragment,{children:[(0,o.jsxs)(x.Z,{"aria-label":"breadcrumb",...nt,children:[Et.length>1&&(0,o.jsx)($,{clone:!0,children:Rt}),Et.length>2&&(0,o.jsx)($,{clone:!0,children:ut}),L&&(0,o.jsx)(w,{onClick:G,children:"..."}),(0,o.jsx)(b.Z,{style:{fontStyle:"italic"},children:X})]}),(0,o.jsx)(U.ZP,{open:st,anchorEl:lt,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(C.Z,{children:Ct.map((it,ct)=>(0,o.jsx)(E.Z,{button:!0,children:(0,o.jsx)($,{clone:!0,children:it})},ct))})})]})}var g=t(44409);const Z=(0,h.Z)(k=>({header:{gridArea:"pageHeader",padding:k.spacing(3),width:"100%",boxShadow:k.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:k.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[k.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:k.page.fontColor,wordBreak:"break-word",fontSize:k.typography.h3.fontSize,marginBottom:0},subtitle:{color:k.page.fontColor,opacity:.8,display:"inline-block",marginTop:k.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:k.spacing(1),color:k.page.fontColor},breadcrumb:{color:k.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-k.spacing(.3),marginBottom:k.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-k.spacing(.3),marginBottom:k.spacing(.3)}}),{name:"BackstageHeader"}),H=({type:k,typeLink:z,classes:nt,pageTitle:lt})=>k?z?(0,o.jsxs)(T,{className:nt.breadcrumb,children:[(0,o.jsx)(R.rU,{to:z,children:k}),(0,o.jsx)(p.Z,{children:lt})]}):(0,o.jsx)(p.Z,{className:nt.type,children:k}):null,J=({pageTitle:k,classes:z,tooltip:nt})=>{const{contentRef:lt}=(0,g.r)(),gt=(0,o.jsx)(p.Z,{ref:lt,tabIndex:-1,className:z.title,variant:"h1",children:k});return nt?(0,o.jsx)(l.ZP,{title:nt,placement:"top-start",children:gt}):gt},V=({classes:k,subtitle:z})=>z?typeof z!="string"?(0,o.jsx)(o.Fragment,{children:z}):(0,o.jsx)(p.Z,{className:k.subtitle,variant:"subtitle2",component:"span",children:z}):null;function K(k){const{children:z,pageTitleOverride:nt,style:lt,subtitle:gt,title:Et,tooltip:Rt,type:ut,typeLink:Ct}=k,X=Z(),G=(0,i.h_)(d.D).getOptionalString("app.title")||"Backstage",q=nt||Et,st=Et||nt,it=`${q} | %s | ${G}`,ct=`${q} | ${G}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.q,{titleTemplate:it,defaultTitle:ct}),(0,o.jsxs)("header",{style:lt,className:X.header,children:[(0,o.jsxs)(b.Z,{className:X.leftItemsBox,children:[(0,o.jsx)(H,{classes:X,type:ut,typeLink:Ct,pageTitle:st}),(0,o.jsx)(J,{classes:X,pageTitle:st,tooltip:Rt}),(0,o.jsx)(V,{classes:X,subtitle:gt})]}),(0,o.jsx)(m.Z,{container:!0,className:X.rightItemsBox,spacing:4,children:z})]})]})}},67880:function(_,P,t){"use strict";t.d(P,{T:function(){return h}});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 h(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(h){const{themeId:l,children:p,...S}=h;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),h=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:U=>U.isPinned?U.sidebarConfig.drawerWidthOpen:U.sidebarConfig.drawerWidthClosed},[E.breakpoints.down("xs")]:{paddingBottom:U=>U.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[U,B]=(0,m.useState)(()=>p.getSidebarPinState()),{sidebarConfig:w}=(0,m.useContext)(h.kG),$=(0,m.useRef)(null),T=(0,m.useMemo)(()=>({content:{contentRef:$}}),[$]);(0,m.useEffect)(()=>{p.setSidebarPinState(U)},[U]);const g=(0,b.Z)(J=>J.breakpoints.down("xs"),{noSsr:!0}),Z=()=>B(!U),H=A({isPinned:U,sidebarConfig:w});return(0,o.jsx)(S.lE,{value:{isPinned:U,toggleSidebarPinState:Z,isMobile:g},children:(0,o.jsx)(R.Provider,{value:T,children:(0,o.jsx)(i.Z,{className:H.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},h=(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)(h.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)(h);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 h},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},h=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 h},fC:function(){return l}});var o=t(52322),i=t(29651),d=t(68993),b=t(2784);const m=(0,i.CT)("analytics-context"),h=()=>{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={...h(),...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 h(){try{return(0,i.h_)(d.v)}catch{return{captureEvent:()=>{}}}}function l(){const p=(0,b.useRef)(null),S=(0,o.Os)(),A=h();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 h(l){return function(S){const A=x=>{const C=b(),E={};for(const U in l)if(l.hasOwnProperty(U)){const B=l[U],w=C.get(B);if(!w)throw new Error(`No implementation available for ${B}`);E[U]=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(h,l,p){const S=h;var A;let R=(A=S[d])!==null&&A!==void 0?A:i.get(h);if(R||(R={map:new Map},Object.defineProperty(S,d,{enumerable:!1,configurable:!0,writable:!1,value:R}),i.set(h,R)),R.map.has(l)){const x=h.displayName||h.name;throw new Error(`Attempted to attach duplicate data "${l}" to component "${x}"`)}R.map.set(l,p)}function m(h,l){if(!h)return;const p=h.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),h=t(37321),l=t(62584),p=t(87612);class S extends i.Component{static getDerivedStateFromError(U){return{error:U}}render(){const{error:U}=this.state,{app:B,plugin:w}=this.props,{ErrorBoundaryFallback:$}=B.getComponents();return U?(0,o.jsx)($,{error:U,resetError:this.handleErrorReset,plugin:w}):this.props.children}constructor(...U){super(...U),(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:U,mountPoint:B,name:w}=E;return C({component:{lazy:()=>U().then($=>{const T=Z=>{const H=(0,d.z)();try{(0,h.t)(B)}catch(J){if(typeof J=="object"&&J!==null){const{message:V}=J;if(typeof V=="string"&&V.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 J}return(0,i.useEffect)(()=>{H.captureEvent(A.h,"")},[H]),(0,o.jsx)($,{...Z})},g=w||$.displayName||$.name||"LazyComponent";return T.displayName=`RoutableExtension(${g})`,T},$=>g=>{const Z=(0,m.q)(),{BootErrorPage:H}=Z.getComponents();return(0,o.jsx)(H,{step:"load-chunk",error:$})})},data:{"core.mountPoint":B},name:w})}function x(E){const{component:U,name:B}=E;return C({component:U,name:B})}function C(E){const{data:U={},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 $=B||w.displayName||w.name||"Component";return{expose(T){const g=Z=>{const H=(0,m.q)(),{Progress:J}=H.getComponents(),V=U==null?void 0:U["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(J,{}),children:(0,o.jsx)(S,{app:H,plugin:T,children:(0,o.jsx)(b.fC,{attributes:{pluginId:T.getId(),...B&&{extension:B},...V&&{routeRef:V.id}},children:(0,o.jsx)(w,{...Z})})})})};(0,l.R)(g,"core.plugin",T),(0,l.R)(g,"core.extensionName",B);for(const[Z,H]of Object.entries(U))(0,l.R)(g,Z,H);return g.displayName=`Extension(${$})`,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 h(S,A,R,x){return i.Children.toArray(S).flatMap(C=>{if(!(0,i.isValidElement)(C))return[];if(C.type===i.Fragment)return h(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))?h(C.props.children,A,R,x):[]}if(R===void 0||R(C))return[C];if(x)throw new Error(x);return h(C.props.children,A,R,x)})}class l{selectByComponentData(A){const R=h(this.node,this.featureFlagsApi,x=>(0,d.I)(x,A.key)!==void 0,A.withStrictError);return new l(R,this.featureFlagsApi)}findComponentData(A){return h(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 h(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,h;return(h=(m=this.config.featureFlags)===null||m===void 0?void 0:m.slice())!==null&&h!==void 0?h:[]}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 h}});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 h(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:h}=(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:h}),[p,m,h]);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),h=new WeakMap,l=new WeakMap,p=new WeakMap;class S{get id(){return(0,o._)(this,h)}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,h,{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,h,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(h=>{const l=h.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 h;if(!((h=m.headers.get("content-type"))===null||h===void 0)&&h.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(h){const l=await d(h),p=l.response.statusCode||h.status,S=l.error.name||h.statusText,A=`Request failed with ${p} ${S}`,R=(0,i.Fq)(l.error);return new b({message:A,response:h,data:l,cause:R})}constructor(h){super(h.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),this.name="ResponseError",this.response=h.response,this.body=h.data,this.cause=h.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 h}});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 h(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 je},q:function(){return Be}});var o=t(87612),i=t(38264);const d="amazonaws.com";function b(j){const u=j.getOptionalString("endpoint");var D;const N=(D=j.getOptionalBoolean("s3ForcePathStyle"))!==null&&D!==void 0?D:!1;let dt,Ot;if(u){try{const Ut=new URL(u);dt=Ut.host,Ot=Ut.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${u}' is not a valid URL`)}if(Ot!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${u}'`)}else dt=d;const Tt=j.getOptionalString("accessKeyId"),ae=j.getOptionalString("secretAccessKey"),te=j.getOptionalString("roleArn"),kt=j.getOptionalString("externalId");return{host:dt,endpoint:u,s3ForcePathStyle:N,accessKeyId:Tt,secretAccessKey:ae,roleArn:te,externalId:kt}}function m(j){const u=j.map(b);return u.some(D=>D.host===d)||u.push({host:d}),u}class h{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._)(h,"factory",({config:j})=>{var u;const D=m((u=j.getOptionalConfigArray("integrations.awsS3"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new h(N)),N=>N.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,U=new WeakMap,B=new WeakMap,w=new WeakMap;class ${static fromRepoUrl(u){const D=new URL(u);let N,dt,Ot;const Tt=D.pathname.split("/").map(ve=>decodeURIComponent(ve));if(Tt[2]==="_git"?(N=Tt[1],dt=Ot=Tt[3]):Tt[3]==="_git"?(N=Tt[1],dt=Tt[2],Ot=Tt[4]):Tt[4]==="_git"&&(N=`${Tt[1]}/${Tt[2]}`,dt=Tt[3],Ot=Tt[5]),!N||!dt||!Ot)throw new Error("Azure URL must point to a git repository");var ae;const te=(ae=D.searchParams.get("path"))!==null&&ae!==void 0?ae:void 0;let kt;const Ut=D.searchParams.get("version");if(Ut){if(Ut.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");kt=Ut.slice(2)}return new $(D.origin,N,dt,Ot,te,kt)}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,U)&&u.searchParams.set("path",(0,l._)(this,U)),(0,l._)(this,B)&&u.searchParams.set("version",A+(0,l._)(this,B)),u.toString()}toFileUrl(){if(!(0,l._)(this,U))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,U)),(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,U)&&u.searchParams.set("scopePath",(0,l._)(this,U)),(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,U)}getRef(){return(0,l._)(this,B)}constructor(u,D,N,dt,Ot,Tt){(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,U,{writable:!0,value:void 0}),(0,p._)(this,B,{writable:!0,value:void 0}),(0,p._)(this,w,{writable:!0,value:(...ae)=>{const te=new URL((0,l._)(this,R));return te.pathname=ae.map(kt=>encodeURIComponent(kt)).join("/"),te}}),(0,S._)(this,R,u),(0,S._)(this,x,D),(0,S._)(this,C,N),(0,S._)(this,E,dt),(0,S._)(this,U,Ot),(0,S._)(this,B,Tt)}}const T="dev.azure.com",g=["clientId","clientSecret","tenantId","personalAccessToken"],Z=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function H(j){for(const u of Z.entries()){const[D,N]=u,dt=g.filter(Ot=>!N.includes(Ot));if(N.every(Ot=>j[Ot]!==void 0)&&dt.every(Ot=>j[Ot]===void 0))return{kind:D,organizations:j.organizations,...N.reduce((Ot,Tt)=>(Ot[Tt]=j[Tt],Ot),{})}}throw new Error("is not a valid credential")}function J(j){var u,D;const N=(D=j.getOptionalString("host"))!==null&&D!==void 0?D:T;let dt=(u=j.getOptionalConfigArray("credentials"))===null||u===void 0?void 0:u.map(kt=>({organizations:kt.getOptionalStringArray("organizations"),personalAccessToken:kt.getOptionalString("personalAccessToken"),tenantId:kt.getOptionalString("tenantId"),clientId:kt.getOptionalString("clientId"),clientSecret:kt.getOptionalString("clientSecret")}));const Ot=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(Ot!==void 0){const kt=[{personalAccessToken:Ot}];var Tt;dt=(Tt=dt==null?void 0:dt.concat(kt))!==null&&Tt!==void 0?Tt:kt}if(j.getOptional("credential")!==void 0){const kt=[{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 ae;dt=(ae=dt==null?void 0:dt.concat(kt))!==null&&ae!==void 0?ae:kt}if(!(0,i.bK)(N))throw new Error(`Invalid Azure integration config, '${N}' is not a valid host`);let te;if(dt!==void 0){const kt=dt==null?void 0:dt.reduce((Ut,ve,Ie)=>{let Zt;try{H(ve)}catch(ne){Zt=ne.message}return Zt!==void 0&&Ut.push(`credential at position ${Ie+1} ${Zt}`),Ut},Array.of()).concat(Object.entries(dt.filter(Ut=>Ut.organizations!==void 0&&Ut.organizations.length>0).reduce((Ut,ve,Ie)=>{var Zt;return(Zt=ve.organizations)===null||Zt===void 0||Zt.forEach(ne=>{Ut[ne]||(Ut[ne]=[]),Ut[ne].push(Ie+1)}),Ut},{})).filter(([Ut,ve])=>ve.length>1).reduce((Ut,[ve,Ie])=>(Ut.push(`organization ${ve} is specified multiple times in credentials at positions ${Ie.slice(0,Ie.length-1).join(", ")} and ${Ie[Ie.length-1]}`),Ut),Array.of()));if((kt==null?void 0:kt.length)>0)throw new Error(`Invalid Azure integration config for ${N}: ${kt.join("; ")}`);if(te=dt.map(Ut=>H(Ut)),te.some(Ut=>Ut.kind!=="PersonalAccessToken")&&N!==T)throw new Error(`Invalid Azure integration config for ${N}, only personal access tokens can be used with hosts other than ${T}`);if(te.filter(Ut=>Ut.organizations===void 0||Ut.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${N}, you cannot specify multiple credentials without organizations`)}return{host:N,credentials:te}}function V(j){const u=j.map(J);return u.some(D=>D.host===T)||u.push({host:T}),u}class K{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:N}=u;if((0,i.jv)(D))return D;try{const Ot=$.fromRepoUrl(N),Tt=new URL(N);var dt;const ae=new URL(`https://a.com${(dt=Ot.getPath())!==null&&dt!==void 0?dt:""}`),te=new URL(D,ae).pathname;return Tt.searchParams.set("path",te),u.lineNumber&&(Tt.searchParams.set("line",String(u.lineNumber)),Tt.searchParams.set("lineEnd",String(u.lineNumber+1)),Tt.searchParams.set("lineStartColumn","1"),Tt.searchParams.set("lineEndColumn","1")),Tt.toString()}catch{return new URL(D,N).toString()}}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(K,"factory",({config:j})=>{var u;const D=V((u=j.getOptionalConfigArray("integrations.azure"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new K(N)),N=>N.config.host)});var k=t(82717),z=t.n(k);const nt="bitbucket.org",lt="https://api.bitbucket.org/2.0";function gt(j){const u=nt,D=lt,N=j.getString("username"),dt=j.getString("appPassword");return{host:u,apiBaseUrl:D,username:N,appPassword:dt}}function Et(j){const u=j.map(gt);return u.length===0&&u.push({host:nt,apiBaseUrl:lt}),u}class Rt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const N=new URL(D);return N.hash=`lines-${u.lineNumber}`,N.toString()}return D}resolveEditUrl(u){const D=z()(u),N=new URL(u);return N.searchParams.set("mode","edit"),N.searchParams.set("at",D.ref),N.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(Rt,"factory",({config:j})=>{var u;const D=Et((u=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new Rt(N)),N=>N.config.host)});var ut=t(76635);const Ct="bitbucket.org",X="https://api.bitbucket.org/2.0";function L(j){var u;const D=(u=j.getOptionalString("host"))!==null&&u!==void 0?u:Ct;let N=j.getOptionalString("apiBaseUrl");const dt=j.getOptionalString("token"),Ot=j.getOptionalString("username"),Tt=j.getOptionalString("appPassword");if(!(0,i.bK)(D))throw new Error(`Invalid Bitbucket integration config, '${D}' is not a valid host`);return N?N=(0,ut.trimEnd)(N,"/"):D===Ct?N=X:N=`https://${D}/rest/api/1.0`,{host:D,apiBaseUrl:N,token:dt,username:Ot,appPassword:Tt}}function G(j){const u=j.map(L);return u.some(D=>D.host===Ct)||u.push({host:Ct,apiBaseUrl:X}),u}class q{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(!u.lineNumber)return D;const N=new URL(D);return this.integrationConfig.host==="bitbucket.org"?N.hash=`lines-${u.lineNumber}`:N.hash=`${u.lineNumber}`,N.toString()}resolveEditUrl(u){const D=z()(u),N=new URL(u);return N.searchParams.set("mode","edit"),N.searchParams.set("spa","0"),N.searchParams.set("at",D.ref),N.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(q,"factory",({config:j})=>{var u,D,N;const dt=G((N=j.getOptionalConfigArray("integrations.bitbucket"))!==null&&N!==void 0?N:[...(u=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[],...(D=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&D!==void 0?D:[]]);return(0,i.gz)(dt.map(Ot=>new q(Ot)),Ot=>Ot.config.host)});function st(j){const u=j.getString("host");let D=j.getOptionalString("apiBaseUrl");const N=j.getOptionalString("token"),dt=j.getOptionalString("username"),Ot=j.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Bitbucket Server integration config, '${u}' is not a valid host`);return D?D=(0,ut.trimEnd)(D,"/"):D=`https://${u}/rest/api/1.0`,{host:u,apiBaseUrl:D,token:N,username:dt,password:Ot}}function it(j){return j.map(st)}class ct{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const N=new URL(D);return N.hash=u.lineNumber.toString(),N.toString()}return D}resolveEditUrl(u){return u.includes("?")?u.substring(0,u.indexOf("?")):u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(ct,"factory",({config:j})=>{var u;const D=it((u=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new ct(N)),N=>N.config.host)});function ot(j){const u=j.getString("host");let D=j.getOptionalString("baseUrl"),N=j.getOptionalString("cloneUrl"),dt=j.getOptionalString("gitilesBaseUrl");const Ot=j.getOptionalString("username"),Tt=j.getOptionalString("password");if((0,i.bK)(u)){if(D&&!(0,i.jv)(D))throw new Error(`Invalid Gerrit integration config, '${D}' is not a valid baseUrl`);if(N&&!(0,i.jv)(N))throw new Error(`Invalid Gerrit integration config, '${N}' is not a valid cloneUrl`);if(dt&&!(0,i.jv)(dt))throw new Error(`Invalid Gerrit integration config, '${dt}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${u}' is not a valid host`);return D?D=(0,ut.trimEnd)(D,"/"):D=`https://${u}`,dt?dt=(0,ut.trimEnd)(dt,"/"):dt=`https://${u}`,N?N=(0,ut.trimEnd)(N,"/"):N=D,{host:u,baseUrl:D,cloneUrl:N,gitilesBaseUrl:dt,username:Ot,password:Tt}}function St(j){return j.map(ot)}var Q=t(48834).lW;const Y=")]}'";function ht(j,u){const D=new URL(j.gitilesBaseUrl),N=new URL(u),Ot=N.pathname.substring(N.pathname.startsWith("/a/")?2:0).replace(D.pathname,"").split("/").filter(ve=>!!ve),Tt=Ot.indexOf("+");if(Tt<=0)throw new Error(`Unable to parse project from url: ${u}`);const ae=(0,ut.trimStart)(Ot.slice(0,Tt).join("/"),"/"),te=Ot.indexOf("heads");if(te<=0)throw new Error(`Unable to parse branch from url: ${u}`);const kt=Ot[te+1],Ut=Ot.slice(te+2).join("/");return{branch:kt,filePath:Ut===""?"/":Ut,project:ae}}function ft(j,u,D,N){return`${j.gitilesBaseUrl}/${u}/+/refs/heads/${D}/${(0,ut.trimStart)(N,"/")}`}function yt(j,u,D,N){const dt=N==="/"||N===""?".tar.gz":`/${N}.tar.gz`;return`${Mt(j)}/${u}/+archive/refs/heads/${D}${dt}`}function bt(j){return j.password?"/a/":"/"}function Mt(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(bt(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 Jt(j,u){const{branch:D,project:N}=ht(j,u);return`${j.baseUrl}${bt(j)}projects/${encodeURIComponent(N)}/branches/${D}`}function Nt(j,u){const{project:D}=ht(j,u);return`${j.cloneUrl}${bt(j)}${D}`}function zt(j,u){const{branch:D,filePath:N,project:dt}=ht(j,u);return`${j.baseUrl}${bt(j)}projects/${encodeURIComponent(dt)}/branches/${D}/files/${encodeURIComponent(N)}/content`}function Dt(j){return`${j.baseUrl}${bt(j)}projects/`}function jt(j){const u={};if(!j.password)return u;const D=Q.from(`${j.username}:${j.password}`,"utf8");return u.Authorization=`Basic ${D.toString("base64")}`,{headers:u}}async function Gt(j){const u=await j.text();if(u.startsWith(Y))try{return JSON.parse(u.slice(Y.length))}catch(D){throw new Error(`Invalid response from Gerrit: ${u.slice(0,10)} - ${D}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${u.slice(0,10)}`)}class ee{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:N,lineNumber:dt}=u;let Ot;if(D.startsWith("/")){const{branch:Tt,project:ae}=ht(this.config,N);return ft(this.config,ae,Tt,D)}return D?Ot=new URL(D,N):Ot=new URL(N),dt&&(Ot.hash=dt.toString()),Ot.toString()}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(ee,"factory",({config:j})=>{var u;const D=St((u=j.getOptionalConfigArray("integrations.gerrit"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new ee(N)),N=>N.config.host)});var re=t(61800);const qt="gitlab.com",de="https://gitlab.com/api/v4";function we(j){const u=j.getString("host");let D=j.getOptionalString("apiBaseUrl");const N=j.getOptionalString("token");let dt=j.getOptionalString("baseUrl");if(D?D=(0,ut.trimEnd)(D,"/"):u===qt&&(D=de),dt?dt=(0,ut.trimEnd)(dt,"/"):dt=`https://${u}`,(0,i.bK)(u)){if(!D||!(0,i.jv)(D))throw new Error(`Invalid GitLab integration config, '${D}' is not a valid apiBaseUrl`);if(!(0,i.jv)(dt))throw new Error(`Invalid GitLab integration config, '${dt}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${u}' is not a valid host`);return{host:u,token:N,apiBaseUrl:D,baseUrl:dt}}function ze(j){const u=j.map(we);return u.some(D=>D.host===qt)||u.push({host:qt,apiBaseUrl:de,baseUrl:`https://${qt}`}),u}function Je(j){let u="";return j.host!==qt&&(u=new URL(j.baseUrl).pathname),trimEnd(u,"/")}class xe{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._)(xe,"factory",({config:j})=>{var u;const D=ze((u=j.getOptionalConfigArray("integrations.gitlab"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(N=>new xe(N)),N=>N.config.host)});function Xe(j,u){return j.replace(/\/\-\/(blob|tree|edit)\//,`/-/${u}/`)}function He(j){const u=j.getString("host");let D=j.getOptionalString("baseUrl");const N=j.getOptionalString("username"),dt=j.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Gitea integration config, '${u}' is not a valid host`);return D?D=(0,ut.trimEnd)(D,"/"):D=`https://${u}`,{host:u,baseUrl:D,username:N,password:dt}}var Ge=t(48834).lW;function se(j,u){const D=ie(j,u);return`${D.url}/${D.owner}/${D.name}/_edit/${D.ref}/${D.path}`}function on(j,u){const D=ie(j,u);return`${D.url}/api/v1/repos/${D.owner}/${D.name}/contents/${D.path}?ref=${D.ref}`}function Oe(j,u){const D=ie(j,u);return`${D.url}/api/v1/repos/${D.owner}/${D.name}/archive/${D.ref}.tar.gz`}function _e(j,u){const D=ie(j,u);return`${D.url}/api/v1/repos/${D.owner}/${D.name}/git/commits/${D.ref}`}function rn(j){const u={},{username:D,password:N}=j;return N?(D?u.Authorization=`basic ${Ge.from(`${D}:${N}`).toString("base64")}`:u.Authorization=`token ${N}`,{headers:u}):u}function ie(j,u){var D;const N=(D=j.baseUrl)!==null&&D!==void 0?D:`https://${j.host}`;try{const[dt,Ot,Tt,ae,te,kt,...Ut]=u.replace(N,"").split("/"),ve=Ut.join("/").replace(/^\//,"");return{url:N,owner:Ot,name:Tt,ref:kt,path:ve}}catch(dt){throw new Error(`Incorrect URL: ${u}, ${dt}`)}}class $e{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return se(this.config,u)}constructor(u){(0,o._)(this,"config",void 0),this.config=u}}(0,o._)($e,"factory",({config:j})=>{var u;const N=((u=j.getOptionalConfigArray("integrations.gitea"))!==null&&u!==void 0?u:[]).map(dt=>He(dt));return(0,i.gz)(N.map(dt=>new $e(dt)),dt=>dt.config.host)});class Ne{static fromConfig(u){return new Ne({awsS3:h.factory({config:u}),azure:K.factory({config:u}),bitbucket:q.factory({config:u}),bitbucketCloud:Rt.factory({config:u}),bitbucketServer:ct.factory({config:u}),gerrit:ee.factory({config:u}),github:re.X.factory({config:u}),gitlab:xe.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 D=Object.values(this.byType).map(N=>N.byUrl(u)).filter(Boolean);if(D.length>1){const N=D.filter(dt=>!(dt instanceof q));N.length!==0&&(D=N)}return D[0]}byHost(u){return Object.values(this.byType).map(D=>D.byHost(u)).find(Boolean)}resolveUrl(u){const D=this.byUrl(u.base);return D?D.resolveUrl(u):(0,i.FI)(u)}resolveEditUrl(u){const D=this.byUrl(u);return D?D.resolveEditUrl(u):u}constructor(u){(0,o._)(this,"byType",void 0),this.byType=u}}var Se=t(95965);class je{static fromConfig(u){return Ne.fromConfig(u)}}const Be=(0,Se.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",h="https://raw.githubusercontent.com";function l(R){var x,C;const E=(C=R.getOptionalString("host"))!==null&&C!==void 0?C:b;let U=R.getOptionalString("apiBaseUrl"),B=R.getOptionalString("rawBaseUrl");const w=R.getOptionalString("token"),$=(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 U?U=(0,d.trimEnd)(U,"/"):E===b&&(U=m),B?B=(0,d.trimEnd)(B,"/"):E===b&&(B=h),{host:E,apiBaseUrl:U,rawBaseUrl:B,token:w,apps:$}}function p(R){const x=R.map(l);return x.some(C=>C.host===b)||x.push({host:b,apiBaseUrl:m,rawBaseUrl:h}),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,U,B)=>`//${E}/${U}/${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 h}});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 h(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:U}=i()(x);E=new URL(x);const B=(0,d.trimEnd)(E.pathname.substring(0,E.pathname.length-U.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 h.s4}});var i=t(52322),d=t(2784),b=t(17029),m=t(73557),h=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 U({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)(U,{children:(0,i.jsx)(R.m,{status:"501",statusMessage:n})})},$=({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:$};var g=t(87612);const Z="Invalid discovery URL pattern,";class H{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(`${Z} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${Z} URL must not have a hash`);if(a.search)throw new Error(`${Z} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${Z} URL must not end with a slash`);return new H(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,g._)(this,"parts",void 0),this.parts=e}}var J=t(82394),V=t.n(J);let K=Symbol.observable;class k{[K](){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(V())(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 z=Symbol.observable;class nt{[z](){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(V())(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 k)}}class gt{captureEvent(e){}}class Et{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 Rt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,g._)(this,"subject",new k)}}class ut{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const Ct=new Map;class X{static create(e){var n;return new X((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of Ct.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 Ct.has(n)||Ct.set(n,new X(n,this.errorApi)),Ct.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 X.hasSubscribed||(X.addStorageEventListener(),X.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(V())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,g._)(X,"hasSubscribed",!1);function L(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 G{static create(e){var n,s;const a=q(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 G(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 q(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?st(r.urlPrefixAllowlist):r.config?st([r.config.getString("backend.baseUrl")]):()=>!1}function st(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function it(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class ct{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:F,username:et,password:at}=new URL(`http://${a.url.substring(c.length)}`);let vt=await this.discoveryApi.getBaseUrl(y);if(et||at){const xt=new URL(vt),Wt=`${et}${at?`:${at}`:""}@`;vt=`${xt.protocol}//${Wt}${xt.host}${xt.pathname}`}const mt=`${it(vt,v)}${I}${F}`;return e(mt,typeof n=="string"||ot(n)?s:n)}}constructor(e){(0,g._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function ot(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class St{static resolvePluginProtocol(e){return new ct(e.discoveryApi)}static injectIdentityAuth(e){return G.create(e)}constructor(){}}function Q(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function Y(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class ht{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=>Q(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)=>Y(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 nt(this.getCurrentPending()))}}class ft{createAuthRequester(e){const n=new ht,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 nt([])),(0,g._)(this,"currentRequests",[]),(0,g._)(this,"handlerCount",0)}}function yt(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 vt=new Error("Failed to open auth popup.");vt.name="PopupRejectedError",n(vt);return}const F=vt=>{if(vt.source!==v||vt.origin!==r.origin)return;const{data:mt}=vt;if(mt.type==="config_info"){I=mt.targetOrigin;return}if(mt.type!=="authorization_response")return;const xt=mt;if("error"in xt){const Wt=new Error(xt.error.message);Wt.name=xt.error.name,n(Wt)}else e(xt.response);at()},et=setInterval(()=>{if(v.closed){const vt=`Login failed, ${I&&I!==window.location.origin?`Incorrect app origin, expected ${I}`:"popup was closed"}`,mt=new Error(vt);mt.name="PopupClosedError",n(mt),at()}},100);function at(){window.removeEventListener("message",F),clearInterval(et)}window.addEventListener("message",F)})}let bt=!1;function Mt(r){return[...r].join(" ")}class Jt{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,F;const et=this.joinScopesFunc(e),at=await this.buildUrl("/start",{scope:et,origin:window.location.origin,flow:"popup"}),vt=!((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,mt=!((v=this.popupOptions)===null||v===void 0||(y=v.size)===null||y===void 0)&&y.fullscreen?window.screen.height:((F=this.popupOptions)===null||F===void 0||(I=F.size)===null||I===void 0?void 0:I.height)||730,xt=await yt({url:at,name:`${this.provider.title} Login`,origin:new URL(at).origin,width:vt,height:mt});return await this.sessionTransform(xt)}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=Mt,oauthRequestApi:v,sessionTransform:I=at=>at,popupOptions:F}=e;!bt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),bt=!0);var et;this.enableExperimentalRedirectFlow=n&&(et=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&et!==void 0?et:!1,this.authRequester=v.createAuthRequester({provider:c,onAuthRequest:async at=>this.enableExperimentalRedirectFlow?this.executeRedirect(at):this.showPopup(at)}),this.discoveryApi=s,this.environment=a,this.provider=c,this.joinScopesFunc=y,this.sessionTransform=I,this.popupOptions=F}}function Nt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class zt{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Nt(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 Dt=t(95965),jt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(jt||(jt={}));const Gt=(0,Dt.T)({id:"core.auth.google"}),ee=(0,Dt.T)({id:"core.auth.github"}),re=(0,Dt.T)({id:"core.auth.okta"}),qt=(0,Dt.T)({id:"core.auth.gitlab"}),de=(0,Dt.T)({id:"core.auth.microsoft"}),we=(0,Dt.T)({id:"core.auth.onelogin"}),ze=(0,Dt.T)({id:"core.auth.bitbucket"}),Je=(0,Dt.T)({id:"core.auth.bitbucket-server"}),xe=(0,Dt.T)({id:"core.auth.atlassian"});class Xe{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?jt.SignedIn:jt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,g._)(this,"subject",new nt(jt.SignedOut)),(0,g._)(this,"signedIn",!1)}}class He{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 Nt(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 zt({sessionScopes:a,defaultScopes:s})}}const Ge={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class se{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Ge,oauthRequestApi:y,defaultScopes:v=[],scopeTransform:I=vt=>vt,popupOptions:F}=e,et=new Jt({configApi:n,discoveryApi:s,environment:a,provider:c,oauthRequestApi:y,sessionTransform({backstageIdentity:vt,...mt}){const xt={...mt,providerInfo:{idToken:mt.providerInfo.idToken,accessToken:mt.providerInfo.accessToken,scopes:se.normalizeScopes(I,mt.providerInfo.scope),expiresAt:mt.providerInfo.expiresInSeconds?new Date(Date.now()+mt.providerInfo.expiresInSeconds*1e3):void 0}};if(vt){var Wt;const Ht=(Wt=vt.expiresInSeconds)!==null&&Wt!==void 0?Wt:mt.providerInfo.expiresInSeconds;xt.backstageIdentity={token:vt.token,identity:vt.identity,expiresAt:Ht?new Date(Date.now()+Ht*1e3):void 0}}return xt},popupOptions:F}),at=new He({connector:et,defaultScopes:new Set(v),sessionScopes:vt=>vt.providerInfo.scopes,sessionShouldRefresh:vt=>{var mt,xt;let Wt=1/0;return!((mt=vt.providerInfo)===null||mt===void 0)&&mt.expiresAt&&(Wt=Math.min(Wt,(vt.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((xt=vt.backstageIdentity)===null||xt===void 0)&&xt.expiresAt&&(Wt=Math.min(Wt,(vt.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Wt<60*5}});return new se({sessionManager:at,scopeTransform:I})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=se.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},Oe="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",`${Oe}userinfo.email`,`${Oe}userinfo.profile`]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:y,environment:c,defaultScopes:v,scopeTransform(I){return I.map(F=>F==="openid"?F:F==="profile"||F==="email"?`${Oe}userinfo.${F}`:F.startsWith(Oe)?F:`${Oe}${F}`)}})}}const rn={id:"microsoft",title:"Microsoft",icon:()=>null};class ie{static create(e){return new ie(e)}microsoftGraph(){return this.oauth2[ie.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(ie.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:ie.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 ie.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?ie.MicrosoftGraphID:await ie.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=se.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=rn,oauthRequestApi:c,discoveryApi:y,defaultScopes:v=["openid","offline_access","profile","email","User.Read"],scopeTransform:I=F=>F.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=c,this.discoveryApi=y,this.scopeTransform=I,this.oauth2={[ie.MicrosoftGraphID]:se.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:v})}}}(0,g._)(ie,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const $e={id:"github",title:"GitHub",icon:()=>null};class Ne{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=$e,oauthRequestApi:y,defaultScopes:v=["read:user"]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const Se={id:"okta",title:"Okta",icon:()=>null},je=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Be="okta.";class j{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Se,oauthRequestApi:y,defaultScopes:v=["openid","email","profile","offline_access"]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v,scopeTransform(I){return I.map(F=>je.has(F)||F.startsWith(Be)?F:`${Be}${F}`)}})}}const u={id:"gitlab",title:"GitLab",icon:()=>null};class D{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=u,oauthRequestApi:y,defaultScopes:v=["read_user"]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const N={id:"onelogin",title:"onelogin",icon:()=>null},dt=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Ot="onelogin.";class Tt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=N,oauthRequestApi:y}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(v){return v.map(I=>dt.has(I)||I.startsWith(Ot)?I:`${Ot}${I}`)}})}}const ae={id:"bitbucket",title:"Bitbucket",icon:()=>null};class te{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=ae,oauthRequestApi:y,defaultScopes:v=["team"]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const kt={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class Ut{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=kt,oauthRequestApi:y,defaultScopes:v=["PROJECT_ADMIN"]}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const ve={id:"atlassian",title:"Atlassian",icon:()=>null};class Ie{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=ve,oauthRequestApi:y}=e;return se.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a})}}var Zt=t(42380),ne=t(96727),ue=t(6542),Ln=t(78847),ho=t(86386),Mn=t(58513);const jn=(0,Dt.T)({id:"core.storage"});var Bn=t(85094),me=t(77186);const De=(0,Dt.T)({id:"core.oauthrequest"}),fo=(0,Dt.T)({id:"plugin.permission.api"});var Ve=t(41385),po=t(96279),Un=t.n(po),go=t(9571),Vt=t(30195),Fe;(function(r){r.DENY="DENY",r.ALLOW="ALLOW",r.CONDITIONAL="CONDITIONAL"})(Fe||(Fe={}));const sn=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(sn).nonempty()})).or(Vt.z.object({allOf:Vt.z.array(sn).nonempty()})).or(Vt.z.object({not:sn}))),vo=Vt.z.object({result:Vt.z.literal(Fe.ALLOW).or(Vt.z.literal(Fe.DENY))}),mo=Vt.z.union([Vt.z.object({result:Vt.z.literal(Fe.ALLOW).or(Vt.z.literal(Fe.DENY))}),Vt.z.object({result:Vt.z.literal(Fe.CONDITIONAL),pluginId:Vt.z.string(),resourceType:Vt.z.string(),conditions:sn})]),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 $n{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(et=>({result:Fe.ALLOW}));const a={items:e.map(et=>({id:go.Z(),...et}))},c=await this.discovery.getBaseUrl("permission"),y=await Un()(`${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 Ve.V.fromResponse(y);const v=await y.json(),F=yo(n,new Set(a.items.map(({id:et})=>et))).parse(v).items.reduce((et,at)=>(et[at.id]=at,et),{});return a.items.map(et=>F[et.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 yn{static create(e){const{config:n,discovery:s,identity:a}=e,c=new $n({discovery:s,config:n});return new yn(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,Zt.n)({api:ne.N,deps:{configApi:ue.D},factory:({configApi:r})=>H.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Zt.n)({api:Ln.$,deps:{},factory:()=>new lt}),(0,Zt.n)({api:ho.v,deps:{},factory:()=>new gt}),(0,Zt.n)({api:Mn.V,deps:{alertApi:Ln.$},factory:({alertApi:r})=>{const e=new Et(r,new Rt);return ut.forward(e,{hidden:!1}),e}}),(0,Zt.n)({api:jn,deps:{errorApi:Mn.V},factory:({errorApi:r})=>X.create({errorApi:r})}),(0,Zt.n)({api:Bn.g,deps:{configApi:ue.D,identityApi:me.$,discoveryApi:ne.N},factory:({configApi:r,identityApi:e,discoveryApi:n})=>L({middleware:[St.resolvePluginProtocol({discoveryApi:n}),St.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Zt.n)({api:De,deps:{},factory:()=>new ft}),(0,Zt.n)({api:Gt,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>_e.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:de,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ie.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:ee,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Ne.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:re,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>j.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:qt,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>D.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:we,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Tt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:ze,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>te.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:Je,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Ut.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,Zt.n)({api:xe,deps:{discoveryApi:ne.N,oauthRequestApi:De,configApi:ue.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Ie.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Zt.n)({api:fo,deps:{discovery:ne.N,identity:me.$,config:ue.D},factory:({config:r,discovery:e,identity:n})=>yn.create({config:r,discovery:e,identity:n})})];var Fn=t(43642),xo=t(80079),Co=t(90941),Wn=t(32915),En=t(40562),Ao=t(21853),So=t(60744),bo=t(66569),Oo=t(30254),Po=t(13384),Nn=t(15933),Ro=t(58838),wo=t(86737),Zn=t(4989),kn=t(44407),To=t(18628),xn=t(84219),Cn=t(98685),Io=t(39781),Do=t(39412),Lo=t(78258);const Mo={brokenImage:xo.Z,catalog:To.Z,scaffolder:Wn.Z,techdocs:En.Z,search:Ao.Z,chat:So.Z,dashboard:bo.Z,docs:Oo.Z,email:Po.Z,github:Ro.Z,group:xn.Z,help:wo.Z,"kind:api":Nn.Z,"kind:component":kn.Z,"kind:domain":Fn.Z,"kind:group":xn.Z,"kind:location":Zn.Z,"kind:system":Co.Z,"kind:user":Cn.Z,"kind:resource":Do.Z,"kind:template":Lo.Z,user:Cn.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 an(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 zn={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 Pt=t(88412),he=t(52475),fe=t(80956),No=t(73689),ar=t(93606);const f={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 M(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 W={home:M({colors:O.teal,shape:f.wave}),documentation:M({colors:O.pinkSea,shape:f.wave2}),tool:M({colors:O.purpleSky,shape:f.round}),service:M({colors:O.marineBlue,shape:f.wave}),website:M({colors:O.veryBlue,shape:f.wave}),library:M({colors:O.rubyRed,shape:f.wave}),other:M({colors:O.darkGrey,shape:f.wave}),app:M({colors:O.toastyOrange,shape:f.wave}),apis:M({colors:O.teal,shape:f.wave2}),card:M({colors:O.greens,shape:f.wave})},tt=16,rt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',pt="home";function At(r){const{palette:e,htmlFontSize:n=tt,fontFamily:s=rt,defaultPageTheme:a=pt,pageTheme:c=W,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 F;return(F=c[I])!==null&&F!==void 0?F:c[a]}}}var It=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,It._j)(r.palette.link,.3),background:(0,It.$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 le=/^&.Mui-([\w-]+)$/;function ye(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(le);if(y){const[,v]=y,{[c]:I,...F}=s;I&&(e={...e,[n]:F,[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]=ye(wt(r,c.styleOverrides))),"defaultProps"in c&&(s[a]=c.defaultProps))}return{overrides:n,props:s}}var Bt=new WeakMap;class oe{getTheme(e){return(0,Pt._)(this,Bt).get(e)}constructor(e,n){(0,he._)(this,Bt,{writable:!0,value:new Map}),(0,fe._)(this,Bt,new Map),e&&(0,Pt._)(this,Bt).set("v4",e),n&&(0,Pt._)(this,Bt).set("v5",n)}}function Ee(r){const e=At(r),n={...$t,...r.components},s=(0,ar.Z)({...e,components:n}),a=Qt(s,n),c={...(0,No.Z)(e),...a};return new oe(c,s)}function Lt(r){const e=adaptV4Theme(r),n=createTheme(r);return new oe(n,e)}const Kt={light:Ee({palette:zn.light}),dark:Ee({palette:zn.dark})};var Xt=t(98192),Ce=t(15222);const Pe=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(Ce.Z,{}),Provider:({children:r})=>(0,i.jsx)(an,{theme:Kt.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(Xt.Z,{}),Provider:({children:r})=>(0,i.jsx)(an,{theme:Kt.dark,children:r})}];var Ue=t(64279),ce=t(13980),We=t.n(ce);class pe{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 Ye=t(29651),ln=t(68993);const lr=(0,Ye.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 pe(n,a):n;return(0,i.jsx)(lr.Provider,{value:(0,ln.E)({1:c}),children:s})};Zo.propTypes={apis:We().shape({get:We().func.isRequired}).isRequired,children:We().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 An(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 Le={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 cn{static fromConfigs(e){return e.length===0?new cn(void 0):e.reduce((n,{data:s,context:a,filteredKeys:c,deprecatedKeys:y})=>{const v=new cn(s,a,n);if(v.filteredKeys=c,y)for(const{key:I,description:F}of y)console.warn(`The configuration key '${I}' of ${a} is deprecated and may be removed soon. ${F||""}`);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(Le.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)=>!An(v)||!An(y)?v:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Le.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(An(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(Le.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(Le.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(!An(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(Le.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(Le.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Le.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(Le.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Le.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(Le.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 cn(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:F}=y;throw new TypeError(Le.type(this.fullKey(v),this.context,ko(I),F))}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(An(s))s=s[c];else if(s!==void 0){const y=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Le.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 Sn="theme";class Hn{static createWithStorage(e){const n=new Hn(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(Sn))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(c=>{c?window.localStorage.setItem(Sn,c):window.localStorage.removeItem(Sn)}),window.addEventListener("storage",c=>{if(c.key===Sn){var y;const v=(y=localStorage.getItem(Sn))!==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 nt(void 0)}}var dn=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)===dn.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===dn.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===dn.C.Active));return new Map(s)}catch{return new Map}}constructor(){(0,g._)(this,"registeredFeatureFlags",[]),(0,g._)(this,"flags",void 0)}}const Gn=(0,Dt.T)({id:"core.apptheme"}),dr=(0,Dt.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 F=e[I];v[I]=F.visit(F.accumulator,y,a,c[I])}for(const I of r.discoverers){const F=I(y);F&&n.push({node:F,parent:y,contexts:v})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function Vn(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=Vn(()=>new Set,(r,e)=>{const n=(0,be.I)(e,"core.plugin");n&&r.add(n)});var bn=t(44394);const ur=r=>{const{children:e}=r,n=(0,bn.h_)(dn.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 Yn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function Qn(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=Vn(()=>({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 "${Qn(e)}"`);var I;const F=(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 "${Qn(e)}"`);const xt=y.startsWith("/")?y.slice(1):y,Wt=e.props.element;if((0,be.I)(e,"core.gatherMountPoints")){var et;if(Wt)throw new Error(`Mount point gatherers may not have an element prop "${Qn(e)}"`);const Ht={path:xt,element:"gathered",routeRefs:new Set,caseSensitive:Boolean((et=e.props)===null||et===void 0?void 0:et.caseSensitive),children:[Yn],plugins:new Set};return F.push(Ht),{obj:Ht,gatherPath:xt,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Wt){var at;const[Ht,..._t]=fr(Wt);if(_t.length>0)throw new Error(`Route element with path "${y}" may not contain multiple routable extensions`);if(!Ht)return s;const{routeRef:ge,plugin:Ke}=Ht,Dn={path:xt,element:"mounted",routeRefs:new Set([ge]),caseSensitive:Boolean((at=e.props)===null||at===void 0?void 0:at.caseSensitive),children:[Yn],plugins:hr(Ke)};return F.push(Dn),r.paths.set(ge,xt),r.parents.set(ge,s==null?void 0:s.routeRef),{obj:Dn,routeRef:ge!=null?ge:s==null?void 0:s.routeRef,gatherPath:xt,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(v){var vt;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${Qn(e)}" with mount point "${v}" must be assigned a path`);s==null||(vt=s.obj)===null||vt===void 0||vt.routeRefs.add(v);const xt=(0,be.I)(e,"core.plugin");if(xt){var mt;s==null||(mt=s.obj)===null||mt===void 0||mt.plugins.add(xt)}return r.paths.set(v,s.gatherPath),r.parents.set(v,s==null?void 0:s.gatherRouteRef),{...s,routeRef:v}}return s}),Cs=Vn(()=>({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,F=s==null?void 0:s.sticky;const et=(a=e.props)===null||a===void 0?void 0:a.path;var at;const vt=(at=v==null?void 0:v.children)!==null&&at!==void 0?at:r.objects,mt=Boolean((c=e.props)===null||c===void 0?void 0:c.caseSensitive);let xt=s==null?void 0:s.path;if((0,be.I)(e,"core.gatherMountPoints")){if(!et)throw new Error("Mount point gatherer must have a path");xt=et}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=et;if(xt&&(Ke?xt=void 0:Ke=xt),!Ke)throw new Error("Mounted routable extension must have a path");r.paths.set(Ht,Ke),I&&F?(r.parents.set(Ht,I),et&&(I=Ht,F=!1)):(r.parents.set(Ht,I),I=Ht),et?(v={caseSensitive:mt,path:et,element:"mounted",routeRefs:new Set([Ht]),children:[Yn],plugins:hr((0,be.I)(e.props.element,"core.plugin"))},vt.push(v)):v==null||v.routeRefs.add(Ht)}if((0,be.I)(e,"core.gatherMountPoints")&&(F=!0),(0,be.I)(e,"core.gatherMountPoints")){if(!et)throw new Error("Mount point gatherer must have a path");if(!Ht){var ge;v={caseSensitive:mt,path:et,element:"gathered",routeRefs:new Set,children:[Yn],plugins:(s==null||(ge=s.obj)===null||ge===void 0?void 0:ge.plugins)||new Set},vt.push(v)}}return{obj:v,path:xt,routeRef:I,sticky:F}}),As=Vn(()=>new Set,(r,e)=>{if(e.type===ur){const n=e.props;r.add("with"in n?n.with:n.without)}});var On=t(84800),Ss=t(96087);const Pn=(0,Ss.u)("route-ref-type",()=>Symbol("route-ref-type"));function pr(r){return r[Pn]==="absolute"}function gr(r){return r[Pn]==="sub"}function bs(r){return r[Pn]==="external"}function Jn(...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[Pn]?new Error(`Unknown or invalid route ref type, ${r[Pn]}`):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=Jn(c,a);return[s,y]}function ws(r,e,n,s,a){var c;const y=(c=(0,On.fp)(a,e))!==null&&c!==void 0?c:[],v=Array();let I=-1;for(let at=r;at&&(I=y.findIndex(vt=>vt.route.routeRefs.has(at)),I===-1);at=s.get(at))v.unshift(at);v.length===0&&(I-=1);const F=I===-1?"":y[I].pathname,et=v.slice(0,-1).map(at=>{const vt=n.get(at);if(vt===void 0)throw new Error(`No path for ${at}`);if(vt.includes(":"))throw new Error(`Cannot route to ${r} with parent ${at} as it has parameters`);return vt});return`${Jn(F,...et)}/`}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 F=I&&Ps()(I,et=>typeof et=="string"?et.replaceAll(/[&?#;\/]/g,at=>encodeURIComponent(at)):et);return Jn(y,(0,On.Gn)(a,F))}}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,Ye.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,ln.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=Jn(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,Ye.CT)("app-context"),Bs=({appContext:r,children:e})=>{const n=(0,ln.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,bn.h_)(Gn),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 un(new Map(this.apis))}constructor(){(0,g._)(this,"apis",[])}}class un{static builder(){return new Zs}static from(e){return new un(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new un(new Map([[e.id,n]]))}with(e,n){return new un(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 Rn(){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,On.fp)(e,{pathname:r}),s=n==null?void 0:n.filter(I=>{var F;return(I==null||(F=I.route.routeRefs)===null||F===void 0?void 0:F.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,[F,et])=>(et!==void 0&&F!=="*"&&(I[F]=et),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},Xn=({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 Rn()?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,bn.h_)(ue.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,bn.h_)(ue.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?Rn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Xn,{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)(Xn,{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||"/"}),Rn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Xn,{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)(Xn,{routeObjects:v}),r.children]}))}(0,be.R)(Sr,"core.type","AppRouter");const wn="language",Ze="en";var Tn=new WeakMap,hn=new WeakMap,_n=new WeakMap;class qn{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Ze];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Ze))throw new Error(`Supported languages must include '${Ze}'`);var a;const c=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Ze;if(!s.includes(c))throw new Error(`Initial language must be one of the supported languages, got '${c}'`);return new qn(s,c)}static createWithStorage(e){const n=qn.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(wn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(wn)&&window.localStorage.setItem(wn,c)}),window.addEventListener("storage",c=>{if(c.key===wn){var y;const v=(y=localStorage.getItem(wn))!==null&&y!==void 0?y:void 0;v&&n.setLanguage(v)}}),n}getAvailableLanguages(){return{languages:(0,Pt._)(this,Tn).slice()}}setLanguage(e){const n=e!=null?e:Ze;if(n!==(0,Pt._)(this,hn)){if(n&&!(0,Pt._)(this,Tn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Pt._)(this,Tn).join("', '")}'`);(0,fe._)(this,hn,n),(0,Pt._)(this,_n).next({language:n})}}getLanguage(){return{language:(0,Pt._)(this,hn)}}language$(){return(0,Pt._)(this,_n)}constructor(e,n){(0,he._)(this,Tn,{writable:!0,value:void 0}),(0,he._)(this,hn,{writable:!0,value:void 0}),(0,he._)(this,_n,{writable:!0,value:void 0}),(0,fe._)(this,Tn,e),(0,fe._)(this,hn,n),(0,fe._)(this,_n,new nt({language:(0,Pt._)(this,hn)}))}}var Me=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 fn=new WeakMap,to=new WeakMap,pn=new WeakMap,eo=new WeakSet;class Qs{addTranslationResource(e){const n=(0,Ys.W)(e);for(const s of n.resources){const a=(0,Me._)(this,eo,Vo).call(this,s.language,n.id);(0,Pt._)(this,pn).has(a)||(0,Pt._)(this,pn).set(a,s.loader)}}needsLoading(e,n){const s=(0,Me._)(this,eo,Vo).call(this,e,n);return(0,Pt._)(this,pn).get(s)?!(0,Pt._)(this,fn).has(s):!1}async load(e,n){const s=(0,Me._)(this,eo,Vo).call(this,e,n),a=(0,Pt._)(this,pn).get(s);if(!a||(0,Pt._)(this,fn).has(s))return;const c=(0,Pt._)(this,to).get(s);if(c){await c;return}const y=a().then(v=>{this.onLoad({language:e,namespace:n,messages:v.messages}),(0,Pt._)(this,fn).add(s)},v=>{throw(0,Pt._)(this,fn).add(s),v});(0,Pt._)(this,to).set(s,y),await y}constructor(e){(0,qe._)(this,eo),(0,g._)(this,"onLoad",void 0),(0,he._)(this,fn,{writable:!0,value:void 0}),(0,he._)(this,to,{writable:!0,value:void 0}),(0,he._)(this,pn,{writable:!0,value:void 0}),this.onLoad=e,(0,fe._)(this,fn,new Set),(0,fe._)(this,to,new Map),(0,fe._)(this,pn,new Map)}}function Vo(r,e){return`${r}/${e}`}var In=new WeakMap,gn=new WeakMap,tn=new WeakMap,Yo=new WeakMap,no=new WeakMap,Pr=new WeakSet,oo=new WeakSet,Qo=new WeakSet;class Jo{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,Vs.Fs)({fallbackLng:Ze,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!==Ze&&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 F=y[I];F.$$type==="@backstage/TranslationResource"?c.addTranslationResource(F):F.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Ze,F.id,Or(F.messages),!0,!1)}const v=new Jo(s,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:I})=>{(0,Me._)(v,Pr,Js).call(v,I)}),v}getTranslation(e){const n=(0,br.y)(e);return(0,Me._)(this,Qo,Rr).call(this,n),(0,Me._)(this,oo,Xo).call(this,n)}translation$(e){const n=(0,br.y)(e);return(0,Me._)(this,Qo,Rr).call(this,n),new(V())(s=>{let a={};const c=()=>{a={};const v=a;(0,Pt._)(this,gn).load((0,Pt._)(this,tn),n.id).then(()=>{if(v===a){const I=(0,Me._)(this,oo,Xo).call(this,n);I.ready&&s.next(I)}},I=>{v===a&&s.error(Array.isArray(I)?I[0]:I)})},y=()=>{const v=(0,Me._)(this,oo,Xo).call(this,n);v.ready?s.next(v):c()};return(0,Pt._)(this,gn).needsLoading((0,Pt._)(this,tn),n.id)&&c(),(0,Pt._)(this,no).add(y),()=>{(0,Pt._)(this,no).delete(y)}})}constructor(e,n,s){(0,qe._)(this,Pr),(0,qe._)(this,oo),(0,qe._)(this,Qo),(0,he._)(this,In,{writable:!0,value:void 0}),(0,he._)(this,gn,{writable:!0,value:void 0}),(0,he._)(this,tn,{writable:!0,value:void 0}),(0,he._)(this,Yo,{writable:!0,value:new Set}),(0,he._)(this,no,{writable:!0,value:new Set}),(0,fe._)(this,In,e),(0,fe._)(this,gn,n),(0,fe._)(this,tn,s)}}function Js(r){(0,Pt._)(this,tn)!==r&&((0,fe._)(this,tn,r),(0,Pt._)(this,In).changeLanguage(r),(0,Pt._)(this,no).forEach(e=>e()))}function Xo(r){return(0,Pt._)(this,gn).needsLoading((0,Pt._)(this,tn),r.id)?{ready:!1}:{ready:!0,t:(0,Pt._)(this,In).getFixedT(null,r.id)}}function Rr(r){if((0,Pt._)(this,Yo).has(r.id))return;(0,Pt._)(this,Yo).add(r.id);const e=r.getDefaultMessages();(0,Pt._)(this,In).addResourceBundle(Ze,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Pt._)(this,gn).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=cn.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 F=wr(s);s!==F&&(c=F)}}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,Ue.default)(r||(()=>Promise.resolve([])));let y;if(a&&c.loading){const{Progress:F}=e;y=(0,i.jsx)(F,{})}else if(c.error){const{BootErrorPage:F}=e;y=(0,i.jsx)(F,{step:"load-config",error:c.error})}const{ThemeProvider:v=mr}=e;return y?{node:(0,i.jsx)(Zo,{apis:un.with(Gn,n),children:(0,i.jsx)(v,{children:y})})}:{api:cn.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,Pt._)(this,_o))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,fe._)(this,_o,!0);const e=new qs(this);let n=!1;return({children:a})=>{const c=(0,d.useRef)(!0),y=(0,d.useMemo)(()=>Hn.createWithStorage(this.themes),[]),{routing:v,featureFlags:I,routeBindings:F}=(0,d.useMemo)(()=>{const xt=vs({root:a,discoverers:[ms,ys],collectors:{routing:Rn()?Cs:xs,collectedPlugins:Es,featureFlags:As}});return xt.collectedPlugins.forEach(Wt=>this.plugins.add(Wt)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...xt,routeBindings:ks(this.bindRoutes)}},[a]);n||(n=!0,Ls(v.paths,v.parents),Ms(F,this.plugins));const et=_s(this.configLoader,this.components,y),at="api"in et;if(at){const{api:xt}=et;this.configApi=xt}if("node"in et)return et.node;if(at&&c.current){c.current=!1;const xt=this.getApiHolder().get(dn.W);if(xt){for(const _t of this.featureFlags)xt.registerFlag({..._t,pluginId:""});for(const _t of this.plugins.values())if("getFeatureFlags"in _t)for(const ge of _t.getFeatureFlags())xt.registerFlag({name:ge.name,pluginId:_t.getId()});else for(const ge of _t.output())ge.type==="feature-flag"&&xt.registerFlag({name:ge.name,pluginId:_t.getId()});const Wt=xt.getRegisteredFlags(),Ht=new Set(Wt.map(_t=>_t.name));for(const _t of I)Ht.has(_t)||xt.registerFlag({name:_t,pluginId:""})}}const{ThemeProvider:vt=mr,Progress:mt}=this.components;return(0,i.jsx)(Zo,{apis:this.getApiHolder(),children:(0,i.jsx)(Bs,{appContext:e,children:(0,i.jsx)(vt,{children:(0,i.jsx)(Ds,{routePaths:v.paths,routeParents:v.parents,routeObjects:v.objects,routeBindings:F,basePath:Gs(et.api),children:(0,i.jsx)(Er.Provider,{value:{routeObjects:v.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(mt,{}),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:Gn,deps:{},factory:()=>Hn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:ue.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:me.$,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:dn.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,he._)(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 F;this.defaultApis=(F=e.defaultApis)!==null&&F!==void 0?F:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new gs,this.appLanguageApi=qn.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 et;this.translationResources=(et=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&et!==void 0?et:[]}}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:Pe})}var ro=t(2532);let Tr=!1;const Ir=r=>{const e=(0,xr.q)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>Rn(),[]),c=[...(0,ro.v)(r.children,y=>y.getElements().flatMap(v=>{let I=v.props.path;if(I==="")return[];var F;I=(F=I==null?void 0:I.replace(/\/\*$/,""))!==null&&F!==void 0?F:"/";let et=s?v:v.props.element;return!s&&!et&&(et=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:et,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:{},F=this.getParams(s);if(a.length&&F.push(`fields=${a.map(encodeURIComponent).join(",")}`),c)for(const mt of[c].flat())mt&&F.push(`order=${encodeURIComponent(mt.order)}:${encodeURIComponent(mt.field)}`);y!==void 0&&F.push(`offset=${y}`),v!==void 0&&F.push(`limit=${v}`),I!==void 0&&F.push(`after=${encodeURIComponent(I)}`);const et=F.length?`?${F.join("&")}`:"",at=await this.requestRequired("GET",`/entities${et}`,n),vt=(mt,xt)=>{var Wt,Ht;if(((Wt=mt.metadata)===null||Wt===void 0?void 0:Wt.name)===void 0||mt.kind===void 0||((Ht=xt.metadata)===null||Ht===void 0?void 0:Ht.name)===void 0||xt.kind===void 0)return 0;const _t=(0,en.eE)(mt),ge=(0,en.eE)(xt);return _t<ge?-1:_t>ge?1:0};return{items:at.sort(vt)}}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 Ve.V.fromResponse(v);const{items:I}=await v.json();return{items:I.map(F=>F!=null?F:void 0)}}async queryEntities(e={},n){const s=[];if(Dr(e)){var a,c;const{fields:v=[],filter:I,limit:F,orderFields:et,fullTextFilter:at}=e;s.push(...this.getParams(I)),F!==void 0&&s.push(`limit=${F}`),et!==void 0&&(Array.isArray(et)?et:[et]).forEach(({field:mt,order:xt})=>s.push(`orderField=${mt},${xt}`)),v.length&&s.push(`fields=${v.map(encodeURIComponent).join(",")}`);const vt=at==null||(a=at.term)===null||a===void 0?void 0:a.trim();vt&&s.push(`fullTextFilterTerm=${vt}`),!(at==null||(c=at.fields)===null||c===void 0)&&c.length&&s.push(`fullTextFilterFields=${at.fields.join(",")}`)}else{const{fields:v=[],limit:I,cursor:F}=e;s.push(`cursor=${F}`),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:F}=await y.json();if(!v)throw new Error(`Location wasn't added: ${a}`);return{location:v,entities:I,exists:F}}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 Ve.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 Ve.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 Ve.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 Ve.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:Un()}}}var Lr=t(88624),ii=t(36802),ai=t(51271),Mr=t(36434),vn=t(65524),li=t(15006),Te=t(82963),ci=t(53945),mn=t(76635);async function di({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,mn.isArray)(s))return;var a;const c=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(mn.isString).map(y=>y.split(":")).filter(y=>y.length===4&&y[0]==="entity").map(([y,v,I,F])=>(0,en.eE)({kind:v,namespace:I,name:F})).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(V())(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:Nn.Z,component:kn.Z,system:mi.Z,domain:Fn.Z,location:Zn.Z,user:Cn.Z,group:xn.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 so=new WeakMap,tr=new WeakMap,io=new WeakMap,er=new WeakMap,ao=new WeakMap,Br=new WeakSet,Ur=new WeakSet,$r=new WeakSet;class lo{static createLocal(){return new lo({renderer:jr({async:!1})})}static create(e){return new lo(e)}forEntity(e,n){const{entityRef:s,kind:a,entity:c,needsLoad:y}=(0,Me._)(this,Br,Ai).call(this,e),v=et=>{const{snapshot:at}=(0,Pt._)(this,ao).render({entityRef:s,loading:et.loading,entity:et.entity,context:n||{}});return{...at,entityRef:s,Icon:(0,Me._)(this,$r,bi).call(this,at.Icon,a)}};let I;try{I=v({loading:y,entity:c})}catch{I={primaryTitle:s,entityRef:s}}const F=y?new(V())(et=>{let at=!1;return Promise.resolve().then(()=>{var vt;return(vt=(0,Pt._)(this,io))===null||vt===void 0?void 0:vt.load(s)}).then(vt=>{if(!at&&vt&&vt.metadata.etag!==(c==null?void 0:c.metadata.etag)){const mt=v({loading:!1,entity:vt});et.next(mt)}}).catch(()=>{}).finally(()=>{at||et.complete()}),()=>{at=!0}}):void 0;return{snapshot:I,update$:F}}constructor(e){(0,qe._)(this,Br),(0,qe._)(this,Ur),(0,qe._)(this,$r),(0,he._)(this,so,{writable:!0,value:void 0}),(0,he._)(this,tr,{writable:!0,value:void 0}),(0,he._)(this,io,{writable:!0,value:void 0}),(0,he._)(this,er,{writable:!0,value:void 0}),(0,he._)(this,ao,{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 F;if(Object.entries((F=e.kindIcons)!==null&&F!==void 0?F:Ci).forEach(([et,at])=>{I[et.toLocaleLowerCase("en-US")]=at}),v.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");(0,fe._)(this,io,(0,Me._)(this,Ur,Si).call(this,{cacheTtl:s,batchDelay:c,renderer:v,catalogApi:e.catalogApi}))}(0,fe._)(this,tr,qo(s)),(0,fe._)(this,so,new Map),(0,fe._)(this,er,I),(0,fe._)(this,ao,v)}}function Ai(r){if(typeof r!="string")return{entity:r,kind:r.kind,entityRef:(0,en.eE)(r),needsLoad:!1};const e=(0,Pt._)(this,so).get(r),n=e==null?void 0:e.entity,a=(!e||Date.now()-e.updatedAt>(0,Pt._)(this,tr))&&(0,Pt._)(this,ao).async!==!1&&(0,Pt._)(this,io)!==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,Pt._)(this,so).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,Pt._)(this,er)[e.toLocaleLowerCase("en-US")])}const Re=(0,li.r)({id:"catalog",apis:[(0,Zt.n)({api:Lr.A,deps:{discoveryApi:ne.N,fetchApi:Bn.g},factory:({discoveryApi:r,fetchApi:e})=>new si({discoveryApi:r,fetchApi:e})}),(0,Zt.n)({api:ii.p,deps:{storageApi:jn},factory:({storageApi:r})=>new ui({storageApi:r})}),(0,Zt.n)({api:ai.X,deps:{catalogApi:Lr.A},factory:({catalogApi:r})=>lo.create({catalogApi:r})})],routes:{catalogIndex:vn._Z,catalogEntity:Mr.w},externalRoutes:{createComponent:vn.yw,viewTechDoc:vn.jU,createFromTemplate:vn.ql,unregisterRedirect:vn.kR}}),Ba=Re.provide((0,Te.P4)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(7241),t.e(9814)]).then(t.bind(t,39814)).then(r=>r.CatalogPage),mountPoint:vn._Z})),Oi=Re.provide((0,Te.P4)({name:"CatalogEntityPage",component:()=>t.e(8951).then(t.bind(t,78951)).then(r=>r.CatalogEntityPage),mountPoint:Mr.w})),Ua=Re.provide((0,Te.CO)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(1059),t.e(3510)]).then(t.bind(t,43510)).then(r=>r.AboutCard)}})),$a=Re.provide((0,Te.CO)({name:"EntityLinksCard",component:{lazy:()=>t.e(7750).then(t.bind(t,17750)).then(r=>r.EntityLinksCard)}})),Fa=Re.provide((0,Te.CO)({name:"EntityLabelsCard",component:{lazy:()=>t.e(5877).then(t.bind(t,85877)).then(r=>r.EntityLabelsCard)}})),Wa=Re.provide((0,Te.CO)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(5458).then(t.bind(t,5458)).then(r=>r.HasSystemsCard)}})),Na=Re.provide((0,Te.CO)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(1105).then(t.bind(t,1105)).then(r=>r.HasComponentsCard)}})),Za=Re.provide((0,Te.CO)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(2440).then(t.bind(t,82440)).then(r=>r.HasSubcomponentsCard)}})),ka=Re.provide((0,Te.CO)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(9770).then(t.bind(t,79770)).then(r=>r.HasResourcesCard)}})),Ka=Re.provide((0,Te.CO)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(9545).then(t.bind(t,19545)).then(r=>r.DependsOnComponentsCard)}})),za=Re.provide((0,Te.CO)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(184).then(t.bind(t,40184)).then(r=>r.DependencyOfComponentsCard)}})),Ha=Re.provide((0,Te.CO)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(1032).then(t.bind(t,81032)).then(r=>r.DependsOnResourcesCard)}})),Ga=Re.provide((0,Te.CO)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(3487).then(t.bind(t,33487)).then(r=>r.RelatedEntitiesCard)}})),Va=Re.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,Zt.n)({api:Wr.D,deps:{configApi:ue.D,discoveryApi:ne.N,identityApi:me.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Pi({configApi:r,discoveryApi:e,identityApi:n})}),(0,Zt.n)({api:Wr.g,deps:{configApi:ue.D,discoveryApi:ne.N,identityApi:me.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Ri({configApi:r,discoveryApi:e,identityApi:n})}),(0,Zt.n)({api:Fr.q,deps:{configApi:ue.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 ke=t(79692),Mi=t(58845);const ji=(0,ke.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,ke.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"})})},Ae=t(76921);const Nr={isOpen:!1,setOpen:()=>{}},Zr=(0,d.createContext)(Nr),kr=(0,Ye.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,ln.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),Qe=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,ke.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)(Ae.kG),y=zi({sidebarConfig:c}),v=(0,m.TH)(),{selectedMenuItemIndex:I,setSelectedMenuItemIndex:F}=(0,d.useContext)(Yr),et=(vt,mt)=>{F(mt===I?-1:mt)},at=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:et,value:a,selected:at,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,ke.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,mn.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)(Ae.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)(Qe.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)(Qe.Z,{component:"nav",children:r})]})},Qi=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ae.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,ro.v)(n,F=>F.getElements().filter(et=>et.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,ke.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)(Ae.kG),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:c}=r,y=Xr({sidebarConfig:e}),v=(0,Gr.Z)(_t=>_t.breakpoints.down("md"),{noSsr:!0}),[I,F]=(0,d.useState)(0),et=(0,d.useRef)(),{isPinned:at,toggleSidebarPinState:vt}=(0,rr.Pf)(),mt=()=>{at||a||(et.current&&(clearTimeout(et.current),et.current=void 0),I!==2&&!v&&(et.current=window.setTimeout(()=>{et.current=void 0,F(2)},n),F(1)))},xt=()=>{at||a||(et.current&&(clearTimeout(et.current),et.current=void 0),I===1?F(0):I===2&&(et.current=window.setTimeout(()=>{et.current=void 0,F(0)},s)))},Wt=I===2&&!v||at,Ht=_t=>{_t?(F(2),vt()):(F(0),vt())};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)(Qe.Z,{className:y.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:mt,onFocus:a?()=>{}:mt,onMouseLeave:a?()=>{}:xt,onBlur:a?()=>{}:xt,children:(0,i.jsx)(Qe.Z,{className:nn()(y.drawer,y.drawerWidth,{[y.drawerOpen]:Wt}),children:c})})})]})},Xi=r=>{var e;const n=(0,Ae.$E)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Ae.rW)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:c,disableExpandOnHover:y,openDelayMs:v,closeDelayMs:I}=r,{isMobile:F}=(0,rr.Pf)();return F?(0,i.jsx)(Qi,{children:c}):(0,i.jsx)(Ae.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)(Ae.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),co=t(1667),ta=t(83543),ea=t(59797),qr=t(98989);const na=(0,ke.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)(Ae.kG),a=e?n.drawerWidthOpen:n.drawerWidthClosed,c=na({left:a,submenuConfig:s}),{isHoveredOn:y}=(0,d.useContext)(Ae.Ag),[v,I]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{I(y)},[y]),(0,i.jsxs)(Qe.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?mn.isEqual:mn.isMatch;return(0,mn.isEqual)(e.pathname,r.pathname)&&v(y,a)}const sa=r=>(0,ke.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 uo(r){return(0,d.useMemo)(()=>sa(r),[r])()}const ia=(r,e)=>(0,ro.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,On.i3)(y)));return}a&&(s=es(e,(0,On.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",...F},et){let{pathname:at}=(0,m.TH)(),{pathname:vt}=(0,m.WU)(e);y||(at=at.toLocaleLowerCase("en-US"),vt=vt.toLocaleLowerCase("en-US"));let mt=at===vt;!mt&&!n&&(mt=at.startsWith(`${vt}/`));const xt=mt?I:void 0;return(0,i.jsx)(E.rU,{...F,to:e,ref:et,"aria-current":xt,style:{...s,...mt?c:void 0},className:nn()([typeof a!="function"?a:void 0,mt?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:F,className:et,...at}=r,{sidebarConfig:vt}=(0,d.useContext)(Ae.kG),mt=uo(vt),{isOpen:xt}=nr(),Wt=!xt&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Ht=(0,i.jsxs)(Qe.Z,{style:Wt,children:[(0,i.jsx)(n,{fontSize:"small"}),!xt&&c?(0,i.jsx)(qr.Z,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),_t=(0,i.jsx)(qi.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:nn()({[mt.closedItemIcon]:!xt}),children:Ht}),ge=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Qe.Z,{"data-testid":"login-button",className:mt.iconContainer,children:_t}),s&&(0,i.jsx)(or.Z,{variant:"subtitle2",component:"span",className:mt.label,children:s}),(0,i.jsx)("div",{className:mt.secondaryAction,children:F})]}),Ke=xt?ge:_t,Dn={onClick:v,className:nn()(et,mt.root,xt?mt.open:mt.closed,sr(r)&&mt.buttonItem,{[mt.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,...Dn,ref:e,onClick:as,children:Ke}):(0,i.jsx)(la,{...Dn,activeClassName:mt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...at,onClick:as,children:Ke})}),ca=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(Ae.kG),s=uo(n),[a,c]=(0,d.useState)(!1),y=(0,m.TH)(),v=ia(r,y),I=(0,Gr.Z)(vt=>vt.breakpoints.down("sm")),F=()=>{c(!0)},et=()=>{c(!1)},at=()=>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)(Ae.Ag.Provider,{value:{isHoveredOn:a,setIsHoveredOn:c},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:et,onTouchStart:a?et:F,onMouseEnter:F,className:nn()(a&&s.highlighted),children:[(0,i.jsx)(ns,{hasSubmenu:!0,className:v?s.selected:"",...e,children:at()}),a&&r]})})},os=(0,d.forwardRef)((r,e)=>{const[n]=(0,ro.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=uo(e),c=r.icon?r.icon:SearchIcon,y=()=>{r.onSearch(n),s("")},v=at=>{at.key==="Enter"&&(at.preventDefault(),y())},I=at=>{s(at.target.value)},F=at=>{at.preventDefault(),at.stopPropagation()},et=at=>{y(),at.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(os,{icon:c,to:r.to,onClick:et,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:F,onChange:I,onKeyDown:v,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const Xa=(0,co.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),_a=(0,co.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),da=(0,co.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,co.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=uo(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,ke.Z)({root:{width:Ae.po.drawerWidthClosed,height:3*Ae.po.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Ae.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,ke.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,bn.h_)(Gn),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 F=I==="light"?"dark":"light";return r.setActiveThemeId(F),F})};return(0,i.jsx)(Qe.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)(h.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=h.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)(h.Jl,{}),children:(0,i.jsx)(l.u,{})}),(0,i.jsxs)(m.AW,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(h.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(h){return(0,i.u)(h,()=>(0,o.createContext)(void 0))}function b(h){return(0,o.useContext)(d(h))}function m(h){return{set(l){globalThis[`__@backstage/${h}__`]=createContext(createVersionedValueMap(l))},reset(){delete globalThis[`__@backstage/${h}__`]}}}},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,h){const l=d(m);let p=i[l];return p||(p=h(),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),h=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=h.Z,U={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:Z,namespace:H,name:J,title:V,description:K,displayName:k,type:z}=w(T),nt=Z&&U[Z.toLocaleLowerCase("en-US")]||E,lt=(0,o.eE)({kind:Z||"unknown",namespace:H||i.zG,name:J||"unknown"}),gt=$({kind:Z,namespace:H,name:J,context:g}),Et=[k,V,gt].find(ut=>ut&&typeof ut=="string"),Rt=[Et!==lt?lt:void 0,z,K].filter(ut=>ut&&typeof ut=="string").join(" | ");return{entityRef:lt,primaryTitle:Et,secondaryTitle:Rt||void 0,Icon:nt}}function w(T){if(typeof T=="string"){let g=T.indexOf(":");const Z=T.indexOf("/");Z!==-1&&Z<g&&(g=-1);const H=g===-1?void 0:T.slice(0,g),J=Z===-1?void 0:T.slice(g+1,Z),V=T.slice(Math.max(g+1,Z+1));return{kind:H,namespace:J,name:V}}if(typeof T=="object"&&T!==null){const g=[C()(T,"kind")].find(z=>z&&typeof z=="string"),Z=[C()(T,"metadata.namespace"),C()(T,"namespace")].find(z=>z&&typeof z=="string"),H=[C()(T,"metadata.name"),C()(T,"name")].find(z=>z&&typeof z=="string"),J=[C()(T,"metadata.title")].find(z=>z&&typeof z=="string"),V=[C()(T,"metadata.description")].find(z=>z&&typeof z=="string"),K=[C()(T,"spec.profile.displayName")].find(z=>z&&typeof z=="string"),k=[C()(T,"spec.type")].find(z=>z&&typeof z=="string");return{kind:g,namespace:Z,name:H,title:J,description:V,displayName:K,type:k}}return{}}function $(T){var g,Z,H,J,V;const K=((g=T.kind)===null||g===void 0?void 0:g.toLocaleLowerCase("en-US"))||"unknown",k=T.namespace||i.zG,z=T.name||"unknown",nt=(H=T.context)===null||H===void 0||(Z=H.defaultKind)===null||Z===void 0?void 0:Z.toLocaleLowerCase("en-US"),lt=(V=T.context)===null||V===void 0||(J=V.defaultNamespace)===null||J===void 0?void 0:J.toLocaleLowerCase("en-US");let gt=z;return(lt&&k.toLocaleLowerCase("en-US")!==lt||k!==i.zG)&&(gt=`${k}/${gt}`),nt&&K.toLocaleLowerCase("en-US")!==nt&&(gt=`${K}:${gt}`),gt}},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),h=t(4190),l=t(62774),p=t(90436),S=t(60905),A=t(36444);const R=E=>{var U;const B=(0,d.Z)(Z=>{var H,J;return Z.breakpoints.down((J=(H=E.options)===null||H===void 0?void 0:H.drawerBreakpoint)!==null&&J!==void 0?J:"md")}),w=(0,b.Z)(),[$,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)(h.ZP,{open:$,onClose:()=>T(!1),anchor:(g=(U=E.options)===null||U===void 0?void 0:U.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 K}});var o=t(52322),i=t(62774),d=t(90436),b=t(38016),m=t(88013),h=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"}),U=(0,o.jsx)(x.Z,{fontSize:"small"});function B({selected:k}){return(0,o.jsx)(A.Z,{icon:E,checkedIcon:U,checked:k})}const w=(0,h.memo)(k=>{const{selected:z,value:nt,availableOptions:lt,showCounts:gt}=k,Et=gt?`${nt} (${lt==null?void 0:lt[nt]})`:nt;return(0,o.jsx)(R.Z,{control:(0,o.jsx)(B,{selected:z}),label:Et,onClick:Rt=>Rt.preventDefault()})});var $=t(79692),T=t(86619),g=t(72779),Z=t.n(g);const H=(0,$.Z)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function J(k){const z=H();return(0,o.jsx)(T.Z,{variant:"outlined",...k,className:Z()(z.input,k.className)})}var V=t(25942);function K(k){var z;const{label:nt,name:lt,path:gt,showCounts:Et,Filter:Rt,InputProps:ut,initialSelectedOptions:Ct=[]}=k,{updateFilters:X,filters:L,queryParameters:{[lt]:G}}=(0,V.wp)(),q=(0,l.h_)(S.A),{value:st}=(0,p.default)(async()=>{var ft;const yt=gt,{facets:bt}=await q.getEntityFacets({facets:[yt],filter:(ft=L.kind)===null||ft===void 0?void 0:ft.getCatalogFilters()});return Object.fromEntries(bt[yt].map(({value:Mt,count:Jt})=>[Mt,Jt]))},[L.kind]),it=(0,h.useMemo)(()=>[G].flat().filter(Boolean),[G]);var ct;const[ot,St]=(0,h.useState)(it.length?it:(ct=(z=L[lt])===null||z===void 0?void 0:z.values)!==null&&ct!==void 0?ct:Ct);(0,h.useEffect)(()=>{it.length&&St(it)},[it]);const Q=Object.keys(st!=null?st:{}),Y=ot.length&&Q.length;(0,h.useEffect)(()=>{X({[lt]:Y?new Rt(ot):void 0})},[lt,Y,ot,Rt,X]);const ht=L[lt];return ht&&typeof ht=="object"&&!("values"in ht)||!Q.length||Q.length<=1?null:(0,o.jsx)(i.Z,{pb:1,pt:1,children:(0,o.jsxs)(d.Z,{variant:"button",component:"label",children:[nt,(0,o.jsx)(m.ZP,{multiple:!0,disableCloseOnSelect:!0,options:Q,value:ot,onChange:(ft,yt)=>St(yt),renderOption:(ft,{selected:yt})=>(0,o.jsx)(w,{selected:yt,value:ft,availableOptions:st,showCounts:!!Et}),size:"small",popupIcon:(0,o.jsx)(b.Z,{"data-testid":`${String(lt)}-picker-expand`}),renderInput:ft=>(0,o.jsx)(J,{...ft,...ut})})]})})}},63833:function(_,P,t){"use strict";t.d(P,{d:function(){return X}});var o=t(52322),i=t(74314),d=t(79692),b=t(62774),m=t(90436),h=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),U=t(4967),B=t(6232),w=t(98685),$=t(62367),T=t(86540),g=t(44394),Z=t(69294),H=t(88624);function J({enabled:L}){const G=(0,g.h_)(H.A),[q]=(0,C.useState)(async()=>{if(!L)return[];const st="relations.ownedBy";return G.getEntityFacets({facets:[st]}).then(it=>it.facets[st].map(ct=>ct.value).map(ct=>{const{kind:ot,name:St,namespace:Q}=(0,i.of)(ct);return{apiVersion:"backstage.io/v1beta1",kind:ot,metadata:{name:St,namespace:Q}}}).sort((ct,ot)=>(ct.metadata.namespace||"").localeCompare(ot.metadata.namespace||"","en-US")||ct.metadata.name.localeCompare(ot.metadata.name,"en-US")||ct.kind.localeCompare(ot.kind,"en-US"))).catch(()=>[])});return(0,Z.default)(async(st,it)=>{const ct=await q;if(!ct)return{items:[]};var ot;const St=(ot=it==null?void 0:it.limit)!==null&&ot!==void 0?ot:20,{text:Q,start:Y}=V(st),ht=ct.filter(yt=>z(Q,yt)),ft=Y+St;return{items:ht.slice(0,ft),...k({entities:ht,limit:ft,payload:{text:Q,start:ft}})}},[q],{loading:!0,value:{items:[]}})}function V(L){return K(L)&&L.cursor?JSON.parse(atob(L.cursor)):{text:L.text||"",start:0}}function K(L){return!!L.cursor}function k({entities:L,limit:G,payload:q}){return L.length>G?{cursor:btoa(JSON.stringify(q))}:{}}function z(L,G){var q;const st=L.trim();return G.kind.includes(st)||((q=G.metadata.namespace)===null||q===void 0?void 0:q.includes(st))||G.metadata.name.includes(st)}function nt(){const L=(0,g.h_)(H.A);return(0,Z.default)(async(G,q)=>{const st=G,it=G;var ct;const ot=(ct=q==null?void 0:q.limit)!==null&&ct!==void 0?ct:20;if(it.cursor){const Q=await L.queryEntities({cursor:it.cursor,limit:ot});return{cursor:Q.pageInfo.nextCursor,items:[...it.items,...Q.items]}}const St=await L.queryEntities({fullTextFilter:{term:st.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:ot});return{cursor:St.pageInfo.nextCursor,items:St.items}},[],{loading:!0})}var lt=t(21638);function gt({mode:L,initialSelectedOwnersRefs:G}){const q=L==="owners-only",st=nt(),it=J({enabled:q}),[ct,ot]=q?it:st;return[ct,ot,Et({enabled:!q,initialSelectedOwnersRefs:G})]}function Et({enabled:L,initialSelectedOwnersRefs:G}){const q=(0,C.useRef)({}),st=(0,g.h_)(H.A),[,it]=(0,Z.default)(async()=>{(await st.getEntitiesByRefs({entityRefs:G})).items.forEach(ot=>{ot&&(q.current[(0,i.eE)(ot)]=ot)})},[]);return(0,lt.n)(()=>{L&&G.length>0&&it()}),{getEntity:ct=>q.current[ct],setEntity:ct=>{q.current[(0,i.eE)(ct)]=ct}}}const Rt=(0,d.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),ut=(0,o.jsx)(A.Z,{fontSize:"small"}),Ct=(0,o.jsx)(S.Z,{fontSize:"small"}),X=L=>{var G,q;const st=Rt(),{mode:it="owners-only"}=L||{},{updateFilters:ct,filters:ot,queryParameters:{owners:St}}=(0,E.wp)(),[Q,Y]=(0,C.useState)(""),ht=(0,C.useMemo)(()=>[St].flat().filter(Boolean),[St]);var ft;const[yt,bt]=(0,C.useState)(ht.length?ht:(ft=(G=ot.owners)===null||G===void 0?void 0:G.values)!==null&&ft!==void 0?ft:[]),[{value:Mt,loading:Jt},Nt,zt]=gt({mode:it,initialSelectedOwnersRefs:yt});(0,B.b)(()=>Nt({text:Q}),[Q,Nt],250);const Dt=(Mt==null?void 0:Mt.items)||[];return(0,C.useEffect)(()=>{if(ht.length){const jt=new U.rf(ht);bt(jt.values)}},[ht]),(0,C.useEffect)(()=>{ct({owners:yt.length?new U.rf(yt):void 0})},[yt,ct]),["user","group"].includes(((q=ot.kind)===null||q===void 0?void 0:q.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:Jt,options:Dt,value:yt,getOptionSelected:(jt,Gt)=>typeof Gt=="string"?(0,i.eE)(jt)===Gt:jt===Gt,getOptionLabel:jt=>{const Gt=typeof jt=="string"?zt.getEntity(jt)||(0,i.of)(jt,{defaultKind:"group",defaultNamespace:"default"}):jt;return(0,T.w)(Gt,(0,T.$)(Gt))},onChange:(jt,Gt)=>{Y(""),bt(Gt.map(ee=>{const re=typeof ee=="string"?ee:(0,i.eE)(ee);return typeof ee!="string"&&zt.setEntity(ee),re}))},filterOptions:jt=>jt,renderOption:(jt,{selected:Gt})=>{const ee=jt.kind.toLocaleLowerCase("en-US")==="group";return(0,o.jsx)(h.Z,{control:(0,o.jsx)(l.Z,{icon:ut,checkedIcon:Ct,checked:Gt}),onClick:re=>re.preventDefault(),label:(0,o.jsxs)(b.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",children:[ee?(0,o.jsx)($.Z,{fontSize:"small"}):(0,o.jsx)(w.Z,{fontSize:"small"}),"\xA0",(0,T.w)(jt,(0,T.$)(jt,{defaultKind:jt.kind}))]})})},size:"small",popupIcon:(0,o.jsx)(R.Z,{"data-testid":"owner-picker-expand"}),renderInput:jt=>(0,o.jsx)(p.Z,{...jt,className:st.input,onChange:Gt=>{Y(Gt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:jt=>{const Gt=jt.currentTarget;Math.abs(Gt.scrollHeight-Gt.clientHeight-Gt.scrollTop)<1&&(Mt!=null&&Mt.cursor)&&Nt({items:Mt.items,cursor:Mt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},84719:function(_,P,t){"use strict";t.d(P,{d:function(){return $}});var o=t(52322),i=t(74314),d=t(34106),b=t(98864),m=t(37321),h=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,Z,H){const[J,V]=(0,h.useState)(g);return(0,h.useEffect)(()=>{V(g);const K=Z==null?void 0:Z.subscribe({next:k=>{V(k)},complete:()=>{K==null||K.unsubscribe()}});return()=>{K==null||K.unsubscribe()}},H),J}function U(g,Z){const J=(0,R.I_)().get(x.X),V=[J,JSON.stringify(g),JSON.stringify(Z||null)],K=(0,h.useMemo)(()=>J?J.forEntity(typeof g=="string"||"metadata"in g?g:(0,i.eE)(g),Z):{snapshot:(0,C.n)(g,Z)},V);return E(K.snapshot,K.update$,[K])}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:Z,hideIcon:H,disableTooltip:J,defaultKind:V,defaultNamespace:K}=g,k=B(),{primaryTitle:z,secondaryTitle:nt,Icon:lt}=U(Z,{defaultKind:V,defaultNamespace:K});let gt=(0,o.jsx)(o.Fragment,{children:z});return gt=(0,o.jsxs)(S.Z,{component:"span",className:k.root,children:[lt&&!H?(0,o.jsx)(S.Z,{component:"span",className:k.icon,children:(0,o.jsx)(lt,{fontSize:"inherit"})}):null,gt]}),nt&&!J&&(gt=(0,o.jsx)(A.ZP,{enterDelay:1500,title:nt,children:gt})),gt},$=(0,h.forwardRef)((g,Z)=>{const{entityRef:H,defaultKind:J,defaultNamespace:V,title:K,children:k,hideIcon:z,...nt}=g,lt=T(g.entityRef);var gt;const Et=(gt=k!=null?k:K)!==null&>!==void 0?gt:(0,o.jsx)(w,{entityRef:H,defaultKind:J,defaultNamespace:V,hideIcon:z});return(0,o.jsx)(b.rU,{...nt,ref:Z,to:lt,children:Et})});function T(g){const Z=(0,m.t)(l.w);let H,J,V;if(typeof g=="string"){const z=(0,i.of)(g);H=z.kind,J=z.namespace,V=z.name}else"metadata"in g?(H=g.kind,J=g.metadata.namespace,V=g.metadata.name):(H=g.kind,J=g.namespace,V=g.name);H=H.toLocaleLowerCase("en-US");var K;J=(K=J==null?void 0:J.toLocaleLowerCase("en-US"))!==null&&K!==void 0?K:d.zG;const k={kind:encodeURIComponent(H),namespace:encodeURIComponent(J),name:encodeURIComponent(V)};return Z(k)}},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(h){const{entityRefs:l,hideIcons:p,...S}=h;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(h,l){const p=l==null?void 0:l.defaultKind;let S,A,R;return"metadata"in h?(S=h.kind,A=h.metadata.namespace,R=h.metadata.name):(S=h.kind,A=h.namespace,R=h.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(h,l){for(const p of["spec.profile.displayName","metadata.title"]){const S=d()(h,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 h=(0,i.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),l=p=>{const S=h();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 Rt}});var o=t(52322),i=t(44394),d=t(6542),b=t(79692),m=t(94339),h=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),U=t(4967),B=t(25942),w=t(77186),$=t(76635),T=t(64279),g=t(88624),Z=t(64039),H=t(69294),J=t(38408);function V(){const ut=(0,i.h_)(w.$),Ct=(0,i.h_)(g.A),{filters:X}=(0,B.wp)(),{value:L,loading:G}=(0,T.default)(async()=>(await ut.getBackstageIdentity()).ownershipEntityRefs,[]),{user:q,owners:st,...it}=X,{["metadata.name"]:ct,...ot}=(0,Z.wq)((0,$.compact)(Object.values(it))),[{value:St,loading:Q},Y]=(0,H.default)(async ft=>{const yt=K(ft.owners,ft.ownershipEntityRefs);if(yt===void 0)return 0;const{totalItems:bt}=await Ct.queryEntities({filter:{...ft.filter,"relations.ownedBy":yt},limit:0});return bt},[],{loading:!0});return(0,J.Z)(()=>{Object.keys(ot).length!==0&&L!==void 0&&Y({ownershipEntityRefs:L,owners:st,filter:ot})},[L,st,ot]),{count:St,loading:G||Q,filter:(0,E.useMemo)(()=>U.t$.owned(L!=null?L:[]),[L]),ownershipEntityRefs:L}}function K(ut,Ct){if(Ct===void 0)return;var X;const L=(X=ut==null?void 0:ut.values)!==null&&X!==void 0?X:[];if(L.length){const G=(0,$.intersection)(L,Ct);return G.length===0?void 0:G}return Ct}function k(){const ut=(0,i.h_)(g.A),{filters:Ct}=(0,B.wp)(),X=(0,E.useRef)(),L=(0,E.useMemo)(()=>{const{user:st,...it}=Ct,ct=(0,$.compact)(Object.values(it)),ot=(0,Z.wq)(ct),St={filter:ot,limit:0};return Object.keys(ot).length===0?(X.current=void 0,X.current):(0,$.isEqual)(St,X.current)?X.current:(X.current=St,St)},[Ct]),{value:G,loading:q}=(0,T.default)(async()=>{if(L===void 0)return 0;const{totalItems:st}=await ut.queryEntities(L);return st},[L]);return{count:G,loading:q}}var z=t(74314),nt=t(42870);function lt(){const ut=(0,i.h_)(g.A),{filters:Ct}=(0,B.wp)(),{starredEntities:X}=(0,nt.C)(),L=(0,E.useRef)(),G=(0,E.useMemo)(()=>{const{user:ct,...ot}=Ct,St=(0,$.compact)(Object.values(ot)),ht={filter:{...(0,Z.wq)(St),["metadata.name"]:Array.from(X).map(ft=>(0,z.of)(ft).name)},limit:1e3};return(0,$.isEqual)(ht,L.current)?L.current:(L.current=ht,ht)},[Ct,X]),{value:q,loading:st}=(0,T.default)(async()=>X.size?(await ut.queryEntities(G)).items.map(ot=>(0,z.eE)({kind:ot.kind,namespace:ot.metadata.namespace,name:ot.metadata.name})).filter(ot=>X.has(ot)).length:0,[G,X]),it=(0,E.useMemo)(()=>U.t$.starred(Array.from(X)),[X]);return{count:q,loading:st,filter:it}}const gt=(0,b.Z)(ut=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:ut.spacing(1,0,1,0)},title:{margin:ut.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:ut.palette.text.primary},menuItem:{minHeight:ut.spacing(6)},groupWrapper:{margin:ut.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function Et(ut){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:x.Z},{id:"starred",label:"Starred",icon:C.Z}]},{name:ut!=null?ut:"Company",items:[{id:"all",label:"All"}]}]}const Rt=ut=>{const{initialFilter:Ct,availableFilters:X}=ut,L=gt(),G=(0,i.h_)(d.D);var q;const st=(q=G.getOptionalString("organization.name"))!==null&&q!==void 0?q:"Company",{filters:it,updateFilters:ct,queryParameters:{kind:ot,user:St}}=(0,B.wp)(),Q=["starred","all"],Y=Et(st).map(re=>({...re,items:re.items.filter(({id:qt})=>["group","user"].some(de=>de===ot)?Q.includes(qt):!X||X.includes(qt))})).filter(({items:re})=>!!re.length),{count:ht,loading:ft,filter:yt}=V(),{count:bt}=k(),{count:Mt,filter:Jt,loading:Nt}=lt(),zt=(0,E.useMemo)(()=>[St].flat()[0],[St]),[Dt,jt]=(0,E.useState)(zt!=null?zt:Ct),Gt=(0,E.useMemo)(()=>({all:bt,starred:Mt,owned:ht}),[Mt,ht,bt]);(0,E.useEffect)(()=>{zt&&jt(zt)},[zt]);const ee=ft||Nt;return(0,E.useEffect)(()=>{!ee&&Dt&&Dt!=="all"&&Gt[Dt]===0&&jt("all")},[ee,Gt,Dt,jt]),(0,E.useEffect)(()=>{if(!Dt||ee)return;ct({user:(()=>Dt==="owned"?yt:Dt==="starred"?Jt:U.t$.all())()})},[Dt,Jt,yt,ct,ee]),(0,o.jsx)(m.Z,{className:L.root,children:Y.map(re=>(0,o.jsxs)(E.Fragment,{children:[(0,o.jsx)(h.Z,{variant:"subtitle2",component:"span",className:L.title,children:re.name}),(0,o.jsx)(m.Z,{className:L.groupWrapper,children:(0,o.jsx)(l.Z,{disablePadding:!0,dense:!0,role:"menu","aria-label":re.name,children:re.items.map(qt=>{var de,we;return(0,o.jsxs)(p.Z,{role:"none presentation",divider:!0,onClick:()=>jt(qt.id),selected:qt.id===((de=it.user)===null||de===void 0?void 0:de.value),className:L.menuItem,disabled:Gt[qt.id]===0,"data-testid":`user-picker-${qt.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[qt.icon&&(0,o.jsx)(S.Z,{className:L.listIcon,children:(0,o.jsx)(qt.icon,{fontSize:"small"})}),(0,o.jsx)(A.Z,{children:(0,o.jsxs)(h.Z,{variant:"body1",children:[qt.label," "]})}),(0,o.jsx)(R.Z,{children:(we=Gt[qt.id])!==null&&we!==void 0?we:"-"})]},qt.id)})})})]},re.name))})}},4967:function(_,P,t){"use strict";t.d(P,{A5:function(){return U},Bf:function(){return h},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 h{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($=>{var T;return((T=w.metadata.tags)!==null&&T!==void 0?T:[]).includes($)})}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 $=this.toUpperArray(this.value.split(/\s/)),T=this.toUpperArray([w.metadata.tags]),g=this.toUpperArray([w.metadata.name,w.metadata.title]);for(const Z of $)if(T.every(H=>H!==Z)&&g.every(H=>!H.includes(Z)))return!1;return!0}toUpperArray(w){return w.flat().filter($=>Boolean($)).map($=>$.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($=>(0,b.h)(w,i.S4).some(T=>(0,d.eE)(T)===$))}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w.reduce(($,T)=>{try{return $.push((0,d.eE)((0,d.of)(T,{defaultKind:"Group"}))),$}catch{return $}},[])}}class A{getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(w){return this.values.some($=>{var T;return((T=w.spec)===null||T===void 0?void 0:T.lifecycle)===$})}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($=>w.metadata.namespace===$)}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 $,T;return{"metadata.name":(T=($=this.refs)===null||$===void 0?void 0:$.map(g=>(0,d.of)(g).name))!==null&&T!==void 0?T:[]}}return{}}filterEntity(w){if(this.value==="starred"){var $,T;return(T=($=this.refs)===null||$===void 0?void 0:$.includes((0,d.eE)(w)))!==null&&T!==void 0?T:!0}if(this.value==="owned"){var g;const H=(0,b.h)(w,i.S4);var Z;return(Z=(g=this.refs)===null||g===void 0?void 0:g.some(J=>H.some(V=>(0,d.eE)(V)===J)))!==null&&Z!==void 0?Z:!1}return!0}toQueryValue(){return this.value}constructor(w,$){(0,o._)(this,"value",void 0),(0,o._)(this,"refs",void 0),this.value=w,this.refs=$}}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,$,T){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=w,this.isOwnedEntity=$,this.isStarredEntity=T}}class E{getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(w){var $;const T=($=w.metadata.annotations)===null||$===void 0?void 0:$["backstage.io/orphan"];return T!==void 0&&this.value.toString()===T}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class U{filterEntity(w){var $,T;const g=(w==null||(T=w.status)===null||T===void 0||($=T.items)===null||$===void 0?void 0:$.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 U},wp:function(){return B}});var o=t(52322),i=t(76635),d=t.n(i),b=t(19126),m=t.n(b),h=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,h.createContext)(void 0),U=w=>{const $=(0,A.default)(),T=(0,C.h_)(R.A),[g,Z]=(0,h.useState)({}),H=(0,l.TH)(),J=w.pagination===!0||typeof w.pagination=="object",V=w.pagination&&typeof w.pagination=="object"&&typeof w.pagination.limit=="number"?w.pagination.limit:20,{queryParameters:K,cursor:k}=(0,h.useMemo)(()=>{const G=m().parse(H.search,{ignoreQueryPrefix:!0});var q;return{queryParameters:(q=G.filters)!==null&&q!==void 0?q:{},cursor:typeof G.cursor=="string"?G.cursor:void 0}},[H]),[z,nt]=(0,h.useState)(k),[lt,gt]=(0,h.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:J?{}:void 0})),[{loading:Et,error:Rt},ut]=(0,p.default)(async()=>{const G=(0,i.compact)(Object.values(g)),q=Object.keys(g).reduce((it,ct)=>{const ot=g[ct];return ot!=null&&ot.toQueryValue&&(it[ct]=ot.toQueryValue()),it},{});if(J)if(z){if(z!==lt.appliedCursor){const it=(0,x.Gz)(G),ct=await T.queryEntities({cursor:z,limit:V});gt({appliedFilters:g,appliedCursor:z,backendEntities:ct.items,entities:ct.items.filter(it),pageInfo:ct.pageInfo})}}else{const it=(0,x.Gz)(G),ct=(0,x.wq)(G),ot=(0,x.wq)((0,i.compact)(Object.values(lt.appliedFilters)));if(!(0,i.isEqual)(ot,ct)){const St=await T.queryEntities({filter:ct,limit:V,orderFields:[{field:"metadata.name",order:"asc"}]});gt({appliedFilters:g,backendEntities:St.items,entities:St.items.filter(it),pageInfo:St.pageInfo})}}else{const it=(0,x.Gz)(G),ct=(0,x.Oq)(G),ot=(0,x.Oq)((0,i.compact)(Object.values(lt.appliedFilters)));if((0,i.isEqual)(ot,ct))gt({appliedFilters:g,backendEntities:lt.backendEntities,entities:lt.backendEntities.filter(it)});else{const St=await T.getEntities({filter:ct});gt({appliedFilters:g,backendEntities:St.items,entities:St.items.filter(it)})}}if($()){var st;const it=m().parse(H.search,{ignoreQueryPrefix:!0}),ct=m().stringify({...it,filters:q,cursor:z},{addQueryPrefix:!0,arrayFormat:"repeat"}),ot=`${window.location.pathname}${ct}`;(st=window.history)===null||st===void 0||st.replaceState(null,document.title,ot)}},[T,K,g,lt,z,J],{loading:!0});(0,S.Z)(ut,10,[g,z]);const Ct=(0,h.useCallback)(G=>{nt(void 0),Z(q=>{const st=typeof G=="function"?G(q):G;return{...q,...st}})},[]),X=(0,h.useMemo)(()=>{var G,q;if(!J)return;const st=(G=lt.pageInfo)===null||G===void 0?void 0:G.prevCursor,it=(q=lt.pageInfo)===null||q===void 0?void 0:q.nextCursor;return{prev:st?()=>nt(st):void 0,next:it?()=>nt(it):void 0}},[J,lt.pageInfo]),L=(0,h.useMemo)(()=>({filters:lt.appliedFilters,entities:lt.entities,backendEntities:lt.backendEntities,updateFilters:Ct,queryParameters:K,loading:Et,error:Rt,pageInfo:X}),[lt,Ct,K,Et,Rt,X]);return(0,o.jsx)(E.Provider,{value:L,children:w.children})};function B(){const w=(0,h.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 h(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(h(x)),[S]),R=(0,d.useCallback)(x=>p.toggleStarred(h(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 h,l;return{kind:m.kind.toLocaleLowerCase("en-US"),namespace:(l=(h=m.metadata.namespace)===null||h===void 0?void 0:h.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((h,l)=>({...h,...l.getCatalogFilters?l.getCatalogFilters():{}}),{})}function d(m){const h={};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(h,((p=l.getCatalogFilters)===null||p===void 0?void 0:p.call(l))||{})}),h}function b(m){return h=>m.every(l=>!l.filterEntity||l.filterEntity(h))}},75435:function(_,P,t){"use strict";t.d(P,{h:function(){return i}});var o=t(74314);function i(d,b,m){var h;let l=(d==null||(h=d.relations)===null||h===void 0?void 0:h.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 x},kR: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(E,U,B){(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=E,this.params=U,this.optional=B,this[d]="external"}}function h(C){var E;return new m(C.id,(E=C.params)!==null&&E!==void 0?E:[],Boolean(C.optional))}var l=t(30283);const p=h({id:"create-component",optional:!0}),S=h({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=h({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),R=h({id:"catalog:unregister-redirect",optional:!0}),x=(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=h=>{const{text:l,preTag:p,postTag:S}=h,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 h="search.results.list.items.extensions.v1",l=(x,C)=>{for(const E of x){if(!isValidElement(E))continue;const U=getComponentData(E,h);if(U!=null&&U(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:U,children:B,alignItems:w="flex-start",...$}=x,T=(0,d.z)(),g=(0,i.useCallback)(()=>{U||E&&T.captureEvent("discover",E.title,{attributes:{to:E.location},value:C})},[C,E,U,T]);return(0,o.jsx)(m.Z,{divider:!0,alignItems:w,onClickCapture:g,...$,children:B})},S=x=>{const{name:C,component:E,predicate:U=()=>!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:{[h]:U}})},A=x=>{const C=useElementFilter(x,E=>E.selectByComponentData({key:h}).getElements(),[x]);return useCallback((E,U)=>{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})})},U)},[C])},R=x=>{const{results:C,children:E,...U}=x,B=A(E);return _jsx(List,{...U,children:C.map(B)})}},2296:function(_,P,t){"use strict";t.d(P,{$L:function(){return U},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),h=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:$}=B;return(0,m.YO)({name:w,component:{sync:T=>(0,o.jsx)($,{...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}),U=()=>{const B=(0,d.pC)(),w=(0,h.v)(B,C),$=(0,h.v)(B,E),T=(0,i.useCallback)(H=>{if(!w||!H)return null;const J=A(H.name);var V;return(V=x(w,J))!==null&&V!==void 0?V:null},[w]),g=(0,i.useCallback)(H=>{const J=$.find(V=>V.name===H);return J?T(J):null},[$,T]),Z=(0,i.useCallback)(H=>{const J=$.filter(V=>V.location===H);return J.length?J.map(T):null},[$,T]);return{renderComponentByName:g,renderComponentsByLocation:Z}}},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),h=t(29651),l=t(68993),p=t(44394),S=t(6542),A=t(72388),R=t(58496);function x($,T){return T.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||($.kind=$.kind.toLocaleLowerCase(),$.name=$.name.toLocaleLowerCase(),$.namespace=$.namespace.toLocaleLowerCase()),$}const C=($,T)=>(0,m.eE)($)===(0,m.eE)(T),E={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},U=(0,h.CT)("techdocs-reader-page-context"),B=(0,i.memo)($=>{const{entityRef:T,children:g}=$,Z=(0,p.h_)(R.g),H=(0,p.h_)(S.D),J=(0,d.default)(async()=>Z.getEntityMetadata(T),[T]),V=(0,b.Z)(async()=>Z.getTechDocsMetadata(T),[T]),[K,k]=(0,i.useState)(E.title),[z,nt]=(0,i.useState)(E.subtitle),[lt,gt]=(0,i.useState)(E.shadowRoot);(0,i.useEffect)(()=>{lt&&!V.value&&!V.loading&&V.retry()},[V.value,V.loading,lt,V.retry,V]);const Et={metadata:V,entityRef:x(T,H),entityMetadata:J,shadowRoot:lt,setShadowRoot:gt,title:K,setTitle:k,subtitle:z,setSubtitle:nt},Rt=(0,l.E)({1:Et});return(0,o.jsx)(A.fC,{attributes:{entityRef:(0,m.eE)(T)},children:(0,o.jsx)(U.Provider,{value:Rt,children:g instanceof Function?g(Et):g})})},($,T)=>C($.entityRef,T.entityRef)),w=()=>{const $=(0,i.useContext)(U);if($===void 0)return E;const T=$.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 V}});var o=t(52322),i=t(2784),d=t(42398),b=t(30706),m=t(13788),h=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:K}=(0,h.wp)();return(0,i.useEffect)(()=>{K({techdocs:new C})},[K]),null};var U=t(95074),B=t(76635),w=t(538),$=t(9791),T=t(42870),g=t(16787),Z=t(45342),H=t(49079);const J=K=>{var k;const{columns:z,actions:nt,options:lt}=K,{loading:gt,error:Et,entities:Rt,filters:ut}=(0,h.wp)(),{isStarredEntity:Ct,toggleStarredEntity:X}=(0,T.C)(),[,L]=(0,U.Z)();var G;const q=(0,B.capitalize)((G=(k=ut.user)===null||k===void 0?void 0:k.value)!==null&&G!==void 0?G:"all"),st=[Z.n.createCopyDocsUrlAction(L),Z.n.createStarEntityAction(Ct,X)];return Et?(0,o.jsx)(w.G,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)($.O,{language:"text",text:Et.toString()})}):(0,o.jsx)(g.H,{title:q,entities:Rt,loading:gt,actions:nt||st,columns:z,options:lt})};J.columns=H.N,J.actions=Z.n;const V=K=>{const{initialFilter:k="owned",columns:z,actions:nt}=K;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)(h.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:k}),(0,o.jsx)(S.d,{}),(0,o.jsx)(A.x,{})]}),(0,o.jsx)(l._i.Content,{children:(0,o.jsx)(J,{actions:nt,columns:z})})]})})]})})}},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),h=t(6542),l=t(8709),p=t(75435),S=t(86540),A=t(95573),R=t(34378),x=t(70249),C=t(15929),E=t(45342),U=t(49079),B=t(51953);const w=$=>{const{entities:T,title:g,loading:Z,columns:H,actions:J,options:V}=$,[,K]=(0,d.Z)(),k=(0,b.t)(A.Fw),z=(0,m.h_)(h.D);if(!T)return null;const nt=T.map(ut=>{const Ct=(0,p.h)(ut,l.S4);var X;return{entity:ut,resolved:{docsUrl:k({namespace:(0,B.D)((X=ut.metadata.namespace)!==null&&X!==void 0?X:"default",z),kind:(0,B.D)(ut.kind,z),name:(0,B.D)(ut.metadata.name,z)}),ownedByRelations:Ct,ownedByRelationsTitle:Ct.map(L=>(0,S.$)(L,{defaultKind:"group"})).join(", ")}}}),lt=[U.N.createNameColumn(),U.N.createOwnerColumn(),U.N.createKindColumn(),U.N.createTypeColumn()],gt=[E.n.createCopyDocsUrlAction(K)],Et=20,Rt=nt&&nt.length>Et;return(0,o.jsx)(o.Fragment,{children:Z||nt&&nt.length>0?(0,o.jsx)(R.i,{isLoading:Z,options:{paging:Rt,pageSize:Et,search:!0,actionsColumnIndex:-1,...V},data:nt,columns:H||lt,actions:J||gt,title:g?`${g} (${nt.length})`:`All (${nt.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=U.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),h=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)(h.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 h(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)(h,{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 h}});var o=t(52322),i=t(2784),d=t(32166),b=t(44394),m=t(6542);const h=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 Rt},I6:function(){return ut},s4:function(){return nt}});var o=t(58496),i=t(87612),d=t(41385),b=t(48998),m=t(30474);class h extends Error{constructor(L,G){var q,st;let it=L;if(G!==void 0){const ct=(0,b.n)(G);it?it+=`; caused by ${ct}`:it=`caused by ${ct}`}super(it),(0,i._)(this,"cause",void 0),(q=(st=Error).captureStackTrace)===null||q===void 0||q.call(st,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,m.V)(G)?G:void 0}}class l extends null{constructor(...L){super(...L),_define_property(this,"name","InputError")}}class p extends null{constructor(...L){super(...L),_define_property(this,"name","AuthenticationError")}}class S extends null{constructor(...L){super(...L),_define_property(this,"name","NotAllowedError")}}class A extends h{constructor(...L){super(...L),(0,i._)(this,"name","NotFoundError")}}class R extends null{constructor(...L){super(...L),_define_property(this,"name","ConflictError")}}class x extends null{constructor(...L){super(...L),_define_property(this,"name","NotModifiedError")}}class C extends null{constructor(...L){super(...L),_define_property(this,"name","NotImplementedError")}}class E extends null{}class U extends null{constructor(L,G){super(L,G),this.name=isError(G)?G.name:"Error"}}var B=t(54847);class w{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(L){const{kind:G,namespace:q,name:st}=L,ct=`${await this.getApiOrigin()}/metadata/techdocs/${q}/${G}/${st}`,ot=await this.fetchApi.fetch(`${ct}`);if(!ot.ok)throw await d.V.fromResponse(ot);return await ot.json()}async getEntityMetadata(L){const{kind:G,namespace:q,name:st}=L,ct=`${await this.getApiOrigin()}/metadata/entity/${q}/${G}/${st}`,ot=await this.fetchApi.fetch(`${ct}`);if(!ot.ok)throw await d.V.fromResponse(ot);return await ot.json()}constructor(L){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=L.configApi,this.discoveryApi=L.discoveryApi,this.fetchApi=L.fetchApi}}class ${async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var L;return(L=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&L!==void 0?L:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(L,G){const{kind:q,namespace:st,name:it}=L,ot=`${await this.getStorageUrl()}/${st}/${q}/${it}/${G}`,St=await this.fetchApi.fetch(`${ot.endsWith("/")?ot:`${ot}/`}index.html`);let Q="";switch(St.status){case 404:throw Q="Page not found. ",G||(Q+="This could be because there is no index.md file in the root of the docs directory of this repository."),new A(Q);case 500:throw Q="Could not generate documentation or an error in the TechDocs backend. ",new Error(Q);default:break}return St.text()}async syncEntityDocs(L,G=()=>{}){const{kind:q,namespace:st,name:it}=L,ot=`${await this.getApiOrigin()}/sync/${st}/${q}/${it}`,{token:St}=await this.identityApi.getCredentials();return new Promise((Q,Y)=>{const ht=new B.EventSourcePolyfill(ot,{withCredentials:!0,headers:St?{Authorization:`Bearer ${St}`}:{}});ht.addEventListener("log",ft=>{ft.data&&G(JSON.parse(ft.data))}),ht.addEventListener("finish",ft=>{let yt=!1;ft.data&&({updated:yt}=JSON.parse(ft.data)),Q(yt?"updated":"cached")}),ht.onerror=ft=>{switch(ht.close(),ft.status){case 404:Y(new A(ft.message));return;default:Y(new Error(ft.data));return}}})}async getBaseUrl(L,G,q){const{kind:st,namespace:it,name:ct}=G,St=`${await this.getApiOrigin()}/static/docs/${it}/${st}/${ct}/${q}`;return new URL(L,St.endsWith("/")?St:`${St}/`).toString()}constructor(L){(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=L.configApi,this.discoveryApi=L.discoveryApi,this.identityApi=L.identityApi,this.fetchApi=L.fetchApi}}var T=t(95573),g=t(15006),Z=t(42380),H=t(6542),J=t(96727),V=t(77186),K=t(85094),k=t(82963),z=t(53945);const nt=(0,g.r)({id:"techdocs",apis:[(0,Z.n)({api:o.D,deps:{configApi:H.D,discoveryApi:J.N,identityApi:V.$,fetchApi:K.g},factory:({configApi:X,discoveryApi:L,identityApi:G,fetchApi:q})=>new $({configApi:X,discoveryApi:L,identityApi:G,fetchApi:q})}),(0,Z.n)({api:o.g,deps:{configApi:H.D,discoveryApi:J.N,fetchApi:K.g},factory:({configApi:X,discoveryApi:L,fetchApi:G})=>new w({configApi:X,discoveryApi:L,fetchApi:G})})],routes:{root:T._Z,docRoot:T.Fw,entityContent:T.pd}}),lt=nt.provide((0,k.P4)({name:"TechdocsPage",component:()=>t.e(8096).then(t.bind(t,8096)).then(X=>X.Router),mountPoint:T._Z})),gt=nt.provide((0,k.P4)({name:"EntityTechdocsContent",component:()=>t.e(8096).then(t.bind(t,8096)).then(X=>X.EmbeddedDocsRouter),mountPoint:T.pd})),Et=nt.provide((0,k.P4)({name:"TechDocsCustomHome",component:()=>t.e(4109).then(t.bind(t,44109)).then(X=>X.TechDocsCustomHome),mountPoint:T._Z})),Rt=nt.provide((0,k.P4)({name:"TechDocsIndexPage",component:()=>t.e(8662).then(t.bind(t,18662)).then(X=>X.TechDocsIndexPage),mountPoint:T._Z})),ut=nt.provide((0,k.P4)({name:"TechDocsReaderPage",component:()=>t.e(5914).then(t.bind(t,35914)).then(X=>X.TechDocsReaderPage),mountPoint:T.Fw})),Ct=nt.provide((0,z.E5)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,55511)).then(X=>X.TechDocsSearchResultListItem),predicate:X=>X.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),h=t(70882),l=t(50236),p=t(19219),S=t(55015);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",R=f=>{(0,i.useEffect)(()=>{if(!f)return()=>{};const O=f.querySelectorAll('head > link[rel="stylesheet"]');var M;let W=(M=O==null?void 0:O.length)!==null&&M!==void 0?M:0;const tt=new CustomEvent(A);if(!W)return f.dispatchEvent(tt),()=>{};const rt=()=>{--W===0&&f.dispatchEvent(tt)};return O==null||O.forEach(pt=>{pt.addEventListener("load",rt)}),()=>{O==null||O.forEach(pt=>{pt.removeEventListener("load",rt)})}},[f])},x=f=>{const[O,M]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!f)return()=>{};M(!0);const W=f.style;W.setProperty("opacity","0");const tt=()=>{M(!1),W.setProperty("opacity","1")};return f.addEventListener(A,tt),()=>{f.removeEventListener(A,tt)}},[f]),O},C=f=>{const{element:O,onAppend:M,children:W}=f,[tt,rt]=(0,i.useState)((0,h.Ue)({...(0,l.Z)(),insertionPoint:void 0}));R(O);const pt=x(O),At=(0,i.useCallback)(It=>{if(!O||!It)return;rt((0,h.Ue)({...(0,l.Z)(),insertionPoint:O.querySelector("head")||void 0}));let $t=It.shadowRoot;$t||($t=It.attachShadow({mode:"open"})),$t.replaceChildren(O),typeof M=="function"&&M($t)},[O,M]);return(0,o.jsxs)(o.Fragment,{children:[pt&&(0,o.jsx)(S.E,{}),(0,o.jsxs)(p.ZP,{jss:tt,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:At,"data-testid":"techdocs-native-shadowroot"}),W]})]})};var E=t(54073);const U=()=>{const{shadowRoot:f}=(0,m.x)();return f},B=f=>{const O=U();return O?f.map(M=>O==null?void 0:O.querySelectorAll(M)).filter(M=>M.length).map(M=>Array.from(M)).flat():[]},w=f=>f.toString()&&f.rangeCount&&f.getRangeAt(0).getBoundingClientRect().top,$=(f=0)=>{const O=U(),[M,W]=useState(null),tt=useMemo(()=>debounce(()=>{const rt=O,pt=rt.getSelection?rt.getSelection():document.getSelection();pt&&w(pt)?W(pt):W(null)},f),[O,W,f]);return useEffect(()=>(window.document.addEventListener("selectionchange",tt),()=>{tt.cancel(),window.document.removeEventListener("selectionchange",tt)}),[tt]),M};var T=t(87435),g=t(42398),Z=t(76635),H=t(64279),J=t(1849),V=t(29651),K=t(68993),k=t(44394),z=t(62369),nt=t(72388),lt=t(6542),gt=t(95965);const Et=(0,gt.T)({id:"plugin.search.queryservice"});class Rt{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(O){_define_property(this,"mockedResults",void 0),this.mockedResults=O}}const ut=(0,V.CT)("search-context"),Ct=()=>{const f=(0,i.useContext)(ut);if(!f)throw new Error("useSearch must be used within a SearchContextProvider");const O=f.atVersion(1);if(!O)throw new Error("No SearchContext v1 found");return O},X=()=>(0,i.useContext)(ut)!==void 0,L={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},G=(f=L)=>{var O,M,W,tt;const rt=(0,k.h_)(Et),pt=(0,z.z)(),[At,It]=(0,i.useState)(f.term),[$t,Yt]=(0,i.useState)(f.types),[Ft,wt]=(0,i.useState)(f.filters),[le,ye]=(0,i.useState)(f.pageLimit),[Qt,Bt]=(0,i.useState)(f.pageCursor),oe=(0,J.Z)(At),Ee=(0,J.Z)(Ft),Lt=(0,H.default)(async()=>{const ce=await rt.query({term:At,types:$t,filters:Ft,pageLimit:le,pageCursor:Qt});return At&&ce.numberOfResults!==void 0&&pt.captureEvent("search",At,{value:ce.numberOfResults}),ce},[At,$t,Ft,le,Qt]),Kt=!Lt.loading&&!Lt.error&&((O=Lt.value)===null||O===void 0?void 0:O.nextPageCursor),Xt=!Lt.loading&&!Lt.error&&((M=Lt.value)===null||M===void 0?void 0:M.previousPageCursor),Ce=(0,i.useCallback)(()=>{var ce;Bt((ce=Lt.value)===null||ce===void 0?void 0:ce.nextPageCursor)},[(W=Lt.value)===null||W===void 0?void 0:W.nextPageCursor]),Pe=(0,i.useCallback)(()=>{var ce;Bt((ce=Lt.value)===null||ce===void 0?void 0:ce.previousPageCursor)},[(tt=Lt.value)===null||tt===void 0?void 0:tt.previousPageCursor]);return(0,i.useEffect)(()=>{oe!==void 0&&At!==oe&&Bt(void 0)},[At,oe,Bt]),(0,i.useEffect)(()=>{Ee!==void 0&&!(0,Z.isEqual)(Ft,Ee)&&Bt(void 0)},[Ft,Ee,Bt]),{result:Lt,term:At,setTerm:It,types:$t,setTypes:Yt,filters:Ft,setFilters:wt,pageLimit:le,setPageLimit:ye,pageCursor:Qt,setPageCursor:Bt,fetchNextPage:Kt?Ce:void 0,fetchPreviousPage:Xt?Pe:void 0}},q=f=>{const{initialState:O,children:M}=f,W=G(O);return(0,o.jsx)(nt.fC,{attributes:{searchTypes:W.types.sort().join(",")},children:(0,o.jsx)(ut.Provider,{value:(0,K.E)({1:W}),children:M})})},st=f=>{const{initialState:O,inheritParentContextIfAvailable:M,children:W}=f,tt=X(),rt=(0,k.h_)(lt.D),pt=O!=null?O:{},At=rt.has("search.query.pageLimit")?{pageLimit:rt.getNumber("search.query.pageLimit")}:{},It={...L,...pt,...At};return tt&&M?(0,o.jsx)(o.Fragment,{children:W}):(0,o.jsx)(q,{initialState:It,children:W})};var it=t(4614),ct=t(88013),ot=t(50581),St=t(61837),Q=t(86619),Y=t(77277),ht=t(21853),ft=t(48760);function yt(f){return(0,i.forwardRef)((O,M)=>(0,o.jsx)(st,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(f,{...O,ref:M})}))}const bt=yt((0,i.forwardRef)((f,O)=>{const{onChange:M,onKeyDown:W=()=>{},onClear:tt=()=>{},onSubmit:rt=()=>{},debounceTime:pt=200,clearButton:At=!0,fullWidth:It=!0,value:$t,label:Yt,placeholder:Ft,inputProps:wt={},InputProps:le={},endAdornment:ye,...Qt}=f,Bt=(0,k.h_)(lt.D),[oe,Ee]=(0,i.useState)(""),Lt=(0,i.useRef)("");(0,i.useEffect)(()=>{Ee(pe=>pe===Lt.current?String($t):pe)},[$t,Lt]),(0,ft.Z)(()=>{Lt.current=oe,M(oe)},pt,[oe]);const Kt=(0,i.useCallback)(pe=>{Ee(pe.target.value)},[Ee]),Xt=(0,i.useCallback)(pe=>{W&&W(pe),rt&&pe.key==="Enter"&&rt()},[W,rt]),Ce=(0,i.useCallback)(()=>{Lt.current="",M(""),Ee(""),tt&&tt()},[M,tt]),Pe=Yt?void 0:"Search",Ue=Ft!=null?Ft:`Search in ${Bt.getOptionalString("app.title")||"Backstage"}`,ce=(0,o.jsx)(ot.Z,{position:"start",children:(0,o.jsx)(St.Z,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(ht.Z,{})})}),We=(0,o.jsx)(ot.Z,{position:"end",children:(0,o.jsx)(Y.Z,{"aria-label":"Clear",size:"small",onClick:Ce,onKeyDown:pe=>{pe.key==="Enter"&&pe.stopPropagation()},children:"Clear"})});return(0,o.jsx)(Q.Z,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:O,value:oe,label:Yt,placeholder:Ue,InputProps:{startAdornment:ce,endAdornment:At?We:ye,...le},inputProps:{"aria-label":Pe,...wt},fullWidth:It,onChange:Kt,onKeyDown:Xt,...Qt})})),Mt=yt((0,i.forwardRef)((f,O)=>{const{value:M="",onChange:W,...tt}=f,{term:rt,setTerm:pt}=Ct();(0,i.useEffect)(()=>{M&&pt(String(M))},[M,pt]);const At=(0,i.useCallback)(It=>{W?W(It):pt(It)},[W,pt]);return(0,o.jsx)(nt.fC,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(bt,{...tt,ref:O,value:rt,onChange:At})})})),Jt=(0,d.Z)(f=>({loading:{right:f.spacing(1),position:"absolute"}})),Nt=f=>O=>(0,o.jsx)(st,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(f,{...O})}),zt=()=>{const f=Jt();return(0,o.jsx)(it.Z,{className:f.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Dt=Nt(function(O){const{loading:M,value:W,onChange:tt=()=>{},options:rt=[],getOptionLabel:pt=Lt=>String(Lt),inputPlaceholder:At,inputDebounceTime:It,freeSolo:$t=!0,fullWidth:Yt=!0,clearOnBlur:Ft=!1,"data-testid":wt="search-autocomplete",...le}=O,{setTerm:ye}=Ct(),Qt=(0,i.useCallback)(Lt=>Lt?typeof Lt=="string"?Lt:pt(Lt):"",[pt]),Bt=(0,i.useMemo)(()=>Qt(W),[W,Qt]),oe=(0,i.useCallback)((Lt,Kt,Xt,Ce)=>{ye(Qt(Kt)),tt(Lt,Kt,Xt,Ce)},[Qt,ye,tt]),Ee=(0,i.useCallback)(({InputProps:{ref:Lt,className:Kt,endAdornment:Xt},InputLabelProps:Ce,...Pe})=>(0,o.jsx)(Mt,{...Pe,ref:Lt,clearButton:!1,value:Bt,placeholder:At,debounceTime:It,endAdornment:M?(0,o.jsx)(zt,{}):Xt,InputProps:{className:Kt}}),[M,Bt,At,It]);return(0,o.jsx)(ct.ZP,{...le,"data-testid":wt,value:W,onChange:oe,options:rt,getOptionLabel:pt,renderInput:Ee,freeSolo:$t,fullWidth:Yt,clearOnBlur:Ft})});var jt=t(73557),Gt=t(55511);const ee=f=>f==null?void 0:f.document,re=f=>{const{entityId:O,entityTitle:M,debounceTime:W=150}=f,[tt,rt]=(0,i.useState)(!1),pt=(0,jt.s0)(),{setFilters:At,result:{loading:It,value:$t}}=Ct(),[Yt,Ft]=(0,i.useState)([]);(0,i.useEffect)(()=>{let Bt=!0;if(Bt&&$t){const oe=$t.results.slice(0,10);Ft(oe)}return()=>{Bt=!1}},[It,$t]);const{kind:wt,name:le,namespace:ye}=O;(0,i.useEffect)(()=>{At(Bt=>({...Bt,kind:wt,namespace:ye,name:le}))},[wt,ye,le,At]);const Qt=(Bt,oe)=>{if(ee(oe)){const{location:Ee}=oe.document;pt(Ee)}};return(0,o.jsx)(Dt,{"data-testid":"techdocs-search-bar",size:"small",open:tt,getOptionLabel:()=>"",filterOptions:Bt=>Bt,onClose:()=>{rt(!1)},onFocus:()=>{rt(!0)},onChange:Qt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Yt,renderOption:({document:Bt,highlight:oe})=>(0,o.jsx)(Gt.TechDocsSearchResultListItem,{result:Bt,lineClamp:3,asListItem:!1,asLink:!1,title:Bt.title,highlight:oe}),loading:It,inputDebounceTime:W,inputPlaceholder:`Search ${M||O.name} docs`,freeSolo:!1})},qt=f=>{const O={term:"",types:["techdocs"],pageCursor:"",filters:f.entityId};return(0,o.jsx)(st,{initialState:O,children:(0,o.jsx)(re,{...f})})};var de=t(99688),we=t(80851);const ze=(0,i.lazy)(()=>Promise.all([t.e(8629),t.e(6051)]).then(t.bind(t,76051)).then(f=>({default:f.RealLogViewer})));function Je(f){const{Progress:O}=(0,we.q)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(O,{}),children:(0,o.jsx)(ze,{...f})})}var xe=t(42494),Xe=t(90436),He=t(4190),Ge=t(87685);const se=(0,d.Z)(f=>(0,xe.Z)({paper:{width:"100%",[f.breakpoints.up("sm")]:{width:"75%"},[f.breakpoints.up("md")]:{width:"50%"},padding:f.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:f.palette.background.default}})),on=({buildLog:f,onClose:O})=>{const M=se(),W=f.length===0?"Waiting for logs...":f.join(`
|
|
2
|
-
`);return(0,o.jsxs)(b.Z,{container:!0,direction:"column",className:M.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)(St.Z,{title:"Close the drawer",onClick:O,color:"inherit",children:(0,o.jsx)(Ge.Z,{})},"dismiss")]}),(0,o.jsx)(b.Z,{item:!0,xs:!0,children:(0,o.jsx)(Je,{text:W,classes:{root:M.logs}})})]})},Oe=({buildLog:f})=>{const O=se(),[M,W]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Y.Z,{color:"inherit",onClick:()=>W(!0),children:"Show Build Logs"}),(0,o.jsx)(He.ZP,{classes:{paper:O.paper},anchor:"right",open:M,onClose:()=>W(!1),children:(0,o.jsx)(on,{buildLog:f,onClose:()=>W(!1)})})]})},_e=({errorMessage:f})=>{const O=(0,k.h_)(lt.D).getOptionalString("techdocs.builder"),M=(0,z.z)(),{entityRef:W}=(0,m.x)(),tt=(0,jt.TH)();(0,i.useEffect)(()=>{const{pathname:pt,search:At,hash:It}=tt;M.captureEvent("not-found",`${pt}${At}${It}`,{attributes:W})},[M,W,tt]);let rt="";return O!=="local"&&(rt="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:f||"Documentation not found",additionalInfo:rt})};var rn=t(77446),ie=t(58496);function $e({contentLoading:f,content:O,activeSyncState:M}){return f||M==="BUILD_READY_RELOAD"||!O&&M==="CHECKING"?"CHECKING":!O&&M==="BUILDING"?"INITIAL_BUILD":O?M==="BUILDING"?"CONTENT_STALE_REFRESHING":M==="BUILD_READY"?"CONTENT_STALE_READY":M==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Ne(f,O){const M={...f};switch(O.type){case"sync":O.state==="CHECKING"&&(M.buildLog=[]),M.activeSyncState=O.state,M.syncError=O.syncError;break;case"contentLoading":M.contentLoading=!0,M.contentError=void 0;break;case"content":typeof O.path=="string"&&(M.path=O.path),M.contentLoading=!1,M.content=O.content,M.contentError=O.contentError;break;case"buildLog":M.buildLog=M.buildLog.concat(O.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(M.activeSyncState)&&["contentLoading","content"].includes(O.type)&&(M.activeSyncState="UP_TO_DATE",M.buildLog=[]),M}function Se(f,O,M,W){var tt,rt;const[pt,At]=(0,i.useReducer)(Ne,{activeSyncState:"CHECKING",path:W,contentLoading:!0,buildLog:[]}),It=(0,k.h_)(ie.D),{retry:$t}=(0,rn.Z)(async()=>{At({type:"contentLoading"});try{const wt=await It.getEntityDocs({kind:f,namespace:O,name:M},W);return At({type:"content",content:wt,path:W}),wt}catch(wt){At({type:"content",contentError:wt,path:W})}},[It,f,O,M,W]),Yt=(0,i.useRef)({content:void 0,reload:()=>{}});return Yt.current={content:pt.content,reload:$t},(0,H.default)(async()=>{At({type:"sync",state:"CHECKING"});const wt=setTimeout(()=>{At({type:"sync",state:"BUILDING"})},1e3);try{switch(await It.syncEntityDocs({kind:f,namespace:O,name:M},ye=>{At({type:"buildLog",log:ye})})){case"updated":Yt.current.content?At({type:"sync",state:"BUILD_READY"}):(Yt.current.reload(),At({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":At({type:"sync",state:"UP_TO_DATE"});break;default:At({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(le){At({type:"sync",state:"ERROR",syncError:le})}finally{clearTimeout(wt)}},[f,M,O,It,At,Yt]),{state:(0,i.useMemo)(()=>$e({activeSyncState:pt.activeSyncState,contentLoading:pt.contentLoading,content:pt.content}),[pt.activeSyncState,pt.content,pt.contentLoading]),contentReload:$t,path:pt.path,content:pt.content,contentErrorMessage:(tt=pt.contentError)===null||tt===void 0?void 0:tt.toString(),syncErrorMessage:(rt=pt.syncError)===null||rt===void 0?void 0:rt.toString(),buildLog:pt.buildLog}}const je=(0,i.createContext)({}),Be=()=>(0,i.useContext)(je),j=f=>{const{children:O}=f,{"*":M=""}=(0,jt.UO)(),{entityRef:W}=(0,m.x)(),{kind:tt,namespace:rt,name:pt}=W,At=Se(tt,rt,pt,M);return(0,o.jsx)(je.Provider,{value:At,children:O instanceof Function?O(At):O})},u=f=>O=>(0,o.jsx)(j,{children:(0,o.jsx)(f,{...O})}),D=(0,d.Z)(f=>({root:{marginBottom:f.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),N=()=>{let f=null;const O=D(),{state:M,contentReload:W,contentErrorMessage:tt,syncErrorMessage:rt,buildLog:pt}=Be();return M==="INITIAL_BUILD"&&(f=(0,o.jsx)(de.Z,{classes:{root:O.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(it.Z,{size:"24px"}),action:(0,o.jsx)(Oe,{buildLog:pt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),M==="CONTENT_STALE_REFRESHING"&&(f=(0,o.jsx)(de.Z,{variant:"outlined",severity:"info",icon:(0,o.jsx)(it.Z,{size:"24px"}),action:(0,o.jsx)(Oe,{buildLog:pt}),classes:{root:O.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),M==="CONTENT_STALE_READY"&&(f=(0,o.jsx)(de.Z,{variant:"outlined",severity:"success",action:(0,o.jsx)(Y.Z,{color:"inherit",onClick:()=>W(),children:"Refresh"}),classes:{root:O.root},children:"A newer version of this documentation is now available, please refresh to view."})),M==="CONTENT_STALE_ERROR"&&(f=(0,o.jsxs)(de.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Oe,{buildLog:pt}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",rt]})),M==="CONTENT_NOT_FOUND"&&(f=(0,o.jsxs)(o.Fragment,{children:[rt&&(0,o.jsxs)(de.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Oe,{buildLog:pt}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",rt]}),(0,o.jsx)(_e,{errorMessage:tt})]})),f};var dt=t(60364),Ot=t(41156),Tt=t(91657),ae=t(35368),te=t.n(ae);const kt=/main\.[A-Fa-f0-9]{8}\.min\.css$/,Ut=/^https:\/\/fonts\.googleapis\.com/,ve=/^https:\/\/fonts\.gstatic\.com/,Ie=f=>f.nodeName==="LINK",Zt=f=>{const O=(f==null?void 0:f.getAttribute("href"))||"",M=O.match(kt),W=O.match(Ut),tt=O.match(ve);return M||W||tt},ne=f=>(Ie(f)&&!Zt(f)&&f.remove(),f),ue=f=>f.nodeName==="IFRAME",Ln=(f,O)=>{const M=f.getAttribute("src")||"";try{const{host:W}=new URL(M);return O.includes(W)}catch{return!1}},ho=f=>O=>(ue(O)&&!Ln(O,f)&&O.remove(),O),Mn=()=>{const f=(0,k.h_)(lt.D);return(0,i.useMemo)(()=>f.getOptionalConfig("techdocs.sanitizer"),[f])},jn=()=>{const f=Mn();return(0,i.useCallback)(async O=>{const M=f==null?void 0:f.getOptionalStringArray("allowedIframeHosts");te().addHook("beforeSanitizeElements",ne);const W=["link"];return M&&(W.push("iframe"),te().addHook("beforeSanitizeElements",ho(M))),te().sanitize(O.outerHTML,{ADD_TAGS:W,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[f])};var Bn=t(93539),me=t(41128),De=({theme:f})=>`
|
|
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: ${f.palette.text.primary};
|
|
12
|
-
--md-default-fg-color--light: ${f.palette.text.secondary};
|
|
13
|
-
--md-default-fg-color--lighter: ${(0,me.$n)(f.palette.text.secondary,.7)};
|
|
14
|
-
--md-default-fg-color--lightest: ${(0,me.$n)(f.palette.text.secondary,.3)};
|
|
15
|
-
|
|
16
|
-
/* BACKGROUND */
|
|
17
|
-
--md-default-bg-color:${f.palette.background.default};
|
|
18
|
-
--md-default-bg-color--light: ${f.palette.background.paper};
|
|
19
|
-
--md-default-bg-color--lighter: ${(0,me.$n)(f.palette.background.paper,.7)};
|
|
20
|
-
--md-default-bg-color--lightest: ${(0,me.$n)(f.palette.background.paper,.3)};
|
|
21
|
-
|
|
22
|
-
/* PRIMARY */
|
|
23
|
-
--md-primary-fg-color: ${f.palette.primary.main};
|
|
24
|
-
--md-primary-fg-color--light: ${f.palette.primary.light};
|
|
25
|
-
--md-primary-fg-color--dark: ${f.palette.primary.dark};
|
|
26
|
-
--md-primary-bg-color: ${f.palette.primary.contrastText};
|
|
27
|
-
--md-primary-bg-color--light: ${(0,me.$n)(f.palette.primary.contrastText,.7)};
|
|
28
|
-
|
|
29
|
-
/* ACCENT */
|
|
30
|
-
--md-accent-fg-color: var(--md-primary-fg-color);
|
|
31
|
-
|
|
32
|
-
/* SHADOW */
|
|
33
|
-
--md-shadow-z1: ${f.shadows[1]};
|
|
34
|
-
--md-shadow-z2: ${f.shadows[2]};
|
|
35
|
-
--md-shadow-z3: ${f.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: ${f.palette.text.primary};
|
|
72
|
-
--md-code-bg-color: ${f.palette.background.paper};
|
|
73
|
-
--md-code-hl-color: ${(0,me.Fq)(f.palette.warning.main,.5)};
|
|
74
|
-
--md-code-hl-keyword-color: ${f.palette.type==="dark"?f.palette.primary.light:f.palette.primary.dark};
|
|
75
|
-
--md-code-hl-function-color: ${f.palette.type==="dark"?f.palette.secondary.light:f.palette.secondary.dark};
|
|
76
|
-
--md-code-hl-string-color: ${f.palette.type==="dark"?f.palette.success.light:f.palette.success.dark};
|
|
77
|
-
--md-code-hl-number-color: ${f.palette.type==="dark"?f.palette.error.light:f.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: ${f.palette.link};
|
|
91
|
-
--md-typeset-table-color: ${f.palette.text.primary};
|
|
92
|
-
--md-typeset-del-color: ${f.palette.type==="dark"?(0,me.Fq)(f.palette.error.dark,.5):(0,me.Fq)(f.palette.error.light,.5)};
|
|
93
|
-
--md-typeset-ins-color: ${f.palette.type==="dark"?(0,me.Fq)(f.palette.success.dark,.5):(0,me.Fq)(f.palette.success.light,.5)};
|
|
94
|
-
--md-typeset-mark-color: ${f.palette.type==="dark"?(0,me.Fq)(f.palette.warning.dark,.5):(0,me.Fq)(f.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:f})=>`
|
|
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: ${f.typography.fontFamily};
|
|
117
|
-
font-family: var(--md-text-font-family);
|
|
118
|
-
background-color: unset;
|
|
119
|
-
}
|
|
120
|
-
`;const Ve="224px";var po=({theme:f,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:${f.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: ${f.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 + ${Ve})`:"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 Un=["h1","h2","h3","h4","h5","h6"];var go=({theme:f})=>`
|
|
340
|
-
/*================== Typeset ==================*/
|
|
341
|
-
|
|
342
|
-
.md-typeset {
|
|
343
|
-
font-size: var(--md-typeset-font-size);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
${Un.reduce((O,M)=>{var W;const tt=(W=f.typography.htmlFontSize)!==null&&W!==void 0?W:16,rt=f.typography[M],{lineHeight:pt,fontFamily:At,fontWeight:It,fontSize:$t}=rt,Yt=Ft=>{let wt=1;return typeof Ft=="number"&&(wt=Ft/tt*.6),typeof Ft=="string"&&(wt=Ft.replace("rem","")),`calc(${wt} * var(--md-typeset-font-size))`};return O.concat(`
|
|
347
|
-
.md-typeset ${M} {
|
|
348
|
-
color: var(--md-default-fg-color);
|
|
349
|
-
line-height: ${pt};
|
|
350
|
-
font-family: ${At};
|
|
351
|
-
font-weight: ${It};
|
|
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 ${f.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
|
-
`,Fe=({theme:f})=>`
|
|
415
|
-
/*================== Extensions ==================*/
|
|
416
|
-
|
|
417
|
-
/* HIGHLIGHT */
|
|
418
|
-
.highlight .md-clipboard:after {
|
|
419
|
-
content: unset;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.highlight .nx {
|
|
423
|
-
color: ${f.palette.type==="dark"?"#ff53a3":"#ec407a"};
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/* CODE HILITE */
|
|
427
|
-
.codehilite .gd {
|
|
428
|
-
background-color: ${f.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.codehilite .gi {
|
|
432
|
-
background-color: ${f.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: ${f.palette.action.disabledBackground};
|
|
463
|
-
}
|
|
464
|
-
.task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
465
|
-
background-color: ${f.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 sn=[De,fo,po,go,Vt,Fe],vo=()=>(0,Bn.Pf)(),mo=()=>{const f=vo(),O=(0,dt.Z)();return(0,i.useMemo)(()=>{const M={theme:O,sidebar:f};return sn.reduce((W,tt)=>W+tt(M),"")},[O,f])},yo=()=>{const f=mo();return(0,i.useCallback)(O=>(O.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${f}</style>`),O),[f])},$n=async(f,O)=>{let M;if(typeof f=="string")M=new DOMParser().parseFromString(f,"text/html").documentElement;else if(f instanceof Element)M=f;else throw new Error("dom is not a recognized type");for(const W of O)M=await W(M);return M},yn=(f,O,M)=>{const W=f==="src"&&O.endsWith(".svg"),tt=!O.match(/^([a-z]*:)?\/\//i),rt=O.startsWith(M);return W&&(tt||rt)},Eo=({techdocsStorageApi:f,entityId:O,path:M})=>async W=>{const tt=await f.getApiOrigin(),rt=async(pt,At)=>{for(const It of pt)if(It.hasAttribute(At)){const $t=It.getAttribute(At);if(!$t)return;const Yt=await f.getBaseUrl($t,O,M);if(yn(At,$t,tt))try{const wt=await(await fetch(Yt,{credentials:"include"})).text();It.setAttribute(At,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(wt)))}`)}catch{It.setAttribute("alt",`Error: ${$t}`)}else It.setAttribute(At,Yt)}};return await Promise.all([rt(W.querySelectorAll("img"),"src"),rt(W.querySelectorAll("script"),"src"),rt(W.querySelectorAll("source"),"src"),rt(W.querySelectorAll("link"),"href"),rt(W.querySelectorAll("a[download]"),"href")]),W},Fn=()=>f=>(((M,W)=>{Array.from(M).filter(tt=>tt.hasAttribute(W)).forEach(tt=>{const rt=tt.getAttribute(W);if(rt){rt.match(/^https?:\/\//i)&&tt.setAttribute("target","_blank");try{const pt=xo(window.location.href);tt.setAttribute(W,new URL(rt,pt).toString())}catch{tt.replaceWith(tt.textContent||rt)}}})})(Array.from(f.getElementsByTagName("a")),"href"),f);function xo(f){const O=new URL(f);return!O.pathname.endsWith("/")&&!O.pathname.endsWith(".html")&&(O.pathname+="/"),O.toString()}var Co=t(44882);let Wn;Wn=Promise.resolve().then(t.t.bind(t,17029,19));function En(f,O){Wn.then(M=>{"createRoot"in M?M.createRoot(O).render(f):M.render(f,O)})}const Ao=()=>f=>{const O=f.querySelector('.md-header label[for="__drawer"]'),M=f.querySelector("article");if(!O||!M)return f;const W=O.cloneNode();return En(i.createElement(Co.Z),W),W.id="toggle-sidebar",W.title="Toggle Sidebar",W.classList.add("md-content__button"),W.style.setProperty("padding","0 0 0 5px"),W.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),M==null||M.prepend(W),f},So=()=>f=>{var O;return(O=f.querySelector(".md-header"))===null||O===void 0||O.remove(),f},bo=()=>f=>{var O,M;return(O=f.querySelector(".md-footer .md-copyright"))===null||O===void 0||O.remove(),(M=f.querySelector(".md-footer-copyright"))===null||M===void 0||M.remove(),f};var Oo=t(61800),Po=t(67097),Nn=t(82717),Ro=t.n(Nn);const wo=f=>O=>{var M;const W=O.querySelector('[title="Edit this page"]');if(!W||!W.href)return O;const tt=new URL(W.href),rt=f.byUrl(tt);if((rt==null?void 0:rt.type)!=="github"&&(rt==null?void 0:rt.type)!=="gitlab")return O;const pt=((M=O.querySelector("article>h1"))===null||M===void 0?void 0:M.childNodes[0].textContent)||"",At=encodeURIComponent(`Documentation Feedback: ${pt}`),It=encodeURIComponent(`Page source:
|
|
483
|
-
${W.href}
|
|
484
|
-
|
|
485
|
-
Feedback:`),$t=(rt==null?void 0:rt.type)==="github"?(0,Oo.B)(tt.href,"blob"):tt.href,Yt=Ro()($t),Ft=`/${Yt.organization}/${Yt.name}`,wt=W.cloneNode();switch(rt==null?void 0:rt.type){case"gitlab":wt.href=`${tt.origin}${Ft}/issues/new?issue[title]=${At}&issue[description]=${It}`;break;case"github":wt.href=`${tt.origin}${Ft}/issues/new?title=${At}&body=${It}`;break;default:return O}return En(i.createElement(Po.Z),wt),wt.style.paddingLeft="5px",wt.title="Leave feedback for this page",wt.id="git-feedback-link",W==null||W.insertAdjacentElement("beforebegin",wt),O},Zn=()=>f=>(setTimeout(()=>{const O=f==null?void 0:f.querySelectorAll("li.md-nav__item--active");O.length!==0&&(O.forEach(W=>{const tt=W==null?void 0:W.querySelector("input");tt!=null&&tt.checked||tt==null||tt.click()}),O[O.length-1].scrollIntoView())},200),f);var kn=t(15459),To=t(80030),xn=t(72379),Cn=t(41547),Io=t(95074);const Do=(0,kn.Z)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(To.ZP),Lo=()=>(0,o.jsx)(xn.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:f})=>{const[O,M]=(0,i.useState)(!1),[,W]=(0,Io.Z)(),tt=(0,i.useCallback)(()=>{W(f),M(!0)},[f,W]),rt=(0,i.useCallback)(()=>{M(!1)},[M]);return(0,o.jsx)(Do,{title:"Copied to clipboard",placement:"left",open:O,onClose:rt,leaveDelay:1e3,children:(0,o.jsx)(St.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:tt,children:(0,o.jsx)(Lo,{})})})},jo=f=>O=>{const M=O.querySelectorAll("pre > code");for(const tt of M){var W;const rt=tt.textContent||"",pt=document.createElement("div");tt==null||(W=tt.parentElement)===null||W===void 0||W.prepend(pt),En((0,o.jsx)(Cn.Z,{theme:f,children:(0,o.jsx)(Mo,{text:rt})}),pt)}return O},Bo=({baseUrl:f,onClick:O})=>M=>(Array.from(M.getElementsByTagName("a")).forEach(W=>{W.addEventListener("click",tt=>{const pt=W.getAttribute("href");pt&&pt.startsWith(f)&&!W.hasAttribute("download")&&(tt.preventDefault(),O(tt,pt))})}),M),Kn=({onLoading:f,onLoaded:O})=>M=>(f(),M.addEventListener(A,function W(){O(),M.removeEventListener(A,W)}),M);function Uo(f,O){const M=new URL(O),W=`${M.origin}${M.pathname.replace(/\/$/,"")}`,tt=f.replace(W,"").replace(/^\/+/,""),rt=new URL(`http://localhost/${tt}`);return`${rt.pathname}${rt.search}${rt.hash}`}function $o(){const f=(0,jt.s0)(),M=(0,k.h_)(lt.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(tt=>{let rt=tt;if(M)try{rt=Uo(tt,M)}catch{}f(rt)},[f,M])}const Fo="screen and (max-width: 76.1875em)",Wo=f=>{const O=$o(),M=(0,dt.Z)(),W=(0,Ot.Z)(Fo),tt=jn(),rt=yo(),pt=(0,z.z)(),At=(0,k.h_)(ie.D),It=(0,k.h_)(Tt.q),{state:$t,path:Yt,content:Ft}=Be(),[wt,le]=(0,i.useState)(null),ye=x(wt),Qt=(0,i.useCallback)(()=>{if(!wt)return;wt.querySelectorAll(".md-sidebar").forEach(Kt=>{if(W)Kt.style.top="0px";else{var Xt;const ce=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var Ce;const We=(Ce=ce==null?void 0:ce.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Pe;let pe=(Pe=wt.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const Ye=wt.querySelector(".md-container > .md-tabs");var Ue;const ln=(Ue=Ye==null?void 0:Ye.getBoundingClientRect().height)!==null&&Ue!==void 0?Ue:0;pe<We&&(pe=We),Kt.style.top=`${Math.max(pe,0)+ln}px`}Kt.style.setProperty("opacity","1")})},[wt,W]);(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 Lt=wt.querySelector(".md-footer");Lt&&(Lt.style.width=`${wt.getBoundingClientRect().width}px`)},[wt]);(0,i.useEffect)(()=>(window.addEventListener("resize",Bt),()=>{window.removeEventListener("resize",Bt)}),[wt,Bt]),(0,i.useEffect)(()=>{ye||(Bt(),Qt())},[$t,ye,Bt,Qt]);const oe=(0,i.useCallback)((Lt,Kt)=>$n(Lt,[tt,Eo({techdocsStorageApi:At,entityId:f,path:Kt}),Fn(),Ao(),So(),bo(),wo(It),rt]),[f,It,At,tt,rt]),Ee=(0,i.useCallback)(async Lt=>$n(Lt,[Zn(),jo(M),Bo({baseUrl:window.location.origin,onClick:(Kt,Xt)=>{var Ce;const Pe=Kt.ctrlKey||Kt.metaKey,Ue=new URL(Xt),ce=((Ce=Kt.target)===null||Ce===void 0?void 0:Ce.innerText)||Xt,We=Xt.replace(window.location.origin,"");if(pt.captureEvent("click",ce,{attributes:{to:We}}),Ue.hash)if(Pe)window.open(Xt,"_blank");else{var pe;O(Xt),Lt==null||(pe=Lt.querySelector(`[id="${Ue.hash.slice(1)}"]`))===null||pe===void 0||pe.scrollIntoView()}else Pe?window.open(Xt,"_blank"):O(Xt)}}),Kn({onLoading:()=>{},onLoaded:()=>{var Kt;(Kt=Lt.querySelector(".md-nav__title"))===null||Kt===void 0||Kt.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(Lt.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[M,O,pt]);return(0,i.useEffect)(()=>{if(!Ft)return()=>{};let Lt=!0;return oe(Ft,Yt).then(async Kt=>{if(!(Kt!=null&&Kt.innerHTML)||!Lt)return;window.scroll({top:0});const Xt=await Ee(Kt);le(Xt)}),()=>{Lt=!1}},[Ft,Yt,oe,Ee]),wt};var an=t(8560),zn=t(2296),Pt=t(57058);const he=()=>{const f=(0,zn.$L)(),{shadowRoot:O}=(0,m.x)(),M=O==null?void 0:O.querySelector('[data-md-component="content"]'),W=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let tt=W==null?void 0:W.querySelector('[data-techdocs-addons-location="primary sidebar"]');tt||(tt=document.createElement("div"),tt.setAttribute("data-techdocs-addons-location","primary sidebar"),W==null||W.prepend(tt));const rt=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let pt=rt==null?void 0:rt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return pt||(pt=document.createElement("div"),pt.setAttribute("data-techdocs-addons-location","secondary sidebar"),rt==null||rt.prepend(pt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(an.Z,{container:tt,children:f.renderComponentsByLocation(Pt.o.PrimarySidebar)}),(0,o.jsx)(an.Z,{container:M,children:f.renderComponentsByLocation(Pt.o.Content)}),(0,o.jsx)(an.Z,{container:pt,children:f.renderComponentsByLocation(Pt.o.SecondarySidebar)})]})},fe=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),No=u(f=>{var O;const{withSearch:M=!0,onReady:W}=f,tt=fe(),{entityMetadata:{value:rt,loading:pt},entityRef:At,setShadowRoot:It}=(0,m.x)(),$t=Wo(At),Yt=window.location.pathname,Ft=window.location.hash,wt=x($t),[le]=B([`[id="${Ft.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!wt)if(Ft)le&&le.scrollIntoView();else{var Qt,Bt;(Bt=document)===null||Bt===void 0||(Qt=Bt.querySelector("header"))===null||Qt===void 0||Qt.scrollIntoView()}},[Yt,Ft,le,wt]);const ye=(0,i.useCallback)(Qt=>{It(Qt),W instanceof Function&&W()},[It,W]);return pt===!1&&!rt?(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)(N,{})}),M&&(0,o.jsx)(b.Z,{className:tt.search,xs:"auto",item:!0,children:(0,o.jsx)(qt,{entityId:At,entityTitle:rt==null||(O=rt.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:ye,children:(0,o.jsx)(he,{})})})]})}):(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)(N,{})})})})}),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),h=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),U=t(79692),B=t(41128),w=t(90436),$=t(98864);const T=(0,U.Z)(gt=>({root:{textAlign:"left"},label:{color:gt.page.fontColor,fontWeight:gt.typography.fontWeightBold,letterSpacing:0,fontSize:gt.typography.fontSize,marginBottom:gt.spacing(1)/2,lineHeight:1},value:{color:(0,B.Fq)(gt.page.fontColor,.8),fontSize:gt.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),g=({value:gt,className:Et,typographyRootComponent:Rt})=>(0,o.jsx)(w.Z,{component:Rt!=null?Rt:typeof gt=="string"?"p":"span",className:Et,children:gt});function Z(gt){const{label:Et,value:Rt,url:ut,contentTypograpyRootComponent:Ct}=gt,X=T(),L=(0,o.jsx)(g,{className:X.value,value:Rt||"<Unknown>",typographyRootComponent:Ct});return(0,o.jsx)(b.Z,{item:!0,children:(0,o.jsxs)(w.Z,{component:"span",className:X.root,children:[(0,o.jsx)(w.Z,{className:X.label,children:Et}),ut?(0,o.jsx)($.rU,{to:ut,children:L}):L]})})}var H=t(48037),J=t(44394),V=t(6542),K=t(37321),k=t(76635),z=t(95573);const nt=(0,o.jsx)(m.Z,{animation:"wave",variant:"text",height:40}),lt=gt=>{const{palette:{common:{white:Et}}}=(0,h.Z)(),{children:Rt}=gt,ut=(0,p.$L)(),Ct=(0,J.h_)(V.D),{title:X,setTitle:L,subtitle:G,setSubtitle:q,entityRef:st,metadata:{value:it,loading:ct},entityMetadata:{value:ot,loading:St}}=(0,S.x)();(0,i.useEffect)(()=>{it&&(L(it.site_name),q(()=>{let{site_description:Dt}=it;return(!Dt||Dt==="None")&&(Dt=""),Dt}))},[it,L,q]);const Q=Ct.getOptional("app.title")||"Backstage",Y=[X,G,Q].filter(Boolean).join(" | "),{locationMetadata:ht,spec:ft}=ot||{},yt=ft==null?void 0:ft.lifecycle,bt=ot?(0,R.h)(ot,E.S4):[],Mt=(0,K.t)(z._Z)(),Jt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z,{label:(0,k.capitalize)((ot==null?void 0:ot.kind)||"entity"),value:(0,o.jsx)(x.d,{color:"inherit",entityRef:st,title:ot==null?void 0:ot.metadata.title,defaultKind:"Component"})}),bt.length>0&&(0,o.jsx)(Z,{label:"Owner",value:(0,o.jsx)(C.r,{color:"inherit",entityRefs:bt,defaultKind:"group"})}),yt?(0,o.jsx)(Z,{label:"Lifecycle",value:String(yt)}):null,ht&&ht.type!=="dir"&&ht.type!=="file"?(0,o.jsx)(Z,{label:"",value:(0,o.jsxs)(b.Z,{container:!0,direction:"column",alignItems:"center",style:{color:Et},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:ht.target}):null]});return!St&&ot===void 0||!ct&&it===void 0?null:(0,o.jsxs)(H.h,{type:"Documentation",typeLink:Mt,title:X||nt,subtitle:G===""?void 0:G||nt,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Y})}),Jt,Rt,ut.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),h=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:U=!0,asLink:B=!0,title:w,icon:$}=R,T=S(),g=({children:J})=>B?(0,o.jsx)(l.rU,{noTrack:!0,to:x.location,children:J}):(0,o.jsx)(o.Fragment,{children:J}),Z=()=>{const J=C!=null&&C.fields.title?(0,o.jsx)(p.F,{text:C.fields.title,preTag:C.preTag,postTag:C.postTag}):x.title,V=C!=null&&C.fields.entityTitle?(0,o.jsx)(p.F,{text:C.fields.entityTitle,preTag:C.preTag,postTag:C.postTag}):x.entityTitle,K=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:[J," | ",V!=null?V:K," docs"]})}),secondary:(0,o.jsx)(h.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},H=({children:J})=>U?(0,o.jsxs)(o.Fragment,{children:[$&&(0,o.jsx)(m.Z,{children:typeof $=="function"?$(x):$}),(0,o.jsx)("div",{className:T.flexContainer,children:J})]}):(0,o.jsx)(o.Fragment,{children:J});return(0,o.jsx)(H,{children:(0,o.jsx)(Z,{})})}},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.2b22ee03.js.map
|