@techdocs/cli 1.11.5-next.1 → 1.12.0
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 +29 -0
- package/dist/commands/generate/generate.cjs.js +32 -2
- package/dist/commands/generate/generate.cjs.js.map +1 -1
- package/dist/commands/index.cjs.js +9 -1
- package/dist/commands/index.cjs.js.map +1 -1
- package/dist/commands/publish/publish.cjs.js +47 -0
- package/dist/commands/publish/publish.cjs.js.map +1 -1
- package/dist/embedded-app/.config-schema.json +51 -46
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/123.91ba1b809deb.chunk.js +2 -0
- package/dist/embedded-app/static/123.91ba1b809deb.chunk.js.map +1 -0
- package/dist/embedded-app/static/1659.a99e4eb674e0.chunk.js +2 -0
- package/dist/embedded-app/static/1659.a99e4eb674e0.chunk.js.map +1 -0
- package/dist/embedded-app/static/1749.99ba95728e00.chunk.js +2 -0
- package/dist/embedded-app/static/1749.99ba95728e00.chunk.js.map +1 -0
- package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js +2 -0
- package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2055.fd3ccf91ac47.chunk.js → 2055.d938e6121e5f.chunk.js} +4 -4
- package/dist/embedded-app/static/2055.d938e6121e5f.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2295.e8be8ba6c18d.chunk.js → 2295.aaedbca4c1c5.chunk.js} +2 -2
- package/dist/embedded-app/static/2295.aaedbca4c1c5.chunk.js.map +1 -0
- package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js +2 -0
- package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js.map +1 -0
- package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js +2 -0
- package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js.map +1 -0
- package/dist/embedded-app/static/4587.d1220800a7d6.chunk.js +2 -0
- package/dist/embedded-app/static/4587.d1220800a7d6.chunk.js.map +1 -0
- package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js +2 -0
- package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js.map +1 -0
- package/dist/embedded-app/static/4609.b1c67dc7cac2.chunk.js +531 -0
- package/dist/embedded-app/static/4609.b1c67dc7cac2.chunk.js.map +1 -0
- package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js +2 -0
- package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js.map +1 -0
- package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js +2 -0
- package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js.map +1 -0
- package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js +2 -0
- package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js.map +1 -0
- package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js +4 -0
- package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js.map +1 -0
- package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js +2 -0
- package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js.map +1 -0
- package/dist/embedded-app/static/8877.ab3d98868650.chunk.js +2 -0
- package/dist/embedded-app/static/8877.ab3d98868650.chunk.js.map +1 -0
- package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js +2 -0
- package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js.map +1 -0
- package/dist/embedded-app/static/9230.422824f655e0.chunk.js +2 -0
- package/dist/embedded-app/static/9230.422824f655e0.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.9b48363c4ffa.js +2 -0
- package/dist/embedded-app/static/main.9b48363c4ffa.js.map +1 -0
- package/dist/embedded-app/static/module-remix-run.32d1d7665115.js +2 -0
- package/dist/embedded-app/static/module-remix-run.32d1d7665115.js.map +1 -0
- package/dist/embedded-app/static/{runtime.c8854f4ed6f8.js → runtime.720cb48cd7ae.js} +2 -2
- package/dist/embedded-app/static/{runtime.c8854f4ed6f8.js.map → runtime.720cb48cd7ae.js.map} +1 -1
- package/dist/embedded-app/static/vendor.470d3e8ecef1.js +2 -0
- package/dist/embedded-app/static/vendor.470d3e8ecef1.js.map +1 -0
- package/dist/lib/etag.cjs.js +40 -0
- package/dist/lib/etag.cjs.js.map +1 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +8 -7
- package/dist/embedded-app/static/123.449f4a83fd2b.chunk.js +0 -2
- package/dist/embedded-app/static/123.449f4a83fd2b.chunk.js.map +0 -1
- package/dist/embedded-app/static/1659.41bf35e59592.chunk.js +0 -2
- package/dist/embedded-app/static/1659.41bf35e59592.chunk.js.map +0 -1
- package/dist/embedded-app/static/1749.75c83d8a41f6.chunk.js +0 -2
- package/dist/embedded-app/static/1749.75c83d8a41f6.chunk.js.map +0 -1
- package/dist/embedded-app/static/1994.78042a47b6c6.chunk.js +0 -2
- package/dist/embedded-app/static/1994.78042a47b6c6.chunk.js.map +0 -1
- package/dist/embedded-app/static/2055.fd3ccf91ac47.chunk.js.map +0 -1
- package/dist/embedded-app/static/2295.e8be8ba6c18d.chunk.js.map +0 -1
- package/dist/embedded-app/static/2360.82e9c38bff17.chunk.js +0 -2
- package/dist/embedded-app/static/2360.82e9c38bff17.chunk.js.map +0 -1
- package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js +0 -2
- package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js.map +0 -1
- package/dist/embedded-app/static/4587.96f03715ec4f.chunk.js +0 -2
- package/dist/embedded-app/static/4587.96f03715ec4f.chunk.js.map +0 -1
- package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js +0 -2
- package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js.map +0 -1
- package/dist/embedded-app/static/4609.152f14ef4904.chunk.js +0 -531
- package/dist/embedded-app/static/4609.152f14ef4904.chunk.js.map +0 -1
- package/dist/embedded-app/static/4648.c047b78345c6.chunk.js +0 -2
- package/dist/embedded-app/static/4648.c047b78345c6.chunk.js.map +0 -1
- package/dist/embedded-app/static/6138.113ed7a1d8cd.chunk.js +0 -2
- package/dist/embedded-app/static/6138.113ed7a1d8cd.chunk.js.map +0 -1
- package/dist/embedded-app/static/6206.b2713857572e.chunk.js +0 -2
- package/dist/embedded-app/static/6206.b2713857572e.chunk.js.map +0 -1
- package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js +0 -4
- package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js.map +0 -1
- package/dist/embedded-app/static/7203.6e3ffa800885.chunk.js +0 -2
- package/dist/embedded-app/static/7203.6e3ffa800885.chunk.js.map +0 -1
- package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js +0 -2
- package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js.map +0 -1
- package/dist/embedded-app/static/9050.0c0d51ee0fd8.chunk.js +0 -2
- package/dist/embedded-app/static/9050.0c0d51ee0fd8.chunk.js.map +0 -1
- package/dist/embedded-app/static/9230.ba752de28896.chunk.js +0 -2
- package/dist/embedded-app/static/9230.ba752de28896.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.82ddbc06e504.js +0 -2
- package/dist/embedded-app/static/main.82ddbc06e504.js.map +0 -1
- package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js +0 -2
- package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js.map +0 -1
- package/dist/embedded-app/static/vendor.3bc2778face5.js +0 -2
- package/dist/embedded-app/static/vendor.3bc2778face5.js.map +0 -1
|
@@ -1,531 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["4609"],{49185(e,t,a){let r,n;a.d(t,{sA:()=>q,jn:()=>W,vv:()=>Y,nC:()=>V});var i,o=a(55963);function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function s(e){if(!l(e))return!1;let t=new Set;return Object.values(e).every(e=>(function e(t,a){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||!("object"!=typeof t||a.has(t))&&((a.add(t),Array.isArray(t))?t.every(t=>e(t,a)):!!l(t)&&Object.values(t).every(t=>e(t,a)))})(e,t))}var c=a(11601),d=a.n(c),u=a(67156),p=a.n(u);function m(e){if(!l(e)||"function"==typeof e.then)throw new o.dz("Invalid JSON schema: must be an object");let t=(r||(r=new(d())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0}),p()(r)),r);try{let a=t.validateSchema(e);if("boolean"!=typeof a)throw new o.dz("Expected synchronous validation result")}catch(e){throw new o.dz(`Invalid JSON schema: ${e}`)}let a=t.errors?.[0];if(a){let e=a.message;throw Array.isArray(a?.params?.allowedValues)&&(e+=`, expected one of: ${a.params.allowedValues.join(", ")}`),new o.dz(`Invalid JSON schema, error at path ${a.instancePath}: ${e}`)}return!0}var h=a(71291),g=a(51700),f=a(22654);h.g1(h.Yj(),h.L5()).refine(e=>s(e),{message:"Invalid JSON schema"});let v=h.g1(h.Yj(),h.L5()).superRefine((e,t)=>{try{return m(e)}catch(e){return t.addIssue({code:f.eq.custom,message:(0,g.bJ)(e)?e.message:"Invalid JSON schema"}),!1}}),y=h.re({op:h.eu("declareAnnotation.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj(),schema:h.re({jsonSchema:v}).optional()})}),b=h.re({op:h.eu("declareKind.v1"),kind:h.Yj(),group:h.Yj(),properties:h.re({singular:h.Yj(),plural:h.Yj(),description:h.Yj()})}),x=h.Ik({allOf:h.PV([h.Ik({$ref:h.eu("Entity")}),h.Ik({type:h.eu("object"),properties:h.Ik({apiVersion:h.g1(h.Yj(),h.L5()).optional(),kind:h.g1(h.Yj(),h.L5()).optional()}).passthrough()}).passthrough()])}).passthrough();function w(e){let t=x.safeParse(e);if(!t.success)return e;let{allOf:a,...r}=t.data,{type:n,properties:i,...o}=a[1],{apiVersion:l,kind:s,...c}=i;return{...r,type:n,...o,properties:c}}let j=["kind","apiVersion","metadata","$ref"],A=["allOf","oneOf","anyOf","if","else","then","not","$ref"],S=h.re({selector:h.re({path:h.Yj()}),relation:h.Yj(),defaultKind:h.Yj().optional(),defaultNamespace:h.k5(["default","inherit"]).optional(),allowedKinds:h.YO(h.Yj()).optional()}),k=h.re({op:h.eu("declareKindVersion.v1"),kind:h.Yj(),name:h.Yj(),specType:h.Yj().optional(),properties:h.re({description:h.Yj().optional(),relationFields:h.YO(S).optional(),schema:h.re({jsonSchema:v})})});function C(e){let t=[];for(let r of e.versions){let n=w(r.schema.jsonSchema);for(let i of(m(n),!function(e){if(!s(e))throw new o.dz("Schema must be an object");for(let t of A)if(t in e)throw new o.dz(`Schema must not use "${t}" keyword in the root`);let t=e.properties;if(!l(t))throw new o.dz('Schema must have a "properties" field that is an object');for(let e of j)if(e in t)throw new o.dz(`Schema must not try to declare the reserved root field "${e}"`);for(let[e,a]of Object.entries(t)){if(!l(a))throw new o.dz(`Schema for root field "${e}" must be an object`);for(let t of A)if(t in a)throw new o.dz(`Schema for root field "${e}" must not use "${t}" keyword`)}}(n),Array.isArray(r.name)?r.name:[r.name]))for(let o of r.specType?[r.specType].flat():[void 0]){var a;t.push((a={kind:e.kind,name:i,specType:o,properties:{description:r.description,relationFields:r.relationFields,schema:{jsonSchema:n}}},k.parse({...a,op:"declareKindVersion.v1"})))}}return t}let E=h.re({op:h.eu("declareLabel.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj(),schema:h.re({jsonSchema:v}).optional()})}),N=h.re({op:h.eu("declareRelation.v1"),fromKind:h.Yj(),type:h.Yj(),toKind:h.Yj(),properties:h.re({reverseType:h.Yj(),title:h.Yj(),description:h.Yj()})});function L(e){return N.parse({...e,op:"declareRelation.v1"})}let T=h.re({op:h.eu("removeAnnotation.v1"),name:h.Yj()}),I=h.re({op:h.eu("removeKind.v1"),kind:h.Yj()}),R=h.re({op:h.eu("removeLabel.v1"),name:h.Yj()}),B=h.re({op:h.eu("removeTag.v1"),name:h.Yj()}),P=h.re({op:h.eu("declareTag.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj()})}),$=h.re({op:h.eu("updateAnnotation.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional(),schema:h.re({jsonSchema:v}).optional()})}),O=h.re({op:h.eu("updateKind.v1"),kind:h.Yj(),properties:h.re({singular:h.Yj().optional(),plural:h.Yj().optional(),description:h.Yj().optional()})}),z=h.re({selector:h.re({path:h.Yj()}),relation:h.Yj(),defaultKind:h.Yj().optional(),defaultNamespace:h.k5(["default","inherit"]).optional(),allowedKinds:h.YO(h.Yj()).optional()}),H=h.re({op:h.eu("updateKindVersion.v1"),kind:h.Yj(),name:h.Yj(),specType:h.Yj().optional(),properties:h.re({description:h.Yj().optional(),relationFields:h.YO(z).optional(),schema:h.re({jsonSchema:v}).optional()})}),M=h.re({op:h.eu("updateLabel.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional(),schema:h.re({jsonSchema:v}).optional()})}),F=h.re({op:h.eu("updateRelation.v1"),fromKind:h.Yj(),type:h.Yj(),toKind:h.Yj(),properties:h.re({reverseType:h.Yj().optional(),title:h.Yj().optional(),description:h.Yj().optional()})});function _(e){return F.parse({...e,op:"updateRelation.v1"})}let D=h.re({op:h.eu("updateTag.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional()})}),U=a(59855).Y.create({type:"@backstage/CatalogModelLayer",versions:["v1"]});class K{#e;#t;constructor(e){this.#e=e.layerId,this.#t=[]}addKind(e){var t;let a,r=((a=[]).push((t={kind:e.names.kind,group:e.group,properties:{singular:e.names.singular,plural:e.names.plural,description:e.description}},b.parse({...t,op:"declareKind.v1"}))),a.push(...C({kind:e.names.kind,versions:e.versions??[]})),a);this.#t.push(...r)}addKindVersion(e){let t=C(e);this.#t.push(...t)}updateKind(e){let t=function(e){var t,a;let r=[];for(let n of((e.names.singular||e.names.plural||e.description)&&r.push((t={kind:e.names.kind,properties:{singular:e.names.singular,plural:e.names.plural,description:e.description}},O.parse({...t,op:"updateKind.v1"}))),e.versions??[])){let t=n.schema?w(n.schema.jsonSchema):void 0;for(let i of(t&&m(t),Array.isArray(n.name)?n.name:[n.name]))for(let o of n.specType?.length?[n.specType].flat():[void 0])r.push((a={kind:e.names.kind,name:i,specType:o,properties:{description:n.description,relationFields:n.relationFields,schema:t?{jsonSchema:t}:void 0}},H.parse({...a,op:"updateKindVersion.v1"})))}return r}(e);this.#t.push(...t)}removeKind(e){var t;let a=[(t={kind:e.kind},I.parse({...t,op:"removeKind.v1"}))];this.#t.push(...a)}addRelationPair(e){let t=function(e){let t=[];for(let a of[e.fromKind].flat())for(let r of[e.toKind].flat())t.push(L({fromKind:a,type:e.forward.type,toKind:r,properties:{reverseType:e.reverse.type,title:e.forward.title,description:e.description}})),t.push(L({fromKind:r,type:e.reverse.type,toKind:a,properties:{reverseType:e.forward.type,title:e.reverse.title,description:e.description}}));return t}(e);this.#t.push(...t)}updateRelationPair(e){let t=function(e){let t=[];for(let a of[e.fromKind].flat())for(let r of[e.toKind].flat())t.push(_({fromKind:a,type:e.forward.type,toKind:r,properties:{reverseType:e.reverse.type,title:e.forward.title,description:e.description}})),e.reverse.type&&t.push(_({fromKind:r,type:e.reverse.type,toKind:a,properties:{reverseType:e.forward.type,title:e.reverse.title,description:e.description}}));return t}(e);this.#t.push(...t)}addAnnotation(e){let t=function(e){var t;if(e.schema?.jsonSchema&&(m(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new o.dz(`Annotation "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},y.parse({...t,op:"declareAnnotation.v1"}))]}(e);this.#t.push(...t)}updateAnnotation(e){let t=function(e){var t;if(e.schema&&(m(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new o.dz(`Annotation "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},$.parse({...t,op:"updateAnnotation.v1"}))]}(e);this.#t.push(...t)}removeAnnotation(e){var t;let a=[(t={name:e.name},T.parse({...t,op:"removeAnnotation.v1"}))];this.#t.push(...a)}addLabel(e){let t=function(e){var t;if(e.schema?.jsonSchema&&(m(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new o.dz(`Label "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},E.parse({...t,op:"declareLabel.v1"}))]}(e);this.#t.push(...t)}updateLabel(e){let t=function(e){var t;if(e.schema&&(m(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new o.dz(`Label "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},M.parse({...t,op:"updateLabel.v1"}))]}(e);this.#t.push(...t)}removeLabel(e){var t;let a=[(t={name:e.name},R.parse({...t,op:"removeLabel.v1"}))];this.#t.push(...a)}addTag(e){var t;let a=[(t={name:e.name,properties:{title:e.title,description:e.description}},P.parse({...t,op:"declareTag.v1"}))];this.#t.push(...a)}updateTag(e){var t;let a=[(t={name:e.name,properties:{title:e.title,description:e.description}},D.parse({...t,op:"updateTag.v1"}))];this.#t.push(...a)}removeTag(e){var t;let a=[(t={name:e.name},B.parse({...t,op:"removeTag.v1"}))];this.#t.push(...a)}import(e){let t=U.toInternal(e);this.#t.push(...t.ops)}build(){return U.createInstance("v1",{layerId:this.#e,ops:this.#t.slice()})}}let Y="ownedBy",V="dependsOn",W="partOf",q="hasPart";n=new K({layerId:(i={layerId:"catalog.backstage.io/well-known-relations",builder:e=>{e.addRelationPair({fromKind:["API","Component","Domain","Group","Location","Resource","System","User"],toKind:["Group","User"],description:"An ownership relation where the owner is usually an organizational entity (user or group), and the other entity can be anything.",forward:{type:"ownedBy",title:"owned by"},reverse:{type:"ownerOf",title:"owner of"}}),e.addRelationPair({fromKind:"Component",toKind:"API",description:"A relation from a component to an API it provides for consumption by others.",forward:{type:"providesApi",title:"provides API"},reverse:{type:"apiProvidedBy",title:"API provided by"}}),e.addRelationPair({fromKind:"Component",toKind:"API",description:"A relation from a component to an API it consumes.",forward:{type:"consumesApi",title:"consumes API"},reverse:{type:"apiConsumedBy",title:"API consumed by"}}),e.addRelationPair({fromKind:["Component","Resource"],toKind:["Component","Resource"],description:"A dependency relation expressing that an entity needs another entity to function.",forward:{type:"dependsOn",title:"depends on"},reverse:{type:"dependencyOf",title:"dependency of"}}),e.addRelationPair({fromKind:"Group",toKind:"Group",description:"A parent/child relation to build up a tree, used for example to describe the organizational structure between groups.",forward:{type:"parentOf",title:"parent of"},reverse:{type:"childOf",title:"child of"}}),e.addRelationPair({fromKind:"User",toKind:"Group",description:"A membership relation, typically for users in a group.",forward:{type:"memberOf",title:"member of"},reverse:{type:"hasMember",title:"has member"}}),e.addRelationPair({fromKind:["Component","API","Resource"],toKind:["Component","System"],description:"A part/whole relation where a component, API, or resource belongs to a system or a component is a subcomponent of another.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}}),e.addRelationPair({fromKind:"System",toKind:"Domain",description:"A part/whole relation where a system belongs to a domain.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}}),e.addRelationPair({fromKind:"Domain",toKind:"Domain",description:"A part/whole relation where a domain is a subdomain of another domain.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}})}}).layerId}),i.builder(n),n.build()},35571(e,t,a){a.d(t,{p:()=>h});var r=a(31085),n=a(42899),i=a(58837),o=a(72501);let l=a.p+"static/missingAnnotation.5df688e77377.svg",s=a.p+"static/noInformation.acf1ccf4441e.svg",c=a.p+"static/createComponent.7c188d7fa450.svg",d=a.p+"static/noBuild.169833d0d90f.svg",u=(0,i.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),p=({missing:e})=>{let t=u();switch(e){case"field":return(0,r.jsx)("img",{src:l,className:t.generalImg,alt:"annotation is missing"});case"info":return(0,r.jsx)("img",{src:s,alt:"no Information",className:t.generalImg});case"content":return(0,r.jsx)("img",{src:c,alt:"create Component",className:t.generalImg});case"data":return(0,r.jsx)("img",{src:d,alt:"no Build",className:t.generalImg});default:return null}},m=(0,i.A)(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 h(e){let{title:t,description:a,missing:i,action:l}=e,s=m();return(0,r.jsxs)(n.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:s.root,spacing:2,children:[(0,r.jsx)(n.A,{item:!0,xs:12,md:6,children:(0,r.jsxs)(n.A,{container:!0,direction:"column",children:[(0,r.jsx)(n.A,{item:!0,xs:!0,children:(0,r.jsx)(o.A,{variant:"h5",children:t})}),(0,r.jsx)(n.A,{item:!0,xs:!0,children:(0,r.jsx)(o.A,{variant:"body1",children:a})}),(0,r.jsx)(n.A,{item:!0,xs:!0,className:s.action,children:l})]})}),(0,r.jsx)(n.A,{item:!0,xs:12,md:6,className:s.imageContainer,children:"string"==typeof i?(0,r.jsx)(p,{missing:i}):i.customImage})]})}},280(e,t,a){a.d(t,{m:()=>d,v:()=>u});var r=a(31085),n=a(29365),i=a(71677),o=a(72501),l=a(58837),s=a(55940);let c=(0,l.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function d(e){let{isFavorite:t}=e,a=c();return(0,r.jsx)(o.A,{component:"span",className:t?a.icon:a.iconBorder,children:t?(0,r.jsx)(s.Gg,{}):(0,r.jsx)(s.KG,{})})}function u(e){let{id:t,title:a,isFavorite:o,onToggle:l,...s}=e;return(0,r.jsx)(i.Ay,{id:t,title:a,children:(0,r.jsx)(n.A,{"aria-label":a,id:t,onClick:()=>l(!o),color:"inherit",...s,children:(0,r.jsx)(d,{isFavorite:o})})})}},45463(e,t,a){a.d(t,{z:()=>s});var r=a(31085),n=a(64947),i=a(14041),o=a(60603);let l=(0,i.forwardRef)((e,t)=>(0,r.jsx)(o.$h,{ref:t,...e,color:"initial"})),s=(0,i.forwardRef)((e,t)=>(0,r.jsx)(n.A,{ref:t,component:l,...e}))},48266(e,t,a){a.d(t,{w:()=>k});var r=a(31085),n=a(77125),i=a(98552),o=a(94390),l=a(95061),s=a(41857),c=a(48543),d=a(26343),u=a(99489),p=a(7031),m=a(99703),h=a(58837),g=a(72501),f=a(92399),v=a(14041),y=a(10437);let b=(0,h.A)(e=>(0,m.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),x=()=>{let e=b();return(0,r.jsx)(y.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},w=(0,h.A)(e=>(0,m.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),j=()=>{let e=w();return(0,r.jsx)(y.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},A=(0,p.A)(e=>(0,m.A)({root:{"label + &":{marginTop:e.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:e.palette.primary.main}},input:{borderRadius:e.shape.borderRadius,position:"relative",backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:e.typography.body1.fontSize,padding:e.spacing(1.25,3.25,1.25,1.5),transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{background:e.palette.background.paper,borderRadius:e.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(s.A),S=(0,h.A)(e=>(0,m.A)({formControl:{margin:e.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function k(e){let{multiple:t,items:a,label:s,placeholder:p,selected:m,onChange:h,triggerReset:y,native:b=!1,disabled:w=!1,margin:k,"data-testid":C="select"}=e,E=S(),[N,L]=(0,v.useState)(m||(t?[]:"")),[T,I]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{L(t?[]:"")},[y,t]),(0,v.useEffect)(()=>{L(m||(t?[]:""))},[m,t]),(0,r.jsx)(n.A,{className:E.root,children:(0,r.jsxs)(l.A,{className:E.formControl,children:[(0,r.jsx)(c.A,{className:E.formLabel,children:s}),(0,r.jsxs)(u.A,{"aria-label":s,value:N,native:b,disabled:w,"data-testid":C,displayEmpty:!0,multiple:t,margin:k,onChange:e=>{L(e.target.value),h(e.target.value)},open:T,onOpen:e=>{w?e.preventDefault():I(a=>!(!t||e.target instanceof HTMLElement)||!a)},onClose:()=>{I(!1)},input:(0,r.jsx)(A,{}),label:s,renderValue:e=>t&&0!==N.length?(0,r.jsx)(n.A,{className:E.chips,children:e.map(e=>{let t=a.find(t=>t.value===e);return!!t&&(0,r.jsx)(o.A,{"data-testid":"chip",label:t?.label,clickable:!0,deleteIcon:(0,r.jsx)(f.default,{"data-testid":"cancel-icon",onMouseDown:e=>e.stopPropagation()}),onDelete:()=>{let t=N.filter(t=>t!==e);L(t),h(t)},className:E.chip},t?.value)})}):(0,r.jsx)(g.A,{children:0===N.length?p||"":a.find(t=>t.value===e)?.label}),IconComponent:()=>T?(0,r.jsx)(j,{}):(0,r.jsx)(x,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!p&&!t&&(0,r.jsx)(d.A,{value:[],children:p}),b?a&&a.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value)):a&&a.map(e=>(0,r.jsxs)(d.A,{value:e.value,children:[t&&(0,r.jsx)(i.A,{color:"primary",checked:N.includes(e.value)||!1,className:E.checkbox}),e.label]},e.value))]})]})})}},45794(e,t,a){a.d(t,{Y:()=>L});var r=a(31085),n=a(91189),i=a(50509),o=a(19735),l=a(77125),s=a(64947),c=a(93453),d=a(29365),u=a(68804),p=a(5951),m=a(26343),h=a(28233),g=a(55197),f=a(58837),v=a(72501),y=a(5893),b=a(14041),x=a(23838),w=a(55940),j=a(60603),A=a(89332),S=a(89595);let k=(0,f.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),C=({icon:e})=>{let t=(0,n.n)(),a=e?t.getSystemIcon(e)??w.NT:w.NT;return(0,r.jsx)(a,{})},E=({link:e})=>(0,r.jsx)(j.N_,{to:e.url,children:e.title??e.url}),N=({item:e})=>(0,r.jsxs)(m.A,{button:!1,children:[(0,r.jsx)(u.A,{children:(0,r.jsx)(C,{icon:e.icon})}),(0,r.jsx)(p.A,{primary:e.title,secondary:e.links?.reduce((e,t,a)=>[...e,a>0&&(0,r.jsx)("br",{},a),(0,r.jsx)(E,{link:t},t.url)],[])})]});function L(e){let{t}=(0,S.i)(A.O),{title:a,items:n,children:u}=e,{items:p}=(0,x.l)(),[f,j]=(0,b.useState)(!1),[C,E]=(0,b.useState)(null),L=k(),T=(0,i.gf)(o.U).getOptionalConfig("app.support"),I=(0,y.A)(e=>e.breakpoints.down("sm")),R=e=>{E(e.currentTarget),j(!0)},B=()=>{j(!1)};return T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{display:"flex",ml:1,children:I?(0,r.jsx)(d.A,{color:"primary",size:"small",onClick:R,"data-testid":"support-button","aria-label":"Support",children:(0,r.jsx)(w.NT,{})}):(0,r.jsx)(s.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:R,startIcon:(0,r.jsx)(w.NT,{}),children:t("supportButton.title")})}),(0,r.jsxs)(g.Ay,{"data-testid":"support-button-popover",open:f,anchorEl:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:B,children:[(0,r.jsxs)(h.A,{className:L.popoverList,autoFocusItem:!!C,children:[a&&(0,r.jsx)(m.A,{button:!1,alignItems:"flex-start",className:L.menuItem,children:(0,r.jsx)(v.A,{variant:"subtitle1",children:a})}),b.Children.map(u,(e,t)=>(0,r.jsx)(m.A,{button:!1,alignItems:"flex-start",className:L.menuItem,children:e},`child-${t}`)),(n??p).map((e,t)=>(0,r.jsx)(N,{item:e},`item-${t}`))]}),(0,r.jsx)(c.A,{children:(0,r.jsx)(s.A,{color:"primary",onClick:B,"aria-label":"Close",children:t("supportButton.close")})})]})]}):null}},28499(e,t,a){a.d(t,{X:()=>K});var r=a(31085),n=a(89595),i=a(25301),o=a(77125),l=a(29365),s=a(7031),c=a(58837),d=a(54917),u=a(72501),p=a(83313),m=a(89019),h=a(62461),g=a(68887),f=a(63798),v=a(64704),y=a(6774),b=a(75625),x=a(65859),w=a(45917),j=a(5416),A=a(33494),S=a(80113),k=a(26229),C=a(46802),E=a(45250),N=a(14041),L=a(89332),T=a(64947),I=a(48266);let R=(0,c.A)(e=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:e.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:e.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[500]}`},heder:{},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:e.spacing(2)}}}),{name:"BackstageTableFilters"}),B=e=>{let t=R(),{onChangeFilters:a}=e,{t:i}=(0,n.i)(L.O),[l,s]=(0,N.useState)({...e.selectedFilters}),[c,d]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{a(l)},[l,a]),(0,r.jsxs)(o.A,{className:t.root,children:[(0,r.jsxs)(o.A,{className:`${t.header} ${t.heder}`,children:[(0,r.jsx)(o.A,{className:t.value,children:i("table.filter.title")}),(0,r.jsx)(T.A,{color:"primary",onClick:()=>{s({}),d(e=>!e)},children:i("table.filter.clearAll")})]}),(0,r.jsx)(o.A,{className:t.filters,children:!!e.filters?.length&&e.filters.map(e=>(0,r.jsx)(I.w,{triggerReset:c,...e.element,selected:l[e.element.label],onChange:t=>s({...l,[e.element.label]:t})},e.element.label))})]})};var P=a(78467);function $(e){return(0,r.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:e.colSpan,children:(0,r.jsx)(o.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,r.jsx)(P.A,{size:"5rem"})})})})})}let O={Add:(0,N.forwardRef)((e,t)=>(0,r.jsx)(p.default,{...e,ref:t})),Check:(0,N.forwardRef)((e,t)=>(0,r.jsx)(h.default,{...e,ref:t})),Clear:(0,N.forwardRef)((e,t)=>(0,r.jsx)(v.default,{...e,ref:t})),Delete:(0,N.forwardRef)((e,t)=>(0,r.jsx)(y.default,{...e,ref:t})),DetailPanel:(0,N.forwardRef)((e,t)=>(0,r.jsx)(f.default,{...e,ref:t})),Edit:(0,N.forwardRef)((e,t)=>(0,r.jsx)(b.default,{...e,ref:t})),Export:(0,N.forwardRef)((e,t)=>(0,r.jsx)(k.default,{...e,ref:t})),Filter:(0,N.forwardRef)((e,t)=>(0,r.jsx)(x.default,{...e,ref:t})),FirstPage:(0,N.forwardRef)((e,t)=>(0,r.jsx)(j.default,{...e,ref:t})),LastPage:(0,N.forwardRef)((e,t)=>(0,r.jsx)(A.default,{...e,ref:t})),NextPage:(0,N.forwardRef)((e,t)=>(0,r.jsx)(f.default,{...e,ref:t})),PreviousPage:(0,N.forwardRef)((e,t)=>(0,r.jsx)(g.default,{...e,ref:t})),ResetSearch:(0,N.forwardRef)((e,t)=>(0,r.jsx)(v.default,{...e,ref:t})),Search:(0,N.forwardRef)((e,t)=>(0,r.jsx)(w.default,{...e,ref:t})),SortArrow:(0,N.forwardRef)((e,t)=>(0,r.jsx)(m.default,{...e,ref:t})),ThirdStateCheck:(0,N.forwardRef)((e,t)=>(0,r.jsx)(S.default,{...e,ref:t})),ViewColumn:(0,N.forwardRef)((e,t)=>(0,r.jsx)(C.default,{...e,ref:t}))};function z(e,t){let a=t.split("."),r=e[a[0]];for(let e=1;e<a.length&&void 0!==r;++e)r=r[a[e]];return r}let H=(0,s.A)(e=>({header:{padding:e.spacing(1,2,1,2.5),borderTop:`1px solid ${e.palette.grey.A100}`,borderBottom:`1px solid ${e.palette.grey.A100}`,fontWeight:e.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(i.MTableHeader),M=(0,s.A)(e=>({root:{padding:e.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:e.typography.fontWeightBold}},searchField:{paddingRight:e.spacing(2)}}),{name:"BackstageTableToolbar"})(i.MTableToolbar),F=(0,c.A)(e=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},filterControls:{display:"flex",alignItems:"center"},title:{fontWeight:e.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),_=(0,c.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"}),D={search:"",filtersOpen:!1,filters:{}};function U(e){let{toolbarRef:t,setSearch:a,hasFilters:i,selectedFiltersLength:s,toggleFilters:c}=e,{t:d}=(0,n.i)(L.O),p=F(),m=(0,N.useCallback)(t=>{e.onSearchChanged(t),a(t)},[e,a]);return i?(0,r.jsxs)(o.A,{className:p.root,children:[(0,r.jsxs)(o.A,{className:p.filterControls,children:[(0,r.jsx)(l.A,{onClick:c,"aria-label":"filter list",children:(0,r.jsx)(x.default,{})}),(0,r.jsxs)(u.A,{className:p.title,children:[d("table.filter.title")," (",s,")"]})]}),(0,r.jsx)(M,{...e,ref:t,onSearchChanged:m})]}):(0,r.jsx)(M,{...e,ref:t,onSearchChanged:m})}function K(e){var t,a,l,s;let{data:c,columns:p,emptyContent:m,options:h,title:g,subtitle:f,localization:v,filters:y,initialState:b,onStateChange:x,components:w,isLoading:j,style:A,...S}=e,{t:k}=(0,n.i)(L.O),C=_(),T=(0,d.A)(),I={...D,...b},[R,P]=(0,N.useState)(I.filtersOpen),M=(0,N.useCallback)(()=>P(e=>!e),[P]),[F,K]=(0,N.useState)(I.filters),[Y,V]=(0,N.useState)(I.search);(0,N.useEffect)(()=>{if(x){var e;x((e={search:Y,filtersOpen:R,filters:F},(0,E.transform)(e,(e,t,a)=>{(0,E.isEqual)(t,D[a])||(e[a]=t)})))}},[Y,R,F,x]);let W=(0,N.useCallback)(e=>p.find(t=>t.title===e)?.field,[p]),q=(0,N.useMemo)(()=>{if("function"==typeof c||!F)return c;let e=Object.values(F);return c&&e.flat().length?c.filter(e=>!!Object.entries(F).filter(([,e])=>!!e.length).every(([t,a])=>{let r=z(e,W(t));return Array.isArray(r)&&Array.isArray(a)?r.some(e=>a.includes(e)):Array.isArray(r)?r.includes(a):Array.isArray(a)?a.includes(r):r===a})):c},[c,F,W]),G=Object.values(F).flat().length,Q=!!y?.length,X=(0,N.useCallback)(e=>(0,r.jsx)(U,{setSearch:V,hasFilters:Q,selectedFiltersLength:G,toggleFilters:M,...e}),[M,Q,G,V]),Z="function"!=typeof c&&0===c.length,J=p.length,ee=(0,N.useMemo)(()=>(function({columnCount:e,emptyContent:t,hasNoRows:a,loading:n}){return o=>n?(0,r.jsx)($,{colSpan:e}):t&&a?(0,r.jsx)("tbody",{children:(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:e,children:t})})}):(0,r.jsx)(i.MTableBody,{...o})})({hasNoRows:Z,emptyContent:m,columnCount:J,loading:j}),[Z,m,J,j]);return(0,r.jsxs)(o.A,{className:C.root,children:[R&&c&&"function"!=typeof c&&y?.length&&(0,r.jsx)(B,{filters:(t=y,a=c,l=p,s=k,t.map(e=>{var t;let r,n;return{type:e.type,element:{placeholder:s("table.filter.placeholder"),label:e.column,multiple:"multiple-select"===e.type,items:[...(t=e.column,r=new Set,n=e=>{null!=e&&r.add(e)},a&&a.forEach(e=>{let a=z(e,l.find(e=>e.title===t)?.field);Array.isArray(a)?a.forEach(n):n(a)}),r)].sort().map(e=>({label:e,value:e}))}}})),selectedFilters:F,onChangeFilters:K}),(0,r.jsx)(i.default,{components:{Header:H,Body:ee,Toolbar:X,...w},options:h,columns:p.map(e=>{let t=e.headerStyle??{},a=e.cellStyle||{};if(e.highlight)if(t.color=T.palette.textContrast,"object"==typeof a)a.fontWeight=T.typography.fontWeightBold;else{let e=a;a=(t,a,r)=>({...e(t,a,r),fontWeight:T.typography.fontWeightBold})}return{...e,headerStyle:t,cellStyle:a}}),icons:O,title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.A,{variant:"h5",component:"h2",children:g}),f&&(0,r.jsx)(u.A,{color:"textSecondary",variant:"body1",children:f})]}),data:q,style:{width:"100%",...A},localization:{...v,body:{emptyDataSourceMessage:k("table.body.emptyDataSourceMessage"),...v?.body},pagination:{firstTooltip:k("table.pagination.firstTooltip"),labelDisplayedRows:k("table.pagination.labelDisplayedRows"),labelRowsSelect:k("table.pagination.labelRowsSelect"),lastTooltip:k("table.pagination.lastTooltip"),nextTooltip:k("table.pagination.nextTooltip"),previousTooltip:k("table.pagination.previousTooltip"),...v?.pagination},header:{actions:k("table.header.actions"),...v?.header},toolbar:{searchPlaceholder:k("table.toolbar.search"),searchTooltip:k("table.toolbar.search"),...v?.toolbar}},...S})]})}K.icons=Object.freeze(O)},4103(e,t,a){a.d(t,{B:()=>g});var r=a(31085),n=a(77125),i=a(38311),o=a(58007),l=a(8109),s=a(55197),c=a(7031),d=a(72501),u=a(14041);let p=(0,c.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(d.A),m=(0,c.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(n.A),h=(0,c.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(n.A);function g(e){let{children:t,...a}=e,[n,c]=(0,u.useState)(null),d=u.Children.toArray(t),[g,f,...v]=d,y=v.length?v.pop():d[d.length-1],b=d.length>3;return(0,r.jsxs)(u.Fragment,{children:[(0,r.jsxs)(i.A,{"aria-label":"breadcrumb",...a,children:[d.length>1&&(0,r.jsx)(m,{clone:!0,children:g}),d.length>2&&(0,r.jsx)(m,{clone:!0,children:f}),b&&(0,r.jsx)(p,{onClick:e=>{c(e.currentTarget)},children:"..."}),(0,r.jsx)(h,{children:y})]}),(0,r.jsx)(s.Ay,{open:!!n,anchorEl:n,onClose:()=>{c(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,r.jsx)(o.A,{children:v.map((e,t)=>(0,r.jsx)(l.A,{button:!0,children:(0,r.jsx)(m,{clone:!0,children:e})},t))})})]})}},84391(e,t,a){a.d(t,{U:()=>s});var r=a(31085),n=a(58837),i=a(53373),o=a.n(i);let l=(0,n.A)(e=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:e.spacing(3),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function s(e){let{className:t,stretch:a,noPadding:n,children:i,...s}=e,c=l();return(0,r.jsx)("article",{...s,className:o()(c.root,t,{[c.stretch]:a,[c.noPadding]:n}),children:i})}},15179(e,t,a){a.d(t,{d:()=>d});var r=a(31085),n=a(77125),i=a(58837),o=a(72501),l=a(93285);let s=({title:e,className:t})=>(0,r.jsx)(o.A,{variant:"h4",component:"h2",className:t,"data-testid":"header-title",children:e}),c=({description:e,className:t})=>e?(0,r.jsx)(o.A,{variant:"body2",className:t,"data-testid":"header-description",children:e}):null;function d(e){let t,{description:a,title:o,titleComponent:d,children:u,descriptionComponent:p,textAlign:m="left"}=e,h=(t={textAlign:m},(0,i.A)(e=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:e.spacing(2),textAlign:t.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:e.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}))(),g=d||(0,r.jsx)(s,{title:o,className:h.title}),f=p||(0,r.jsx)(c,{description:a,className:h.description});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.m,{title:o}),(0,r.jsxs)(n.A,{className:h.container,children:[(0,r.jsxs)(n.A,{className:h.leftItemsBox,children:[g,f]}),(0,r.jsx)(n.A,{className:h.rightItemsBox,children:u})]})]})}},70111(e,t,a){a.d(t,{Y:()=>b});var r=a(31085),n=a(50509),i=a(19735),o=a(77125),l=a(42899),s=a(58837),c=a(71677),d=a(72501),u=a(93285),p=a(60603),m=a(4103),h=a(96919);let g=(0,s.A)(e=>({header:{gridArea:"pageHeader",padding:e.spacing(3),width:"100%",boxShadow:e.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:e.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[e.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:e.page.fontColor,wordBreak:"break-word",fontSize:e.typography.h3.fontSize,marginBottom:0},subtitle:{color:e.page.fontColor,opacity:.8,display:"inline-block",marginTop:e.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:e.spacing(1),color:e.page.fontColor},breadcrumb:{color:e.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-e.spacing(.3),marginBottom:e.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-e.spacing(.3),marginBottom:e.spacing(.3)}}),{name:"BackstageHeader"}),f=({type:e,typeLink:t,classes:a,pageTitle:n})=>e?t?(0,r.jsxs)(m.B,{className:a.breadcrumb,children:[(0,r.jsx)(p.N_,{to:t,children:e}),(0,r.jsx)(d.A,{children:n})]}):(0,r.jsx)(d.A,{className:a.type,children:e}):null,v=({pageTitle:e,classes:t,tooltip:a})=>{let{contentRef:n}=(0,h.H)(),i=(0,r.jsx)(d.A,{ref:n,tabIndex:-1,className:t.title,variant:"h1",children:e});return a?(0,r.jsx)(c.Ay,{title:a,placement:"top-start",children:i}):i},y=({classes:e,subtitle:t})=>t?"string"!=typeof t?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(d.A,{className:e.subtitle,variant:"subtitle2",component:"span",children:t}):null;function b(e){let{children:t,pageTitleOverride:a,style:s,subtitle:c,title:d,tooltip:p,type:m,typeLink:h}=e,b=g(),x=(0,n.gf)(i.U).getOptionalString("app.title")||"Backstage",w=a||d,j=d||a,A=`${w} | %s | ${x}`,S=`${w} | ${x}`;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.m,{titleTemplate:A,defaultTitle:S}),(0,r.jsxs)("header",{style:s,className:b.header,"data-backstage-core-header":"",children:[(0,r.jsxs)(o.A,{className:b.leftItemsBox,children:[(0,r.jsx)(f,{classes:b,type:m,typeLink:h,pageTitle:j}),(0,r.jsx)(v,{classes:b,pageTitle:j,tooltip:p}),(0,r.jsx)(y,{classes:b,subtitle:c})]}),(0,r.jsx)(l.A,{container:!0,className:b.rightItemsBox,spacing:4,children:t})]})]})}},27231(e,t,a){a.d(t,{S:()=>u});var r=a(31085),n=a(42899),i=a(58837),o=a(268),l=a(72501),s=a(60603);let c=(0,i.A)(e=>({root:{textAlign:"left"},label:{color:e.page.fontColor,fontWeight:e.typography.fontWeightBold,letterSpacing:0,fontSize:e.typography.fontSize,marginBottom:e.spacing(1)/2,lineHeight:1},value:{color:(0,o.X4)(e.page.fontColor,.8),fontSize:e.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),d=({value:e,className:t,typographyRootComponent:a})=>(0,r.jsx)(l.A,{component:a??("string"==typeof e?"p":"span"),className:t,children:e});function u(e){let{label:t,value:a,url:i,contentTypograpyRootComponent:o}=e,u=c(),p=(0,r.jsx)(d,{className:u.value,value:a||"<Unknown>",typographyRootComponent:o});return(0,r.jsx)(n.A,{item:!0,children:(0,r.jsxs)(l.A,{component:"span",className:u.root,children:[(0,r.jsx)(l.A,{className:u.label,children:t}),i?(0,r.jsx)(s.N_,{to:i,children:p}):p]})})}},12439(e,t,a){a.d(t,{Y:()=>c});var r=a(31085),n=a(58837),i=a(50868),o=a(53373),l=a.n(o);let s=(0,n.A)(e=>({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",[e.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function c(e){let{themeId:t,className:a,children:n}=e,o=s();return(0,r.jsx)(i.A,{theme:e=>({...e,page:e.getPageTheme({themeId:t})}),children:(0,r.jsx)("main",{className:l()(o.root,a),"data-backstage-core-page":"",children:n})})}},90615(e,t,a){a.d(t,{K:()=>n});var r=a(18690);function n(e){return(0,r.useParams)()}},33998(e,t,a){a.d(t,{v:()=>u});var r=a(31085),n=a(14041),i=a(15153),o=a(63878);let l=(0,a(48119).p)()({styles:{"bui-ButtonLink":"NVumjJIcc4YzsPM1","bui-ButtonLinkContent":"eJ5wbzSvC_Y7eHDP"},classNames:{root:"bui-ButtonLink",content:"bui-ButtonLinkContent"},bg:"consumer",analytics:!0,navigation:{type:"anchor"},propDefs:{noTrack:{},size:{dataAttribute:!0,default:"small"},variant:{dataAttribute:!0,default:"primary"},iconStart:{},iconEnd:{},children:{},className:{}}});var s=a(76435),c=a(21533);function d({definitionResult:e,navigation:t,forwardedRef:a}){let{ownProps:n,restProps:o,dataAttributes:l,analytics:u}=e,{classes:p,iconStart:m,iconEnd:h,children:g}=n,f=o.isDisabled?{href:void 0,routerOptions:void 0,render:void 0}:(0,c.eI)(t,o);return(0,r.jsx)(i.N,{className:p.root,ref:a,...l,...o,...f,onPress:e=>{o.onPress?.(e);let t=o["aria-label"]??(0,s.O)(g)??String(o.href??"");u.captureEvent("click",t,{attributes:{to:String(o.href??"")}})},children:(0,r.jsxs)("span",{className:p.content,children:[m,g,h]})})}let u=(0,n.forwardRef)((e,t)=>{let a=(0,o.Z)(l,e),n=a.navigation;return(0,r.jsx)(n,{props:a.restProps,view:d,viewProps:{definitionResult:a,forwardedRef:t}})});u.displayName="ButtonLink"},26438(e,t,a){a.d(t,{wL:()=>y,aR:()=>f,Zp:()=>g,bw:()=>v});var r=a(31085),n=a(14041),i=a(57873),o=a(63878),l=a(48119);let s={"bui-Card":"vwbKbDh04mMaiBi3","bui-CardHeader":"XFUmGkj6WID_JnEz","bui-CardBody":"bDKBEHaUGVdvGxpS","bui-CardFooter":"htqU_uAkxL89C8of","bui-CardTrigger":"YH9iVtgxrw5b0cYJ","bui-card-body-shadow":"bJ7HlUi_25Q2Dxr7"},c=(0,l.p)()({styles:s,classNames:{root:"bui-Card",trigger:"bui-CardTrigger"},propDefs:{children:{},className:{},onPress:{},href:{},label:{},target:{},rel:{},download:{},style:{}},utilityProps:["grow","shrink","basis"]}),d=(0,l.p)()({styles:s,classNames:{root:"bui-CardHeader"},propDefs:{children:{},className:{}}}),u=(0,l.p)()({styles:s,classNames:{root:"bui-CardBody"},propDefs:{children:{},className:{}}}),p=(0,l.p)()({styles:s,classNames:{root:"bui-CardFooter"},propDefs:{children:{},className:{}}});var m=a(13408),h=a(12860);let g=(0,n.forwardRef)((e,t)=>{let{ownProps:a,restProps:l,dataAttributes:s,utilityStyle:d}=(0,o.Z)(c,e),{classes:u,children:p,onPress:g,href:f,label:v,target:y,rel:b,download:x}=a,w=!!(g||f),j=(0,n.useRef)(null),A=(0,n.useCallback)(e=>{if(!w||!j.current||j.current.contains(e.target))return;let t=e.target,a=t instanceof Element?t:t?.parentElement;a?.closest('a[href],button,input,select,textarea,[role="button"],[role="link"],[tabindex]:not([tabindex="-1"])')||window.getSelection()?.toString()||j.current.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey}))},[w]);return(0,r.jsxs)(m.a,{as:"article",bg:"neutral",ref:t,className:u.root,"data-interactive":w||void 0,...s,...l,onClick:w?A:void 0,style:{...d,...a.style},children:[f&&(0,r.jsx)(h.N,{ref:j,className:u.trigger,href:f,target:y,rel:b,download:x,"aria-label":v}),g&&!f&&(0,r.jsx)(i.$,{ref:j,className:u.trigger,onPress:g,"aria-label":v}),p]})});g.displayName="Card";let f=(0,n.forwardRef)((e,t)=>{let{ownProps:a,restProps:n}=(0,o.Z)(d,e),{classes:i,children:l}=a;return(0,r.jsx)("div",{ref:t,className:i.root,...n,children:l})});f.displayName="CardHeader";let v=(0,n.forwardRef)((e,t)=>{let{ownProps:a,restProps:n}=(0,o.Z)(u,e),{classes:i,children:l}=a;return(0,r.jsx)("div",{ref:t,className:i.root,...n,children:l})});v.displayName="CardBody";let y=(0,n.forwardRef)((e,t)=>{let{ownProps:a,restProps:n}=(0,o.Z)(p,e),{classes:i,children:l}=a;return(0,r.jsx)("div",{ref:t,className:i.root,...n,children:l})});y.displayName="CardFooter"},62445(e,t,a){a.d(t,{m:()=>l});var r=a(31085),n=a(14041),i=a(63878);let o=(0,a(48119).p)()({styles:{"bui-Container":"j9YF9y0JMsI4PdI6"},classNames:{root:"bui-Container"},propDefs:{children:{},className:{},style:{}},utilityProps:["my","mt","mb","py","pt","pb","display"]}),l=(0,n.forwardRef)((e,t)=>{let{ownProps:a,restProps:n,utilityStyle:l}=(0,i.Z)(o,e),{classes:s,children:c,style:d}=a;return(0,r.jsx)("div",{ref:t,className:s.root,style:{...l,...d},...n,children:c})});l.displayName="Container"},74891(e,t,a){a.d(t,{Y:()=>P});var r=a(31085),n=a(69749),i=a(63690),o=a(14041),l=a(90024),s=a(44031),c=a(28052),d=a(81901),u=a(21613),p=a(57873),m=a(63878),h=a(48119);let g={"bui-HeaderNav":"Se1MR2xlkoYuuKzh","bui-HeaderNavList":"vv3j5mY2O0cI5ygv","bui-HeaderNavItem":"c6iehTLRy0kKCOcK","bui-HeaderNavGroup":"UXkc2kZp0RMXPoJG","bui-HeaderNavActive":"q5ojXgJ30ggFPnjw","bui-HeaderNavHovered":"DfuW_HHgCkAZgy8z"},f=(0,h.p)()({styles:g,classNames:{root:"bui-HeaderNav",list:"bui-HeaderNavList",active:"bui-HeaderNavActive",hovered:"bui-HeaderNavHovered"},propDefs:{tabs:{},activeTabId:{},children:{},className:{}}}),v=(0,h.p)()({styles:g,classNames:{root:"bui-HeaderNavItem"},analytics:!0,navigation:{type:"anchor"},propDefs:{noTrack:{},id:{},label:{},href:{},active:{},registerRef:{},onHighlight:{},className:{}}}),y=(0,h.p)()({styles:g,classNames:{root:"bui-HeaderNavGroup"},propDefs:{className:{}}});function b(e){let{navRef:t,itemRefs:a,activeKey:n,highlightedKey:i,classes:l}=e,s=(0,o.useRef)(null),c=(0,o.useRef)(null),d=(0,o.useRef)(null),u=(0,o.useCallback)(()=>{let e=t.current;if(!e)return;let r=e.getBoundingClientRect();if(n){let t=a.current.get(n);if(t){let a=t.getBoundingClientRect(),i=a.left-r.left,o=a.top-r.top;null===s.current?(e.style.setProperty("--active-transition-duration","0s"),requestAnimationFrame(()=>{e.style.setProperty("--active-transition-duration","0.25s")})):e.style.setProperty("--active-transition-duration","0.25s"),e.style.setProperty("--active-tab-left",`${i}px`),e.style.setProperty("--active-tab-width",`${a.width}px`),e.style.setProperty("--active-tab-height",`${a.height}px`),e.style.setProperty("--active-tab-top",`${o}px`),e.style.setProperty("--active-tab-opacity","1"),s.current=n}}else e.style.setProperty("--active-tab-opacity","0"),s.current=null;if(i){null!==d.current&&(cancelAnimationFrame(d.current),d.current=null);let t=a.current.get(i);if(t){let a=t.getBoundingClientRect(),n=a.left-r.left,o=a.top-r.top;null===c.current?(e.style.setProperty("--hovered-transition-duration","0s"),requestAnimationFrame(()=>{e.style.setProperty("--hovered-transition-duration","0.2s")})):e.style.setProperty("--hovered-transition-duration","0.2s"),e.style.setProperty("--hovered-tab-left",`${n}px`),e.style.setProperty("--hovered-tab-top",`${o}px`),e.style.setProperty("--hovered-tab-width",`${a.width}px`),e.style.setProperty("--hovered-tab-height",`${a.height}px`),e.style.setProperty("--hovered-tab-opacity","1"),c.current=i}}else e.style.setProperty("--hovered-tab-opacity","0"),d.current=requestAnimationFrame(()=>{c.current=null,d.current=null})},[n,i,t,a]);return(0,o.useEffect)(()=>{u()},[u]),(0,o.useEffect)(()=>{let e=()=>u();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[u]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:l.active}),(0,r.jsx)("div",{className:l.hovered})]})}var x=a(19654),w=a(62059);function j(e){return"items"in e}function A({definitionResult:e,navigation:t}){let a,{ownProps:n,analytics:i}=e,{id:d,label:u,active:p,registerRef:m,onHighlight:h}=n,{href:g}=n,f=(0,o.useRef)(null),v=g;"router"===t.type?(v=t.ariaHref,a=t.routerOptions):"native"===t.type&&(v=t.ariaHref);let{linkProps:y}=(0,l.i)({href:v,routerOptions:a},f),{hoverProps:b}=(0,s.M)({onHoverStart:()=>h(d),onHoverEnd:()=>h(null)}),{href:x,...w}=(0,c.v)(y,b),j={...w,ref:e=>{f.current=e,m(d,e)},className:n.classes.root,"aria-current":p?"page":void 0,onClick:e=>{y.onClick?.(e),i.captureEvent("click",u,{attributes:{to:g}})},onFocus:()=>h(d),onBlur:()=>h(null),children:u},S="native"===t.type?t.browserHref:g;return(0,r.jsx)("li",{children:"router"===t.type?(0,r.jsx)(t.Link,{...j,...t.routerLinkOptions,to:t.to}):(0,r.jsx)("a",{...j,href:S})})}function S(e){let t=(0,m.Z)(v,e),a=t.navigation;return(0,r.jsx)(a,{props:{href:t.ownProps.href},view:A,viewProps:{definitionResult:t}})}function k(e){let{group:t,active:a,activeChildId:n,registerRef:o,onHighlight:l}=e,{ownProps:c}=(0,m.Z)(y,{}),{hoverProps:d}=(0,s.M)({onHoverStart:()=>l(t.id),onHoverEnd:()=>l(null)});return(0,r.jsx)("li",{children:(0,r.jsxs)(x.cQ,{children:[(0,r.jsxs)(p.$,{ref:e=>{o(t.id,e)},className:c.classes.root,"aria-current":a?"page":void 0,...d,onFocus:()=>l(t.id),onBlur:()=>l(null),children:[t.label,(0,r.jsx)(i.eQr,{size:16})]}),(0,r.jsx)(x.W1,{selectionMode:"single",selectedKeys:new Set(n?[n]:[]),children:t.items.map(e=>(0,r.jsx)(x.Dr,{id:e.id,href:e.href,children:e.label},e.id))})]})})}function C(e){let t=function(e){let t=(0,w.i)({fallback:!0}),a=t.useResolvedPath(".").pathname,{pathname:r}=t.useLocation();return(0,o.useMemo)(()=>{let t=e.flatMap(e=>j(e)?e.items:[e]).map(e=>({path:`${(0,u.o1)(e.href,a).pathname}/*`,id:e.id})),n=(0,u.ue)(t,r);return n?.[0]?.route.id},[e,a,r])}(e.tabs);return(0,r.jsx)(E,{tabs:e.tabs,activeTabId:t})}function E(e){let{tabs:t,activeTabId:a}=e,{ownProps:n}=(0,m.Z)(f,{tabs:t,activeTabId:a}),{classes:i}=n,{isFocusVisible:l}=(0,d.Y0)(),s=(0,o.useRef)(null),c=(0,o.useRef)(new Map),[u,p]=(0,o.useState)(null),{activeKey:h,activeChildId:g}=(0,o.useMemo)(()=>{if(!a)return{activeKey:void 0,activeChildId:void 0};for(let e of t)if(j(e)){let t=e.items.find(e=>e.id===a);if(t)return{activeKey:e.id,activeChildId:t.id}}else if(e.id===a)return{activeKey:e.id,activeChildId:void 0};return{activeKey:void 0,activeChildId:void 0}},[a,t]),v=(0,o.useCallback)((e,t)=>{t?c.current.set(e,t):c.current.delete(e)},[]);return(0,r.jsxs)("nav",{ref:s,"aria-label":"Content navigation",className:i.root,"data-focus-visible":l||void 0,children:[(0,r.jsx)("ul",{role:"list",className:i.list,children:t.map(e=>j(e)?(0,r.jsx)(k,{group:e,active:h===e.id,activeChildId:g,registerRef:v,onHighlight:p},e.id):(0,r.jsx)(S,{id:e.id,label:e.label,href:e.href,active:h===e.id,registerRef:v,onHighlight:p},e.id))}),(0,r.jsx)(b,{navRef:s,itemRefs:c,activeKey:h,highlightedKey:u,classes:{active:i.active,hovered:i.hovered}})]})}function N(e){let t=(0,w.i)({fallback:!0}).useInRouterContext();return void 0===e.activeTabId&&t?(0,r.jsx)(C,{tabs:e.tabs}):(0,r.jsx)(E,{tabs:e.tabs,activeTabId:e.activeTabId})}let L=(0,h.p)()({styles:{"bui-HeaderTop":"d6yO0l4zz3McSdPg","bui-HeaderContent":"hxIvk7f5W8T4u0_x","bui-HeaderBottom":"sBCid7jAqHsYIqrc","bui-HeaderStickySentinel":"kgD85NRPA0_J5Iqx","bui-HeaderTabsWrapper":"bmVIsoUAhPwZBrh_","bui-HeaderControls":"UuTgL1HrLw8aKiHC","bui-HeaderTitleStack":"w9_h0inOJpAMDApB","bui-HeaderBreadcrumbs":"JmA59TJW3k6oKPSn","bui-HeaderBreadcrumbsSmall":"QSVW3yKFsQP6ay8p","bui-HeaderBreadcrumbLink":"SPZSvNw8pXooRGZu","bui-HeaderBreadcrumbLinkSmall":"bRhhaD21XwcEowH6","bui-HeaderBreadcrumbSeparator":"q6r_2qtCYEk5f5C9","bui-HeaderTitle":"CyePbw1pK5EaaY97","bui-HeaderTitleSmall":"lICQaeQ7nwoibiTw","bui-HeaderTags":"R9Lx7hYf6AHO68V8","bui-HeaderTag":"rEvQyPKFaVAQxtKb","bui-HeaderMetaRow":"EQFjSGwLsNsPXHwU","bui-HeaderMetaItem":"NlFYkGgXGOEb2VXg"},bg:"consumer",classNames:{headerTop:"bui-HeaderTop",stickySentinel:"bui-HeaderStickySentinel",content:"bui-HeaderContent",headerBottom:"bui-HeaderBottom",breadcrumbs:"bui-HeaderBreadcrumbs",breadcrumbsSmall:"bui-HeaderBreadcrumbsSmall",breadcrumbLink:"bui-HeaderBreadcrumbLink",breadcrumbLinkSmall:"bui-HeaderBreadcrumbLinkSmall",breadcrumbSeparator:"bui-HeaderBreadcrumbSeparator",titleStack:"bui-HeaderTitleStack",title:"bui-HeaderTitle",titleSmall:"bui-HeaderTitleSmall",tabsWrapper:"bui-HeaderTabsWrapper",controls:"bui-HeaderControls",tags:"bui-HeaderTags",tag:"bui-HeaderTag",description:"bui-HeaderDescription",metaRow:"bui-HeaderMetaRow",metaItem:"bui-HeaderMetaItem"},propDefs:{title:{},customActions:{},tabs:{},activeTabId:{},breadcrumbs:{},description:{},tags:{},metadata:{},className:{},sticky:{}}});var T=a(8041),I=a(58586),R=a(12860),B=a(62445);let P=e=>{let{ownProps:t,dataAttributes:a}=(0,m.Z)(L,e,{classNameTarget:"content"}),{classes:l,title:s,tabs:c,activeTabId:d,customActions:u,breadcrumbs:p,description:h,tags:g,metadata:f,sticky:v}=t,y=(0,o.useMemo)(()=>h?I.JG.lexInline(h).map((e,t)=>{if("link"===e.type){let a=(0,T.sanitizeUrl)(e.href);return"about:blank"===a?e.text:(0,r.jsx)(R.N,{href:a,standalone:!0,children:e.text},t)}return e.raw}):null,[h]),b=(0,o.useRef)(null),[x,w]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!v)return void w(!1);let e=b.current;if(!e)return;let t=(e=>{let t=e?.parentElement;for(;t;){let{overflow:e,overflowX:a,overflowY:r}=window.getComputedStyle(t);if(/(auto|scroll|overlay|hidden)/.test(`${e}${a}${r}`))return t;t=t.parentElement}return null})(e);if("u"<typeof IntersectionObserver){let a=()=>{let a,r;w((a=e.getBoundingClientRect(),r=t?t.getBoundingClientRect().top:0,a.bottom<=r))},r=t??window;return a(),r.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{r.removeEventListener("scroll",a),window.removeEventListener("resize",a)}}let a=new IntersectionObserver(([e])=>{w(!e.isIntersecting)},{root:t,threshold:0});return a.observe(e),()=>{a.disconnect()}},[v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.m,{className:l.headerTop,"data-sticky":v||void 0,children:g&&g.length>0&&(0,r.jsx)("ul",{className:l.tags,children:g.map((e,t)=>(0,r.jsx)("li",{className:l.tag,children:e.href?(0,r.jsx)(R.N,{href:e.href,variant:"body-medium",color:"secondary",standalone:!0,children:e.label}):(0,r.jsx)(n.E,{variant:"body-medium",color:"secondary",children:e.label})},`${t}:${e.label}:${e.href??""}`))})}),v&&(0,r.jsx)("div",{ref:b,className:l.stickySentinel,"data-sticky":"","aria-hidden":"true"}),(0,r.jsxs)(B.m,{className:l.content,"data-sticky":v||void 0,"data-stuck":x||void 0,"data-has-tags":g&&g.length>0?"":void 0,...a,children:[(0,r.jsx)("div",{className:l.titleStack,children:x?(0,r.jsxs)("div",{className:l.breadcrumbsSmall,children:[p&&p.map(e=>(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(R.N,{href:e.href,color:"secondary",className:l.breadcrumbLinkSmall,standalone:!0,children:e.label}),(0,r.jsx)(i.ye6,{className:l.breadcrumbSeparator,size:16,color:"var(--bui-fg-secondary)"})]},e.label)),(0,r.jsx)("h2",{className:l.titleSmall,children:s})]}):(0,r.jsxs)("div",{className:l.breadcrumbs,children:[p&&p.map(e=>(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(R.N,{href:e.href,color:"secondary",className:l.breadcrumbLink,standalone:!0,children:e.label}),(0,r.jsx)(i.ye6,{className:l.breadcrumbSeparator,size:16,color:"var(--bui-fg-secondary)"})]},e.label)),(0,r.jsx)("h2",{className:l.title,children:s})]})}),(0,r.jsx)("div",{className:l.controls,children:u})]}),(0,r.jsxs)(B.m,{className:l.headerBottom,"data-sticky":v||void 0,children:[h&&(0,r.jsx)(n.E,{variant:"body-medium",color:"secondary",className:l.description,children:y}),f&&f.length>0&&(0,r.jsx)("dl",{className:l.metaRow,children:f.map((e,t)=>(0,r.jsxs)("div",{className:l.metaItem,children:[(0,r.jsx)("dt",{children:(0,r.jsx)(n.E,{variant:"body-medium",color:"secondary",children:e.label})}),(0,r.jsx)("dd",{children:"string"==typeof e.value?(0,r.jsx)(n.E,{variant:"body-medium",children:e.value}):e.value})]},`${t}:${e.label}`))}),c&&(0,r.jsx)("div",{className:l.tabsWrapper,children:(0,r.jsx)(N,{tabs:c,activeTabId:d})})]})]})}},43311(e,t,a){a.d(t,{E:()=>i});var r=a(58077),n=a(47196);function i(e,t,a){if(a){let n="string"==typeof e||"metadata"in e?e:(0,r.U2)(e);return a.forEntity(n,t).snapshot}return(0,n.T)(e,t)}},80018(e,t,a){a.d(t,{Q:()=>A});var r=a(31085),n=a(77125),i=a(72501),o=a(4321),l=a(87263),s=a(16249),c=a(33145),d=a(58837),u=a(7031),p=a(99703),m=a(6924),h=a(62683),g=a(14041),f=a(45250),v=a(53373),y=a.n(v);let b=(0,d.A)(e=>({root:{margin:e.spacing(1,0)},label:{position:"relative",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"& > span":{top:0,left:0,position:"absolute"}}}),{name:"BackstageAutocomplete"}),x=(0,u.A)(e=>(0,p.A)({root:{},paper:{margin:0},hasClearIcon:{},hasPopupIcon:{},focused:{},inputRoot:{marginTop:24,backgroundColor:e.palette.background.paper,"$root$hasClearIcon$hasPopupIcon &":{paddingBlock:e.spacing(.75),paddingInlineStart:e.spacing(.75)},"$root$focused &":{outline:"none"},"$root &:hover > fieldset":{borderColor:"#ced4da"},"$root$focused & > fieldset":{borderWidth:1,borderColor:e.palette.primary.main}},popupIndicator:{padding:0,margin:0,color:"#616161","&:hover":{backgroundColor:"unset"},'& [class*="MuiTouchRipple-root"]':{display:"none"}},endAdornment:{"$root$hasClearIcon$hasPopupIcon &":{right:4}},input:{"$root$hasClearIcon$hasPopupIcon &":{fontSize:e.typography.body1.fontSize,paddingBlock:e.spacing(.8125)}}}),{name:"BackstageAutocompleteBase"})(h.Ay),w=e=>(0,r.jsx)(l.A,{...e,transition:!0,placement:"bottom-start",children:({TransitionProps:t})=>(0,r.jsx)(c.A,{...t,style:{transformOrigin:"0 0 0"},children:(0,r.jsx)(n.A,{children:e.children})})}),j=e=>(0,r.jsx)(o.A,{...e,elevation:8});function A(e){let{label:t,name:a,LabelProps:o,TextFieldProps:l,...c}=e,d=b(),u=(0,g.useCallback)(e=>(0,r.jsx)(s.A,{...(0,f.merge)(e,l),variant:"outlined"}),[l]),p=(0,r.jsx)(x,{size:"small",...c,renderInput:c.renderInput??u,popupIcon:(0,r.jsx)(m.default,{"data-testid":`${a}-expand`}),PaperComponent:j,PopperComponent:w});return(0,r.jsx)(n.A,{className:d.root,children:t?(0,r.jsxs)(i.A,{...o,className:y()(d.label,o?.className),component:"label",children:[(0,r.jsx)(n.A,{component:"span",children:t}),p]}):p})}},71242(e,t,a){a.d(t,{GI:()=>g});var r=a(31085),n=a(14041),i=a(77125),o=a(64947),l=a(73845),s=a(42899),c=a(72501),d=a(5893),u=a(54917),p=a(65859),m=a(79811),h=a(89595);let g=e=>(0,r.jsx)(s.A,{container:!0,style:{position:"relative"},children:e.children});g.Filters=e=>{let t=(0,d.A)(t=>t.breakpoints.down(e.options?.drawerBreakpoint??"md"),{noSsr:!0}),a=(0,u.A)(),[g,f]=(0,n.useState)(!1),{t:v}=(0,h.i)(m.j);return t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{style:{marginTop:a.spacing(1),marginLeft:a.spacing(1)},onClick:()=>f(!0),startIcon:(0,r.jsx)(p.default,{}),children:v("catalogFilter.buttonTitle")}),(0,r.jsx)(l.Ay,{open:g,onClose:()=>f(!1),anchor:e.options?.drawerAnchor??"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,r.jsxs)(i.A,{m:2,children:[(0,r.jsx)(c.A,{variant:"h6",component:"h2",style:{marginBottom:a.spacing(1)},children:v("catalogFilter.title")}),e.children]})})]}):(0,r.jsx)(s.A,{item:!0,lg:2,children:e.children})},g.Content=e=>(0,r.jsx)(s.A,{item:!0,xs:12,lg:10,children:e.children})},19030(e,t,a){a.d(t,{y:()=>A});var r=a(31085),n=a(77125),i=a(58837),o=a(14041),l=a(50509),s=a(73466),c=a(76272),d=a(98552),u=a(86901),p=a(44148),m=a(41260);let h=(0,r.jsx)(m.default,{fontSize:"small"}),g=(0,r.jsx)(p.default,{fontSize:"small"});function f({selected:e}){return(0,r.jsx)(d.A,{icon:h,checkedIcon:g,checked:e})}let v=(0,o.memo)(e=>{let{selected:t,value:a,availableOptions:n,showCounts:i}=e,o=i?`${a} (${n?.[a]})`:a;return(0,r.jsx)(u.A,{control:(0,r.jsx)(f,{selected:t}),label:o,onClick:e=>e.preventDefault()})});var y=a(59378),b=a(89729),x=a(80018),w=a(45250);let j=(0,i.A)({root:{},label:{textTransform:"none",fontWeight:"bold"}},{name:"CatalogReactEntityAutocompletePicker"});function A(e){let{label:t,name:a,path:i,showCounts:d,Filter:u,InputProps:p,initialSelectedOptions:m=[],filtersForAvailableValues:h=["kind"],hidden:g,getOptionLabel:f,renderOption:A}=e,S=j(),{updateFilters:k,filters:C,queryParameters:{[a]:E}}=(0,y.nK)(),N=(0,l.gf)(c.v),L=h.map(e=>C[e]),{value:T}=(0,s.A)(async()=>{let{facets:e}=await N.getEntityFacets({facets:[i],filter:(0,b.Rr)(L.filter(Boolean))});return Object.fromEntries(e[i].map(({value:e,count:t})=>[e,t]))},[...L]),I=(0,o.useMemo)(()=>[E].flat().filter(Boolean),[E]),R=C[a]?.values,[B,P]=(0,o.useState)(I.length?I:R??m);(0,o.useEffect)(()=>{I.length&&P(I)},[I]);let $=Object.keys(T??{}),O=B.length&&$.length;(0,o.useEffect)(()=>{k({[a]:O?new u(B):void 0})},[a,O,B,u,k]),(0,o.useEffect)(()=>{if(!O)return;let e=R??[];(0,w.isEqual)(e,B)||P(e)},[R]);let z=C[a];return(!z||"object"!=typeof z||"values"in z)&&$.length?g?null:(0,r.jsx)(n.A,{className:S.root,pb:1,pt:1,children:(0,r.jsx)(x.Q,{multiple:!0,disableCloseOnSelect:!0,label:t,name:`${String(a)}-picker`,options:$,value:B,TextFieldProps:p,onChange:(e,t)=>P(t),...f&&{getOptionLabel:f},renderOption:A??((e,{selected:t})=>(0,r.jsx)(v,{selected:t,value:e,availableOptions:T,showCounts:!!d}))})}):null}},8918(e,t,a){a.d(t,{t:()=>F});var r=a(31085),n=a(58077),i=a(77125),o=a(98552),l=a(86901),s=a(72501),c=a(71677),d=a(58837),u=a(44148),p=a(41260),m=a(14041),h=a(59378),g=a(47195),f=a(1497),v=a(48108),y=a(47966),b=a(87623),x=a(43311),w=a(50509),j=a(87290),A=a(76272),S=a(76842),k=a(84392);let C=e=>{let{data:t,index:a,style:r}=e;return(0,m.cloneElement)(t[a],{style:r})},E=(0,m.createContext)({}),N=(0,m.forwardRef)(({onScroll:e,...t},a)=>{let{onScroll:n,...i}=(0,m.useContext)(E);return(0,r.jsx)("div",{ref:a,onScroll:t=>{e?.(t),n?.(t)},...t,...i})}),L=(0,m.forwardRef)((e,t)=>{let{children:a,...n}=e,i=m.Children.toArray(a),o=i.length,l=Math.min(10,o)+.5;return(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(E.Provider,{value:n,children:(0,r.jsx)(k.Y1,{height:36*l,itemData:i,itemCount:o,itemSize:36,outerElementType:N,width:"100%",children:C})})})});var T=a(7031),I=a(76355),R=a(79811),B=a(89595),P=a(80018);let $=(0,d.A)({root:{},label:{},input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),O=(0,T.A)(e=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(l.A),z=(0,r.jsx)(p.default,{fontSize:"small"}),H=(0,r.jsx)(u.default,{fontSize:"small"});function M(e){let t=$(),a="group"===e.entity.kind.toLocaleLowerCase("en-US"),l="owners-only"===e.mode?(0,n.U2)(e.entity):e.entity,{primaryTitle:d}=(0,I.f)(l);return(0,r.jsx)(i.A,{className:t.fullWidth,children:(0,r.jsx)(O,{className:t.fullWidth,control:(0,r.jsx)(o.A,{icon:z,checkedIcon:H,checked:e.isSelected}),onClick:e=>e.preventDefault(),label:(0,r.jsx)(c.Ay,{title:d,children:(0,r.jsxs)(i.A,{display:"flex",alignItems:"center",children:[a?(0,r.jsx)(y.default,{fontSize:"small"}):(0,r.jsx)(v.default,{fontSize:"small"}),"\xa0",(0,r.jsx)(i.A,{className:t.boxLabel,children:(0,r.jsx)(s.A,{noWrap:!0,children:d})})]})})})})}let F=e=>{let t=$(),{mode:a="owners-only"}=e||{},o=(0,w.Q2)().get(b.n),{updateFilters:l,filters:s,queryParameters:{owners:c}}=(0,h.nK)(),[d,u]=(0,m.useState)(""),{t:p}=(0,B.i)(R.j),v=(0,m.useMemo)(()=>[c].flat().filter(Boolean),[c]),[y,k]=(0,m.useState)(v.length?new g.N9(v).values:s.owners?.values??[]),[{value:C,loading:E},N,T]=function({mode:e,initialSelectedOwnersRefs:t}){let a,r="owners-only"===e,i=(a=(0,w.gf)(A.v),(0,j.A)(async(e,t)=>{let r=t?.limit??20;if(e.cursor){let t=await a.queryEntities({cursor:e.cursor,limit:r});return{cursor:t.pageInfo.nextCursor,items:[...e.items,...t.items]}}let n=await a.queryEntities({fullTextFilter:{term:e.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:r});return{cursor:n.pageInfo.nextCursor,items:n.items}},[],{loading:!0})),o=function({enabled:e}){let t=(0,w.gf)(A.v),[a]=(0,m.useState)(async()=>{if(!e)return[];let a="relations.ownedBy";return t.getEntityFacets({facets:[a]}).then(e=>e.facets[a].map(e=>e.value).map(e=>{let{kind:t,name:a,namespace:r}=(0,n.KU)(e);return{apiVersion:"backstage.io/v1beta1",kind:t,metadata:{name:a,namespace:r}}}).sort((e,t)=>e.kind.localeCompare(t.kind,"en-US")||e.metadata.namespace.localeCompare(t.metadata.namespace,"en-US")||e.metadata.name.localeCompare(t.metadata.name,"en-US"))).catch(()=>[])});return(0,j.A)(async(e,t)=>{var r;let n=await a;if(!n)return{items:[]};let i=t?.limit??20,{text:o,start:l}=(r=e).cursor&&r.cursor?JSON.parse(atob(r.cursor)):{text:r.text||"",start:0},s=n.filter(e=>{var t,a;let r;return t=o,a=e,r=t.trim(),a.kind.includes(r)||a.metadata.namespace?.includes(r)||a.metadata.name.includes(r)}),c=l+i;return{items:s.slice(0,c),...function({entities:e,limit:t,payload:a}){return e.length>t?{cursor:btoa(JSON.stringify(a))}:{}}({entities:s,limit:c,payload:{text:o,start:c}})}},[a],{loading:!0,value:{items:[]}})}({enabled:r}),[l,s]=r?o:i;return[l,s,function({enabled:e,initialSelectedOwnersRefs:t}){let a=(0,m.useRef)({}),r=(0,w.gf)(A.v),[,i]=(0,j.A)(async()=>{(await r.getEntitiesByRefs({entityRefs:t})).items.forEach(e=>{e&&(a.current[(0,n.U2)(e)]=e)})},[]);return(0,S.u)(()=>{e&&t.length>0&&i()}),{getEntity:e=>a.current[e],setEntity:e=>{a.current[(0,n.U2)(e)]=e}}}({enabled:!r,initialSelectedOwnersRefs:t})]}({mode:a,initialSelectedOwnersRefs:y});(0,f.s)(()=>N({text:d.toLocaleLowerCase("en-US")}),[d,N],250);let I=C?.items||[];return((0,m.useEffect)(()=>{v.length&&k(new g.N9(v).values)},[v]),(0,m.useEffect)(()=>{l({owners:y.length?new g.N9(y):void 0})},[y,l]),["user","group"].includes(s.kind?.value.toLocaleLowerCase("en-US")||""))?null:(0,r.jsx)(i.A,{className:t.root,pb:1,pt:1,children:(0,r.jsx)(P.Q,{label:p("entityOwnerPicker.title"),multiple:!0,disableCloseOnSelect:!0,loading:E,options:I,value:y,getOptionSelected:(e,t)=>"string"==typeof t?(0,n.U2)(e)===t:e===t,getOptionLabel:e=>{if("owners-only"===a){let t="string"==typeof e?e:(0,n.U2)(e);return(0,x.E)(t,void 0,o).primaryTitle}let t="string"==typeof e?T.getEntity(e)||(0,n.KU)(e,{defaultKind:"group",defaultNamespace:"default"}):e;return(0,x.E)(t,void 0,o).primaryTitle},onChange:(e,t)=>{u(""),k(t.map(e=>{let t="string"==typeof e?e:(0,n.U2)(e);return"string"!=typeof e&&T.setEntity(e),t}))},filterOptions:e=>e,renderOption:(e,{selected:t})=>(0,r.jsx)(M,{entity:e,isSelected:t,mode:a}),name:"owner-picker",onInputChange:(e,t)=>{u(t)},ListboxComponent:L,ListboxProps:{onScroll:e=>{let t=e.currentTarget;1>Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)&&C?.cursor&&N({items:C.items,cursor:C.cursor})},"data-testid":"owner-picker-listbox"},LabelProps:{className:t.label},TextFieldProps:{className:t.input}})})}},53987(e,t,a){a.d(t,{i:()=>l});var r=a(31085),n=a(58077),i=a(14041),o=a(3438);function l(e){let{entityRefs:t,hideIcons:a,...l}=e;return(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>{let s="string"==typeof e?e:(0,n.U2)(e);return(0,r.jsxs)(i.Fragment,{children:[t>0&&", ",(0,r.jsx)(o.z,{...l,entityRef:e,hideIcon:a})]},`${t}.${s}`)})})}},67762(e,t,a){a.d(t,{m:()=>d});var r=a(31085),n=a(58837),i=a(47195),o=a(19030),l=a(79811),s=a(89595);let c=(0,n.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),d=e=>{let t=c(),{t:a}=(0,s.i)(l.j);return(0,r.jsx)(o.y,{label:a("entityTagPicker.title"),name:"tags",path:"metadata.tags",Filter:i.q_,showCounts:e.showCounts,InputProps:{className:t.input},initialSelectedOptions:e.initialFilter?e.initialFilter:[],hidden:e.hidden})}},59302(e,t,a){a.d(t,{y:()=>I});var r=a(31085),n=a(50509),i=a(19735),o=a(40703),l=a(58007),s=a(68804),c=a(65569),d=a(5951),u=a(26343),p=a(72501),m=a(58837),h=a(9684),g=a(55940),f=a(14041),v=a(47195),y=a(59378),b=a(48203),x=a(45250),w=a(73466),j=a(76272),A=a(89729),S=a(87290),k=a(17855),C=a(58077),E=a(75710),N=a(89595),L=a(79811);let T=(0,m.A)(e=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:e.spacing(1,0,1,0)},title:{margin:e.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:e.palette.text.primary},menuItem:{minHeight:e.spacing(6)},groupWrapper:{margin:e.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"}),I=e=>{let{initialFilter:t,availableFilters:a,hidden:m,alwaysKeepFilters:I}=e,R=T(),B=(0,n.gf)(i.U),{t:P}=(0,N.i)(L.j),$=B.getOptionalString("organization.name")??P("userListPicker.defaultOrgName"),{filters:O,updateFilters:z,queryParameters:{user:H}}=(0,y.nK)(),M=O.kind?.value?.toLowerCase(),F=["starred","all"],_=[{name:P("userListPicker.personalFilter.title"),items:[{id:"owned",label:P("userListPicker.personalFilter.ownedLabel"),icon:h.default},{id:"starred",label:P("userListPicker.personalFilter.starredLabel"),icon:g.Gg}]},{name:$,items:[{id:"all",label:P("userListPicker.orgFilterAllLabel")}]}].map(e=>({...e,items:e.items.filter(({id:e})=>["group","user"].some(e=>e===M)?F.includes(e):!a||a.includes(e))})).filter(({items:e})=>!!e.length),{count:D,loading:U,filter:K}=function(){let e=(0,n.gf)(b.K),t=(0,n.gf)(j.v),{filters:a}=(0,y.nK)(),{value:r,loading:i}=(0,w.A)(async()=>(await e.getBackstageIdentity()).ownershipEntityRefs,[]),{user:o,owners:l,...s}=a,{orderFields:c,...d}=(0,A.$3)((0,x.compact)(Object.values(s))),[{value:u,loading:p},m]=(0,S.A)(async e=>{let a=function(e,t){if(!t?.length)return;let a=e?.values??[];if(a.length){let e=(0,x.intersection)(a,t);if(0===e.length)return;return e}return t}(e.owners,e.ownershipEntityRefs);if(void 0===a)return 0;let{"metadata.name":r,...n}=e.filter.filter,{totalItems:i}=await t.queryEntities({...e.filter,filter:{...n,"relations.ownedBy":a},limit:0});return i},[],{loading:!0});return(0,k.A)(()=>{0===Object.keys(d.filter).length||void 0!==r&&m({ownershipEntityRefs:r,owners:l,filter:d})},[r,l,d]),{count:u,loading:i||p,filter:(0,f.useMemo)(()=>v.tN.owned(r??[]),[r]),ownershipEntityRefs:r}}(),{count:Y}=function(){let e=(0,n.gf)(j.v),{filters:t}=(0,y.nK)(),a=(0,f.useRef)(),r=(0,f.useMemo)(()=>{let{user:e,...r}=t,n=(0,x.compact)(Object.values(r)),{orderFields:i,...o}=(0,A.$3)(n),l={...o,limit:0};return 0===Object.keys(o.filter).length?(a.current=void 0,a.current):(0,x.isEqual)(l,a.current)?a.current:(a.current=l,l)},[t]),{value:i,loading:o}=(0,w.A)(async()=>{if(void 0===r)return 0;let{totalItems:t}=await e.queryEntities(r);return t},[r]);return{count:i,loading:o}}(),{count:V,filter:W,loading:q}=function(){let e=(0,n.gf)(j.v),{filters:t}=(0,y.nK)(),{starredEntities:a}=(0,E.I)(),r=(0,f.useRef)(),i=(0,f.useMemo)(()=>{let{user:e,...n}=t,i=(0,x.compact)(Object.values(n)),{orderFields:o,...l}=(0,A.$3)(i),s={...l,filter:{...l.filter,"metadata.name":Array.from(a).map(e=>(0,C.KU)(e).name)},limit:1e3};return(0,x.isEqual)(s,r.current)?r.current:(r.current=s,s)},[t,a]),{value:o,loading:l}=(0,w.A)(async()=>a.size?(await e.queryEntities(i)).items.map(e=>(0,C.U2)({kind:e.kind,namespace:e.metadata.namespace,name:e.metadata.name})).filter(e=>a.has(e)).length:0,[i,a]);return{count:o,loading:l,filter:(0,f.useMemo)(()=>v.tN.starred(Array.from(a)),[a])}}(),G=(0,f.useMemo)(()=>[H].flat()[0],[H]),[Q,X]=(0,f.useState)(G??t),Z=(0,f.useMemo)(()=>({all:Y,starred:V,owned:D}),[V,D,Y]);(0,f.useEffect)(()=>{G&&X(G)},[G]);let J=U||q;return(0,f.useEffect)(()=>{J||!Q||"all"===Q||0!==Z[Q]||I||X("all")},[J,Z,Q,X,I]),(0,f.useEffect)(()=>{!Q||J||z({user:"owned"===Q?K:"starred"===Q?W:v.tN.all()})},[Q,W,K,z,J]),m?null:(0,r.jsx)(o.A,{className:R.root,children:_.map(e=>(0,r.jsxs)(f.Fragment,{children:[(0,r.jsx)(p.A,{variant:"subtitle2",component:"span",className:R.title,children:e.name}),(0,r.jsx)(o.A,{className:R.groupWrapper,children:(0,r.jsx)(l.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":e.name,children:e.items.map((t,a)=>(0,r.jsxs)(u.A,{role:"none presentation",divider:a!==e.items.length-1,onClick:()=>X(t.id),selected:t.id===O.user?.value,className:R.menuItem,disabled:0===Z[t.id],"data-testid":`user-picker-${t.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[t.icon&&(0,r.jsx)(s.A,{className:R.listIcon,children:(0,r.jsx)(t.icon,{fontSize:"small"})}),(0,r.jsx)(d.A,{children:(0,r.jsxs)(p.A,{variant:"body1",children:[t.label," "]})}),(0,r.jsx)(c.A,{children:Z[t.id]??"-"})]},t.id))})})]},e.name))})}},47195(e,t,a){a.d(t,{I5:()=>u,Kf:()=>g,N9:()=>d,V3:()=>c,gM:()=>o,gZ:()=>h,mT:()=>f,qA:()=>l,q_:()=>s,tN:()=>m,z:()=>p});var r=a(58077),n=a(49185),i=a(53320);class o{value;label;constructor(e,t){this.value=e,this.label=t}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class l{value;constructor(e){this.value=e}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class s{values;constructor(e){this.values=e}filterEntity(e){return this.values.every(t=>(e.metadata.tags??[]).includes(t))}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}}class c{value;constructor(e){this.value=e}filterEntity(e){let t=this.toUpperArray(this.value.split(/\s/)),a=this.toUpperArray([e.metadata.tags]),r=e.spec?.targets,n=this.toUpperArray([e.metadata.name,e.metadata.title,e.spec?.profile?.displayName,e.spec?.target,...Array.isArray(r)?r:[]]);for(let e of t)if(a.every(t=>t!==e)&&n.every(t=>!t.includes(e)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName","spec.target","spec.targets"]}}toQueryValue(){return this.value}toUpperArray(e){return e.flat().filter(e=>!!e&&"string"==typeof e).map(e=>e.toLocaleUpperCase("en-US"))}}class d{values;constructor(e){this.values=e.reduce((e,t)=>{try{return e.push((0,r.U2)((0,r.KU)(t,{defaultKind:"Group"}))),e}catch(t){return e}},[])}getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(e){return this.values.some(t=>(0,i.t)(e,n.vv).some(e=>(0,r.U2)(e)===t))}toQueryValue(){return this.values}}class u{values;constructor(e){this.values=e}getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(e){return this.values.some(t=>e.spec?.lifecycle===t)}toQueryValue(){return this.values}}class p{values;constructor(e){this.values=e}getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(e){return this.values.some(t=>e.metadata.namespace===t)}toQueryValue(){return this.values}}class m{value;refs;constructor(e,t){this.value=e,this.refs=t}static owned(e){return new m("owned",e)}static all(){return new m("all")}static starred(e){return new m("starred",e)}getCatalogFilters(){return"owned"===this.value?{"relations.ownedBy":this.refs??[]}:"starred"===this.value?{"metadata.name":this.refs?.map(e=>(0,r.KU)(e).name)??[]}:{}}filterEntity(e){if("starred"===this.value)return this.refs?.includes((0,r.U2)(e))??!0;if("owned"===this.value){let t=(0,i.t)(e,n.vv);return this.refs?.some(e=>t.some(t=>(0,r.U2)(t)===e))??!1}return!0}toQueryValue(){return this.value}}class h{value;isOwnedEntity;isStarredEntity;constructor(e,t,a){this.value=e,this.isOwnedEntity=t,this.isStarredEntity=a}filterEntity(e){switch(this.value){case"owned":return this.isOwnedEntity(e);case"starred":return this.isStarredEntity(e);default:return!0}}toQueryValue(){return this.value}}class g{value;constructor(e){this.value=e}getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(e){let t=e.metadata.annotations?.["backstage.io/orphan"];return void 0!==t&&this.value.toString()===t}}class f{value;constructor(e){this.value=e}filterEntity(e){let t=e?.status?.items?.length>0;return void 0!==t&&this.value===t}}},59378(e,t,a){a.d(t,{B9:()=>b,nK:()=>x});var r=a(31085),n=a(50509),i=a(9135),o=a(20549),l=a(45250),s=a(45810),c=a.n(s),d=a(14041),u=a(18690),p=a(87290),m=a(48240),h=a(71581),g=a(76272),f=a(89729);let v=(0,i.tK)("entity-list-context"),y=(0,d.createContext)(void 0),b=e=>{let t=(0,h.A)(),a=(0,n.gf)(g.v),[i,s]=(0,d.useState)({}),b=(0,u.useLocation)(),x="none";!0===e.pagination?x="cursor":"object"==typeof e.pagination&&(x=e.pagination.mode??"cursor");let w="object"==typeof e.pagination?e.pagination.limit??20:20,{queryParameters:j,cursor:A,offset:S,limit:k}=(0,d.useMemo)(()=>{let e=c().parse(b.search,{ignoreQueryPrefix:!0,arrayLimit:1e4}),t=w;if("string"==typeof e.limit){let a=Number.parseInt(e.limit,10);isNaN(a)||(t=a)}let a="string"==typeof e.offset&&"offset"===x?Number.parseInt(e.offset,10):void 0;return{queryParameters:e.filters??{},cursor:"string"==typeof e.cursor&&"cursor"===x?e.cursor:void 0,offset:"offset"===x&&a&&!isNaN(a)?a:void 0,limit:t}},[x,b.search,w]),[C,E]=(0,d.useState)(A),[N,L]=(0,d.useState)(S),[T,I]=(0,d.useState)(k),[R,B]=(0,d.useState)({backendEntities:[]}),[P,$]=(0,d.useState)(!0),[O,z]=(0,d.useState)(),[H,M]=(0,d.useState)(0),F=(0,d.useRef)(void 0),_=(0,d.useRef)(0),D=(0,d.useMemo)(()=>{let e=i.kind?.value?.toLocaleLowerCase("en-US");return"user"===e||"group"===e?{...i,owners:void 0}:i},[i]),U=async()=>{let e,t,r=(0,l.compact)(Object.values(D));if("none"!==x)if(C)e={cursor:C,limit:T},t=async()=>{let e=await a.queryEntities({cursor:C,limit:T,totalItems:"exclude"});return{backendEntities:e.items,pageInfo:e.pageInfo}};else{let n=(0,f.$3)(r);e={...n,limit:T,offset:N},t=async()=>{let e=await a.queryEntities({...n,limit:T,offset:N,totalItems:"exclude"});return{backendEntities:e.items,pageInfo:e.pageInfo}}}else{let n=(0,f.Rr)(r),{orderFields:i}=(0,f.$3)(r);e={filter:n,order:i},t=async()=>({backendEntities:(await a.getEntities({filter:n,order:i})).items})}if(0===r.length&&void 0===F.current&&!C)return void $(!1);if((0,l.isEqual)(e,F.current))return;F.current=e;let n=++_.current;$(!0),z(void 0);try{let e=await t();n===_.current&&B(e)}catch(e){n===_.current&&(F.current=void 0,z(e))}finally{n===_.current&&$(!1)}};(0,m.A)(U,10,[D,C,T,N,H]);let[{value:K,loading:Y},V]=(0,p.A)(async()=>{if("none"===x)return;let e=(0,l.compact)(Object.values(D));if(0===e.length)return;let t=(0,f.$3)(e);try{return(await a.queryEntities({...t,limit:0})).totalItems}catch{return}},[a,x,D]);(0,m.A)(V,10,[D,H]);let W=(0,d.useMemo)(()=>{let e=(0,l.compact)(Object.values(D)),t=(0,f.be)(e);return R.backendEntities.filter(t)},[D,R.backendEntities]);(0,d.useEffect)(()=>{if(!t()||0===Object.keys(i).length)return;let e=Object.keys(i).reduce((e,t)=>{let a=i[t];return a?.toQueryValue&&(e[t]=a.toQueryValue()),e},{}),a=c().parse(b.search,{ignoreQueryPrefix:!0,arrayLimit:1e4}),r=c().stringify({...a,filters:e,..."none"===x?{}:{cursor:C,limit:T,offset:N}},{addQueryPrefix:!0,arrayFormat:"repeat"}),n=`${window.location.pathname}${r}`;window.history?.replaceState(null,document.title,n)},[C,t,T,b.search,N,i,x]);let q=(0,d.useCallback)(e=>{"cursor"===x?E(void 0):"offset"===x&&L(0),s(t=>{let a="function"==typeof e?e(t):e;return{...t,...a}})},[x]),G=(0,d.useCallback)(()=>{F.current=void 0,M(e=>e+1)},[]),Q=(0,d.useMemo)(()=>{if("cursor"!==x)return;let e=R.pageInfo?.prevCursor,t=R.pageInfo?.nextCursor;return{prev:e?()=>E(e):void 0,next:t?()=>E(t):void 0}},[x,R.pageInfo]),X=(0,d.useMemo)(()=>({filters:i,entities:W,backendEntities:R.backendEntities,updateFilters:q,queryParameters:j,loading:P,error:O,pageInfo:Q,totalItems:"none"===x?W.length:K??R.totalItems,totalItemsLoading:"none"!==x&&Y,limit:T,offset:N,setLimit:I,setOffset:L,paginationMode:x,refresh:G}),[i,W,R,K,Y,q,j,P,O,Q,x,T,N,I,L,G]);return(0,r.jsx)(y.Provider,{value:X,children:(0,r.jsx)(v.Provider,{value:(0,o.B)({1:X}),children:e.children})})};function x(){let e=(0,i.qO)("entity-list-context"),t=(0,d.useContext)(y);if(e){let t=e.atVersion(1);if(!t)throw Error("EntityListContext v1 not available");return t}if(t)return t;throw Error("useEntityList must be used within EntityListProvider")}},75710(e,t,a){a.d(t,{I:()=>c});var r=a(58077),n=a(50509),i=a(14041),o=a(10581),l=a(769);function s(e){return"string"==typeof e?e:(0,r.U2)(e)}function c(){let e=(0,n.gf)(l.a),t=(0,o.A)((0,i.useMemo)(()=>e.starredEntitie$(),[e]),new Set),a=(0,i.useCallback)(e=>t.has(s(e)),[t]);return{starredEntities:t,toggleStarredEntity:(0,i.useCallback)(t=>e.toggleStarred(s(t)).then(),[e]),isStarredEntity:a}}},89729(e,t,a){a.d(t,{$3:()=>o,Rr:()=>l,be:()=>s});var r=a(47195);function n(e){return!!e.getFullTextFilters}function i(e){return!!e.getOrderFilters}function o(e){let t=e.reduce((e,t)=>({...e,...t.getCatalogFilters?t.getCatalogFilters():{}}),{});return{filter:t,fullTextFilter:e.find(n)?.getFullTextFilters(),orderFields:e.find(i)?.getOrderFilters()||[{field:"metadata.name",order:"asc"}]}}function l(e){let t={};return e.forEach(e=>{e instanceof r.q_||e instanceof r.N9||e instanceof r.I5||e instanceof r.z||e instanceof r.tN||e instanceof r.Kf||e instanceof r.V3||e instanceof r.gZ||Object.assign(t,e.getCatalogFilters?.()||{})}),t}function s(e){return t=>e.every(e=>!e.filterEntity||e.filterEntity(t))}},53320(e,t,a){a.d(t,{t:()=>n});var r=a(58077);function n(e,t,a){let n=e?.relations?.filter(e=>e.type===t).map(e=>(0,r.KU)(e.targetRef))||[];return a?.kind&&(n=n.filter(e=>e.kind.toLocaleLowerCase("en-US")===a.kind.toLocaleLowerCase("en-US"))),n}},7613(e,t,a){a.d(t,{e:()=>o});var r=a(31085),n=a(14041);let i=(0,a(58837).A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),o=e=>{let{text:t,preTag:a,postTag:o}=e,l=i(),s=(0,n.useMemo)(()=>t.split(RegExp(`(${a}.+?${o})`)),[o,a,t]);return(0,r.jsx)(r.Fragment,{children:s.map((e,t)=>e.includes(a)?(0,r.jsx)("mark",{className:l.highlight,children:e.replace(RegExp(`${a}|${o}`,"g"),"")},t):e)})}},63489(e,t,a){a.d(t,{SQ:()=>f,Lt:()=>b});var r=a(31085),n=a(45250),i=a(14041),o=a(73466),l=a(5877),s=a(9135),c=a(20549),d=a(50509),u=a(53996),p=a(92829),m=a(19735);let h=(0,a(55604).y)({id:"plugin.search.queryservice"}),g=(0,s.tK)("search-context"),f=()=>{let e=(0,i.useContext)(g);if(!e)throw Error("useSearch must be used within a SearchContextProvider");let t=e.atVersion(1);if(!t)throw Error("No SearchContext v1 found");return t},v={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},y=e=>{let{initialState:t,children:a}=e,s=((e=v)=>{let t=(0,d.gf)(h),a=(0,u.s)(),[r,s]=(0,i.useState)(e.term),[c,p]=(0,i.useState)(e.types),[m,g]=(0,i.useState)(e.filters),[f,y]=(0,i.useState)(e.pageLimit),[b,x]=(0,i.useState)(e.pageCursor),w=(0,i.useRef)(!0),j=(0,l.A)(r),A=(0,l.A)(m),S=(0,i.useRef)(null),k=(0,o.A)(async()=>{if(w.current&&(w.current=!1,!r&&!c.length&&!Object.keys(m).length))return{results:[],numberOfResults:0};S.current&&S.current.abort();let e=new AbortController;S.current=e;let n=await t.query({term:r,types:c,filters:m,pageLimit:f,pageCursor:b},{signal:e.signal});return r&&a.captureEvent("search",r,{value:n.numberOfResults}),n},[r,c,m,f,b]),C=!k.loading&&!k.error&&k.value?.nextPageCursor,E=!k.loading&&!k.error&&k.value?.previousPageCursor,N=(0,i.useCallback)(()=>{x(k.value?.nextPageCursor)},[k.value?.nextPageCursor]),L=(0,i.useCallback)(()=>{x(k.value?.previousPageCursor)},[k.value?.previousPageCursor]);return(0,i.useEffect)(()=>()=>{S.current&&S.current.abort()},[]),(0,i.useEffect)(()=>{void 0!==j&&r!==j&&x(void 0)},[r,j,x]),(0,i.useEffect)(()=>{void 0===A||(0,n.isEqual)(m,A)||x(void 0)},[m,A,x]),{result:k,term:r,setTerm:s,types:c,setTypes:p,filters:m,setFilters:g,pageLimit:f,setPageLimit:y,pageCursor:b,setPageCursor:x,fetchNextPage:C?N:void 0,fetchPreviousPage:E?L:void 0}})(t);return(0,r.jsx)(p.Ig,{attributes:{searchTypes:s.types.sort().join(",")},children:(0,r.jsx)(g.Provider,{value:(0,c.B)({1:s}),children:a})})},b=e=>{let{initialState:t,inheritParentContextIfAvailable:a,children:n}=e,o=void 0!==(0,i.useContext)(g),l=(0,d.gf)(m.U),s=l.has("search.query.pageLimit")?{pageLimit:l.getNumber("search.query.pageLimit")}:{},c={...v,...t??{},...s};return o&&a?(0,r.jsx)(r.Fragment,{children:n}):(0,r.jsx)(y,{initialState:c,children:n})}},96741(e,t,a){a.d(t,{K$:()=>s,_$:()=>c,eh:()=>d});var r=a(31085),n=a(14041),i=a(9394),o=a(91360),l=a(22856);let s="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",c=e=>{let[t,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!e)return()=>{};a(!0);let t=e.style;t.setProperty("opacity","0");let r=()=>{a(!1),t.setProperty("opacity","1")};return e.addEventListener(s,r),()=>{e.removeEventListener(s,r)}},[e]),t},d=e=>{let{element:t,onAppend:a,children:c}=e,[d,u]=(0,n.useState)((0,i.vt)({...(0,l.A)(),insertionPoint:void 0}));(0,n.useEffect)(()=>{if(!t)return()=>{};let e=t.querySelectorAll('head > link[rel="stylesheet"]'),a=e?.length??0,r=new CustomEvent(s);if(!a)return t.dispatchEvent(r),()=>{};let n=()=>{0==--a&&t.dispatchEvent(r)};return e?.forEach(e=>{e.addEventListener("load",n)}),()=>{e?.forEach(e=>{e.removeEventListener("load",n)})}},[t]);let p=(0,n.useCallback)(e=>{if(!t||!e)return;u((0,i.vt)({...(0,l.A)(),insertionPoint:t.querySelector("head")||void 0}));let r=e.shadowRoot;r||(r=e.attachShadow({mode:"open"})),r.replaceChildren(t),"function"==typeof a&&a(r)},[t,a]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(o.Ay,{jss:d,sheetsManager:new Map,children:[(0,r.jsx)("div",{ref:p,"data-testid":"techdocs-native-shadowroot"}),c]})})}},27052(e,t,a){a.d(t,{Router:()=>H,LegacyEmbeddedDocsRouter:()=>_,GO:()=>M,JY:()=>F});var r=a(31085),n=a(18690),i=a(58077),o=a(78931),l=a(95269),s=a(18288),c=a(78395),d=a(90898),u=a(33141),p=a(19735),m=a(71531),h=a(76637),g=a(18275),f=a(44355);let v=new class e{config;constructor(e){this.config=e}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(e){return e.expose(this)}toString(){return`plugin{${this.config.id}}`}}({id:"techdocs",apis:[(0,u.b)({api:s.s,deps:{configApi:p.U,discoveryApi:m.I,fetchApi:h.a},factory:({configApi:e,discoveryApi:t,fetchApi:a})=>new c.E({configApi:e,discoveryApi:t,fetchApi:a})}),(0,u.b)({api:s.l,deps:{configApi:p.U,discoveryApi:m.I,fetchApi:h.a},factory:({configApi:e,discoveryApi:t,fetchApi:a})=>new c.z({configApi:e,discoveryApi:t,fetchApi:a})})],routes:{root:d.rQ,docRoot:d.Oc,entityContent:d.Ri}});v.provide((0,g.QJ)({name:"TechdocsPage",component:()=>Promise.resolve().then(a.bind(a,27052)).then(e=>e.Router),mountPoint:d.rQ})),v.provide((0,g.QJ)({name:"EntityTechdocsContent",component:()=>Promise.resolve().then(a.bind(a,27052)).then(e=>e.LegacyEmbeddedDocsRouter),mountPoint:d.Ri})),v.provide((0,g.QJ)({name:"TechDocsCustomHome",component:()=>a.e("7226").then(a.bind(a,68817)).then(e=>e.TechDocsCustomHome),mountPoint:d.rQ})),v.provide((0,g.QJ)({name:"TechDocsIndexPage",component:()=>Promise.resolve().then(a.bind(a,47677)).then(e=>e.TechDocsIndexPage),mountPoint:d.rQ}));let y=v.provide((0,g.QJ)({name:"TechDocsReaderPage",component:()=>a.e("6270").then(a.bind(a,70157)).then(e=>e.TechDocsReaderPage),mountPoint:d.Oc}));v.provide((0,f.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(a.bind(a,26761)).then(e=>e.TechDocsSearchResultListItem),predicate:e=>"techdocs"===e.type}));var b=a(59177),x=a(4518),w=a(14041),j=a(81219);let A=({entity:e,withSearch:t=!0})=>{let a=(0,i.sM)(e),n=function(e){let{kind:t,name:a,namespace:r}=e,n=(0,j.S)(d.Oc),i=(0,j.S)(d.Ri);return(0,w.useMemo)(()=>{let e=n({kind:t,namespace:r,name:a}).replace(/\/+$/,""),o=i().replace(/\/+$/,"");return t=>{if(t.toLocaleLowerCase("en-US").startsWith(e.toLocaleLowerCase("en-US"))){let a=t.slice(e.length).replace(/^\/+/,"");return 0===a.length||a.startsWith("#")?`${o}${a}`:`${o}/${a}`}return t}},[n,i,t,a,r])}(a);if(e.metadata.annotations?.[o.GO])try{a=(0,i.KU)(e.metadata.annotations?.[o.GO])}catch{}let s=(0,l.oN)(e);return(0,r.jsxs)(y,{entityRef:a,children:[(0,r.jsx)(x.Z,{}),(0,r.jsx)(b.p,{withSearch:t,searchResultUrlMapper:n,defaultPath:s})]})};var S=a(47677),k=a(81697),C=a(22845),E=a(77125),N=a(64947),L=a(58837),T=a(72501),I=a(35571),R=a(4809),B=a(60603),P=a(89595),$=a(79811);let O=(0,L.A)(e=>({code:{borderRadius:6,margin:e.spacing(2,0),background:"dark"===e.palette.type?"#444":e.palette.common.white}}),{name:"BackstageMissingAnnotationEmptyState"});function z(e){var t;let a,n,i,o,l,s,c,d,{t:u}=(0,P.i)($.j);try{a=(0,C.tN)().entity}catch(e){}let{annotation:p,readMoreUrl:m}=e,h=Array.isArray(p)?p:[p],g=O(),f=a?.kind||"Component",{yamlText:v,lineNumbers:y}=(t=a,n=t?.kind||"Component",i=t?.metadata.name||"example",o=t?.spec?.type||"website",l=t?.spec?.owner||"user:default/guest",s=`apiVersion: backstage.io/v1alpha1
|
|
2
|
-
kind: ${n}
|
|
3
|
-
metadata:
|
|
4
|
-
name: ${i}
|
|
5
|
-
annotations:${h.map(e=>`
|
|
6
|
-
${e}: value`).join("")}
|
|
7
|
-
spec:
|
|
8
|
-
type: ${o}
|
|
9
|
-
owner: ${l}`,c=6,d=[],h.forEach(()=>{d.push(c),c++}),{yamlText:s,lineNumbers:d});return(0,r.jsx)(I.p,{missing:"field",title:u("missingAnnotationEmptyState.title"),description:function(e,t="Component",a){let n=e.map(e=>(0,r.jsx)("code",{children:e},e)).reduce((e,t)=>(0,r.jsxs)(r.Fragment,{children:[e,", ",t]}));return a("missingAnnotationEmptyState.generateDescription",{count:e.length,entityKind:t,annotations:n})}(h,f,u),action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.A,{variant:"body1",children:u("missingAnnotationEmptyState.annotationYaml",{entityKind:f})}),(0,r.jsx)(E.A,{className:g.code,children:(0,r.jsx)(R.z,{text:v,language:"yaml",showLineNumbers:!0,highlightedNumbers:y,customStyle:{background:"inherit",fontSize:"115%"}})}),(0,r.jsx)(N.A,{color:"primary",component:B.N_,to:m||"https://backstage.io/docs/features/software-catalog/well-known-annotations",children:u("missingAnnotationEmptyState.readMore")})]})})}let H=()=>(0,r.jsxs)(n.Routes,{children:[(0,r.jsx)(n.Route,{path:"/",element:(0,r.jsx)(S.TechDocsIndexPage,{})}),(0,r.jsx)(n.Route,{path:"/:namespace/:kind/:name/*",element:(0,r.jsx)(k.W,{})})]}),M=e=>{let{children:t}=e;return(0,n.useRoutes)([{path:"*",element:(0,r.jsx)(k.W,{}),children:[{path:"*",element:t}]}])},F=e=>{let{children:t,emptyState:a,withSearch:i=!0}=e,{entity:l}=(0,C.tN)(),s=(0,n.useRoutes)([{path:"/*",element:(0,r.jsx)(A,{entity:l,withSearch:i}),children:[{path:"*",element:t}]}]);return l.metadata.annotations?.[o.As]||l.metadata.annotations?.[o.GO]?s:a??(0,r.jsx)(z,{annotation:[o.As]})},_=({children:e,withSearch:t=!0})=>(0,r.jsx)(F,{children:e,withSearch:t})},63448(e,t,a){a.d(t,{TechDocsEntityContent:()=>eh,TechDocsReaderPage:()=>em});var r=a(31085),n=a(14041),i=a(90479),o=a(2020),l=a(27052),s=a(62445),c=a(93285),d=a(74891),u=a(33998),p=a(63690),m=a(10337),h=a(18690),g=a(71806),f=a(93793),v=a(23413),y=a(58583),b=a(57011),x=a(57873),w=a(80084),j=a(2556),A=a(57139),S=a(63878),k=a(48119);let C={"bui-SearchAutocomplete":"t9ib_bVDdW0Xootq","bui-SearchAutocompleteSearchField":"Qf03194HgHcI80bI","bui-SearchAutocompleteInput":"JW7_WzZ4218yUxN1","bui-SearchAutocompleteClear":"O8qR4ow00UGAmbxF","bui-SearchAutocompletePopover":"z77XzI20MQEPf2t6","bui-SearchAutocompleteInner":"BQZoiGXiru4nlmWr","bui-SearchAutocompleteListBox":"mYf5rCmZp8sweHCa","bui-SearchAutocompleteItem":"Mooy7E0382UZYzPe","bui-SearchAutocompleteItemContent":"GoL56cqq7NIpJ8Ak","bui-SearchAutocompleteLoadingState":"kGxB_7841AUUy5BV","bui-SearchAutocompleteEmptyState":"Gfbgv_XjouQ_ffOx"},E=(0,k.p)()({styles:C,bg:"consumer",classNames:{root:"bui-SearchAutocomplete",searchField:"bui-SearchAutocompleteSearchField",searchFieldInput:"bui-SearchAutocompleteInput",searchFieldClear:"bui-SearchAutocompleteClear",popover:"bui-SearchAutocompletePopover",inner:"bui-SearchAutocompleteInner",listBox:"bui-SearchAutocompleteListBox",loadingState:"bui-SearchAutocompleteLoadingState",emptyState:"bui-SearchAutocompleteEmptyState"},propDefs:{"aria-label":{},"aria-labelledby":{},size:{dataAttribute:!0,default:"small"},placeholder:{default:"Search"},inputValue:{},onInputChange:{},popoverWidth:{},popoverPlacement:{},children:{},isLoading:{},defaultOpen:{},className:{},style:{}}}),N=(0,k.p)()({styles:C,classNames:{root:"bui-SearchAutocompleteItem",itemContent:"bui-SearchAutocompleteItemContent"},navigation:{type:"anchor"},propDefs:{children:{},className:{}}});var L=a(13408),T=a(56808),I=a(82604),R=a(21533);let B=()=>{let{ownProps:e}=(0,S.Z)(E,{});return(0,r.jsx)("div",{className:e.classes.emptyState,children:"No results found."})};function P(e){let{ownProps:t,dataAttributes:a}=(0,S.Z)(E,e),{classes:i,"aria-label":o,"aria-labelledby":l,inputValue:s,onInputChange:c,placeholder:d,popoverWidth:u,popoverPlacement:m="bottom start",children:h,isLoading:k,defaultOpen:C,style:N}=t,R=(0,n.useRef)(null),P=(0,n.useRef)(null),$=!!s,O=n.Children.count(h)>0,z="";k?z="Searching":$&&!O&&(z="No results found");let H=(0,A.T)({defaultOpen:C});return(0,g.$)({ref:P,onInteractOutside:e=>{let t=e.target;R.current?.contains(t)||H.close()},isDisabled:!H.isOpen}),(0,r.jsx)(f.RG.Provider,{value:H,children:(0,r.jsxs)(v.jT,{inputValue:s,onInputChange:e=>{c?.(e),e?H.open():H.close()},children:[(0,r.jsx)(y.L,{className:i.searchField,"aria-label":o??(l?void 0:d),"aria-labelledby":l,"data-size":a["data-size"],onKeyDown:e=>{"Enter"===e.key&&!H.isOpen&&$&&(e.preventDefault(),H.open())},children:(0,r.jsxs)("div",{ref:R,className:i.root,...a,style:N,children:[(0,r.jsx)("div",{"aria-hidden":"true",children:(0,r.jsx)(p.Cap,{})}),(0,r.jsx)(b.p,{className:i.searchFieldInput,placeholder:d}),(0,r.jsx)(x.$,{className:i.searchFieldClear,style:{visibility:$?"visible":"hidden"},children:(0,r.jsx)(p.qFd,{})})]})}),(0,r.jsx)(w.A,{ref:P,className:i.popover,triggerRef:R,isNonModal:!0,placement:m,...u?{style:{width:u}}:{},children:(0,r.jsx)(T.fX,{children:(0,r.jsx)(L.a,{bg:"neutral",className:i.inner,children:(0,r.jsx)(j.qF,{className:i.listBox,autoFocus:"first",shouldFocusOnHover:!0,"aria-busy":k||void 0,"data-stale":k||void 0,renderEmptyState:()=>k?(0,r.jsx)("div",{className:i.loadingState,children:"Searching..."}):(0,r.jsx)(B,{}),onAction:()=>{H.close()},children:h})})})}),(0,r.jsx)(I.s,{"aria-live":"polite","aria-atomic":"true",children:z})]})})}function $({definitionResult:e,navigation:t}){let{ownProps:a,restProps:n}=e,{classes:i,children:o}=a,l=(0,R.eI)(t,n);return(0,r.jsx)(j.nh,{textValue:"string"==typeof o?o:void 0,className:i.root,...n,...l,children:(0,r.jsx)("div",{className:i.itemContent,children:o})})}function O(e){let t=(0,S.Z)(N,e),a=t.navigation;return(0,r.jsx)(a,{props:t.restProps,view:$,viewProps:{definitionResult:t}})}var z=a(73880),H=a(69749),M=a(63489),F=a(7613),_=a(36985);let D=e=>{let{entityId:t}=e,a=(0,h.useNavigate)(),{results:n,term:i,setTerm:o,deferredLoading:l}=(0,_.F)(t);return(0,r.jsx)(P,{"aria-label":"Search docs",placeholder:"Search docs",size:"small",inputValue:i,onInputChange:o,isLoading:l,popoverWidth:"min(720px, calc(100vw - 32px))",popoverPlacement:"bottom end",children:n.map((e,t)=>(0,r.jsx)(O,{id:String(t),textValue:e.document.title,onAction:()=>{o(""),a(e.document.location),requestAnimationFrame(()=>{document.activeElement?.blur()})},children:(0,r.jsxs)(z.s,{direction:"column",gap:"1",children:[(0,r.jsx)(H.E,{weight:"bold",children:e.highlight?.fields.title?(0,r.jsx)(F.e,{text:e.highlight.fields.title,preTag:e.highlight.preTag,postTag:e.highlight.postTag}):e.document.title}),(e.highlight?.fields.text||e.document.text)&&(0,r.jsx)(H.E,{variant:"body-small",color:"secondary",style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.highlight?.fields.text?(0,r.jsx)(F.e,{text:e.highlight.fields.text,preTag:e.highlight.preTag,postTag:e.highlight.postTag}):e.document.text})]})},t))})},U=e=>{let t={term:"",types:["techdocs"],pageCursor:"",filters:e.entityId};return(0,r.jsx)(M.Lt,{initialState:t,children:(0,r.jsx)(D,{...e})})};var K=a(59535);let Y=e=>{let{withSearch:t=!0}=e,{title:a,entityRef:n,tabTitle:i,hidden:o,showSourceLink:l,sourceLink:s,addons:h}=(0,K.f)();return o?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{titleTemplate:"%s",children:(0,r.jsx)("title",{children:i})}),(0,r.jsx)(d.Y,{title:a||"",customActions:(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(U,{entityId:n}),l&&(0,r.jsx)(u.v,{href:s,target:"_blank",rel:"noopener noreferrer",variant:"secondary",size:"small",iconStart:(0,r.jsx)(p.ze2,{}),"aria-label":"View source"}),h.renderComponentsByLocation(m.e.Header)]})})]})};var V=a(63401),W=a(53320),q=a(3438),G=a(53987),Q=a(49185),X=a(26438),Z=a(56005),J=a.n(Z);let ee="Y8Fg3yghDlEWhHYR",et="yOMTDnv9l34EOx49",ea=e=>{let{withSearch:t}=e,{entityRef:a,entityMetadata:{value:n,loading:i}}=(0,V.V)();if(i||!n)return null;let{spec:o}=n,l=o?.lifecycle,s=(0,W.t)(n,Q.vv);return(0,r.jsx)(X.Zp,{className:"yq831xiAsNsOpUlb",children:(0,r.jsxs)(X.bw,{className:"MY4uvUy71MA7v2tq",children:[(0,r.jsxs)("dl",{className:"UkguRkEUDeUYLdbC",children:[(0,r.jsxs)("div",{className:ee,children:[(0,r.jsx)("dt",{children:(0,r.jsxs)(H.E,{variant:"body-small",weight:"bold",children:[J()(n.kind),":"]})}),(0,r.jsx)("dd",{className:et,children:(0,r.jsx)(q.z,{entityRef:a,defaultKind:"Component"})})]}),s.length>0&&(0,r.jsxs)("div",{className:ee,children:[(0,r.jsx)("dt",{children:(0,r.jsx)(H.E,{variant:"body-small",weight:"bold",children:"Owner:"})}),(0,r.jsx)("dd",{className:et,children:(0,r.jsx)(G.i,{entityRefs:s,defaultKind:"group"})})]}),l&&(0,r.jsxs)("div",{className:ee,children:[(0,r.jsx)("dt",{children:(0,r.jsx)(H.E,{variant:"body-small",weight:"bold",children:"Lifecycle:"})}),(0,r.jsx)("dd",{className:et,children:(0,r.jsx)(H.E,{variant:"body-small",children:String(l)})})]})]}),t&&(0,r.jsx)("div",{className:"oTZj1IybGm8aLl23",children:(0,r.jsx)(U,{entityId:a})})]})})};var er=a(4518),en=a(96741),ei=a(55489),eo=a(3905),el=a(4723),es=a(73455),ec=a(31035);let ed=(0,el.sh)(e=>{let{dom:t,handleAppend:a,isNotFound:n,isDomReady:i,showProgress:o,NotFoundErrorPage:l}=(0,ec.t)({defaultPath:e.defaultPath,onReady:e.onReady});return n?(0,r.jsx)(l,{}):i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.W,{}),o&&(0,r.jsx)(ei.k,{}),(0,r.jsx)(en.eh,{element:t,onAppend:a,children:(0,r.jsx)(es.k,{})})]}):(0,r.jsx)(eo.W,{})}),eu=e=>{let{withSearch:t,withHeader:a=!0}=e;return(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)(Y,{withSearch:t}),(0,r.jsxs)(s.m,{mt:"6",children:[(0,r.jsx)(ea,{withSearch:!a&&t}),(0,r.jsx)(er.Z,{}),(0,r.jsx)(ed,{})]})]})};function ep(e){return(0,r.jsx)(i.po,{children:e.options.map(e=>{let t=e.component;return(0,o.S)(t,e),(0,r.jsx)(n.Suspense,{fallback:null,children:(0,r.jsx)(t,{})},e.name)})})}function em(e){return(0,r.jsxs)(l.GO,{children:[(0,r.jsx)(eu,{withSearch:e.withSearch,withHeader:e.withHeader}),(0,r.jsx)(ep,{options:e.addonOptions})]})}function eh(e){return(0,r.jsx)(l.JY,{emptyState:e.emptyState,children:(0,r.jsx)(ep,{options:e.addonOptions})})}},99255(e,t,a){a.d(t,{V:()=>r});function r(e,t){return t.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?e:e.toLocaleLowerCase("en-US")}},31314(e,t,a){a.d(t,{o:()=>y});var r=a(31085),n=a(11688),i=a(81219),o=a(50509),l=a(19735),s=a(89595),c=a(90898),d=a(87623),u=a(28499),p=a(35571),m=a(45463),h=a(64009),g=a(37144),f=a(44093),v=a(25046);let y=e=>{let{entities:t,title:a,loading:y,columns:b,actions:x,options:w}=e,[,j]=(0,n.A)(),A=(0,i.S)(c.Oc),S=(0,o.gf)(l.U),k=(0,o.Q2)(),{t:C}=(0,s.i)(h.M);if(!t)return null;let E=(0,v.H)(t,A,S,k.get(d.n)),N=b||[f.B.createTitleColumn({hidden:!0,entityPresentationApi:k.get(d.n)}),f.B.createNameColumn({entityPresentationApi:k.get(d.n)}),f.B.createOwnerColumn(),f.B.createKindColumn(),f.B.createTypeColumn()],L=[g.f.createCopyDocsUrlAction(j,C)],T=E&&E.length>20;return(0,r.jsx)(r.Fragment,{children:y||E&&E.length>0?(0,r.jsx)(u.X,{isLoading:y,options:{paging:T,pageSize:20,search:!0,actionsColumnIndex:-1,...w},data:E,columns:N,actions:x||L,title:a?`${a} (${E.length})`:`${C("table.title.all")} (${E.length})`,localization:{header:{actions:C("table.header.actions")},toolbar:{searchPlaceholder:C("table.toolbar.searchPlaceholder")},pagination:{labelRowsSelect:C("table.pagination.labelRowsSelect")},body:{emptyDataSourceMessage:C("table.body.emptyDataSourceMessage")}}}):(0,r.jsx)(p.p,{missing:"data",title:C("table.emptyState.title"),description:C("table.emptyState.description"),action:(0,r.jsx)(m.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:C("table.emptyState.docsButton")})})})};y.columns=f.B,y.actions=g.f},55374(e,t,a){a.d(t,{$:()=>C});var r=a(31085),n=a(11688),i=a(45250),o=a(87187),l=a(4809),s=a(81219),c=a(50509),d=a(19735),u=a(89595),p=a(59378),m=a(75710),h=a(87623),g=a(64009),f=a(31314),v=a(14041),y=a(28499),b=a(47195);function x(e){let{actions:t,columns:a,data:n,isLoading:i,options:o,title:l}=e,{updateFilters:s,setLimit:c,setOffset:d,limit:m,totalItems:h,offset:f}=(0,p.nK)(),{t:x}=(0,u.i)(g.M),[w,j]=(0,v.useState)(f&&m?Math.floor(f/m):0);return(0,v.useEffect)(()=>{h&&w*m>=h?d(Math.max(0,h-m)):d(Math.max(0,w*m))},[d,w,m,h]),(0,r.jsx)(y.X,{title:l,columns:a,data:n,options:{paginationPosition:"both",pageSizeOptions:[5,10,20,50,100],pageSize:m,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,...o},actions:t,onSearchChange:e=>s({text:e?new b.V3(e):void 0}),page:w,onPageChange:e=>{j(e)},onRowsPerPageChange:e=>{c(e)},totalCount:h,localization:{header:{actions:x("table.header.actions")},toolbar:{searchPlaceholder:x("table.toolbar.searchPlaceholder")},pagination:{labelDisplayedRows:"",labelRowsSelect:x("table.pagination.labelRowsSelect")},body:{emptyDataSourceMessage:x("table.body.emptyDataSourceMessage")}},isLoading:i})}function w(e){let{actions:t,columns:a,data:n,next:i,prev:o,title:l,isLoading:s,options:c,...d}=e,{t:p}=(0,u.i)(g.M);return(0,r.jsx)(y.X,{title:s?"":l,columns:a,data:n,options:{paginationPosition:"both",...c,pageSizeOptions:[],showFirstLastPageButtons:!1,pageSize:Number.MAX_SAFE_INTEGER,emptyRowsWhenPaging:!1,actionsColumnIndex:-1},onPageChange:e=>{e>0?i?.():o?.()},page:+!!o,totalCount:i?Number.MAX_VALUE:Number.MAX_SAFE_INTEGER,localization:{header:{actions:p("table.header.actions")},toolbar:{searchPlaceholder:p("table.toolbar.searchPlaceholder")},pagination:{labelDisplayedRows:"",labelRowsSelect:p("table.pagination.labelRowsSelect")},body:{emptyDataSourceMessage:p("table.body.emptyDataSourceMessage")}},isLoading:s,...d})}var j=a(37144),A=a(44093),S=a(90898),k=a(25046);let C=e=>{let{columns:t,actions:a,options:v}=e,{loading:y,error:b,entities:C,filters:E,paginationMode:N,pageInfo:L}=(0,p.nK)(),{isStarredEntity:T,toggleStarredEntity:I}=(0,m.I)(),[,R]=(0,n.A)(),B=(0,s.S)(S.Oc),P=(0,c.gf)(d.U),$=(0,c.Q2)(),{t:O}=(0,u.i)(g.M),z=(0,i.capitalize)(E.user?.value??"all"),H=[j.f.createCopyDocsUrlAction(R,O),j.f.createStarEntityAction(T,I,O)],M=(0,k.H)(C,B,P,$.get(h.n)),F=t||[A.B.createTitleColumn({hidden:!0,entityPresentationApi:$.get(h.n)}),A.B.createNameColumn({entityPresentationApi:$.get(h.n)}),A.B.createOwnerColumn(),A.B.createKindColumn(),A.B.createTypeColumn()];return"cursor"===N?(0,r.jsx)(w,{columns:F,isLoading:y,title:z,actions:a||H,options:v,data:M,next:L?.next,prev:L?.prev}):"offset"===N?(0,r.jsx)(x,{columns:F,isLoading:y,title:z,actions:a||H,options:v,data:M}):b?(0,r.jsx)(o.B,{severity:"error",title:O("error.couldNotLoad"),children:(0,r.jsx)(l.z,{language:"text",text:b.toString()})}):(0,r.jsx)(f.o,{title:z,entities:C,loading:y,actions:a||H,columns:F,options:v})};C.columns=A.B,C.actions=j.f},37144(e,t,a){a.d(t,{f:()=>o});var r=a(31085),n=a(55290),i=a(280);let o={createCopyDocsUrlAction:(e,t)=>a=>({icon:()=>(0,r.jsx)(n.default,{fontSize:"small"}),tooltip:t?.("table.actions.copyDocsUrl",{})??"Click to copy documentation link to clipboard",onClick:()=>e(`${window.location.origin}${a.resolved.docsUrl}`)}),createStarEntityAction:(e,t,a)=>n=>{let o=n.entity,l=e(o);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,r.jsx)(i.m,{isFavorite:l}),tooltip:l?a?.("table.actions.removeFromFavorites",{})??"Remove from favorites":a?.("table.actions.addToFavorites",{})??"Add to favorites",onClick:()=>t(o)}}}},44093(e,t,a){a.d(t,{B:()=>g});var r=a(31085),n=a(77125);let i=(0,a(58837).A)(e=>({value:{marginBottom:e.spacing(.75)},subvalue:{color:e.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function o(e){let{value:t,subvalue:a}=e,o=i();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.A,{className:o.value,children:t}),(0,r.jsx)(n.A,{className:o.subvalue,children:a})]})}var l=a(60603),s=a(43311),c=a(26958),d=a(53987),u=a(89595),p=a(64009);function m(e,t){return(0,s.E)(e,void 0,t).primaryTitle}let h=({translationKey:e})=>{let{t}=(0,u.i)(p.M);return(0,r.jsx)(r.Fragment,{children:t(`table.columns.${e}`)})},g={createTitleColumn:e=>({...g.createNameColumn({entityPresentationApi:e?.entityPresentationApi}),field:"entity.metadata.title",hidden:e?.hidden}),createNameColumn(e){let t=e?.entityPresentationApi;return{title:(0,r.jsx)(h,{translationKey:"document"}),field:"entity.metadata.name",highlight:!0,searchable:!0,defaultSort:"asc",customSort:(e,a)=>{let r=m(e.entity,t).toLocaleLowerCase(),n=m(a.entity,t).toLocaleLowerCase();return r.localeCompare(n)},customFilterAndSearch:(e,a)=>m(a.entity,t).toLocaleLowerCase().includes(e.toLocaleLowerCase()),render:e=>(0,r.jsx)(o,{value:(0,r.jsx)(l.N_,{to:e.resolved.docsUrl,children:t?(0,r.jsx)(c.d,{entityRef:e.entity}):m(e.entity)}),subvalue:e.entity.metadata.description})}},createOwnerColumn:()=>({title:(0,r.jsx)(h,{translationKey:"owner"}),field:"resolved.ownedByRelationsTitle",render:({resolved:e})=>(0,r.jsx)(d.i,{entityRefs:e.ownedByRelations,defaultKind:"group"})}),createKindColumn:()=>({title:(0,r.jsx)(h,{translationKey:"kind"}),field:"entity.kind"}),createTypeColumn:()=>({title:(0,r.jsx)(h,{translationKey:"type"}),field:"entity.spec.type"})};g.createTitleColumn({hidden:!0}),g.createNameColumn(),g.createOwnerColumn(),g.createKindColumn(),g.createTypeColumn()},25046(e,t,a){a.d(t,{H:()=>l});var r=a(49185),n=a(53320),i=a(43311),o=a(99255);function l(e,t,a,l){return e.map(e=>{let s=(0,n.t)(e,r.vv);return{entity:e,resolved:{docsUrl:t({namespace:(0,o.V)(e.metadata.namespace??"default",a),kind:(0,o.V)(e.kind,a),name:(0,o.V)(e.metadata.name,a)}),ownedByRelations:s,ownedByRelationsTitle:s.map(e=>(0,i.E)(e,{defaultKind:"group"},l).primaryTitle).join(", ")}}})}},47677(e,t,a){a.d(t,{TechDocsIndexPage:()=>b});var r=a(31085),n=a(18690),i=a(15179),o=a(45794),l=a(84391),s=a(59378),c=a(71242),d=a(59302),u=a(8918),p=a(67762),m=a(89595),h=a(64009),g=a(59821),f=a(59152),v=a(55374);let y=e=>{let{initialFilter:t="owned",columns:a,actions:n,ownerPickerMode:y,pagination:b,options:x,PageWrapper:w,CustomHeader:j}=e,{t:A}=(0,m.i)(h.M),S=w||g.S,k=j||(()=>(0,r.jsx)(i.d,{title:"",children:(0,r.jsx)(o.Y,{children:A("home.supportButton")})}));return(0,r.jsx)(S,{children:(0,r.jsxs)(l.U,{children:[(0,r.jsx)(k,{}),(0,r.jsx)(s.B9,{pagination:b,children:(0,r.jsxs)(c.GI,{children:[(0,r.jsxs)(c.GI.Filters,{children:[(0,r.jsx)(f.Y,{}),(0,r.jsx)(d.y,{initialFilter:t}),(0,r.jsx)(u.t,{mode:y}),(0,r.jsx)(p.m,{})]}),(0,r.jsx)(c.GI.Content,{children:(0,r.jsx)(v.$,{actions:n,columns:a,options:x})})]})})]})})},b=e=>(0,n.useOutlet)()||(0,r.jsx)(y,{...e})},59821(e,t,a){a.d(t,{S:()=>u});var r=a(31085),n=a(70111),i=a(12439);function o(e){let{themeId:t,children:a,...o}=e;return(0,r.jsxs)(i.Y,{themeId:t,children:[(0,r.jsx)(n.Y,{...o}),a]})}var l=a(50509),s=a(19735),c=a(89595),d=a(64009);let u=e=>{let{children:t,CustomPageWrapper:a}=e,n=(0,l.gf)(s.U),{t:i}=(0,c.i)(d.M),u=i("pageWrapper.subtitle",{orgName:n.getOptionalString("organization.name")??"Backstage"});return(0,r.jsx)(r.Fragment,{children:a?(0,r.jsx)(a,{children:t}):(0,r.jsx)(o,{title:i("pageWrapper.title"),subtitle:u,themeId:"documentation",children:t})})}},59152(e,t,a){a.d(t,{Y:()=>s});var r=a(14041),n=a(74854),i=a(59378),o=a(78931);class l{getCatalogFilters(){return{[`metadata.annotations.${o.As}`]:n.c}}}let s=()=>{let{updateFilters:e}=(0,i.nK)();return(0,r.useEffect)(()=>{e({techdocs:new l})},[e]),null}},31035(e,t,a){let r;a.d(t,{t:()=>eo});var n=a(14041),i=a(18690),o=a(63401),l=a(96741),s=a(1212),c=a(91189),d=a(5893),u=a(54917),p=a(53996),m=a(50509),h=a(19735),g=a(62100),f=a(18288),v=a(4723),y=a(97519);let b=/main\.[A-Fa-f0-9]{8}\.min\.css$/,x=/^https:\/\/fonts\.googleapis\.com/,w=/^https:\/\/fonts\.gstatic\.com/,j=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t,a,r,n;"LINK"!==e.nodeName||(a=(t=e?.getAttribute("href")||"").match(b),r=t.match(x),n=t.match(w),a||r||n)||e.remove()}},A=(e,t)=>{if(e.nodeType===Node.ELEMENT_NODE){let a,r;"meta"===t.tagName&&(a=e.getAttribute("http-equiv"),r=e.getAttribute("content"),"refresh"!==a||r?.includes("url=")!==!0)&&e.parentNode?.removeChild(e)}},S=(e,t)=>{"META"!==e.tagName&&("http-equiv"===t.attrName||"content"===t.attrName)&&e.removeAttribute(t.attrName)};var k=a(72214),C=a(268);let E="16rem",N=["h1","h2","h3","h4","h5","h6"],L=/(em)|(rem)/gi,T=/var\(|\)/gi,I={dark:["#only-light","#gh-light-mode-only"],light:["#only-dark","#gh-dark-mode-only"]},R=[({theme:e})=>`
|
|
10
|
-
/*================== Variables ==================*/
|
|
11
|
-
/*
|
|
12
|
-
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.
|
|
13
|
-
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.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
:host {
|
|
17
|
-
/* FONT */
|
|
18
|
-
--md-default-fg-color: ${e.palette.text.primary};
|
|
19
|
-
--md-default-fg-color--light: ${e.palette.text.secondary};
|
|
20
|
-
--md-default-fg-color--lighter: ${(0,C.X4)(e.palette.text.secondary,.3)};
|
|
21
|
-
--md-default-fg-color--lightest: ${(0,C.X4)(e.palette.text.secondary,.15)};
|
|
22
|
-
|
|
23
|
-
/* BACKGROUND */
|
|
24
|
-
--md-default-bg-color:${e.palette.background.default};
|
|
25
|
-
--md-default-bg-color--light: ${e.palette.background.paper};
|
|
26
|
-
--md-default-bg-color--lighter: ${(0,C.a)(e.palette.background.paper,.7)};
|
|
27
|
-
--md-default-bg-color--lightest: ${(0,C.a)(e.palette.background.paper,.3)};
|
|
28
|
-
|
|
29
|
-
/* PRIMARY */
|
|
30
|
-
--md-primary-fg-color: ${e.palette.primary.main};
|
|
31
|
-
--md-primary-fg-color--light: ${e.palette.primary.light};
|
|
32
|
-
--md-primary-fg-color--dark: ${e.palette.primary.dark};
|
|
33
|
-
--md-primary-bg-color: ${e.palette.primary.contrastText};
|
|
34
|
-
--md-primary-bg-color--light: ${(0,C.a)(e.palette.primary.contrastText,.7)};
|
|
35
|
-
|
|
36
|
-
/* ACCENT */
|
|
37
|
-
--md-accent-fg-color: var(--md-primary-fg-color);
|
|
38
|
-
--md-accent-fg-color--transparent: ${(0,C.X4)(e.palette.primary.main,.1)};
|
|
39
|
-
--md-accent-bg-color: var(--md-primary-bg-color);
|
|
40
|
-
--md-accent-bg-color--light: var(--md-primary-bg-color--light);
|
|
41
|
-
|
|
42
|
-
/* SHADOW */
|
|
43
|
-
--md-shadow-z1: ${e.shadows[1]};
|
|
44
|
-
--md-shadow-z2: ${e.shadows[2]};
|
|
45
|
-
--md-shadow-z3: ${e.shadows[3]};
|
|
46
|
-
|
|
47
|
-
/* EXTENSIONS */
|
|
48
|
-
--md-admonition-fg-color: var(--md-default-fg-color);
|
|
49
|
-
--md-admonition-bg-color: var(--md-default-bg-color);
|
|
50
|
-
/* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
|
|
51
|
-
--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>');
|
|
52
|
-
--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>');
|
|
53
|
-
--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>');
|
|
54
|
-
--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>');
|
|
55
|
-
--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>');
|
|
56
|
-
--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>');
|
|
57
|
-
--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>');
|
|
58
|
-
--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>');
|
|
59
|
-
--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>');
|
|
60
|
-
--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>');
|
|
61
|
-
--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>');
|
|
62
|
-
--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>');
|
|
63
|
-
--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>');
|
|
64
|
-
--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>');
|
|
65
|
-
--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>');
|
|
66
|
-
--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>');
|
|
67
|
-
--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>');
|
|
68
|
-
--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>');
|
|
69
|
-
--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>');
|
|
70
|
-
--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>');
|
|
71
|
-
--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>');
|
|
72
|
-
--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>');
|
|
73
|
-
--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>');
|
|
74
|
-
--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>');
|
|
75
|
-
--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>');
|
|
76
|
-
--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>');
|
|
77
|
-
|
|
78
|
-
--md-status--updated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>cellphone-arrow-down</title><path d="M17,1H7A2,2 0 0,0 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3A2,2 0 0,0 17,1M17,19H7V5H17V19M16,13H13V8H11V13H8L12,17L16,13Z" /></svg>');
|
|
79
|
-
--md-status: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');
|
|
80
|
-
--md-status--new: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');
|
|
81
|
-
--md-status--deprecated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');
|
|
82
|
-
--md-status--encrypted: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host > * {
|
|
86
|
-
/* CODE */
|
|
87
|
-
--md-code-fg-color: ${e.palette.text.primary};
|
|
88
|
-
--md-code-bg-color: ${e.palette.code?.background??e.palette.background.paper};
|
|
89
|
-
--md-code-hl-color: ${(0,C.X4)(e.palette.warning.main,.5)};
|
|
90
|
-
--md-code-hl-color--light: var(--md-code-hl-color);
|
|
91
|
-
--md-code-hl-keyword-color: ${"dark"===e.palette.type?e.palette.primary.light:e.palette.primary.dark};
|
|
92
|
-
--md-code-hl-function-color: ${"dark"===e.palette.type?e.palette.secondary.light:e.palette.secondary.dark};
|
|
93
|
-
--md-code-hl-string-color: ${"dark"===e.palette.type?e.palette.success.light:e.palette.success.dark};
|
|
94
|
-
--md-code-hl-number-color: ${"dark"===e.palette.type?e.palette.error.light:e.palette.error.dark};
|
|
95
|
-
--md-code-hl-constant-color: var(--md-code-hl-function-color);
|
|
96
|
-
--md-code-hl-special-color: var(--md-code-hl-function-color);
|
|
97
|
-
--md-code-hl-name-color: var(--md-code-fg-color);
|
|
98
|
-
--md-code-hl-comment-color: var(--md-default-fg-color--light);
|
|
99
|
-
--md-code-hl-generic-color: var(--md-default-fg-color--light);
|
|
100
|
-
--md-code-hl-variable-color: var(--md-default-fg-color--light);
|
|
101
|
-
--md-code-hl-operator-color: var(--md-default-fg-color--light);
|
|
102
|
-
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
|
|
103
|
-
|
|
104
|
-
/* TYPESET */
|
|
105
|
-
--md-typeset-font-size: 1rem;
|
|
106
|
-
--md-typeset-color: var(--md-default-fg-color);
|
|
107
|
-
--md-typeset-a-color: ${e.palette.link};
|
|
108
|
-
--md-typeset-table-color: ${(0,C.X4)(e.palette.text.primary,.15)};
|
|
109
|
-
--md-typeset-table-color--light: ${(0,C.X4)(e.palette.text.primary,.05)};
|
|
110
|
-
--md-typeset-del-color: ${"dark"===e.palette.type?(0,C.X4)(e.palette.error.dark,.5):(0,C.X4)(e.palette.error.light,.5)};
|
|
111
|
-
--md-typeset-ins-color: ${"dark"===e.palette.type?(0,C.X4)(e.palette.success.dark,.5):(0,C.X4)(e.palette.success.light,.5)};
|
|
112
|
-
--md-typeset-mark-color: ${"dark"===e.palette.type?(0,C.X4)(e.palette.warning.dark,.5):(0,C.X4)(e.palette.warning.light,.5)};
|
|
113
|
-
--md-typeset-kbd-color: var(--md-code-bg-color);
|
|
114
|
-
--md-typeset-kbd-accent-color var(--md-code-bg-color);
|
|
115
|
-
--md-typeset-kbd-border-color: var(--md-default-fg-color--light);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media screen and (max-width: 76.1875em) {
|
|
119
|
-
:host > * {
|
|
120
|
-
/* TYPESET */
|
|
121
|
-
--md-typeset-font-size: .9rem;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@media screen and (max-width: 600px) {
|
|
126
|
-
:host > * {
|
|
127
|
-
/* TYPESET */
|
|
128
|
-
--md-typeset-font-size: .7rem;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
--md-footer-bg-color: var(--md-default-bg-color);
|
|
133
|
-
--md-footer-bg-color--dark: var(--md-default-bg-color);
|
|
134
|
-
`,({theme:e})=>`
|
|
135
|
-
/*================== Reset ==================*/
|
|
136
|
-
|
|
137
|
-
body {
|
|
138
|
-
--md-text-color: var(--md-default-fg-color);
|
|
139
|
-
--md-text-link-color: var(--md-accent-fg-color);
|
|
140
|
-
--md-text-font-family: ${e.typography.fontFamily};
|
|
141
|
-
font-family: var(--md-text-font-family);
|
|
142
|
-
background-color: unset;
|
|
143
|
-
}
|
|
144
|
-
`,({theme:e,sidebar:t})=>`
|
|
145
|
-
|
|
146
|
-
/*================== Layout ==================*/
|
|
147
|
-
|
|
148
|
-
/* mkdocs material v9 compat */
|
|
149
|
-
.md-nav__title {
|
|
150
|
-
color: var(--md-default-fg-color);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.md-grid {
|
|
154
|
-
max-width: 100%;
|
|
155
|
-
margin: 0;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.md-nav {
|
|
159
|
-
font-size: calc(var(--md-typeset-font-size) * 0.9);
|
|
160
|
-
}
|
|
161
|
-
.md-nav__link:not(:has(svg)) {
|
|
162
|
-
display: flex;
|
|
163
|
-
align-items: center;
|
|
164
|
-
justify-content: space-between;
|
|
165
|
-
}
|
|
166
|
-
.md-nav__link:has(svg) > .md-ellipsis {
|
|
167
|
-
flex-grow: 1;
|
|
168
|
-
}
|
|
169
|
-
.md-nav__icon {
|
|
170
|
-
height: 20px !important;
|
|
171
|
-
width: 20px !important;
|
|
172
|
-
margin-left:${e.spacing(1)}px;
|
|
173
|
-
}
|
|
174
|
-
.md-nav__icon svg {
|
|
175
|
-
margin: 0;
|
|
176
|
-
width: 20px !important;
|
|
177
|
-
height: 20px !important;
|
|
178
|
-
}
|
|
179
|
-
.md-nav__icon:after {
|
|
180
|
-
width: 20px !important;
|
|
181
|
-
height: 20px !important;
|
|
182
|
-
}
|
|
183
|
-
.md-status--updated::after {
|
|
184
|
-
-webkit-mask-image: var(--md-status--updated);
|
|
185
|
-
mask-image: var(--md-status--updated);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.md-nav__item--active > .md-nav__link, a.md-nav__link--active {
|
|
189
|
-
text-decoration: underline;
|
|
190
|
-
color: var(--md-typeset-a-color);
|
|
191
|
-
}
|
|
192
|
-
.md-nav__link--active > .md-status:after {
|
|
193
|
-
background-color: var(--md-typeset-a-color);
|
|
194
|
-
}
|
|
195
|
-
.md-nav__link[href]:hover > .md-status:after {
|
|
196
|
-
background-color: var(--md-accent-fg-color);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.md-main__inner {
|
|
200
|
-
margin-top: 0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.md-sidebar {
|
|
204
|
-
bottom: 75px;
|
|
205
|
-
position: fixed;
|
|
206
|
-
width: ${E};
|
|
207
|
-
}
|
|
208
|
-
.md-sidebar .md-sidebar__scrollwrap {
|
|
209
|
-
width: calc(${E});
|
|
210
|
-
height: 100%
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@supports selector(::-webkit-scrollbar) {
|
|
214
|
-
[dir=ltr] .md-sidebar__inner {
|
|
215
|
-
padding-right: calc(100% - 15.1rem);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
.md-sidebar--secondary {
|
|
219
|
-
right: ${e.spacing(3)}px;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.md-content {
|
|
223
|
-
max-width: calc(100% - ${E} * 2);
|
|
224
|
-
margin-left: ${E};
|
|
225
|
-
margin-bottom: 50px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.md-content > .md-sidebar {
|
|
229
|
-
left: ${E};
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.md-footer {
|
|
233
|
-
position: fixed;
|
|
234
|
-
bottom: 0px;
|
|
235
|
-
pointer-events: none;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.md-footer-nav__link, .md-footer__link {
|
|
239
|
-
pointer-events: all;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.md-footer__title {
|
|
243
|
-
background-color: unset;
|
|
244
|
-
}
|
|
245
|
-
.md-footer-nav__link, .md-footer__link {
|
|
246
|
-
width: ${E};
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.md-dialog {
|
|
250
|
-
background-color: unset;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@media screen and (min-width: 76.25em) {
|
|
254
|
-
.md-sidebar {
|
|
255
|
-
height: auto;
|
|
256
|
-
/* Less padding before the Previous / Next buttons */
|
|
257
|
-
padding-bottom: 0 !important;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@media screen and (max-width: 76.1875em) {
|
|
262
|
-
.md-nav {
|
|
263
|
-
transition: none !important;
|
|
264
|
-
background-color: var(--md-default-bg-color)
|
|
265
|
-
}
|
|
266
|
-
.md-nav--primary .md-nav__title {
|
|
267
|
-
cursor: auto;
|
|
268
|
-
color: var(--md-default-fg-color);
|
|
269
|
-
font-weight: 700;
|
|
270
|
-
white-space: normal;
|
|
271
|
-
line-height: 1rem;
|
|
272
|
-
height: auto;
|
|
273
|
-
display: flex;
|
|
274
|
-
flex-flow: column;
|
|
275
|
-
row-gap: 1.6rem;
|
|
276
|
-
padding: 1.2rem .8rem .8rem;
|
|
277
|
-
background-color: var(--md-default-bg-color);
|
|
278
|
-
}
|
|
279
|
-
.md-nav--primary .md-nav__title~.md-nav__list {
|
|
280
|
-
box-shadow: none;
|
|
281
|
-
}
|
|
282
|
-
.md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
|
|
283
|
-
border-top: none;
|
|
284
|
-
}
|
|
285
|
-
.md-nav--primary .md-nav__title .md-nav__button {
|
|
286
|
-
display: none;
|
|
287
|
-
}
|
|
288
|
-
.md-nav--primary .md-nav__title .md-nav__icon {
|
|
289
|
-
color: var(--md-default-fg-color);
|
|
290
|
-
position: static;
|
|
291
|
-
height: auto;
|
|
292
|
-
margin: 0 0 0 -0.2rem;
|
|
293
|
-
}
|
|
294
|
-
.md-nav--primary > .md-nav__title [for="none"] {
|
|
295
|
-
padding-top: 0;
|
|
296
|
-
}
|
|
297
|
-
.md-nav--primary .md-nav__item {
|
|
298
|
-
border-top: none;
|
|
299
|
-
}
|
|
300
|
-
.md-nav--primary :is(.md-nav__title,.md-nav__item) {
|
|
301
|
-
font-size : var(--md-typeset-font-size);
|
|
302
|
-
}
|
|
303
|
-
.md-nav .md-source {
|
|
304
|
-
display: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.md-sidebar {
|
|
308
|
-
height: 100%;
|
|
309
|
-
}
|
|
310
|
-
.md-sidebar--primary {
|
|
311
|
-
width: ${E} !important;
|
|
312
|
-
z-index: 200;
|
|
313
|
-
left: ${t.isPinned?`calc(-${E} + var(--techdocs-sidebar-closed-offset-pinned, 224px))`:`calc(-${E} + var(--techdocs-sidebar-closed-offset-collapsed, 72px))`} !important;
|
|
314
|
-
}
|
|
315
|
-
.md-sidebar--secondary:not([hidden]) {
|
|
316
|
-
display: none;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary {
|
|
320
|
-
transform: translateX(var(--techdocs-sidebar-open-translate, ${E}));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.md-content {
|
|
324
|
-
max-width: 100%;
|
|
325
|
-
margin-left: 0;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.md-header__button {
|
|
329
|
-
margin: 0.4rem 0;
|
|
330
|
-
margin-left: 0.4rem;
|
|
331
|
-
padding: 0;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.md-overlay {
|
|
335
|
-
left: 0;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.md-footer {
|
|
339
|
-
position: static;
|
|
340
|
-
padding-left: 0;
|
|
341
|
-
}
|
|
342
|
-
.md-footer-nav__link {
|
|
343
|
-
/* footer links begin to overlap at small sizes without setting width */
|
|
344
|
-
width: 50%;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
@media screen and (max-width: 600px) {
|
|
349
|
-
.md-sidebar--primary {
|
|
350
|
-
left: -${E} !important;
|
|
351
|
-
width: ${E};
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
@media print {
|
|
357
|
-
.md-sidebar,
|
|
358
|
-
#toggle-sidebar {
|
|
359
|
-
display: none;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.md-content {
|
|
363
|
-
margin: 0;
|
|
364
|
-
width: 100%;
|
|
365
|
-
max-width: 100%;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
`,({theme:e})=>`
|
|
369
|
-
/*================== Typeset ==================*/
|
|
370
|
-
|
|
371
|
-
.md-typeset {
|
|
372
|
-
font-size: var(--md-typeset-font-size);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
${N.reduce((t,a)=>{let r=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily:i,fontWeight:o,fontSize:l}=e.typography[a],s=e=>{if("number"==typeof e)return s(`${e/r*.6}rem`);if("string"==typeof e){if(e.match(T)){let t=window.getComputedStyle(document.body).getPropertyValue(e.replaceAll(T,""));if(""!==t)return s(t)}else if(e.match(L)){let t=e.replace(L,"");return`calc(${t} * var(--md-typeset-font-size))`}}return e};return t.concat(`
|
|
376
|
-
.md-typeset ${a} {
|
|
377
|
-
color: var(--md-default-fg-color);
|
|
378
|
-
line-height: ${n};
|
|
379
|
-
font-family: ${i};
|
|
380
|
-
font-weight: ${o};
|
|
381
|
-
font-size: ${s(l)};
|
|
382
|
-
}
|
|
383
|
-
`)},"")}
|
|
384
|
-
|
|
385
|
-
.md-typeset .md-content__button {
|
|
386
|
-
color: var(--md-default-fg-color);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.md-typeset hr {
|
|
390
|
-
border-bottom: 0.05rem dotted ${e.palette.divider};
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.md-typeset details {
|
|
394
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
395
|
-
}
|
|
396
|
-
.md-typeset details summary {
|
|
397
|
-
padding-left: 2.5rem !important;
|
|
398
|
-
}
|
|
399
|
-
.md-typeset details summary:before,
|
|
400
|
-
.md-typeset details summary:after {
|
|
401
|
-
top: 50% !important;
|
|
402
|
-
width: 20px !important;
|
|
403
|
-
height: 20px !important;
|
|
404
|
-
transform: rotate(0deg) translateY(-50%) !important;
|
|
405
|
-
}
|
|
406
|
-
.md-typeset details[open] > summary:after {
|
|
407
|
-
transform: rotate(90deg) translateX(-50%) !important;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.md-typeset blockquote {
|
|
411
|
-
color: var(--md-default-fg-color--light);
|
|
412
|
-
border-left: 0.2rem solid var(--md-default-fg-color--light);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.md-typeset table:not([class]) {
|
|
416
|
-
font-size: var(--md-typeset-font-size);
|
|
417
|
-
border: 1px solid var(--md-typeset-table-color);
|
|
418
|
-
border-bottom: none;
|
|
419
|
-
border-collapse: collapse;
|
|
420
|
-
border-radius: ${e.shape.borderRadius}px;
|
|
421
|
-
}
|
|
422
|
-
.md-typeset table:not([class]) th {
|
|
423
|
-
font-weight: bold;
|
|
424
|
-
}
|
|
425
|
-
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
|
|
426
|
-
border-bottom: 1px solid var(--md-typeset-table-color);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb {
|
|
430
|
-
background-color: hsla(0, 0%, 0%, 0.32);
|
|
431
|
-
}
|
|
432
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb:hover {
|
|
433
|
-
background-color: hsla(0, 0%, 0%, 0.87);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.md-typeset code {
|
|
437
|
-
word-break: keep-all;
|
|
438
|
-
}
|
|
439
|
-
`,()=>`
|
|
440
|
-
/*================== Animations ==================*/
|
|
441
|
-
/*
|
|
442
|
-
Disable CSS animations on link colors as they lead to issues in dark mode.
|
|
443
|
-
The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
|
|
444
|
-
*/
|
|
445
|
-
.md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
|
|
446
|
-
transition: none;
|
|
447
|
-
}
|
|
448
|
-
`,({theme:e})=>`
|
|
449
|
-
/*================== Extensions ==================*/
|
|
450
|
-
|
|
451
|
-
/* HIGHLIGHT */
|
|
452
|
-
.highlight .md-clipboard:after {
|
|
453
|
-
content: unset;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.highlight .nx {
|
|
457
|
-
color: ${"dark"===e.palette.type?"#ff53a3":"#ec407a"};
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/* CODE HILITE */
|
|
461
|
-
.codehilite .gd {
|
|
462
|
-
background-color: ${"dark"===e.palette.type?"rgba(248,81,73,0.65)":"#fdd"};
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.codehilite .gi {
|
|
466
|
-
background-color: ${"dark"===e.palette.type?"rgba(46,160,67,0.65)":"#dfd"};
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/* TABBED */
|
|
470
|
-
.tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
|
|
471
|
-
.tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
|
|
472
|
-
.tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
|
|
473
|
-
.tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
|
|
474
|
-
.tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
|
|
475
|
-
.tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
|
|
476
|
-
.tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
|
|
477
|
-
.tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
|
|
478
|
-
.tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
|
|
479
|
-
.tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
|
|
480
|
-
.tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
|
|
481
|
-
.tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
|
|
482
|
-
.tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
|
|
483
|
-
.tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
|
|
484
|
-
.tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
|
|
485
|
-
.tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
|
|
486
|
-
.tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
|
|
487
|
-
.tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
|
|
488
|
-
.tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
|
|
489
|
-
.tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
|
|
490
|
-
color: var(--md-accent-fg-color);
|
|
491
|
-
border-color: var(--md-accent-fg-color);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/* TASK-LIST */
|
|
495
|
-
.task-list-control .task-list-indicator::before {
|
|
496
|
-
background-color: ${e.palette.action.disabledBackground};
|
|
497
|
-
}
|
|
498
|
-
.task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
499
|
-
background-color: ${e.palette.success.main};
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/* ADMONITION */
|
|
503
|
-
.admonition {
|
|
504
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
505
|
-
}
|
|
506
|
-
.admonition .admonition-title {
|
|
507
|
-
padding-left: 2.5rem !important;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.admonition .admonition-title:before {
|
|
511
|
-
top: 50% !important;
|
|
512
|
-
width: 20px !important;
|
|
513
|
-
height: 20px !important;
|
|
514
|
-
transform: translateY(-50%) !important;
|
|
515
|
-
}
|
|
516
|
-
`,({theme:e})=>`
|
|
517
|
-
/*================== Palette ==================*/
|
|
518
|
-
/*
|
|
519
|
-
When color palette toggle is enabled in material theme for Mkdocs, there is a possibility to show conditionally
|
|
520
|
-
images by adding #only-dark or #only-light to resource hash. Backstage doesn't use mkdocs color palette mechanism,
|
|
521
|
-
so there is a need to add css rules from palette*.css manually.
|
|
522
|
-
*/
|
|
523
|
-
|
|
524
|
-
${I[e.palette.type].map(e=>`img[src$="${e}"]`).join(", ")} {
|
|
525
|
-
display: none;
|
|
526
|
-
}
|
|
527
|
-
`],B=async(e,t)=>{let a;if("string"==typeof e)a=new DOMParser().parseFromString(e,"text/html").documentElement;else if(e instanceof Element)a=e;else throw Error("dom is not a recognized type");for(let e of t)a=await e(a);return a},P=(e,t,a)=>{let r=new URL(t,"https://ignored.com").pathname,n="src"===e&&r.endsWith(".svg"),i=!t.match(/^([a-z]*:)?\/\//i),o=t.startsWith(a);return n&&(i||o)};function $(e){let t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}var O=a(27326);function z(e,t){r.then(a=>{"createRoot"in a?a.createRoot(t).render(e):a.render(e,t)})}r=Promise.resolve().then(a.t.bind(a,25873,19));var H=a(87393),M=a(90292),F=a(52536),_=a.n(F),D=a(31085),U=a(58837),K=a(38097),Y=a(64947),V=a(89595),W=a(64009);let q=(0,U.A)(e=>({button:{color:e.palette.primary.light,textDecoration:"underline"}})),G=({message:e,handleButtonClick:t,autoHideDuration:a})=>{let r=q(),[i,o]=(0,n.useState)(!0),{t:l}=(0,V.i)(W.M),s=()=>o(!1);return(0,D.jsx)(K.A,{open:i,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a,color:"primary",onClose:s,message:e,action:(0,D.jsx)(Y.A,{classes:{root:r.button},size:"small",onClick:()=>{s(),t()},children:l("redirectNotification.redirectNow")})})};var Q=a(50868),X=a(10437),Z=a(71677),J=a(7031),ee=a(29365),et=a(11688);let ea=(0,J.A)(e=>({tooltip:{fontSize:"inherit",color:e.palette.text.primary,margin:0,padding:e.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Z.Ay),er=()=>(0,D.jsx)(X.A,{children:(0,D.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"})}),en=({text:e})=>{let[t,a]=(0,n.useState)(!1),[,r]=(0,et.A)(),i=(0,n.useCallback)(()=>{r(e),a(!0)},[e,r]),o=(0,n.useCallback)(()=>{a(!1)},[a]);return(0,D.jsx)(ea,{title:"Copied to clipboard",placement:"left",open:t,onClose:o,leaveDelay:1e3,children:(0,D.jsx)(ee.A,{style:{position:"absolute",top:"0.5rem",right:"0.5rem"},className:"md-clipboard md-icon",onClick:i,"aria-label":"Copy to clipboard",children:(0,D.jsx)(er,{})})})},ei=({onLoading:e,onLoaded:t})=>a=>(e(),a.addEventListener(l.K$,function e(){t(),a.removeEventListener(l.K$,e)}),a);function eo(e){let{defaultPath:t,onReady:a}=e,{entityMetadata:{value:r,loading:b},entityRef:x,setShadowRoot:w}=(0,o.V)(),{state:C}=(0,v.wz)(),E=((e,t)=>{let a,r,o,s,c,b,x,w,C=(a=(0,n.useRef)((0,i.useNavigate)()),r=(0,m.gf)(h.U).getOptionalString("app.baseUrl"),(0,n.useCallback)(e=>{let t=e;if(r)try{let a,n,i,o;a=new URL(r),n=`${a.origin}${a.pathname.replace(/\/$/,"")}`,i=e.replace(n,"").replace(/^\/+/,""),o=new URL(`http://localhost/${i}`),t=`${o.pathname}${o.search}${o.hash}`}catch(e){}a.current(t)},[r])),E=(0,u.A)(),N=(0,d.A)("screen and (max-width: 76.1875em)"),L=(o=(0,m.gf)(h.U),s=(0,n.useMemo)(()=>o.getOptionalConfig("techdocs.sanitizer"),[o]),c=(0,n.useMemo)(()=>{let e=(0,y.A)();e.addHook("beforeSanitizeElements",j);let t=s?.getOptionalStringArray("allowedIframeHosts");return t&&e.addHook("beforeSanitizeElements",e=>{e.nodeType===Node.ELEMENT_NODE&&("IFRAME"!==e.nodeName||((e,t)=>{let a=e.getAttribute("src")||"";try{let{host:e}=new URL(a);return t.includes(e)}catch{return!1}})(e,t)||e.remove())}),e.addHook("uponSanitizeElement",A),e.addHook("uponSanitizeAttribute",S),e},[s]),(0,n.useCallback)(async e=>{let t=s?.getOptionalStringArray("allowedIframeHosts"),a=["link","meta"];t&&a.push("iframe");let r=s?.getOptionalString("allowedCustomElementTagNameRegExp"),n=s?.getOptionalString("allowedCustomElementAttributeNameRegExp"),i=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...s?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),o=RegExp(`^(?:${i.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return c.sanitize(e.outerHTML,{ADD_TAGS:a,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:o,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:r?new RegExp(r):void 0,attributeNameCheck:n?new RegExp(n):void 0}})},[s,c])),T=(b=(0,k.Ut)(),x=(0,u.A)(),w=(0,n.useMemo)(()=>{let e={theme:x,sidebar:b};return R.reduce((t,a)=>t+a(e),"")},[x,b]),(0,n.useCallback)(e=>(e.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${w}</style>`),e),[w])),I=(0,p.s)(),F=(0,m.gf)(f.s),U=(0,m.gf)(g.Y),K=(0,m.gf)(h.U),{state:Y,path:V,content:W}=(0,v.wz)(),{"*":q=""}=(0,i.useParams)(),[X,Z]=(0,n.useState)(null),J=(0,l._$)(X);(e=>{let t=(0,i.useLocation)(),a=(0,i.useNavigate)(),{"*":r=""}=(0,i.useParams)();(0,n.useLayoutEffect)(()=>{""===r&&e&&a(`${t.pathname}${e}`,{replace:!0})},[])})(t);let ee=(0,n.useCallback)(()=>{X&&X.querySelectorAll(".md-sidebar").forEach(e=>{if(N)e.style.top="0px";else{let t=document?.querySelector(".techdocs-reader-page"),a=t?.getBoundingClientRect().top??0,r=X.getBoundingClientRect().top??0,n=X.querySelector(".md-container > .md-tabs"),i=n?.getBoundingClientRect().height??0;r<a&&(r=a);let o=Math.max(r,0)+i;e.style.top=`${o}px`;let l=X.querySelector(".md-container > .md-footer"),s=l?.getBoundingClientRect().top??window.innerHeight;e.style.height=`${s-o}px`}e.style.setProperty("opacity","1")})},[X,N]);(0,n.useEffect)(()=>(window.addEventListener("resize",ee),window.addEventListener("scroll",ee,!0),()=>{window.removeEventListener("resize",ee),window.removeEventListener("scroll",ee,!0)}),[X,ee]);let et=(0,n.useCallback)(()=>{if(!X)return;let e=X.querySelector(".md-footer");e&&(e.style.width=`${X.getBoundingClientRect().width}px`)},[X]);(0,n.useEffect)(()=>(window.addEventListener("resize",et),()=>{window.removeEventListener("resize",et)}),[X,et]),(0,n.useEffect)(()=>{J||(et(),ee())},[Y,J,et,ee]);let ea=(0,n.useCallback)((t,a)=>B(t,[L,(({techdocsStorageApi:e,entityId:t,path:a})=>async r=>{let n=await e.getApiOrigin(),i=async(r,i)=>{for(let o of r)if(o.hasAttribute(i)){let r=o.getAttribute(i);if(!r)return;let l=await e.getBaseUrl(r,t,a);if(P(i,r,n))try{let e=await fetch(l,{credentials:"include"}),t=await e.text();o.setAttribute(i,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`)}catch(e){o.setAttribute("alt",`Error: ${r}`)}else o.setAttribute(i,l)}};return await Promise.all([i(r.querySelectorAll("img"),"src"),i(r.querySelectorAll("script"),"src"),i(r.querySelectorAll("source"),"src"),i(r.querySelectorAll("link"),"href"),i(r.querySelectorAll("a[download]"),"href")]),r})({techdocsStorageApi:F,entityId:e,path:a}),e=>{var t,a;return t=Array.from(e.getElementsByTagName("a")),a="href",Array.from(t).filter(e=>e.hasAttribute(a)).forEach(e=>{let t=e.getAttribute(a);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{let r=$(window.location.href);e.setAttribute(a,new URL(t,r).toString())}catch(a){e.replaceWith(e.textContent||t)}}}),e},e=>{let t=e.querySelector('.md-header label[for="__drawer"]'),a=e.querySelector("article");if(!t||!a)return e;let r=t.cloneNode();return z((0,n.createElement)(O.default),r),r.id="toggle-sidebar",r.title="Toggle Sidebar",r.classList.add("md-content__button"),r.style.setProperty("padding","0 0 0 5px"),r.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),a?.prepend(r),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer .md-copyright")?.remove(),e.querySelector(".md-footer-copyright")?.remove(),e),e=>{let t=e.querySelector('[title="Edit this page"]');if(!t||!t.href)return e;let a=new URL(t.href),r=U.byUrl(a);if(r?.type!=="github"&&r?.type!=="gitlab")return e;let i=e.querySelector("article>h1")?.childNodes[0].textContent||"",o=encodeURIComponent(`Documentation Feedback: ${i}`),l=encodeURIComponent(`Page source:
|
|
528
|
-
${t.href}
|
|
529
|
-
|
|
530
|
-
Feedback:`),s=r?.type==="github"?(0,H.F)(a.href,"blob"):a.href,c=_()(s),d=`/${c.organization}/${c.name}`,u=t.cloneNode();switch(r?.type){case"gitlab":u.href=`${a.origin}${d}/issues/new?issue[title]=${o}&issue[description]=${l}`;break;case"github":u.href=`${a.origin}${d}/issues/new?title=${o}&body=${l}`;break;default:return e}return z((0,n.createElement)(M.default),u),u.style.paddingLeft="5px",u.title="Leave feedback for this page",u.id="git-feedback-link",t?.insertAdjacentElement("beforebegin",u),e},T]),[e,U,F,L,T]),er=(0,n.useCallback)(async t=>{var a;let r;return B(t,[(a=e.name,r=e=>{let t=$(window.location.href),r=new URL(e,t);if(r.hostname!==window.location.hostname){let e=window.location.pathname,r=e.indexOf(a);return new URL(e.slice(0,r+a.length),t).href}return r.href},e=>{for(let t of Array.from(e.querySelectorAll("meta")))if("refresh"===t.getAttribute("http-equiv")){let a=t.getAttribute("content")?.split("url=");if(!a||a.length<2)return e;let n=r(a[1]);if(window.location.href===n)return e;let i=document.createElement("div");z((0,D.jsx)(G,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>C(n),autoHideDuration:3e3}),i),document.body.appendChild(i),setTimeout(()=>{C(n)},3e3);break}return e}),e=>(setTimeout(()=>{let t=e?.querySelectorAll("li.md-nav__item--active");0!==t.length&&(t.forEach(e=>{let t=e?.querySelector("input");t?.checked||t?.click()}),t[t.length-1].scrollIntoView())},200),e),e=>{for(let t of e.querySelectorAll("pre > code")){let e=t.textContent||"",a=document.createElement("div");t?.parentElement?.prepend(a),z((0,D.jsx)(Q.A,{theme:E,children:(0,D.jsx)(en,{text:e})}),a)}return e},(({baseUrl:e,onClick:t})=>a=>(Array.from(a.getElementsByTagName("a")).forEach(a=>{a.addEventListener("click",r=>{let n=a.getAttribute("href");n&&n.startsWith(e)&&!a.hasAttribute("download")&&(r.preventDefault(),t(r,n))})}),a))({baseUrl:K.getOptionalString("app.baseUrl")||window.location.origin,onClick:(e,a)=>{let r=e.ctrlKey||e.metaKey,n=new URL(a),i=e.target?.innerText||a,o=a.replace(window.location.origin,"");I.captureEvent("click",i,{attributes:{to:o}}),n.hash?r?window.open(a,"_blank"):(window.location.pathname!==n.pathname?C(a):window.history.pushState(null,document.title,n.hash),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.scrollIntoView(),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):r?window.open(a,"_blank"):C(a)}}),ei({onLoading:()=>{},onLoaded:()=>{t.querySelector(".md-nav__title")?.removeAttribute("for")}}),ei({onLoading:()=>{Array.from(t.querySelectorAll(".md-sidebar")).forEach(e=>{e.style.setProperty("opacity","0")})},onLoaded:()=>{}}),e=>(e.querySelectorAll("label.md-nav__link[for]").forEach(t=>{t.setAttribute("tabIndex","0"),t.addEventListener("keydown",a=>{if("Enter"===a.key||" "===a.key){let r=t.getAttribute("for");if(!r)return;let n=e.querySelector(`#${r}`);n&&"checkbox"===n.type&&(n.checked=!n.checked,n.dispatchEvent(new Event("change",{bubbles:!0})),a.preventDefault(),a.stopPropagation())}})}),e)])},[E,C,I,e.name,K]);return(0,n.useEffect)(()=>{if(!W)return()=>{};let e=!0;return ea(W,V).then(async t=>{t?.innerHTML&&e&&q===V&&(window.scroll({top:0}),Z(await er(t)))}),()=>{e=!1}},[W,q,V,ea,er]),X})(x,t),N=(0,i.useLocation)(),L=N.pathname,T=N.hash,I=(0,l._$)(E),[F]=(0,s.$r)([`[id="${T.slice(1)}"]`]),{NotFoundErrorPage:U}=(0,c.n)().getComponents();(0,n.useEffect)(()=>{if(!I)if(T){if(F){F.scrollIntoView();let e=F.querySelector("a.headerlink");e&&e.focus()}}else document?.querySelector("header")?.scrollIntoView()},[L,T,F,I]);let K=(0,n.useCallback)(e=>{w(e),a instanceof Function&&a()},[w,a]),Y=!!E;return{entityRef:x,entityMetadata:r,dom:E,handleAppend:K,isNotFound:!1===b&&!r,isDomReady:Y,showProgress:"CHECKING"===C||I,NotFoundErrorPage:U}}},59535(e,t,a){a.d(t,{f:()=>m});var r=a(14041),n=a(18690),i=a(58077),o=a(50509),l=a(19735),s=a(90479),c=a(63401),d=a(87623),u=a(56005),p=a.n(u);function m(){let e=(0,s.YR)(),t=(0,o.gf)(l.U),a=(0,o.gf)(d.n),{"*":u=""}=(0,n.useParams)(),{title:m,setTitle:h,subtitle:g,setSubtitle:f,entityRef:v,metadata:{value:y,loading:b},entityMetadata:{value:x,loading:w}}=(0,c.V)();(0,r.useEffect)(()=>{y&&(h(y.site_name),f(()=>{let{site_description:e}=y;return e&&"None"!==e||(e=""),e}))},[y,h,f]);let j=t.getOptionalString("app.title")||"Backstage",A=x?.locationMetadata,S=!!A&&"dir"!==A.type&&"file"!==A.type,k=!b&&void 0===y,C=!w&&void 0===x||k,E=j;if(!C){let e=(0,i.U2)(v),t=a.forEntity(e).snapshot.primaryTitle,r=[];""!==u&&(r=u.replace(/\/$/,"").split("/").map(e=>e.replace(/[-_]/g," ").split(" ").map(p()).join(" "))),E=[t,...r,j].join(" | ")}return{title:m,subtitle:g,entityRef:v,entityMetadata:x,tabTitle:E,hidden:C,showSourceLink:S,sourceLink:A?.target,addons:e}}},36985(e,t,a){a.d(t,{F:()=>i});var r=a(14041),n=a(63489);function i(e){let{setFilters:t,setTerm:a,term:i,result:{loading:o,value:l}}=(0,n.SQ)(),[s,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(!1),p=(0,r.useRef)();(0,r.useEffect)(()=>{l&&c(l.results.slice(0,10))},[o,l]),(0,r.useEffect)(()=>(clearTimeout(p.current),u(!1),o&&(p.current=setTimeout(()=>u(!0),200)),()=>clearTimeout(p.current)),[i,o]);let{kind:m,name:h,namespace:g}=e;return(0,r.useEffect)(()=>{t(e=>({...e,kind:m,namespace:g,name:h}))},[m,g,h,t]),{results:s,term:i,setTerm:a,loading:o,deferredLoading:d}}},81697(e,t,a){a.d(t,{W:()=>et});var r=a(31085),n=a(14041),i=a(18690),o=a(12439),l=a(55489),s=a(90479),c=a(63401),d=a(59177),u=a(93285),p=a(42899),m=a(4387),h=a(13660),g=a(10337),f=a(53320),v=a(3438),y=a(53987),b=a(49185),x=a(27231),w=a(70111),j=a(89595),A=a(81219),S=a(56005),k=a.n(S),C=a(90898),E=a(64009),N=a(59535);let L=(0,r.jsx)(m.A,{animation:"wave",variant:"text",height:40}),T=e=>{let{children:t}=e,{t:a}=(0,j.i)(E.M),{title:n,subtitle:i,entityRef:o,entityMetadata:l,tabTitle:s,hidden:c,showSourceLink:d,sourceLink:m,addons:S}=(0,N.f)(),T=(0,A.S)(C.rQ)();if(c)return null;let{spec:I}=l||{},R=I?.lifecycle,B=l?(0,f.t)(l,b.vv):[],P=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.S,{label:k()(l?.kind||"entity"),value:(0,r.jsx)(v.z,{color:"inherit",entityRef:o,defaultKind:"Component"})}),B.length>0&&(0,r.jsx)(x.S,{label:a("readerPageHeader.owner"),value:(0,r.jsx)(y.i,{color:"inherit",entityRefs:B,defaultKind:"group"})}),R?(0,r.jsx)(x.S,{label:a("readerPageHeader.lifecycle"),value:String(R)}):null,d?(0,r.jsx)(x.S,{label:"",value:(0,r.jsxs)(p.A,{container:!0,direction:"column",alignItems:"center",children:[(0,r.jsx)(p.A,{style:{padding:0},item:!0,children:(0,r.jsx)(h.default,{style:{marginTop:"-25px"}})}),(0,r.jsx)(p.A,{style:{padding:0},item:!0,children:a("readerPageHeader.source")})]}),url:m}):null]});return(0,r.jsxs)(w.Y,{type:"Documentation",typeLink:T,title:n||L,subtitle:""===i?void 0:i||L,children:[(0,r.jsx)(u.A,{titleTemplate:"%s",children:(0,r.jsx)("title",{children:s})}),P,t,S.renderComponentsByLocation(g.e.Header)]})};var I=a(4518),R=a(90615),B=a(65605),P=a(60691),$=a(91189),O=a(64947),z=a(50509),H=a(76637),M=a(71531),F=a(91042),_=a(76842),D=a(33947);function U(e){let{children:t,...a}=e,{Progress:i}=(0,$.n)().getComponents(),o=function(e){let{pluginId:t}=e??{},a=(0,z.gf)(H.a),r=(0,z.gf)(M.I),i=(0,n.useMemo)(()=>"BroadcastChannel"in window?new BroadcastChannel(`${t}-auth-cookie-expires-at`):null,[t]),[o,l]=(0,F.Y)(async()=>{let e=await r.getBaseUrl(t),n=`${e}/.backstage/auth/v1/cookie`,i=await a.fetch(`${n}`,{credentials:"include"});if(!i.ok){if(404===i.status)return{expiresAt:new Date(Date.now()+31536e6)};throw await D.o.fromResponse(i)}let o=await i.json();if(!o.expiresAt)throw Error("No expiration date found in response");return o});(0,_.u)(l.execute);let s=(0,n.useCallback)(()=>{l.execute()},[l]),c=(0,n.useCallback)(e=>{let t=(1+3*Math.random())*6e4,a=setTimeout(s,Date.parse(e.expiresAt)-Date.now()-t);return()=>clearTimeout(a)},[s]);return((0,n.useEffect)(()=>{if("success"!==o.status||!o.result)return()=>{};i?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:o.result});let e=c(o.result),t=t=>{let{action:a,payload:r}=t.data;"COOKIE_REFRESH_SUCCESS"===a&&(e(),e=c(r))};return i?.addEventListener("message",t),()=>{e(),i?.removeEventListener("message",t)}},[o,c,i]),"not-executed"===o.status||"loading"===o.status&&!o.result||"loading"===o.status&&o.error)?{status:"loading"}:"error"===o.status&&o.error?{status:"error",error:o.error,retry:s}:{status:"success",data:o.result}}(a);return"loading"===o.status?(0,r.jsx)(i,{}):"error"===o.status?(0,r.jsx)(P.b,{error:o.error,children:(0,r.jsx)(O.A,{variant:"outlined",onClick:o.retry,children:"Retry"})}):(0,r.jsx)(r.Fragment,{children:t})}var K=a(60882),Y=a(54917),V=a(41329),W=a(50868),q=a(73466),G=a(76272),Q=a(58077),X=a(95269),Z=a(78931);let J=e=>{let{withSearch:t,withHeader:a=!0}=e;return(0,r.jsxs)(o.Y,{themeId:"documentation",children:[a&&(0,r.jsx)(T,{}),(0,r.jsx)(I.Z,{}),(0,r.jsx)(d.p,{withSearch:t})]})},ee=(0,K.A)(o.Y)({height:"inherit",overflowY:"visible"}),et=e=>{let t,a,o,d,u,p,m,h,g=(0,Y.A)(),f=(0,n.useMemo)(()=>(0,V.A)({...g,...e.overrideThemeOptions||{}}),[g,e.overrideThemeOptions]),{kind:v,name:y,namespace:b}=(0,R.K)(C.Oc),{children:x,entityRef:w={kind:v,name:y,namespace:b}}=e,j=(0,i.useOutlet)(),S=(0,n.useMemo)(()=>({kind:w.kind,name:w.name,namespace:w.namespace}),[w.kind,w.name,w.namespace]),{shouldShowProgress:k}=(t=(0,z.gf)(G.v),a=(0,i.useNavigate)(),o=(0,A.S)(C.Oc),d=(0,Q.U2)(S),p=(u=(0,n.useRef)(null)).current!==d,m=(0,q.A)(async()=>{try{let e=await t.getEntityByRef(S);if(e?.metadata?.annotations?.[Z.GO])return(0,X.b1)(e,o)}catch(e){}},[d,t]),(0,n.useEffect)(()=>{!m.loading&&m.value&&a(m.value,{replace:!0}),m.loading||m.value||(u.current=d)},[m.loading,m.value,a,d]),h=p&&m.loading||!!m.value,{loading:m.loading,shouldShowProgress:h}),E=(0,n.useMemo)(()=>x?null:(j?n.Children.toArray(j.props.children):[]).flatMap(e=>e?.props?.children??[]).find(e=>!(0,B.E)(e,s.AF)&&!(0,B.E)(e,s.Wm)),[x,j]);return k?(0,r.jsx)(l.k,{}):x?(0,r.jsx)(W.A,{theme:f,children:(0,r.jsx)(U,{pluginId:"techdocs",children:(0,r.jsx)(c.R,{entityRef:S,children:({metadata:e,entityMetadata:t,onReady:a})=>(0,r.jsx)(ee,{themeId:"documentation",className:"techdocs-reader-page",children:x instanceof Function?x({entityRef:S,techdocsMetadataValue:e.value,entityMetadataValue:t.value,onReady:a}):x})})})}):(0,r.jsx)(W.A,{theme:f,children:(0,r.jsx)(U,{pluginId:"techdocs",children:(0,r.jsx)(c.R,{entityRef:S,children:E||(0,r.jsx)(J,{})})})})}},59177(e,t,a){let r;a.d(t,{p:()=>D});var n=a(31085),i=a(42899),o=a(58837),l=a(96741),s=a(84391),c=a(55489),d=a(14041),u=a(78467),p=a(62683),m=a(63489),h=a(50509),g=a(19735),f=a(91189),v=a(92829),y=a(29365),b=a(34839),x=a(16249),w=a(64947),j=a(45917),A=a(48240),S=a(89595);let k=(0,a(97386).h)({id:"search-react",messages:{searchBar:{title:"Search",placeholder:"Search in {{org}}",clearButtonTitle:"Clear"},searchFilter:{allOptionTitle:"All"},searchPagination:{limitLabel:"Results per page:",limitText:"of {{num}}"},noResultsDescription:"Sorry, no results were found",searchResultGroup:{linkTitle:"See All",addFilterButtonTitle:"Add filter"},searchResultPager:{previous:"Previous",next:"Next"}}}),C=(0,d.forwardRef)((e,t)=>{let{onChange:a,onKeyDown:r=()=>{},onClear:i=()=>{},onSubmit:o=()=>{},debounceTime:l=200,clearButton:s=!0,fullWidth:c=!0,value:u,label:p,placeholder:v,inputProps:C={},InputProps:E={},endAdornment:N,...L}=e,T=(0,h.gf)(g.U),[I,R]=(0,d.useState)(""),B=(0,d.useRef)(""),{t:P}=(0,S.i)(k);(0,d.useEffect)(()=>{R(e=>e===B.current?String(u):e)},[u,B]),(0,A.A)(()=>{B.current=I,a(I)},l,[I]);let $=(0,d.useCallback)(e=>{R(e.target.value)},[R]),O=(0,d.useCallback)(e=>{r&&r(e),o&&"Enter"===e.key&&o()},[r,o]),z=(0,d.useCallback)(()=>{B.current="",a(""),R(""),i&&i()},[a,i]),H=p?void 0:P("searchBar.title"),M=v??P("searchBar.placeholder",{org:T.getOptionalString("app.title")||"Backstage"}),F=(0,f.n)().getSystemIcon("search")||j.default,_=(0,n.jsx)(b.A,{position:"start",children:(0,n.jsx)(y.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,n.jsx)(F,{})})}),D=(0,n.jsx)(b.A,{position:"end",children:(0,n.jsx)(w.A,{"aria-label":P("searchBar.clearButtonTitle"),size:"small",onClick:z,onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},children:P("searchBar.clearButtonTitle")})});return(0,n.jsx)(m.Lt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(x.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:t,value:I,label:p,placeholder:M,InputProps:{startAdornment:_,endAdornment:s?D:N,...E},inputProps:{"aria-label":H,...C},fullWidth:c,onChange:$,onKeyDown:O,...L})})}),E=(0,d.forwardRef)((e,t)=>{let{value:a="",onChange:r,...i}=e,{term:o,setTerm:l}=(0,m.SQ)();(0,d.useEffect)(()=>{a&&l(String(a))},[a,l]);let s=(0,d.useCallback)(e=>{r?r(e):l(e)},[r,l]);return(0,n.jsx)(m.Lt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(v.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,n.jsx)(C,{...i,ref:t,value:o,onChange:s})})})}),N=(0,o.A)(e=>({loading:{right:e.spacing(1),position:"absolute"}})),L=()=>{let e=N();return(0,n.jsx)(u.A,{className:e.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},T=(r=function(e){let{loading:t,value:a,onChange:r=()=>{},options:i=[],getOptionLabel:o=e=>String(e),inputPlaceholder:l,inputDebounceTime:s,freeSolo:c=!0,fullWidth:u=!0,clearOnBlur:h=!1,"data-testid":g="search-autocomplete",...f}=e,{setTerm:v}=(0,m.SQ)(),y=(0,d.useCallback)(e=>e?"string"==typeof e?e:o(e):"",[o]),b=(0,d.useMemo)(()=>y(a),[a,y]),x=(0,d.useCallback)((e,t,a,n)=>{v(y(t)),r(e,t,a,n)},[y,v,r]),w=(0,d.useCallback)(({InputProps:{ref:e,className:a,endAdornment:r},InputLabelProps:i,...o})=>(0,n.jsx)(E,{...o,ref:e,clearButton:!1,value:b,placeholder:l,debounceTime:s,endAdornment:t?(0,n.jsx)(L,{}):r,InputProps:{className:a}}),[t,b,l,s]);return(0,n.jsx)(p.Ay,{...f,"data-testid":g,value:a,onChange:x,options:i,getOptionLabel:o,renderInput:w,freeSolo:c,fullWidth:u,clearOnBlur:h})},e=>(0,n.jsx)(m.Lt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(r,{...e})}));var I=a(18690),R=a(64009),B=a(26761),P=a(36985);let $=e=>{let{entityId:t,entityTitle:a,debounceTime:r=150,searchResultUrlMapper:i}=e,[o,l]=(0,d.useState)(!1),s=(0,I.useNavigate)(),{t:c}=(0,S.i)(R.M),{results:u,term:p,loading:m}=(0,P.F)(t);return(0,n.jsx)(T,{"data-testid":"techdocs-search-bar",size:"small",open:o&&!!p,getOptionLabel:()=>"",filterOptions:e=>e,onClose:()=>{l(!1)},onOpen:()=>{l(!0)},onChange:(e,t)=>{if(t?.document){let{location:e}=t.document;s(i?i(e):e)}},blurOnSelect:!0,noOptionsText:c("search.noResults"),value:null,options:u,renderOption:({document:e,highlight:t})=>(0,n.jsx)(B.TechDocsSearchResultListItem,{result:e,lineClamp:3,asListItem:!1,asLink:!1,title:e.title,highlight:t}),loading:m,inputDebounceTime:r,inputPlaceholder:c("search.placeholder",{entityTitle:a||t.name}),freeSolo:!1})},O=e=>{let t={term:"",types:["techdocs"],pageCursor:"",filters:e.entityId};return(0,n.jsx)(m.Lt,{initialState:t,children:(0,n.jsx)($,{...e})})};var z=a(3905),H=a(4723),M=a(73455),F=a(31035);let _=(0,o.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),D=(0,H.sh)(e=>{let{withSearch:t=!0,searchResultUrlMapper:a}=e,r=_(),{entityRef:o,entityMetadata:d,dom:u,handleAppend:p,isNotFound:m,isDomReady:h,showProgress:g,NotFoundErrorPage:f}=(0,F.t)({defaultPath:e.defaultPath,onReady:e.onReady});return m?(0,n.jsx)(f,{}):h?(0,n.jsx)(s.U,{children:(0,n.jsxs)(i.A,{container:!0,children:[(0,n.jsx)(i.A,{xs:12,item:!0,children:(0,n.jsx)(z.W,{})}),t&&(0,n.jsx)(i.A,{className:r.search,xs:"auto",item:!0,children:(0,n.jsx)(O,{entityId:o,entityTitle:d?.metadata?.title,searchResultUrlMapper:a})}),(0,n.jsxs)(i.A,{xs:12,item:!0,children:[g&&(0,n.jsx)(c.k,{}),(0,n.jsx)(l.eh,{element:u,onAppend:p,children:(0,n.jsx)(M.k,{})})]})]})}):(0,n.jsx)(s.U,{children:(0,n.jsx)(i.A,{container:!0,children:(0,n.jsx)(i.A,{xs:12,item:!0,children:(0,n.jsx)(z.W,{})})})})})},73455(e,t,a){a.d(t,{k:()=>s});var r=a(31085),n=a(41883),i=a(90479),o=a(63401),l=a(10337);let s=()=>{let e=(0,i.YR)(),{shadowRoot:t}=(0,o.V)(),a=t?.querySelector('[data-md-component="content"]'),s=t?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]'),c=s?.querySelector('[data-techdocs-addons-location="primary sidebar"]');c||((c=document.createElement("div")).setAttribute("data-techdocs-addons-location","primary sidebar"),s?.prepend(c));let d=t?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]'),u=d?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return u||((u=document.createElement("div")).setAttribute("data-techdocs-addons-location","secondary sidebar"),d?.prepend(u)),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.A,{container:c,children:e.renderComponentsByLocation(l.e.PrimarySidebar)}),(0,r.jsx)(n.A,{container:a,children:e.renderComponentsByLocation(l.e.Content)}),(0,r.jsx)(n.A,{container:u,children:e.renderComponentsByLocation(l.e.SecondarySidebar)})]})}},4518(e,t,a){a.d(t,{Z:()=>y});var r=a(31085),n=a(14041),i=a(58837),o=a(29365),l=a(75173),s=a(71677),c=a(37757),d=a(77125),u=a(9684),p=a(63401),m=a(90479),h=a(10337),g=a(89595),f=a(64009);let v=(0,i.A)(e=>({root:{gridArea:"pageSubheader",flexDirection:"column",minHeight:"auto",padding:e.spacing(3,3,0),"@media print":{display:"none"}}})),y=e=>{let t=v(),{t:a}=(0,g.i)(f.M),[i,y]=(0,n.useState)(null),b=(0,n.useCallback)(e=>{y(e.currentTarget)},[]),x=(0,n.useCallback)(()=>{y(null)},[]),{entityMetadata:{value:w,loading:j}}=(0,p.V)(),A=(0,m.YR)(),S=A.renderComponentsByLocation(h.e.Subheader),k=A.renderComponentsByLocation(h.e.Settings);return(S||k)&&(!1!==j||w)?(0,r.jsx)(l.A,{classes:t,...e.toolbarProps,children:(0,r.jsxs)(d.A,{display:"flex",justifyContent:"flex-end",width:"100%",flexWrap:"wrap",children:[S,k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Ay,{title:a("reader.settings"),children:(0,r.jsx)(o.A,{"aria-controls":"tech-docs-reader-page-settings","aria-haspopup":"true",onClick:b,children:(0,r.jsx)(u.default,{})})}),(0,r.jsx)(c.A,{id:"tech-docs-reader-page-settings",getContentAnchorEl:null,anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!!i,onClose:x,keepMounted:!0,children:(0,r.jsx)("div",{children:k})})]}):null]})}):null}},4723(e,t,a){a.d(t,{sh:()=>g,wz:()=>m});var r=a(31085),n=a(14041),i=a(18690),o=a(63401),l=a(50509),s=a(73466),c=a(28966),d=a(18288);function u(e,t){let a={...e};switch(t.type){case"sync":"CHECKING"===t.state&&(a.buildLog=[]),a.activeSyncState=t.state,a.syncError=t.syncError;break;case"contentLoading":a.contentLoading=!0,a.contentError=void 0;break;case"content":"string"==typeof t.path&&(a.path=t.path),a.contentLoading=!1,a.content=t.content,a.contentError=t.contentError;break;case"buildLog":a.buildLog=a.buildLog.concat(t.log);break;default:throw Error()}return["BUILD_READY","BUILD_READY_RELOAD"].includes(a.activeSyncState)&&["contentLoading","content"].includes(t.type)&&(a.activeSyncState="UP_TO_DATE",a.buildLog=[]),a}let p=(0,n.createContext)({}),m=()=>(0,n.useContext)(p),h=e=>{let{children:t}=e,{"*":a=""}=(0,i.useParams)(),{entityRef:m}=(0,o.V)(),{kind:h,namespace:g,name:f}=m,v=function(e,t,a,r){let[i,o]=(0,n.useReducer)(u,{activeSyncState:"CHECKING",path:r,contentLoading:!0,buildLog:[]}),p=(0,l.gf)(d.s),{retry:m}=(0,c.A)(async()=>{o({type:"contentLoading"});try{let n=await p.getEntityDocs({kind:e,namespace:t,name:a},r);return o({type:"content",content:n,path:r}),n}catch(e){o({type:"content",contentError:e,path:r})}},[p,e,t,a,r]),h=(0,n.useRef)({content:void 0,reload:()=>{}});h.current={content:i.content,reload:m},(0,s.A)(async()=>{o({type:"sync",state:"CHECKING"});let r=setTimeout(()=>{o({type:"sync",state:"BUILDING"})},1e3);try{switch(await p.syncEntityDocs({kind:e,namespace:t,name:a},e=>{o({type:"buildLog",log:e})})){case"updated":h.current.content?o({type:"sync",state:"BUILD_READY"}):(h.current.reload(),o({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":o({type:"sync",state:"UP_TO_DATE"});break;default:o({type:"sync",state:"ERROR",syncError:Error("Unexpected return state")})}}catch(e){o({type:"sync",state:"ERROR",syncError:e})}finally{clearTimeout(r)}},[e,a,t,p,o,h]);let g=(0,n.useMemo)(()=>(function({contentLoading:e,content:t,activeSyncState:a}){return e||"BUILD_READY_RELOAD"===a||!t&&"CHECKING"===a?"CHECKING":t||"BUILDING"!==a?t?"BUILDING"===a?"CONTENT_STALE_REFRESHING":"BUILD_READY"===a?"CONTENT_STALE_READY":"ERROR"===a?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND":"INITIAL_BUILD"})({activeSyncState:i.activeSyncState,contentLoading:i.contentLoading,content:i.content}),[i.activeSyncState,i.content,i.contentLoading]);return(0,n.useMemo)(()=>({state:g,contentReload:m,path:i.path,content:i.content,contentErrorMessage:i.contentError?.toString(),syncErrorMessage:i.syncError?.toString(),buildLog:i.buildLog}),[g,m,i.path,i.content,i.contentError,i.syncError,i.buildLog])}(h,g,f,a);return(0,r.jsx)(p.Provider,{value:v,children:t instanceof Function?t(v):t})},g=e=>t=>(0,r.jsx)(h,{children:(0,r.jsx)(e,{...t})})},3905(e,t,a){a.d(t,{W:()=>R});var r=a(31085),n=a(78467),i=a(64947),o=a(58837),l=a(48209),s=a(89595),c=a(14041),d=a(91189);let u=(0,c.lazy)(()=>Promise.all([a.e("1767"),a.e("4591")]).then(a.bind(a,69890)).then(e=>({default:e.RealLogViewer})));function p(e){let{Progress:t}=(0,d.n)().getComponents();return(0,r.jsx)(c.Suspense,{fallback:(0,r.jsx)(t,{}),children:(0,r.jsx)(u,{...e})})}var m=a(73845),h=a(42899),g=a(29365),f=a(72501),v=a(99703),y=a(32881),b=a(64009);let x=(0,o.A)(e=>(0,v.A)({paper:{width:"100%",[e.breakpoints.up("sm")]:{width:"75%"},[e.breakpoints.up("md")]:{width:"50%"},padding:e.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:e.palette.background.default}})),w=({buildLog:e,onClose:t})=>{let a=x(),{t:n}=(0,s.i)(b.M),i=0===e.length?n("buildLogs.waitingForLogs"):e.join("\n");return(0,r.jsxs)(h.A,{container:!0,direction:"column",className:a.root,spacing:0,wrap:"nowrap",children:[(0,r.jsxs)(h.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,r.jsx)(f.A,{variant:"h5",children:n("buildLogs.title")}),(0,r.jsx)(g.A,{title:n("buildLogs.closeDrawer"),onClick:t,color:"inherit",children:(0,r.jsx)(y.default,{})},"dismiss")]}),(0,r.jsx)(h.A,{item:!0,xs:!0,children:(0,r.jsx)(p,{text:i,classes:{root:a.logs}})})]})},j=({buildLog:e})=>{let t=x(),[a,n]=(0,c.useState)(!1),{t:o}=(0,s.i)(b.M);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{color:"inherit",onClick:()=>n(!0),children:o("buildLogs.showBuildLogs")}),(0,r.jsx)(m.Ay,{classes:{paper:t.paper},anchor:"right",open:a,onClose:()=>n(!1),children:(0,r.jsx)(w,{buildLog:e,onClose:()=>n(!1)})})]})};var A=a(50509),S=a(19735),k=a(53996),C=a(73462),E=a(63401),N=a(18690);let L=({errorMessage:e})=>{let t=(0,A.gf)(S.U).getOptionalString("techdocs.builder"),a=(0,k.s)(),{entityRef:n}=(0,E.V)(),i=(0,N.useLocation)(),{t:o}=(0,s.i)(b.M);(0,c.useEffect)(()=>{let{pathname:e,search:t,hash:r}=i;a.captureEvent("not-found",`${e}${t}${r}`,{attributes:n})},[a,n,i]);let l="";return[void 0,"local"].includes(t)||(l=o("notFound.builderNote")),(0,r.jsx)(C.M,{status:"404",statusMessage:e||o("notFound.title"),additionalInfo:l})};var T=a(4723);let I=(0,o.A)(e=>({root:{marginBottom:e.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),R=()=>{let e=null,t=I(),{t:a}=(0,s.i)(b.M),{state:o,contentReload:c,contentErrorMessage:d,syncErrorMessage:u,buildLog:p}=(0,T.wz)();return"INITIAL_BUILD"===o&&(e=(0,r.jsx)(l.A,{classes:{root:t.root},variant:"outlined",severity:"info",icon:(0,r.jsx)(n.A,{size:"24px"}),action:(0,r.jsx)(j,{buildLog:p}),children:a("stateIndicator.initialBuild.message")})),"CONTENT_STALE_REFRESHING"===o&&(e=(0,r.jsx)(l.A,{variant:"outlined",severity:"info",icon:(0,r.jsx)(n.A,{size:"24px"}),action:(0,r.jsx)(j,{buildLog:p}),classes:{root:t.root},children:a("stateIndicator.contentStaleRefreshing.message")})),"CONTENT_STALE_READY"===o&&(e=(0,r.jsx)(l.A,{variant:"outlined",severity:"success",action:(0,r.jsx)(i.A,{color:"inherit",onClick:()=>c(),children:a("stateIndicator.contentStaleReady.refreshButton")}),classes:{root:t.root},children:a("stateIndicator.contentStaleReady.message")})),"CONTENT_STALE_ERROR"===o&&(e=(0,r.jsxs)(l.A,{variant:"outlined",severity:"error",action:(0,r.jsx)(j,{buildLog:p}),classes:{root:t.root,message:t.message},children:[a("stateIndicator.contentStaleError.message")," ",u]})),"CONTENT_NOT_FOUND"===o&&(e=(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsxs)(l.A,{variant:"outlined",severity:"error",action:(0,r.jsx)(j,{buildLog:p}),classes:{root:t.root,message:t.message},children:[a("stateIndicator.contentStaleError.message")," ",u]}),(0,r.jsx)(L,{errorMessage:d})]})),e}},26761(e,t,a){a.d(t,{TechDocsSearchResultListItem:()=>u});var r=a(31085),n=a(68804),i=a(5951),o=a(58837),l=a(72501),s=a(60603),c=a(7613);let d=(0,o.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=e=>{let{result:t,highlight:a,lineClamp:o=5,asListItem:u=!0,asLink:p=!0,title:m,icon:h}=e,g=d(),f=({children:e})=>p?(0,r.jsx)(s.N_,{noTrack:!0,to:t.location,children:e}):(0,r.jsx)(r.Fragment,{children:e});return(0,r.jsx)(({children:e})=>u?(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)(n.A,{children:"function"==typeof h?h(t):h}),(0,r.jsx)("div",{className:g.flexContainer,children:e})]}):(0,r.jsx)(r.Fragment,{children:e}),{children:(0,r.jsx)(()=>{let e=a?.fields.title?(0,r.jsx)(c.e,{text:a.fields.title,preTag:a.preTag,postTag:a.postTag}):t.title,n=a?.fields.entityTitle?(0,r.jsx)(c.e,{text:a.fields.entityTitle,preTag:a.preTag,postTag:a.postTag}):t.entityTitle,s=a?.fields.name?(0,r.jsx)(c.e,{text:a.fields.name,preTag:a.preTag,postTag:a.postTag}):t.name;return t?(0,r.jsx)(i.A,{className:g.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,r.jsx)(f,{children:m||(0,r.jsxs)(r.Fragment,{children:[e," | ",n??s," docs"]})}),secondary:(0,r.jsx)(l.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden"},color:"textSecondary",variant:"body2",children:a?.fields.text?(0,r.jsx)(c.e,{text:a.fields.text,preTag:a.preTag,postTag:a.postTag}):t.text})}):null},{})})}}}]);
|
|
531
|
-
//# sourceMappingURL=4609.152f14ef4904.chunk.js.map
|