@techdocs/cli 0.8.12 → 0.8.13-next.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.
Files changed (889) hide show
  1. package/CHANGELOG.md +15 -6
  2. package/README.md +6 -6
  3. package/dist/cjs/serve-be4ef843.cjs.js +144 -0
  4. package/dist/cjs/serve-be4ef843.cjs.js.map +1 -0
  5. package/dist/{techdocs-preview-bundle → embedded-app}/.config-schema.json +0 -0
  6. package/dist/{techdocs-preview-bundle → embedded-app}/android-chrome-192x192.png +0 -0
  7. package/dist/{techdocs-preview-bundle → embedded-app}/apple-touch-icon.png +0 -0
  8. package/dist/{techdocs-preview-bundle → embedded-app}/favicon-16x16.png +0 -0
  9. package/dist/{techdocs-preview-bundle → embedded-app}/favicon-32x32.png +0 -0
  10. package/dist/{techdocs-preview-bundle → embedded-app}/favicon.ico +0 -0
  11. package/dist/embedded-app/index.html +1 -0
  12. package/dist/{techdocs-preview-bundle → embedded-app}/manifest.json +0 -0
  13. package/dist/{techdocs-preview-bundle → embedded-app}/robots.txt +0 -0
  14. package/dist/{techdocs-preview-bundle → embedded-app}/safari-pinned-tab.svg +0 -0
  15. package/dist/embedded-app/static/1553.a3ba3bc9.chunk.js +3 -0
  16. package/dist/embedded-app/static/1553.a3ba3bc9.chunk.js.map +1 -0
  17. package/dist/embedded-app/static/1959.f2a5fbe8.chunk.js +8 -0
  18. package/dist/embedded-app/static/1959.f2a5fbe8.chunk.js.map +1 -0
  19. package/dist/embedded-app/static/2426.c303a0db.chunk.js +3 -0
  20. package/dist/embedded-app/static/2426.c303a0db.chunk.js.map +1 -0
  21. package/dist/embedded-app/static/3825.2314f84b.chunk.js +3 -0
  22. package/dist/embedded-app/static/3825.2314f84b.chunk.js.map +1 -0
  23. package/dist/embedded-app/static/390.088f14b3.chunk.js +3 -0
  24. package/dist/embedded-app/static/390.088f14b3.chunk.js.map +1 -0
  25. package/dist/embedded-app/static/4022.9a059830.chunk.js +3 -0
  26. package/dist/embedded-app/static/4022.9a059830.chunk.js.map +1 -0
  27. package/dist/embedded-app/static/4960.ef8f22a6.chunk.js +3 -0
  28. package/dist/embedded-app/static/4960.ef8f22a6.chunk.js.map +1 -0
  29. package/dist/embedded-app/static/6105.1f3a3239.chunk.js +3 -0
  30. package/dist/embedded-app/static/6105.1f3a3239.chunk.js.map +1 -0
  31. package/dist/embedded-app/static/6235.71cad128.chunk.js +3 -0
  32. package/dist/embedded-app/static/6235.71cad128.chunk.js.map +1 -0
  33. package/dist/embedded-app/static/6650.43f69504.chunk.js +3 -0
  34. package/dist/embedded-app/static/6650.43f69504.chunk.js.map +1 -0
  35. package/dist/embedded-app/static/804.c2c0104e.chunk.js +3 -0
  36. package/dist/embedded-app/static/804.c2c0104e.chunk.js.map +1 -0
  37. package/dist/embedded-app/static/8061.d52df3ec.chunk.js +3 -0
  38. package/dist/embedded-app/static/8061.d52df3ec.chunk.js.map +1 -0
  39. package/dist/embedded-app/static/8718.d8f22f92.chunk.js +4 -0
  40. package/dist/embedded-app/static/8718.d8f22f92.chunk.js.map +1 -0
  41. package/dist/embedded-app/static/8792.ffba5fe7.chunk.js +3 -0
  42. package/dist/embedded-app/static/8792.ffba5fe7.chunk.js.map +1 -0
  43. package/dist/embedded-app/static/9028.310b76ec.chunk.js +3 -0
  44. package/dist/embedded-app/static/9028.310b76ec.chunk.js.map +1 -0
  45. package/dist/{techdocs-preview-bundle → embedded-app}/static/createComponent.975d1e1e..svg +0 -0
  46. package/dist/{techdocs-preview-bundle → embedded-app}/static/illo.7884c54f..svg +0 -0
  47. package/dist/embedded-app/static/main.367d4ef1.js +152 -0
  48. package/dist/embedded-app/static/main.367d4ef1.js.map +1 -0
  49. package/dist/{techdocs-preview-bundle → embedded-app}/static/mic-drop.fe3ef4d0..svg +0 -0
  50. package/dist/{techdocs-preview-bundle → embedded-app}/static/missingAnnotation.67f79e98..svg +0 -0
  51. package/dist/embedded-app/static/module-ajv.ed51f4b8.js +10 -0
  52. package/dist/embedded-app/static/module-ajv.ed51f4b8.js.map +1 -0
  53. package/dist/embedded-app/static/module-date-fns.a08d117e.js +3 -0
  54. package/dist/embedded-app/static/module-date-fns.a08d117e.js.map +1 -0
  55. package/dist/embedded-app/static/module-lodash.d85d8a0e.js +29 -0
  56. package/dist/embedded-app/static/module-lodash.d85d8a0e.js.map +1 -0
  57. package/dist/embedded-app/static/module-material-table.f1dfcc79.js +3 -0
  58. package/dist/embedded-app/static/module-material-table.f1dfcc79.js.map +1 -0
  59. package/dist/embedded-app/static/module-material-ui.c0214b97.js +51 -0
  60. package/dist/embedded-app/static/module-material-ui.c0214b97.js.map +1 -0
  61. package/dist/embedded-app/static/module-react-beautiful-dnd.bcb66a0c.js +67 -0
  62. package/dist/embedded-app/static/module-react-beautiful-dnd.bcb66a0c.js.map +1 -0
  63. package/dist/embedded-app/static/module-react-dom.a4f98d7b.js +25 -0
  64. package/dist/embedded-app/static/module-react-dom.a4f98d7b.js.map +1 -0
  65. package/dist/{techdocs-preview-bundle → embedded-app}/static/noBuild.1715fa71..svg +0 -0
  66. package/dist/{techdocs-preview-bundle → embedded-app}/static/noInformation.4b426325..svg +0 -0
  67. package/dist/embedded-app/static/react-syntax-highlighter/lowlight-import.051a03b1.chunk.js +6 -0
  68. package/dist/embedded-app/static/react-syntax-highlighter/lowlight-import.051a03b1.chunk.js.map +1 -0
  69. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_abnf.e6a0eba8.chunk.js +3 -0
  70. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_abnf.e6a0eba8.chunk.js.map +1 -0
  71. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_accesslog.4beaa91a.chunk.js +3 -0
  72. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_accesslog.4beaa91a.chunk.js.map +1 -0
  73. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_actionscript.292b574b.chunk.js +3 -0
  74. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_actionscript.292b574b.chunk.js.map +1 -0
  75. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ada.17b0c1e9.chunk.js +3 -0
  76. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ada.17b0c1e9.chunk.js.map +1 -0
  77. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_angelscript.2fa22084.chunk.js +3 -0
  78. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_angelscript.2fa22084.chunk.js.map +1 -0
  79. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_apache.a966b924.chunk.js +3 -0
  80. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_apache.a966b924.chunk.js.map +1 -0
  81. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_applescript.398efb2d.chunk.js +3 -0
  82. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_applescript.398efb2d.chunk.js.map +1 -0
  83. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arcade.efd9310b.chunk.js +3 -0
  84. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arcade.efd9310b.chunk.js.map +1 -0
  85. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arduino.f5b09530.chunk.js +3 -0
  86. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arduino.f5b09530.chunk.js.map +1 -0
  87. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_armasm.07c7365e.chunk.js +3 -0
  88. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_armasm.07c7365e.chunk.js.map +1 -0
  89. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_asciidoc.e71b2b97.chunk.js +3 -0
  90. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_asciidoc.e71b2b97.chunk.js.map +1 -0
  91. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_aspectj.d4578a11.chunk.js +3 -0
  92. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_aspectj.d4578a11.chunk.js.map +1 -0
  93. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autohotkey.fbaa0237.chunk.js +3 -0
  94. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autohotkey.fbaa0237.chunk.js.map +1 -0
  95. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autoit.6d4c5214.chunk.js +3 -0
  96. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autoit.6d4c5214.chunk.js.map +1 -0
  97. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_avrasm.18f58e18.chunk.js +3 -0
  98. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_avrasm.18f58e18.chunk.js.map +1 -0
  99. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_awk.c27dd539.chunk.js +3 -0
  100. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_awk.c27dd539.chunk.js.map +1 -0
  101. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_axapta.590ecb33.chunk.js +3 -0
  102. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_axapta.590ecb33.chunk.js.map +1 -0
  103. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bash.6dadcb4e.chunk.js +3 -0
  104. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bash.6dadcb4e.chunk.js.map +1 -0
  105. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_basic.6316c507.chunk.js +3 -0
  106. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_basic.6316c507.chunk.js.map +1 -0
  107. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bnf.3c2aef44.chunk.js +3 -0
  108. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bnf.3c2aef44.chunk.js.map +1 -0
  109. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_brainfuck.5c72cafc.chunk.js +5 -0
  110. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_brainfuck.5c72cafc.chunk.js.map +1 -0
  111. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_c.e9772f0f.chunk.js +3 -0
  112. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_c.e9772f0f.chunk.js.map +1 -0
  113. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cLike.df1dc03b.chunk.js +3 -0
  114. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cLike.df1dc03b.chunk.js.map +1 -0
  115. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cal.ab9f187a.chunk.js +3 -0
  116. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cal.ab9f187a.chunk.js.map +1 -0
  117. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_capnproto.a5523056.chunk.js +3 -0
  118. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_capnproto.a5523056.chunk.js.map +1 -0
  119. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ceylon.3365c59e.chunk.js +3 -0
  120. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ceylon.3365c59e.chunk.js.map +1 -0
  121. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clean.41d80232.chunk.js +3 -0
  122. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clean.41d80232.chunk.js.map +1 -0
  123. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojure.1f816fc6.chunk.js +3 -0
  124. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojure.1f816fc6.chunk.js.map +1 -0
  125. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojureRepl.df5f7b77.chunk.js +3 -0
  126. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojureRepl.df5f7b77.chunk.js.map +1 -0
  127. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cmake.1d3ebd62.chunk.js +3 -0
  128. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cmake.1d3ebd62.chunk.js.map +1 -0
  129. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coffeescript.7d35d62c.chunk.js +3 -0
  130. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coffeescript.7d35d62c.chunk.js.map +1 -0
  131. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coq.18dba36b.chunk.js +3 -0
  132. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coq.18dba36b.chunk.js.map +1 -0
  133. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cos.2a2085d6.chunk.js +3 -0
  134. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cos.2a2085d6.chunk.js.map +1 -0
  135. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cpp.bd92fb21.chunk.js +3 -0
  136. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cpp.bd92fb21.chunk.js.map +1 -0
  137. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crmsh.f9f13b4d.chunk.js +3 -0
  138. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crmsh.f9f13b4d.chunk.js.map +1 -0
  139. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crystal.92c08c0a.chunk.js +3 -0
  140. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crystal.92c08c0a.chunk.js.map +1 -0
  141. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csharp.8b48e8b8.chunk.js +3 -0
  142. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csharp.8b48e8b8.chunk.js.map +1 -0
  143. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csp.a08eda06.chunk.js +3 -0
  144. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csp.a08eda06.chunk.js.map +1 -0
  145. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_css.04989873.chunk.js +3 -0
  146. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_css.04989873.chunk.js.map +1 -0
  147. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_d.daf9e0eb.chunk.js +3 -0
  148. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_d.daf9e0eb.chunk.js.map +1 -0
  149. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dart.2047310e.chunk.js +3 -0
  150. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dart.2047310e.chunk.js.map +1 -0
  151. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_delphi.2e20b712.chunk.js +3 -0
  152. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_delphi.2e20b712.chunk.js.map +1 -0
  153. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_diff.b50d2d6c.chunk.js +3 -0
  154. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_diff.b50d2d6c.chunk.js.map +1 -0
  155. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_django.d53e0f58.chunk.js +3 -0
  156. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_django.d53e0f58.chunk.js.map +1 -0
  157. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dns.8313f2da.chunk.js +3 -0
  158. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dns.8313f2da.chunk.js.map +1 -0
  159. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dockerfile.4059e474.chunk.js +3 -0
  160. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dockerfile.4059e474.chunk.js.map +1 -0
  161. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dos.6e4bdd05.chunk.js +3 -0
  162. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dos.6e4bdd05.chunk.js.map +1 -0
  163. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dsconfig.cbf005ae.chunk.js +3 -0
  164. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dsconfig.cbf005ae.chunk.js.map +1 -0
  165. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dts.25d6bc4a.chunk.js +3 -0
  166. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dts.25d6bc4a.chunk.js.map +1 -0
  167. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dust.9a1225a3.chunk.js +3 -0
  168. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dust.9a1225a3.chunk.js.map +1 -0
  169. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ebnf.14f00049.chunk.js +3 -0
  170. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ebnf.14f00049.chunk.js.map +1 -0
  171. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elixir.f723f0f4.chunk.js +3 -0
  172. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elixir.f723f0f4.chunk.js.map +1 -0
  173. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elm.b6871fdc.chunk.js +3 -0
  174. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elm.b6871fdc.chunk.js.map +1 -0
  175. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erb.f0b33cfd.chunk.js +3 -0
  176. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erb.f0b33cfd.chunk.js.map +1 -0
  177. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlang.269e6936.chunk.js +3 -0
  178. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlang.269e6936.chunk.js.map +1 -0
  179. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlangRepl.5b8fbb4b.chunk.js +3 -0
  180. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlangRepl.5b8fbb4b.chunk.js.map +1 -0
  181. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_excel.76415c4c.chunk.js +3 -0
  182. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_excel.76415c4c.chunk.js.map +1 -0
  183. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fix.f3d3d961.chunk.js +3 -0
  184. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fix.f3d3d961.chunk.js.map +1 -0
  185. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_flix.4bab53eb.chunk.js +3 -0
  186. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_flix.4bab53eb.chunk.js.map +1 -0
  187. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fortran.4d94061b.chunk.js +3 -0
  188. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fortran.4d94061b.chunk.js.map +1 -0
  189. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fsharp.38ba8914.chunk.js +3 -0
  190. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fsharp.38ba8914.chunk.js.map +1 -0
  191. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gams.e8178c8d.chunk.js +3 -0
  192. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gams.e8178c8d.chunk.js.map +1 -0
  193. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gauss.d8121ec2.chunk.js +3 -0
  194. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gauss.d8121ec2.chunk.js.map +1 -0
  195. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gcode.683bb963.chunk.js +3 -0
  196. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gcode.683bb963.chunk.js.map +1 -0
  197. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gherkin.a89ed74e.chunk.js +3 -0
  198. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gherkin.a89ed74e.chunk.js.map +1 -0
  199. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_glsl.ad325f79.chunk.js +3 -0
  200. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_glsl.ad325f79.chunk.js.map +1 -0
  201. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gml.8b729794.chunk.js +3 -0
  202. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gml.8b729794.chunk.js.map +1 -0
  203. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_go.86cc8880.chunk.js +3 -0
  204. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_go.86cc8880.chunk.js.map +1 -0
  205. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_golo.df21ae57.chunk.js +3 -0
  206. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_golo.df21ae57.chunk.js.map +1 -0
  207. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gradle.ccdf8a11.chunk.js +3 -0
  208. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gradle.ccdf8a11.chunk.js.map +1 -0
  209. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_groovy.2f3d05a7.chunk.js +3 -0
  210. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_groovy.2f3d05a7.chunk.js.map +1 -0
  211. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haml.3282d98e.chunk.js +3 -0
  212. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haml.3282d98e.chunk.js.map +1 -0
  213. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_handlebars.d75a2b1d.chunk.js +3 -0
  214. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_handlebars.d75a2b1d.chunk.js.map +1 -0
  215. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haskell.fe9946b0.chunk.js +3 -0
  216. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haskell.fe9946b0.chunk.js.map +1 -0
  217. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haxe.de3c0102.chunk.js +3 -0
  218. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haxe.de3c0102.chunk.js.map +1 -0
  219. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hsp.79b4f6a1.chunk.js +3 -0
  220. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hsp.79b4f6a1.chunk.js.map +1 -0
  221. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_htmlbars.f3762ac8.chunk.js +3 -0
  222. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_htmlbars.f3762ac8.chunk.js.map +1 -0
  223. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_http.3471f585.chunk.js +3 -0
  224. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_http.3471f585.chunk.js.map +1 -0
  225. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hy.90970bfa.chunk.js +3 -0
  226. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hy.90970bfa.chunk.js.map +1 -0
  227. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_inform7.3a00f6f3.chunk.js +3 -0
  228. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_inform7.3a00f6f3.chunk.js.map +1 -0
  229. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ini.41e881fe.chunk.js +3 -0
  230. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ini.41e881fe.chunk.js.map +1 -0
  231. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_irpf90.f7dcd64c.chunk.js +3 -0
  232. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_irpf90.f7dcd64c.chunk.js.map +1 -0
  233. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_isbl.0ef17f5f.chunk.js +3 -0
  234. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_isbl.0ef17f5f.chunk.js.map +1 -0
  235. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_java.28b8c66f.chunk.js +3 -0
  236. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_java.28b8c66f.chunk.js.map +1 -0
  237. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_javascript.6b1cd365.chunk.js +3 -0
  238. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_javascript.6b1cd365.chunk.js.map +1 -0
  239. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_jbossCli.3e9aa8ff.chunk.js +3 -0
  240. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_jbossCli.3e9aa8ff.chunk.js.map +1 -0
  241. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_json.64a72c69.chunk.js +3 -0
  242. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_json.64a72c69.chunk.js.map +1 -0
  243. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_julia.7beb73b2.chunk.js +3 -0
  244. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_julia.7beb73b2.chunk.js.map +1 -0
  245. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_juliaRepl.3b16b540.chunk.js +3 -0
  246. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_juliaRepl.3b16b540.chunk.js.map +1 -0
  247. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_kotlin.72e6c744.chunk.js +4 -0
  248. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_kotlin.72e6c744.chunk.js.map +1 -0
  249. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lasso.206ae0f8.chunk.js +3 -0
  250. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lasso.206ae0f8.chunk.js.map +1 -0
  251. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_latex.c8014dd5.chunk.js +3 -0
  252. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_latex.c8014dd5.chunk.js.map +1 -0
  253. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ldif.a987362a.chunk.js +3 -0
  254. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ldif.a987362a.chunk.js.map +1 -0
  255. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_leaf.24aff4d8.chunk.js +3 -0
  256. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_leaf.24aff4d8.chunk.js.map +1 -0
  257. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_less.fde51777.chunk.js +3 -0
  258. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_less.fde51777.chunk.js.map +1 -0
  259. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lisp.3b0bfd87.chunk.js +3 -0
  260. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lisp.3b0bfd87.chunk.js.map +1 -0
  261. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livecodeserver.28bd16e8.chunk.js +3 -0
  262. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livecodeserver.28bd16e8.chunk.js.map +1 -0
  263. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livescript.dfedba67.chunk.js +3 -0
  264. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livescript.dfedba67.chunk.js.map +1 -0
  265. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_llvm.359b16e6.chunk.js +3 -0
  266. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_llvm.359b16e6.chunk.js.map +1 -0
  267. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lsl.f12ea89d.chunk.js +3 -0
  268. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lsl.f12ea89d.chunk.js.map +1 -0
  269. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lua.d5869324.chunk.js +3 -0
  270. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lua.d5869324.chunk.js.map +1 -0
  271. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_makefile.6b78bb75.chunk.js +3 -0
  272. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_makefile.6b78bb75.chunk.js.map +1 -0
  273. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_markdown.4f56f83c.chunk.js +3 -0
  274. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_markdown.4f56f83c.chunk.js.map +1 -0
  275. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mathematica.d2775785.chunk.js +3 -0
  276. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mathematica.d2775785.chunk.js.map +1 -0
  277. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_matlab.14a1484d.chunk.js +3 -0
  278. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_matlab.14a1484d.chunk.js.map +1 -0
  279. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_maxima.d0446e84.chunk.js +3 -0
  280. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_maxima.d0446e84.chunk.js.map +1 -0
  281. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mel.02270ff9.chunk.js +3 -0
  282. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mel.02270ff9.chunk.js.map +1 -0
  283. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mercury.6f3d5a69.chunk.js +3 -0
  284. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mercury.6f3d5a69.chunk.js.map +1 -0
  285. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mipsasm.aab1a206.chunk.js +3 -0
  286. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mipsasm.aab1a206.chunk.js.map +1 -0
  287. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mizar.568906a3.chunk.js +3 -0
  288. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mizar.568906a3.chunk.js.map +1 -0
  289. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mojolicious.c84fcc34.chunk.js +3 -0
  290. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mojolicious.c84fcc34.chunk.js.map +1 -0
  291. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_monkey.feab688a.chunk.js +3 -0
  292. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_monkey.feab688a.chunk.js.map +1 -0
  293. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_moonscript.19af75b8.chunk.js +3 -0
  294. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_moonscript.19af75b8.chunk.js.map +1 -0
  295. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_n1ql.b2ee87fb.chunk.js +3 -0
  296. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_n1ql.b2ee87fb.chunk.js.map +1 -0
  297. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nginx.4a16400b.chunk.js +3 -0
  298. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nginx.4a16400b.chunk.js.map +1 -0
  299. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nim.9fcf8db5.chunk.js +3 -0
  300. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nim.9fcf8db5.chunk.js.map +1 -0
  301. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nix.1f574423.chunk.js +3 -0
  302. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nix.1f574423.chunk.js.map +1 -0
  303. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nodeRepl.f2587359.chunk.js +3 -0
  304. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nodeRepl.f2587359.chunk.js.map +1 -0
  305. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nsis.3077a1bf.chunk.js +3 -0
  306. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nsis.3077a1bf.chunk.js.map +1 -0
  307. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_objectivec.9d926142.chunk.js +3 -0
  308. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_objectivec.9d926142.chunk.js.map +1 -0
  309. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ocaml.04b343a0.chunk.js +3 -0
  310. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ocaml.04b343a0.chunk.js.map +1 -0
  311. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oneC.37768899.chunk.js +3 -0
  312. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oneC.37768899.chunk.js.map +1 -0
  313. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_openscad.8491cf45.chunk.js +3 -0
  314. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_openscad.8491cf45.chunk.js.map +1 -0
  315. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oxygene.643eb07c.chunk.js +3 -0
  316. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oxygene.643eb07c.chunk.js.map +1 -0
  317. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_parser3.75ed358d.chunk.js +3 -0
  318. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_parser3.75ed358d.chunk.js.map +1 -0
  319. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_perl.2efba989.chunk.js +3 -0
  320. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_perl.2efba989.chunk.js.map +1 -0
  321. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pf.2186e4a7.chunk.js +3 -0
  322. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pf.2186e4a7.chunk.js.map +1 -0
  323. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pgsql.843ed847.chunk.js +3 -0
  324. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pgsql.843ed847.chunk.js.map +1 -0
  325. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_php.7ea88954.chunk.js +3 -0
  326. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_php.7ea88954.chunk.js.map +1 -0
  327. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_phpTemplate.fd6719b2.chunk.js +3 -0
  328. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_phpTemplate.fd6719b2.chunk.js.map +1 -0
  329. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_plaintext.f1d2959a.chunk.js +3 -0
  330. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_plaintext.f1d2959a.chunk.js.map +1 -0
  331. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pony.f0b88195.chunk.js +3 -0
  332. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pony.f0b88195.chunk.js.map +1 -0
  333. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_powershell.dce833ca.chunk.js +3 -0
  334. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_powershell.dce833ca.chunk.js.map +1 -0
  335. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_processing.36916075.chunk.js +3 -0
  336. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_processing.36916075.chunk.js.map +1 -0
  337. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_profile.db33af61.chunk.js +3 -0
  338. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_profile.db33af61.chunk.js.map +1 -0
  339. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_prolog.2a05e187.chunk.js +3 -0
  340. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_prolog.2a05e187.chunk.js.map +1 -0
  341. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_properties.0df57f0a.chunk.js +3 -0
  342. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_properties.0df57f0a.chunk.js.map +1 -0
  343. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_protobuf.3e3b4e57.chunk.js +3 -0
  344. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_protobuf.3e3b4e57.chunk.js.map +1 -0
  345. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_puppet.2fb0bb40.chunk.js +3 -0
  346. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_puppet.2fb0bb40.chunk.js.map +1 -0
  347. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_purebasic.a63201c1.chunk.js +3 -0
  348. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_purebasic.a63201c1.chunk.js.map +1 -0
  349. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_python.770df37e.chunk.js +3 -0
  350. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_python.770df37e.chunk.js.map +1 -0
  351. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pythonRepl.3ca17ff5.chunk.js +3 -0
  352. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pythonRepl.3ca17ff5.chunk.js.map +1 -0
  353. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_q.d9b193e3.chunk.js +3 -0
  354. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_q.d9b193e3.chunk.js.map +1 -0
  355. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_qml.616441e2.chunk.js +3 -0
  356. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_qml.616441e2.chunk.js.map +1 -0
  357. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_r.07dc3712.chunk.js +3 -0
  358. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_r.07dc3712.chunk.js.map +1 -0
  359. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_reasonml.85183415.chunk.js +3 -0
  360. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_reasonml.85183415.chunk.js.map +1 -0
  361. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rib.2ea1e5aa.chunk.js +3 -0
  362. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rib.2ea1e5aa.chunk.js.map +1 -0
  363. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_roboconf.5075ae03.chunk.js +3 -0
  364. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_roboconf.5075ae03.chunk.js.map +1 -0
  365. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_routeros.d33242ea.chunk.js +3 -0
  366. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_routeros.d33242ea.chunk.js.map +1 -0
  367. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rsl.9c1785fc.chunk.js +3 -0
  368. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rsl.9c1785fc.chunk.js.map +1 -0
  369. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruby.b7a2f7ab.chunk.js +3 -0
  370. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruby.b7a2f7ab.chunk.js.map +1 -0
  371. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruleslanguage.011d4ccd.chunk.js +3 -0
  372. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruleslanguage.011d4ccd.chunk.js.map +1 -0
  373. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rust.a6f6a618.chunk.js +3 -0
  374. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rust.a6f6a618.chunk.js.map +1 -0
  375. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sas.110925b5.chunk.js +3 -0
  376. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sas.110925b5.chunk.js.map +1 -0
  377. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scala.0dddfa51.chunk.js +3 -0
  378. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scala.0dddfa51.chunk.js.map +1 -0
  379. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scheme.38da3457.chunk.js +3 -0
  380. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scheme.38da3457.chunk.js.map +1 -0
  381. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scilab.4554b692.chunk.js +3 -0
  382. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scilab.4554b692.chunk.js.map +1 -0
  383. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scss.a291bfd5.chunk.js +3 -0
  384. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scss.a291bfd5.chunk.js.map +1 -0
  385. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_shell.c8637fd3.chunk.js +3 -0
  386. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_shell.c8637fd3.chunk.js.map +1 -0
  387. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smali.095fbc33.chunk.js +4 -0
  388. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smali.095fbc33.chunk.js.map +1 -0
  389. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smalltalk.82bb2ca1.chunk.js +3 -0
  390. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smalltalk.82bb2ca1.chunk.js.map +1 -0
  391. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sml.db637ab9.chunk.js +3 -0
  392. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sml.db637ab9.chunk.js.map +1 -0
  393. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sqf.c168c06c.chunk.js +3 -0
  394. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sqf.c168c06c.chunk.js.map +1 -0
  395. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sql.ace85109.chunk.js +3 -0
  396. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sql.ace85109.chunk.js.map +1 -0
  397. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stan.a5cae90b.chunk.js +3 -0
  398. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stan.a5cae90b.chunk.js.map +1 -0
  399. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stata.ded20240.chunk.js +5 -0
  400. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stata.ded20240.chunk.js.map +1 -0
  401. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_step21.42386ad1.chunk.js +3 -0
  402. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_step21.42386ad1.chunk.js.map +1 -0
  403. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stylus.28930f5e.chunk.js +3 -0
  404. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stylus.28930f5e.chunk.js.map +1 -0
  405. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_subunit.09d14bb0.chunk.js +5 -0
  406. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_subunit.09d14bb0.chunk.js.map +1 -0
  407. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_swift.0bfd8f65.chunk.js +3 -0
  408. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_swift.0bfd8f65.chunk.js.map +1 -0
  409. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_taggerscript.08018f04.chunk.js +3 -0
  410. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_taggerscript.08018f04.chunk.js.map +1 -0
  411. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tap.38941f9b.chunk.js +3 -0
  412. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tap.38941f9b.chunk.js.map +1 -0
  413. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tcl.5c4648da.chunk.js +3 -0
  414. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tcl.5c4648da.chunk.js.map +1 -0
  415. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_thrift.65eb278d.chunk.js +3 -0
  416. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_thrift.65eb278d.chunk.js.map +1 -0
  417. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tp.ebc107f2.chunk.js +3 -0
  418. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tp.ebc107f2.chunk.js.map +1 -0
  419. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_twig.f2a0927f.chunk.js +3 -0
  420. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_twig.f2a0927f.chunk.js.map +1 -0
  421. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_typescript.6c5bb667.chunk.js +3 -0
  422. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_typescript.6c5bb667.chunk.js.map +1 -0
  423. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vala.1d0d5f49.chunk.js +3 -0
  424. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vala.1d0d5f49.chunk.js.map +1 -0
  425. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbnet.26dbf652.chunk.js +3 -0
  426. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbnet.26dbf652.chunk.js.map +1 -0
  427. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscript.918c902a.chunk.js +3 -0
  428. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscript.918c902a.chunk.js.map +1 -0
  429. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.0448aba7.chunk.js +3 -0
  430. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.0448aba7.chunk.js.map +1 -0
  431. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_verilog.90bb7652.chunk.js +3 -0
  432. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_verilog.90bb7652.chunk.js.map +1 -0
  433. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vhdl.1cfbc65e.chunk.js +3 -0
  434. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vhdl.1cfbc65e.chunk.js.map +1 -0
  435. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vim.044bbd92.chunk.js +3 -0
  436. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vim.044bbd92.chunk.js.map +1 -0
  437. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_x86asm.e453b717.chunk.js +3 -0
  438. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_x86asm.e453b717.chunk.js.map +1 -0
  439. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xl.be21301d.chunk.js +3 -0
  440. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xl.be21301d.chunk.js.map +1 -0
  441. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xml.1ff2db9d.chunk.js +3 -0
  442. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xml.1ff2db9d.chunk.js.map +1 -0
  443. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xquery.6691a2a9.chunk.js +3 -0
  444. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xquery.6691a2a9.chunk.js.map +1 -0
  445. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_yaml.ecaddbf6.chunk.js +3 -0
  446. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_yaml.ecaddbf6.chunk.js.map +1 -0
  447. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_zephir.6f6db474.chunk.js +3 -0
  448. package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_zephir.6f6db474.chunk.js.map +1 -0
  449. package/dist/embedded-app/static/runtime.367d4ef1.js +4 -0
  450. package/dist/embedded-app/static/runtime.367d4ef1.js.map +1 -0
  451. package/dist/embedded-app/static/vendor.367d4ef1.js +142 -0
  452. package/dist/embedded-app/static/vendor.367d4ef1.js.map +1 -0
  453. package/dist/index.cjs.js +2 -2
  454. package/package.json +10 -8
  455. package/dist/cjs/serve-639872a5.cjs.js +0 -131
  456. package/dist/cjs/serve-639872a5.cjs.js.map +0 -1
  457. package/dist/techdocs-preview-bundle/index.html +0 -1
  458. package/dist/techdocs-preview-bundle/static/1110.b234ba69.chunk.js +0 -3
  459. package/dist/techdocs-preview-bundle/static/1110.b234ba69.chunk.js.map +0 -1
  460. package/dist/techdocs-preview-bundle/static/1553.0fa45296.chunk.js +0 -3
  461. package/dist/techdocs-preview-bundle/static/1553.0fa45296.chunk.js.map +0 -1
  462. package/dist/techdocs-preview-bundle/static/1959.b2315080.chunk.js +0 -8
  463. package/dist/techdocs-preview-bundle/static/1959.b2315080.chunk.js.map +0 -1
  464. package/dist/techdocs-preview-bundle/static/2426.e436d3cc.chunk.js +0 -3
  465. package/dist/techdocs-preview-bundle/static/2426.e436d3cc.chunk.js.map +0 -1
  466. package/dist/techdocs-preview-bundle/static/3825.0c6049c9.chunk.js +0 -3
  467. package/dist/techdocs-preview-bundle/static/3825.0c6049c9.chunk.js.map +0 -1
  468. package/dist/techdocs-preview-bundle/static/390.477387a1.chunk.js +0 -3
  469. package/dist/techdocs-preview-bundle/static/390.477387a1.chunk.js.map +0 -1
  470. package/dist/techdocs-preview-bundle/static/4022.5ff535ec.chunk.js +0 -3
  471. package/dist/techdocs-preview-bundle/static/4022.5ff535ec.chunk.js.map +0 -1
  472. package/dist/techdocs-preview-bundle/static/4960.eeac5978.chunk.js +0 -3
  473. package/dist/techdocs-preview-bundle/static/4960.eeac5978.chunk.js.map +0 -1
  474. package/dist/techdocs-preview-bundle/static/6105.469318a2.chunk.js +0 -3
  475. package/dist/techdocs-preview-bundle/static/6105.469318a2.chunk.js.map +0 -1
  476. package/dist/techdocs-preview-bundle/static/6235.4e2fe119.chunk.js +0 -3
  477. package/dist/techdocs-preview-bundle/static/6235.4e2fe119.chunk.js.map +0 -1
  478. package/dist/techdocs-preview-bundle/static/6650.db09fdb2.chunk.js +0 -3
  479. package/dist/techdocs-preview-bundle/static/6650.db09fdb2.chunk.js.map +0 -1
  480. package/dist/techdocs-preview-bundle/static/8061.7ae8759a.chunk.js +0 -3
  481. package/dist/techdocs-preview-bundle/static/8061.7ae8759a.chunk.js.map +0 -1
  482. package/dist/techdocs-preview-bundle/static/8718.c2b73d89.chunk.js +0 -4
  483. package/dist/techdocs-preview-bundle/static/8718.c2b73d89.chunk.js.map +0 -1
  484. package/dist/techdocs-preview-bundle/static/8792.e8f9d108.chunk.js +0 -3
  485. package/dist/techdocs-preview-bundle/static/8792.e8f9d108.chunk.js.map +0 -1
  486. package/dist/techdocs-preview-bundle/static/9028.f7aeead0.chunk.js +0 -3
  487. package/dist/techdocs-preview-bundle/static/9028.f7aeead0.chunk.js.map +0 -1
  488. package/dist/techdocs-preview-bundle/static/main.9488c24e.js +0 -152
  489. package/dist/techdocs-preview-bundle/static/main.9488c24e.js.map +0 -1
  490. package/dist/techdocs-preview-bundle/static/module-ajv.b4b6f74e.js +0 -10
  491. package/dist/techdocs-preview-bundle/static/module-ajv.b4b6f74e.js.map +0 -1
  492. package/dist/techdocs-preview-bundle/static/module-date-fns.5ead8da9.js +0 -3
  493. package/dist/techdocs-preview-bundle/static/module-date-fns.5ead8da9.js.map +0 -1
  494. package/dist/techdocs-preview-bundle/static/module-lodash.a7aa0a73.js +0 -29
  495. package/dist/techdocs-preview-bundle/static/module-lodash.a7aa0a73.js.map +0 -1
  496. package/dist/techdocs-preview-bundle/static/module-material-table.6251c462.js +0 -3
  497. package/dist/techdocs-preview-bundle/static/module-material-table.6251c462.js.map +0 -1
  498. package/dist/techdocs-preview-bundle/static/module-material-ui.1332c429.js +0 -51
  499. package/dist/techdocs-preview-bundle/static/module-material-ui.1332c429.js.map +0 -1
  500. package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.c96d1412.js +0 -67
  501. package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.c96d1412.js.map +0 -1
  502. package/dist/techdocs-preview-bundle/static/module-react-dom.9dda0392.js +0 -25
  503. package/dist/techdocs-preview-bundle/static/module-react-dom.9dda0392.js.map +0 -1
  504. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.f36a62b1.chunk.js +0 -6
  505. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.f36a62b1.chunk.js.map +0 -1
  506. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.44180bf6.chunk.js +0 -3
  507. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.44180bf6.chunk.js.map +0 -1
  508. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.16f76635.chunk.js +0 -3
  509. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.16f76635.chunk.js.map +0 -1
  510. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.d1324e25.chunk.js +0 -3
  511. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.d1324e25.chunk.js.map +0 -1
  512. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.f3716916.chunk.js +0 -3
  513. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.f3716916.chunk.js.map +0 -1
  514. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.dad71b89.chunk.js +0 -3
  515. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.dad71b89.chunk.js.map +0 -1
  516. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.f5ff04ee.chunk.js +0 -3
  517. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.f5ff04ee.chunk.js.map +0 -1
  518. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.4e91aea1.chunk.js +0 -3
  519. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.4e91aea1.chunk.js.map +0 -1
  520. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.7895c4e9.chunk.js +0 -3
  521. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.7895c4e9.chunk.js.map +0 -1
  522. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.a19a43af.chunk.js +0 -3
  523. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.a19a43af.chunk.js.map +0 -1
  524. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.8c7ecdf5.chunk.js +0 -3
  525. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.8c7ecdf5.chunk.js.map +0 -1
  526. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.65fb9806.chunk.js +0 -3
  527. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.65fb9806.chunk.js.map +0 -1
  528. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.904afe4e.chunk.js +0 -3
  529. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.904afe4e.chunk.js.map +0 -1
  530. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.6c58b49d.chunk.js +0 -3
  531. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.6c58b49d.chunk.js.map +0 -1
  532. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.38d1e81b.chunk.js +0 -3
  533. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.38d1e81b.chunk.js.map +0 -1
  534. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.c15fbc7f.chunk.js +0 -3
  535. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.c15fbc7f.chunk.js.map +0 -1
  536. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.f98852e2.chunk.js +0 -3
  537. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.f98852e2.chunk.js.map +0 -1
  538. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.a87c16c7.chunk.js +0 -3
  539. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.a87c16c7.chunk.js.map +0 -1
  540. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.97a6732d.chunk.js +0 -3
  541. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.97a6732d.chunk.js.map +0 -1
  542. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.5a8a2b0e.chunk.js +0 -3
  543. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.5a8a2b0e.chunk.js.map +0 -1
  544. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.fd1cf84c.chunk.js +0 -3
  545. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.fd1cf84c.chunk.js.map +0 -1
  546. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.6a972fec.chunk.js +0 -5
  547. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.6a972fec.chunk.js.map +0 -1
  548. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.90e5b758.chunk.js +0 -3
  549. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.90e5b758.chunk.js.map +0 -1
  550. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.e0b22dc1.chunk.js +0 -3
  551. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.e0b22dc1.chunk.js.map +0 -1
  552. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.5371a489.chunk.js +0 -3
  553. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.5371a489.chunk.js.map +0 -1
  554. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.22c82c14.chunk.js +0 -3
  555. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.22c82c14.chunk.js.map +0 -1
  556. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.0e24759a.chunk.js +0 -3
  557. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.0e24759a.chunk.js.map +0 -1
  558. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.9d7c4d80.chunk.js +0 -3
  559. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.9d7c4d80.chunk.js.map +0 -1
  560. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.7fe686e1.chunk.js +0 -3
  561. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.7fe686e1.chunk.js.map +0 -1
  562. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.780991a1.chunk.js +0 -3
  563. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.780991a1.chunk.js.map +0 -1
  564. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.47ab507c.chunk.js +0 -3
  565. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.47ab507c.chunk.js.map +0 -1
  566. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.f5f72654.chunk.js +0 -3
  567. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.f5f72654.chunk.js.map +0 -1
  568. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.13e3fdf1.chunk.js +0 -3
  569. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.13e3fdf1.chunk.js.map +0 -1
  570. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.fde0a56d.chunk.js +0 -3
  571. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.fde0a56d.chunk.js.map +0 -1
  572. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.c265ceb9.chunk.js +0 -3
  573. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.c265ceb9.chunk.js.map +0 -1
  574. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.6ea91d25.chunk.js +0 -3
  575. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.6ea91d25.chunk.js.map +0 -1
  576. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.958e7cd8.chunk.js +0 -3
  577. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.958e7cd8.chunk.js.map +0 -1
  578. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.024a5882.chunk.js +0 -3
  579. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.024a5882.chunk.js.map +0 -1
  580. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.a1f40901.chunk.js +0 -3
  581. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.a1f40901.chunk.js.map +0 -1
  582. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.a6be3ec1.chunk.js +0 -3
  583. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.a6be3ec1.chunk.js.map +0 -1
  584. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.b5fbcc3b.chunk.js +0 -3
  585. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.b5fbcc3b.chunk.js.map +0 -1
  586. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.237b4a4d.chunk.js +0 -3
  587. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.237b4a4d.chunk.js.map +0 -1
  588. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.c6543d99.chunk.js +0 -3
  589. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.c6543d99.chunk.js.map +0 -1
  590. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.b44d0d39.chunk.js +0 -3
  591. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.b44d0d39.chunk.js.map +0 -1
  592. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.17fe3508.chunk.js +0 -3
  593. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.17fe3508.chunk.js.map +0 -1
  594. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.121f99a8.chunk.js +0 -3
  595. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.121f99a8.chunk.js.map +0 -1
  596. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.4bc76caa.chunk.js +0 -3
  597. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.4bc76caa.chunk.js.map +0 -1
  598. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.8fe7ec9c.chunk.js +0 -3
  599. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.8fe7ec9c.chunk.js.map +0 -1
  600. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.2b3149cf.chunk.js +0 -3
  601. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.2b3149cf.chunk.js.map +0 -1
  602. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.f7624110.chunk.js +0 -3
  603. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.f7624110.chunk.js.map +0 -1
  604. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.82c7c10a.chunk.js +0 -3
  605. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.82c7c10a.chunk.js.map +0 -1
  606. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.a17ea6c9.chunk.js +0 -3
  607. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.a17ea6c9.chunk.js.map +0 -1
  608. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.b80bc1a9.chunk.js +0 -3
  609. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.b80bc1a9.chunk.js.map +0 -1
  610. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.72e1cc75.chunk.js +0 -3
  611. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.72e1cc75.chunk.js.map +0 -1
  612. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.14a2c715.chunk.js +0 -3
  613. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.14a2c715.chunk.js.map +0 -1
  614. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.c8065304.chunk.js +0 -3
  615. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.c8065304.chunk.js.map +0 -1
  616. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.fe68db2d.chunk.js +0 -3
  617. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.fe68db2d.chunk.js.map +0 -1
  618. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.958f6c8c.chunk.js +0 -3
  619. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.958f6c8c.chunk.js.map +0 -1
  620. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.6dd35d09.chunk.js +0 -3
  621. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.6dd35d09.chunk.js.map +0 -1
  622. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.36a9cb77.chunk.js +0 -3
  623. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.36a9cb77.chunk.js.map +0 -1
  624. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.8c0ab1fe.chunk.js +0 -3
  625. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.8c0ab1fe.chunk.js.map +0 -1
  626. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.ed1f65da.chunk.js +0 -3
  627. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.ed1f65da.chunk.js.map +0 -1
  628. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.68b972c5.chunk.js +0 -3
  629. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.68b972c5.chunk.js.map +0 -1
  630. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.ebf37b1b.chunk.js +0 -3
  631. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.ebf37b1b.chunk.js.map +0 -1
  632. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.2b01345a.chunk.js +0 -3
  633. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.2b01345a.chunk.js.map +0 -1
  634. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.7bf1539a.chunk.js +0 -3
  635. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.7bf1539a.chunk.js.map +0 -1
  636. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.4799d894.chunk.js +0 -3
  637. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.4799d894.chunk.js.map +0 -1
  638. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.4e60f232.chunk.js +0 -3
  639. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.4e60f232.chunk.js.map +0 -1
  640. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.37fadd1d.chunk.js +0 -3
  641. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.37fadd1d.chunk.js.map +0 -1
  642. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.7bb3cf46.chunk.js +0 -3
  643. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.7bb3cf46.chunk.js.map +0 -1
  644. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.3cbdd1bd.chunk.js +0 -3
  645. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.3cbdd1bd.chunk.js.map +0 -1
  646. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.2e62c130.chunk.js +0 -3
  647. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.2e62c130.chunk.js.map +0 -1
  648. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.edb37c53.chunk.js +0 -3
  649. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.edb37c53.chunk.js.map +0 -1
  650. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.b664c46b.chunk.js +0 -3
  651. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.b664c46b.chunk.js.map +0 -1
  652. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.1cef1b61.chunk.js +0 -3
  653. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.1cef1b61.chunk.js.map +0 -1
  654. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.26cdb0ea.chunk.js +0 -3
  655. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.26cdb0ea.chunk.js.map +0 -1
  656. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.ba20053a.chunk.js +0 -3
  657. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.ba20053a.chunk.js.map +0 -1
  658. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.95d73e0d.chunk.js +0 -3
  659. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.95d73e0d.chunk.js.map +0 -1
  660. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.a0d144bd.chunk.js +0 -3
  661. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.a0d144bd.chunk.js.map +0 -1
  662. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.3ac5599e.chunk.js +0 -3
  663. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.3ac5599e.chunk.js.map +0 -1
  664. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.ead5c5d1.chunk.js +0 -3
  665. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.ead5c5d1.chunk.js.map +0 -1
  666. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.fdff89f2.chunk.js +0 -3
  667. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.fdff89f2.chunk.js.map +0 -1
  668. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.c0eca5dd.chunk.js +0 -3
  669. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.c0eca5dd.chunk.js.map +0 -1
  670. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.563560b4.chunk.js +0 -3
  671. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.563560b4.chunk.js.map +0 -1
  672. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.2d847185.chunk.js +0 -3
  673. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.2d847185.chunk.js.map +0 -1
  674. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.32f28256.chunk.js +0 -3
  675. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.32f28256.chunk.js.map +0 -1
  676. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.b5dee132.chunk.js +0 -3
  677. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.b5dee132.chunk.js.map +0 -1
  678. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.56f67ac3.chunk.js +0 -3
  679. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.56f67ac3.chunk.js.map +0 -1
  680. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.8da0d423.chunk.js +0 -3
  681. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.8da0d423.chunk.js.map +0 -1
  682. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.a9e4de93.chunk.js +0 -3
  683. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.a9e4de93.chunk.js.map +0 -1
  684. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.73f7b652.chunk.js +0 -4
  685. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.73f7b652.chunk.js.map +0 -1
  686. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.a1ac2129.chunk.js +0 -3
  687. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.a1ac2129.chunk.js.map +0 -1
  688. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.c2641e0b.chunk.js +0 -3
  689. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.c2641e0b.chunk.js.map +0 -1
  690. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.64aa82a0.chunk.js +0 -3
  691. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.64aa82a0.chunk.js.map +0 -1
  692. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.546938bd.chunk.js +0 -3
  693. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.546938bd.chunk.js.map +0 -1
  694. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.7e6677bd.chunk.js +0 -3
  695. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.7e6677bd.chunk.js.map +0 -1
  696. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.9074eb13.chunk.js +0 -3
  697. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.9074eb13.chunk.js.map +0 -1
  698. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.7fdedcc3.chunk.js +0 -3
  699. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.7fdedcc3.chunk.js.map +0 -1
  700. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.da3828b0.chunk.js +0 -3
  701. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.da3828b0.chunk.js.map +0 -1
  702. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.4c383ff9.chunk.js +0 -3
  703. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.4c383ff9.chunk.js.map +0 -1
  704. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b1aa17e6.chunk.js +0 -3
  705. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b1aa17e6.chunk.js.map +0 -1
  706. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.c4e557bf.chunk.js +0 -3
  707. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.c4e557bf.chunk.js.map +0 -1
  708. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.c494622b.chunk.js +0 -3
  709. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.c494622b.chunk.js.map +0 -1
  710. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.0a3d0f33.chunk.js +0 -3
  711. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.0a3d0f33.chunk.js.map +0 -1
  712. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.df8b4680.chunk.js +0 -3
  713. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.df8b4680.chunk.js.map +0 -1
  714. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.bd34736e.chunk.js +0 -3
  715. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.bd34736e.chunk.js.map +0 -1
  716. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.f315d0f9.chunk.js +0 -3
  717. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.f315d0f9.chunk.js.map +0 -1
  718. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.2bf58530.chunk.js +0 -3
  719. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.2bf58530.chunk.js.map +0 -1
  720. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.737e7fad.chunk.js +0 -3
  721. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.737e7fad.chunk.js.map +0 -1
  722. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.aff7b417.chunk.js +0 -3
  723. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.aff7b417.chunk.js.map +0 -1
  724. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.55abb80f.chunk.js +0 -3
  725. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.55abb80f.chunk.js.map +0 -1
  726. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.2fef7889.chunk.js +0 -3
  727. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.2fef7889.chunk.js.map +0 -1
  728. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.7cf01528.chunk.js +0 -3
  729. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.7cf01528.chunk.js.map +0 -1
  730. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.fec6d855.chunk.js +0 -3
  731. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.fec6d855.chunk.js.map +0 -1
  732. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.ba9f23b6.chunk.js +0 -3
  733. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.ba9f23b6.chunk.js.map +0 -1
  734. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.f28e68e0.chunk.js +0 -3
  735. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.f28e68e0.chunk.js.map +0 -1
  736. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.1da03ea0.chunk.js +0 -3
  737. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.1da03ea0.chunk.js.map +0 -1
  738. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.0e558e4f.chunk.js +0 -3
  739. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.0e558e4f.chunk.js.map +0 -1
  740. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.57d8e51c.chunk.js +0 -3
  741. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.57d8e51c.chunk.js.map +0 -1
  742. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.9a904d67.chunk.js +0 -3
  743. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.9a904d67.chunk.js.map +0 -1
  744. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.db4c69d6.chunk.js +0 -3
  745. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.db4c69d6.chunk.js.map +0 -1
  746. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.9c661b3f.chunk.js +0 -3
  747. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.9c661b3f.chunk.js.map +0 -1
  748. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.acdc66c6.chunk.js +0 -3
  749. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.acdc66c6.chunk.js.map +0 -1
  750. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.d20d1d04.chunk.js +0 -3
  751. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.d20d1d04.chunk.js.map +0 -1
  752. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.e8434002.chunk.js +0 -3
  753. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.e8434002.chunk.js.map +0 -1
  754. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.2c98c3aa.chunk.js +0 -3
  755. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.2c98c3aa.chunk.js.map +0 -1
  756. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.10b0e035.chunk.js +0 -3
  757. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.10b0e035.chunk.js.map +0 -1
  758. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.ac3abab7.chunk.js +0 -3
  759. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.ac3abab7.chunk.js.map +0 -1
  760. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.ceac2a60.chunk.js +0 -3
  761. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.ceac2a60.chunk.js.map +0 -1
  762. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.50b1ab1d.chunk.js +0 -3
  763. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.50b1ab1d.chunk.js.map +0 -1
  764. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.9ec9887a.chunk.js +0 -3
  765. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.9ec9887a.chunk.js.map +0 -1
  766. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.77e11cdb.chunk.js +0 -3
  767. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.77e11cdb.chunk.js.map +0 -1
  768. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.d0338388.chunk.js +0 -3
  769. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.d0338388.chunk.js.map +0 -1
  770. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.418902dc.chunk.js +0 -3
  771. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.418902dc.chunk.js.map +0 -1
  772. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.6c2d3369.chunk.js +0 -3
  773. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.6c2d3369.chunk.js.map +0 -1
  774. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.69449bf7.chunk.js +0 -3
  775. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.69449bf7.chunk.js.map +0 -1
  776. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.e34648ea.chunk.js +0 -3
  777. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.e34648ea.chunk.js.map +0 -1
  778. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.47f3f865.chunk.js +0 -3
  779. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.47f3f865.chunk.js.map +0 -1
  780. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.763cdb4e.chunk.js +0 -3
  781. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.763cdb4e.chunk.js.map +0 -1
  782. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.88196135.chunk.js +0 -3
  783. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.88196135.chunk.js.map +0 -1
  784. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.419824e0.chunk.js +0 -3
  785. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.419824e0.chunk.js.map +0 -1
  786. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.9744b6f8.chunk.js +0 -3
  787. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.9744b6f8.chunk.js.map +0 -1
  788. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.1b9472f3.chunk.js +0 -3
  789. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.1b9472f3.chunk.js.map +0 -1
  790. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.bfc365de.chunk.js +0 -3
  791. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.bfc365de.chunk.js.map +0 -1
  792. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.c7e950a0.chunk.js +0 -3
  793. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.c7e950a0.chunk.js.map +0 -1
  794. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.7651d544.chunk.js +0 -3
  795. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.7651d544.chunk.js.map +0 -1
  796. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.3584fcd1.chunk.js +0 -3
  797. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.3584fcd1.chunk.js.map +0 -1
  798. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.233d9368.chunk.js +0 -3
  799. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.233d9368.chunk.js.map +0 -1
  800. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.438626a9.chunk.js +0 -3
  801. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.438626a9.chunk.js.map +0 -1
  802. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.d3f48421.chunk.js +0 -3
  803. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.d3f48421.chunk.js.map +0 -1
  804. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.f17424f7.chunk.js +0 -3
  805. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.f17424f7.chunk.js.map +0 -1
  806. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.27af1817.chunk.js +0 -3
  807. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.27af1817.chunk.js.map +0 -1
  808. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.bcf19c08.chunk.js +0 -3
  809. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.bcf19c08.chunk.js.map +0 -1
  810. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.94f69df4.chunk.js +0 -3
  811. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.94f69df4.chunk.js.map +0 -1
  812. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.20007f93.chunk.js +0 -3
  813. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.20007f93.chunk.js.map +0 -1
  814. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.761ea769.chunk.js +0 -3
  815. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.761ea769.chunk.js.map +0 -1
  816. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.ef3654e0.chunk.js +0 -3
  817. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.ef3654e0.chunk.js.map +0 -1
  818. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.0248cff3.chunk.js +0 -3
  819. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.0248cff3.chunk.js.map +0 -1
  820. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.0c85d2e9.chunk.js +0 -3
  821. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.0c85d2e9.chunk.js.map +0 -1
  822. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.4d8d4789.chunk.js +0 -3
  823. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.4d8d4789.chunk.js.map +0 -1
  824. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.87d2b24f.chunk.js +0 -4
  825. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.87d2b24f.chunk.js.map +0 -1
  826. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.33a24317.chunk.js +0 -3
  827. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.33a24317.chunk.js.map +0 -1
  828. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.8c092018.chunk.js +0 -3
  829. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.8c092018.chunk.js.map +0 -1
  830. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.9f31463b.chunk.js +0 -3
  831. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.9f31463b.chunk.js.map +0 -1
  832. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.70ed7c81.chunk.js +0 -3
  833. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.70ed7c81.chunk.js.map +0 -1
  834. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.bfa01ef6.chunk.js +0 -3
  835. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.bfa01ef6.chunk.js.map +0 -1
  836. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.f4643ff4.chunk.js +0 -5
  837. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.f4643ff4.chunk.js.map +0 -1
  838. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.645e7061.chunk.js +0 -3
  839. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.645e7061.chunk.js.map +0 -1
  840. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.9a7b42db.chunk.js +0 -3
  841. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.9a7b42db.chunk.js.map +0 -1
  842. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.a0d8dd23.chunk.js +0 -5
  843. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.a0d8dd23.chunk.js.map +0 -1
  844. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.48cf46ec.chunk.js +0 -3
  845. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.48cf46ec.chunk.js.map +0 -1
  846. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.58eb604f.chunk.js +0 -3
  847. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.58eb604f.chunk.js.map +0 -1
  848. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.22b00786.chunk.js +0 -3
  849. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.22b00786.chunk.js.map +0 -1
  850. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.7b87582b.chunk.js +0 -3
  851. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.7b87582b.chunk.js.map +0 -1
  852. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.0e91a8da.chunk.js +0 -3
  853. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.0e91a8da.chunk.js.map +0 -1
  854. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.5209a7db.chunk.js +0 -3
  855. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.5209a7db.chunk.js.map +0 -1
  856. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.3960e9fb.chunk.js +0 -3
  857. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.3960e9fb.chunk.js.map +0 -1
  858. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.754aaa00.chunk.js +0 -3
  859. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.754aaa00.chunk.js.map +0 -1
  860. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.6810e476.chunk.js +0 -3
  861. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.6810e476.chunk.js.map +0 -1
  862. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.f3f57718.chunk.js +0 -3
  863. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.f3f57718.chunk.js.map +0 -1
  864. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.6f5a7e18.chunk.js +0 -3
  865. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.6f5a7e18.chunk.js.map +0 -1
  866. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.ae890787.chunk.js +0 -3
  867. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.ae890787.chunk.js.map +0 -1
  868. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.40403139.chunk.js +0 -3
  869. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.40403139.chunk.js.map +0 -1
  870. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.c856f6f8.chunk.js +0 -3
  871. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.c856f6f8.chunk.js.map +0 -1
  872. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.dea95e13.chunk.js +0 -3
  873. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.dea95e13.chunk.js.map +0 -1
  874. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.6d17e6b7.chunk.js +0 -3
  875. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.6d17e6b7.chunk.js.map +0 -1
  876. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.7e0544e6.chunk.js +0 -3
  877. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.7e0544e6.chunk.js.map +0 -1
  878. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.defcd651.chunk.js +0 -3
  879. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.defcd651.chunk.js.map +0 -1
  880. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.40659368.chunk.js +0 -3
  881. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.40659368.chunk.js.map +0 -1
  882. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.9a196f21.chunk.js +0 -3
  883. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.9a196f21.chunk.js.map +0 -1
  884. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.409e0095.chunk.js +0 -3
  885. package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.409e0095.chunk.js.map +0 -1
  886. package/dist/techdocs-preview-bundle/static/runtime.9488c24e.js +0 -4
  887. package/dist/techdocs-preview-bundle/static/runtime.9488c24e.js.map +0 -1
  888. package/dist/techdocs-preview-bundle/static/vendor.9488c24e.js +0 -142
  889. package/dist/techdocs-preview-bundle/static/vendor.9488c24e.js.map +0 -1
@@ -1,152 +0,0 @@
1
- var ji=Object.defineProperty;var Gi=(J,o,e)=>o in J?ji(J,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):J[o]=e;var _=(J,o,e)=>(Gi(J,typeof o!="symbol"?o+"":o,e),e),ho=(J,o,e)=>{if(!o.has(J))throw TypeError("Cannot "+e)};var Xe=(J,o,e)=>(ho(J,o,"read from private field"),e?e.call(J):o.get(J)),pn=(J,o,e)=>{if(o.has(J))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(J):o.set(J,e)},Sn=(J,o,e,r)=>(ho(J,o,"write to private field"),r?r.call(J,e):o.set(J,e),e);(self.webpackChunkembedded_techdocs_app=self.webpackChunkembedded_techdocs_app||[]).push([[179],{30001:function(J,o,e){"use strict";e.d(o,{n3:function(){return E},MS:function(){return s}});var r=e(52890),t=e(10179),c=e(96279),f=e.n(c);const E=Symbol("CATALOG_FILTER_EXISTS");class s{constructor(h){_(this,"discoveryApi");_(this,"fetchApi");this.discoveryApi=h.discoveryApi,this.fetchApi=h.fetchApi||{fetch:f()}}async getEntityAncestors(h,m){const{kind:l,namespace:y,name:i}=(0,r.of)(h.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(l)}/${encodeURIComponent(y)}/${encodeURIComponent(i)}/ancestry`,m)}async getLocationById(h,m){return await this.requestOptional("GET",`/locations/${encodeURIComponent(h)}`,m)}async getEntities(h,m){const{filter:l=[],fields:y=[],offset:i,limit:S,after:b}=h!=null?h:{},I=[l].flat(),V=[];for(const x of I){const H=[];for(const[q,oe]of Object.entries(x))for(const pe of[oe].flat())pe===E?H.push(encodeURIComponent(q)):typeof pe=="string"&&H.push(`${encodeURIComponent(q)}=${encodeURIComponent(pe)}`);H.length&&V.push(`filter=${H.join(",")}`)}y.length&&V.push(`fields=${y.map(encodeURIComponent).join(",")}`),i!==void 0&&V.push(`offset=${i}`),S!==void 0&&V.push(`limit=${S}`),b!==void 0&&V.push(`after=${encodeURIComponent(b)}`);const B=V.length?`?${V.join("&")}`:"",P=await this.requestRequired("GET",`/entities${B}`,m),O=(x,H)=>{var pe,Ie;if(((pe=x.metadata)==null?void 0:pe.name)===void 0||x.kind===void 0||((Ie=H.metadata)==null?void 0:Ie.name)===void 0||H.kind===void 0)return 0;const q=(0,r.eE)(x),oe=(0,r.eE)(H);return q<oe?-1:q>oe?1:0};return{items:P.sort(O)}}async getEntityByName(h,m){const{kind:l,namespace:y="default",name:i}=h;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(l)}/${encodeURIComponent(y)}/${encodeURIComponent(i)}`,m)}async refreshEntity(h,m){const l=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...(m==null?void 0:m.token)&&{Authorization:`Bearer ${m==null?void 0:m.token}`}},method:"POST",body:JSON.stringify({entityRef:h})});if(l.status!==200)throw new Error(await l.text())}async addLocation({type:h="url",target:m,dryRun:l,presence:y},i){const S=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${l?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...(i==null?void 0:i.token)&&{Authorization:`Bearer ${i==null?void 0:i.token}`}},method:"POST",body:JSON.stringify({type:h,target:m,presence:y})});if(S.status!==201)throw new Error(await S.text());const{location:b,entities:I,exists:V}=await S.json();if(!b)throw new Error(`Location wasn't added: ${m}`);return{location:b,entities:I,exists:V}}async getOriginLocationByEntity(h,m){var i;const l=(i=h.metadata.annotations)==null?void 0:i[r.lb];return l?(await this.requestRequired("GET","/locations",m)).map(S=>S.data).find(S=>l===(0,r.Bt)(S)):void 0}async getLocationByEntity(h,m){var i;const l=(i=h.metadata.annotations)==null?void 0:i[r.Jl];return l?(await this.requestRequired("GET","/locations",m)).map(S=>S.data).find(S=>l===(0,r.Bt)(S)):void 0}async removeLocationById(h,m){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(h)}`,m)}async removeEntityByUid(h,m){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(h)}`,m)}async requestIgnored(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok)throw await t.VL.fromResponse(S)}async requestRequired(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok)throw await t.VL.fromResponse(S);return await S.json()}async requestOptional(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok){if(S.status===404)return;throw await t.VL.fromResponse(S)}return await S.json()}}},52890:function(J,o,e){"use strict";e.d(o,{J1:function(){return f},sk:function(){return r},Jl:function(){return A},lb:function(){return D},w$:function(){return Be},nP:function(){return ye},aS:function(){return ut},hr:function(){return Ee},S4:function(){return C},cz:function(){return St},M_:function(){return le},wX:function(){return z},wh:function(){return c},C_:function(){return Qe},of:function(){return _e},Me:function(){return ee},TH:function(){return gt},eE:function(){return nt},Bt:function(){return Oe}});const r="default",t=null,c="backstage.io/view-url",f="backstage.io/edit-url";var E=e(76635),s=e.n(E);class p{constructor(Z=ENTITY_DEFAULT_NAMESPACE){_(this,"namespace");this.namespace=Z}async enforce(Z){return Z.metadata.namespace?Z:lodash.merge({metadata:{namespace:this.namespace}},Z)}}class h{static isValidPrefixAndOrSuffix(Z,Q,he,we){if(typeof Z!="string")return!1;const je=Z.split(Q);return je.length===1?we(je[0]):je.length===2?he(je[0])&&we(je[1]):!1}static isJsonSafe(Z){try{return s().isEqual(Z,JSON.parse(JSON.stringify(Z)))}catch{return!1}}static isValidDnsSubdomain(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=253&&Z.split(".").every(h.isValidDnsLabel)}static isValidDnsLabel(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-z0-9]+(\-[a-z0-9]+)*$/.test(Z)}static isValidTag(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-z0-9+#]+(\-[a-z0-9+#]+)*$/.test(Z)}static isValidUrl(Z){if(typeof Z!="string")return!1;try{return new URL(Z),!0}catch{return!1}}static isValidString(Z){var Q;return typeof Z=="string"&&((Q=Z==null?void 0:Z.trim())==null?void 0:Q.length)>=1}}var m=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityEnvelope","description":"The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":true,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"type":"object","required":["name"],"additionalProperties":true,"properties":{"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1}}}}}'),l=e(48231),y=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"Entity","description":"The parts of the format that's common to all versions/kinds of entity.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":false,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"$ref":"EntityMeta"},"spec":{"type":"object","description":"The specification data describing the entity itself."},"relations":{"type":"array","description":"The relations that this entity has with other entities.","items":{"$ref":"common#relation"}},"status":{"$ref":"common#status"}}}`),i=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityMeta","description":"Metadata fields common to all versions/kinds of entity.","examples":[{"uid":"e01199ab-08cc-44c2-8e19-5c29ded82521","etag":"lsndfkjsndfkjnsdfkjnsd==","generation":13,"name":"my-component-yay","namespace":"the-namespace","labels":{"backstage.io/custom":"ValueStuff"},"annotations":{"example.com/bindings":"are-secret"},"tags":["java","data"]}],"type":"object","required":["name"],"additionalProperties":true,"properties":{"uid":{"type":"string","description":"A globally unique ID for the entity. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, but the server is free to reject requests that do so in such a way that it breaks semantics.","examples":["e01199ab-08cc-44c2-8e19-5c29ded82521"],"minLength":1},"etag":{"type":"string","description":"An opaque string that changes for each update operation to any part of the entity, including metadata. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, and the server will then reject the operation if it does not match the current stored value.","examples":["lsndfkjsndfkjnsdfkjnsd=="],"minLength":1},"generation":{"type":"integer","description":"A positive nonzero number that indicates the current generation of data for this entity; the value is incremented each time the spec changes. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations.","examples":[1],"minimum":1},"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1},"title":{"type":"string","description":"A display name of the entity, to be presented in user interfaces instead of the name property, when available.","examples":["React SSR Template"],"minLength":1},"description":{"type":"string","description":"A short (typically relatively few words, on one line) description of the entity."},"labels":{"type":"object","description":"Key/value pairs of identifying information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"annotations":{"type":"object","description":"Key/value pairs of non-identifying auxiliary information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"tags":{"type":"array","description":"A list of single-valued strings, to for example classify catalog entities in various ways.","items":{"type":"string","minLength":1}},"links":{"type":"array","description":"A list of external hyperlinks related to the entity. Links can provide additional contextual information that may be located outside of Backstage itself. For example, an admin dashboard or external CMS page.","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://admin.example-org.com"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["Admin Dashboard"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}}}}'),S=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"common","type":"object","description":"Common definitions to import from other schemas","definitions":{"reference":{"$id":"#reference","type":"object","description":"A reference by name to another entity.","required":["kind","namespace","name"],"additionalProperties":false,"properties":{"kind":{"type":"string","description":"The kind field of the entity.","minLength":1},"namespace":{"type":"string","description":"The metadata.namespace field of the entity.","minLength":1},"name":{"type":"string","description":"The metadata.name field of the entity.","minLength":1}}},"relation":{"$id":"#relation","type":"object","description":"A directed relation from one entity to another.","required":["type","target"],"additionalProperties":false,"properties":{"type":{"type":"string","minLength":1,"pattern":"^\\\\w+$","description":"The type of relation."},"target":{"$ref":"#reference"}}},"status":{"$id":"#status","type":"object","description":"The current status of the entity, as claimed by various sources.","required":[],"additionalProperties":true,"properties":{"items":{"type":"array","items":{"$ref":"#statusItem"}}}},"statusItem":{"$id":"#statusItem","type":"object","description":"A specific status item on a well known format.","required":["type","level","message"],"additionalProperties":true,"properties":{"type":{"type":"string","minLength":1},"level":{"$ref":"#statusLevel","description":"The status level / severity of the status item."},"message":{"type":"string","description":"A brief message describing the status, intended for human consumption."},"error":{"$ref":"#error","description":"An optional serialized error object related to the status."}}},"statusLevel":{"$id":"#statusLevel","type":"string","description":"A status level / severity.","enum":["info","warning","error"]},"error":{"$id":"#error","type":"object","description":"A serialized error object.","required":["name","message"],"additionalProperties":true,"properties":{"name":{"type":"string","examples":["Error","InputError"],"description":"The type name of the error","minLength":1},"message":{"type":"string","description":"The message of the error"},"code":{"type":"string","description":"An error code associated with the error"},"stack":{"type":"string","description":"An error stack trace"}}}}}');const b=new Map,I=[m,y,i,S];function V(re){if(!(re==null?void 0:re.length))throw new TypeError("Unknown error");const Z=re[0];throw new TypeError(`${Z.dataPath||"<root>"} ${Z.message}${Z.params?` - ${Object.entries(Z.params).map(([Q,he])=>`${Q}: ${he}`).join(", ")}`:""}`)}function B(re,Z={}){var Dt;const Q=(Dt=Z==null?void 0:Z.disableCache)!=null?Dt:!1,he=Q?"":JSON.stringify(re);if(!Q){const tn=b.get(he);if(tn)return tn}const we=P(re),je=new l.ZP({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});we.length&&je.addSchema(we,void 0,void 0,!0);const tt=je.compile(re);return Q||b.set(he,tt),tt}function P(re){if(typeof re!="object")return[];const Z=new Set;re.$id&&Z.add(re.$id);const Q=new Array,he=[re];for(;he.length;){const we=he.pop();for(const je of O(we))if(!Z.has(je)){Z.add(je);const tt=I.find(Dt=>Dt.$id===je);tt&&(Q.push(tt),he.push(tt))}}return Q}function*O(re){const Z=[re];for(;Z.length;){const Q=Z.pop();if(typeof Q=="object"&&Q)for(const[he,we]of Object.entries(Q))he==="$ref"&&typeof we=="string"?yield we.split("#")[0]:Z.push(we)}}function x(re){const Z=compileAjvSchema(re||entityEnvelopeSchema);return Q=>{if(Z(Q)===!0)return Q;throw throwAjvError(Z.errors)}}function H(re){const Z=B(re);return Q=>{var je;if(Z(Q)===!0)return Q;const we=(je=Z.errors)==null?void 0:je.filter(tt=>["/kind","/apiVersion"].includes(tt.dataPath));if((we==null?void 0:we.length)&&we.every(tt=>tt.keyword==="enum"))return!1;throw V(Z.errors)}}function q(re){const Z=compileAjvSchema(re||entitySchema);return Q=>{if(Z(Q)===!0)return Q;throw throwAjvError(Z.errors)}}class oe{static isValidApiVersion(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,Q=>Q.length>=1&&Q.length<=63&&/^[a-z0-9A-Z]+$/.test(Q))}static isValidKind(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-zA-Z][a-z0-9A-Z]*$/.test(Z)}static isValidObjectName(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$/.test(Z)}static isValidNamespace(Z){return h.isValidDnsLabel(Z)}static isValidLabelKey(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,oe.isValidObjectName)}static isValidLabelValue(Z){return Z===""||oe.isValidObjectName(Z)}static isValidAnnotationKey(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,oe.isValidObjectName)}static isValidAnnotationValue(Z){return typeof Z=="string"}}const pe={isValidApiVersion:oe.isValidApiVersion,isValidKind:oe.isValidKind,isValidEntityName:oe.isValidObjectName,isValidNamespace:oe.isValidNamespace,isValidLabelKey:oe.isValidLabelKey,isValidLabelValue:oe.isValidLabelValue,isValidAnnotationKey:oe.isValidAnnotationKey,isValidAnnotationValue:oe.isValidAnnotationValue,isValidTag:h.isValidTag};function Ie(re={}){return{...pe,...re}}class me{constructor(Z=makeValidator()){_(this,"validators");this.validators=Z}async enforce(Z){var tt,Dt,tn,cn,$n,Cn,yn;function Q(yt,Gt,fn){if(Gt==null)throw new Error(`${yt} must have a value`);let On;try{On=fn(Gt)}catch(Ht){throw new Error(`${yt} could not be validated, ${Ht}`)}if(!On){let Ht;switch(fn.name){case"isValidLabelValue":case"isValidObjectName":Ht="a string that is sequences of [a-zA-Z0-9] separated by any of [-_.], at most 63 characters in total";break;case"isValidLabelKey":case"isValidApiVersion":case"isValidAnnotationKey":Ht="a valid prefix and/or suffix";break;case"isValidNamespace":case"isValidDnsLabel":Ht="a string that is sequences of [a-z0-9] separated by [-], at most 63 characters in total";break;case"isValidTag":Ht="a string that is sequences of [a-z0-9+#] separated by [-], at most 63 characters in total";break;case"isValidAnnotationValue":Ht="a string";break;case"isValidKind":Ht="a string that is a sequence of [a-zA-Z][a-z0-9A-Z], at most 63 characters in total";break;case"isValidUrl":Ht="a string that is a valid url";break;case"isValidString":Ht="a non empty string";break;default:Ht=void 0;break}const wn=Ht?` expected ${Ht} but found "${Gt}".`:"";throw new Error(`"${yt}" is not valid;${wn} To learn more about catalog file format, visit: https://github.com/backstage/backstage/blob/master/docs/architecture-decisions/adr002-default-catalog-file-format.md`)}}function he(yt,Gt,fn){return Gt===void 0||Q(yt,Gt,fn)}Q("apiVersion",Z.apiVersion,this.validators.isValidApiVersion),Q("kind",Z.kind,this.validators.isValidKind),Q("metadata.name",Z.metadata.name,this.validators.isValidEntityName),he("metadata.namespace",Z.metadata.namespace,this.validators.isValidNamespace);for(const[yt,Gt]of Object.entries((tt=Z.metadata.labels)!=null?tt:[]))Q(`labels.${yt}`,yt,this.validators.isValidLabelKey),Q(`labels.${yt}`,Gt,this.validators.isValidLabelValue);for(const[yt,Gt]of Object.entries((Dt=Z.metadata.annotations)!=null?Dt:[]))Q(`annotations.${yt}`,yt,this.validators.isValidAnnotationKey),Q(`annotations.${yt}`,Gt,this.validators.isValidAnnotationValue);const we=(tn=Z.metadata.tags)!=null?tn:[];for(let yt=0;yt<we.length;++yt)Q(`tags.${yt}`,we[yt],this.validators.isValidTag);const je=(cn=Z.metadata.links)!=null?cn:[];for(let yt=0;yt<je.length;++yt)Q(`links.${yt}.url`,($n=je[yt])==null?void 0:$n.url,CommonValidatorFunctions.isValidUrl),he(`links.${yt}.title`,(Cn=je[yt])==null?void 0:Cn.title,CommonValidatorFunctions.isValidString),he(`links.${yt}.icon`,(yn=je[yt])==null?void 0:yn.icon,KubernetesValidatorFunctions.isValidObjectName);return Z}}class ze{constructor(){_(this,"validate")}async enforce(Z){if(!this.validate){const we=new Ajv({allowUnionTypes:!0});this.validate=we.addSchema([commonSchema,entityMetaSchema],void 0,void 0,!0).compile(entitySchema)}if(this.validate(Z)===!0)return Z;const[he]=this.validate.errors||[];throw he?new Error(`Malformed envelope, ${he.dataPath||"<root>"} ${he.message}`):new Error("Malformed envelope, Unknown error")}}function Pe(re){var Q,he;const Z=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(re.trim());if(!Z)throw new TypeError(`Entity reference "${re}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:(Q=Z[1])==null?void 0:Q.slice(0,-1),namespace:(he=Z[2])==null?void 0:he.slice(0,-1),name:Z[3]}}function Qe(re){return{kind:re.kind,namespace:re.metadata.namespace||r,name:re.metadata.name}}function st(re,Z={}){const{kind:Q,namespace:he,name:we}=_e(re,{defaultNamespace:ENTITY_DEFAULT_NAMESPACE,...Z});if(!Q)throw new Error(`Entity reference ${he}/${we} did not contain a kind`);return{kind:Q,namespace:he,name:we}}function _e(re,Z={}){var je,tt;if(!re)throw new Error("Entity reference must not be empty");if(typeof re=="string"){const Dt=Pe(re);return{kind:(je=Dt.kind)!=null?je:Z.defaultKind,namespace:(tt=Dt.namespace)!=null?tt:Z.defaultNamespace,name:Dt.name}}const{kind:Q,namespace:he,name:we}=re;if(Q==="")throw new Error("Entity reference kinds must not be empty");if(he==="")throw new Error("Entity reference namespaces must not be empty");if(!we)throw new Error("Entity references must contain a name");return{kind:Q!=null?Q:Z.defaultKind,namespace:he!=null?he:Z.defaultNamespace,name:we}}function gt(re){let Z,Q,he;return"metadata"in re?(Z=re.kind,Q=re.metadata.namespace,he=re.metadata.name):(Z=re.kind,Q=re.namespace,he=re.name),(Z==null?void 0:Z.includes(":"))||(Z==null?void 0:Z.includes("/"))||(Q==null?void 0:Q.includes(":"))||(Q==null?void 0:Q.includes("/"))||he.includes(":")||he.includes("/")?{kind:Z,namespace:Q,name:he}:`${Z?`${Z}:`:""}${Q?`${Q}/`:""}${he}`}function nt(re){var we,je;let Z,Q,he;return"metadata"in re?(Z=re.kind,Q=(we=re.metadata.namespace)!=null?we:r,he=re.metadata.name):(Z=re.kind,Q=(je=re.namespace)!=null?je:r,he=re.name),`${Z.toLocaleLowerCase("en-US")}:${Q.toLocaleLowerCase("en-US")}/${he.toLocaleLowerCase("en-US")}`}function at(re,Z,Q){const he=re.kind,we=re.metadata.namespace||ENTITY_DEFAULT_NAMESPACE,je=re.metadata.name;let tt,Dt,tn;if(typeof Z=="string"){const cn=Pe(Z);tt=cn.kind||(Q==null?void 0:Q.defaultKind),Dt=cn.namespace||(Q==null?void 0:Q.defaultNamespace)||ENTITY_DEFAULT_NAMESPACE,tn=cn.name}else tt=Z.kind||(Q==null?void 0:Q.defaultKind),Dt=Z.namespace||(Q==null?void 0:Q.defaultNamespace)||ENTITY_DEFAULT_NAMESPACE,tn=Z.name;if(!tt||!Dt)throw new Error("Entity reference or context did not contain kind and namespace");return he.toLocaleLowerCase("en-US")===tt.toLocaleLowerCase("en-US")&&we.toLocaleLowerCase("en-US")===Dt.toLocaleLowerCase("en-US")&&je.toLocaleLowerCase("en-US")===tn.toLocaleLowerCase("en-US")}var Rt=e(48834).Buffer;function zt(){return uuidv4()}function Ot(){return Rt.from(uuidv4(),"utf8").toString("base64").replace(/[^\w]/g,"")}function pt(re,Z){const Q=lodash.cloneDeep(re),he=lodash.cloneDeep(Z);return Q.metadata.labels||(Q.metadata.labels={}),he.metadata.labels||(he.metadata.labels={}),Q.metadata.annotations||(Q.metadata.annotations={}),he.metadata.annotations||(he.metadata.annotations={}),Q.metadata.tags||(Q.metadata.tags=[]),he.metadata.tags||(he.metadata.tags=[]),delete Q.metadata.uid,delete Q.metadata.etag,delete Q.metadata.generation,delete he.metadata.uid,delete he.metadata.etag,delete he.metadata.generation,delete Q.relations,delete Q.status,delete he.relations,delete he.status,!lodash.isEqual(Q,he)}function rt(re,Z){const{uid:Q,etag:he,generation:we}=re.metadata;if(!Q||!he||!we)throw new Error("Previous entity must have uid, etag and generation");const je=lodash.cloneDeep(Z),tt=pt(re,je),Dt=!lodash.isEqual(re.spec,je.spec);return je.metadata.uid=Q,je.metadata.etag=tt?Ot():he,je.metadata.generation=Dt?we+1:we,je}class Tt{constructor(Z){this.policies=Z}async enforce(Z){let Q=Z;for(const he of this.policies){const we=await he.enforce(Q);if(!we)throw new Error(`Policy ${he.constructor.name} did not return a result`);Q=we}return Q}}class Pt{constructor(Z){this.policies=Z}async enforce(Z){for(const Q of this.policies){const he=await Q.enforce(Z);if(he)return he}throw new Error("The entity did not match any known policy")}}const xt={allOf(re){return new Tt(re)},oneOf(re){return new Pt(re)}};var Nt=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ApiV1alpha1","description":"An API describes an interface that can be exposed by a component. The API can be defined in different formats, like OpenAPI, AsyncAPI, GraphQL, gRPC, or other formats.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"API","metadata":{"name":"artist-api","description":"Retrieve artist details","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"openapi","lifecycle":"production","owner":"artist-relations-team","system":"artist-engagement-portal","definition":"openapi: \\"3.0.0\\"\\ninfo:..."}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["API"]},"spec":{"type":"object","required":["type","lifecycle","owner","definition"],"properties":{"type":{"type":"string","description":"The type of the API definition.","examples":["openapi","asyncapi","graphql","grpc"],"minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the API.","examples":["experimental","production","deprecated"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the API.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"system":{"type":"string","description":"An entity reference to the system that the API belongs to.","minLength":1},"definition":{"type":"string","description":"The definition of the API, based on the format defined by the type.","minLength":1}}}}}]}');function ht(re){const Z=H(re);return{async check(Q){return Z(Q)===Q}}}const It=ht(Nt);var Ut=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ComponentV1alpha1","description":"A Component describes a software component. It is typically intimately linked to the source code that constitutes the component, and should be what a developer may regard a \\"unit of software\\", usually with a distinct deployable or linkable artifact.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Component"]},"spec":{"type":"object","required":["type","lifecycle","owner"],"properties":{"type":{"type":"string","description":"The type of component.","examples":["service","website","library"],"minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the component.","examples":["experimental","production","deprecated"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"system":{"type":"string","description":"An entity reference to the system that the component belongs to.","minLength":1},"subcomponentOf":{"type":"string","description":"An entity reference to another component of which the component is a part.","minLength":1},"providesApis":{"type":"array","description":"An array of entity references to the APIs that are provided by the component.","items":{"type":"string","minLength":1}},"consumesApis":{"type":"array","description":"An array of entity references to the APIs that are consumed by the component.","items":{"type":"string","minLength":1}},"dependsOn":{"type":"array","description":"An array of references to other entities that the component depends on to function.","items":{"type":"string","minLength":1}}}}}}]}');const be=ht(Ut);var ot=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"DomainV1alpha1","description":"A Domain groups a collection of systems that share terminology, domain models, business purpose, or documentation, i.e. form a bounded context.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Domain","metadata":{"name":"artists","description":"Everything about artists"},"spec":{"owner":"artist-relations-team"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Domain"]},"spec":{"type":"object","required":["owner"],"properties":{"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1}}}}}]}');const it=ht(ot);var Ct=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"GroupV1alpha1","description":"A group describes an organizational entity, such as for example a team, a business unit, or a loose collection of people in an interest group. Members of these groups are modeled in the catalog as kind User.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Group","metadata":{"name":"infrastructure","description":"The infra business unit"},"spec":{"type":"business-unit","profile":{"displayName":"Infrastructure","email":"infrastructure@example.com","picture":"https://example.com/groups/bu-infrastructure.jpeg"},"parent":"ops","children":["backstage","other"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Group"]},"spec":{"type":"object","required":["type","children"],"properties":{"type":{"type":"string","description":"The type of group. There is currently no enforced set of values for this field, so it is left up to the adopting organization to choose a nomenclature that matches their org hierarchy.","examples":["team","business-unit","product-area","root"],"minLength":1},"profile":{"type":"object","description":"Optional profile information about the group, mainly for display purposes. All fields of this structure are also optional. The email would be a group email of some form, that the group may wish to be used for contacting them. The picture is expected to be a URL pointing to an image that's representative of the group, and that a browser could fetch and render on a group page or similar.","properties":{"displayName":{"type":"string","description":"A simple display name to present to users.","examples":["Infrastructure"],"minLength":1},"email":{"type":"string","description":"An email where this entity can be reached.","examples":["infrastructure@example.com"],"minLength":1},"picture":{"type":"string","description":"The URL of an image that represents this entity.","examples":["https://example.com/groups/bu-infrastructure.jpeg"],"minLength":1}}},"parent":{"type":"string","description":"The immediate parent group in the hierarchy, if any. Not all groups must have a parent; the catalog supports multi-root hierarchies. Groups may however not have more than one parent. This field is an entity reference.","examples":["ops"],"minLength":1},"children":{"type":"array","description":"The immediate child groups of this group in the hierarchy (whose parent field points to this group). The list must be present, but may be empty if there are no child groups. The items are not guaranteed to be ordered in any particular way. The entries of this array are entity references.","items":{"type":"string","examples":["backstage","other"],"minLength":1}},"members":{"type":"array","description":"The users that are members of this group. The entries of this array are entity references.","items":{"type":"string","examples":["jdoe"],"minLength":1}}}}}}]}`);const ae=ht(Ct);var te=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"LocationV1alpha1","description":"A location is a marker that references other places to look for catalog data.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Location","metadata":{"name":"org-data"},"spec":{"type":"url","targets":["http://github.com/myorg/myproject/org-data-dump/catalog-info-staff.yaml","http://github.com/myorg/myproject/org-data-dump/catalog-info-consultants.yaml"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Location"]},"spec":{"type":"object","required":[],"properties":{"type":{"type":"string","description":"The single location type, that's common to the targets specified in the spec. If it is left out, it is inherited from the location type that originally read the entity data.","examples":["url"],"minLength":1},"target":{"type":"string","description":"A single target as a string. Can be either an absolute path/URL (depending on the type), or a relative path such as ./details/catalog-info.yaml which is resolved relative to the location of this Location entity itself.","examples":["./details/catalog-info.yaml"],"minLength":1},"targets":{"type":"array","description":"A list of targets as strings. They can all be either absolute paths/URLs (depending on the type), or relative paths such as ./details/catalog-info.yaml which are resolved relative to the location of this Location entity itself.","items":{"type":"string","examples":["./details/catalog-info.yaml","http://github.com/myorg/myproject/org-data-dump/catalog-info-staff.yaml"],"minLength":1}},"presence":{"type":"string","description":"Whether the presence of the location target is required and it should be considered an error if it can not be found","default":"required","examples":["required"],"enum":["required","optional"]}}}}}]}`);const T=ht(te),C="ownedBy",F="ownerOf",j="consumesApi",Y="apiConsumedBy",le="providesApi",ve="apiProvidedBy",ye="dependsOn",Be="dependencyOf",Le="parentOf",Re="childOf",Ee="memberOf",Fe="hasMember",St="partOf",ut="hasPart";var Ve=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ResourceV1alpha1","description":"A resource describes the infrastructure a system needs to operate, like BigTable databases, Pub/Sub topics, S3 buckets or CDNs. Modelling them together with components and systems allows to visualize resource footprint, and create tooling around them.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Resource","metadata":{"name":"artists-db","description":"Stores artist details"},"spec":{"type":"database","owner":"artist-relations-team","system":"artist-engagement-portal"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Resource"]},"spec":{"type":"object","required":["type","owner"],"properties":{"type":{"type":"string","description":"The type of resource.","examples":["database","s3-bucket","cluster"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the resource.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"dependsOn":{"type":"array","description":"An array of references to other entities that the resource depends on to function.","items":{"type":"string","minLength":1}},"system":{"type":"string","description":"An entity reference to the system that the resource belongs to.","minLength":1}}}}}]}');const se=ht(Ve);var Ne=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"SystemV1alpha1","description":"A system is a collection of resources and components. The system may expose or consume one or several APIs. It is viewed as abstraction level that provides potential consumers insights into exposed features without needing a too detailed view into the details of all components. This also gives the owning team the possibility to decide about published artifacts and APIs.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"System","metadata":{"name":"artist-engagement-portal","description":"Handy tools to keep artists in the loop"},"spec":{"owner":"artist-relations-team","domain":"artists"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["System"]},"spec":{"type":"object","required":["owner"],"properties":{"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"domain":{"type":"string","description":"An entity reference to the domain that the system belongs to.","examples":["artists"],"minLength":1}}}}}]}');const et=ht(Ne);var Ue=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"TemplateV1beta2","description":"A Template describes a scaffolding task for use with the Scaffolder. It describes the required parameters as well as a series of steps that will be taken to execute the scaffolding task.","examples":[{"apiVersion":"backstage.io/v1beta2","kind":"Template","metadata":{"name":"react-ssr-template","title":"React SSR Template","description":"Next.js application skeleton for creating isomorphic web applications.","tags":["recommended","react"]},"spec":{"owner":"artist-relations-team","type":"website","parameters":{"required":["name","description"],"properties":{"name":{"title":"Name","type":"string","description":"Unique name of the component"},"description":{"title":"Description","type":"string","description":"Description of the component"}}},"steps":[{"id":"fetch","name":"Fetch","action":"fetch:plain","parameters":{"url":"./template"}},{"id":"publish","name":"Publish to GitHub","action":"publish:github","parameters":{"repoUrl":"{{ parameters.repoUrl }}"},"if":"{{ parameters.repoUrl }}"}],"output":{"catalogInfoUrl":"{{ steps.publish.output.catalogInfoUrl }}"}}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1beta2"]},"kind":{"enum":["Template"]},"spec":{"type":"object","required":["type","steps"],"properties":{"type":{"type":"string","description":"The type of component created by the template. The software catalog accepts any type value, but an organization should take great care to establish a proper taxonomy for these. Tools including Backstage itself may read this field and behave differently depending on its value. For example, a website type component may present tooling in the Backstage interface that is specific to just websites.","examples":["service","website","library"],"minLength":1},"parameters":{"oneOf":[{"type":"object","description":"The JSONSchema describing the inputs for the template."},{"type":"array","description":"A list of separate forms to collect parameters.","items":{"type":"object","description":"The JSONSchema describing the inputs for the template."}}]},"steps":{"type":"array","description":"A list of steps to execute.","items":{"type":"object","description":"A description of the step to execute.","required":["action"],"properties":{"id":{"type":"string","description":"The ID of the step, which can be used to refer to its outputs."},"name":{"type":"string","description":"The name of the step, which will be displayed in the UI during the scaffolding process."},"action":{"type":"string","description":"The name of the action to execute."},"input":{"type":"object","description":"A templated object describing the inputs to the action."},"if":{"type":["string","boolean"],"description":"A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."}}}},"output":{"type":"object","description":"A templated object describing the outputs of the scaffolding task.","properties":{"links":{"type":"array","description":"A list of external hyperlinks, typically pointing to resources created or updated by the template","items":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://github.com/my-org/my-new-repo"],"minLength":1},"entityRef":{"type":"string","description":"An entity reference to an entity in the catalog.","examples":["Component:default/my-app"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["View new repo"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}}},"additionalProperties":{"type":"string"}},"owner":{"type":"string","description":"The user (or group) owner of the template","minLength":1}}}}}]}');const Ze=ht(Ue);var Je=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"UserV1alpha1","description":"A user describes a person, such as an employee, a contractor, or similar. Users belong to Group entities in the catalog. These catalog user entries are connected to the way that authentication within the Backstage ecosystem works. See the auth section of the docs for a discussion of these concepts.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"User","metadata":{"name":"jdoe"},"spec":{"profile":{"displayName":"Jenny Doe","email":"jenny-doe@example.com","picture":"https://example.com/staff/jenny-with-party-hat.jpeg"},"memberOf":["team-b","employees"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["User"]},"spec":{"type":"object","required":["memberOf"],"properties":{"profile":{"type":"object","description":"Optional profile information about the user, mainly for display purposes. All fields of this structure are also optional. The email would be a primary email of some form, that the user may wish to be used for contacting them. The picture is expected to be a URL pointing to an image that's representative of the user, and that a browser could fetch and render on a profile page or similar.","properties":{"displayName":{"type":"string","description":"A simple display name to present to users.","examples":["Jenny Doe"],"minLength":1},"email":{"type":"string","description":"An email where this user can be reached.","examples":["jenny-doe@example.com"],"minLength":1},"picture":{"type":"string","description":"The URL of an image that represents this user.","examples":["https://example.com/staff/jenny-with-party-hat.jpeg"],"minLength":1}}},"memberOf":{"type":"array","description":"The list of groups that the user is a direct member of (i.e., no transitive memberships are listed here). The list must be present, but may be empty if the user is not member of any groups. The items are not guaranteed to be ordered in any particular way. The entries of this array are entity references.","items":{"type":"string","examples":["team-b","employees"],"minLength":1}}}}}}]}`);const G=ht(Je),A="backstage.io/managed-by-location",D="backstage.io/managed-by-origin-location",z="backstage.io/source-location";function ee(re){if(typeof re!="string")throw new TypeError(`Unable to parse location reference '${re}', unexpected argument ${typeof re}`);const Z=re.indexOf(":");if(Z<0)throw new TypeError(`Unable to parse location reference '${re}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const Q=re.substr(0,Z).trim(),he=re.substr(Z+1).trim();if(!Q||!he)throw new TypeError(`Unable to parse location reference '${re}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(Q==="http"||Q==="https")throw new TypeError(`Invalid location reference '${re}', please prefix it with 'url:', e.g. 'url:${re}'`);return{type:Q,target:he}}function Oe(re){const{type:Z,target:Q}=re;if(Z){if(!Q)throw new TypeError("Unable to stringify location reference, empty target")}else throw new TypeError("Unable to stringify location reference, empty type");return`${Z}:${Q}`}function ge(re){var Q,he,we,je,tt;const Z=(tt=(he=(Q=re.metadata)==null?void 0:Q.annotations)==null?void 0:he[SOURCE_LOCATION_ANNOTATION])!=null?tt:(je=(we=re.metadata)==null?void 0:we.annotations)==null?void 0:je[LOCATION_ANNOTATION];if(!Z)throw new Error(`Entity '${stringifyEntityRef(re)}' is missing location`);return ee(Z)}var Ce=e(9699);const De=Ce.Ry({type:Ce.Z_().required(),target:Ce.Z_().required(),presence:Ce.nK().oneOf(["required","optional"])}).noUnknown().required(),$e=Ce.Ry({id:Ce.Z_().required(),type:Ce.Z_().required(),target:Ce.Z_().required(),presence:Ce.nK().oneOf(["required","optional"])}).noUnknown().required(),Et=Ce.Ry({location:De}).noUnknown().required()},23235:function(J,o,e){"use strict";e.d(o,{C:function(){return t}});var r=e(98005);class t{constructor(){_(this,"subject",new r.J)}post(f){this.subject.next(f)}alert$(){return this.subject}}},47150:function(J,o,e){"use strict";e.d(o,{g:function(){return r}});class r{captureEvent(c){}}},58652:function(J,o,e){"use strict";e.d(o,{C:function(){return c}});var r=e(98005);const t="theme";class c{constructor(E){_(this,"activeThemeId");_(this,"subject",new r.X(void 0));this.themes=E}static createWithStorage(E){var h;const s=new c(E);if(!window.localStorage)return s;const p=(h=window.localStorage.getItem(t))!=null?h:void 0;return s.setActiveThemeId(p),s.activeThemeId$().subscribe(m=>{m?window.localStorage.setItem(t,m):window.localStorage.removeItem(t)}),window.addEventListener("storage",m=>{var l;if(m.key===t){const y=(l=localStorage.getItem(t))!=null?l:void 0;s.setActiveThemeId(y)}}),s}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(E){this.activeThemeId=E,this.subject.next(E)}}},14721:function(J,o,e){"use strict";e.d(o,{m:function(){return m}});var r=e(9850),t=e.n(r),c=e(12782),f=e.n(c);const E=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function s(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}function p(l){if(l===null)return"null";if(Array.isArray(l))return"array";const y=typeof l;return y==="number"&&isNaN(l)?"nan":y==="string"&&l===""?"empty-string":y}const h={type(l,y,i,S){return`Invalid type in config for key '${l}' in '${y}', got ${i}, wanted ${S}`},missing(l){return`Missing required config value at '${l}'`},convert(l,y,i){return`Unable to convert config value for key '${l}' in '${y}' to a ${i}`}};class m{constructor(y,i="mock-config",S,b=""){_(this,"filteredKeys");_(this,"notifiedFilteredKeys",new Set);this.data=y,this.context=i,this.fallback=S,this.prefix=b}static fromConfigs(y){return y.length===0?new m(void 0):y.reduce((i,{data:S,context:b,filteredKeys:I,deprecatedKeys:V})=>{const B=new m(S,b,i);if(B.filteredKeys=I,V)for(const{key:P,description:O}of V)console.warn(`The configuration key '${P}' of ${b} is deprecated and may be removed soon. ${O||""}`);return B},void 0)}has(y){var S,b;return this.readValue(y)!==void 0?!0:(b=(S=this.fallback)==null?void 0:S.has(y))!=null?b:!1}keys(){var S,b;const y=this.data?Object.keys(this.data):[],i=(b=(S=this.fallback)==null?void 0:S.keys())!=null?b:[];return[...new Set([...y,...i])]}get(y){const i=this.getOptional(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y!=null?y:"")));return i}getOptional(y){var b;const i=t()(this.readValue(y)),S=(b=this.fallback)==null?void 0:b.getOptional(y);return i===void 0?S:S===void 0?i:f()({},{value:S},{value:i},(I,V)=>!s(V)||!s(I)?V:void 0).value}getConfig(y){const i=this.getOptionalConfig(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalConfig(y){var b;const i=this.readValue(y),S=(b=this.fallback)==null?void 0:b.getOptionalConfig(y);if(s(i))return this.copy(i,y,S);if(i!==void 0)throw new TypeError(h.type(this.fullKey(y),this.context,p(i),"object"));return S}getConfigArray(y){const i=this.getOptionalConfigArray(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalConfigArray(y){const i=this.readConfigValue(y,S=>{if(!Array.isArray(S))return{expected:"object-array"};for(const[b,I]of S.entries())if(!s(I))return{expected:"object-array",value:I,key:`${y}[${b}]`};return!0});if(!!i)return i.map((S,b)=>this.copy(S,`${y}[${b}]`))}getNumber(y){const i=this.getOptionalNumber(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalNumber(y){const i=this.readConfigValue(y,b=>typeof b=="number"||typeof b=="string"||{expected:"number"});if(typeof i=="number"||i===void 0)return i;const S=Number(i);if(!Number.isFinite(S))throw new Error(h.convert(this.fullKey(y),this.context,"number"));return S}getBoolean(y){const i=this.getOptionalBoolean(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalBoolean(y){return this.readConfigValue(y,i=>typeof i=="boolean"||{expected:"boolean"})}getString(y){const i=this.getOptionalString(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalString(y){return this.readConfigValue(y,i=>typeof i=="string"&&i!==""||{expected:"string"})}getStringArray(y){const i=this.getOptionalStringArray(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalStringArray(y){return this.readConfigValue(y,i=>{if(!Array.isArray(i))return{expected:"string-array"};for(const[S,b]of i.entries())if(typeof b!="string"||b==="")return{expected:"string-array",value:b,key:`${y}[${S}]`};return!0})}fullKey(y){return`${this.prefix}${this.prefix?".":""}${y}`}copy(y,i,S){const b=new m(y,this.context,S,this.fullKey(i));return b.filteredKeys=this.filteredKeys,b}readConfigValue(y,i){var I;const S=this.readValue(y);if(S===void 0)return(I=this.fallback)==null?void 0:I.readConfigValue(y,i);const b=i(S);if(b!==!0){const{key:V=y,value:B=S,expected:P}=b;throw new TypeError(h.type(this.fullKey(V),this.context,p(B),P))}return S}readValue(y){const i=y?y.split("."):[];for(const b of i)if(!E.test(b))throw new TypeError(`Invalid config key '${y}'`);if(this.data===void 0)return;let S=this.data;for(const[b,I]of i.entries())if(s(S))S=S[I];else if(S!==void 0){const V=this.fullKey(i.slice(0,b).join("."));throw new TypeError(h.type(V,this.context,p(S),"object"))}return S}}},4333:function(J,o,e){"use strict";e.d(o,{p:function(){return t}});const r="Invalid discovery URL pattern,";class t{static compile(f){const E=f.split(/\{\{\s*pluginId\s*\}\}/),s=E.join("pluginId");let p;try{p=new URL(s)}catch{throw new Error(`${r} URL '${s}' is invalid`)}if(p.hash)throw new Error(`${r} URL must not have a hash`);if(p.search)throw new Error(`${r} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${r} URL must not end with a slash`);return new t(E)}constructor(f){this.parts=f}async getBaseUrl(f){return this.parts.join(f)}}},89536:function(J,o,e){"use strict";e.d(o,{KN:function(){return r},gr:function(){return c},Jv:function(){return f}});class r{constructor(s,p){this.alertApi=s,this.errorApi=p}post(s,p){return(p==null?void 0:p.hidden)||this.alertApi.post({message:s.message,severity:"error"}),this.errorApi.post(s,p)}error$(){return this.errorApi.error$()}}var t=e(98005);class c{constructor(){_(this,"subject",new t.J)}post(s,p){this.subject.next({error:s,context:p})}error$(){return this.subject}}class f{static forward(s,p){window.addEventListener("unhandledrejection",h=>{s.post(h.reason,p)})}}},14884:function(J,o,e){"use strict";e.d(o,{b:function(){return c}});var r=e(36964);function t(f){if(f.length<3)throw new Error(`The '${f}' feature flag must have a minimum length of three characters.`);if(f.length>150)throw new Error(`The '${f}' feature flag must not exceed 150 characters.`);if(!f.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${f}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class c{constructor(){_(this,"registeredFeatureFlags",[]);_(this,"flags")}registerFlag(E){t(E.name),this.registeredFeatureFlags.push(E)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(E){return this.flags||(this.flags=this.load()),this.flags.get(E)===r.FeatureFlagState.Active}save(E){this.flags||(this.flags=this.load()),E.merge||this.flags.clear();for(const[p,h]of Object.entries(E.states))this.flags.set(p,h);const s=Array.from(this.flags.entries()).filter(([,p])=>p===r.FeatureFlagState.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(s)))}load(){try{const E=window.localStorage.getItem("featureFlags");if(!E)return new Map;const s=JSON.parse(E);if(typeof s!="object"||s===null||Array.isArray(s))return new Map;const p=Object.entries(s).filter(([h,m])=>(t(h),m===r.FeatureFlagState.Active));return new Map(p)}catch{return new Map}}}},50160:function(J,o,e){"use strict";e.d(o,{I:function(){return p},j:function(){return r}});function r(h){var y;let m=h.baseImplementation||e.g.fetch;const l=[(y=h.middleware)!=null?y:[]].flat().reverse();for(const i of l)m=i.apply(m);return{fetch:m}}class t{static create(m){var S,b;const l=c(m),y=((S=m.header)==null?void 0:S.name)||"authorization",i=((b=m.header)==null?void 0:b.value)||(I=>`Bearer ${I}`);return new t(m.identityApi,l,y,i)}constructor(m,l,y,i){this.identityApi=m,this.allowUrl=l,this.headerName=y,this.headerValue=i}apply(m){return async(l,y)=>{const i=new Request(l,y),{token:S}=await this.identityApi.getCredentials();return i.headers.get(this.headerName)||typeof S!="string"||!S||!this.allowUrl(i.url)?m(l,y):(i.headers.set(this.headerName,this.headerValue(S)),m(i))}}}function c(h){return h.allowUrl?h.allowUrl:h.urlPrefixAllowlist?f(h.urlPrefixAllowlist):h.config?f([h.config.getString("backend.baseUrl")]):()=>!1}function f(h){const m=h.map(l=>l.replace(/\/$/,""));return l=>m.some(y=>l===y||l.startsWith(`${y}/`))}function E(h,m){return!m||m==="/"?h:`${h.replace(/\/$/,"")}/${m.replace(/^\//,"")}`}class s{constructor(m){this.discoveryApi=m}apply(m){return async(l,y)=>{const i=new Request(l,y),S="plugin://";if(!i.url.startsWith(S))return m(l,y);const{hostname:b,pathname:I,search:V,hash:B,username:P,password:O}=new URL(`http://${i.url.substring(S.length)}`);let x=await this.discoveryApi.getBaseUrl(b);if(P||O){const q=new URL(x),oe=`${P}${O?`:${O}`:""}@`;x=`${q.protocol}//${oe}${q.host}${q.pathname}`}const H=`${E(x,I)}${V}${B}`;return m(H,i)}}}class p{static resolvePluginProtocol(m){return new s(m.discoveryApi)}static injectIdentityAuth(m){return t.create(m)}constructor(){}}},11358:function(J,o,e){"use strict";e.d(o,{Y:function(){return E}});var r=e(98005);function t(s,p){for(const h of p)if(!s.has(h))return!1;return!0}function c(s,...p){const h=new Set(s);for(const m of p)for(const l of m)h.add(l);return h}class f{constructor(){_(this,"requests",[]);_(this,"subject",new r.X(this.getCurrentPending()))}request(p){return new Promise((h,m)=>{this.requests.push({scopes:p,resolve:h,reject:m}),this.subject.next(this.getCurrentPending())})}resolve(p,h){this.requests=this.requests.filter(m=>t(p,m.scopes)?(m.resolve(h),!1):!0),this.subject.next(this.getCurrentPending())}reject(p){this.requests.forEach(h=>h.reject(p)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const p=this.requests.length===0?void 0:this.requests.slice(1).reduce((h,m)=>c(h,m.scopes),this.requests[0].scopes);return{scopes:p,resolve:h=>{p&&this.resolve(p,h)},reject:h=>{p&&this.reject(h)}}}}class E{constructor(){_(this,"subject",new r.X([]));_(this,"currentRequests",[]);_(this,"handlerCount",0)}createAuthRequester(p){p.provider.id||console.warn("DEPRECATION WARNING: Not passing a provider id to createAuthRequester is deprecated, it will be required in the future");const h=new f,m=this.handlerCount;return this.handlerCount++,h.pending().subscribe({next:l=>{const y=this.currentRequests.slice(),i=this.makeAuthRequest(l,p);i?y[m]=i:delete y[m],this.currentRequests=y,this.subject.next(y.filter(Boolean))}}),l=>h.request(l)}makeAuthRequest(p,h){const{scopes:m}=p;if(!!m)return{provider:h.provider,trigger:async()=>{const l=await h.onAuthRequest(m);p.resolve(l)},reject:()=>{const l=new Error("Login failed, rejected by user");l.name="RejectedError",p.reject(l)}}}authRequest$(){return this.subject}}},56054:function(J,o,e){"use strict";e.d(o,{C:function(){return f}});var r=e(82394),t=e.n(r);const c=new Map;class f{constructor(s,p){_(this,"subscribers",new Set);_(this,"observable",new(t())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)})));this.namespace=s,this.errorApi=p}static create(s){var p;return new f((p=s.namespace)!=null?p:"",s.errorApi)}get(s){return this.snapshot(s).value}snapshot(s){let p,h="absent";try{const m=localStorage.getItem(this.getKeyName(s));m&&(p=JSON.parse(m,(l,y)=>(typeof y=="object"&&y!==null&&Object.freeze(y),y)),h="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${s}`))}return{key:s,value:p,newValue:p,presence:h}}forBucket(s){const p=`${this.namespace}/${s}`;return c.has(p)||c.set(p,new f(p,this.errorApi)),c.get(p)}async set(s,p){localStorage.setItem(this.getKeyName(s),JSON.stringify(p)),this.notifyChanges(s)}async remove(s){localStorage.removeItem(this.getKeyName(s)),this.notifyChanges(s)}observe$(s){return this.observable.filter(({key:p})=>p===s)}getKeyName(s){return`${this.namespace}/${encodeURIComponent(s)}`}notifyChanges(s){const p=this.snapshot(s);for(const h of this.subscribers)h.next(p)}}},59589:function(J,o,e){"use strict";e.d(o,{u:function(){return c}});var r=e(91205);const t={id:"atlassian",title:"Atlassian",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p})}}},92293:function(J,o,e){"use strict";e.d(o,{Z:function(){return c}});var r=e(91205);const t={id:"auth0",title:"Auth0",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["openid","email","profile"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},6098:function(J,o,e){"use strict";e.d(o,{Z:function(){return c}});var r=e(91205);const t={id:"bitbucket",title:"Bitbucket",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["team"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},44431:function(J,o,e){"use strict";e.d(o,{x:function(){return c.Z}});var r=e(19347),t=e.n(r);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var c=e(6098)},19347:function(){},44474:function(J,o,e){"use strict";e.d(o,{T:function(){return c}});var r=e(91205);const t={id:"github",title:"GitHub",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["read:user"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}static normalizeScope(E){if(!E)return new Set;const s=Array.isArray(E)?E:E.split(/[\s|,]/).filter(Boolean);return new Set(s)}}},2922:function(J,o,e){"use strict";e.d(o,{a:function(){return c}});var r=e(91205);const t={id:"gitlab",title:"GitLab",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["read_user"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},59938:function(J,o,e){"use strict";e.d(o,{e:function(){return f}});var r=e(91205);const t={id:"google",title:"Google",icon:()=>null},c="https://www.googleapis.com/auth/";class f{static create(s){const{discoveryApi:p,oauthRequestApi:h,environment:m="development",provider:l=t,defaultScopes:y=["openid",`${c}userinfo.email`,`${c}userinfo.profile`]}=s;return r.L.create({discoveryApi:p,oauthRequestApi:h,provider:l,environment:m,defaultScopes:y,scopeTransform(i){return i.map(S=>S==="openid"?S:S==="profile"||S==="email"?`${c}userinfo.${S}`:S.startsWith(c)?S:`${c}${S}`)}})}}},91668:function(J,o,e){"use strict";e.d(o,{Td:function(){return r.T},aq:function(){return t.a},eE:function(){return c.e},OAuth2:function(){return f.L},OktaAuth:function(){return E.s},SamlAuth:function(){return s.n},Auth0Auth:function(){return p.Z},MicrosoftAuth:function(){return h._},OneLoginAuth:function(){return m.$},BitbucketAuth:function(){return l.x},AtlassianAuth:function(){return y.u}});var r=e(44474),t=e(2922),c=e(59938),f=e(91205);e.o(f,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return f.AlertApiForwarder}}),e.o(f,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return f.AppThemeSelector}}),e.o(f,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return f.AtlassianAuth}}),e.o(f,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return f.Auth0Auth}}),e.o(f,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return f.BitbucketAuth}}),e.o(f,"ConfigReader")&&e.d(o,{ConfigReader:function(){return f.ConfigReader}}),e.o(f,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return f.ErrorAlerter}}),e.o(f,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return f.ErrorApiForwarder}}),e.o(f,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return f.FetchMiddlewares}}),e.o(f,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return f.FlatRoutes}}),e.o(f,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return f.LocalStorageFeatureFlags}}),e.o(f,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return f.MicrosoftAuth}}),e.o(f,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return f.NoOpAnalyticsApi}}),e.o(f,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return f.OAuthRequestManager}}),e.o(f,"OktaAuth")&&e.d(o,{OktaAuth:function(){return f.OktaAuth}}),e.o(f,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return f.OneLoginAuth}}),e.o(f,"SamlAuth")&&e.d(o,{SamlAuth:function(){return f.SamlAuth}}),e.o(f,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return f.UnhandledErrorForwarder}}),e.o(f,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return f.UrlPatternDiscovery}}),e.o(f,"WebStorage")&&e.d(o,{WebStorage:function(){return f.WebStorage}}),e.o(f,"createFetchApi")&&e.d(o,{createFetchApi:function(){return f.createFetchApi}}),e.o(f,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return f.createSpecializedApp}});var E=e(26079),s=e(67578),p=e(92293),h=e(38482),m=e(58381),l=e(44431);e.o(l,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return l.AlertApiForwarder}}),e.o(l,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return l.AppThemeSelector}}),e.o(l,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return l.AtlassianAuth}}),e.o(l,"ConfigReader")&&e.d(o,{ConfigReader:function(){return l.ConfigReader}}),e.o(l,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return l.ErrorAlerter}}),e.o(l,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return l.ErrorApiForwarder}}),e.o(l,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return l.FetchMiddlewares}}),e.o(l,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return l.FlatRoutes}}),e.o(l,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return l.LocalStorageFeatureFlags}}),e.o(l,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return l.NoOpAnalyticsApi}}),e.o(l,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return l.OAuthRequestManager}}),e.o(l,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return l.UnhandledErrorForwarder}}),e.o(l,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return l.UrlPatternDiscovery}}),e.o(l,"WebStorage")&&e.d(o,{WebStorage:function(){return l.WebStorage}}),e.o(l,"createFetchApi")&&e.d(o,{createFetchApi:function(){return l.createFetchApi}}),e.o(l,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return l.createSpecializedApp}});var y=e(59589)},38482:function(J,o,e){"use strict";e.d(o,{_:function(){return c}});var r=e(91205);const t={id:"microsoft",title:"Microsoft",icon:()=>null};class c{static create(E){const{environment:s="development",provider:p=t,oauthRequestApi:h,discoveryApi:m,defaultScopes:l=["openid","offline_access","profile","email","User.Read"]}=E;return r.L.create({discoveryApi:m,oauthRequestApi:h,provider:p,environment:s,defaultScopes:l})}}},15104:function(J,o,e){"use strict";e.d(o,{Z:function(){return s}});var r=e(17678);function t(p){return[...p].join(" ")}class c{constructor(h){_(this,"discoveryApi");_(this,"environment");_(this,"provider");_(this,"joinScopesFunc");_(this,"authRequester");_(this,"sessionTransform");const{discoveryApi:m,environment:l,provider:y,joinScopes:i=t,oauthRequestApi:S,sessionTransform:b=I=>I}=h;this.authRequester=S.createAuthRequester({provider:y,onAuthRequest:I=>this.showPopup(I)}),this.discoveryApi=m,this.environment=l,this.provider=y,this.joinScopesFunc=i,this.sessionTransform=b}async createSession(h){return h.instantPopup?this.showPopup(h.scopes):this.authRequester(h.scopes)}async refreshSession(){const h=await fetch(await this.buildUrl("/refresh",{optional:!0}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(l=>{throw new Error(`Auth refresh request failed, ${l}`)});if(!h.ok){const l=new Error(`Auth refresh request failed, ${h.statusText}`);throw l.status=h.status,l}const m=await h.json();if(m.error){const l=new Error(m.error.message);throw m.error.name&&(l.name=m.error.name),l}return await this.sessionTransform(m)}async removeSession(){const h=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(m=>{throw new Error(`Logout request failed, ${m}`)});if(!h.ok){const m=new Error(`Logout request failed, ${h.statusText}`);throw m.status=h.status,m}}async showPopup(h){const m=this.joinScopesFunc(h),l=await this.buildUrl("/start",{scope:m,origin:location.origin}),y=await(0,r.d)({url:l,name:`${this.provider.title} Login`,origin:new URL(l).origin,width:450,height:730});return await this.sessionTransform(y)}async buildUrl(h,m){const l=await this.discoveryApi.getBaseUrl("auth"),y=this.buildQueryString({...m,env:this.environment});return`${l}/${this.provider.id}${h}${y}`}buildQueryString(h){if(!h)return"";const m=Object.entries(h).map(([l,y])=>{if(typeof y=="string")return`${encodeURIComponent(l)}=${encodeURIComponent(y)}`;if(y)return encodeURIComponent(l)}).filter(Boolean).join("&");return m?`?${m}`:""}}var f=e(55274);const E={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class s{constructor(h){_(this,"sessionManager");_(this,"scopeTransform");this.sessionManager=h.sessionManager,this.scopeTransform=h.scopeTransform}static create(h){const{discoveryApi:m,environment:l="development",provider:y=E,oauthRequestApi:i,defaultScopes:S=[],scopeTransform:b=B=>B}=h,I=new c({discoveryApi:m,environment:l,provider:y,oauthRequestApi:i,sessionTransform(B){return{...B,providerInfo:{idToken:B.providerInfo.idToken,accessToken:B.providerInfo.accessToken,scopes:s.normalizeScopes(b,B.providerInfo.scope),expiresAt:new Date(Date.now()+B.providerInfo.expiresInSeconds*1e3)}}}}),V=new f.q2({connector:I,defaultScopes:new Set(S),sessionScopes:B=>B.providerInfo.scopes,sessionShouldRefresh:B=>(B.providerInfo.expiresAt.getTime()-Date.now())/1e3<60*5});return new s({sessionManager:V,scopeTransform:b})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(h,m){var i;const l=s.normalizeScopes(this.scopeTransform,h),y=await this.sessionManager.getSession({...m,scopes:l});return(i=y==null?void 0:y.providerInfo.accessToken)!=null?i:""}async getIdToken(h={}){var l;const m=await this.sessionManager.getSession(h);return(l=m==null?void 0:m.providerInfo.idToken)!=null?l:""}async getBackstageIdentity(h={}){const m=await this.sessionManager.getSession(h);return m==null?void 0:m.backstageIdentity}async getProfile(h={}){const m=await this.sessionManager.getSession(h);return m==null?void 0:m.profile}static normalizeScopes(h,m){if(!m)return new Set;const l=Array.isArray(m)?m:m.split(/[\s|,]/).filter(Boolean);return new Set(h(l))}}},91205:function(J,o,e){"use strict";e.d(o,{L:function(){return r.Z}});var r=e(15104),t=e(5973),c=e.n(t);e.o(t,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return t.AlertApiForwarder}}),e.o(t,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return t.AppThemeSelector}}),e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"ConfigReader")&&e.d(o,{ConfigReader:function(){return t.ConfigReader}}),e.o(t,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return t.ErrorAlerter}}),e.o(t,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return t.ErrorApiForwarder}}),e.o(t,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return t.FetchMiddlewares}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return t.LocalStorageFeatureFlags}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return t.NoOpAnalyticsApi}}),e.o(t,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return t.OAuthRequestManager}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}}),e.o(t,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return t.UnhandledErrorForwarder}}),e.o(t,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return t.UrlPatternDiscovery}}),e.o(t,"WebStorage")&&e.d(o,{WebStorage:function(){return t.WebStorage}}),e.o(t,"createFetchApi")&&e.d(o,{createFetchApi:function(){return t.createFetchApi}}),e.o(t,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return t.createSpecializedApp}})},5973:function(){},26079:function(J,o,e){"use strict";e.d(o,{s:function(){return E}});var r=e(91205);const t={id:"okta",title:"Okta",icon:()=>null},c=new Set(["openid","profile","email","phone","address","groups","offline_access"]),f="okta.";class E{static create(p){const{discoveryApi:h,environment:m="development",provider:l=t,oauthRequestApi:y,defaultScopes:i=["openid","email","profile","offline_access"]}=p;return r.L.create({discoveryApi:h,oauthRequestApi:y,provider:l,environment:m,defaultScopes:i,scopeTransform(S){return S.map(b=>c.has(b)||b.startsWith(f)?b:`${f}${b}`)}})}}},58381:function(J,o,e){"use strict";e.d(o,{$:function(){return E}});var r=e(91205);const t={id:"onelogin",title:"onelogin",icon:()=>null},c=new Set(["openid","profile","email","phone","address","groups","offline_access"]),f="onelogin.";class E{static create(p){const{discoveryApi:h,environment:m="development",provider:l=t,oauthRequestApi:y}=p;return r.L.create({discoveryApi:h,oauthRequestApi:y,provider:l,environment:m,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(i){return i.map(S=>c.has(S)||S.startsWith(f)?S:`${f}${S}`)}})}}},67578:function(J,o,e){"use strict";e.d(o,{n:function(){return p}});var r=e(17678);class t{constructor(m){_(this,"discoveryApi");_(this,"environment");_(this,"provider");const{discoveryApi:l,environment:y,provider:i}=m;this.discoveryApi=l,this.environment=y,this.provider=i}async createSession(){const m=await this.buildUrl("/start"),l=await(0,r.d)({url:m,name:`${this.provider.title} Login`,origin:new URL(m).origin,width:450,height:730});return{...l,id:l.profile.email}}async refreshSession(){}async removeSession(){const m=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(l=>{throw new Error(`Logout request failed, ${l}`)});if(!m.ok){const l=new Error(`Logout request failed, ${m.statusText}`);throw l.status=m.status,l}}async buildUrl(m){return`${await this.discoveryApi.getBaseUrl("auth")}/${this.provider.id}${m}?env=${this.environment}`}}var c=e(55274),f=e(30195);const E=f.z.object({profile:f.z.object({email:f.z.string().optional(),displayName:f.z.string().optional(),picture:f.z.string().optional()}),backstageIdentity:f.z.object({id:f.z.string(),token:f.z.string(),identity:f.z.object({type:f.z.literal("user"),userEntityRef:f.z.string(),ownershipEntityRefs:f.z.array(f.z.string())})})}),s={id:"saml",title:"SAML",icon:()=>null};class p{static create(m){const{discoveryApi:l,environment:y="development",provider:i=s}=m,S=new t({discoveryApi:l,environment:y,provider:i}),b=new c.k1({connector:S}),I=new c.Hc({manager:b,storageKey:`${i.id}Session`,schema:E});return new p(I)}sessionState$(){return this.sessionManager.sessionState$()}constructor(m){this.sessionManager=m}async signIn(){await this.getBackstageIdentity({})}async signOut(){await this.sessionManager.removeSession()}async getBackstageIdentity(m={}){const l=await this.sessionManager.getSession(m);return l==null?void 0:l.backstageIdentity}async getProfile(m={}){const l=await this.sessionManager.getSession(m);return l==null?void 0:l.profile}}},91631:function(J,o,e){"use strict";e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth},Auth0Auth:function(){return r.Auth0Auth},GithubAuth:function(){return r.Td},GitlabAuth:function(){return r.aq},GoogleAuth:function(){return r.eE},MicrosoftAuth:function(){return r.MicrosoftAuth},OktaAuth:function(){return r.OktaAuth},OneLoginAuth:function(){return r.OneLoginAuth},SamlAuth:function(){return r.SamlAuth},AlertApiForwarder:function(){return t.C},NoOpAnalyticsApi:function(){return c.g},AppThemeSelector:function(){return f.C},ConfigReader:function(){return E.m},UrlPatternDiscovery:function(){return s.p},ErrorAlerter:function(){return p.KN},ErrorApiForwarder:function(){return p.gr},UnhandledErrorForwarder:function(){return p.Jv},LocalStorageFeatureFlags:function(){return h.b},FetchMiddlewares:function(){return m.I},createFetchApi:function(){return m.j},OAuthRequestManager:function(){return l.Y},WebStorage:function(){return y.C}});var r=e(91668);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(23235),c=e(47150),f=e(58652),E=e(14721),s=e(4333),p=e(89536),h=e(14884),m=e(50160),l=e(11358),y=e(56054)},56494:function(J,o,e){"use strict";e.d(o,{ApiProvider:function(){return r.gs},AlertApiForwarder:function(){return t.AlertApiForwarder},AppThemeSelector:function(){return t.AppThemeSelector},ConfigReader:function(){return t.ConfigReader},ErrorAlerter:function(){return t.ErrorAlerter},ErrorApiForwarder:function(){return t.ErrorApiForwarder},FetchMiddlewares:function(){return t.FetchMiddlewares},LocalStorageFeatureFlags:function(){return t.LocalStorageFeatureFlags},NoOpAnalyticsApi:function(){return t.NoOpAnalyticsApi},OAuthRequestManager:function(){return t.OAuthRequestManager},UnhandledErrorForwarder:function(){return t.UnhandledErrorForwarder},UrlPatternDiscovery:function(){return t.UrlPatternDiscovery},WebStorage:function(){return t.WebStorage},createFetchApi:function(){return t.createFetchApi}});var r=e(76105);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return r.Auth0Auth}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"GithubAuth")&&e.d(o,{GithubAuth:function(){return r.GithubAuth}}),e.o(r,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return r.GitlabAuth}}),e.o(r,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return r.GoogleAuth}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"OktaAuth")&&e.d(o,{OktaAuth:function(){return r.OktaAuth}}),e.o(r,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return r.OneLoginAuth}}),e.o(r,"SamlAuth")&&e.d(o,{SamlAuth:function(){return r.SamlAuth}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(91631);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}}),e.o(t,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return t.createSpecializedApp}})},80396:function(J,o,e){"use strict";e.d(o,{p:function(){return t}});var r;(function(c){c[c.default=10]="default";const f=50;c[c.app=f]="app",c[c.static=100]="static"})(r||(r={}));class t{constructor(){_(this,"factories",new Map)}register(f,E){const s=r[f],p=this.factories.get(E.api.id);return p&&p.priority>=s?!1:(this.factories.set(E.api.id,{priority:s,factory:E}),!0)}get(f){const E=this.factories.get(f.id);if(!!E)return E.factory}getAllApis(){const f=new Set;for(const{factory:E}of this.factories.values())f.add(E.api);return f}}},14406:function(J,o,e){"use strict";e.d(o,{g:function(){return p}});var r=e(2784),t=e(13980),c=e.n(t);class f{constructor(...m){_(this,"holders");this.holders=m}get(m){for(const l of this.holders){const y=l.get(m);if(y)return y}}}var E=e(76241);const s=(0,E.CT)("api-context"),p=h=>{var S;const{apis:m,children:l}=h,y=(S=(0,r.useContext)(s))==null?void 0:S.atVersion(1),i=y?new f(m,y):m;return r.createElement(s.Provider,{value:(0,E.EI)({1:i}),children:l})};p.propTypes={apis:c().shape({get:c().func.isRequired}).isRequired,children:c().node}},12132:function(J,o,e){"use strict";e.d(o,{M:function(){return r}});class r{constructor(c){_(this,"apis",new Map);this.factories=c}static validateFactories(c,f){for(const E of f){const s=[E],p=new Set;for(;s.length;){const h=s.shift(),m=c.get(h);if(!!m)for(const l of Object.values(m.deps)){if(l.id===E.id)throw new Error(`Circular dependency of api factory for ${E}`);p.has(l)||(p.add(l),s.push(l))}}}}get(c){return this.load(c)}load(c,f=[]){const E=this.apis.get(c.id);if(E)return E;const s=this.factories.get(c);if(!s)return;if(f.includes(s.api))throw new Error(`Circular dependency of api factory for ${s.api}`);const p=this.loadDeps(c,s.deps,[...f,s.api]),h=s.factory(p);return this.apis.set(c.id,h),h}loadDeps(c,f,E){const s={};for(const p in f)if(f.hasOwnProperty(p)){const h=f[p],m=this.load(h,E);if(!m)throw new Error(`No API factory available for dependency ${h} of dependent ${c}`);s[p]=m}return s}}},76105:function(J,o,e){"use strict";e.d(o,{gs:function(){return r.g},MM:function(){return t.M},pv:function(){return c.p}});var r=e(14406),t=e(12132),c=e(80396),f=e(82488),E=e.n(f);e.o(f,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return f.AlertApiForwarder}}),e.o(f,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return f.AppThemeSelector}}),e.o(f,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return f.AtlassianAuth}}),e.o(f,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return f.Auth0Auth}}),e.o(f,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return f.BitbucketAuth}}),e.o(f,"ConfigReader")&&e.d(o,{ConfigReader:function(){return f.ConfigReader}}),e.o(f,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return f.ErrorAlerter}}),e.o(f,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return f.ErrorApiForwarder}}),e.o(f,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return f.FetchMiddlewares}}),e.o(f,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return f.FlatRoutes}}),e.o(f,"GithubAuth")&&e.d(o,{GithubAuth:function(){return f.GithubAuth}}),e.o(f,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return f.GitlabAuth}}),e.o(f,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return f.GoogleAuth}}),e.o(f,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return f.LocalStorageFeatureFlags}}),e.o(f,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return f.MicrosoftAuth}}),e.o(f,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return f.NoOpAnalyticsApi}}),e.o(f,"OAuth2")&&e.d(o,{OAuth2:function(){return f.OAuth2}}),e.o(f,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return f.OAuthRequestManager}}),e.o(f,"OktaAuth")&&e.d(o,{OktaAuth:function(){return f.OktaAuth}}),e.o(f,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return f.OneLoginAuth}}),e.o(f,"SamlAuth")&&e.d(o,{SamlAuth:function(){return f.SamlAuth}}),e.o(f,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return f.UnhandledErrorForwarder}}),e.o(f,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return f.UrlPatternDiscovery}}),e.o(f,"WebStorage")&&e.d(o,{WebStorage:function(){return f.WebStorage}}),e.o(f,"createFetchApi")&&e.d(o,{createFetchApi:function(){return f.createFetchApi}}),e.o(f,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return f.createSpecializedApp}})},82488:function(){},69342:function(J,o,e){"use strict";e.d(o,{b:function(){return te}});var r=e(2784),t=e(10289),c=e(64279),f=e(56494),E=e(36964),s=e(76105);function p(T){const C={};for(const j in T.collectors)T.collectors.hasOwnProperty(j)&&(C[j]=T.collectors[j]());const F=[{node:r.Children.toArray(T.root),parent:void 0,contexts:{}}];for(;F.length!==0;){const{node:j,parent:Y,contexts:le}=F.shift();r.Children.forEach(j,ve=>{if(!(0,r.isValidElement)(ve))return;const ye={};for(const Be in C)if(C.hasOwnProperty(Be)){const Le=C[Be];ye[Be]=Le.visit(Le.accumulator,ve,Y,le[Be])}for(const Be of T.discoverers){const Le=Be(ve);Le&&F.push({node:Le,parent:ve,contexts:ye})}})}return Object.fromEntries(Object.entries(C).map(([j,Y])=>[j,Y.accumulator]))}function h(T,C){return()=>({accumulator:T(),visit:C})}function m(T){var C;return(C=T.props)==null?void 0:C.children}function l(T){var C,F,j;if(((C=T.props)==null?void 0:C.path)&&((F=T.props)==null?void 0:F.element))return(j=T.props)==null?void 0:j.element}const y=h(()=>new Set,(T,C)=>{const F=(0,E.getComponentData)(C,"core.plugin");F&&T.add(F)});var i=e(88934);function S(T){var j;const C=(j=T.props)==null?void 0:j.element;let F=(0,E.getComponentData)(T,"core.mountPoint");return!F&&(0,r.isValidElement)(C)&&(F=(0,E.getComponentData)(C,"core.mountPoint")),F}const b=h(()=>new Map,(T,C,F,j)=>{var ve,ye;let Y=j;if((F==null?void 0:F.props.element)===C)return Y;if((0,E.getComponentData)(C,"core.gatherMountPoints")){const Be=(ve=C.props)==null?void 0:ve.path;if(!Be)throw new Error("Mount point gatherer must have a path");Y=Be}const le=S(C);if(le){let Be=(ye=C.props)==null?void 0:ye.path;if(Y&&(Be?Y=void 0:Be=Y),!Be)throw new Error("Mounted routable extension must have a path");T.set(le,Be)}return Y}),I=h(()=>new Map,(T,C,F,j)=>{var ve;if((F==null?void 0:F.props.element)===C)return j;let Y=j;const le=S(C);return le&&(j&&"sticky"in j?(T.set(le,j.sticky),((ve=C.props)==null?void 0:ve.path)?Y=le:Y=j):(T.set(le,j),Y=le)),(0,E.getComponentData)(C,"core.gatherMountPoints")?{sticky:Y}:Y}),V={caseSensitive:!1,path:"/*",element:"match-all",routeRefs:new Set},B=h(()=>Array(),(T,C,F,j)=>{var Le,Re,Ee;const Y=(Le=j==null?void 0:j.children)!=null?Le:T;if((F==null?void 0:F.props.element)===C)return j;const le=(Re=C.props)==null?void 0:Re.path,ve=Boolean((Ee=C.props)==null?void 0:Ee.caseSensitive),ye=S(C);if(ye){if(le){const Fe={caseSensitive:ve,path:le,element:"mounted",routeRefs:new Set([ye]),children:[V],plugin:(0,E.getComponentData)(C.props.element,"core.plugin")};return Y.push(Fe),Fe}j==null||j.routeRefs.add(ye)}if((0,E.getComponentData)(C,"core.gatherMountPoints")){if(!le)throw new Error("Mount point gatherer must have a path");const Fe={caseSensitive:ve,path:le,element:"gathered",routeRefs:new Set,children:[V],plugin:j==null?void 0:j.plugin};return Y.push(Fe),Fe}return j}),P=h(()=>new Set,(T,C)=>{if(C.type===i.L){const F=C.props;T.add("with"in F?F.with:F.without)}});var O=e(76241);const x=(0,O.uW)("route-ref-type",()=>Symbol("route-ref-type"));function H(T){return T[x]==="absolute"}function q(T){return T[x]==="sub"}function oe(T){return T[x]==="external"}function pe(...T){const C=T.join("/").replace(/\/\/+/g,"/");return C!=="/"&&C.endsWith("/")?C.slice(0,-1):C}function Ie(T,C,F){let j,Y="";if(H(T))j=T;else if(q(T))j=T.parent,Y=T.path;else if(oe(T)){const ye=F.get(T);if(!ye)return[void 0,""];if(H(ye))j=ye;else if(q(ye))j=ye.parent,Y=ye.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${ye}`)}else throw T[x]?new Error(`Unknown or invalid route ref type, ${T[x]}`):new Error(`Unknown object passed to useRouteRef, got ${T}`);if(!j)return[void 0,""];const le=C.get(j);if(!le)return[void 0,""];const ve=pe(le,Y);return[j,ve]}function me(T,C,F,j,Y){var Re;const le=(Re=(0,t.fp)(Y,C))!=null?Re:[],ve=Array();let ye=-1;for(let Ee=T;Ee&&(ye=le.findIndex(Fe=>Fe.route.routeRefs.has(Ee)),ye===-1);Ee=j.get(Ee))ve.unshift(Ee);ve.length===0&&(ye-=1);const Be=ye===-1?"":le[ye].pathname,Le=pe(...ve.slice(0,-1).map(Ee=>{const Fe=F.get(Ee);if(!Fe)throw new Error(`No path for ${Ee}`);if(Fe.includes(":"))throw new Error(`Cannot route to ${T} with parent ${Ee} as it has parameters`);return Fe}));return Be+Le}class ze{constructor(C,F,j,Y,le){this.routePaths=C,this.routeParents=F,this.routeObjects=j,this.routeBindings=Y,this.appBasePath=le}resolve(C,F){const[j,Y]=Ie(C,this.routePaths,this.routeBindings);if(!j)return;let le;typeof F=="string"?le=this.trimPath(F):F.pathname?le={...F,pathname:this.trimPath(F.pathname)}:le=F;const ve=this.appBasePath+me(j,le,this.routePaths,this.routeParents,this.routeObjects);return(...[Be])=>ve+(0,t.Gn)(Y,Be)}trimPath(C){return C&&(C.startsWith(this.appBasePath)?C.slice(this.appBasePath.length):C)}}const Pe=(0,O.CT)("routing-context"),Qe=({routePaths:T,routeParents:C,routeObjects:F,routeBindings:j,basePath:Y="",children:le})=>{const ve=new ze(T,C,F,j,Y),ye=(0,O.EI)({1:ve});return r.createElement(Pe.Provider,{value:ye},le)},st=(T,C)=>{var F,j;try{const Y=(0,t.fp)(C,{pathname:T}),le=(F=Y==null?void 0:Y.filter(ye=>{var Be;return((Be=ye==null?void 0:ye.route.routeRefs)==null?void 0:Be.size)>0}).pop())==null?void 0:F.route;if(!le)return{};let ve;return le.routeRefs.size===1&&(ve=le.routeRefs.values().next().value),{extension:"App",pluginId:((j=le.plugin)==null?void 0:j.getId())||"root",...ve?{routeRef:ve.id}:{}}}catch{return{}}},_e=({pathname:T,search:C,hash:F})=>{const j=(0,E.useAnalytics)();return(0,r.useEffect)(()=>{j.captureEvent("navigate",`${T}${C}${F}`)},[j,T,C,F]),null},gt=({tree:T})=>{const{pathname:C,search:F,hash:j}=(0,t.TH)(),{routeObjects:Y}=(0,r.useMemo)(()=>p({root:T,discoverers:[m,l],collectors:{routeObjects:B}}),[T]);return r.createElement(E.AnalyticsContext,{attributes:st(C,Y)},r.createElement(_e,{pathname:C,search:F,hash:j}))};function nt(T,C){const F=new Set(C.values());F.delete(void 0);for(const j of C.keys()){if(F.has(j))continue;let Y=j,le="";for(;Y;){const ye=T.get(Y);if(!ye)throw new Error(`No path for ${Y}`);le=`${ye}${le}`,Y=C.get(Y)}const ve=le.match(/:(\w+)/g);if(ve){for(let ye=0;ye<ve.length;ye++)for(let Be=ye+1;Be<ve.length;Be++)if(ve[Be]===ve[ye])throw new Error(`Parameter ${ve[Be]} is duplicated in path ${le}`)}}}function at(T,C){for(const F of C)if(!!F.externalRoutes){for(const[j,Y]of Object.entries(F.externalRoutes))if(!Y.optional&&!T.has(Y))throw new Error(`External route '${j}' of the '${F.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const Rt=(0,O.CT)("app-context"),zt=({appContext:T,children:C})=>{const F=(0,O.EI)({1:T});return r.createElement(Rt.Provider,{value:F,children:C})};function Ot(T){return new Error(`Tried to access IdentityApi ${T} before app was loaded`)}function pt(T){console.warn(`WARNING: Call to ${T} is deprecated and will break in the future`)}class rt{constructor(){_(this,"target");_(this,"waitForTarget");_(this,"resolveTarget",()=>{});this.waitForTarget=new Promise(C=>{this.resolveTarget=C})}setTarget(C){this.target=C,this.resolveTarget(C)}getUserId(){if(!this.target)throw Ot("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return pt("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw Ot("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return pt("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(C=>C.getProfileInfo())}async getBackstageIdentity(){const C=await this.waitForTarget.then(F=>F.getBackstageIdentity());return C.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${C.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),C}async getCredentials(){return this.waitForTarget.then(C=>C.getCredentials())}async getIdToken(){return this.waitForTarget.then(C=>{if(!C.getIdToken)throw new Error("IdentityApi does not implement getIdToken");return pt("getIdToken"),C.getIdToken()})}async signOut(){await this.waitForTarget.then(C=>C.signOut()),location.reload()}}var Tt=e(72164);function Pt(T,C,F){if(T!==void 0){const Y=F.find(le=>le.id===T);if(Y)return Y}if(C){const Y=F.find(le=>le.variant==="dark");if(Y)return Y}const j=F.find(Y=>Y.variant==="light");return j||F[0]}const xt=()=>{const T=(0,r.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[C,F]=(0,r.useState)(T.matches);return(0,r.useEffect)(()=>{const j=Y=>{F(Y.matches)};return T.addListener(j),()=>{T.removeListener(j)}},[T]),C};function Nt({children:T}){const C=(0,E.useApi)(E.appThemeApiRef),F=(0,Tt.Z)(C.activeThemeId$(),C.getActiveThemeId()),j=Boolean(window.matchMedia)?xt():!1,Y=Pt(F,j,C.getInstalledThemes());if(!Y)throw new Error("App has no themes");return r.createElement(Y.Provider,{children:T})}const ht=async(T="__APP_INJECTED_RUNTIME_CONFIG__")=>{const C=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external",requestUrl:"http://localhost:3000/api"}}}];if(!C)throw new Error("No static configuration provided");if(!Array.isArray(C))throw new Error("Static configuration has invalid format");const F=C.slice();if(T!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const Y=JSON.parse(T);Array.isArray(Y)?F.push(...Y):F.push({data:Y,context:"env"})}catch(Y){throw new Error(`Failed to load runtime configuration, ${Y}`)}const j=window.__APP_CONFIG__;return j&&F.push({context:"window",data:j}),F};class It{constructor(){_(this,"apis",[])}add(C,F){return this.apis.push([C.id,F]),F}build(){return new Ut(new Map(this.apis))}}class Ut{static builder(){return new It}static from(C){return new Ut(new Map(C.map(([F,j])=>[F.id,j])))}static with(C,F){return new Ut(new Map([[C.id,F]]))}constructor(C){this.apis=C}with(C,F){return new Ut(new Map([...this.apis,[C.id,F]]))}get(C){return this.apis.get(C.id)}}function be(T){const C=new Map;return T&&T({bind:(j,Y)=>{for(const[le,ve]of Object.entries(Y)){const ye=j[le];if(!ye)throw new Error(`Key ${le} is not an existing external route`);if(!ve&&!ye.optional)throw new Error(`External route ${le} is required but was undefined`);ve&&C.set(ye,ve)}}}),C}function ot(T){var F;let{pathname:C}=new URL((F=T.getOptionalString("app.baseUrl"))!=null?F:"/","http://dummy.dev");return C=C.replace(/\/*$/,""),C}function it(T,C,F){var Be;const j=Boolean(T),Y=(0,c.default)(T||(()=>Promise.resolve([])));let le;if(j&&Y.loading){const{Progress:Le}=C;le=r.createElement(Le,null)}else if(Y.error){const{BootErrorPage:Le}=C;le=r.createElement(Le,{step:"load-config",error:Y.error})}const{ThemeProvider:ve=Nt}=C;return le?{node:r.createElement(f.ApiProvider,{apis:Ut.with(E.appThemeApiRef,F)},r.createElement(ve,null,le))}:{api:f.ConfigReader.fromConfigs((Be=Y.value)!=null?Be:[])}}class Ct{constructor(C){this.app=C}getPlugins(){return this.app.getPlugins()}getSystemIcon(C){return this.app.getSystemIcon(C)}getComponents(){return this.app.getComponents()}}class ae{constructor(C){_(this,"apiHolder");_(this,"configApi");_(this,"apis");_(this,"icons");_(this,"plugins");_(this,"components");_(this,"themes");_(this,"configLoader");_(this,"defaultApis");_(this,"bindRoutes");_(this,"appIdentityProxy",new rt);_(this,"apiFactoryRegistry");var F,j,Y,le;this.apis=(F=C.apis)!=null?F:[],this.icons=C.icons,this.plugins=new Set((j=C.plugins)!=null?j:[]),this.components=C.components,this.themes=C.themes,this.configLoader=(Y=C.configLoader)!=null?Y:ht,this.defaultApis=(le=C.defaultApis)!=null?le:[],this.bindRoutes=C.bindRoutes,this.apiFactoryRegistry=new s.pv}getPlugins(){return Array.from(this.plugins)}getSystemIcon(C){return this.icons[C]}getComponents(){return this.components}getProvider(){const C=new Ct(this);let F=!1;return({children:Y})=>{const le=(0,r.useMemo)(()=>f.AppThemeSelector.createWithStorage(this.themes),[]),{routePaths:ve,routeParents:ye,routeObjects:Be,featureFlags:Le,routeBindings:Re}=(0,r.useMemo)(()=>{const ut=p({root:Y,discoverers:[m,l],collectors:{routePaths:b,routeParents:I,routeObjects:B,collectedPlugins:y,featureFlags:P}});return ut.collectedPlugins.forEach(Ve=>this.plugins.add(Ve)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...ut,routeBindings:be(this.bindRoutes)}},[Y]);F||(F=!0,nt(ve,ye),at(Re,this.plugins));const Ee=it(this.configLoader,this.components,le),Fe="api"in Ee;if(Fe){const{api:ut}=Ee;this.configApi=ut}if((0,r.useEffect)(()=>{if(Fe){const ut=this.getApiHolder().get(E.featureFlagsApiRef);for(const Ve of this.plugins.values())if("getFeatureFlags"in Ve)for(const se of Ve.getFeatureFlags())ut.registerFlag({name:se.name,pluginId:Ve.getId()});else for(const se of Ve.output())se.type==="feature-flag"&&ut.registerFlag({name:se.name,pluginId:Ve.getId()});for(const Ve of Le)ut.registerFlag({name:Ve,pluginId:""})}},[Fe,Ee,Le]),"node"in Ee)return Ee.node;const{ThemeProvider:St=Nt}=this.components;return r.createElement(f.ApiProvider,{apis:this.getApiHolder()},r.createElement(zt,{appContext:C},r.createElement(St,null,r.createElement(Qe,{routePaths:ve,routeParents:ye,routeObjects:Be,routeBindings:Re,basePath:ot(Ee.api)},Y))))}}getRouter(){const{Router:C,SignInPage:F}=this.components,j=({component:le,children:ve})=>{const[ye,Be]=(0,r.useState)();return ye?(this.appIdentityProxy.setTarget(ye),ve):r.createElement(le,{onSignInSuccess:Be})};return({children:le})=>{const ve=(0,E.useApi)(E.configApiRef),ye=`${ot(ve)}/*`;return F?r.createElement(C,null,r.createElement(gt,{tree:le}),r.createElement(j,{component:F},r.createElement(t.Z5,null,r.createElement(t.AW,{path:ye,element:r.createElement(r.Fragment,null,le)})))):(this.appIdentityProxy.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}}),r.createElement(C,null,r.createElement(gt,{tree:le}),r.createElement(t.Z5,null,r.createElement(t.AW,{path:ye,element:r.createElement(r.Fragment,null,le)}))))}}getApiHolder(){if(this.apiHolder){for(const C of this.plugins)for(const F of C.getApis())this.apiFactoryRegistry.get(F.api)||this.apiFactoryRegistry.register("default",F);return s.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:E.appThemeApiRef,deps:{},factory:()=>f.AppThemeSelector.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:E.configApiRef,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:E.identityApiRef,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("default",{api:E.featureFlagsApiRef,deps:{},factory:()=>new f.LocalStorageFeatureFlags});for(const C of this.defaultApis)this.apiFactoryRegistry.register("default",C);for(const C of this.plugins)for(const F of C.getApis())if(!this.apiFactoryRegistry.register("default",F))throw new Error(`Plugin ${C.getId()} tried to register duplicate or forbidden API factory for ${F.api}`);for(const C of this.apis)if(!this.apiFactoryRegistry.register("app",C))throw new Error(`Duplicate or forbidden API factory for ${C.api} in app`);return s.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new s.MM(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(C){const F=new Set;for(const j of C){const Y=j.getId();if(F.has(Y))throw new Error(`Duplicate plugin found '${Y}'`);F.add(Y)}}}function te(T){return new ae(T)}},44056:function(J,o,e){"use strict";e.d(o,{b:function(){return r.b}});var r=e(69342),t=e(73495),c=e.n(t);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}})},73495:function(){},49208:function(J,o,e){"use strict";e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder},ErrorAlerter:function(){return r.ErrorAlerter},ErrorApiForwarder:function(){return r.ErrorApiForwarder},FetchMiddlewares:function(){return r.FetchMiddlewares},NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi},OAuthRequestManager:function(){return r.OAuthRequestManager},UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder},UrlPatternDiscovery:function(){return r.UrlPatternDiscovery},WebStorage:function(){return r.WebStorage},createFetchApi:function(){return r.createFetchApi},createSpecializedApp:function(){return t.b},FlatRoutes:function(){return c.w}});var r=e(56494);e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return r.Auth0Auth}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"GithubAuth")&&e.d(o,{GithubAuth:function(){return r.GithubAuth}}),e.o(r,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return r.GitlabAuth}}),e.o(r,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return r.GoogleAuth}}),e.o(r,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OktaAuth")&&e.d(o,{OktaAuth:function(){return r.OktaAuth}}),e.o(r,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return r.OneLoginAuth}}),e.o(r,"SamlAuth")&&e.d(o,{SamlAuth:function(){return r.SamlAuth}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(44056);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}});var c=e(63938)},55274:function(J,o,e){"use strict";e.d(o,{Hc:function(){return h},q2:function(){return s},k1:function(){return p}});function r(m,l){for(const y of l)if(!m.has(y))return!1;return!0}class t{constructor(l){this.options=l}sessionExistsAndHasScope(l,y){if(!l)return!1;if(!y||this.options.sessionScopes===void 0)return!0;const i=this.options.sessionScopes(l);return r(i,y)}getExtendedScope(l,y){const i=new Set(this.options.defaultScopes);if(l&&this.options.sessionScopes!==void 0){const S=this.options.sessionScopes(l);for(const b of S)i.add(b)}if(y)for(const S of y)i.add(S);return i}}var c=e(98005),f=e(36964);class E{constructor(){_(this,"subject",new c.X(f.SessionState.SignedOut));_(this,"signedIn",!1)}setIsSignedIn(l){this.signedIn!==l&&(this.signedIn=l,this.subject.next(this.signedIn?f.SessionState.SignedIn:f.SessionState.SignedOut))}sessionState$(){return this.subject}}class s{constructor(l){_(this,"connector");_(this,"helper");_(this,"sessionScopesFunc");_(this,"sessionShouldRefreshFunc");_(this,"stateTracker",new E);_(this,"refreshPromise");_(this,"currentSession");const{connector:y,defaultScopes:i=new Set,sessionScopes:S,sessionShouldRefresh:b}=l;this.connector=y,this.sessionScopesFunc=S,this.sessionShouldRefreshFunc=b,this.helper=new t({sessionScopes:S,defaultScopes:i})}async getSession(l){if(this.helper.sessionExistsAndHasScope(this.currentSession,l.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const i=await this.collapsedSessionRefresh(),S=this.sessionScopesFunc(this.currentSession),b=this.sessionScopesFunc(i);return r(b,S)&&(this.currentSession=i),i}catch(i){if(l.optional)return;throw i}}if(!this.currentSession&&!l.instantPopup)try{const y=await this.collapsedSessionRefresh();return this.currentSession=y,this.getSession(l)}catch{}if(!l.optional)return this.currentSession=await this.connector.createSession({...l,scopes:this.helper.getExtendedScope(this.currentSession,l.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession();try{const l=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),l}finally{delete this.refreshPromise}}}class p{constructor(l){_(this,"connector");_(this,"helper");_(this,"stateTracker",new E);_(this,"currentSession");const{connector:y,defaultScopes:i=new Set,sessionScopes:S}=l;this.connector=y,this.helper=new t({sessionScopes:S,defaultScopes:i})}setSession(l){this.currentSession=l,this.stateTracker.setIsSignedIn(Boolean(l))}async getSession(l){if(this.helper.sessionExistsAndHasScope(this.currentSession,l.scopes))return this.currentSession;if(!l.optional)return this.currentSession=await this.connector.createSession({...l,scopes:this.helper.getExtendedScope(this.currentSession,l.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}}class h{constructor(l){_(this,"manager");_(this,"storageKey");_(this,"schema");_(this,"sessionShouldRefreshFunc");_(this,"helper");const{manager:y,storageKey:i,schema:S,sessionScopes:b,sessionShouldRefresh:I=()=>!1}=l;this.manager=y,this.storageKey=i,this.schema=S,this.sessionShouldRefreshFunc=I,this.helper=new t({sessionScopes:b,defaultScopes:new Set})}setSession(l){this.manager.setSession(l),this.saveSession(l)}async getSession(l){const{scopes:y}=l,i=this.loadSession();if(this.helper.sessionExistsAndHasScope(i,y)&&!this.sessionShouldRefreshFunc(i))return this.manager.setSession(i),i;const S=await this.manager.getSession(l);return this.saveSession(S),S}async removeSession(){localStorage.removeItem(this.storageKey),await this.manager.removeSession()}sessionState$(){return this.manager.sessionState$()}loadSession(){try{const l=localStorage.getItem(this.storageKey);if(l){const y=JSON.parse(l,(i,S)=>(S==null?void 0:S.__type)==="Set"?new Set(S.__value):S);try{return this.schema.parse(y)}catch(i){throw console.log(`Failed to load session from local storage because it did not conform to the expected schema, ${i}`),i}}return}catch{localStorage.removeItem(this.storageKey);return}}saveSession(l){if(l===void 0){localStorage.removeItem(this.storageKey);return}try{this.schema.parse(l)}catch(y){console.warn(`Failed to save session to local storage because it did not conform to the expected schema, ${y}`);return}localStorage.setItem(this.storageKey,JSON.stringify(l,(y,i)=>i instanceof Set?{__type:"Set",__value:Array.from(i)}:i))}}},17678:function(J,o,e){"use strict";e.d(o,{d:function(){return r}});function r(t){return new Promise((c,f)=>{const E=t.width||500,s=t.height||700,p=window.screen.width/2-E/2,h=window.screen.height/2-s/2,m=window.open(t.url,t.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${E},height=${s},top=${h},left=${p}`);let l="";if(!m||typeof m.closed=="undefined"||m.closed){const b=new Error("Failed to open auth popup.");b.name="PopupRejectedError",f(b);return}const y=b=>{if(b.source!==m||b.origin!==t.origin)return;const{data:I}=b;if(I.type==="config_info"){l=I.targetOrigin;return}if(I.type!=="authorization_response")return;const V=I;if("error"in V){const B=new Error(V.error.message);B.name=V.error.name,f(B)}else c(V.response);S()},i=setInterval(()=>{if(m.closed){const b=`Login failed, ${l&&l!==window.location.origin?`Incorrect app origin, expected ${l}`:"popup was closed"}`,I=new Error(b);I.name="PopupClosedError",f(I),S()}},100);function S(){window.removeEventListener("message",y),clearInterval(i)}window.addEventListener("message",y)})}},98005:function(J,o,e){"use strict";e.d(o,{J:function(){return c},X:function(){return f}});var r=e(82394),t=e.n(r);class c{constructor(){_(this,"isClosed",!1);_(this,"terminatingError");_(this,"observable",new(t())(s=>this.isClosed?(this.terminatingError?s.error(this.terminatingError):s.complete(),()=>{}):(this.subscribers.add(s),()=>{this.subscribers.delete(s)})));_(this,"subscribers",new Set)}[Symbol.observable](){return this}get closed(){return this.isClosed}next(s){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(p=>p.next(s))}error(s){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=s,this.subscribers.forEach(p=>p.error(s))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(s=>s.complete())}subscribe(s,p,h){const m=typeof s=="function"?{next:s,error:p,complete:h}:s;return this.observable.subscribe(m)}}class f{constructor(s){_(this,"isClosed");_(this,"currentValue");_(this,"terminatingError");_(this,"observable");_(this,"subscribers",new Set);this.isClosed=!1,this.currentValue=s,this.terminatingError=void 0,this.observable=new(t())(p=>this.isClosed?(this.terminatingError?p.error(this.terminatingError):p.complete(),()=>{}):(p.next(this.currentValue),this.subscribers.add(p),()=>{this.subscribers.delete(p)}))}[Symbol.observable](){return this}get closed(){return this.isClosed}next(s){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=s,this.subscribers.forEach(p=>p.next(s))}error(s){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=s,this.subscribers.forEach(p=>p.error(s))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(s=>s.complete())}subscribe(s,p,h){const m=typeof s=="function"?{next:s,error:p,complete:h}:s;return this.observable.subscribe(m)}}},88934:function(J,o,e){"use strict";e.d(o,{L:function(){return c}});var r=e(36964),t=e(2784);const c=f=>{const{children:E}=f,s=(0,r.useApi)(r.featureFlagsApiRef),p="with"in f?s.isActive(f.with):!s.isActive(f.without);return t.createElement(t.Fragment,null,p?E:null)};(0,r.attachComponentData)(c,"core.featureFlagged",!0)},63938:function(J,o,e){"use strict";e.d(o,{w:function(){return f}});var r=e(2784),t=e(10289),c=e(36964);const f=s=>{const p=(0,c.useApp)(),{NotFoundErrorPage:h}=p.getComponents(),m=(0,c.useElementFilter)(s.children,l=>l.getElements().flatMap(y=>{var S;let i=y.props.path;return i===""?[]:(i=(S=i==null?void 0:i.replace(/\/\*$/,""))!=null?S:"/",[{path:i,element:y,children:y.props.children?[{path:i==="/"?"/":"/*",element:y.props.children}]:void 0}])}).sort((y,i)=>i.path.localeCompare(y.path)).map(y=>(y.path=y.path==="/"?"/":`${y.path}/*`,y)));return m.push({element:r.createElement(h,null),path:"/*"}),(0,t.V$)(m)};var E=e(88934)},9118:function(J,o,e){"use strict";e.d(o,{Button:function(){return B},CodeSnippet:function(){return ze},Content:function(){return Ja},ContentHeader:function(){return ti},CreateButton:function(){return st},DependencyGraph:function(){return Re},DependencyGraphTypes:function(){return r},EmptyState:function(){return D},ErrorPage:function(){return si},ErrorPanel:function(){return Gt},Header:function(){return ro},HeaderIconLinkRow:function(){return Tr},HeaderLabel:function(){return pi},HeaderTabs:function(){return Qa},InfoCard:function(){return He},ItemCardGrid:function(){return Ci},ItemCardHeader:function(){return vi},Link:function(){return I},LogViewer:function(){return Or},MissingAnnotationEmptyState:function(){return Oe},OverflowTooltip:function(){return Nr},Page:function(){return oo},PageWithHeader:function(){return Ii},Progress:function(){return gr},ResponseErrorPanel:function(){return Ht},RoutedTabs:function(){return Xa},Select:function(){return wr},Sidebar:function(){return Xo},SidebarContext:function(){return yr},SidebarDivider:function(){return ds},SidebarItem:function(){return Ka},SidebarPage:function(){return Zo},SidebarPinStateContext:function(){return nr},SubvalueCell:function(){return Ts},SupportButton:function(){return No},Table:function(){return Gs},WarningPanel:function(){return Cn},sidebarConfig:function(){return kt},useContent:function(){return ma},useQueryParamState:function(){return Oo}});var r={};e.r(r),e.d(r,{Nm:function(){return _e},ht:function(){return at},LJ:function(){return nt}});var t=e(2784),c=e(36964),f=e(19928);function E(n){const[a,u]=useState([]),d=useApi(alertApiRef);if(useEffect(()=>{const L=d.alert$().subscribe(U=>u(K=>K.concat(U)));return()=>{L.unsubscribe()}},[d]),a.length===0)return null;const[g]=a,R=()=>{u(L=>L.filter(U=>U!==g))};return React.createElement(Snackbar,{open:!0,anchorOrigin:{vertical:"top",horizontal:"center"}},React.createElement(Alert,{action:React.createElement(IconButton,{color:"inherit",size:"small",onClick:R,"data-testid":"error-button-close"},React.createElement(CloseIcon,null)),severity:g.severity},React.createElement("span",null,g.message.toString(),a.length>1&&React.createElement("em",null,` (${a.length-1} older ${pluralize("message",a.length-1)})`))))}var s=e(79692),p=e(12420);const h=(0,s.Z)(n=>(0,p.Z)({avatar:{width:"4rem",height:"4rem",color:"#fff",fontWeight:n.typography.fontWeightBold,letterSpacing:"1px",textTransform:"uppercase"}}),{name:"BackstageAvatar"});function m(n){const{displayName:a,picture:u,customStyles:d}=n,g=h();return React.createElement(MaterialAvatar,{alt:a,src:u,className:g.avatar,style:{backgroundColor:stringToColor(a||u||""),...d}},a&&extractInitials(a))}var l=e(77277),y=e(86689),i=e(62833);const S=n=>/^([a-z+.-]+):/.test(n),b=n=>{var a;return n instanceof Array?n.map(b).join(" ").trim():typeof n=="object"&&n?b((a=n==null?void 0:n.props)==null?void 0:a.children):["string","number"].includes(typeof n)?String(n):""},I=t.forwardRef(({onClick:n,noTrack:a,...u},d)=>{const g=(0,c.useAnalytics)(),R=String(u.to),L=b(u.children)||R,U=S(R),K=U&&!!/^https?:/.exec(R),W=ne=>{n==null||n(ne),a||g.captureEvent("click",L,{attributes:{to:R}})};return U?t.createElement(y.Z,{ref:d,href:R,onClick:W,...K?{target:"_blank",rel:"noopener"}:{},...u}):t.createElement(y.Z,{ref:d,component:i.rU,onClick:W,...u})}),V=t.forwardRef((n,a)=>t.createElement(I,{ref:a,...n,color:"initial"})),B=t.forwardRef((n,a)=>t.createElement(l.Z,{ref:a,component:V,...n}));var P=e(60364),O=e(61837),x=e(80030),H=e(19353),q=e(95074);function oe(n){const{text:a,tooltipDelay:u=1e3,tooltipText:d="Text copied to clipboard"}=n,g=(0,c.useApi)(c.errorApiRef),[R,L]=(0,t.useState)(!1),[{error:U},K]=(0,q.Z)();(0,t.useEffect)(()=>{U&&g.post(U)},[U,g]);const W=ne=>{ne.stopPropagation(),L(!0),K(a)};return t.createElement(t.Fragment,null,t.createElement(x.ZP,{id:"copy-test-tooltip",title:d,placement:"top",leaveDelay:u,onClose:()=>L(!1),open:R},t.createElement(O.Z,{onClick:W},t.createElement(H.Z,null))))}var pe=e(70813),Ie=e(26639),me=e(39595);function ze(n){const{text:a,language:u,showLineNumbers:d=!1,highlightedNumbers:g,customStyle:R,showCopyCodeButton:L=!1}=n,U=(0,P.Z)(),K=U.palette.type==="dark"?Ie.Z:me.Z,W=U.palette.type==="dark"?"#256bf3":"#e6ffed";return t.createElement("div",{style:{position:"relative"}},t.createElement(pe.Z,{customStyle:R,language:u,style:K,showLineNumbers:d,wrapLines:!0,lineNumberStyle:{color:U.palette.textVerySubtle},lineProps:ne=>(g==null?void 0:g.includes(ne))?{style:{backgroundColor:W}}:{}},a),L&&t.createElement("div",{style:{position:"absolute",top:0,right:0}},t.createElement(oe,{text:a})))}var Pe=e(41156),Qe=e(88188);function st(n){const{title:a,to:u}=n,d=(0,Pe.Z)(g=>g.breakpoints.down("xs"));return u?d?t.createElement(O.Z,{component:i.rU,color:"primary",title:a,size:"small",to:u},t.createElement(Qe.Z,null)):t.createElement(l.Z,{component:i.rU,variant:"contained",color:"primary",to:u},a):null}var _e;(function(n){const a="TB";n.TOP_BOTTOM=a;const u="BT";n.BOTTOM_TOP=u;const d="LR";n.LEFT_RIGHT=d;const g="RL";n.RIGHT_LEFT=g})(_e||(_e={}));var gt;(function(n){const a="UL";n.UP_LEFT=a;const u="UR";n.UP_RIGHT=u;const d="DL";n.DOWN_LEFT=d;const g="DR";n.DOWN_RIGHT=g})(gt||(gt={}));var nt;(function(n){const a="network-simplex";n.NETWORK_SIMPLEX=a;const u="tight-tree";n.TIGHT_TREE=u;const d="longest-path";n.LONGEST_PATH=d})(nt||(nt={}));var at;(function(n){const a="l";n.LEFT=a;const u="r";n.RIGHT=u;const d="c";n.CENTER=d})(at||(at={}));var Rt=e(13387),zt=e(11105),Ot=e(97963),pt=e(46506),rt=e.n(pt),Tt=e(54073),Pt=e.n(Tt),xt=e(10368);const Nt=(0,s.Z)(n=>({node:{fill:n.palette.primary.light,stroke:n.palette.primary.light},text:{fill:n.palette.primary.contrastText}}),{name:"BackstageDependencyGraphDefaultNode"});function ht({node:{id:n}}){const a=Nt(),[u,d]=t.useState(0),[g,R]=t.useState(0),L=t.useRef(null);t.useLayoutEffect(()=>{if(L.current){let{height:ne,width:ce}=L.current.getBBox();ne=Math.round(ne),ce=Math.round(ce),(ne!==g||ce!==u)&&(d(ce),R(ne))}},[u,g]);const U=10,K=u+U*2,W=g+U*2;return t.createElement("g",null,t.createElement("rect",{className:a.node,width:K,height:W,rx:10}),t.createElement("text",{ref:L,className:a.text,y:W/2,x:K/2,textAnchor:"middle",alignmentBaseline:"middle"},n))}const It="arrow-marker",Ut="node",be="edge",ot="label",it=(0,xt.Z)(n=>({node:{transition:`${n.transitions.duration.shortest}ms`}}),{name:"BackstageDependencyGraphNode"}),Ct=n=>t.createElement(ht,{...n});function ae({render:n=Ct,setNode:a,node:u}){const{width:d,height:g,x:R=0,y:L=0}=u,U=u,K=it(),W=t.useRef(null);return t.useLayoutEffect(()=>{if(W.current){let{height:ne,width:ce}=W.current.getBBox();ne=Math.round(ne),ce=Math.round(ce),(ne!==g||ce!==d)&&a(u.id,{...u,height:ne,width:ce})}},[u,d,g,a]),t.createElement("g",{ref:W,"data-testid":Ut,className:K.node,transform:`translate(${R-d/2},${L-g/2})`},n({node:U}))}var te=e(55876),T=e(66481),C=e(19574),F=e.n(C);const j=(0,xt.Z)(n=>({text:{fill:n.palette.textContrast}}),{name:"BackstageDependencyGraphDefaultLabel"});function Y({edge:{label:n}}){const a=j();return t.createElement("text",{className:a.text,textAnchor:"middle"},n)}const le=(0,xt.Z)(n=>({path:{strokeWidth:2,stroke:n.palette.textSubtle,fill:"none",transition:`${n.transitions.duration.shortest}ms`},label:{transition:`${n.transitions.duration.shortest}ms`}}),{name:"BackstageDependencyGraphEdge"}),ve=n=>t.createElement(Y,{...n}),ye=te.Z().x(n=>n.x).y(n=>n.y).curve(T.Z);function Be({render:n=ve,setEdge:a,id:u,edge:d}){const{x:g=0,y:R=0,width:L,height:U,points:K}=d,W=d,ne=le(),ce=t.useRef(null);t.useLayoutEffect(()=>{if(ce.current){let{height:Se,width:Te}=ce.current.getBBox();Se=Math.round(Se),Te=Math.round(Te),(Se!==U||Te!==L)&&a(u,{...d,height:Se,width:Te})}},[d,U,L,a,u]);let Ae="";if(K){const Se=K.filter(Te=>F()(Te.x)&&F()(Te.y));Ae=ye(Se)||""}return t.createElement(t.Fragment,null,Ae&&t.createElement("path",{"data-testid":be,className:ne.path,markerEnd:`url(#${It})`,d:Ae}),W.label?t.createElement("g",{ref:ce,"data-testid":ot,className:ne.label,transform:`translate(${g},${R})`},n({edge:W})):null)}const Le="workspace";function Re(n){var ar,mo;const{edges:a,nodes:u,renderNode:d,direction:g=_e.TOP_BOTTOM,align:R,nodeMargin:L=50,edgeMargin:U=10,rankMargin:K=50,paddingX:W=0,paddingY:ne=0,acyclicer:ce,ranker:Ae=nt.NETWORK_SIMPLEX,labelPosition:Se=at.RIGHT,labelOffset:Te=10,edgeRanks:dt=1,edgeWeight:Bt=1,renderLabel:nn,defs:Yt,zoom:ct="enabled",...Ft}=n,Mt=(0,Ot.Z)(),[rn,Un]=t.useState(100),[vn,Ar]=t.useState(100),Lt=t.useRef(new(rt()).graphlib.Graph),[Zn,va]=t.useState(((ar=Lt.current.graph())==null?void 0:ar.width)||0),[Kn,Ra]=t.useState(((mo=Lt.current.graph())==null?void 0:mo.height)||0),[Qr,Xr]=t.useState([]),[Sa,sn]=t.useState([]),gn=Math.max(Zn,rn),Rn=Math.max(Kn,vn),Yn=t.useMemo(()=>Pt()(Jt=>{if(!Jt)return;const ln=zt.Z(Jt),jt=zt.Z(Jt.getElementById(Le));function In(){ln.call(Rt.sP().scaleExtent([1,10]).on("zoom",bn=>{bn.transform.x=Math.min(0,Math.max(bn.transform.x,gn-gn*bn.transform.k)),bn.transform.y=Math.min(0,Math.max(bn.transform.y,Rn-Rn*bn.transform.k)),jt.attr("transform",bn.transform)}))}ct==="enabled"?In():ct==="enable-on-click"&&ln.on("click",()=>In());const{width:Ln,height:kr}=Jt.getBoundingClientRect();rn!==Ln&&Un(Ln),vn!==kr&&Ar(kr)},100),[vn,rn,gn,Rn,ct]),_t=t.useCallback(()=>{const Jt=Lt.current.nodes(),ln=Lt.current.edges();Jt.forEach(jt=>{u.some(Ln=>Ln.id===jt)||Lt.current.removeNode(jt)}),ln.forEach(jt=>{a.some(Ln=>Ln.from===jt.v&&Ln.to===jt.w)||Lt.current.removeEdge(jt.v,jt.w)}),u.forEach(jt=>{const In=Lt.current.nodes().find(Ln=>jt.id===Ln);if(In&&Lt.current.node(In)){const{width:Ln,height:kr,x:bn,y:Vi}=Lt.current.node(In);Lt.current.setNode(In,{...jt,width:Ln,height:kr,x:bn,y:Vi})}else Lt.current.setNode(jt.id,{...jt,width:0,height:0})}),a.forEach(jt=>{Lt.current.setEdge(jt.from,jt.to,{...jt,label:jt.label,width:0,height:0,labelpos:Se,labeloffset:Te,weight:Bt,minlen:dt})})},[a,u,Se,Te,Bt,dt]),en=t.useMemo(()=>Pt()(()=>{rt().layout(Lt.current);const{height:Jt,width:ln}=Lt.current.graph(),jt=Math.max(0,Jt||0),In=Math.max(0,ln||0);va(In),Ra(jt),Xr(Lt.current.nodes()),sn(Lt.current.edges())},250,{leading:!0}),[]);t.useEffect(()=>(Lt.current.setGraph({rankdir:g,align:R,nodesep:L,edgesep:U,ranksep:K,marginx:W,marginy:ne,acyclicer:ce,ranker:Ae}),_t(),en(),en.cancel),[ce,R,g,U,W,ne,L,K,Ae,_t,en]);function rr(Jt,ln){return Lt.current.setNode(Jt,ln),en(),Lt.current}function Jn(Jt,ln){return Lt.current.setEdge(Jt,ln),en(),Lt.current}return t.createElement("svg",{ref:Yn,...Ft,width:"100%",height:Rn,viewBox:`0 0 ${gn} ${Rn}`},t.createElement("defs",null,t.createElement("marker",{id:It,viewBox:"0 0 24 24",markerWidth:"14",markerHeight:"14",refX:"16",refY:"12",orient:"auto",markerUnits:"strokeWidth"},t.createElement("path",{fill:Mt.palette.textSubtle,d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Yt),t.createElement("g",{id:Le},t.createElement("svg",{width:Zn,height:Kn,y:Rn/2-Kn/2,x:gn/2-Zn/2,viewBox:`0 0 ${Zn} ${Kn}`},Sa.map(Jt=>{const ln=Lt.current.edge(Jt);return ln?t.createElement(Be,{key:`${Jt.v}-${Jt.w}`,id:Jt,setEdge:Jn,render:nn,edge:ln}):null}),Qr.map(Jt=>{const ln=Lt.current.node(Jt);return ln?t.createElement(ae,{key:Jt,setNode:rr,render:d,node:ln}):null}))))}var Ee=e(72779),Fe=e.n(Ee);const St=(0,s.Z)(n=>{var a;return{root:{padding:n.spacing(0),marginBottom:n.spacing(0),marginTop:n.spacing(0),display:"flex",flexFlow:"row nowrap"},topPosition:{position:"relative",marginBottom:n.spacing(6),marginTop:-n.spacing(3),zIndex:"unset"},icon:{fontSize:20},content:{width:"100%",maxWidth:"inherit",flexWrap:"nowrap"},message:{display:"flex",alignItems:"center",color:n.palette.banner.text,"& a":{color:n.palette.banner.link}},info:{backgroundColor:n.palette.banner.info},error:{backgroundColor:n.palette.banner.error},warning:{backgroundColor:(a=n.palette.banner.warning)!=null?a:n.palette.banner.error}}},{name:"BackstageDismissableBanner"}),ut=n=>{var Se;const{variant:a,message:u,id:d,fixed:g=!1}=n,R=St(),U=useApi(storageApiRef).forBucket("notifications"),K=(Se=U.get("dismissedBanners"))!=null?Se:[],[W,ne]=useState(new Set(K)),ce=useObservable(U.observe$("dismissedBanners"));useEffect(()=>{var Te;if(ce==null?void 0:ce.newValue){const dt=(Te=ce==null?void 0:ce.newValue)!=null?Te:[];ne(new Set(dt))}},[ce==null?void 0:ce.newValue]);const Ae=()=>{U.set("dismissedBanners",[...W,d])};return React.createElement(Snackbar,{anchorOrigin:g?{vertical:"bottom",horizontal:"center"}:{vertical:"top",horizontal:"center"},open:!W.has(d),classes:{root:classNames(R.root,!g&&R.topPosition)}},React.createElement(SnackbarContent,{classes:{root:classNames(R.content,R[a]),message:R.message},message:u,action:[React.createElement(IconButton,{key:"dismiss",title:"Permanently dismiss this message",color:"inherit",onClick:Ae},React.createElement(Close,{className:R.icon}))]}))};var Ve=e(60905),se=e(90436),Ne=e(86284),et=e(96465),Ue=e(19133),Ze=e(3871);const Je=(0,s.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),G=({missing:n})=>{const a=Je();switch(n){case"field":return t.createElement("img",{src:Ne,className:a.generalImg,alt:"annotation is missing"});case"info":return t.createElement("img",{src:et,alt:"no Information",className:a.generalImg});case"content":return t.createElement("img",{src:Ue,alt:"create Component",className:a.generalImg});case"data":return t.createElement("img",{src:Ze,alt:"no Build",className:a.generalImg});default:return null}},A=(0,s.Z)(n=>({root:{backgroundColor:n.palette.background.default,padding:n.spacing(2,0,0,0)},action:{marginTop:n.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function D(n){const{title:a,description:u,missing:d,action:g}=n,R=A();return t.createElement(Ve.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:R.root,spacing:2},t.createElement(Ve.Z,{item:!0,xs:12,md:6},t.createElement(Ve.Z,{container:!0,direction:"column"},t.createElement(Ve.Z,{item:!0,xs:!0},t.createElement(se.Z,{variant:"h5"},a)),t.createElement(Ve.Z,{item:!0,xs:!0},t.createElement(se.Z,{variant:"body1"},u)),t.createElement(Ve.Z,{item:!0,xs:!0,className:R.action},g))),t.createElement(Ve.Z,{item:!0,xs:12,md:6,className:R.imageContainer},t.createElement(G,{missing:d})))}const z=`apiVersion: backstage.io/v1alpha1
2
- kind: Component
3
- metadata:
4
- name: example
5
- description: example.com
6
- annotations:
7
- ANNOTATION: value
8
- spec:
9
- type: website
10
- lifecycle: production
11
- owner: user:guest`,ee=(0,s.Z)(n=>({code:{borderRadius:6,margin:`${n.spacing(2)}px 0px`,background:n.palette.type==="dark"?"#444":"#fff"}}),{name:"BackstageMissingAnnotationEmptyState"});function Oe(n){const{annotation:a}=n,u=ee(),d=t.createElement(t.Fragment,null,"The ",t.createElement("code",null,a)," annotation is missing. You need to add the annotation to your component if you want to enable this tool.");return t.createElement(D,{missing:"field",title:"Missing Annotation",description:d,action:t.createElement(t.Fragment,null,t.createElement(se.Z,{variant:"body1"},"Add the annotation to your component YAML as shown in the highlighted example below:"),t.createElement("div",{className:u.code},t.createElement(ze,{text:z.replace("ANNOTATION",a),language:"yaml",showLineNumbers:!0,highlightedNumbers:[6,7],customStyle:{background:"inherit",fontSize:"115%"}})),t.createElement(l.Z,{color:"primary",component:I,to:"https://backstage.io/docs/features/software-catalog/well-known-annotations"},"Read more"))})}var ge=e(11776),Ce=e(38402),De=e(49378),$e=e(41128),Et=e(27616),re=e(8284),Z=e(70660),Q=e(91750),he=e(38016);const we=(n,a)=>(a.palette.type==="light"?$e._j:$e.$n)(a.palette[n].light,.6),je=(n,a)=>(a.palette.type==="light"?$e.$n:$e._j)(a.palette[n].light,.9),tt=(0,s.Z)(n=>({root:{marginRight:n.spacing(1),fill:({severity:a})=>we(a,n)}})),Dt=({severity:n})=>{const a=tt({severity:n});return t.createElement(Q.Z,{classes:a})},tn=({severity:n})=>{const a=tt({severity:n});return t.createElement(he.Z,{classes:a})},cn=(0,s.Z)(n=>({panel:{backgroundColor:({severity:a})=>je(a,n),color:({severity:a})=>we(a,n),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:a})=>we(a,n),fontWeight:"bold"},message:{width:"100%",display:"block",color:({severity:a})=>we(a,n),backgroundColor:({severity:a})=>je(a,n)},details:{width:"100%",display:"block",color:n.palette.textContrast,backgroundColor:n.palette.background.default,border:`1px solid ${n.palette.border}`,padding:n.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),$n=n=>n.charAt(0).toLocaleUpperCase("en-US")+n.slice(1);function Cn(n){const{severity:a="warning",title:u,message:d,children:g,defaultExpanded:R}=n,L=cn({severity:a}),U=$n(a)+(u?`: ${u}`:"");return t.createElement(Et.Z,{defaultExpanded:R!=null?R:!1,className:L.panel,role:"alert"},t.createElement(re.Z,{expandIcon:t.createElement(tn,{severity:a}),className:L.summary},t.createElement(Dt,{severity:a}),t.createElement(se.Z,{className:L.summaryText,variant:"subtitle1"},U)),(d||g)&&t.createElement(Z.Z,null,t.createElement(Ve.Z,{container:!0},d&&t.createElement(Ve.Z,{item:!0,xs:12},t.createElement(se.Z,{className:L.message,variant:"body1"},d)),g&&t.createElement(Ve.Z,{item:!0,xs:12,className:L.details},g))))}const yn=(0,s.Z)(n=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:n.spacing(2)},divider:{margin:n.spacing(2)}}),{name:"BackstageErrorPanel"}),yt=({error:n,message:a,stack:u,children:d})=>{const g=yn();return t.createElement(ge.Z,{dense:!0},t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Error",secondary:n}),t.createElement(oe,{text:n})),t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Message",secondary:a}),t.createElement(oe,{text:a})),u&&t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Stack Trace",secondary:u}),t.createElement(oe,{text:u})),d)};function Gt(n){const{title:a,error:u,defaultExpanded:d,children:g}=n;return t.createElement(Cn,{severity:"error",title:a!=null?a:u.message,defaultExpanded:d},t.createElement(yt,{error:u.name,message:u.message,stack:u.stack,children:g}))}var fn=e(85256);const On=(0,s.Z)(n=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:n.spacing(2)},divider:{margin:n.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function Ht(n){var Te;const{title:a,error:u,defaultExpanded:d}=n,g=On();if(u.name!=="ResponseError")return t.createElement(Gt,{title:a!=null?a:u.message,defaultExpanded:d,error:u});const{body:R,cause:L}=u,{request:U,response:K}=R,W=`${K.statusCode}: ${L.name}`,ne=U&&`${U.method} ${U.url}`,ce=L.message.replace(/\\n/g,`
12
- `),Ae=(Te=L.stack)==null?void 0:Te.replace(/\\n/g,`
13
- `),Se=JSON.stringify(R,void 0,2);return t.createElement(Gt,{title:a!=null?a:u.message,defaultExpanded:d,error:{name:W,message:ce,stack:Ae}},ne&&t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Request",secondary:U?`${ne}`:void 0}),t.createElement(oe,{text:ne})),t.createElement(t.Fragment,null,t.createElement(fn.Z,{component:"li",className:g.divider}),t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Full Error as JSON"})),t.createElement(ze,{language:"json",text:Se,showCopyCodeButton:!0})))}var wn=e(28316);function or(n){const a=document.createElement("div");return a.setAttribute("id",n),a}function sr(n){document.body.insertBefore(n,document.body.lastElementChild.nextElementSibling)}function vr(n){const a=useRef(null);useEffect(function(){const g=document.querySelector(`#${n}`),R=g||or(n);return g||sr(R),R.appendChild(a.current),function(){a.current.remove(),R.childNodes.length===-1&&R.remove()}},[n]);function u(){return a.current||(a.current=document.createElement("div")),a.current}return u()}var Wn=null;const Fn="core.calloutSeen";function Qn(){const[n,a]=useState(()=>{const d=localStorage.getItem(Fn);return d?JSON.parse(d):{}}),u=useCallback((d,g)=>{const R=localStorage.getItem(Fn),U={...R?JSON.parse(R):{},[d]:g};a(U),localStorage.setItem(Fn,JSON.stringify(U))},[]);return{states:n,setState:u}}function ir(n){const{states:a,setState:u}=Qn(),d=useCallback(()=>{u(n,!0)},[u,n]);return{seen:a[n]===!0,markSeen:d}}function Rr(n){const{seen:a,markSeen:u}=ir(n);return{show:a===!1,hide:u}}const zn=(0,s.Z)({"@keyframes pulsateSlightly":{"0%":{transform:"scale(1.0)"},"100%":{transform:"scale(1.1)"}},"@keyframes pulsateAndFade":{"0%":{transform:"scale(1.0)",opacity:.9},"100%":{transform:"scale(1.5)",opacity:0}},featureWrapper:{position:"relative"},backdrop:{zIndex:2e3,position:"fixed",overflow:"hidden",left:0,right:0,top:0,bottom:0},dot:{position:"absolute",backgroundColor:"transparent",borderRadius:"100%",border:"1px solid rgba(103, 146, 180, 0.98)",boxShadow:"0px 0px 0px 20000px rgba(0, 0, 0, 0.5)",zIndex:2001,transformOrigin:"center center",animation:"$pulsateSlightly 1744ms 1.2s cubic-bezier(0.4, 0, 0.2, 1) alternate infinite"},pulseCircle:{width:"100%",height:"100%",backgroundColor:"transparent",borderRadius:"100%",border:"2px solid white",zIndex:2001,transformOrigin:"center center",animation:"$pulsateAndFade 872ms 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite"},text:{position:"absolute",color:"white",zIndex:2003}},{name:"BackstageFeatureCalloutCircular"});function qr(n){const{featureId:a,title:u,description:d,children:g}=n,{show:R,hide:L}=useShowCallout(a),U=usePortal("core.callout"),K=useRef(null),[W,ne]=useState(),ce=zn(),Ae=useCallback(()=>{if(K.current){const Se=K.current.getBoundingClientRect(),Te=Math.max(Se.width,Se.height),dt=800,Bt=Se.x-(Te-Se.width)/2-dt,nn=Se.y-(Te-Se.height)/2-dt,Yt=Te+2*dt,ct=450,Ft=Se.x+Se.width/2-ct,Mt=Se.y-(Te-Se.height)/2+Te+20;ne({dotLeft:Bt,dotTop:nn,dotSize:Yt,borderWidth:dt,textTop:Mt,textLeft:Ft,textWidth:ct})}},[]);return useEffect(()=>(window.addEventListener("resize",Ae),window.addEventListener("scroll",Ae),()=>{window.removeEventListener("resize",Ae),window.removeEventListener("scroll",Ae)}),[Ae]),useLayoutEffect(Ae,[K.current,Ae]),R?React.createElement(React.Fragment,null,React.createElement("div",{className:ce.featureWrapper,ref:K},g),createPortal(React.createElement("div",{className:ce.backdrop},React.createElement(ClickAwayListener,{onClickAway:L},React.createElement(React.Fragment,null,React.createElement("div",{className:ce.dot,"data-testid":"dot",style:{left:W==null?void 0:W.dotLeft,top:W==null?void 0:W.dotTop,width:W==null?void 0:W.dotSize,height:W==null?void 0:W.dotSize,borderWidth:W==null?void 0:W.borderWidth},onClick:L,onKeyDown:L,role:"button",tabIndex:0},React.createElement("div",{className:ce.pulseCircle})),React.createElement("div",{className:ce.text,"data-testid":"text",style:{left:W==null?void 0:W.textLeft,top:W==null?void 0:W.textTop,width:W==null?void 0:W.textWidth}},React.createElement(Typography,{variant:"h2",paragraph:!0},u),React.createElement(Typography,null,d))))),U)):React.createElement(React.Fragment,null,g)}var Sr=e(35292);const lr=(0,s.Z)(n=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:"gray",cursor:"default"},primary:{color:n.palette.primary.main},secondary:{color:n.palette.secondary.main},label:{fontSize:"0.7rem",textTransform:"uppercase",fontWeight:600,letterSpacing:1.2}}),{name:"BackstageIconLinkVertical"});function Cr({color:n="primary",disabled:a=!1,href:u="#",icon:d=t.createElement(Sr.Z,null),label:g,onClick:R,title:L}){const U=lr();return a?t.createElement(y.Z,{title:L,className:Fe()(U.link,U.disabled),underline:"none"},d,t.createElement("span",{className:U.label},g)):t.createElement(y.Z,{title:L,className:Fe()(U.link,U[n]),to:u,component:I,onClick:R},d,t.createElement("span",{className:U.label},g))}const Xn=(0,s.Z)(n=>({links:{margin:n.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:n.spacing(3)}}),{name:"BackstageHeaderIconLinkRow"});function Tr(n){const{links:a}=n,u=Xn();return t.createElement("nav",{className:u.links},a.map((d,g)=>t.createElement(Cr,{key:g+1,...d})))}const kn=n=>{const a=n==="dark"?"16%":"97%";return`
14
- hsl(0, 0%, ${a}) 0%,
15
- hsla(0, 0%, ${a}, 0.987) 8.1%,
16
- hsla(0, 0%, ${a}, 0.951) 15.5%,
17
- hsla(0, 0%, ${a}, 0.896) 22.5%,
18
- hsla(0, 0%, ${a}, 0.825) 29%,
19
- hsla(0, 0%, ${a}, 0.741) 35.3%,
20
- hsla(0, 0%, ${a}, 0.648) 41.2%,
21
- hsla(0, 0%, ${a}, 0.55) 47.1%,
22
- hsla(0, 0%, ${a}, 0.45) 52.9%,
23
- hsla(0, 0%, ${a}, 0.352) 58.8%,
24
- hsla(0, 0%, ${a}, 0.259) 64.7%,
25
- hsla(0, 0%, ${a}, 0.175) 71%,
26
- hsla(0, 0%, ${a}, 0.104) 77.5%,
27
- hsla(0, 0%, ${a}, 0.049) 84.5%,
28
- hsla(0, 0%, ${a}, 0.013) 91.9%,
29
- hsla(0, 0%, ${a}, 0) 100%
30
- `},qn=100,Bn=10,cr=(0,s.Z)(n=>({root:{position:"relative",display:"flex",flexFlow:"row nowrap",alignItems:"center"},container:{overflow:"auto",scrollbarWidth:0,"&::-webkit-scrollbar":{display:"none"}},fade:{position:"absolute",width:qn,height:`calc(100% + ${Bn}px)`,transition:"opacity 300ms",pointerEvents:"none"},fadeLeft:{left:-Bn,background:`linear-gradient(90deg, ${kn(n.palette.type)})`},fadeRight:{right:-Bn,background:`linear-gradient(270deg, ${kn(n.palette.type)})`},fadeHidden:{opacity:0},button:{position:"absolute"},buttonLeft:{left:-n.spacing(2)},buttonRight:{right:-n.spacing(2)}}),{name:"BackstageHorizontalScrollGrid"});function xn(n){const[[a,u],d]=React.useState([0,0]);return React.useLayoutEffect(()=>{const g=n.current;if(!g){d([0,0]);return}const R=()=>{const L=g.scrollLeft,U=g.scrollWidth-g.offsetWidth-g.scrollLeft;d([L,U])};return R(),g.addEventListener("scroll",R),window.addEventListener("resize",R),()=>{g.removeEventListener("scroll",R),window.removeEventListener("resize",R)}},[n]),[a,u]}function mn(n,a,u){const[d,g]=React.useState(0);return React.useLayoutEffect(()=>{if(d===0)return;const R=performance.now(),L=requestAnimationFrame(U=>{if(!n.current)return;const K=U-R,W=Math.abs(d)*K/a,ce=Math.max(u,W)*Math.sign(d);n.current.scrollBy({left:ce});const Ae=d-ce;Math.sign(d)!==Math.sign(Ae)?g(0):g(Ae)});return()=>cancelAnimationFrame(L)},[n,d,a,u]),g}function an(n){const{scrollStep:a=100,scrollSpeed:u=50,minScrollDistance:d=5,children:g,...R}=n,L=cr(n),U=React.useRef(),[K,W]=xn(U),ne=mn(U,u,d),ce=Ae=>{!U.current||ne(Ae?a:-a)};return React.createElement("div",{...R,className:L.root},React.createElement(Grid,{container:!0,direction:"row",wrap:"nowrap",className:L.container,ref:U},g),React.createElement("div",{className:classNames(L.fade,L.fadeLeft,{[L.fadeHidden]:K===0})}),React.createElement("div",{className:classNames(L.fade,L.fadeRight,{[L.fadeHidden]:W===0})}),K>0&&React.createElement(IconButton,{title:"Scroll Left",onClick:()=>ce(!1),className:classNames(L.button,L.buttonLeft,{})},React.createElement(ChevronLeftIcon,null)),W>0&&React.createElement(IconButton,{title:"Scroll Right",onClick:()=>ce(!0),className:classNames(L.button,L.buttonRight,{})},React.createElement(ChevronRightIcon,null)))}const Pr=(0,s.Z)({alpha:{color:"#ffffff",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"},beta:{color:"#4d65cc",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"}},{name:"BackstageLifecycle"});function Ir(n){const a=Pr(n),{shorthand:u,alpha:d}=n;return u?React.createElement("span",{className:a[d?"alpha":"beta"],style:{fontSize:"120%"}},d?React.createElement(React.Fragment,null,"\u03B1"):React.createElement(React.Fragment,null,"\u03B2")):React.createElement("span",{className:a[d?"alpha":"beta"]},d?"Alpha":"Beta")}const Lr=(0,t.lazy)(()=>Promise.all([e.e(1110),e.e(8718)]).then(e.bind(e,98718)).then(n=>({default:n.RealLogViewer})));function Or(n){const{Progress:a}=(0,c.useApp)().getComponents();return t.createElement(t.Suspense,{fallback:t.createElement(a,null)},t.createElement(Lr,{...n}))}const ur=(0,s.Z)(n=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${n.palette.border}`},"& th, & td":{border:`1px solid ${n.palette.border}`,padding:n.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:n.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:n.palette.background.paper},"& tr":{backgroundColor:n.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:n.palette.background.default},"& a":{color:n.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),xr={code:({inline:n,className:a,children:u,...d})=>{const g=String(u).replace(/\n+$/,""),R=/language-(\w+)/.exec(a||"");return!n&&R?t.createElement(ze,{language:R[1],text:g}):t.createElement("code",{className:a,...d},u)}};function Dr(n){const{content:a,dialect:u="gfm",linkTarget:d}=n,g=ur();return React.createElement(ReactMarkdown,{remarkPlugins:u==="gfm"?[gfm]:[],className:g.markdown,children:a,components:xr,linkTarget:d})}var br=e(10179);const Fr=(0,s.Z)(n=>({root:{paddingLeft:n.spacing(3)}}),{name:"BackstageLoginRequestListItem"}),_r=({request:n,busy:a,setBusy:u})=>{const d=Fr(),[g,R]=useState(),L=async()=>{u(!0);try{await n.trigger()}catch(K){R(isError(K)?K.message:"An unspecified error occurred")}finally{u(!1)}},U=n.provider.icon;return React.createElement(ListItem,{button:!0,disabled:a,classes:{root:d.root}},React.createElement(ListItemAvatar,null,React.createElement(U,{fontSize:"large"})),React.createElement(ListItemText,{primary:n.provider.title,secondary:g&&React.createElement(Typography,{color:"error"},g)}),React.createElement(Button,{color:"primary",variant:"contained",onClick:L},"Log in"))};var Br=null;const Mr=(0,s.Z)(n=>({dialog:{paddingTop:n.spacing(1)},title:{minWidth:0},contentList:{padding:0},actionButtons:{padding:n.spacing(2,0)}}),{name:"OAuthRequestDialog"});function ea(n){const a=Mr(),[u,d]=useState(!1),g=useApi(oauthRequestApiRef),R=useObservable(useMemo(()=>g.authRequest$(),[g]),[]),L=()=>{R.forEach(U=>U.reject())};return React.createElement(Dialog,{open:Boolean(R.length),fullWidth:!0,maxWidth:"xs",classes:{paper:a.dialog}},React.createElement(DialogTitle,{classes:{root:a.title}},"Login Required"),React.createElement(DialogContent,{dividers:!0,classes:{root:a.contentList}},React.createElement(List,null,R.map(U=>React.createElement(LoginRequestListItem,{key:U.provider.title,request:U,busy:u,setBusy:d})))),React.createElement(DialogActions,{classes:{root:a.actionButtons}},React.createElement(Button,{onClick:L},"Reject All")))}var Mn=e(15277),dr=e.n(Mn),fr=e(90736);const mr=(0,s.Z)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function Nr(n){var L;const[a,u]=(0,t.useState)(!1),d=(0,fr.default)(),g=mr(),R=U=>{d()&&u(U)};return t.createElement(x.ZP,{title:(L=n.title)!=null?L:n.text||"",placement:n.placement,disableHoverListener:!a},t.createElement(dr(),{text:n.text,line:n.line,onToggled:R,containerClassName:g.container}))}var hr=e(67358);function gr(n){const[a,u]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const d=setTimeout(()=>u(!0),250);return()=>clearTimeout(d)},[]),a?t.createElement(hr.Z,{...n,"data-testid":"progress"}):t.createElement("div",{style:{display:"none"}})}var Ur=e(94339),Hn=e(14503),w=e(24579),N=e(32552),$=e(15459),X=e(95544),ue=e(27597);const ie=(0,s.Z)(n=>({root:{maxWidth:"fit-content",padding:n.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:n.palette.textSubtle},arrow:{color:n.palette.textSubtle}}),{name:"BackstageBottomLink"});function fe(n){const{link:a,title:u,onClick:d}=n,g=ie();return t.createElement("div",null,t.createElement(fn.Z,null),t.createElement(I,{to:a,onClick:d,underline:"none"},t.createElement(X.Z,{display:"flex",alignItems:"center",className:g.root},t.createElement(X.Z,{className:g.boxTitle,fontWeight:"fontWeightBold",m:1},t.createElement(se.Z,null,t.createElement("strong",null,u))),t.createElement(ue.Z,{className:g.arrow}))))}const Ge=n=>{const{slackChannel:a}=n;if(a){if(typeof a=="string")return t.createElement(t.Fragment,null,"Please contact ",a," for help.");if(!a.href)return t.createElement(t.Fragment,null,"Please contact ",a.name," for help.")}else return null;return t.createElement(B,{to:a.href,variant:"contained"},a.name)},We=class extends t.Component{constructor(a){super(a);this.state={error:void 0,errorInfo:void 0}}componentDidCatch(a,u){console.error(`ErrorBoundary, error: ${a}, info: ${u}`),this.setState({error:a,errorInfo:u})}render(){const{slackChannel:a,children:u}=this.props,{error:d}=this.state;return d?t.createElement(Gt,{title:"Something Went Wrong",error:d},t.createElement(Ge,{slackChannel:a})):u}},Ke=(0,s.Z)(n=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:n.spacing(2,2,2,2.5)},headerTitle:{fontWeight:700},headerSubheader:{paddingTop:n.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),lt=(0,$.Z)(n=>({root:{display:"inline-block",padding:n.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(Hn.Z),Ye={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function He(n){const{title:a,subheader:u,divider:d=!0,deepLink:g,slackChannel:R,errorBoundaryProps:L,variant:U,children:K,headerStyle:W,headerProps:ne,icon:ce,action:Ae,actionsClassName:Se,actions:Te,cardClassName:dt,actionsTopRight:Bt,className:nn,noPadding:Yt,titleTypographyProps:ct}=n,Ft=Ke();let Mt={},rn={};U&&U.split(/[\s]+/g).forEach(Lt=>{Mt={...Mt,...Ye.card[Lt]},rn={...rn,...Ye.cardContent[Lt]}});const Un=()=>t.createElement("div",{className:Ft.headerSubheader},u&&t.createElement("div",{className:Ft.subheader},u),ce),vn=L||(R?{slackChannel:R}:{});return t.createElement(Ur.Z,{style:Mt,className:nn},t.createElement(We,{...vn},a&&t.createElement(N.Z,{classes:{root:Ft.header,title:Ft.headerTitle,subheader:Ft.headerSubheader,avatar:Ft.headerAvatar,action:Ft.headerAction,content:Ft.headerContent},title:a,subheader:Un(),action:Ae,style:{...W},titleTypographyProps:ct,...ne}),Bt&&t.createElement(lt,null,Bt),d&&t.createElement(fn.Z,null),t.createElement(w.Z,{className:Fe()(dt,{[Ft.noPadding]:Yt}),style:rn},K),Te&&t.createElement(Hn.Z,{className:Se},Te),g&&t.createElement(fe,{...g})))}var At=e(39307);const bt=(0,s.Z)(n=>({root:{position:"relative",lineHeight:0},overlay:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -60%)",fontSize:45,fontWeight:"bold",color:n.palette.textContrast},description:{fontSize:"100%",top:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"absolute",wordBreak:"break-all",display:"inline-block"},circle:{width:"80%",transform:"translate(10%, 0)"},colorUnknown:{}}),{name:"BackstageGauge"}),Zt={fractional:!0,inverse:!1,unit:"%",max:100},$t=({palette:n,value:a,inverse:u,max:d})=>{if(isNaN(a))return"#ddd";const g=d||Zt.max,R=u?g-a:a;return R<g/3?n.status.error:R<g*(2/3)?n.status.warning:n.status.ok};function Vt(n){const[a,u]=useState(null),{getColor:d=$t}=n,g=bt(n),{palette:R}=useTheme(),{value:L,fractional:U,inverse:K,unit:W,max:ne,description:ce}={...Zt,...n},Ae=U?Math.round(L*ne):L,Se=ne!==100?Math.round(L):Ae,[Te,dt]=useState(!1);return useEffect(()=>{const Bt=a,nn=()=>dt(!0),Yt=()=>dt(!1);return Bt&&ce?(Bt.addEventListener("mouseenter",nn),Bt.addEventListener("mouseleave",Yt),()=>{Bt.removeEventListener("mouseenter",nn),Bt.removeEventListener("mouseleave",Yt)}):()=>{dt(!1)}},[ce,a]),React.createElement("div",{ref:u,className:g.root},React.createElement(Circle,{strokeLinecap:"butt",percent:Ae,strokeWidth:12,trailWidth:12,strokeColor:d({palette:R,value:Se,inverse:K,max:ne}),className:g.circle}),ce&&Te?React.createElement("div",{className:g.description},ce):React.createElement("div",{className:g.overlay},isNaN(L)?"N/A":`${Se}${W}`))}const qt=(0,s.Z)({root:{height:"100%",width:250}},{name:"BackstageGaugeCard"});function on(n){const a=qt(n),{title:u,subheader:d,progress:g,inverse:R,deepLink:L,description:U,icon:K,variant:W,getColor:ne}=n,ce={inverse:R,description:U,getColor:ne,value:g};return React.createElement("div",{className:a.root},React.createElement(InfoCard,{title:u,subheader:d,deepLink:L,variant:W,icon:K},React.createElement(Gauge,{...ce})))}function wt(n){const{value:a,getColor:u=getProgressColor}=n,{palette:d}=useTheme();if(isNaN(a))return null;let g=Math.round(a*100*100)/100;g>100&&(g=100);const R=u({palette:d,value:g,inverse:!1,max:100});return React.createElement(Tooltip,{title:`${g}%`},React.createElement("span",null,React.createElement(Line,{percent:g,strokeWidth:4,trailWidth:4,strokeColor:R})))}var Tn=e(21324),Kt=e(7089),Qt=e(1292),Dn=e(42494),_n=e(74603),ta=e(12231),na=e(73698),Zr=e(72379);const Ca=(0,s.Z)(()=>(0,p.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var ra=()=>{const n=Ca();return t.createElement(Zr.Z,{className:n.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"}))};const aa=(0,s.Z)(()=>(0,p.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var oa=()=>{const n=aa();return t.createElement(Zr.Z,{className:n.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"}))};const sa=(0,$.Z)(n=>(0,p.Z)({root:{"label + &":{marginTop:n.spacing(3)}},input:{borderRadius:4,position:"relative",backgroundColor:n.palette.background.paper,border:"1px solid #ced4da",fontSize:16,padding:"10px 26px 10px 12px",transition:n.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:n.palette.background.paper,borderRadius:4}}}),{name:"BackstageSelectInputBase"})(_n.Z),$r=(0,s.Z)(n=>(0,p.Z)({formControl:{margin:`${n.spacing(1)} 0px`,maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:14,fontFamily:n.typography.fontFamily,color:n.palette.text.primary,"&.Mui-focused":{color:n.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function wr(n){const{multiple:a,items:u,label:d,placeholder:g,selected:R,onChange:L,triggerReset:U,native:K=!1,disabled:W=!1}=n,ne=$r(),[ce,Ae]=(0,t.useState)(R||(a?[]:"")),[Se,Te]=(0,t.useState)(!1);(0,t.useEffect)(()=>{Ae(a?[]:"")},[U,a]),(0,t.useEffect)(()=>{R!==void 0&&Ae(R)},[R]);const dt=ct=>{Ae(ct.target.value),L(ct.target.value)},Bt=ct=>{if(W){ct.preventDefault();return}Te(Ft=>a&&!(ct.target instanceof HTMLElement)?!0:!Ft)},nn=()=>{Te(!1)},Yt=ct=>()=>{const Ft=ce.filter(Mt=>Mt!==ct);Ae(Ft),L(Ft)};return t.createElement("div",{className:ne.root},t.createElement(se.Z,{variant:"button"},d),t.createElement(Qt.Z,{onClickAway:nn},t.createElement(Dn.Z,{className:ne.formControl},t.createElement(na.Z,{value:ce,native:K,disabled:W,"data-testid":"select",displayEmpty:!0,multiple:a,onChange:dt,onClick:Bt,open:Se,input:t.createElement(sa,null),renderValue:ct=>{var Ft;return a&&ce.length!==0?t.createElement("div",{className:ne.chips},ct.map(Mt=>{var rn,Un;return t.createElement(Kt.Z,{key:(rn=u.find(vn=>vn.value===Mt))==null?void 0:rn.value,label:(Un=u.find(vn=>vn.value===Mt))==null?void 0:Un.label,clickable:!0,onDelete:Yt(Mt),className:ne.chip})})):t.createElement(se.Z,null,ce.length===0?g||"":(Ft=u.find(Mt=>Mt.value===ct))==null?void 0:Ft.label)},IconComponent:()=>Se?t.createElement(oa,null):t.createElement(ra,null),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}},g&&!a&&t.createElement(ta.Z,{value:[]},g),K?u&&u.map(ct=>t.createElement("option",{value:ct.value,key:ct.value},ct.label)):u&&u.map(ct=>t.createElement(ta.Z,{key:ct.value,value:ct.value},a&&t.createElement(Tn.Z,{color:"primary",checked:ce.includes(ct.value)||!1,className:ne.checkbox}),ct.label))))))}const pr=()=>{},ia=t.createContext({stepperLength:0,stepIndex:0,setStepIndex:pr,stepHistory:[],setStepHistory:pr,onStepChange:pr});function go(n){const{children:a,elevated:u,onStepChange:d,activeStep:g=0}=n,[R,L]=useState(g),[U,K]=useState([0]);useEffect(()=>{L(g)},[g]);const W=[];let ne;return Children.forEach(a,ce=>{isValidElement(ce)&&(ce.props.end?ne=ce:W.push(ce))}),React.createElement(React.Fragment,null,React.createElement(ia.Provider,{value:{stepIndex:R,setStepIndex:L,stepHistory:U,setStepHistory:K,onStepChange:d,stepperLength:Children.count(a)}},React.createElement(MuiStepper,{activeStep:R,orientation:"vertical",elevation:u?2:0},W)),R>=Children.count(a)-1&&ne)}const la=(0,s.Z)(n=>({root:{marginTop:n.spacing(3),"& button":{marginRight:n.spacing(1)}}}),{name:"BackstageSimpleStepperFooter"}),v=({text:n,handleClick:a})=>React.createElement(Button,{onClick:a},n||"Reset"),M=({text:n,handleClick:a,disabled:u,last:d,stepIndex:g})=>React.createElement(Button,{variant:"contained",color:"primary",disabled:u,"data-testid":`nextButton-${g}`,onClick:a},n||(d?"Finish":"Next")),k=({text:n,handleClick:a,disabled:u,stepIndex:d})=>React.createElement(Button,{onClick:a,"data-testid":`backButton-${d}`,disabled:u},n||"Back"),de=({actions:n={},children:a})=>{const u=la(),{stepperLength:d,stepIndex:g,setStepIndex:R,stepHistory:L,setStepHistory:U,onStepChange:K}=useContext(VerticalStepperContext),W=(Se,Te)=>{Te&&Te(),K&&K(g,Se),R(Se)},ne=()=>{const Se=n.nextStep?n.nextStep(g,d-1):g+1;W(Se,n.onNext),U([...L,Se])},ce=()=>{L.pop(),W(L[L.length-1],n.onBack),U([...L])},Ae=()=>{W(0,n.onRestart),U([0])};return React.createElement("div",{className:u.root},[void 0,!0].includes(n.showBack)&&g!==0&&React.createElement(k,{text:n.backText,handleClick:ce,disabled:g===0,stepIndex:g}),[void 0,!0].includes(n.showNext)&&React.createElement(M,{text:n.nextText,handleClick:ne,disabled:!!d&&g>=d||!!n.canNext&&!n.canNext(),stepIndex:g}),n.showRestart&&g!==0&&React.createElement(v,{text:n.restartText,handleClick:Ae,stepIndex:g}),a)},Me=(0,s.Z)(n=>({end:{padding:n.spacing(3)}}),{name:"SimpleStepperStep"});function qe(n){const{title:a,children:u,end:d,actions:g,...R}=n,L=Me();return d?React.createElement("div",{className:L.end},React.createElement(Typography,{variant:"h6"},a),u,React.createElement(SimpleStepperFooter,{actions:{...g||{},showNext:!1}})):React.createElement(MuiStep,{...R},React.createElement(StepLabel,null,React.createElement(Typography,{variant:"h6"},a)),React.createElement(StepContent,null,u,React.createElement(SimpleStepperFooter,{actions:g})))}const xe=(0,s.Z)(n=>({status:{fontWeight:500,"&::before":{width:"0.7em",height:"0.7em",display:"inline-block",marginRight:8,borderRadius:"50%",content:'""'}},ok:{"&::before":{backgroundColor:n.palette.status.ok}},warning:{"&::before":{backgroundColor:n.palette.status.warning}},error:{"&::before":{backgroundColor:n.palette.status.error}},pending:{"&::before":{backgroundColor:n.palette.status.pending}},running:{"&::before":{backgroundColor:n.palette.status.running}},aborted:{"&::before":{backgroundColor:n.palette.status.aborted}}}),{name:"BackstageStatus"});function ke(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.ok),"aria-label":"Status ok","aria-hidden":"true",...n})}function ft(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.warning),"aria-label":"Status warning","aria-hidden":"true",...n})}function mt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.error),"aria-label":"Status error","aria-hidden":"true",...n})}function Xt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.pending),"aria-label":"Status pending","aria-hidden":"true",...n})}function Wt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.running),"aria-label":"Status running","aria-hidden":"true",...n})}function vt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.aborted),"aria-label":"Status aborted","aria-hidden":"true",...n})}var En=e(74600),un=e(15584);const Nn=n=>(0,p.Z)({root:{fontWeight:"bolder",whiteSpace:"nowrap",paddingRight:n.spacing(4),border:"0",verticalAlign:"top"}}),er={root:{border:"0",verticalAlign:"top"}},Vn=n=>(0,p.Z)({root:{listStyle:"none",margin:n.spacing(0,0,-1,0),padding:"0"}}),jn=n=>(0,p.Z)({root:{padding:n.spacing(0,0,1,0)},random:{}}),Wr=(0,$.Z)(Nn,{name:"BackstageMetadataTableTitleCell"})(un.Z),ca=(0,$.Z)(er,{name:"BackstageMetadataTableCell"})(un.Z),Gn=({dense:n,children:a})=>React.createElement(Table,{size:n?"small":"medium"},React.createElement(TableBody,null,a)),Ki=({title:n,children:a,...u})=>React.createElement(TableRow,null,n&&React.createElement(Wr,null,n),React.createElement(ca,{colSpan:n?1:2,...u},a)),Ia=(0,$.Z)(Vn,{name:"BackstageMetadataTableList"})(({classes:n,children:a})=>t.createElement("ul",{className:n.root},a)),Yi=(0,$.Z)(jn,{name:"BackstageMetadataTableListItem"})(({classes:n,children:a})=>t.createElement("li",{className:n.root},a)),La=(0,p.Z)({root:{margin:"0 0",listStyleType:"none"}}),po=n=>(0,p.Z)({root:{...La.root,paddingLeft:n.spacing(1)}}),Oa=(0,$.Z)(La,{name:"BackstageStructuredMetadataTableList"})(({classes:n,children:a})=>t.createElement(Ia,{classes:n},a)),xa=(0,$.Z)(po,{name:"BackstageStructuredMetadataTableNestedList"})(({classes:n,children:a})=>t.createElement(Ia,{classes:n},a));function yo(n,a){const u=n.map((d,g)=>React.createElement(MetadataListItem,{key:g},ua(d)));return a?React.createElement(xa,null,u):React.createElement(Oa,null,u)}function Eo(n,a,u){const d=Object.keys(n).map(g=>{const R=ua(n[g],!0),L=u&&u.titleFormat?u.titleFormat(g):startCase(g);return React.createElement(MetadataListItem,{key:g},`${L}: `,R)});return a?React.createElement(xa,null,d):React.createElement(Oa,null,d)}function ua(n,a,u){return React.isValidElement(n)?React.createElement(Fragment,null,n):typeof n=="object"&&!Array.isArray(n)?Eo(n,a,u):Array.isArray(n)?yo(n,u):typeof n=="boolean"?React.createElement(Fragment,null,n?"\u2705":"\u274C"):React.createElement(Fragment,null,n)}const Ao=({value:n,options:a})=>React.createElement(Fragment,null,ua(n,a)),vo=({title:n,value:a,options:u})=>React.createElement(MetadataTableItem,{title:u&&u.titleFormat?u.titleFormat(n):startCase(n)},React.createElement(Ao,{value:a,options:u}));function Ro(n,a){return Object.keys(n).map(u=>React.createElement(vo,{key:u,title:u,value:n[u],options:a}))}function Ji(n){const{metadata:a,dense:u=!0,options:d}=n,g=Ro(a,d||{});return React.createElement(MetadataTable,{dense:u},g)}var So=e(49429),Co=e(86136),Da=e(79784),tr=e(76635),To=e(19126),zr=e.n(To),Po=e(48760);function Io(n){return zr().stringify(n,{strictNullHandling:!0})}function ba(n){return zr().parse(n,{ignoreQueryPrefix:!0,strictNullHandling:!0})}function Fa(n,a){return ba(n)[a]}function Lo(n,a,u){const d={...ba(n),[a]:u};return Io(d)}function Oo(n,a=250){const[u,d]=(0,i.lr)(),g=u.toString(),[R,L]=(0,t.useState)(Fa(g,n));return(0,t.useEffect)(()=>{const U=Fa(g,n);L(K=>(0,tr.isEqual)(U,K)?K:U)},[g,L,n]),(0,Po.Z)(()=>{const U=Lo(g,n,R);g!==U&&d(U,{replace:!0})},a,[d,R,g,n]),[R,L]}const xo={url:"https://github.com/backstage/backstage/issues",items:[{title:"Support Not Configured",icon:"warning",links:[{title:"Add `app.support` config key",url:"https://github.com/andrewthauer/backstage/blob/master/app-config.yaml"}]}]};function Ba(){const a=(0,c.useApi)(c.configApiRef).getOptionalConfig("app.support");return a?{url:a.getString("url"),items:a.getConfigArray("items").flatMap(u=>{var d;return{title:u.getString("title"),icon:u.getOptionalString("icon"),links:((d=u.getOptionalConfigArray("links"))!=null?d:[]).flatMap(g=>({url:g.getString("url"),title:g.getString("title")}))}})}:xo}var Do=e(80079);function Pn(n,a){const d=(0,c.useApp)().getSystemIcon(n);return d?t.createElement(d,{...a}):t.createElement(Do.Z,{...a})}function Qi(n){return Pn("brokenImage",n)}function Xi(n){return Pn("catalog",n)}function ki(n){return Pn("chat",n)}function qi(n){return Pn("dashboard",n)}function _i(n){return Pn("docs",n)}function el(n){return Pn("email",n)}function tl(n){return Pn("github",n)}function nl(n){return Pn("group",n)}function Hr(n){return Pn("help",n)}function rl(n){return Pn("user",n)}function al(n){return Pn("warning",n)}const bo=(0,s.Z)({popoverList:{minWidth:260,maxWidth:400}},{name:"BackstageSupportButton"}),Fo=({icon:n})=>{var d;const a=(0,c.useApp)(),u=n&&(d=a.getSystemIcon(n))!=null?d:Hr;return t.createElement(u,null)},Bo=({link:n})=>{var a;return t.createElement(I,{to:n.url},(a=n.title)!=null?a:n.url)},Mo=({item:n})=>{var a;return t.createElement(Ce.Z,null,t.createElement(Co.Z,null,t.createElement(Fo,{icon:n.icon})),t.createElement(De.Z,{primary:n.title,secondary:(a=n.links)==null?void 0:a.reduce((u,d,g)=>[...u,g>0&&t.createElement("br",{key:g}),t.createElement(Bo,{link:d,key:d.url})],[])}))};function No(n){const{title:a,children:u}=n,{items:d}=Ba(),[g,R]=(0,t.useState)(!1),[L,U]=(0,t.useState)(null),K=bo(),W=(0,Pe.Z)(Ae=>Ae.breakpoints.down("sm")),ne=Ae=>{U(Ae.currentTarget),R(!0)},ce=()=>{R(!1)};return t.createElement(t.Fragment,null,t.createElement(X.Z,{display:"flex",ml:1},W?t.createElement(O.Z,{color:"primary",size:"small",onClick:ne,"data-testid":"support-button"},t.createElement(Hr,null)):t.createElement(l.Z,{"data-testid":"support-button",color:"primary",onClick:ne,startIcon:t.createElement(Hr,null)},"Support")),t.createElement(Da.ZP,{"data-testid":"support-button-popover",open:g,anchorEl:L,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:ce},t.createElement(ge.Z,{className:K.popoverList},a&&t.createElement(Ce.Z,{alignItems:"flex-start"},t.createElement(se.Z,{variant:"subtitle1"},a)),t.Children.map(u,(Ae,Se)=>t.createElement(Ce.Z,{alignItems:"flex-start",key:`child-${Se}`},Ae)),d&&d.map((Ae,Se)=>t.createElement(Mo,{item:Ae,key:`item-${Se}`}))),t.createElement(So.Z,null,t.createElement(l.Z,{color:"primary",onClick:ce},"Close"))))}var da=e(18671),An=e(10289);const Vr=72,Ma=24,Na=18,kt={drawerWidthClosed:Vr,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:Vr,iconSize:Vr-Ma*2,iconPadding:Ma,selectedIndicatorWidth:3,userBadgePadding:Na,userBadgeDiameter:Vr-Na*2,mobileSidebarHeight:56},fa={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:kt.defaultOpenDelayMs+200},ol="@backstage/core/sidebar-intro-dismissed",yr=(0,t.createContext)({isOpen:!1,setOpen:()=>{}}),Ua=(0,t.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}});var jr;(function(n){const a="sidebarPinState";n.SIDEBAR_PIN_STATE=a})(jr||(jr={}));const Za={getSidebarPinState(){let n;try{n=JSON.parse(window.localStorage.getItem(jr.SIDEBAR_PIN_STATE)||"true")}catch{return!0}return!!n},setSidebarPinState(n){return window.localStorage.setItem(jr.SIDEBAR_PIN_STATE,JSON.stringify(n))}},Uo=(0,s.Z)(n=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[n.breakpoints.up("sm")]:{paddingLeft:({isPinned:a})=>a?kt.drawerWidthOpen:kt.drawerWidthClosed},[n.breakpoints.down("xs")]:{paddingBottom:kt.mobileSidebarHeight}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),nr=(0,t.createContext)({isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1}),$a=(0,t.createContext)({content:{contentRef:void 0}});function Zo(n){const[a,u]=(0,t.useState)(()=>Za.getSidebarPinState()),d=(0,t.useRef)(null),g=(0,t.useMemo)(()=>({content:{contentRef:d}}),[d]);(0,t.useEffect)(()=>{Za.setSidebarPinState(a)},[a]);const R=(0,Pe.Z)(K=>K.breakpoints.down("xs"),{noSsr:!0}),L=()=>u(!a),U=Uo({isPinned:a});return t.createElement(nr.Provider,{value:{isPinned:a,toggleSidebarPinState:L,isMobile:R}},t.createElement($a.Provider,{value:g},t.createElement("div",{className:U.root},n.children)))}function ma(){const{content:n}=(0,t.useContext)($a);return{focusContent:(0,t.useCallback)(()=>{var u,d;(d=(u=n==null?void 0:n.contentRef)==null?void 0:u.current)==null||d.focus()},[n]),contentRef:n==null?void 0:n.contentRef}}var $o=e(50023),wo=e(4190),Wo=e(87685),zo=e(44882),Ho=e(57998);const Vo=(0,s.Z)(n=>({root:{flexGrow:0,margin:n.spacing(0,2),color:n.palette.navigation.color},selected:{color:`${n.palette.navigation.selectedColor}!important`,borderTop:`solid ${kt.selectedIndicatorWidth}px ${n.palette.navigation.indicator}`,marginTop:"-1px"},label:{display:"none"}})),jo=n=>{const{to:a,label:u,icon:d,value:g}=n,R=Vo(),L=(0,An.TH)(),{selectedMenuItemIndex:U,setSelectedMenuItemIndex:K}=(0,t.useContext)(za),W=(ce,Ae)=>{K(Ae===U?-1:Ae)},ne=g===U&&U>=0||g!==U&&!(U>=0)&&a===L.pathname;return t.createElement(Ho.Z,{label:u,icon:d,component:I,to:a||L.pathname,onChange:W,value:g,selected:ne,classes:R})},wa=n=>{const{children:a,to:u,label:d,icon:g,value:R}=n,{isMobile:L}=(0,t.useContext)(nr);return L?t.createElement(jo,{to:u,label:d,icon:g,value:R}):t.createElement(t.Fragment,null,a)},Wa=(0,s.Z)(n=>({root:{position:"fixed",backgroundColor:n.palette.navigation.background,color:n.palette.navigation.color,bottom:0,left:0,right:0,zIndex:n.zIndex.snackbar,borderTop:"1px solid #383838"},overlay:{background:n.palette.navigation.background,width:"100%",bottom:`${kt.mobileSidebarHeight}px`,height:`calc(100% - ${kt.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"},overlayHeader:{display:"flex",color:n.palette.bursts.fontColor,alignItems:"center",justifyContent:"space-between",padding:n.spacing(2,3)},overlayHeaderClose:{color:n.palette.bursts.fontColor},marginMobileSidebar:{marginBottom:`${kt.mobileSidebarHeight}px`}})),Go=n=>(0,tr.orderBy)(n,({props:{priority:a}})=>Number.isInteger(a)?a:-1,"desc"),Ko=t.createElement(wa).type,Yo=({children:n,label:a="Menu",open:u,onClose:d})=>{const g=Wa();return t.createElement(wo.ZP,{anchor:"bottom",open:u,onClose:d,ModalProps:{BackdropProps:{classes:{root:g.marginMobileSidebar}}},classes:{root:g.marginMobileSidebar,paperAnchorBottom:g.overlay}},t.createElement(X.Z,{className:g.overlayHeader},t.createElement(se.Z,{variant:"h3"},a),t.createElement(O.Z,{onClick:d,classes:{root:g.overlayHeaderClose}},t.createElement(Wo.Z,null))),t.createElement(X.Z,null,n))},za=(0,t.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}}),Jo=n=>{const{children:a}=n,u=Wa(),d=(0,An.TH)(),[g,R]=(0,t.useState)(-1);(0,t.useEffect)(()=>{R(-1)},[d.pathname]);let L=(0,c.useElementFilter)(a,K=>K.getElements().filter(W=>W.type===Ko));if(a)L.length?L=Go(L):L.push(t.createElement(wa,{key:"default_menu",icon:t.createElement(zo.Z,null)},a));else return null;const U=g>=0&&!L[g].props.to;return t.createElement(yr.Provider,{value:{isOpen:!0,setOpen:()=>{}}},t.createElement(za.Provider,{value:{selectedMenuItemIndex:g,setSelectedMenuItemIndex:R}},t.createElement(Yo,{label:L[g]&&L[g].props.label,open:U,onClose:()=>R(-1)},L[g]&&L[g].props.children),t.createElement($o.Z,{className:u.root,"data-testid":"mobile-sidebar-root"},L)))},Ha=(0,s.Z)(n=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:n.zIndex.appBar,background:n.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",width:kt.drawerWidthClosed,transition:n.transitions.create("width",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},drawerOpen:{width:kt.drawerWidthOpen,transition:n.transitions.create("width",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shorter})},visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var hn;(function(n){const a=0;n[n.Closed=a]="Closed";const u=a+1;n[n.Idle=u]="Idle";const d=u+1;n[n.Open=d]="Open"})(hn||(hn={}));const Qo=n=>{const{openDelayMs:a=kt.defaultOpenDelayMs,closeDelayMs:u=kt.defaultCloseDelayMs,disableExpandOnHover:d,children:g}=n,R=Ha(),L=(0,Pe.Z)(Bt=>Bt.breakpoints.down("md"),{noSsr:!0}),[U,K]=(0,t.useState)(hn.Closed),W=(0,t.useRef)(),{isPinned:ne,toggleSidebarPinState:ce}=(0,t.useContext)(nr),Ae=()=>{ne||d||(W.current&&(clearTimeout(W.current),W.current=void 0),U!==hn.Open&&!L&&(W.current=window.setTimeout(()=>{W.current=void 0,K(hn.Open)},a),K(hn.Idle)))},Se=()=>{ne||d||(W.current&&(clearTimeout(W.current),W.current=void 0),U===hn.Idle?K(hn.Closed):U===hn.Open&&(W.current=window.setTimeout(()=>{W.current=void 0,K(hn.Closed)},u)))},Te=U===hn.Open&&!L||ne,dt=Bt=>{Bt?(K(hn.Open),ce()):(K(hn.Closed),ce())};return t.createElement("div",{style:{}},t.createElement(ko,null),t.createElement(yr.Provider,{value:{isOpen:Te,setOpen:dt}},t.createElement("div",{className:R.root,"data-testid":"sidebar-root",onMouseEnter:d?()=>{}:Ae,onFocus:d?()=>{}:Ae,onMouseLeave:d?()=>{}:Se,onBlur:d?()=>{}:Se},t.createElement("div",{className:Fe()(R.drawer,{[R.drawerOpen]:Te})},g))))},Xo=n=>{const{children:a,openDelayMs:u,closeDelayMs:d,disableExpandOnHover:g}=n,{isMobile:R}=(0,t.useContext)(nr);return R?t.createElement(Jo,null,a):t.createElement(Qo,{openDelayMs:u,closeDelayMs:d,disableExpandOnHover:g},a)};function ko(){const{focusContent:n,contentRef:a}=ma(),u=Ha();return(a==null?void 0:a.current)?t.createElement(l.Z,{onClick:n,variant:"contained",className:Fe()(u.visuallyHidden)},"Skip to content"):null}function Va(n,a){const u=new URLSearchParams(a.search).toString(),d=zr().parse(u),g=new URLSearchParams(n.search).toString(),R=zr().parse(g);return(0,tr.isEqual)(a.pathname,n.pathname)&&(0,tr.isMatch)(R,d)}const qo=(0,s.Z)(n=>({item:{height:48,width:"100%","&:hover":{background:"#6f6f6f",color:n.palette.navigation.selectedColor},display:"flex",alignItems:"center",color:n.palette.navigation.color,padding:20,cursor:"pointer",position:"relative",background:"none",border:"none"},itemContainer:{width:"100%"},selected:{background:"#6f6f6f",color:"#FFF"},label:{margin:14,marginLeft:7,fontSize:14},dropdownArrow:{position:"absolute",right:21},dropdown:{display:"flex",flexDirection:"column",alignItems:"end"},dropdownItem:{width:"100%",padding:"10px 0 10px 0"},textContent:{color:n.palette.navigation.color,display:"flex",justifyContent:"center",[n.breakpoints.down("xs")]:{display:"block",paddingLeft:n.spacing(4)},fontSize:"14px"}})),sl=n=>{const{title:a,to:u,icon:d,dropdownItems:g}=n,R=qo(),{setIsHoveredOn:L}=useContext(SidebarItemWithSubmenuContext),U=()=>{L(!1)},K=useResolvedPath(u),W=useLocation();let ne=isLocationMatch(W,K);const[ce,Ae]=useState(!1),Se=()=>{Ae(!ce)};return g!==void 0?(g.some(Te=>{const dt=resolvePath(Te.to);return ne=isLocationMatch(W,dt),ne}),React.createElement("div",{className:R.itemContainer},React.createElement("button",{onClick:Se,onTouchStart:Te=>Te.stopPropagation(),className:classnames(R.item,ne?R.selected:void 0)},React.createElement(d,{fontSize:"small"}),React.createElement(Typography,{variant:"subtitle1",className:R.label},a),ce?React.createElement(ArrowDropUpIcon,{className:R.dropdownArrow}):React.createElement(ArrowDropDownIcon,{className:R.dropdownArrow})),g&&ce&&React.createElement("div",{className:R.dropdown},g.map((Te,dt)=>React.createElement(Link,{component:NavLink,to:Te.to,underline:"none",className:R.dropdownItem,onClick:U,onTouchStart:Bt=>Bt.stopPropagation(),key:dt},React.createElement(Typography,{className:R.textContent},Te.title)))))):React.createElement("div",{className:R.itemContainer},React.createElement(Link,{component:NavLink,to:u,underline:"none",className:classnames(R.item,ne?R.selected:void 0),onClick:U,onTouchStart:Te=>Te.stopPropagation()},React.createElement(d,{fontSize:"small"}),React.createElement(Typography,{variant:"subtitle1",className:R.label},a)))},_o=n=>(0,s.Z)(a=>{var u,d;return{root:{zIndex:1e3,position:"relative",overflow:"visible",width:a.spacing(7)+1},drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[a.breakpoints.up("sm")]:{marginLeft:n.left,transition:a.transitions.create("margin-left",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(d=(u=a.palette.navigation.submenu)==null?void 0:u.background)!=null?d:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:fa.drawerWidthClosed,transitionDelay:`${fa.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},drawerOpen:{width:fa.drawerWidthOpen,[a.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:a.spacing(3),left:0,top:0}},title:{fontSize:24,fontWeight:500,color:"#FFF",padding:20,[a.breakpoints.down("xs")]:{display:"none"}}}}),es=n=>{const{isOpen:a}=(0,t.useContext)(yr),u=a?kt.drawerWidthOpen:kt.drawerWidthClosed,d=_o({left:u})(),{isHoveredOn:g}=(0,t.useContext)(Ua),[R,L]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{L(g)},[g]),t.createElement("div",{className:Fe()(d.drawer,{[d.drawerOpen]:R})},t.createElement(se.Z,{variant:"h5",className:d.title},n.title),n.children)};var Gr=e(76600),ts=e(26739),ns=e(98989),rs=e(59797),as=e(83543);const os=(0,s.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}}),il=()=>{const n=os();return React.createElement("div",{className:n.iconContainer},React.createElement("div",{className:n.arrow1},React.createElement(ArrowBackIosIcon,{style:{fontSize:"12px"}})),React.createElement("div",null,React.createElement(ArrowBackIosIcon,{style:{fontSize:"12px"}})))};var ll=null;const ss=(0,s.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}}),cl=()=>{const n=ss();return React.createElement("div",{className:n.iconContainer},React.createElement("div",{className:n.arrow1},React.createElement(ArrowForwardIosIcon,{style:{fontSize:"12px"}})),React.createElement("div",null,React.createElement(ArrowForwardIosIcon,{style:{fontSize:"12px"}})))};var ul=null;const Kr=(0,s.Z)(n=>{var R,L,U,K;const{selectedIndicatorWidth:a,drawerWidthClosed:u,drawerWidthOpen:d,iconContainerWidth:g}=kt;return{root:{color:n.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit"},closed:{width:u,justifyContent:"center"},open:{[n.breakpoints.up("sm")]:{width:d}},highlightable:{"&:hover":{background:(L=(R=n.palette.navigation.navItem)==null?void 0:R.hoverBackground)!=null?L:"#404040"}},highlighted:{background:(K=(U=n.palette.navigation.navItem)==null?void 0:U.hoverBackground)!=null?K:"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:g,marginRight:-n.spacing(2),display:"flex",alignItems:"center",justifyContent:"center"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:"bold",fontSize:n.typography.fontSize},searchFieldHTMLInput:{padding:n.spacing(2,0,2)},searchContainer:{width:d-g},secondaryAction:{width:n.spacing(6),textAlign:"center",marginRight:n.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:n.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${a}px ${n.palette.navigation.indicator}`,color:n.palette.navigation.selectedColor},"&$closed":{width:u},"& $closedItemIcon":{paddingRight:a},"& $iconContainer":{marginLeft:-a}}}},{name:"BackstageSidebarItem"}),is=(n,a)=>(0,c.useElementFilter)(n.props.children,u=>{let d=!1;return u.getElements().forEach(({props:{to:g,dropdownItems:R}})=>{if(!d){if(R==null?void 0:R.length){R.forEach(({to:L})=>d=d||Va(a,(0,An.i3)(L)));return}g&&(d=Va(a,(0,An.i3)(g)))}}),d},[a.pathname]);function ja(n){return n.to===void 0}const ls=t.createElement(es).type,cs=t.forwardRef(function({to:a,end:u,style:d,className:g,activeStyle:R,caseSensitive:L,activeClassName:U="active","aria-current":K="page",...W},ne){let{pathname:ce}=(0,An.TH)(),{pathname:Ae}=(0,An.WU)(a);L||(ce=ce.toLocaleLowerCase("en-US"),Ae=Ae.toLocaleLowerCase("en-US"));let Se=ce===Ae;!Se&&!u&&(Se=ce.startsWith(`${Ae}/`));const Te=Se?K:void 0;return t.createElement(i.rU,{...W,to:a,ref:ne,"aria-current":Te,style:{...d,...Se?R:void 0},className:Fe()([g,Se?U:void 0])})}),Ga=(0,t.forwardRef)((n,a)=>{const{icon:u,text:d,hasNotifications:g=!1,disableHighlight:R=!1,onClick:L,children:U,className:K,...W}=n,ne=Kr(),{isOpen:ce}=(0,t.useContext)(yr),Ae=t.createElement(ts.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!g,className:Fe()({[ne.closedItemIcon]:!ce})},t.createElement(u,{fontSize:"small"})),Se=t.createElement(t.Fragment,null,t.createElement("div",{"data-testid":"login-button",className:ne.iconContainer},Ae),d&&t.createElement(se.Z,{variant:"subtitle2",className:ne.label},d),t.createElement("div",{className:ne.secondaryAction},U)),Te=ce?Se:Ae,dt={onClick:L,className:Fe()(K,ne.root,ce?ne.open:ne.closed,ja(n)&&ne.buttonItem,{[ne.highlightable]:!R})};return ja(n)?t.createElement("button",{"aria-label":d,...dt,ref:a},Te):t.createElement(cs,{...dt,activeClassName:ne.selected,to:n.to?n.to:"",ref:a,"aria-label":d||n.to,...W},Te)}),us=({children:n,...a})=>{const u=Kr(),[d,g]=(0,t.useState)(!1),R=(0,An.TH)(),L=is(n,R),U=(0,Pe.Z)(ce=>ce.breakpoints.down("sm")),K=()=>{g(!0)},W=()=>{g(!1)},ne=()=>U?d?t.createElement(rs.Z,{fontSize:"small",className:u.submenuArrow}):t.createElement(as.Z,{fontSize:"small",className:u.submenuArrow}):!d&&t.createElement(ns.Z,{fontSize:"small",className:u.submenuArrow});return t.createElement(Ua.Provider,{value:{isHoveredOn:d,setIsHoveredOn:g}},t.createElement("div",{"data-testid":"item-with-submenu",onMouseLeave:W,onTouchStart:d?W:K,onMouseEnter:K,className:Fe()(d&&u.highlighted)},t.createElement(Ga,{className:L?u.selected:"",...a},ne()),d&&n))},Ka=(0,t.forwardRef)((n,a)=>{const[u]=(0,c.useElementFilter)(n.children,d=>d.getElements().filter(g=>g.type===ls));return u?t.createElement(us,{...n},u):t.createElement(Ga,{...n,ref:a})});function dl(n){const[a,u]=useState(""),d=Kr(),g=n.icon?n.icon:SearchIcon,R=()=>{n.onSearch(a),u("")},L=ne=>{ne.key==="Enter"&&(ne.preventDefault(),R())},U=ne=>{u(ne.target.value)},K=ne=>{ne.preventDefault(),ne.stopPropagation()},W=ne=>{R(),ne.preventDefault()};return React.createElement("div",{className:d.searchRoot},React.createElement(Ka,{icon:g,to:n.to,onClick:W,disableHighlight:!0},React.createElement(TextField,{placeholder:"Search",value:a,onClick:K,onChange:U,onKeyDown:L,className:d.searchContainer,InputProps:{disableUnderline:!0,className:d.searchField},inputProps:{className:d.searchFieldHTMLInput}})))}const fl=(0,Gr.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),ml=(0,Gr.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),ds=(0,Gr.Z)("hr")({height:1,width:"100%",background:"#383838",border:"none",margin:"12px 0px"},{name:"BackstageSidebarDivider"}),fs=n=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:n.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.text.hint,borderRadius:"5px"}}),hl=(0,Gr.Z)("div")(({theme:n})=>{const a=fs(n);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":a,"&:hover":a}}),gl=()=>{const n=Kr(),{isOpen:a,setOpen:u}=useContext(SidebarContext);if(useMediaQuery(R=>R.breakpoints.down("md"),{noSsr:!0}))return null;const g=()=>{u(!a)};return React.createElement("button",{onClick:g,className:n.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button"},React.createElement("div",{className:n.arrows},a?React.createElement(DoubleArrowLeft,null):React.createElement(DoubleArrowRight,null)))},ms=(0,s.Z)(n=>({introCard:{color:"#b5b5b5",fontSize:12,width:kt.drawerWidthOpen,marginTop:18,marginBottom:12,paddingLeft:kt.iconPadding,paddingRight:kt.iconPadding},introDismiss:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12},introDismissLink:{color:"#dddddd",display:"flex",alignItems:"center",marginBottom:4,"&:hover":{color:n.palette.linkHover,transition:n.transitions.create("color",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shortest})}},introDismissText:{fontSize:"0.7rem",fontWeight:"bold",textTransform:"uppercase",letterSpacing:1},introDismissIcon:{width:18,height:18,marginRight:12}}),{name:"BackstageSidebarIntro"});function hs(n){const a=ms(),{text:u,onClose:d}=n,g=()=>d();return React.createElement("div",{className:a.introCard},React.createElement(Typography,{variant:"subtitle2"},u),React.createElement("div",{className:a.introDismiss},React.createElement(Link,{component:"button",onClick:g,underline:"none",className:a.introDismissLink},React.createElement(CloseIcon,{className:a.introDismissIcon}),React.createElement(Typography,{component:"span",className:a.introDismissText},"Dismiss"))))}const Ya=n=>{const{text:a,onDismiss:u}=n,[d,g]=useState(!1),R=()=>{g(!0)};return React.createElement(Collapse,{in:!d,onExited:u},React.createElement(hs,{text:a,onClose:R}))},gs=null,ps="And your recently viewed plugins will pop up here!";function pl(n){const{isOpen:a}=useContext(SidebarContext),u={starredItemsDismissed:!1,recentlyViewedItemsDismissed:!1},[d,g]=useLocalStorage(SIDEBAR_INTRO_LOCAL_STORAGE),{starredItemsDismissed:R,recentlyViewedItemsDismissed:L}=d!=null?d:{},U=()=>{g(W=>({...u,...W,starredItemsDismissed:!0}))},K=()=>{g(W=>({...u,...W,recentlyViewedItemsDismissed:!0}))};return a?React.createElement(React.Fragment,null,!R&&React.createElement(React.Fragment,null,React.createElement(Ya,{text:gs,onDismiss:U}),React.createElement(SidebarDivider,null)),!L&&React.createElement(Ya,{text:ps,onDismiss:K})):null}const ys=(0,s.Z)(n=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:n.spacing(3),paddingBottom:n.spacing(3),paddingLeft:n.spacing(2),paddingRight:n.spacing(2),[n.breakpoints.up("sm")]:{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function Ja(n){const{className:a,stretch:u,noPadding:d,children:g,...R}=n,{contentRef:L}=ma(),U=ys();return t.createElement("article",{ref:L,tabIndex:-1,...R,className:Fe()(U.root,a,{[U.stretch]:u,[U.noPadding]:d})},g)}var Es=e(6487),As=e(99152);const vs=(0,s.Z)(n=>({tabsWrapper:{gridArea:"pageSubheader",backgroundColor:n.palette.background.paper,paddingLeft:n.spacing(3)},defaultTab:{padding:n.spacing(3,3),...n.typography.caption,textTransform:"uppercase",fontWeight:"bold",color:n.palette.text.secondary},selected:{color:n.palette.text.primary},tabRoot:{"&:hover":{backgroundColor:n.palette.background.default,color:n.palette.text.primary}}}),{name:"BackstageHeaderTabs"});function Qa(n){const{tabs:a,onChange:u,selectedIndex:d}=n,[g,R]=(0,t.useState)(d!=null?d:0),L=vs(),U=(K,W)=>{d===void 0&&R(W),u&&u(W)};return(0,t.useEffect)(()=>{d!==void 0&&R(d)},[d]),t.createElement("div",{className:L.tabsWrapper},t.createElement(As.Z,{selectionFollowsFocus:!0,indicatorColor:"primary",textColor:"inherit",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",onChange:U,value:g},a.map((K,W)=>t.createElement(Es.Z,{...K.tabProps,"data-testid":`header-tab-${W}`,label:K.label,key:K.id,value:W,className:L.defaultTab,classes:{selected:L.selected,root:L.tabRoot}}))))}function Rs(n){var U,K,W;const a=(0,An.UO)(),d=n.map(({path:ne,children:ce})=>({caseSensitive:!1,path:`${ne}/*`,element:ce})).sort((ne,ce)=>ce.path.replace(/\/\*$/,"").localeCompare(ne.path.replace(/\/\*$/,""))),g=(U=(0,An.V$)(d))!=null?U:n[0].children,[R]=(K=(0,An.fp)(d,`/${a["*"]}`))!=null?K:[],L=R?n.findIndex(ne=>`${ne.path}/*`===R.route.path):0;return{index:L===-1?0:L,element:g,route:(W=n[L])!=null?W:n[0]}}function Xa(n){const{routes:a}=n,u=(0,An.s0)(),{index:d,route:g,element:R}=Rs(a),L=(0,t.useMemo)(()=>a.map(K=>({id:K.path,label:K.title,tabProps:K.tabProps})),[a]),U=K=>u(a[K].path.replace(/\/\*$/,"").replace(/^\//,""));return t.createElement(t.Fragment,null,t.createElement(Qa,{tabs:L,selectedIndex:d,onChange:U}),t.createElement(Ja,null,t.createElement(da.q,{title:g.title}),R))}const ha=()=>null;(0,c.attachComponentData)(ha,"core.gatherMountPoints",!0);function ka(n){const a=t.createElement(ha,{path:"",title:""},t.createElement("div",null)).type;return t.Children.toArray(n).flatMap(u=>{if(!(0,t.isValidElement)(u))return[];if(u.type===t.Fragment)return ka(u.props.children);if(u.type!==a)throw new Error("Child of TabbedLayout must be an TabbedLayout.Route");const{path:d,title:g,children:R,tabProps:L}=u.props;return[{path:d,title:g,children:R,tabProps:L}]})}function Ss(n){const a=ka(n.children);return t.createElement(Xa,{routes:a})}Ss.Route=ha;const Cs=(0,s.Z)(n=>({value:{marginBottom:"6px"},subvalue:{color:n.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function Ts(n){const{value:a,subvalue:u}=n,d=Cs();return t.createElement(t.Fragment,null,t.createElement("div",{className:d.value},a),t.createElement("div",{className:d.subvalue},u))}var Ps=e(21070),Is=e(90324),Ls=e(98281),Os=e(48049),qa=e(51209),_a=e(33375),xs=e(44233),Ds=e(27604),ga=e(36444),bs=e(37971),Fs=e(59709),Bs=e(17373),Ms=e(3702),Ns=e(93111),Yr=e(67222);const Us=(0,s.Z)(n=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:n.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:"60px",justifyContent:"space-between",borderBottom:`1px solid ${n.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:n.spacing(2)}}}),{name:"BackstageTableFilters"}),Zs=n=>{var K;const a=Us(),{onChangeFilters:u}=n,[d,g]=(0,t.useState)({...n.selectedFilters}),[R,L]=(0,t.useState)(!1),U=()=>{g({}),L(W=>!W)};return(0,t.useEffect)(()=>{u(d)},[d,u]),t.createElement("div",{className:a.root},t.createElement("div",{className:a.header},t.createElement("div",{className:a.value},"Filters"),t.createElement(l.Z,{color:"primary",onClick:U},"Clear all")),t.createElement("div",{className:a.filters},((K=n.filters)==null?void 0:K.length)&&n.filters.map(W=>t.createElement(wr,{triggerReset:R,key:W.element.label,...W.element,selected:d[W.element.label],onChange:ne=>g({...d,[W.element.label]:ne})}))))},$s={Add:(0,t.forwardRef)((n,a)=>t.createElement(Ps.Z,{...n,ref:a})),Check:(0,t.forwardRef)((n,a)=>t.createElement(Ls.Z,{...n,ref:a})),Clear:(0,t.forwardRef)((n,a)=>t.createElement(_a.Z,{...n,ref:a})),Delete:(0,t.forwardRef)((n,a)=>t.createElement(xs.Z,{...n,ref:a})),DetailPanel:(0,t.forwardRef)((n,a)=>t.createElement(qa.Z,{...n,ref:a})),Edit:(0,t.forwardRef)((n,a)=>t.createElement(Ds.Z,{...n,ref:a})),Export:(0,t.forwardRef)((n,a)=>t.createElement(Ms.Z,{...n,ref:a})),Filter:(0,t.forwardRef)((n,a)=>t.createElement(ga.Z,{...n,ref:a})),FirstPage:(0,t.forwardRef)((n,a)=>t.createElement(bs.Z,{...n,ref:a})),LastPage:(0,t.forwardRef)((n,a)=>t.createElement(Fs.Z,{...n,ref:a})),NextPage:(0,t.forwardRef)((n,a)=>t.createElement(qa.Z,{...n,ref:a})),PreviousPage:(0,t.forwardRef)((n,a)=>t.createElement(Os.Z,{...n,ref:a})),ResetSearch:(0,t.forwardRef)((n,a)=>t.createElement(_a.Z,{...n,ref:a})),Search:(0,t.forwardRef)((n,a)=>t.createElement(ga.Z,{...n,ref:a})),SortArrow:(0,t.forwardRef)((n,a)=>t.createElement(Is.Z,{...n,ref:a})),ThirdStateCheck:(0,t.forwardRef)((n,a)=>t.createElement(Bs.Z,{...n,ref:a})),ViewColumn:(0,t.forwardRef)((n,a)=>t.createElement(Ns.Z,{...n,ref:a}))};function eo(n,a){const u=a.split(".");let d=n[u[0]];for(let g=1;g<u.length;++g){if(d===void 0)return d;const R=u[g];d=d[R]}return d}const ws=(0,$.Z)(n=>({header:{padding:n.spacing(1,2,1,2.5),borderTop:`1px solid ${n.palette.grey.A100}`,borderBottom:`1px solid ${n.palette.grey.A100}`,color:n.palette.textSubtle,fontWeight:n.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(Yr.W$),to=(0,$.Z)(n=>({root:{padding:n.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:"bold"}},searchField:{paddingRight:n.spacing(2)}}),{name:"BackstageTableToolbar"})(Yr.UW),Ws=(0,s.Z)(()=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:"bold",fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),zs=(0,s.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Hs(n,a){return n.map(u=>{const d={};let g=u.cellStyle||{};if(u.highlight)if(d.color=a.palette.textContrast,typeof g=="object")g.fontWeight=a.typography.fontWeightBold;else{const R=g;g=(L,U,K)=>({...R(L,U,K),fontWeight:a.typography.fontWeightBold})}return{...u,headerStyle:d,cellStyle:g}})}function Vs(n,a){return(0,tr.transform)(n,(u,d,g)=>{(0,tr.isEqual)(d,a[g])||(u[g]=d)})}const no={search:"",filtersOpen:!1,filters:{}};function js(n){const{toolbarRef:a,setSearch:u,hasFilters:d,selectedFiltersLength:g,toggleFilters:R}=n,L=Ws(),U=(0,t.useCallback)(K=>{n.onSearchChanged(K),u(K)},[n,u]);return d?t.createElement("div",{className:L.root},t.createElement("div",{className:L.root},t.createElement(O.Z,{onClick:R,"aria-label":"filter list"},t.createElement(ga.Z,null)),t.createElement(se.Z,{className:L.title},"Filters (",g,")")),t.createElement(to,{...n,ref:a,onSearchChanged:U})):t.createElement(to,{...n,ref:a,onSearchChanged:U})}function Gs(n){const{data:a,columns:u,options:d,title:g,subtitle:R,filters:L,initialState:U,emptyContent:K,onStateChange:W,...ne}=n,ce=zs(),Ae=(0,P.Z)(),Se={...no,...U},[Te,dt]=(0,t.useState)(Se.filtersOpen),Bt=(0,t.useCallback)(()=>dt(sn=>!sn),[dt]),[nn,Yt]=(0,t.useState)(0),[ct,Ft]=(0,t.useState)(a),[Mt,rn]=(0,t.useState)(Se.filters),Un=Hs(u,Ae),[vn,Ar]=(0,t.useState)(Se.search);(0,t.useEffect)(()=>{if(W){const sn=Vs({search:vn,filtersOpen:Te,filters:Mt},no);W(sn)}},[vn,Te,Mt,W]);const Lt={headerStyle:{textTransform:"uppercase"}},Zn=(0,t.useCallback)(sn=>{var gn;return(gn=u.find(Rn=>Rn.title===sn))==null?void 0:gn.field},[u]);(0,t.useEffect)(()=>{if(typeof a=="function")return;if(!Mt){Ft(a);return}const sn=Object.values(Mt);if(a&&sn.flat().length){const gn=a.filter(Rn=>!!Object.entries(Mt).filter(([,Yn])=>!!Yn.length).every(([Yn,_t])=>{const en=eo(Rn,Zn(Yn));return Array.isArray(en)&&Array.isArray(_t)?en.some(rr=>_t.includes(rr)):Array.isArray(en)?en.includes(_t):Array.isArray(_t)?_t.includes(en):en===_t}));Ft(gn)}else Ft(a);Yt(sn.flat().length)},[a,Mt,Zn]);const va=(sn,gn)=>{const Rn=_t=>{const en=new Set,rr=Jn=>{Jn!=null&&en.add(Jn)};return gn&&gn.forEach(Jn=>{const ar=eo(Jn,Zn(_t));Array.isArray(ar)?ar.forEach(rr):rr(ar)}),en},Yn=_t=>({placeholder:"All results",label:_t.column,multiple:_t.type==="multiple-select",items:[...Rn(_t.column)].sort().map(en=>({label:en,value:en}))});return sn.map(_t=>({type:_t.type,element:Yn(_t)}))},Kn=!!(L==null?void 0:L.length),Ra=(0,t.useCallback)(sn=>t.createElement(js,{setSearch:Ar,hasFilters:Kn,selectedFiltersLength:nn,toggleFilters:Bt,...sn}),[Bt,Kn,nn,Ar]),Qr=typeof a!="function"&&a.length===0,Xr=u.length,Sa=(0,t.useCallback)(sn=>K&&Qr?t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{colSpan:Xr},K))):t.createElement(Yr.os,{...sn}),[Qr,K,Xr]);return t.createElement("div",{className:ce.root},Te&&a&&typeof a!="function"&&(L==null?void 0:L.length)&&t.createElement(Zs,{filters:va(L,a),selectedFilters:Mt,onChangeFilters:rn}),t.createElement(Yr.ZP,{components:{Header:ws,Toolbar:Ra,Body:Sa},options:{...Lt,...d},columns:Un,icons:$s,title:t.createElement(t.Fragment,null,t.createElement(se.Z,{variant:"h5",component:"h3"},g),R&&t.createElement(se.Z,{color:"textSecondary",variant:"body1"},R)),data:typeof a=="function"?a:ct,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter"}},...ne}))}const yl=n=>{const{children:a,value:u,index:d,...g}=n;return React.createElement("div",{role:"tabpanel",hidden:u!==d,"aria-labelledby":`scrollable-auto-tab-${d}`,...g},u===d&&React.createElement(Box,{p:3},a))},Ks=(0,s.Z)(()=>({root:{color:"#6E6E6E",overflow:"visible",fontSize:"1.5rem",textAlign:"center",borderRadius:"50%",backgroundColor:"#E6E6E6",marginLeft:n=>n.isNext?"auto":"0",marginRight:n=>n.isNext?"0":"10px","&:hover":{backgroundColor:"#E6E6E6",opacity:"1"}}}),{name:"BackstageTabIcon"}),El=n=>{const a=Ks(n),{ariaLabel:u,onClick:d}=n;return React.createElement(IconButton,{onClick:d,className:a.root,size:"small",disableRipple:!0,disableFocusRipple:!0,"aria-label":u},n.children)},Ys=(n,a)=>a?n?"20px":"0":"40px",Js=(0,s.Z)(n=>({root:{textTransform:"none",height:"64px",fontWeight:n.typography.fontWeightBold,fontSize:n.typography.pxToRem(13),color:n.palette.textSubtle,marginLeft:a=>Ys(a.isFirstNav,a.isFirstIndex),width:"130px",minWidth:"130px","&:hover":{outline:"none",backgroundColor:"transparent",color:n.palette.textSubtle}}})),Al=n=>{const a=Js(n),{isFirstNav:u,isFirstIndex:d,...g}=n;return React.createElement(Tab,{className:a.root,disableRipple:!0,...g})},Qs=(0,s.Z)(n=>({indicator:{display:"flex",justifyContent:"center",backgroundColor:n.palette.tabbar.indicator,height:"4px"},flexContainer:{alignItems:"center"},root:{"&:last-child":{marginLeft:"auto"}}}),{name:"BackstageTabBar"}),vl=n=>{const a=Qs(n);return React.createElement(Tabs,{classes:a,...n,TabIndicatorProps:{children:React.createElement("span",null)}})},Xs=(0,s.Z)(n=>({root:{flexGrow:1,width:"100%"},styledTabs:{backgroundColor:n.palette.background.paper},appbar:{boxShadow:"none",backgroundColor:n.palette.background.paper,paddingLeft:"10px",paddingRight:"10px"}}),{name:"BackstageTabs"});function Rl(n){const{tabs:a}=n,u=Xs(),[d,g]=useState([0,0]),[R,L]=useState(0),[U,K]=useState(0),[W,ne]=useState([[]]),ce=useRef(),{width:Ae}=useWindowSize(),Se=(Yt,ct)=>{g([R,ct])},Te=()=>{L(R-1)},dt=()=>{L(R+1)},Bt=()=>R+1<W.length;useEffect(()=>{const Yt=20,ct=R===0?1:2,Ft=ce.current.offsetWidth-Yt-ct*30,Mt=d[0]*U+d[1],rn=Math.floor(Ft/170);K(rn),ne(chunkArray(a,rn)),g([Math.floor(Mt/rn),Mt%rn])},[Ae,a]);const nn=R===d[0]?d[1]:!1;return React.createElement("div",{className:u.root},React.createElement(AppBar,{ref:ce,className:u.appbar,position:"static"},React.createElement("div",null,React.createElement(StyledTabs,{value:nn,onChange:Se,selectionFollowsFocus:!0},R!==0&&React.createElement(StyledIcon,{onClick:Te,ariaLabel:"navigate-before"},React.createElement(NavigateBeforeIcon,null)),W[R].map((Yt,ct)=>React.createElement(StyledTab,{value:ct,isFirstIndex:ct===0,isFirstNav:R===0,key:ct,icon:Yt.icon||void 0,label:Yt.label||void 0})),Bt()&&React.createElement(StyledIcon,{isNext:!0,onClick:dt,ariaLabel:"navigate-next"},React.createElement(NavigateNextIcon,null))))),nn!==!1?W[R].map((Yt,ct)=>React.createElement(TabPanel,{key:ct,value:ct,index:nn},Yt.content)):React.createElement(TabPanel,{key:"panel_outside_chunked_array",value:d[1],index:d[1]},W[d[0]][d[1]].content))}var Sl=e(44311);function ks(n,a){const u=n[n.length-1];if(!!u)return u>=.9?a.palette.status.ok:u>=.5?a.palette.status.warning:a.palette.status.error}function Cl(n){var u;const a=useTheme();return n.data?React.createElement(Sparklines,{width:120,height:30,min:0,max:1,...n},n.title&&React.createElement("title",null,n.title),React.createElement(SparklinesLine,{color:(u=n.color)!=null?u:ks(n.data,a)})):null}const _s=n=>(0,s.Z)(a=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:a.spacing(2),textAlign:n.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:a.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),ei=({title:n="Unknown page",className:a})=>t.createElement(se.Z,{variant:"h4",component:"h2",className:a,"data-testid":"header-title"},n);function ti(n){const{description:a,title:u,titleComponent:d=void 0,children:g,textAlign:R="left"}=n,L=_s({textAlign:R})(),U=d||t.createElement(ei,{title:u,className:L.title});return t.createElement(t.Fragment,null,t.createElement(da.q,{title:u}),t.createElement("div",{className:L.container},t.createElement("div",{className:L.leftItemsBox},U,a&&t.createElement(se.Z,{className:L.description,variant:"body2"},a)),t.createElement("div",{className:L.rightItemsBox},g)))}var ni=e(29788);const ri=(0,s.Z)(n=>({micDrop:{maxWidth:"60%",position:"absolute",bottom:n.spacing(2),right:n.spacing(2),[n.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",bottom:"unset",right:"unset",margin:`${n.spacing(10)}px auto ${n.spacing(4)}px`}}}),{name:"BackstageErrorPageMicDrop"}),ai=()=>{const n=ri();return t.createElement("img",{src:ni,className:n.micDrop,alt:"Girl dropping mic from her hands"})},oi=(0,s.Z)(n=>({container:{padding:n.spacing(8),[n.breakpoints.down("xs")]:{padding:n.spacing(2)}},title:{paddingBottom:n.spacing(5),[n.breakpoints.down("xs")]:{paddingBottom:n.spacing(4),fontSize:32}},subtitle:{color:n.palette.textSubtle}}),{name:"BackstageErrorPage"});function si(n){const{status:a,statusMessage:u,additionalInfo:d}=n,g=oi(),R=(0,An.s0)(),L=Ba();return t.createElement(Ve.Z,{container:!0,spacing:0,className:g.container},t.createElement(ai,null),t.createElement(Ve.Z,{item:!0,xs:12,sm:8,md:4},t.createElement(se.Z,{"data-testid":"error",variant:"body1",className:g.subtitle},"ERROR ",a,": ",u),t.createElement(se.Z,{variant:"body1",className:g.subtitle},d),t.createElement(se.Z,{variant:"h2",className:g.title},"Looks like someone dropped the mic!"),t.createElement(se.Z,{variant:"h6"},t.createElement(I,{to:"#","data-testid":"go-back-link",onClick:()=>R(-1)},"Go back"),"... or please ",t.createElement(I,{to:L.url},"contact support")," if you think this is a bug.")))}var ii=e(16173);const li=(0,$.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(se.Z),pa=(0,$.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(X.Z);function ci(n){const{children:a,...u}=n,[d,g]=t.useState(null),R=t.Children.toArray(a),[L,U,...K]=R,W=K.length?K.pop():R[R.length-1],ne=R.length>3,ce=Te=>{g(Te.currentTarget)},Ae=()=>{g(null)},Se=Boolean(d);return t.createElement(t.Fragment,null,t.createElement(ii.Z,{"aria-label":"breadcrumb",...u},R.length>1&&t.createElement(pa,{clone:!0},L),R.length>2&&t.createElement(pa,{clone:!0},U),ne&&t.createElement(li,{onClick:ce},"..."),t.createElement(X.Z,{style:{fontStyle:"italic"}},W)),t.createElement(Da.ZP,{open:Se,anchorEl:d,onClose:Ae,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},t.createElement(ge.Z,null,K.map((Te,dt)=>t.createElement(Ce.Z,{key:dt,button:!0},t.createElement(pa,{clone:!0},Te))))))}const ui=(0,s.Z)(n=>({header:{gridArea:"pageHeader",padding:n.spacing(3),width:"100%",boxShadow:n.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:n.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[n.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto"},title:{color:n.palette.bursts.fontColor,wordBreak:"break-all",fontSize:n.typography.h3.fontSize,marginBottom:0},subtitle:{color:n.palette.bursts.fontColor,opacity:.8,display:"inline-block",marginTop:n.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:n.spacing(1),color:n.palette.bursts.fontColor},breadcrumb:{color:n.palette.bursts.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-n.spacing(.3),marginBottom:n.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-n.spacing(.3),marginBottom:n.spacing(.3)}}),{name:"BackstageHeader"}),di=({type:n,typeLink:a,classes:u,pageTitle:d})=>n?a?t.createElement(ci,{className:u.breadcrumb},t.createElement(I,{to:a},n),t.createElement(se.Z,null,d)):t.createElement(se.Z,{className:u.type},n):null,fi=({pageTitle:n,classes:a,tooltip:u})=>{const d=t.createElement(se.Z,{className:a.title,variant:"h1"},n);return u?t.createElement(x.ZP,{title:u,placement:"top-start"},d):d},mi=({classes:n,subtitle:a})=>a?typeof a!="string"?t.createElement(t.Fragment,null,a):t.createElement(se.Z,{className:n.subtitle,variant:"subtitle2",component:"span"},a):null;function ro(n){const{children:a,pageTitleOverride:u,style:d,subtitle:g,title:R,tooltip:L,type:U,typeLink:K}=n,W=ui(),ce=(0,c.useApi)(c.configApiRef).getOptionalString("app.title")||"Backstage",Ae=u||R,Se=R||u,Te=`${Ae} | %s | ${ce}`,dt=`${Ae} | ${ce}`;return t.createElement(t.Fragment,null,t.createElement(da.q,{titleTemplate:Te,defaultTitle:dt}),t.createElement("header",{style:d,className:W.header},t.createElement(X.Z,{className:W.leftItemsBox},t.createElement(di,{classes:W,type:U,typeLink:K,pageTitle:Se}),t.createElement(fi,{classes:W,pageTitle:Se,tooltip:L}),t.createElement(mi,{classes:W,subtitle:g})),t.createElement(Ve.Z,{container:!0,className:W.rightItemsBox,spacing:4},a)))}const hi=(0,s.Z)(n=>({root:{textAlign:"left"},label:{color:n.palette.common.white,fontWeight:"bold",letterSpacing:0,fontSize:n.typography.fontSize,marginBottom:n.spacing(1)/2,lineHeight:1},value:{color:"rgba(255, 255, 255, 0.8)",fontSize:n.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),gi=({value:n,className:a})=>t.createElement(se.Z,{className:a},n);function pi(n){const{label:a,value:u,url:d}=n,g=hi(),R=t.createElement(gi,{className:g.value,value:u||"<Unknown>"});return t.createElement(Ve.Z,{item:!0},t.createElement("span",{className:g.root},t.createElement(se.Z,{className:g.label},a),d?t.createElement(I,{to:d},R):R))}const yi={hour:"2-digit",minute:"2-digit"};function ao(n){const a=new Date,u=window.navigator.language,d=[];if(!n.has("homepage.clocks"))return d;const g=n.getConfigArray("homepage.clocks");for(const R of g)if(R.has("label")&&R.has("timezone")){let L=R.getString("label");const U={timeZone:R.getString("timezone"),...yi};try{new Date().toLocaleString(u,U)}catch{console.warn(`The timezone ${U.timeZone} is invalid. Defaulting to GMT`),U.timeZone="GMT",L="GMT"}const K=a.toLocaleTimeString(u,U);d.push({time:K,label:L})}return d}function Tl(n){const a=useApi(configApiRef),u=[],[d,g]=React.useState(u);return React.useEffect(()=>{g(ao(a));const R=setInterval(()=>{g(ao(a))},1e3);return()=>{clearInterval(R)}},[a]),d.length!==0?React.createElement(React.Fragment,null,d.map(R=>React.createElement(HeaderLabel,{label:R.label,value:R.time,key:R.label}))):null}const Ei=n=>(0,p.Z)({root:{color:n.palette.common.white,padding:n.spacing(2,2,3),backgroundImage:n.palette.bursts.gradient.linear,backgroundPosition:0,backgroundSize:"inherit"}}),Ai=(0,s.Z)(Ei,{name:"BackstageItemCardHeader"});function vi(n){const{title:a,subtitle:u,children:d}=n,g=Ai(n);return t.createElement("div",{className:g.root},u&&t.createElement(se.Z,{variant:"subtitle2",component:"h3"},u),a&&t.createElement(se.Z,{variant:"h6",component:"h4"},a),d)}function Pl(n){const{description:a,tags:u,title:d,type:g,subtitle:R,label:L,onClick:U,href:K}=n;return React.createElement(Card,null,React.createElement(CardMedia,null,React.createElement(ItemCardHeader,{title:d,subtitle:R||g})),React.createElement(CardContent,null,(u==null?void 0:u.length)?React.createElement(Box,null,u.map((W,ne)=>React.createElement(Chip,{size:"small",label:W,key:ne}))):null,a),React.createElement(CardActions,null,!K&&React.createElement(Button,{to:"#",onClick:U,color:"primary"},L),K&&React.createElement(Button,{to:K,color:"primary"},L)))}const Ri=n=>(0,p.Z)({root:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(22em, 1fr))",gridAutoRows:"1fr",gridGap:n.spacing(2)}}),Si=(0,s.Z)(Ri,{name:"BackstageItemCardGrid"});function Ci(n){const{children:a,...u}=n,d=Si(u);return t.createElement("div",{className:d.root,...u},a)}var Ti=e(41547);const Pi=(0,s.Z)(()=>({root:({isMobile:n})=>({display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",height:n?"100%":"100vh",overflowY:"auto"})}),{name:"BackstagePage"});function oo(n){const{themeId:a,children:u}=n,{isMobile:d}=(0,t.useContext)(nr),g=Pi({isMobile:d});return t.createElement(Ti.Z,{theme:R=>({...R,page:R.getPageTheme({themeId:a})})},t.createElement("div",{className:g.root},u))}function Ii(n){const{themeId:a,children:u,...d}=n;return t.createElement(oo,{themeId:a},t.createElement(ro,{...d}),u)}var dn=e(30195);const Il=dn.z.object({providerInfo:dn.z.object({}).catchall(dn.z.unknown()).optional(),profile:dn.z.object({email:dn.z.string().optional(),displayName:dn.z.string().optional(),picture:dn.z.string().optional()}),backstageIdentity:dn.z.object({token:dn.z.string(),identity:dn.z.object({type:dn.z.literal("user"),userEntityRef:dn.z.string(),ownershipEntityRefs:dn.z.array(dn.z.string())})})}),so={defaultTokenExpiryMillis:5*60*1e3,tokenExpiryMarginMillis:5*60*1e3};function Li(n){const a=new Date(Date.now()+so.defaultTokenExpiryMillis);if(!n)return a;const[u,d,g]=n.split("."),R=JSON.parse(atob(d));return typeof R.exp!="number"?a:new Date(R.exp*1e3-so.tokenExpiryMarginMillis)}class Ll{constructor(a){_(this,"options");_(this,"abortController");_(this,"state");this.options=a,this.abortController=new AbortController,this.state={type:"empty"}}async start(){await this.getSessionAsync()}getUserId(){const{backstageIdentity:a}=this.getSessionSync(),u=a.identity.userEntityRef,d=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(u);if(!d)throw new TypeError(`Invalid user entity reference "${u}"`);return d[3]}async getIdToken(){return(await this.getSessionAsync()).backstageIdentity.token}getProfile(){return this.getSessionSync().profile}async getProfileInfo(){return(await this.getSessionAsync()).profile}async getBackstageIdentity(){return(await this.getSessionAsync()).backstageIdentity.identity}async getCredentials(){return{token:(await this.getSessionAsync()).backstageIdentity.token}}async signOut(){this.abortController.abort()}getSessionSync(){if(this.state.type==="active")return this.state.session;if(this.state.type==="fetching"&&this.state.previous)return this.state.previous;throw new Error("No session available. Try reloading your browser page.")}async getSessionAsync(){if(this.state.type==="fetching")return this.state.promise;if(this.state.type==="active"&&new Date<this.state.expiresAt)return this.state.session;const a=this.state.type==="active"?this.state.session:void 0,u=this.fetchSession().then(d=>(this.state={type:"active",session:d,expiresAt:Li(d.backstageIdentity.token)},d),d=>{throw this.state={type:"failed",error:d},d});return this.state={type:"fetching",promise:u,previous:a},u}async fetchSession(){const a=await this.options.discoveryApi.getBaseUrl("auth"),u=await fetch(`${a}/${this.options.provider}/refresh`,{signal:this.abortController.signal,headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"});if(!u.ok)throw await ResponseError.fromResponse(u);return proxiedSessionSchema.parse(await u.json())}}const Ol=n=>{const a=useApi(discoveryApiRef),{loading:u,error:d}=useAsync(async()=>{const g=new ProxiedSignInIdentity({provider:n.provider,discoveryApi:a});await g.start(),n.onSignInSuccess(g)},[]);return u?React.createElement(Progress,null):d?React.createElement(ErrorPanel,{title:"You do not appear to be signed in. Please try reloading the browser page.",error:d}):null},Oi=(0,s.Z)({container:{padding:0,listStyle:"none"},item:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"400px",margin:0,padding:0}},{name:"BackstageSignInPage"}),ya=({children:n})=>{const a=Oi();return t.createElement(Ve.Z,{component:"li",item:!0,classes:a},n)};class Ea{getUserId(){return"guest"}async getIdToken(){}getProfile(){return{email:"guest@example.com",displayName:"Guest"}}async getProfileInfo(){return{email:"guest@example.com",displayName:"Guest"}}async getBackstageIdentity(){const a="user:default/guest";return{type:"user",userEntityRef:a,ownershipEntityRefs:[a]}}async getCredentials(){return{}}async signOut(){}}function xi(n){const[a,u,d]=n.split(".");return JSON.parse(atob(u))}class Aa{constructor(a){this.result=a}getUserId(){return this.result.userId}static fromResult(a){return new Aa(a)}async getIdToken(){var a,u;return(u=(a=this.result).getIdToken)==null?void 0:u.call(a)}getProfile(){return this.result.profile}async getProfileInfo(){return this.result.profile}async getBackstageIdentity(){const a=await this.getIdToken();if(!a){const g=`user:default/${this.getUserId()}`;return{type:"user",userEntityRef:g,ownershipEntityRefs:[g]}}const{sub:u,ent:d}=xi(a);return{type:"user",userEntityRef:u,ownershipEntityRefs:d!=null?d:[]}}async getCredentials(){var u,d;return{token:await((d=(u=this.result).getIdToken)==null?void 0:d.call(u))}}async signOut(){var a,u;return(u=(a=this.result).signOut)==null?void 0:u.call(a)}}class Er{constructor(a,u,d){_(this,"profilePromise");this.identity=a,this.authApi=u,this.profile=d}static createGuest(){return new Ea}static fromLegacy(a){return Aa.fromResult(a)}static create(a){return new Er(a.identity,a.authApi,a.profile)}getUserId(){const a=this.identity.userEntityRef,u=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(a);if(!u)throw new TypeError(`Invalid user entity reference "${a}"`);return u[3]}async getIdToken(){return(await this.authApi.getBackstageIdentity()).token}getProfile(){if(!this.profile)throw new Error("The identity API does not implement synchronous profile fetching, use getProfileInfo() instead");return this.profile}async getProfileInfo(){if(this.profilePromise)return await this.profilePromise;try{return this.profilePromise=this.authApi.getProfile(),await this.profilePromise}catch(a){throw this.profilePromise=void 0,a}}async getBackstageIdentity(){return this.identity}async getCredentials(){return{token:(await this.authApi.getBackstageIdentity()).token}}async signOut(){return this.authApi.signOut()}}const Di={Component:({config:n,onSignInSuccess:a})=>{const{apiRef:u,title:d,message:g}=n,R=(0,c.useApi)(u),L=(0,c.useApi)(c.errorApiRef),U=async()=>{try{const K=await R.getBackstageIdentity({instantPopup:!0});if(!K)throw new Error(`The ${d} provider is not configured to support sign-in`);const W=await R.getProfile();a(Er.create({identity:K.identity,profile:W,authApi:R}))}catch(K){L.post(new br.SP("Login failed",K))}};return t.createElement(ya,null,t.createElement(He,{variant:"fullHeight",title:d,actions:t.createElement(l.Z,{color:"primary",variant:"outlined",onClick:U},"Sign In")},t.createElement(se.Z,{variant:"body1"},g)))},loader:async(n,a)=>{const u=n.get(a),d=await u.getBackstageIdentity({optional:!0});if(!d)return;const g=await u.getProfile();return Er.create({identity:d.identity,profile:g,authApi:u})}},bi={Component:({onSignInSuccess:n})=>t.createElement(ya,null,t.createElement(He,{title:"Guest",variant:"fullHeight",actions:t.createElement(l.Z,{color:"primary",variant:"outlined",onClick:()=>n(new Ea)},"Enter")},t.createElement(se.Z,{variant:"body1"},"Enter as a Guest User.",t.createElement("br",null),"You will not have a verified identity,",t.createElement("br",null),"meaning some features might be unavailable."))),loader:async()=>new Ea};var Fi=e(94106),io=e(86619),lo=e(74828),Bi=e(45455),Mi=e.n(Bi);const Ni=/^[a-z0-9_\-]+\.[a-z0-9_\-]+\.[a-z0-9_\-]+$/i,Ui=(0,s.Z)(n=>({form:{display:"flex",flexFlow:"column nowrap"},button:{alignSelf:"center",marginTop:n.spacing(2)}}),{name:"BackstageCustomProvider"}),co=n=>{const{ref:a,...u}=n;return{inputRef:a,...u}},Zi={Component:({onSignInSuccess:n})=>{const a=Ui(),{register:u,handleSubmit:d,formState:g}=(0,Fi.cI)({mode:"onChange"}),{errors:R}=g,L=({userId:U})=>{n(Er.fromLegacy({userId:U,profile:{email:`${U}@example.com`}}))};return t.createElement(ya,null,t.createElement(He,{title:"Custom User",variant:"fullHeight"},t.createElement(se.Z,{variant:"body1"},"Enter your own User ID and credentials.",t.createElement("br",null),"This selection will not be stored."),t.createElement("form",{className:a.form,onSubmit:d(L)},t.createElement(Dn.Z,null,t.createElement(io.Z,{...co(u("userId",{required:!0})),label:"User ID",margin:"normal",error:Boolean(R.userId)}),R.userId&&t.createElement(lo.Z,{error:!0},R.userId.message)),t.createElement(Dn.Z,null,t.createElement(io.Z,{...co(u("idToken",{required:!1,validate:U=>!U||Ni.test(U)||"Token is not a valid OpenID Connect JWT Token"})),label:"ID Token (optional)",margin:"normal",autoComplete:"off",error:Boolean(R.idToken)}),R.idToken&&t.createElement(lo.Z,{error:!0},R.idToken.message)),t.createElement(l.Z,{type:"submit",color:"primary",variant:"outlined",className:a.button,disabled:!(g==null?void 0:g.isDirty)||!Mi()(R)},"Continue"))))},loader:async()=>{}},Jr="@backstage/core:SignInPage:provider",uo={guest:bi,custom:Zi,common:Di};function fo(n,a){if(n in a)throw new Error(`"${n}" ID is duplicated. IDs of identity providers have to be unique.`)}function Nl(n){return n.reduce((u,d)=>{if(typeof d=="string")return fo(d,u),u[d]={components:uo[d],id:d},u;const{id:g}=d;return fo(g,u),u[g]={components:uo.common,id:g,config:d},u},{})}const Ul=(n,a)=>{const u=useApi(errorApiRef),d=useApiHolder(),[g,R]=useState(!0),L=useCallback(K=>{a(IdentityApiSignOutProxy.from({identityApi:K,signOut:async()=>{var W;localStorage.removeItem(Jr),await((W=K.signOut)==null?void 0:W.call(K))}}))},[a]);useLayoutEffect(()=>{var ce;if(!g)return;const K=localStorage.getItem(Jr);if(K===null){R(!1);return}const W=n[K];if(!W){R(!1);return}let ne=!1;return W.components.loader(d,(ce=W.config)==null?void 0:ce.apiRef).then(Ae=>{ne||(Ae?L(Ae):R(!1))}).catch(Ae=>{ne||(localStorage.removeItem(Jr),u.post(Ae),R(!1))}),()=>{ne=!0}},[g,u,a,d,n,L]);const U=useMemo(()=>Object.keys(n).map(K=>{const W=n[K],{Component:ne}=W.components,ce=Ae=>{localStorage.setItem(Jr,W.id),L(Ae)};return React.createElement(ne,{key:W.id,config:W.config,onSignInSuccess:ce})}),[n,L]);return[g,U]},$i=({onSignInSuccess:n,providers:a=[],title:u,align:d="left"})=>{const g=useApi(configApiRef),R=useStyles(),L=getSignInProviders(a),[U,K]=useSignInProviders(L,n);return U?React.createElement(Progress,null):React.createElement(Page,{themeId:"home"},React.createElement(Header,{title:g.getString("app.title")}),React.createElement(Content,null,u&&React.createElement(ContentHeader,{title:u,textAlign:d}),React.createElement(Grid,{container:!0,justifyContent:d==="center"?d:"flex-start",spacing:2,component:"ul",classes:R},K)))},wi=({provider:n,auto:a,onSignInSuccess:u})=>{const d=useStyles(),g=useApi(n.apiRef),R=useApi(configApiRef),[L,U]=useState(),[K,W]=useState(!1),ne=async({checkExisting:ce,showPopup:Ae})=>{try{let Se;if(ce&&(Se=await g.getBackstageIdentity({optional:!0})),!Se&&(Ae||a)&&(W(!0),Se=await g.getBackstageIdentity({instantPopup:!0}),!Se))throw new Error(`The ${n.title} provider is not configured to support sign-in`);if(!Se){W(!0);return}const Te=await g.getProfile();u(UserIdentity.create({identity:Se.identity,authApi:g,profile:Te}))}catch(Se){U(Se),W(!0)}};return useMount(()=>ne({checkExisting:!0})),K?React.createElement(Page,{themeId:"home"},React.createElement(Header,{title:R.getString("app.title")}),React.createElement(Content,null,React.createElement(Grid,{container:!0,justifyContent:"center",spacing:2,component:"ul",classes:d},React.createElement(GridItem,null,React.createElement(InfoCard,{variant:"fullHeight",title:n.title,actions:React.createElement(Button,{color:"primary",variant:"outlined",onClick:()=>{ne({showPopup:!0})}},"Sign In")},React.createElement(Typography,{variant:"body1"},n.message),L&&L.name!=="PopupRejectedError"&&React.createElement(Typography,{variant:"body1",color:"error"},L.message)))))):React.createElement(Progress,null)};function Zl(n){return"provider"in n?React.createElement(wi,{...n}):React.createElement($i,{...n})}const Wi=(0,s.Z)(n=>({root:{padding:n.spacing(0,2,0,2.5),minHeight:n.spacing(3)},indicator:{backgroundColor:n.palette.info.main,height:n.spacing(.3)}}),{name:"BackstageTabbedCard"}),zi=(0,$.Z)(n=>({root:{padding:n.spacing(2,2,2,2.5),display:"inline-block"},title:{fontWeight:700},subheader:{paddingTop:n.spacing(1)}}),{name:"BackstageTabbedCardBoldHeader"})(N.Z);function $l(n){const{slackChannel:a,errorBoundaryProps:u,children:d,title:g,deepLink:R,value:L,onChange:U}=n,K=Wi(),[W,ne]=useState(0),ce=U||((Te,dt)=>ne(dt));let Ae;L?React.Children.map(d,Te=>{(Te==null?void 0:Te.props.value)===L&&(Ae=Te==null?void 0:Te.props.children)}):React.Children.map(d,(Te,dt)=>{dt===W&&(Ae=Te==null?void 0:Te.props.children)});const Se=u||(a?{slackChannel:a}:{});return React.createElement(Card,null,React.createElement(ErrorBoundary,{...Se},g&&React.createElement(zi,{title:g}),React.createElement(Tabs,{selectionFollowsFocus:!0,classes:K,value:L||W,onChange:ce},d),React.createElement(Divider,null),React.createElement(CardContent,null,Ae),R&&React.createElement(BottomLink,{...R})))}const Hi=(0,s.Z)(n=>({root:{minWidth:n.spacing(6),minHeight:n.spacing(3),margin:n.spacing(0,2,0,0),padding:n.spacing(.5,0,.5,0),textTransform:"none","&:hover":{opacity:1,backgroundColor:"transparent",color:n.palette.text.primary}},selected:{fontWeight:"bold"}}),{name:"BackstageCardTab"});function wl(n){const{children:a,...u}=n,d=Hi();return React.createElement(Tab,{disableRipple:!0,classes:d,...u})}},88609:function(J,o,e){"use strict";e.d(o,{Os:function(){return f},fC:function(){return E}});var r=e(76241),t=e(2784);const c=(0,r.CT)("analytics-context"),f=()=>{const p=(0,t.useContext)(c);if(p===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const h=p.atVersion(1);if(h===void 0)throw new Error("No context found for version 1.");return h},E=p=>{const{attributes:h,children:m}=p,y={...f(),...h},i=(0,r.EI)({1:y});return t.createElement(c.Provider,{value:i},m)};function s(p,h){const m=l=>React.createElement(E,{attributes:h},React.createElement(p,{...l}));return m.displayName=`WithAnalyticsContext(${p.displayName||p.name||"Component"})`,m}},28461:function(J,o,e){"use strict";e.d(o,{f:function(){return r.fC},z:function(){return s}});var r=e(88609),t=e(27399),c=e(2784);class f{constructor(h,m={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=h,this.context=m}setContext(h){this.context=h}captureEvent(h,m,{value:l,attributes:y}={}){try{this.analyticsApi.captureEvent({action:h,subject:m,value:l,attributes:y,context:this.context})}catch(i){console.warn("Error during analytics event capture. %o",i)}}}function E(){try{return(0,t.useApi)(t.analyticsApiRef)}catch{return{captureEvent:()=>{}}}}function s(){const p=(0,c.useRef)(null),h=(0,r.Os)(),m=E();function l(){return p.current===null&&(p.current=new f(m)),p.current}const y=l();return y.setContext(h),y}},39135:function(J,o,e){"use strict";e.d(o,{CL:function(){return H},sM:function(){return t},$v:function(){return I},v_:function(){return V},hg:function(){return B},uB:function(){return b},iW:function(){return p},bq:function(){return S},Ds:function(){return P},NW:function(){return O},VE:function(){return x},W0:function(){return q},gP:function(){return oe},F4:function(){return f},ux:function(){return s},Kp:function(){return c},$4:function(){return pe},p_:function(){return h},br:function(){return m},ZM:function(){return Ie},eC:function(){return l},D:function(){return E},gW:function(){return i},Yp:function(){return y},E6:function(){return me}});var r=e(86833),t;(function(ze){const Pe="SignedIn";ze.SignedIn=Pe;const Qe="SignedOut";ze.SignedOut=Qe})(t||(t={}));const c=(0,r.T0)({id:"core.auth.google"}),f=(0,r.T0)({id:"core.auth.github"}),E=(0,r.T0)({id:"core.auth.okta"}),s=(0,r.T0)({id:"core.auth.gitlab"}),p=(0,r.T0)({id:"core.auth.auth0"}),h=(0,r.T0)({id:"core.auth.microsoft"}),m=(0,r.T0)({id:"core.auth.oauth2"}),l=(0,r.T0)({id:"core.auth.oidc"}),y=(0,r.T0)({id:"core.auth.saml"}),i=(0,r.T0)({id:"core.auth.onelogin"}),S=(0,r.T0)({id:"core.auth.bitbucket"}),b=(0,r.T0)({id:"core.auth.atlassian"}),I=(0,r.T0)({id:"core.alert"}),V=(0,r.T0)({id:"core.analytics"}),B=(0,r.T0)({id:"core.apptheme"}),P=(0,r.T0)({id:"core.config"}),O=(0,r.T0)({id:"core.discovery"}),x=(0,r.T0)({id:"core.error"});var H;(function(ze){const Pe=0;ze[ze.None=Pe]="None";const Qe=1;ze[ze.Active=Qe]="Active"})(H||(H={}));const q=(0,r.T0)({id:"core.featureflags"}),oe=(0,r.T0)({id:"core.fetch"}),pe=(0,r.T0)({id:"core.identity"}),Ie=(0,r.T0)({id:"core.oauthrequest"}),me=(0,r.T0)({id:"core.storage"})},27399:function(J,o,e){"use strict";e.d(o,{createApiFactory:function(){return r.createApiFactory},createApiRef:function(){return r.T0},useApi:function(){return r.h_},useApiHolder:function(){return r.I_},FeatureFlagState:function(){return t.CL},SessionState:function(){return t.sM},alertApiRef:function(){return t.$v},analyticsApiRef:function(){return t.v_},appThemeApiRef:function(){return t.hg},atlassianAuthApiRef:function(){return t.uB},auth0AuthApiRef:function(){return t.iW},bitbucketAuthApiRef:function(){return t.bq},configApiRef:function(){return t.Ds},discoveryApiRef:function(){return t.NW},errorApiRef:function(){return t.VE},featureFlagsApiRef:function(){return t.W0},fetchApiRef:function(){return t.gP},githubAuthApiRef:function(){return t.F4},gitlabAuthApiRef:function(){return t.ux},googleAuthApiRef:function(){return t.Kp},identityApiRef:function(){return t.$4},microsoftAuthApiRef:function(){return t.p_},oauth2ApiRef:function(){return t.br},oauthRequestApiRef:function(){return t.ZM},oidcAuthApiRef:function(){return t.eC},oktaAuthApiRef:function(){return t.D},oneloginAuthApiRef:function(){return t.gW},samlAuthApiRef:function(){return t.Yp},storageApiRef:function(){return t.E6}});var r=e(86833);e.o(r,"FeatureFlagState")&&e.d(o,{FeatureFlagState:function(){return r.FeatureFlagState}}),e.o(r,"SessionState")&&e.d(o,{SessionState:function(){return r.SessionState}}),e.o(r,"alertApiRef")&&e.d(o,{alertApiRef:function(){return r.alertApiRef}}),e.o(r,"analyticsApiRef")&&e.d(o,{analyticsApiRef:function(){return r.analyticsApiRef}}),e.o(r,"appThemeApiRef")&&e.d(o,{appThemeApiRef:function(){return r.appThemeApiRef}}),e.o(r,"atlassianAuthApiRef")&&e.d(o,{atlassianAuthApiRef:function(){return r.atlassianAuthApiRef}}),e.o(r,"attachComponentData")&&e.d(o,{attachComponentData:function(){return r.attachComponentData}}),e.o(r,"auth0AuthApiRef")&&e.d(o,{auth0AuthApiRef:function(){return r.auth0AuthApiRef}}),e.o(r,"bitbucketAuthApiRef")&&e.d(o,{bitbucketAuthApiRef:function(){return r.bitbucketAuthApiRef}}),e.o(r,"configApiRef")&&e.d(o,{configApiRef:function(){return r.configApiRef}}),e.o(r,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return r.createComponentExtension}}),e.o(r,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return r.createExternalRouteRef}}),e.o(r,"createPlugin")&&e.d(o,{createPlugin:function(){return r.createPlugin}}),e.o(r,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return r.createRoutableExtension}}),e.o(r,"createRouteRef")&&e.d(o,{createRouteRef:function(){return r.createRouteRef}}),e.o(r,"discoveryApiRef")&&e.d(o,{discoveryApiRef:function(){return r.discoveryApiRef}}),e.o(r,"errorApiRef")&&e.d(o,{errorApiRef:function(){return r.errorApiRef}}),e.o(r,"featureFlagsApiRef")&&e.d(o,{featureFlagsApiRef:function(){return r.featureFlagsApiRef}}),e.o(r,"fetchApiRef")&&e.d(o,{fetchApiRef:function(){return r.fetchApiRef}}),e.o(r,"getComponentData")&&e.d(o,{getComponentData:function(){return r.getComponentData}}),e.o(r,"githubAuthApiRef")&&e.d(o,{githubAuthApiRef:function(){return r.githubAuthApiRef}}),e.o(r,"gitlabAuthApiRef")&&e.d(o,{gitlabAuthApiRef:function(){return r.gitlabAuthApiRef}}),e.o(r,"googleAuthApiRef")&&e.d(o,{googleAuthApiRef:function(){return r.googleAuthApiRef}}),e.o(r,"identityApiRef")&&e.d(o,{identityApiRef:function(){return r.identityApiRef}}),e.o(r,"microsoftAuthApiRef")&&e.d(o,{microsoftAuthApiRef:function(){return r.microsoftAuthApiRef}}),e.o(r,"oauth2ApiRef")&&e.d(o,{oauth2ApiRef:function(){return r.oauth2ApiRef}}),e.o(r,"oauthRequestApiRef")&&e.d(o,{oauthRequestApiRef:function(){return r.oauthRequestApiRef}}),e.o(r,"oidcAuthApiRef")&&e.d(o,{oidcAuthApiRef:function(){return r.oidcAuthApiRef}}),e.o(r,"oktaAuthApiRef")&&e.d(o,{oktaAuthApiRef:function(){return r.oktaAuthApiRef}}),e.o(r,"oneloginAuthApiRef")&&e.d(o,{oneloginAuthApiRef:function(){return r.oneloginAuthApiRef}}),e.o(r,"samlAuthApiRef")&&e.d(o,{samlAuthApiRef:function(){return r.samlAuthApiRef}}),e.o(r,"storageApiRef")&&e.d(o,{storageApiRef:function(){return r.storageApiRef}}),e.o(r,"useApp")&&e.d(o,{useApp:function(){return r.useApp}}),e.o(r,"useElementFilter")&&e.d(o,{useElementFilter:function(){return r.useElementFilter}}),e.o(r,"useRouteRef")&&e.d(o,{useRouteRef:function(){return r.useRouteRef}}),e.o(r,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return r.useRouteRefParams}});var t=e(39135)},90515:function(J,o,e){"use strict";e.d(o,{T:function(){return t}});class r{constructor(f){if(this.config=f,!f.id.split(".").flatMap(s=>s.split("-")).every(s=>s.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${f.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function t(c){return new r(c)}},25182:function(J,o,e){"use strict";e.d(o,{n:function(){return r}});function r(t,c){return"id"in t?{api:t,deps:{},factory:()=>c}:t}},86833:function(J,o,e){"use strict";e.d(o,{h_:function(){return r.h_},I_:function(){return r.I_},T0:function(){return t.T},createApiFactory:function(){return E.n}});var r=e(5761),t=e(90515),c=e(16362),f=e.n(c);e.o(c,"FeatureFlagState")&&e.d(o,{FeatureFlagState:function(){return c.FeatureFlagState}}),e.o(c,"SessionState")&&e.d(o,{SessionState:function(){return c.SessionState}}),e.o(c,"alertApiRef")&&e.d(o,{alertApiRef:function(){return c.alertApiRef}}),e.o(c,"analyticsApiRef")&&e.d(o,{analyticsApiRef:function(){return c.analyticsApiRef}}),e.o(c,"appThemeApiRef")&&e.d(o,{appThemeApiRef:function(){return c.appThemeApiRef}}),e.o(c,"atlassianAuthApiRef")&&e.d(o,{atlassianAuthApiRef:function(){return c.atlassianAuthApiRef}}),e.o(c,"attachComponentData")&&e.d(o,{attachComponentData:function(){return c.attachComponentData}}),e.o(c,"auth0AuthApiRef")&&e.d(o,{auth0AuthApiRef:function(){return c.auth0AuthApiRef}}),e.o(c,"bitbucketAuthApiRef")&&e.d(o,{bitbucketAuthApiRef:function(){return c.bitbucketAuthApiRef}}),e.o(c,"configApiRef")&&e.d(o,{configApiRef:function(){return c.configApiRef}}),e.o(c,"createApiFactory")&&e.d(o,{createApiFactory:function(){return c.createApiFactory}}),e.o(c,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return c.createComponentExtension}}),e.o(c,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return c.createExternalRouteRef}}),e.o(c,"createPlugin")&&e.d(o,{createPlugin:function(){return c.createPlugin}}),e.o(c,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return c.createRoutableExtension}}),e.o(c,"createRouteRef")&&e.d(o,{createRouteRef:function(){return c.createRouteRef}}),e.o(c,"discoveryApiRef")&&e.d(o,{discoveryApiRef:function(){return c.discoveryApiRef}}),e.o(c,"errorApiRef")&&e.d(o,{errorApiRef:function(){return c.errorApiRef}}),e.o(c,"featureFlagsApiRef")&&e.d(o,{featureFlagsApiRef:function(){return c.featureFlagsApiRef}}),e.o(c,"fetchApiRef")&&e.d(o,{fetchApiRef:function(){return c.fetchApiRef}}),e.o(c,"getComponentData")&&e.d(o,{getComponentData:function(){return c.getComponentData}}),e.o(c,"githubAuthApiRef")&&e.d(o,{githubAuthApiRef:function(){return c.githubAuthApiRef}}),e.o(c,"gitlabAuthApiRef")&&e.d(o,{gitlabAuthApiRef:function(){return c.gitlabAuthApiRef}}),e.o(c,"googleAuthApiRef")&&e.d(o,{googleAuthApiRef:function(){return c.googleAuthApiRef}}),e.o(c,"identityApiRef")&&e.d(o,{identityApiRef:function(){return c.identityApiRef}}),e.o(c,"microsoftAuthApiRef")&&e.d(o,{microsoftAuthApiRef:function(){return c.microsoftAuthApiRef}}),e.o(c,"oauth2ApiRef")&&e.d(o,{oauth2ApiRef:function(){return c.oauth2ApiRef}}),e.o(c,"oauthRequestApiRef")&&e.d(o,{oauthRequestApiRef:function(){return c.oauthRequestApiRef}}),e.o(c,"oidcAuthApiRef")&&e.d(o,{oidcAuthApiRef:function(){return c.oidcAuthApiRef}}),e.o(c,"oktaAuthApiRef")&&e.d(o,{oktaAuthApiRef:function(){return c.oktaAuthApiRef}}),e.o(c,"oneloginAuthApiRef")&&e.d(o,{oneloginAuthApiRef:function(){return c.oneloginAuthApiRef}}),e.o(c,"samlAuthApiRef")&&e.d(o,{samlAuthApiRef:function(){return c.samlAuthApiRef}}),e.o(c,"storageApiRef")&&e.d(o,{storageApiRef:function(){return c.storageApiRef}}),e.o(c,"useApp")&&e.d(o,{useApp:function(){return c.useApp}}),e.o(c,"useElementFilter")&&e.d(o,{useElementFilter:function(){return c.useElementFilter}}),e.o(c,"useRouteRef")&&e.d(o,{useRouteRef:function(){return c.useRouteRef}}),e.o(c,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return c.useRouteRefParams}});var E=e(25182)},16362:function(){},5761:function(J,o,e){"use strict";e.d(o,{I_:function(){return c},h_:function(){return f}});var r=e(2784),t=e(76241);function c(){const s=(0,t.Vt)("api-context");if(!s)throw new Error("API context is not available");const p=s.atVersion(1);if(!p)throw new Error("ApiContext v1 not available");return p}function f(s){const h=c().get(s);if(!h)throw new Error(`No implementation available for ${s}`);return h}function E(s){return function(h){const m=y=>{const i=c(),S={};for(const b in s)if(s.hasOwnProperty(b)){const I=s[b],V=i.get(I);if(!V)throw new Error(`No implementation available for ${I}`);S[b]=V}return React.createElement(h,{...y,...S})},l=h.displayName||h.name||"Component";return m.displayName=`withApis(${l})`,m}}},31311:function(J,o,e){"use strict";e.d(o,{q:function(){return r.q}});var r=e(32483),t=e(67229),c=e.n(t);e.o(t,"attachComponentData")&&e.d(o,{attachComponentData:function(){return t.attachComponentData}}),e.o(t,"createApiFactory")&&e.d(o,{createApiFactory:function(){return t.createApiFactory}}),e.o(t,"createApiRef")&&e.d(o,{createApiRef:function(){return t.createApiRef}}),e.o(t,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return t.createComponentExtension}}),e.o(t,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return t.createExternalRouteRef}}),e.o(t,"createPlugin")&&e.d(o,{createPlugin:function(){return t.createPlugin}}),e.o(t,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return t.createRoutableExtension}}),e.o(t,"createRouteRef")&&e.d(o,{createRouteRef:function(){return t.createRouteRef}}),e.o(t,"getComponentData")&&e.d(o,{getComponentData:function(){return t.getComponentData}}),e.o(t,"useApi")&&e.d(o,{useApi:function(){return t.useApi}}),e.o(t,"useApiHolder")&&e.d(o,{useApiHolder:function(){return t.useApiHolder}}),e.o(t,"useElementFilter")&&e.d(o,{useElementFilter:function(){return t.useElementFilter}}),e.o(t,"useRouteRef")&&e.d(o,{useRouteRef:function(){return t.useRouteRef}}),e.o(t,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return t.useRouteRefParams}})},67229:function(){},32483:function(J,o,e){"use strict";e.d(o,{q:function(){return t}});var r=e(76241);const t=()=>{const c=(0,r.Vt)("app-context");if(!c)throw new Error("App context is not available");const f=c.atVersion(1);if(!f)throw new Error("AppContext v1 not available");return f}},74181:function(J,o,e){"use strict";e.d(o,{R5:function(){return f},CO:function(){return i},P4:function(){return y},IY:function(){return E},vJ:function(){return B}});var r=e(76241);const t=(0,r.uW)("component-data-store",()=>new WeakMap),c="__backstage_data";function f(P,O,x){var oe;const H=P;let q=(oe=H[c])!=null?oe:t.get(P);if(q||(q={map:new Map},Object.defineProperty(H,c,{enumerable:!1,configurable:!0,writable:!1,value:q}),t.set(P,q)),q.map.has(O)){const pe=P.displayName||P.name;throw new Error(`Attempted to attach duplicate data "${O}" to component "${pe}"`)}q.map.set(O,x)}function E(P,O){var q;if(!P)return;const x=P.type;if(!x)return;const H=(q=x[c])!=null?q:t.get(x);if(!!H)return H.map.get(O)}var s=e(2784),p=e(88609),h=e(31311),m=e(82772);class l extends s.Component{constructor(){super(...arguments);_(this,"state",{error:void 0});_(this,"handleErrorReset",()=>{this.setState({error:void 0})})}static getDerivedStateFromError(O){return{error:O}}render(){const{error:O}=this.state,{app:x,plugin:H}=this.props,{ErrorBoundaryFallback:q}=x.getComponents();return O?s.createElement(q,{error:O,resetError:this.handleErrorReset,plugin:H}):this.props.children}}function y(P){const{component:O,mountPoint:x,name:H}=P;return S({component:{lazy:()=>O().then(q=>{const oe=Ie=>{try{(0,m.tg)(x)}catch(me){if(typeof me=="object"&&me!==null){const{message:ze}=me;if(typeof ze=="string"&&ze.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${x} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw me}return s.createElement(q,{...Ie})},pe=H||q.displayName||q.name||"LazyComponent";return oe.displayName=`RoutableExtension(${pe})`,oe},q=>pe=>{const Ie=(0,h.q)(),{BootErrorPage:me}=Ie.getComponents();return s.createElement(me,{step:"load-chunk",error:q})})},data:{"core.mountPoint":x},name:H})}function i(P){const{component:O,name:x}=P;return S({component:O,name:x})}function S(P){const{data:O={},name:x}=P;x||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let H;if("lazy"in P.component){const oe=P.component.lazy;H=(0,s.lazy)(()=>oe().then(pe=>({default:pe})))}else H=P.component.sync;const q=x||H.displayName||H.name||"Component";return{expose(oe){const pe=Ie=>{const me=(0,h.q)(),{Progress:ze}=me.getComponents(),Pe=O==null?void 0:O["core.mountPoint"];return s.createElement(s.Suspense,{fallback:s.createElement(ze,null)},s.createElement(l,{app:me,plugin:oe},s.createElement(p.fC,{attributes:{pluginId:oe.getId(),...x&&{extension:x},...Pe&&{routeRef:Pe.id}}},s.createElement(H,{...Ie}))))};f(pe,"core.plugin",oe);for(const[Ie,me]of Object.entries(O))f(pe,Ie,me);return pe.displayName=`Extension(${q})`,pe}}}var b=e(27399);function I(P,O,x,H){return s.Children.toArray(P).flatMap(q=>{if(!(0,s.isValidElement)(q))return[];if(q.type===s.Fragment)return I(q.props.children,O,x,H);if(E(q,"core.featureFlagged")){const oe=q.props;return("with"in oe?O.isActive(oe.with):!O.isActive(oe.without))?I(q.props.children,O,x,H):[]}if(x===void 0||x(q))return[q];if(H)throw new Error(H);return I(q.props.children,O,x,H)})}class V{constructor(O,x){this.node=O,this.featureFlagsApi=x}selectByComponentData(O){const x=I(this.node,this.featureFlagsApi,H=>E(H,O.key)!==void 0,O.withStrictError);return new V(x,this.featureFlagsApi)}findComponentData(O){return I(this.node,this.featureFlagsApi,H=>E(H,O.key)!==void 0).map(H=>E(H,O.key)).filter(H=>H!==void 0)}getElements(){return I(this.node,this.featureFlagsApi)}}function B(P,O,x=[]){const H=(0,b.useApi)(b.featureFlagsApiRef),q=new V(P,H);return(0,s.useMemo)(()=>O(q),[P,...x])}},80274:function(){},36964:function(J,o,e){"use strict";e.d(o,{AnalyticsContext:function(){return r.f},useAnalytics:function(){return r.z},FeatureFlagState:function(){return t.FeatureFlagState},SessionState:function(){return t.SessionState},alertApiRef:function(){return t.alertApiRef},analyticsApiRef:function(){return t.analyticsApiRef},appThemeApiRef:function(){return t.appThemeApiRef},atlassianAuthApiRef:function(){return t.atlassianAuthApiRef},auth0AuthApiRef:function(){return t.auth0AuthApiRef},bitbucketAuthApiRef:function(){return t.bitbucketAuthApiRef},configApiRef:function(){return t.configApiRef},discoveryApiRef:function(){return t.discoveryApiRef},errorApiRef:function(){return t.errorApiRef},featureFlagsApiRef:function(){return t.featureFlagsApiRef},fetchApiRef:function(){return t.fetchApiRef},githubAuthApiRef:function(){return t.githubAuthApiRef},gitlabAuthApiRef:function(){return t.gitlabAuthApiRef},googleAuthApiRef:function(){return t.googleAuthApiRef},identityApiRef:function(){return t.identityApiRef},microsoftAuthApiRef:function(){return t.microsoftAuthApiRef},oauth2ApiRef:function(){return t.oauth2ApiRef},oauthRequestApiRef:function(){return t.oauthRequestApiRef},oidcAuthApiRef:function(){return t.oidcAuthApiRef},oktaAuthApiRef:function(){return t.oktaAuthApiRef},oneloginAuthApiRef:function(){return t.oneloginAuthApiRef},samlAuthApiRef:function(){return t.samlAuthApiRef},storageApiRef:function(){return t.storageApiRef},useApp:function(){return c.q},attachComponentData:function(){return f.R5},createComponentExtension:function(){return f.CO},createRoutableExtension:function(){return f.P4},getComponentData:function(){return f.IY},useElementFilter:function(){return f.vJ},createPlugin:function(){return p.r},createExternalRouteRef:function(){return h.x8},createRouteRef:function(){return h.NT},useRouteRef:function(){return h.tg},useRouteRefParams:function(){return h.Oi}});var r=e(28461),t=e(27399);e.o(t,"attachComponentData")&&e.d(o,{attachComponentData:function(){return t.attachComponentData}}),e.o(t,"createApiFactory")&&e.d(o,{createApiFactory:function(){return t.createApiFactory}}),e.o(t,"createApiRef")&&e.d(o,{createApiRef:function(){return t.createApiRef}}),e.o(t,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return t.createComponentExtension}}),e.o(t,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return t.createExternalRouteRef}}),e.o(t,"createPlugin")&&e.d(o,{createPlugin:function(){return t.createPlugin}}),e.o(t,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return t.createRoutableExtension}}),e.o(t,"createRouteRef")&&e.d(o,{createRouteRef:function(){return t.createRouteRef}}),e.o(t,"getComponentData")&&e.d(o,{getComponentData:function(){return t.getComponentData}}),e.o(t,"useApi")&&e.d(o,{useApi:function(){return t.useApi}}),e.o(t,"useApiHolder")&&e.d(o,{useApiHolder:function(){return t.useApiHolder}}),e.o(t,"useApp")&&e.d(o,{useApp:function(){return t.useApp}}),e.o(t,"useElementFilter")&&e.d(o,{useElementFilter:function(){return t.useElementFilter}}),e.o(t,"useRouteRef")&&e.d(o,{useRouteRef:function(){return t.useRouteRef}}),e.o(t,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return t.useRouteRefParams}});var c=e(31311);e.o(c,"attachComponentData")&&e.d(o,{attachComponentData:function(){return c.attachComponentData}}),e.o(c,"createApiFactory")&&e.d(o,{createApiFactory:function(){return c.createApiFactory}}),e.o(c,"createApiRef")&&e.d(o,{createApiRef:function(){return c.createApiRef}}),e.o(c,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return c.createComponentExtension}}),e.o(c,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return c.createExternalRouteRef}}),e.o(c,"createPlugin")&&e.d(o,{createPlugin:function(){return c.createPlugin}}),e.o(c,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return c.createRoutableExtension}}),e.o(c,"createRouteRef")&&e.d(o,{createRouteRef:function(){return c.createRouteRef}}),e.o(c,"getComponentData")&&e.d(o,{getComponentData:function(){return c.getComponentData}}),e.o(c,"useApi")&&e.d(o,{useApi:function(){return c.useApi}}),e.o(c,"useApiHolder")&&e.d(o,{useApiHolder:function(){return c.useApiHolder}}),e.o(c,"useElementFilter")&&e.d(o,{useElementFilter:function(){return c.useElementFilter}}),e.o(c,"useRouteRef")&&e.d(o,{useRouteRef:function(){return c.useRouteRef}}),e.o(c,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return c.useRouteRefParams}});var f=e(74181),E=e(80274),s=e.n(E);e.o(E,"createApiFactory")&&e.d(o,{createApiFactory:function(){return E.createApiFactory}}),e.o(E,"createApiRef")&&e.d(o,{createApiRef:function(){return E.createApiRef}}),e.o(E,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return E.createExternalRouteRef}}),e.o(E,"createPlugin")&&e.d(o,{createPlugin:function(){return E.createPlugin}}),e.o(E,"createRouteRef")&&e.d(o,{createRouteRef:function(){return E.createRouteRef}}),e.o(E,"useApi")&&e.d(o,{useApi:function(){return E.useApi}}),e.o(E,"useApiHolder")&&e.d(o,{useApiHolder:function(){return E.useApiHolder}}),e.o(E,"useRouteRef")&&e.d(o,{useRouteRef:function(){return E.useRouteRef}}),e.o(E,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return E.useRouteRefParams}});var p=e(96896),h=e(82772)},96896:function(J,o,e){"use strict";e.d(o,{r:function(){return t}});class r{constructor(f){this.config=f}getId(){return this.config.id}getApis(){var f;return(f=this.config.apis)!=null?f:[]}getFeatureFlags(){var f,E;return(E=(f=this.config.featureFlags)==null?void 0:f.slice())!=null?E:[]}get routes(){var f;return(f=this.config.routes)!=null?f:{}}get externalRoutes(){var f;return(f=this.config.externalRoutes)!=null?f:{}}provide(f){return f.expose(this)}toString(){return`plugin{${this.config.id}}`}}function t(c){return new r(c)}},82772:function(J,o,e){var b,I,V;"use strict";e.d(o,{x8:function(){return m},NT:function(){return f},tg:function(){return i},Oi:function(){return S}});var r=e(76241);const t=(0,r.uW)("route-ref-type",()=>Symbol("route-ref-type"));class c{constructor(P,O){_(this,b,"absolute");this.id=P,this.params=O}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}b=t;function f(B){var P;return new c(B.id,(P=B.params)!=null?P:[])}const E=/^\w+$/;class s{constructor(P,O,x,H){_(this,I,"sub");this.id=P,this.path=O,this.parent=x,this.params=H}toString(){return`routeRef{type=sub,id=${this.id}}`}}I=t;function p(B){const{id:P,path:O,parent:x}=B,H=O.split("/").filter(pe=>pe.startsWith(":")).map(pe=>pe.substring(1)),q=[...x.params,...H];if(x.params.some(pe=>H.includes(pe)))throw new Error("SubRouteRef may not have params that overlap with its parent");if(!O.startsWith("/"))throw new Error(`SubRouteRef path must start with '/', got '${O}'`);if(O.endsWith("/"))throw new Error(`SubRouteRef path must not end with '/', got '${O}'`);for(const pe of H)if(!E.test(pe))throw new Error(`SubRouteRef path has invalid param, got '${pe}'`);return new s(P,O,x,q)}class h{constructor(P,O,x){_(this,V,"external");this.id=P,this.params=O,this.optional=x}toString(){return`routeRef{type=external,id=${this.id}}`}}V=t;function m(B){var P;return new h(B.id,(P=B.params)!=null?P:[],Boolean(B.optional))}var l=e(2784),y=e(10289);function i(B){const P=(0,y.TH)(),O=(0,r.Vt)("routing-context");if(!O)throw new Error("Routing context is not available");const x=O.atVersion(1),H=(0,l.useMemo)(()=>x&&x.resolve(B,P),[x,B,P]);if(!O)throw new Error("useRouteRef used outside of routing context");if(!x)throw new Error("RoutingContext v1 not available");const q="optional"in B&&B.optional;if(!H&&!q)throw new Error(`No path for ${B}`);return H}function S(B){return(0,y.UO)()}},41333:function(J,o,e){"use strict";var r={};e.r(r),e.d(r,{TechDocsPlugin:function(){return Ke}});var t=e(2784),c=e(28316),f=e(10289),E=e(49208),s=e(36964),p=e(20221);const h=[(0,s.createApiFactory)({api:s.discoveryApiRef,deps:{configApi:s.configApiRef},factory:({configApi:v})=>E.UrlPatternDiscovery.compile(`${v.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,s.createApiFactory)({api:s.alertApiRef,deps:{},factory:()=>new E.AlertApiForwarder}),(0,s.createApiFactory)({api:s.analyticsApiRef,deps:{},factory:()=>new E.NoOpAnalyticsApi}),(0,s.createApiFactory)({api:s.errorApiRef,deps:{alertApi:s.alertApiRef},factory:({alertApi:v})=>{const M=new E.ErrorAlerter(v,new E.ErrorApiForwarder);return E.UnhandledErrorForwarder.forward(M,{hidden:!1}),M}}),(0,s.createApiFactory)({api:s.storageApiRef,deps:{errorApi:s.errorApiRef},factory:({errorApi:v})=>E.WebStorage.create({errorApi:v})}),(0,s.createApiFactory)({api:s.fetchApiRef,deps:{configApi:s.configApiRef,identityApi:s.identityApiRef,discoveryApi:s.discoveryApiRef},factory:({configApi:v,identityApi:M,discoveryApi:k})=>(0,E.createFetchApi)({middleware:[E.FetchMiddlewares.resolvePluginProtocol({discoveryApi:k}),E.FetchMiddlewares.injectIdentityAuth({identityApi:M,config:v})]})}),(0,s.createApiFactory)({api:s.oauthRequestApiRef,deps:{},factory:()=>new E.OAuthRequestManager}),(0,s.createApiFactory)({api:s.googleAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GoogleAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.microsoftAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.MicrosoftAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.githubAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GithubAuth.create({discoveryApi:v,oauthRequestApi:M,defaultScopes:["read:user"],environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oktaAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OktaAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.gitlabAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GitlabAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.auth0AuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.Auth0Auth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oauth2ApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OAuth2.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.samlAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,configApi:M})=>E.SamlAuth.create({discoveryApi:v,environment:M.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oneloginAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OneLoginAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oidcAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OAuth2.create({discoveryApi:v,oauthRequestApi:M,provider:{id:"oidc",title:"Your Identity Provider",icon:()=>null},environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.bitbucketAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.BitbucketAuth.create({discoveryApi:v,oauthRequestApi:M,defaultScopes:["team"],environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.atlassianAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.AtlassianAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:p.RV,deps:{discovery:s.discoveryApiRef,identity:s.identityApiRef,config:s.configApiRef},factory:({config:v,discovery:M,identity:k})=>p.iM.create({config:v,discovery:M,identity:k})})];var m=e(77277),l=e(9118),y=e(62833);function i({children:v}){return(0,f.GV)()?t.createElement(t.Fragment,null,v):t.createElement(f.VA,null,v)}const S=()=>t.createElement(l.ErrorPage,{status:"404",statusMessage:"PAGE NOT FOUND"}),b=({step:v,error:M})=>{let k="";return v==="load-config"?k=`The configuration failed to load, someone should have a look at this error: ${M.message}`:v==="load-chunk"&&(k=`Lazy loaded chunk failed to load, try to reload the page: ${M.message}`),t.createElement(i,null,t.createElement(l.ErrorPage,{status:"501",statusMessage:k}))},I=({error:v,resetError:M,plugin:k})=>t.createElement(l.ErrorPanel,{title:`Error in ${k==null?void 0:k.getId()}`,defaultExpanded:!0,error:v},t.createElement(m.Z,{variant:"outlined",onClick:M},"Retry")),V={Progress:l.Progress,Router:y.VK,NotFoundErrorPage:S,BootErrorPage:b,ErrorBoundaryFallback:I};var B=e(43642),P=e(80079),O=e(90941),x=e(32915),H=e(40562),q=e(21853),oe=e(60744),pe=e(66569),Ie=e(30254),me=e(13384),ze=e(15933),Pe=e(58838),Qe=e(86737),st=e(4989),_e=e(44407),gt=e(18628),nt=e(84219),at=e(98685),Rt=e(39781);const zt={brokenImage:P.Z,catalog:gt.Z,scaffolder:x.Z,techdocs:H.Z,search:q.Z,chat:oe.Z,dashboard:pe.Z,docs:Ie.Z,email:me.Z,github:Pe.Z,group:nt.Z,help:Qe.Z,"kind:api":ze.Z,"kind:component":_e.Z,"kind:domain":B.Z,"kind:group":nt.Z,"kind:location":st.Z,"kind:system":O.Z,"kind:user":at.Z,user:at.Z,warning:Rt.Z};var Ot=e(73689),pt=e(48032);const rt={wave:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,wave2:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,round:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`},Tt={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"]};function Pt(v,M){const de=`linear-gradient(90deg, ${(v.length===1?[v[0],v[0]]:v).join(", ")})`,Me=`${M}, ${de}`;return{colors:v,shape:M,backgroundImage:Me}}const xt={home:Pt(Tt.teal,rt.wave),documentation:Pt(Tt.pinkSea,rt.wave2),tool:Pt(Tt.purpleSky,rt.round),service:Pt(Tt.marineBlue,rt.wave),website:Pt(Tt.veryBlue,rt.wave),library:Pt(Tt.rubyRed,rt.wave),other:Pt(Tt.darkGrey,rt.wave),app:Pt(Tt.toastyOrange,rt.wave),apis:Pt(Tt.teal,rt.wave2)},Nt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif';function ht(v){const{palette:M,fontFamily:k=Nt,defaultPageTheme:de,pageTheme:Me=xt}=v;if(!Me[de])throw new Error(`${de} is not defined in pageTheme.`);return{palette:M,props:{MuiGrid:{spacing:2},MuiSwitch:{color:"primary"}},typography:{fontFamily:k,h5:{fontWeight:700},h4:{fontWeight:700,fontSize:28,marginBottom:6},h3:{fontSize:32,fontWeight:700,marginBottom:6},h2:{fontSize:40,fontWeight:700,marginBottom:8},h1:{fontSize:54,fontWeight:700,marginBottom:10}},page:Me[de],getPageTheme:({themeId:qe})=>{var xe;return(xe=Me[qe])!=null?xe:Me[de]}}}function It(v){return{MuiCssBaseline:{"@global":{html:{height:"100%",fontFamily:v.typography.fontFamily},body:{height:"100%",fontFamily:v.typography.fontFamily,"overscroll-behavior-y":"none"},a:{color:"inherit",textDecoration:"none"}}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:v.palette.background.default}},hover:{"&:hover":{cursor:"pointer"}},head:{"&:nth-of-type(odd)":{backgroundColor:v.palette.background.paper}}},MuiTableCell:{root:{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:v.spacing(3,2,3,2.5),borderBottom:0},sizeSmall:{padding:v.spacing(1.5,2,1.5,2.5)},head:{wordBreak:"break-word",overflow:"hidden",color:"rgb(179, 179, 179)",fontWeight:"normal",lineHeight:"1"}},MuiTabs:{root:{minHeight:24}},MuiTab:{root:{color:v.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,pt.darken)(v.palette.link,.3),background:(0,pt.lighten)(v.palette.link,.95)},[v.breakpoints.up("md")]:{minWidth:120,fontSize:v.typography.pxToRem(14),fontWeight:500}},textColorPrimary:{color:v.palette.link}},MuiTableSortLabel:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"}},active:{fontWeight:"bold",color:"inherit"}},MuiListItemText:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},MuiButton:{text:{padding:void 0}},MuiChip:{root:{backgroundColor:"#D9D9D9",marginRight:v.spacing(1),marginBottom:v.spacing(1),color:v.palette.grey[900]},outlined:{color:v.palette.text.primary},label:{lineHeight:`${v.spacing(2.5)}px`,fontWeight:v.typography.fontWeightMedium,fontSize:`${v.spacing(1.75)}px`},labelSmall:{fontSize:`${v.spacing(1.5)}px`},deleteIcon:{color:v.palette.grey[500],width:`${v.spacing(3)}px`,height:`${v.spacing(3)}px`,margin:`0 ${v.spacing(.75)}px 0 -${v.spacing(.75)}px`},deleteIconSmall:{width:`${v.spacing(2)}px`,height:`${v.spacing(2)}px`,margin:`0 ${v.spacing(.5)}px 0 -${v.spacing(.5)}px`}},MuiCard:{root:{display:"flex",flexDirection:"column"}},MuiCardHeader:{root:{paddingBottom:0}},MuiCardContent:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}},MuiCardActions:{root:{justifyContent:"flex-end"}}}}function Ut(v){const M=ht(v),k=(0,Ot.Z)(M),de=It(k);return{...k,overrides:de}}var be=e(34505);const ot=Ut({palette:{type:"light",background:{default:"#F8F8F8"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#2E77D0",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#2E77D0"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:be.Z.A700,navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},defaultPageTheme:"home",pageTheme:xt}),it=Ut({palette:{type:"dark",background:{default:"#333333"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:be.Z.A700,navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},defaultPageTheme:"home",pageTheme:xt});var Ct=e(98192),ae=e(15222),te=e(41547),T=e(87561);const C=[{id:"light",title:"Light Theme",variant:"light",icon:t.createElement(ae.Z,null),Provider:({children:v})=>t.createElement(te.Z,{theme:ot},t.createElement(T.ZP,null,v))},{id:"dark",title:"Dark Theme",variant:"dark",icon:t.createElement(Ct.Z,null),Provider:({children:v})=>t.createElement(te.Z,{theme:it},t.createElement(T.ZP,null,v))}];function F(v){var M,k,de;return(0,E.createSpecializedApp)({...v,apis:(M=v==null?void 0:v.apis)!=null?M:[],bindRoutes:v==null?void 0:v.bindRoutes,components:{...V,...v==null?void 0:v.components},configLoader:v==null?void 0:v.configLoader,defaultApis:h,icons:{...zt,...v==null?void 0:v.icons},plugins:(k=v==null?void 0:v.plugins)!=null?k:[],themes:(de=v==null?void 0:v.themes)!=null?de:C})}var j=e(39398),Y=e(49782),le=e(79692);const ve=(0,le.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}}),ye=({result:v})=>{const M=ve();return React.createElement(Link,{to:v.location},React.createElement(ListItem,{alignItems:"flex-start",className:M.flexContainer},React.createElement(ListItemText,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:v.title,secondary:v.text}),React.createElement(Box,null,v.kind&&React.createElement(Chip,{label:`Kind: ${v.kind}`,size:"small"}),v.lifecycle&&React.createElement(Chip,{label:`Lifecycle: ${v.lifecycle}`,size:"small"}))),React.createElement(Divider,{component:"li"}))};var Be=e(91730),Le=e(17499),Re=e(52890),Ee=e(19139),Fe=e(95544),St=e(99688),ut=e(12231),Ve=e(86136),se=e(49378),Ne=e(85256),et=e(61837),Ue=e(79784),Ze=e(50758),Je=e(49166),G=e(43054);const A="catalog-entity",D={name:"catalog.entity.read",attributes:{action:"read"},resourceType:A},z={name:"catalog.entity.create",attributes:{action:"create"},resourceType:A},ee={name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:A},Oe={name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:A},ge={name:"catalog.location.read",attributes:{action:"read"}},Ce={name:"catalog.location.create",attributes:{action:"create"}},De={name:"catalog.location.delete",attributes:{action:"delete"}},$e=(0,le.Z)({button:{color:"white"}}),Et=({UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,onUnregisterEntity:k})=>{var Wt;const[de,Me]=(0,t.useState)(),qe=$e(),xe=(0,Ee.useEntityPermission)(ee),ke=vt=>{Me(vt.currentTarget)},ft=()=>{Me(void 0)},mt=v&&[...v.map(vt=>t.createElement(ut.Z,{key:vt.title,onClick:()=>{ft(),vt.onClick()}},t.createElement(Ve.Z,null,t.createElement(vt.Icon,{fontSize:"small"})),t.createElement(se.Z,{primary:vt.title}))),t.createElement(Ne.Z,{key:"the divider is here!"})],Xt=(Wt=!xe.allowed||(M==null?void 0:M.disableUnregister))!=null?Wt:!1;return t.createElement(t.Fragment,null,t.createElement(et.Z,{"aria-label":"more","aria-controls":"long-menu","aria-haspopup":"true",onClick:ke,"data-testid":"menu-button",className:qe.button},t.createElement(G.Z,null)),t.createElement(Ue.ZP,{open:Boolean(de),onClose:ft,anchorEl:de,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.createElement(Ze.Z,null,mt,t.createElement(ut.Z,{onClick:()=>{ft(),k()},disabled:Xt},t.createElement(Ve.Z,null,t.createElement(Je.Z,{fontSize:"small"})),t.createElement(se.Z,{primary:"Unregister entity"})))))},re="plugin.catalog.entityLayoutRoute",Z=()=>null;(0,s.attachComponentData)(Z,re,!0),(0,s.attachComponentData)(Z,"core.gatherMountPoints",!0);const Q=({entity:v,title:M})=>t.createElement(Fe.Z,{display:"inline-flex",alignItems:"center",height:"1em",maxWidth:"100%"},t.createElement(Fe.Z,{component:"span",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},M),v&&t.createElement(Ee.FavoriteEntity,{entity:v})),he=(v,M,k,de)=>{var ke,ft,mt,Xt,Wt;const Me=(ke=v!=null?v:de==null?void 0:de.kind)!=null?ke:"",qe=(ft=M!=null?M:de==null?void 0:de.metadata.namespace)!=null?ft:"";return{headerTitle:`${(Wt=(Xt=(mt=de==null?void 0:de.metadata.title)!=null?mt:k)!=null?Xt:de==null?void 0:de.metadata.name)!=null?Wt:""}${qe&&qe!==Re.sk?` in ${qe}`:""}`,headerType:(()=>{let vt=Me.toLocaleLowerCase("en-US");return de&&de.spec&&"type"in de.spec&&(vt+=" \u2014 ",vt+=de.spec.type.toLocaleLowerCase("en-US")),vt})()}},we=({entity:v})=>{var k;const M=(0,Ee.getEntityRelations)(v,Re.S4);return t.createElement(t.Fragment,null,M.length>0&&t.createElement(l.HeaderLabel,{label:"Owner",value:t.createElement(Ee.EntityRefLinks,{entityRefs:M,defaultKind:"Group",color:"inherit"})}),((k=v.spec)==null?void 0:k.lifecycle)&&t.createElement(l.HeaderLabel,{label:"Lifecycle",value:v.spec.lifecycle}))},je=({UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,children:k})=>{var Vn,jn,Wr;const{kind:de,namespace:Me,name:qe}=(0,Ee.useEntityCompoundName)(),{entity:xe,loading:ke,error:ft}=(0,t.useContext)(Ee.EntityContext),mt=(0,s.useElementFilter)(k,ca=>ca.selectByComponentData({key:re,withStrictError:"Child of EntityLayout must be an EntityLayout.Route"}).getElements().flatMap(({props:Gn})=>Gn.if&&xe&&!Gn.if(xe)?[]:[{path:Gn.path,title:Gn.title,children:Gn.children,tabProps:Gn.tabProps}]),[xe]),{headerTitle:Xt,headerType:Wt}=he(de,Me,qe,xe),[vt,En]=(0,t.useState)(!1),un=(0,f.s0)(),Nn=async()=>{En(!1),un("/")},er=()=>En(!0);return t.createElement(l.Page,{themeId:(Wr=(jn=(Vn=xe==null?void 0:xe.spec)==null?void 0:Vn.type)==null?void 0:jn.toString())!=null?Wr:"home"},t.createElement(l.Header,{title:t.createElement(Q,{title:Xt,entity:xe}),pageTitleOverride:Xt,type:Wt},xe&&t.createElement(t.Fragment,null,t.createElement(we,{entity:xe}),t.createElement(Et,{UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,onUnregisterEntity:er}))),ke&&t.createElement(l.Progress,null),xe&&t.createElement(l.RoutedTabs,{routes:mt}),ft&&t.createElement(l.Content,null,t.createElement(St.Z,{severity:"error"},ft.toString())),!ke&&!ft&&!xe&&t.createElement(l.Content,null,t.createElement(l.WarningPanel,{title:"Entity not found"},"There is no ",de," with the requested"," ",t.createElement(l.Link,{to:"https://backstage.io/docs/features/software-catalog/references"},"kind, namespace, and name"),".")),t.createElement(Ee.UnregisterEntityDialog,{open:vt,entity:xe,onConfirm:Nn,onClose:()=>En(!1)}))};je.Route=Z;var tt=e(10179);const Dt=({open:v,onClose:M,onConfirm:k,entity:de})=>{const[Me,qe]=useState(!1),xe=useApi(catalogApiRef),ke=useApi(alertApiRef),ft=async()=>{qe(!0);try{const mt=de.metadata.uid;await xe.removeEntityByUid(mt),k()}catch(mt){assertError(mt),ke.post({message:mt.message})}finally{qe(!1)}};return React.createElement(Dialog,{open:v,onClose:M},React.createElement(DialogTitle,{id:"responsive-dialog-title"},"Are you sure you want to delete this entity?"),React.createElement(DialogActions,null,React.createElement(Button,{variant:"contained",color:"secondary",disabled:Me,onClick:ft},"Delete"),React.createElement(Button,{onClick:M,color:"primary"},"Cancel")))},tn=v=>{var M,k;return((k=(M=v==null?void 0:v.metadata)==null?void 0:M.annotations)==null?void 0:k["backstage.io/orphan"])==="true"},cn=()=>{const v=useNavigate(),M=useRouteRef(catalogRouteRef),[k,de]=useState(!1),{entity:Me}=useEntity(),qe=async()=>{de(!1),v(M())};return React.createElement(React.Fragment,null,React.createElement(Alert,{severity:"warning",onClick:()=>de(!0)},"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."),React.createElement(DeleteEntityDialog,{open:k,entity:Me,onConfirm:qe,onClose:()=>de(!1)}))};var $n=e(30001);const Cn=v=>v.error&&v.level==="error"&&v.type===ENTITY_STATUS_CATALOG_PROCESSING_TYPE;async function yn(v,M){return{items:(await M.getEntityAncestors({entityRef:v})).items.map(Me=>{var ke,ft;return{errors:((ft=(ke=Me.entity.status)==null?void 0:ke.items)!=null?ft:[]).filter(Cn).map(mt=>mt.error).filter(mt=>Boolean(mt)),entity:Me.entity}}).filter(Me=>Me.errors.length>0)}}const yt=async(v,M)=>{const k=M.apis.get(catalogApiRef);if(!k)throw new Error(`No implementation available for ${catalogApiRef}`);return(await yn(stringifyEntityRef(v),k)).items.length>0},Gt=()=>{const{entity:v}=useEntity(),M=stringifyEntityRef(v),k=useApi(catalogApiRef),{loading:de,error:Me,value:qe}=useAsync(async()=>yn(M,k),[M,k]);return Me?React.createElement(Box,{mb:1},React.createElement(ResponseErrorPanel,{error:Me})):de||!qe?null:React.createElement(React.Fragment,null,qe.items.map((xe,ke)=>React.createElement(Box,{key:ke,mb:1},!compareEntityToRef(v,stringifyEntityRef(xe.entity))&&React.createElement(Box,{p:1},"The error below originates from"," ",React.createElement(EntityRefLink,{entityRef:xe.entity})),xe.errors.map((ft,mt)=>React.createElement(ResponseErrorPanel,{key:mt,error:ft})))))};var fn=e(18671);const On=(v,M,k=0)=>{if(!v)return k;const de=M.findIndex(Me=>Me.id===v.route.path);return~de?de:k},Ht={Layout:({children:v})=>{var Wt,vt,En;const M=[],k=[],de=(0,f.UO)(),Me=(0,f.s0)();t.Children.forEach(v,un=>{if(!t.isValidElement(un))return;if(un.type!==Ht.Content)throw new Error("This component only accepts Content elements as direct children. Check the code of the EntityPage.");const Nn=un.props.path;k.push({id:Nn,label:un.props.title}),M.push({path:Nn,element:un.props.element})}),((vt=(Wt=M==null?void 0:M[0])==null?void 0:Wt.path)!=null?vt:"")!==""&&M.push({path:"/*",element:t.createElement(f.Fg,{to:M[0].path})});const[qe]=(En=(0,f.fp)(M,`/${de["*"]}`))!=null?En:[],xe=On(qe,k),ke=k[xe],ft=ke==null?void 0:ke.label,mt=un=>Me(k[un].id.replace(/\/\*$/,"").replace(/^\//,"")),Xt=(0,f.V$)(M);return ke?t.createElement(t.Fragment,null,t.createElement(l.HeaderTabs,{tabs:k,selectedIndex:xe,onChange:mt}),t.createElement(l.Content,null,t.createElement(fn.q,{title:ft}),Xt)):null},Content:v=>null},wn=({entity:v,title:M})=>t.createElement(Fe.Z,{display:"inline-flex",alignItems:"center",height:"1em"},M,v&&t.createElement(Ee.FavoriteEntity,{entity:v})),or=({entity:v})=>{var k;const M=(0,Ee.getEntityRelations)(v,Re.S4);return t.createElement(t.Fragment,null,M.length>0&&t.createElement(l.HeaderLabel,{label:"Owner",value:t.createElement(Ee.EntityRefLinks,{entityRefs:M,defaultKind:"Group",color:"inherit"})}),((k=v.spec)==null?void 0:k.lifecycle)&&t.createElement(l.HeaderLabel,{label:"Lifecycle",value:v.spec.lifecycle}))},sr=(v,M,k,de)=>({headerTitle:`${k}${M&&M!==Re.sk?` in ${M}`:""}`,headerType:(()=>{let Me=v.toLocaleLowerCase("en-US");return de&&de.spec&&"type"in de.spec&&(Me+=" \u2014 ",Me+=de.spec.type.toLocaleLowerCase("en-US")),Me})()}),vr=({children:v,UNSTABLE_extraContextMenuItems:M,UNSTABLE_contextMenuOptions:k})=>{var er,Vn,jn;const{kind:de,namespace:Me,name:qe}=(0,Ee.useEntityCompoundName)(),{entity:xe,loading:ke,error:ft}=(0,t.useContext)(Ee.EntityContext),{headerTitle:mt,headerType:Xt}=sr(de,Me,qe,xe),[Wt,vt]=(0,t.useState)(!1),En=(0,f.s0)(),un=async()=>{vt(!1),En("/")},Nn=()=>vt(!0);return t.createElement(l.Page,{themeId:(jn=(Vn=(er=xe==null?void 0:xe.spec)==null?void 0:er.type)==null?void 0:Vn.toString())!=null?jn:"home"},t.createElement(l.Header,{title:t.createElement(wn,{title:mt,entity:xe}),pageTitleOverride:mt,type:Xt},xe&&t.createElement(t.Fragment,null,t.createElement(or,{entity:xe}),t.createElement(Et,{UNSTABLE_extraContextMenuItems:M,UNSTABLE_contextMenuOptions:k,onUnregisterEntity:Nn}))),ke&&t.createElement(l.Content,null,t.createElement(l.Progress,null)),xe&&t.createElement(Ht.Layout,null,v),ft&&t.createElement(l.Content,null,t.createElement(l.ResponseErrorPanel,{error:ft})),!ke&&!ft&&!xe&&t.createElement(l.Content,null,t.createElement(l.WarningPanel,{title:"Entity not found"},"There is no ",de," with the requested"," ",t.createElement(l.Link,{to:"https://backstage.io/docs/features/software-catalog/references"},"kind, namespace, and name"),".")),t.createElement(Ee.UnregisterEntityDialog,{open:Wt,entity:xe,onConfirm:un,onClose:()=>vt(!1)}))};vr.Content=Ht.Content;var Wn=e(64279);const Fn="core.backstage.entitySwitch",Qn=v=>null;(0,s.attachComponentData)(Qn,Fn,!0);const ir=({children:v})=>{var qe,xe;const{entity:M}=(0,Ee.useEntity)(),k=(0,s.useApiHolder)(),de=(0,s.useElementFilter)(v,ke=>ke.selectByComponentData({key:Fn,withStrictError:"Child of EntitySwitch is not an EntitySwitch.Case"}).getElements().flatMap(ft=>{var Wt;const{if:mt,children:Xt}=ft.props;return[{if:(Wt=mt==null?void 0:mt(M,{apis:k}))!=null?Wt:!0,children:Xt}]}),[k,M]);return de.some(ke=>typeof ke.if=="object"&&"then"in ke.if)?t.createElement(Rr,{results:de}):(xe=(qe=de.find(ke=>ke.if))==null?void 0:qe.children)!=null?xe:null};function Rr({results:v}){const{loading:M,value:k}=(0,Wn.default)(async()=>{var Me;const de=v.map(async({if:qe,children:xe})=>{try{if(await qe)return xe}catch{}return null});return(Me=(await Promise.all(de)).find(Boolean))!=null?Me:null},[v]);return M||!k?null:k}ir.Case=Qn;var zn=e(26997),qr=e(7758),Sr=e(219);const lr=(0,le.Z)(v=>({illo:{maxWidth:"60%",top:100,right:20,position:"absolute",[v.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",top:"unset",right:"unset",margin:`${v.spacing(10)}px auto ${v.spacing(4)}px`}}})),Cr=()=>{const v=lr();return React.createElement("img",{src:IlloSvgUrl,className:v.illo,alt:"Illustration on entity not found page"})},Xn=(0,le.Z)(v=>({container:{paddingTop:v.spacing(24),paddingLeft:v.spacing(8),[v.breakpoints.down("xs")]:{padding:v.spacing(2)}},title:{paddingBottom:v.spacing(2),[v.breakpoints.down("xs")]:{fontSize:32}},body:{paddingBottom:v.spacing(6),[v.breakpoints.down("xs")]:{paddingBottom:v.spacing(5)}}})),Tr=()=>{const v=Xn();return React.createElement(Grid,{container:!0,spacing:0,className:v.container},React.createElement(Illo,null),React.createElement(Grid,{item:!0,xs:12,sm:6},React.createElement(Typography,{variant:"h2",className:v.title},"Entity was not found"),React.createElement(Typography,{variant:"body1",className:v.body},"Want to help us build this? Check out our Getting Started documentation."),React.createElement(Button,{variant:"contained",color:"primary",href:"https://backstage.io/docs"},"DOCS")))},kn=()=>React.createElement(EntityPageLayout,null,React.createElement(EntityPageLayout.Content,{path:"/",title:"Overview",element:React.createElement(Content,null,React.createElement(Typography,{variant:"h2"},"This is the default entity page."),React.createElement(Typography,{variant:"body1"},"To override this component with your custom implementation, read docs on"," ",React.createElement(Link,{to:"https://backstage.io/docs"},"backstage.io/docs")))})),qn=({EntityPage:v})=>{const{entity:M,loading:k,error:de}=useEntity();return k?React.createElement(EntityPageLayout,null):de||!M?React.createElement(EntityNotFound,null):React.createElement(v,null)},Bn=()=>{var xe;const{optionalNamespaceAndName:v,"*":M}=useParams(),[k,de]=v.split(":").reverse(),Me=(xe=de==null?void 0:de.toLocaleLowerCase("en-US"))!=null?xe:ENTITY_DEFAULT_NAMESPACE,qe=M?`/${M}`:"";return React.createElement(Navigate,{to:`../../${Me}/component/${k}${qe}`})},cr=v=>React.createElement(AsyncEntityProvider,{...useEntityFromUrl(),...v}),xn=({EntityPage:v=kn})=>React.createElement(Routes,null,React.createElement(Route,{path:"/",element:React.createElement(CatalogPage,null)}),React.createElement(Route,{path:"/:namespace/:kind/:name",element:React.createElement(cr,null,React.createElement(qn,{EntityPage:v}))}),React.createElement(Route,{path:"Component/:optionalNamespaceAndName/*",element:React.createElement(Bn,null)}));var mn=e(47851);const an=(0,s.createPlugin)({id:"catalog",apis:[(0,s.createApiFactory)({api:Ee.Ah,deps:{discoveryApi:s.discoveryApiRef,fetchApi:s.fetchApiRef},factory:({discoveryApi:v,fetchApi:M})=>new $n.MS({discoveryApi:v,fetchApi:M})}),(0,s.createApiFactory)({api:Ee.starredEntitiesApiRef,deps:{storageApi:s.storageApiRef},factory:({storageApi:v})=>new Ee.DefaultStarredEntitiesApi({storageApi:v})})],routes:{catalogIndex:Ee.M4,catalogEntity:Ee.wi},externalRoutes:{createComponent:mn.y,viewTechDoc:mn.j}}),Pr=an.provide((0,s.createRoutableExtension)({name:"CatalogIndexPage",component:()=>Promise.resolve().then(e.bind(e,7758)).then(v=>v.CatalogPage),mountPoint:Ee.M4})),Ir=an.provide((0,s.createRoutableExtension)({name:"CatalogEntityPage",component:()=>e.e(6650).then(e.bind(e,76650)).then(v=>v.CatalogEntityPage),mountPoint:Ee.wi})),Lr=an.provide((0,s.createComponentExtension)({name:"EntityAboutCard",component:{lazy:()=>Promise.resolve().then(e.bind(e,39398)).then(v=>v.AboutCard)}})),Or=an.provide((0,s.createComponentExtension)({name:"EntityLinksCard",component:{lazy:()=>e.e(1959).then(e.bind(e,81959)).then(v=>v.EntityLinksCard)}})),ur=an.provide((0,s.createComponentExtension)({name:"EntityHasSystemsCard",component:{lazy:()=>e.e(390).then(e.bind(e,60390)).then(v=>v.HasSystemsCard)}})),xr=an.provide((0,s.createComponentExtension)({name:"EntityHasComponentsCard",component:{lazy:()=>e.e(4022).then(e.bind(e,4022)).then(v=>v.HasComponentsCard)}})),Dr=an.provide((0,s.createComponentExtension)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>e.e(8792).then(e.bind(e,38792)).then(v=>v.HasSubcomponentsCard)}})),br=an.provide((0,s.createComponentExtension)({name:"EntityHasResourcesCard",component:{lazy:()=>e.e(1553).then(e.bind(e,11553)).then(v=>v.HasResourcesCard)}})),Fr=an.provide((0,s.createComponentExtension)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>e.e(8061).then(e.bind(e,48061)).then(v=>v.DependsOnComponentsCard)}})),_r=an.provide((0,s.createComponentExtension)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>e.e(6235).then(e.bind(e,56235)).then(v=>v.DependencyOfComponentsCard)}})),Br=an.provide((0,s.createComponentExtension)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>e.e(9028).then(e.bind(e,59028)).then(v=>v.DependsOnResourcesCard)}})),Mr=an.provide((0,s.createComponentExtension)({name:"EntitySystemDiagramCard",component:{lazy:()=>e.e(4960).then(e.bind(e,14960)).then(v=>v.SystemDiagramCard)}})),ea=an.provide((0,s.createComponentExtension)({name:"RelatedEntitiesCard",component:{lazy:()=>e.e(2426).then(e.bind(e,62426)).then(v=>v.RelatedEntitiesCard)}}));var Mn=e(3337),dr=e(76372);class fr{constructor(M){_(this,"configApi");_(this,"discoveryApi");_(this,"fetchApi");this.configApi=M.configApi,this.discoveryApi=M.discoveryApi,this.fetchApi=M.fetchApi}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(M){const{kind:k,namespace:de,name:Me}=M,xe=`${await this.getApiOrigin()}/metadata/techdocs/${de}/${k}/${Me}`,ke=await this.fetchApi.fetch(`${xe}`);if(!ke.ok)throw await tt.VL.fromResponse(ke);return await ke.json()}async getEntityMetadata(M){const{kind:k,namespace:de,name:Me}=M,xe=`${await this.getApiOrigin()}/metadata/entity/${de}/${k}/${Me}`,ke=await this.fetchApi.fetch(`${xe}`);if(!ke.ok)throw await tt.VL.fromResponse(ke);return await ke.json()}}class mr{constructor(M){_(this,"configApi");_(this,"discoveryApi");_(this,"identityApi");_(this,"fetchApi");this.configApi=M.configApi,this.discoveryApi=M.discoveryApi,this.identityApi=M.identityApi,this.fetchApi=M.fetchApi}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var M;return(M=this.configApi.getOptionalString("techdocs.storageUrl"))!=null?M:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(M,k){const{kind:de,namespace:Me,name:qe}=M,ke=`${await this.getStorageUrl()}/${Me}/${de}/${qe}/${k}`,ft=await this.fetchApi.fetch(`${ke.endsWith("/")?ke:`${ke}/`}index.html`);let mt="";switch(ft.status){case 404:throw mt="Page not found. ",k||(mt+="This could be because there is no index.md file in the root of the docs directory of this repository."),new tt.dR(mt);case 500:throw mt="Could not generate documentation or an error in the TechDocs backend. ",new Error(mt);default:break}return ft.text()}async syncEntityDocs(M,k=()=>{}){const{kind:de,namespace:Me,name:qe}=M,ke=`${await this.getApiOrigin()}/sync/${Me}/${de}/${qe}`,{token:ft}=await this.identityApi.getCredentials();return new Promise((mt,Xt)=>{const Wt=new dr.EventSourcePolyfill(ke,{withCredentials:!0,headers:ft?{Authorization:`Bearer ${ft}`}:{}});Wt.addEventListener("log",vt=>{vt.data&&k(JSON.parse(vt.data))}),Wt.addEventListener("finish",vt=>{let En=!1;vt.data&&({updated:En}=JSON.parse(vt.data)),mt(En?"updated":"cached")}),Wt.onerror=vt=>{switch(Wt.close(),vt.status){case 404:Xt(new tt.dR(vt.message));return;default:Xt(new Error(vt.data));return}}})}async getBaseUrl(M,k,de){const{kind:Me,namespace:qe,name:xe}=k,ft=`${await this.getApiOrigin()}/static/docs/${qe}/${Me}/${xe}/${de}`;return new URL(M,ft.endsWith("/")?ft:`${ft}/`).toString()}}var Nr=e(71226),hr=e(95074),gr=e(76635),Ur=e(83201),Hn=e(50294),w=e(67430);const N=({columns:v,actions:M})=>{var Wt,vt;const{loading:k,error:de,entities:Me,filters:qe}=(0,Ee.useEntityListProvider)(),{isStarredEntity:xe,toggleStarredEntity:ke}=(0,Ee.useStarredEntities)(),[,ft]=(0,hr.Z)(),mt=(0,gr.capitalize)((vt=(Wt=qe.user)==null?void 0:Wt.value)!=null?vt:"all"),Xt=[Hn.createCopyDocsUrlAction(ft),Hn.createStarEntityAction(xe,ke)];return de?t.createElement(l.WarningPanel,{severity:"error",title:"Could not load available documentation."},t.createElement(l.CodeSnippet,{language:"text",text:de.toString()})):t.createElement(Ur.DocsTable,{title:mt,entities:Me,loading:k,actions:M||Xt,columns:v})};N.columns=w,N.actions=Hn;var $=e(1114);class X{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":Ee.n3}}}const ue=()=>{const{updateFilters:v}=(0,Ee.useEntityListProvider)();return(0,t.useEffect)(()=>{v({techdocs:new X})},[v]),null},ie=({initialFilter:v="all",columns:M,actions:k})=>t.createElement($.j,null,t.createElement(l.Content,null,t.createElement(l.ContentHeader,{title:""},t.createElement(l.SupportButton,null,"Discover documentation in your ecosystem.")),t.createElement(Ee.EntityListProvider,null,t.createElement(zn.q7,null,t.createElement(zn.Gh,null,t.createElement(ue,null),t.createElement(Ee.UserListPicker,{initialFilter:v}),t.createElement(Ee.EntityOwnerPicker,null),t.createElement(Ee.EntityTagPicker,null)),t.createElement(zn.Nz,null,t.createElement(N,{actions:k,columns:M}))))));var fe=e(10187);const Ge=()=>{const{loading:v,error:M,entities:k}=useEntityListProvider();return M?React.createElement(WarningPanel,{severity:"error",title:"Could not load available documentation."},React.createElement(CodeSnippet,{language:"text",text:M.toString()})):v||!k?React.createElement(Progress,null):(k.sort((de,Me)=>{var qe,xe;return((qe=de.metadata.title)!=null?qe:de.metadata.name).localeCompare((xe=Me.metadata.title)!=null?xe:Me.metadata.name)}),React.createElement(DocsCardGrid,{entities:k}))};var We=e(68725);const Ke=(0,s.createPlugin)({id:"techdocs",apis:[(0,s.createApiFactory)({api:Mn.D,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef,fetchApi:s.fetchApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k,fetchApi:de})=>new mr({configApi:v,discoveryApi:M,identityApi:k,fetchApi:de})}),(0,s.createApiFactory)({api:Mn.g,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,fetchApi:s.fetchApiRef},factory:({configApi:v,discoveryApi:M,fetchApi:k})=>new fr({configApi:v,discoveryApi:M,fetchApi:k})})],routes:{root:We._Z,docRoot:We.Fw,entityContent:We.pd}}),lt=Ke.provide((0,s.createRoutableExtension)({name:"TechdocsPage",component:()=>Promise.resolve().then(e.bind(e,94067)).then(v=>v.Router),mountPoint:We._Z})),Ye=Ke.provide((0,s.createRoutableExtension)({name:"EntityTechdocsContent",component:()=>Promise.resolve().then(e.bind(e,94067)).then(v=>v.EmbeddedDocsRouter),mountPoint:We.pd})),He=Ke.provide((0,s.createComponentExtension)({name:"DocsCardGrid",component:{lazy:()=>Promise.resolve().then(e.bind(e,10187)).then(v=>v.DocsCardGrid)}})),At=Ke.provide((0,s.createComponentExtension)({name:"DocsTable",component:{lazy:()=>Promise.resolve().then(e.bind(e,83201)).then(v=>v.DocsTable)}})),bt=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsCustomHome",component:()=>Promise.resolve().then(e.bind(e,57110)).then(v=>v.TechDocsCustomHome),mountPoint:We._Z})),Zt=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsIndexPage",component:()=>Promise.resolve().then(e.bind(e,41481)).then(v=>v.TechDocsIndexPage),mountPoint:We._Z})),$t=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsReaderPage",component:()=>Promise.resolve().then(e.bind(e,31752)).then(v=>v.TechDocsPage),mountPoint:We.Fw}));var Vt=e(73873),qt=e(94067),on=e(36356);class wt{constructor({configApi:M,discoveryApi:k,identityApi:de}){_(this,"configApi");_(this,"discoveryApi");_(this,"identityApi");this.configApi=M,this.discoveryApi=k,this.identityApi=de}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var M;return(M=this.configApi.getOptionalString("techdocs.storageUrl"))!=null?M:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(M,k){const Me=`${await this.getApiOrigin()}/${k}`,qe=await fetch(`${Me.endsWith("/")?Me:`${Me}/`}index.html`);if(qe.status===404)throw new Error("Page not found");return qe.text()}async syncEntityDocs(M){return"cached"}async getBaseUrl(M,k,de){const Me=await this.getApiOrigin();return new URL(M,`${Me}/${de}`).toString()}}class Tn{constructor({configApi:M,discoveryApi:k,identityApi:de}){_(this,"configApi");_(this,"discoveryApi");_(this,"identityApi");this.configApi=M,this.discoveryApi=k,this.identityApi=de}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(M){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(M){return{site_name:"Live preview environment",site_description:""}}}const Kt=[(0,s.createApiFactory)({api:Mn.D,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k})=>new wt({configApi:v,discoveryApi:M,identityApi:k})}),(0,s.createApiFactory)({api:Mn.g,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k})=>new Tn({configApi:v,discoveryApi:M,identityApi:k})}),(0,s.createApiFactory)({api:on.q3,deps:{configApi:s.configApiRef},factory:({configApi:v})=>on.ae.fromConfig(v)})];var Qt=e(86689),Dn=e(58845);const _n=(0,le.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var na=()=>{const v=_n();return t.createElement("svg",{className:v.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05"},t.createElement("path",{className:v.path,d:"M302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Zm241-88.84q7.94,0,17.09.17t18.12,1a139.3,139.3,0,0,1,16.74,2.57,42.78,42.78,0,0,1,13.3,5.14,64.27,64.27,0,0,1,20.54,19.89Q662,168,662,186.54q0,19.54-9.49,33.78t-27.1,21.09v.68q22.78,4.82,34.87,20.58t12.08,38.4a72.62,72.62,0,0,1-4.83,26.06,65.29,65.29,0,0,1-14.33,22.46,71.57,71.57,0,0,1-23.47,15.78q-14,6-32.28,6H478.38V126.54Zm9,105.27q28,0,40.21-9.78t12.26-29.31q0-13-4.14-20.58a29.47,29.47,0,0,0-11.4-11.66A45,45,0,0,0,597,155.17a161.2,161.2,0,0,0-20.19-1.2h-65.6v77.84Zm16.57,112.13q21.74,0,34-11.66T639.59,300q0-12-4.48-19.88a34.85,34.85,0,0,0-11.91-12.52,50.14,50.14,0,0,0-17.09-6.52,105,105,0,0,0-20-1.88H511.17v84.7Zm274.79,26.74q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58A41.19,41.19,0,0,1,705,348.56q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.08-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7T736.6,249.29H707.26q.69-16.46,6.9-27.77a52.21,52.21,0,0,1,16.57-18.35,70,70,0,0,1,23.65-10.11A125.51,125.51,0,0,1,782.86,190a168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7A41.23,41.23,0,0,1,844,213.59q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-18,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.5,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14ZM1002.07,225q-11.05-9.25-29.69-9.26-15.89,0-26.58,5.83A47.29,47.29,0,0,0,928.71,237a64.66,64.66,0,0,0-9.15,22.12A119.83,119.83,0,0,0,916.8,285a98.22,98.22,0,0,0,2.93,24,64.18,64.18,0,0,0,9.15,20.74,46.2,46.2,0,0,0,16.23,14.58q10,5.49,23.82,5.48,21.75,0,34-11.31t15-31.89h30q-4.83,32.91-24.68,50.75t-54,17.83q-20.37,0-36.07-6.52A69.86,69.86,0,0,1,907,350.11a79.92,79.92,0,0,1-15.88-28.63A118.64,118.64,0,0,1,885.73,285a129.41,129.41,0,0,1,5.18-37.21,85.63,85.63,0,0,1,15.71-30.17A73.46,73.46,0,0,1,933,197.35Q948.91,190,970,190a108.54,108.54,0,0,1,28.48,3.6,69.59,69.59,0,0,1,23.48,11.15,61,61,0,0,1,16.74,19q6.55,11.49,8.29,27.26h-30.38Q1013.11,234.21,1002.07,225Zm109.77-98.41v145l81.47-77.49h39.36l-70.77,64.46,75.95,112.82h-37.29l-61.1-92.59-27.62,25.38v67.21H1082.5V126.54Zm170.54,205.22a31.07,31.07,0,0,0,10.87,10.63,49,49,0,0,0,15.19,5.66,87.06,87.06,0,0,0,17.44,1.71,109.18,109.18,0,0,0,14.5-1,53.22,53.22,0,0,0,14-3.78,26.27,26.27,0,0,0,10.53-8q4.14-5.32,4.14-13.55,0-11.31-8.63-17.14a73.69,73.69,0,0,0-21.58-9.43q-12.94-3.6-28.13-6.52a146,146,0,0,1-28.14-8.23A58.16,58.16,0,0,1,1261,267.13q-8.64-9.6-8.63-26.75,0-13.38,6-23a49.26,49.26,0,0,1,15.53-15.61,71.76,71.76,0,0,1,21.4-8.91A99.41,99.41,0,0,1,1319,190a141.31,141.31,0,0,1,28,2.58,64.85,64.85,0,0,1,22.62,8.91,46.16,46.16,0,0,1,15.7,17.15q5.87,10.8,6.91,26.91h-29.35q-.69-8.57-4.48-14.23a29.36,29.36,0,0,0-9.67-9.08,44.16,44.16,0,0,0-12.94-5,67.68,67.68,0,0,0-14.33-1.54,87.29,87.29,0,0,0-13.29,1,45.28,45.28,0,0,0-12.26,3.6,24.49,24.49,0,0,0-9,6.86q-3.46,4.29-3.46,11.14a16.32,16.32,0,0,0,5.36,12.52,42.75,42.75,0,0,0,13.63,8.23,120,120,0,0,0,18.64,5.48q10.37,2.24,20.72,4.63,11,2.4,21.57,5.83A70.74,70.74,0,0,1,1382,284.1a44.55,44.55,0,0,1,13.12,14.23q5,8.58,5,21.26,0,16.13-6.73,26.75a52.5,52.5,0,0,1-17.61,17.14,73.89,73.89,0,0,1-24.51,9.09,146.3,146.3,0,0,1-27.1,2.57,126.24,126.24,0,0,1-28.31-3.09A69.56,69.56,0,0,1,1272,361.94a51.74,51.74,0,0,1-16.57-18.52q-6.21-11.49-6.9-27.95h29.34A32.65,32.65,0,0,0,1282.38,331.76Zm226.46-137.67v25.72h-35.56V329.88a31.37,31.37,0,0,0,.87,8.23,8.42,8.42,0,0,0,3.28,4.8,14.61,14.61,0,0,0,6.73,2.23,99.19,99.19,0,0,0,11.22.51h13.46v25.72H1486.4a105.8,105.8,0,0,1-19.5-1.55,28.65,28.65,0,0,1-13.12-5.65,24.09,24.09,0,0,1-7.42-11.66q-2.43-7.54-2.42-19.89V219.81h-30.38V194.09h30.38V140.94h29.34v53.15ZM1699.4,370.68q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58,41.19,41.19,0,0,1-12.6-15.26q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.07-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7t-13.46,26.57h-29.34q.67-16.46,6.9-27.77A52.21,52.21,0,0,1,1562,203.17a70,70,0,0,1,23.65-10.11,125.51,125.51,0,0,1,28.48-3.09,168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7,41.23,41.23,0,0,1,15.53,14.89q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-17.95,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.51,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14Zm208.85,141.62q-20,21.6-62.83,21.6a122.11,122.11,0,0,1-25.37-2.74,78,78,0,0,1-23.48-8.92,54.41,54.41,0,0,1-17.43-16.11q-6.91-10-7.6-24.35h29.35a21.47,21.47,0,0,0,5,13.38,36.67,36.67,0,0,0,11.4,8.91,55.52,55.52,0,0,0,14.67,5,79.51,79.51,0,0,0,15.19,1.55q14.49,0,24.51-5A46,46,0,0,0,1840.59,401a56.53,56.53,0,0,0,9.49-21.09,117.46,117.46,0,0,0,2.94-27.09V341.19h-.7q-7.59,16.46-23,24.18a71.8,71.8,0,0,1-32.63,7.71q-20,0-34.86-7.2A72.88,72.88,0,0,1,1737,346.51a82.13,82.13,0,0,1-15-28.46,116.62,116.62,0,0,1-5-34.47,133.92,133.92,0,0,1,4.14-32.4A88.17,88.17,0,0,1,1735,221a75.49,75.49,0,0,1,25.55-22.29q15.87-8.75,39-8.75a66.21,66.21,0,0,1,31.07,7.38,52.13,52.13,0,0,1,22.09,22.11h.35V194.09h27.61V356.28Q1880.63,399.83,1860.61,421.43Zm-37.46-79.72a47.94,47.94,0,0,0,16.4-15.78,71.89,71.89,0,0,0,9.15-22.11,106.77,106.77,0,0,0,2.93-24.69,96.71,96.71,0,0,0-2.76-23,64,64,0,0,0-8.8-20.4,45.76,45.76,0,0,0-15.71-14.57q-9.66-5.49-23.47-5.49-14.16,0-24.17,5.32a46.77,46.77,0,0,0-16.4,14.23,60.14,60.14,0,0,0-9.32,20.57,99.69,99.69,0,0,0-2.93,24.35,120.63,120.63,0,0,0,2.42,24,67.5,67.5,0,0,0,8.28,21.77,46.37,46.37,0,0,0,15.54,15.78q9.66,6,24.16,6T1823.15,341.71Zm228,18.34q-20,15.09-50.41,15.09-21.4,0-37.11-6.86a73.16,73.16,0,0,1-26.41-19.2,81.52,81.52,0,0,1-16-29.49,141.12,141.12,0,0,1-6-37.38,106.1,106.1,0,0,1,6.21-37A88.56,88.56,0,0,1,1938.8,216a79.09,79.09,0,0,1,26.58-19.2A81.66,81.66,0,0,1,1999,190q23.82,0,39.53,9.78a78,78,0,0,1,25.2,24.86,98.18,98.18,0,0,1,13.12,32.91,140.6,140.6,0,0,1,2.93,34h-133.6a70,70,0,0,0,2.76,22.12,49.9,49.9,0,0,0,10,18.51A49.1,49.1,0,0,0,1976.6,345q10.7,4.82,25.2,4.8,18.65,0,30.55-8.57t15.71-26.06h29Q2071.18,345,2051.17,360.05Zm-7.08-113.84a50,50,0,0,0-10.7-16,53.1,53.1,0,0,0-56.62-10.63,47.48,47.48,0,0,0-15.71,10.81,51.69,51.69,0,0,0-10.35,15.94,60.18,60.18,0,0,0-4.49,19.37h102.53A59.47,59.47,0,0,0,2044.09,246.21ZM302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Z"}))};const Zr=(0,le.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Ta=()=>{const v=Zr();return t.createElement("svg",{className:v.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5"},t.createElement("path",{className:v.path,d:"M303,166.05a80.69,80.69,0,0,0,13.45-10.37c.79-.77,1.55-1.53,2.3-2.3a83.12,83.12,0,0,0,7.93-9.38A63.69,63.69,0,0,0,333,133.23a48.58,48.58,0,0,0,4.35-16.4c1.49-19.39-10-38.67-35.62-54.22L198.56,0,78.3,115.23,0,190.25l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.22,49.22,0,0,0-6.8-8.87A89.17,89.17,0,0,0,259,178.29h.15a85.08,85.08,0,0,0,31-5.79A80.88,80.88,0,0,0,303,166.05ZM202.45,225.86c-19.32,18.51-50.4,21.23-75.7,5.9L51.61,186.15l67.45-64.64,76.41,46.38C223,184.58,221.49,207.61,202.45,225.86Zm8.93-82.22-70.65-42.89L205.14,39,274.51,81.1c25.94,15.72,29.31,37,10.55,55A60.69,60.69,0,0,1,211.38,143.64Zm29.86,190c-19.57,18.75-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,282.52v24.67L108.6,373.1a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.27,87.27,0,0,1,241.24,333.68Zm0-39c-19.57,18.75-46.17,29.08-74.88,29.08a123.81,123.81,0,0,1-64.1-18.19L0,243.53v24.68l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.5v-1.78A87.27,87.27,0,0,1,241.24,294.7Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.81,123.81,0,0,1-64.1-18.19L0,204.55v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.82A86.09,86.09,0,0,1,241.24,255.71Zm83.7,25.74a94.15,94.15,0,0,1-60.2,25.86h0V334a81.6,81.6,0,0,0,51.74-22.37c14-13.38,21.14-28.11,21-42.64v-2.19A94.92,94.92,0,0,1,324.94,281.45Zm-83.7,91.21c-19.57,18.76-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,321.5v24.68l108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A86.29,86.29,0,0,1,241.24,372.66ZM327,162.45c-.68.69-1.35,1.38-2.05,2.06a94.37,94.37,0,0,1-10.64,8.65,91.35,91.35,0,0,1-11.6,7,94.53,94.53,0,0,1-26.24,8.71,97.69,97.69,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a53.27,53.27,0,0,1,1.14,12V217h.05a84.41,84.41,0,0,0,25.35-5.55,81,81,0,0,0,26.39-16.82c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,172.17a48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7V150q-1.08,1.54-2.25,3.09A96.73,96.73,0,0,1,327,162.45Zm0,77.92c-.69.7-1.31,1.41-2,2.1a94.2,94.2,0,0,1-60.2,25.86h0l0,26.67h0a81.6,81.6,0,0,0,51.74-22.37A73.51,73.51,0,0,0,333,250.13a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.47.19-3.71v-2.19c-.74,1.07-1.46,2.15-2.27,3.21A95.68,95.68,0,0,1,327,240.37Zm0-39c-.69.7-1.31,1.41-2,2.1a93.18,93.18,0,0,1-10.63,8.65,91.63,91.63,0,0,1-11.63,7,95.47,95.47,0,0,1-37.94,10.18h0V256h0a81.65,81.65,0,0,0,51.74-22.37c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,211.15a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.46,2.16-2.27,3.22A95.68,95.68,0,0,1,327,201.39Z"}))};const ra=(0,le.Z)({root:{width:l.sidebarConfig.drawerWidthClosed,height:3*l.sidebarConfig.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:l.sidebarConfig.drawerWidthClosed,marginLeft:24}}),aa=()=>{const v=ra(),{isOpen:M}=(0,t.useContext)(l.SidebarContext);return t.createElement("div",{className:v.root},t.createElement(Qt.Z,{component:y.OL,to:"/docs/default/component/local/",underline:"none",className:v.link},M?t.createElement(na,null):t.createElement(Ta,null)))},Pa=({children:v})=>t.createElement(l.SidebarPage,null,t.createElement(l.Sidebar,null,t.createElement(aa,null),t.createElement(l.SidebarDivider,null),t.createElement(l.SidebarItem,{icon:Dn.Z,to:"docs/default/component/local/",text:"Docs Preview"})),v),oa=()=>{const v={site_name:"Live preview environment",site_description:""};return t.createElement(Vt.EV,null,({entityRef:M,onReady:k})=>t.createElement(t.Fragment,null,t.createElement(Vt.nN,{techDocsMetadata:v,entityRef:M}),t.createElement(l.Content,{"data-testid":"techdocs-content"},t.createElement(Vt.Ej,{onReady:k,entityRef:M,withSearch:!1}))))},sa=t.createElement(oa,null),$r=F({apis:Kt,plugins:Object.values(r)}),wr=$r.getProvider(),pr=$r.getRouter(),ia=t.createElement(E.FlatRoutes,null,t.createElement(f.Fg,{key:"/",to:"/docs/default/component/local/"}),t.createElement(f.AW,{path:"/catalog/:namespace/:kind/:name",element:t.createElement(Ir,null)}),t.createElement(f.AW,{path:"/docs",element:t.createElement(Zt,null)},t.createElement(ie,null)),t.createElement(f.AW,{path:"/docs/:namespace/:kind/:name/*",element:t.createElement($t,null)},sa));var la=()=>t.createElement(wr,null,t.createElement(pr,null,t.createElement(Pa,null,ia)));c.render(t.createElement(la,null),document.getElementById("root"))},10179:function(J,o,e){"use strict";e.d(o,{SP:function(){return b},dR:function(){return y},VL:function(){return V},BD:function(){return t}});function r(B){if(typeof B!="object"||B===null||Array.isArray(B))return!1;const P=B;return!(typeof P.name!="string"||P.name===""||typeof P.message!="string")}function t(B){if(typeof B!="object"||B===null||Array.isArray(B))throw new Error(`Encountered invalid error, not an object, got '${B}'`);const P=B;if(typeof P.name!="string"||P.name==="")throw new Error(`Encountered error object without a name, got '${B}'`);if(typeof P.message!="string")throw new Error(`Encountered error object without a message, got '${B}'`)}var c=e(24852);function f(B,P){const O=serializeErrorInternal(B),x={name:"Unknown",message:"<no reason given>",...O};return(P==null?void 0:P.includeStack)||delete x.stack,x}function E(B){const P=(0,c.deserializeError)(B);return B.stack||(P.stack=void 0),P}function s(B){if(r(B)){const P=String(B);return P!=="[object Object]"?P:`${B.name}: ${B.message}`}return`unknown error '${B}'`}class p extends Error{constructor(P,O){var H;let x=P;if(O!==void 0){const q=s(O);x?x+=`; caused by ${q}`:x=`caused by ${q}`}super(x);_(this,"cause");(H=Error.captureStackTrace)==null||H.call(Error,this,this.constructor),this.name=this.constructor.name,this.cause=r(O)?O:void 0}}class h extends null{}class m extends null{}class l extends null{}class y extends p{}class i extends null{}class S extends null{}class b extends p{constructor(P,O){super(P,O);this.name=r(O)?O.name:"Error"}}async function I(B){var P;try{const O=await B.text();if(O){if((P=B.headers.get("content-type"))==null?void 0:P.startsWith("application/json"))try{const x=JSON.parse(O);if(x.error&&x.response)return x}catch{}return{error:{name:"Error",message:`Request failed with status ${B.status} ${B.statusText}, ${O}`},response:{statusCode:B.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${B.status} ${B.statusText}`},response:{statusCode:B.status}}}class V extends Error{constructor(P){super(P.message);_(this,"response");_(this,"body");_(this,"cause");this.name="ResponseError",this.response=P.response,this.body=P.data,this.cause=P.cause}static async fromResponse(P){const O=await I(P),x=O.response.statusCode||P.status,H=O.error.name||P.statusText,q=`Request failed with ${x} ${H}`,oe=E(O.error);return new V({message:q,response:P,data:O,cause:oe})}}},36356:function(J,o,e){var y,i,S,b,I;"use strict";e.d(o,{nW:function(){return l},ae:function(){return s},q3:function(){return p}});var r=e(36964);const t=(0,r.createApiRef)({id:"core.scmauth"});class c{constructor(P){pn(this,y,void 0);Sn(this,y,P)}async getCredentials(P){const O=new URL(P.url),x=Xe(this,y).find(H=>H.isUrlSupported(O));if(!x)throw new Error(`No authentication provider available for access to '${P.url}'`);return x.getCredentials(P)}}y=new WeakMap;const V=class{constructor(P,O,x,H){pn(this,i,void 0);pn(this,S,void 0);pn(this,b,void 0);pn(this,I,void 0);Sn(this,i,O),Sn(this,S,x),Sn(this,b,H),Sn(this,I,P)}static createDefaultApiFactory(){return createApiFactory({api:scmAuthApiRef,deps:{github:githubAuthApiRef,gitlab:gitlabAuthApiRef,azure:microsoftAuthApiRef,bitbucket:bitbucketAuthApiRef},factory:({github:P,gitlab:O,azure:x,bitbucket:H})=>V.merge(V.forGithub(P),V.forGitlab(O),V.forAzure(x),V.forBitbucket(H))})}static forAuthApi(P,O){return new V("generic",P,O.host,O.scopeMapping)}static forGithub(P,O){var H;const x=(H=O==null?void 0:O.host)!=null?H:"github.com";return new V("github",P,x,{default:["repo","read:org","read:user"],repoWrite:["gist"]})}static forGitlab(P,O){var H;const x=(H=O==null?void 0:O.host)!=null?H:"gitlab.com";return new V("gitlab",P,x,{default:["read_user","read_api","read_repository"],repoWrite:["write_repository","api"]})}static forAzure(P,O){var H;const x=(H=O==null?void 0:O.host)!=null?H:"dev.azure.com";return new V("azure",P,x,{default:["vso.build","vso.code","vso.graph","vso.project","vso.profile"],repoWrite:["vso.code_manage"]})}static forBitbucket(P,O){var H;const x=(H=O==null?void 0:O.host)!=null?H:"bitbucket.org";return new V("bitbucket",P,x,{default:["account","team","pullrequest","snippet","issue"],repoWrite:["pullrequest:write","snippet:write","issue:write"]})}static merge(...P){return new c(P)}isUrlSupported(P){return P.host===Xe(this,S)}getAdditionalScopesForProvider(P){var O,x;return!(P==null?void 0:P.customScopes)||Xe(this,I)==="generic"?[]:(x=(O=P.customScopes)==null?void 0:O[Xe(this,I)])!=null?x:[]}async getCredentials(P){const{url:O,additionalScope:x,...H}=P,q=Xe(this,b).default.slice();(x==null?void 0:x.repoWrite)&&q.push(...Xe(this,b).repoWrite);const oe=this.getAdditionalScopesForProvider(x);oe.length&&q.push(...oe);const pe=[...new Set(q)],Ie=await Xe(this,i).getAccessToken(pe,H);return{token:Ie,headers:{Authorization:`Bearer ${Ie}`}}}};let f=V;i=new WeakMap,S=new WeakMap,b=new WeakMap,I=new WeakMap;var E=e(63925);class s{static fromConfig(P){return E.Lx.fromConfig(P)}}const p=(0,r.createApiRef)({id:"integration.scmintegrations"});var h=e(73250),m=e(2784);const l=B=>{var q;const{type:P}=B,O=(0,r.useApp)(),x=h.Z,H=P&&(q=O.getSystemIcon(P))!=null?q:x;return m.createElement(H,null)}},63925:function(J,o,e){var Le,Re,Ee,Fe,St,ut,Ve;"use strict";e.d(o,{Lx:function(){return Be},Pb:function(){return It}});var r=e(82717),t=e.n(r),c=e(76635);function f(G){const A=new URL("http://example.com");return A.host=G,A.host===G}function E(G){try{return new URL(G),!0}catch{return!1}}function s(G,A){return{list(){return G},byUrl(D){try{const z=typeof D=="string"?new URL(D):D;return G.find(ee=>A(ee)===z.host)}catch{return}},byHost(D){return G.find(z=>A(z)===D)}}}function p(G){const{url:A,base:D,lineNumber:z}=G;try{return new URL(A),A}catch{}let ee;if(A.startsWith("/")){const{filepath:Oe}=t()(D);ee=new URL(D);const ge=(0,c.trimEnd)(ee.pathname.substring(0,ee.pathname.length-Oe.length),"/");ee.pathname=`${ge}${A}`}else ee=new URL(A,D);return ee.search=new URL(D).search,z&&(ee.hash=`L${z}`),ee.toString()}const h="GB",se=class{constructor(A,D,z,ee,Oe,ge){pn(this,Le,void 0);pn(this,Re,void 0);pn(this,Ee,void 0);pn(this,Fe,void 0);pn(this,St,void 0);pn(this,ut,void 0);pn(this,Ve,(...A)=>{const D=new URL(Xe(this,Le));return D.pathname=A.map(z=>encodeURIComponent(z)).join("/"),D});Sn(this,Le,A),Sn(this,Re,D),Sn(this,Ee,z),Sn(this,Fe,ee),Sn(this,St,Oe),Sn(this,ut,ge)}static fromRepoUrl(A){var Et;const D=new URL(A);let z,ee,Oe;const ge=D.pathname.split("/").map(re=>decodeURIComponent(re));if(ge[2]==="_git"?(z=ge[1],ee=Oe=ge[3]):ge[3]==="_git"&&(z=ge[1],ee=ge[2],Oe=ge[4]),!z||!ee||!Oe)throw new Error("Azure URL must point to a git repository");const Ce=(Et=D.searchParams.get("path"))!=null?Et:void 0;let De;const $e=D.searchParams.get("version");if($e){if($e.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");De=$e.slice(2)}return new se(D.origin,z,ee,Oe,Ce,De)}toRepoUrl(){let A;return Xe(this,Ee)===Xe(this,Fe)?A=Xe(this,Ve).call(this,Xe(this,Re),"_git",Xe(this,Fe)):A=Xe(this,Ve).call(this,Xe(this,Re),Xe(this,Ee),"_git",Xe(this,Fe)),Xe(this,St)&&A.searchParams.set("path",Xe(this,St)),Xe(this,ut)&&A.searchParams.set("version",h+Xe(this,ut)),A.toString()}toFileUrl(){if(!Xe(this,St))throw new Error("Azure URL must point to a specific path to be able to download a file");const A=Xe(this,Ve).call(this,Xe(this,Re),Xe(this,Ee),"_apis","git","repositories",Xe(this,Fe),"items");return A.searchParams.set("api-version","6.0"),A.searchParams.set("path",Xe(this,St)),Xe(this,ut)&&A.searchParams.set("version",Xe(this,ut)),A.toString()}toArchiveUrl(){const A=Xe(this,Ve).call(this,Xe(this,Re),Xe(this,Ee),"_apis","git","repositories",Xe(this,Fe),"items");return A.searchParams.set("recursionLevel","full"),A.searchParams.set("download","true"),A.searchParams.set("api-version","6.0"),Xe(this,St)&&A.searchParams.set("scopePath",Xe(this,St)),Xe(this,ut)&&A.searchParams.set("version",Xe(this,ut)),A.toString()}toCommitsUrl(){const A=Xe(this,Ve).call(this,Xe(this,Re),Xe(this,Ee),"_apis","git","repositories",Xe(this,Fe),"commits");return A.searchParams.set("api-version","6.0"),Xe(this,ut)&&A.searchParams.set("searchCriteria.itemVersion.version",Xe(this,ut)),A.toString()}getOwner(){return Xe(this,Re)}getProject(){return Xe(this,Ee)}getRepo(){return Xe(this,Fe)}getPath(){return Xe(this,St)}getRef(){return Xe(this,ut)}};let m=se;Le=new WeakMap,Re=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,St=new WeakMap,ut=new WeakMap,Ve=new WeakMap;const l="dev.azure.com";function y(G){var z;const A=(z=G.getOptionalString("host"))!=null?z:l,D=G.getOptionalString("token");if(!f(A))throw new Error(`Invalid Azure integration config, '${A}' is not a valid host`);return{host:A,token:D}}function i(G){const A=G.map(y);return A.some(D=>D.host===l)||A.push({host:l}),A}const Ne=class{constructor(A){this.integrationConfig=A}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){var ee;const{url:D,base:z}=A;if(E(D))return D;try{const Oe=m.fromRepoUrl(z),ge=new URL(z),Ce=new URL(`https://a.com${(ee=Oe.getPath())!=null?ee:""}`),De=new URL(D,Ce).pathname;return ge.searchParams.set("path",De),A.lineNumber&&(ge.searchParams.set("line",String(A.lineNumber)),ge.searchParams.set("lineEnd",String(A.lineNumber+1)),ge.searchParams.set("lineStartColumn","1"),ge.searchParams.set("lineEndColumn","1")),ge.toString()}catch{return new URL(D,z).toString()}}resolveEditUrl(A){return A}};let S=Ne;_(S,"factory",({config:A})=>{var z;const D=i((z=A.getOptionalConfigArray("integrations.azure"))!=null?z:[]);return s(D.map(ee=>new Ne(ee)),ee=>ee.config.host)});var b=e(48834).Buffer;function I(G){return AzureUrl.fromRepoUrl(G).toFileUrl()}function V(G){return AzureUrl.fromRepoUrl(G).toArchiveUrl()}function B(G){return AzureUrl.fromRepoUrl(G).toCommitsUrl()}function P(G,A){const D=A?{...A}:{};if(G.token){const z=b.from(`:${G.token}`,"utf8");D.Authorization=`Basic ${z.toString("base64")}`}return{headers:D}}const O="bitbucket.org",x="https://api.bitbucket.org/2.0";function H(G){var ge;const A=(ge=G.getOptionalString("host"))!=null?ge:O;let D=G.getOptionalString("apiBaseUrl");const z=G.getOptionalString("token"),ee=G.getOptionalString("username"),Oe=G.getOptionalString("appPassword");if(!f(A))throw new Error(`Invalid Bitbucket integration config, '${A}' is not a valid host`);return D?D=(0,c.trimEnd)(D,"/"):A===O&&(D=x),{host:A,apiBaseUrl:D,token:z,username:ee,appPassword:Oe}}function q(G){const A=G.map(H);return A.some(D=>D.host===O)||A.push({host:O,apiBaseUrl:x}),A}const et=class{constructor(A){this.integrationConfig=A}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){const D=p(A);if(A.lineNumber){const z=new URL(D),ee=z.pathname.split("/").slice(-1)[0];return z.hash=`${ee}-${A.lineNumber}`,z.toString()}return D}resolveEditUrl(A){const D=t()(A),z=new URL(A);return z.searchParams.set("mode","edit"),z.searchParams.set("spa","0"),z.searchParams.set("at",D.ref),z.toString()}};let oe=et;_(oe,"factory",({config:A})=>{var z;const D=q((z=A.getOptionalConfigArray("integrations.bitbucket"))!=null?z:[]);return s(D.map(ee=>new et(ee)),ee=>ee.config.host)});var pe=e(96279),Ie=e(48834).Buffer;async function me(G,A){const{name:D,owner:z,resource:ee}=parseGitUrl(G),Oe=ee==="bitbucket.org";let ge=Oe?`${A.apiBaseUrl}/repositories/${z}/${D}`:`${A.apiBaseUrl}/projects/${z}/repos/${D}/default-branch`,Ce=await fetch(ge,Qe(A));if(Ce.status===404&&!Oe&&(ge=`${A.apiBaseUrl}/projects/${z}/repos/${D}/branches/default`,Ce=await fetch(ge,Qe(A))),!Ce.ok){const $e=`Failed to retrieve default branch from ${ge}, ${Ce.status} ${Ce.statusText}`;throw new Error($e)}let De;if(Oe)De=(await Ce.json()).mainbranch.name;else{const{displayId:$e}=await Ce.json();De=$e}if(!De)throw new Error(`Failed to read default branch from ${ge}. Response ${Ce.status} ${Ce.json()}`);return De}async function ze(G,A){const{name:D,owner:z,ref:ee,protocol:Oe,resource:ge,filepath:Ce}=parseGitUrl(G),De=ge==="bitbucket.org";let $e=ee;$e||($e=await me(G,A));const Et=Ce?`&path=${encodeURIComponent(Ce)}`:"";return De?`${Oe}://${ge}/${z}/${D}/get/${$e}.tar.gz`:`${A.apiBaseUrl}/projects/${z}/repos/${D}/archive?format=tgz&at=${$e}&prefix=${z}-${D}${Et}`}function Pe(G,A){try{const{owner:D,name:z,ref:ee,filepathtype:Oe,filepath:ge}=parseGitUrl(G);if(!D||!z||Oe!=="browse"&&Oe!=="raw"&&Oe!=="src")throw new Error("Invalid Bitbucket URL or file path");const Ce=ge.replace(/^\//,"");if(A.host==="bitbucket.org"){if(!ee)throw new Error("Invalid Bitbucket URL or file path");return`${A.apiBaseUrl}/repositories/${D}/${z}/src/${ee}/${Ce}`}return`${A.apiBaseUrl}/projects/${D}/repos/${z}/raw/${Ce}?at=${ee}`}catch(D){throw new Error(`Incorrect URL: ${G}, ${D}`)}}function Qe(G){const A={};if(G.token)A.Authorization=`Bearer ${G.token}`;else if(G.username&&G.appPassword){const D=Ie.from(`${G.username}:${G.appPassword}`,"utf8");A.Authorization=`Basic ${D.toString("base64")}`}return{headers:A}}const st="github.com",_e="https://api.github.com",gt="https://raw.githubusercontent.com";function nt(G){var ge,Ce;const A=(ge=G.getOptionalString("host"))!=null?ge:st;let D=G.getOptionalString("apiBaseUrl"),z=G.getOptionalString("rawBaseUrl");const ee=G.getOptionalString("token"),Oe=(Ce=G.getOptionalConfigArray("apps"))==null?void 0:Ce.map(De=>({appId:De.getNumber("appId"),clientId:De.getString("clientId"),clientSecret:De.getString("clientSecret"),webhookSecret:De.getString("webhookSecret"),privateKey:De.getString("privateKey"),allowedInstallationOwners:De.getOptionalStringArray("allowedInstallationOwners")}));if(!f(A))throw new Error(`Invalid GitHub integration config, '${A}' is not a valid host`);return D?D=(0,c.trimEnd)(D,"/"):A===st&&(D=_e),z?z=(0,c.trimEnd)(z,"/"):A===st&&(z=gt),{host:A,apiBaseUrl:D,rawBaseUrl:z,token:ee,apps:Oe}}function at(G){const A=G.map(nt);return A.some(D=>D.host===st)||A.push({host:st,apiBaseUrl:_e,rawBaseUrl:gt}),A}function Rt(G,A,D){try{const{owner:z,name:ee,ref:Oe,filepathtype:ge,filepath:Ce}=parseGitUrl(G);if(!z||!ee||!Oe||ge!=="blob"&&ge!=="raw"&&ge!=="tree")throw new Error("Invalid GitHub URL or file path");const De=Ce.replace(/^\//,"");return Ot(A,D)==="api"?`${A.apiBaseUrl}/repos/${z}/${ee}/contents/${De}?ref=${Oe}`:`${A.rawBaseUrl}/${z}/${ee}/${Oe}/${De}`}catch(z){throw new Error(`Incorrect URL: ${G}, ${z}`)}}function zt(G,A){const D={};return Ot(G,A)==="api"&&(D.Accept="application/vnd.github.v3.raw"),A.token&&(D.Authorization=`token ${A.token}`),{headers:D}}function Ot(G,A){return G.apiBaseUrl&&(A.token||!G.rawBaseUrl)?"api":"raw"}class pt{constructor(){_(this,"tokenCache",new Map);_(this,"isNotExpired",A=>A.diff(DateTime.local(),"minutes").minutes>50)}async getOrCreateToken(A,D){const z=this.tokenCache.get(A);if(z&&this.isNotExpired(z.expiresAt))return{accessToken:z.token};const ee=await D();return this.tokenCache.set(A,ee),{accessToken:ee.token}}}const rt={Accept:"application/vnd.github.machine-man-preview+json"};class Tt{constructor(A,D){_(this,"appClient");_(this,"baseUrl");_(this,"baseAuthConfig");_(this,"cache",new pt);_(this,"allowedInstallationOwners");this.allowedInstallationOwners=A.allowedInstallationOwners,this.baseUrl=D,this.baseAuthConfig={appId:A.appId,privateKey:A.privateKey.replace(/\\n/gm,`
31
- `)},this.appClient=new Octokit({baseUrl:D,headers:rt,authStrategy:createAppAuth,auth:this.baseAuthConfig})}async getInstallationCredentials(A,D){var ge;const{installationId:z,suspended:ee}=await this.getInstallationData(A);if(this.allowedInstallationOwners&&!((ge=this.allowedInstallationOwners)==null?void 0:ge.includes(A)))return{accessToken:void 0};if(ee)throw new Error(`The GitHub application for ${A} is suspended`);const Oe=D?`${A}/${D}`:A;return this.cache.getOrCreateToken(Oe,async()=>{const Ce=await this.appClient.apps.createInstallationAccessToken({installation_id:z,headers:rt});if(D&&Ce.data.repository_selection==="selected"){const De=new Octokit({baseUrl:this.baseUrl,auth:Ce.data.token});if(!(await De.paginate(De.apps.listReposAccessibleToInstallation)).some(re=>re.name===D))throw new Error(`The Backstage GitHub application used in the ${A} organization does not have access to a repository with the name ${D}`)}return{token:Ce.data.token,expiresAt:DateTime.fromISO(Ce.data.expires_at)}})}getInstallations(){return this.appClient.paginate(this.appClient.apps.listInstallations)}async getInstallationData(A){const z=(await this.getInstallations()).find(Oe=>{var ge,Ce;return((Ce=(ge=Oe.account)==null?void 0:ge.login)==null?void 0:Ce.toLocaleLowerCase("en-US"))===A.toLocaleLowerCase("en-US")});if(z)return{installationId:z.id,suspended:Boolean(z.suspended_by)};const ee=new Error(`No app installation found for ${A} in ${this.baseAuthConfig.appId}`);throw ee.name="NotFoundError",ee}}class Pt{constructor(A){_(this,"apps");var D,z;this.apps=(z=(D=A.apps)==null?void 0:D.map(ee=>new Tt(ee,A.apiBaseUrl)))!=null?z:[]}async getAllInstallations(){return this.apps.length?(await Promise.all(this.apps.map(D=>D.getInstallations()))).flat():[]}async getAppToken(A,D){if(this.apps.length===0)return;const z=await Promise.all(this.apps.map(Ce=>Ce.getInstallationCredentials(A,D).then(De=>({credentials:De,error:void 0}),De=>({credentials:void 0,error:De})))),ee=z.find(Ce=>Ce.credentials);if(ee)return ee.credentials.accessToken;const ge=z.map(Ce=>Ce.error).find(Ce=>Ce.name!=="NotFoundError");if(ge)throw ge}}class xt{constructor(A,D){this.githubAppCredentialsMux=A,this.token=D}async getCredentials(A){const D=parseGitUrl(A.url),z=D.owner||D.name,ee=D.owner?D.name:void 0;let Oe="app",ge=await this.githubAppCredentialsMux.getAppToken(z,ee);return ge||(Oe="token",ge=this.token),{headers:ge?{Authorization:`Bearer ${ge}`}:void 0,token:ge,type:Oe}}}_(xt,"create",null);class Nt{static fromIntegrations(A){const D=new Map;return A.github.list().forEach(z=>{const ee=SingleInstanceGithubCredentialsProvider.create(z.config);D.set(z.config.host,ee)}),new Nt(D)}constructor(A){this.providers=A}async getCredentials(A){const D=new URL(A.url),z=this.providers.get(D.host);if(!z)throw new Error(`There is no GitHub integration that matches ${A.url}. Please add a configuration for an integration.`);return z.getCredentials(A)}}const Ue=class{constructor(A){this.integrationConfig=A}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){return It(p(A),"tree")}resolveEditUrl(A){return It(A,"edit")}};let ht=Ue;_(ht,"factory",({config:A})=>{var z;const D=at((z=A.getOptionalConfigArray("integrations.github"))!=null?z:[]);return s(D.map(ee=>new Ue(ee)),ee=>ee.config.host)});function It(G,A){return G.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(D,z,ee,Oe)=>`//${z}/${ee}/${Oe}/${A}/`)}const Ut="gitlab.com",be="https://gitlab.com/api/v4";function ot(G){const A=G.getString("host");let D=G.getOptionalString("apiBaseUrl");const z=G.getOptionalString("token");let ee=G.getOptionalString("baseUrl");if(D?D=(0,c.trimEnd)(D,"/"):A===Ut&&(D=be),ee?ee=(0,c.trimEnd)(ee,"/"):ee=`https://${A}`,A.includes(":"))throw new Error(`Invalid GitLab integration config, host '${A}' should just be the host name (e.g. "github.com"), not a URL`);if(f(A)){if(!D||!E(D))throw new Error(`Invalid GitLab integration config, '${D}' is not a valid apiBaseUrl`);if(!E(ee))throw new Error(`Invalid GitLab integration config, '${ee}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${A}' is not a valid host`);return{host:A,token:z,apiBaseUrl:D,baseUrl:ee}}function it(G){const A=G.map(ot);return A.some(D=>D.host===Ut)||A.push({host:Ut,apiBaseUrl:be,baseUrl:`https://${Ut}`}),A}async function Ct(G,A){if(G.includes("/-/blob/")){const D=await C(G,A);return T(G,D).toString()}return te(G).toString()}function ae(G){const{token:A=""}=G;return{headers:{"PRIVATE-TOKEN":A}}}function te(G){try{const A=new URL(G),[D,z,ee,Oe,...ge]=A.pathname.split("/");if(D!==""||z===""||ee===""||Oe!=="blob"||!ge.join("/").match(/\.(yaml|yml)$/))throw new Error("Wrong GitLab URL");return A.pathname=[D,z,ee,"raw",...ge].join("/"),A}catch(A){throw new Error(`Incorrect url: ${G}, ${A}`)}}function T(G,A){try{const D=new URL(G),z=D.pathname.split("/-/blob/")[1],[ee,...Oe]=z.split("/");return D.pathname=["/api/v4/projects",A,"repository/files",encodeURIComponent(decodeURIComponent(Oe.join("/"))),"raw"].join("/"),D.search=`?ref=${ee}`,D}catch(D){throw new Error(`Incorrect url: ${G}, ${D}`)}}async function C(G,A){const D=new URL(G);if(!D.pathname.includes("/-/blob/"))throw new Error("Please provide full path to yaml file from GitLab");try{const z=D.pathname.split("/-/blob/")[0],ee=new URL(`${D.protocol+D.hostname}/api/v4/projects/${encodeURIComponent(z.replace(/^\//,""))}`),Oe=await fetch(ee.toString(),ae(A)),ge=await Oe.json();if(!Oe.ok)throw new Error(`GitLab Error '${ge.error}', ${ge.error_description}`);return Number(ge.id)}catch(z){throw new Error(`Could not get GitLab project ID for: ${G}, ${z}`)}}const Ze=class{constructor(A){this.integrationConfig=A}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){return p(A)}resolveEditUrl(A){return j(A,"edit")}};let F=Ze;_(F,"factory",({config:A})=>{var z;const D=it((z=A.getOptionalConfigArray("integrations.gitlab"))!=null?z:[]);return s(D.map(ee=>new Ze(ee)),ee=>ee.config.host)});function j(G,A){return G.replace(/\/\-\/(blob|tree|edit)\//,`/-/${A}/`)}const Y="amazonaws.com";function le(G){var De;const A=G.getOptionalString("endpoint"),D=(De=G.getOptionalBoolean("s3ForcePathStyle"))!=null?De:!1;let z,ee;if(A){try{const $e=new URL(A);z=$e.host,ee=$e.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${A}' is not a valid URL`)}if(ee!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${A}'`)}else z=Y;const Oe=G.getOptionalString("accessKeyId"),ge=G.getOptionalString("secretAccessKey"),Ce=G.getOptionalString("roleArn");return{host:z,endpoint:A,s3ForcePathStyle:D,accessKeyId:Oe,secretAccessKey:ge,roleArn:Ce}}function ve(G){const A=G.map(le);return A.some(D=>D.host===Y)||A.push({host:Y}),A}const Je=class{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(A){this.integrationConfig=A}resolveUrl(A){return p(A)}resolveEditUrl(A){return A}};let ye=Je;_(ye,"factory",({config:A})=>{var z;const D=ve((z=A.getOptionalConfigArray("integrations.awsS3"))!=null?z:[]);return s(D.map(ee=>new Je(ee)),ee=>ee.config.host)});class Be{constructor(A){_(this,"byType");this.byType=A}static fromConfig(A){return new Be({awsS3:ye.factory({config:A}),azure:S.factory({config:A}),bitbucket:oe.factory({config:A}),github:ht.factory({config:A}),gitlab:F.factory({config:A})})}get awsS3(){return this.byType.awsS3}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}list(){return Object.values(this.byType).flatMap(A=>A.list())}byUrl(A){return Object.values(this.byType).map(D=>D.byUrl(A)).find(Boolean)}byHost(A){return Object.values(this.byType).map(D=>D.byHost(A)).find(Boolean)}resolveUrl(A){const D=this.byUrl(A.base);return D?D.resolveUrl(A):p(A)}resolveEditUrl(A){const D=this.byUrl(A);return D?D.resolveEditUrl(A):A}}},76241:function(J,o,e){"use strict";e.d(o,{CT:function(){return s},EI:function(){return m},uW:function(){return f},Vt:function(){return p}});function r(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const t=r(),c=l=>`__@backstage/${l}__`;function f(l,y){const i=c(l);let S=t[i];return S||(S=y(),t[i]=S,S)}var E=e(2784);function s(l){return f(l,()=>(0,E.createContext)(void 0))}function p(l){return(0,E.useContext)(s(l))}function h(l){return{set(y){globalThis[`__@backstage/${l}__`]=createContext(createVersionedValueMap(y))},reset(){delete globalThis[`__@backstage/${l}__`]}}}function m(l){return Object.freeze(l),{atVersion(y){return l[y]}}}},19139:function(J,o,e){"use strict";e.d(o,{AsyncEntityProvider:function(){return Ie},n3:function(){return t.n3},DefaultStarredEntitiesApi:function(){return l},EntityContext:function(){return q},EntityKindFilter:function(){return T},EntityLifecyclePicker:function(){return we},EntityListProvider:function(){return Nt},EntityOwnerPicker:function(){return tn},EntityRefLink:function(){return ae},EntityRefLinks:function(){return te},EntityTable:function(){return Wn},EntityTagPicker:function(){return Rr},EntityTypePicker:function(){return Sr},FavoriteEntity:function(){return cr},UnregisterEntityDialog:function(){return _r},UserListPicker:function(){return gr},Ah:function(){return f},M4:function(){return B},wi:function(){return P},favoriteEntityIcon:function(){return Bn},favoriteEntityTooltip:function(){return qn},formatEntityRefTitle:function(){return ot},getEntityMetadataEditUrl:function(){return pt},getEntityMetadataViewUrl:function(){return Ot},getEntityRelations:function(){return rt},getEntitySourceLocation:function(){return Tt},isOwnerOf:function(){return Pt},starredEntitiesApiRef:function(){return y},useEntity:function(){return Qe},useEntityCompoundName:function(){return H},useEntityFromUrl:function(){return Pe},useEntityKinds:function(){return Be},useEntityListProvider:function(){return ht},useEntityPermission:function(){return G},useOwnUser:function(){return Le},useRelatedEntities:function(){return Ee},useStarredEntities:function(){return ut}});var r={};e.r(r),e.d(r,{createDomainColumn:function(){return Gt},createEntityRefColumn:function(){return Cn},createEntityRelationColumn:function(){return yn},createMetadataDescriptionColumn:function(){return On},createOwnerColumn:function(){return yt},createSpecLifecycleColumn:function(){return Ht},createSpecTypeColumn:function(){return wn},createSystemColumn:function(){return fn}});var t=e(30001),c=e(36964);const f=(0,c.createApiRef)({id:"plugin.catalog.service"});var E=e(82394),s=e.n(E),p=e(52890),h=e(76635);async function m({storageApi:w}){var ie;const N=w.forBucket("settings"),$=w.forBucket("starredEntities"),X=N.get("starredEntities");if(!(0,h.isArray)(X))return;const ue=new Set((ie=$.get("entityRefs"))!=null?ie:[]);X.filter(h.isString).map(fe=>fe.split(":")).filter(fe=>fe.length===4&&fe[0]==="entity").map(([fe,Ge,We,Ke])=>(0,p.eE)({kind:Ge,namespace:We,name:Ke})).forEach(fe=>ue.add(fe)),await $.set("entityRefs",Array.from(ue)),await N.remove("starredEntities")}class l{constructor(N){_(this,"settingsStore");_(this,"starredEntities");_(this,"subscribers",new Set);_(this,"observable",new(s())(N=>(N.next(this.starredEntities),this.subscribers.add(N),()=>{this.subscribers.delete(N)})));var $;m(N).then(),this.settingsStore=N.storageApi.forBucket("starredEntities"),this.starredEntities=new Set(($=this.settingsStore.get("entityRefs"))!=null?$:[]),this.settingsStore.observe$("entityRefs").subscribe({next:X=>{var ue;this.starredEntities=new Set((ue=X.newValue)!=null?ue:[]),this.notifyChanges()}})}async toggleStarred(N){this.starredEntities.has(N)?this.starredEntities.delete(N):this.starredEntities.add(N),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}isStarred(N){return this.starredEntities.has(N)}notifyChanges(){for(const N of this.subscribers)N.next(this.starredEntities)}}const y=(0,c.createApiRef)({id:"catalog-react.starred-entities"});var i=e(2784),S=e(76241),b=e(10289),I=e(77446);const B=(0,c.createRouteRef)({id:"catalog"}),P=(0,S.uW)("catalog:entity-route-ref",()=>(0,c.createRouteRef)({id:"catalog:entity",params:["namespace","kind","name"]})),O=null;function x(w){var N,$;return{kind:w.kind.toLocaleLowerCase("en-US"),namespace:($=(N=w.metadata.namespace)==null?void 0:N.toLocaleLowerCase("en-US"))!=null?$:ENTITY_DEFAULT_NAMESPACE,name:w.metadata.name}}const H=()=>{const{kind:w,namespace:N,name:$}=(0,c.useRouteRefParams)(P);return{kind:w,namespace:N,name:$}},q=(0,i.createContext)({entity:void 0,loading:!0,error:void 0,refresh:()=>{}}),oe=q.Provider,pe=(0,S.CT)("entity-context"),Ie=({children:w,entity:N,loading:$,error:X,refresh:ue})=>{const ie={entity:N,loading:$,error:X,refresh:ue};return i.createElement(oe,{value:ie},i.createElement(pe.Provider,{value:(0,S.EI)({1:ie})},w))},me=({entity:w,children:N})=>React.createElement(Ie,{entity:w,loading:!Boolean(w),error:void 0,refresh:void 0,children:N}),ze=({value:w,children:N})=>i.createElement(Ie,{...w,children:N});q.Provider=ze;const Pe=()=>{const{kind:w,namespace:N,name:$}=H(),X=(0,b.s0)(),ue=(0,c.useApi)(c.errorApiRef),ie=(0,c.useApi)(f),{value:fe,error:Ge,loading:We,retry:Ke}=(0,I.Z)(()=>ie.getEntityByName({kind:w,namespace:N,name:$}),[ie,w,N,$]);return(0,i.useEffect)(()=>{$||(ue.post(new Error("No name provided!")),X("/"))},[ue,X,Ge,We,fe,$]),{entity:fe,loading:We,error:Ge,refresh:Ke}};function Qe(){const w=(0,S.Vt)("entity-context");if(!w)return{entity:void 0,loading:!0,error:void 0,refresh:()=>{}};const N=w.atVersion(1);if(!N)throw new Error("EntityContext v1 not available");const{entity:$,loading:X,error:ue,refresh:ie}=N;return{entity:$,loading:X,error:ue,refresh:ie}}var st=e(19126),_e=e.n(st),gt=e(69294),nt=e(48760),at=e(90736);function Rt(w){return w.reduce((N,$)=>({...N,...$.getCatalogFilters?$.getCatalogFilters():{}}),{})}function zt(w){return N=>w.every($=>!$.filterEntity||$.filterEntity(N))}function Ot(w){var N;return(N=w.metadata.annotations)==null?void 0:N[p.wh]}function pt(w){var N;return(N=w.metadata.annotations)==null?void 0:N[p.J1]}function rt(w,N,$){var ue,ie;let X=((ie=(ue=w==null?void 0:w.relations)==null?void 0:ue.filter(fe=>fe.type===N))==null?void 0:ie.map(fe=>fe.target))||[];return($==null?void 0:$.kind)&&(X=X==null?void 0:X.filter(fe=>fe.kind.toLocaleLowerCase("en-US")===$.kind.toLocaleLowerCase("en-US"))),X}function Tt(w,N){var X;const $=(X=w.metadata.annotations)==null?void 0:X[p.wX];if(!!$)try{const ue=(0,p.Me)($),ie=N.byUrl(ue.target);return{locationTargetUrl:ue.target,integrationType:ie==null?void 0:ie.type}}catch{return}}function Pt(w,N){const $=new Set([...rt(w,p.hr,{kind:"group"}),...w?[(0,p.C_)(w)]:[]].map(p.eE)),X=rt(N,p.S4).map(p.eE);for(const ue of X)if($.has(ue))return!0;return!1}const xt=(0,i.createContext)(void 0),Nt=({children:w})=>{const N=(0,at.default)(),$=(0,c.useApi)(f),[X,ue]=(0,i.useState)({}),[ie,fe]=(0,i.useState)(()=>{var At;const He=_e().parse(window.location.search,{ignoreQueryPrefix:!0});return{appliedFilters:{},entities:[],backendEntities:[],queryParameters:(At=He.filters)!=null?At:{}}}),[{loading:Ge,error:We},Ke]=(0,gt.default)(async()=>{var Vt;const He=(0,h.compact)(Object.values(X)),At=zt(He),bt=Rt(He),Zt=Rt((0,h.compact)(Object.values(ie.appliedFilters))),$t=Object.keys(X).reduce((qt,on)=>{const wt=X[on];return(wt==null?void 0:wt.toQueryValue)&&(qt[on]=wt.toQueryValue()),qt},{});if((0,h.isEqual)(Zt,bt))fe({appliedFilters:X,backendEntities:ie.backendEntities,entities:ie.backendEntities.filter(At),queryParameters:$t});else{const qt=await $.getEntities({filter:bt});fe({appliedFilters:X,backendEntities:qt.items,entities:qt.items.filter(At),queryParameters:$t})}if(N()){const qt=_e().parse(window.location.search,{ignoreQueryPrefix:!0}),on=_e().stringify({...qt,filters:$t},{addQueryPrefix:!0}),wt=`${window.location.pathname}${on}`;(Vt=window.history)==null||Vt.replaceState(null,document.title,wt)}},[$,X,ie],{loading:!0});(0,nt.Z)(Ke,10,[X]);const lt=(0,i.useCallback)(He=>{ue(At=>{const bt=typeof He=="function"?He(At):He;return{...At,...bt}})},[]),Ye=(0,i.useMemo)(()=>({filters:ie.appliedFilters,entities:ie.entities,backendEntities:ie.backendEntities,updateFilters:lt,queryParameters:ie.queryParameters,loading:Ge,error:We}),[ie,lt,Ge,We]);return i.createElement(xt.Provider,{value:Ye},w)};function ht(){const w=(0,i.useContext)(xt);if(!w)throw new Error("useEntityListProvider must be used within EntityListProvider");return w}var It=e(64279),Ut=e(18149),be=e.n(Ut);function ot(w,N){const $=N==null?void 0:N.defaultKind;let X,ue,ie;return"metadata"in w?(X=w.kind,ue=w.metadata.namespace,ie=w.metadata.name):(X=w.kind,ue=w.namespace,ie=w.name),ue===p.sk&&(ue=void 0),X=X.toLocaleLowerCase("en-US"),`${(0,p.TH)({kind:$&&$.toLocaleLowerCase("en-US")===X?void 0:X,name:ie,namespace:ue})}`}var it=e(9118),Ct=e(80030);const ae=(0,i.forwardRef)((w,N)=>{var bt;const{entityRef:$,defaultKind:X,title:ue,children:ie,...fe}=w,Ge=(0,c.useRouteRef)(P);let We,Ke,lt;"metadata"in $?(We=$.kind,Ke=$.metadata.namespace,lt=$.metadata.name):(We=$.kind,Ke=$.namespace,lt=$.name),We=We.toLocaleLowerCase("en-US");const Ye={kind:We,namespace:(bt=Ke==null?void 0:Ke.toLocaleLowerCase("en-US"))!=null?bt:p.sk,name:lt},He=ot($,{defaultKind:X}),At=i.createElement(it.Link,{...fe,ref:N,to:Ge(Ye)},ie,!ie&&(ue!=null?ue:He));return ue?i.createElement(Ct.ZP,{title:He},At):At}),te=({entityRefs:w,defaultKind:N,...$})=>i.createElement(i.Fragment,null,w.map((X,ue)=>i.createElement(i.Fragment,{key:ue},ue>0&&", ",i.createElement(ae,{...$,entityRef:X,defaultKind:N}))));class T{constructor(N){this.value=N}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class C{constructor(N){this.value=N}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class F{constructor(N){this.values=N}filterEntity(N){return this.values.every($=>{var X;return((X=N.metadata.tags)!=null?X:[]).includes($)})}toQueryValue(){return this.values}}class j{constructor(N){this.value=N}filterEntity(N){var X;const $=this.value.toLocaleUpperCase("en-US");return N.metadata.name.toLocaleUpperCase("en-US").includes($)||`${N.metadata.title}`.toLocaleUpperCase("en-US").includes($)||((X=N.metadata.tags)==null?void 0:X.join("").toLocaleUpperCase("en-US").indexOf($))!==-1}}class Y{constructor(N){this.values=N}filterEntity(N){return this.values.some($=>rt(N,p.S4).some(X=>ot(X,{defaultKind:"group"})===$))}toQueryValue(){return this.values}}class le{constructor(N){this.values=N}filterEntity(N){return this.values.some($=>{var X;return((X=N.spec)==null?void 0:X.lifecycle)===$})}toQueryValue(){return this.values}}class ve{constructor(N,$,X){this.value=N,this.isOwnedEntity=$,this.isStarredEntity=X}filterEntity(N){switch(this.value){case"owned":return this.isOwnedEntity(N);case"starred":return this.isStarredEntity(N);default:return!0}}toQueryValue(){return this.value}}function ye(){var Zt;const w=(0,c.useApi)(f),{filters:{kind:N,type:$},queryParameters:X,updateFilters:ue}=ht(),ie=[X.type].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(ie.length?ie:(Zt=$==null?void 0:$.getTypes())!=null?Zt:[]),[We,Ke]=(0,i.useState)([]),lt=(0,i.useMemo)(()=>N==null?void 0:N.value,[N]),{error:Ye,loading:He,value:At}=(0,It.default)(async()=>lt?await w.getEntities({filter:{kind:lt},fields:["spec.type"]}).then(Vt=>Vt.items):[],[lt,w]),bt=(0,i.useRef)(At);return(0,i.useEffect)(()=>{const $t=bt.current;if(bt.current=At,He||!lt||$t===At||!At)return;const Vt=At.reduce((wt,Tn)=>{var Qt;if(typeof((Qt=Tn.spec)==null?void 0:Qt.type)!="string")return wt;const Kt=Tn.spec.type.toLocaleLowerCase("en-US");return wt[Kt]||(wt[Kt]=0),wt[Kt]+=1,wt},{}),qt=Object.entries(Vt).sort(([,wt],[,Tn])=>Tn-wt).map(([wt])=>wt);Ke(qt);const on=fe.filter(wt=>qt.includes(wt));be()(fe,on)||Ge(on)},[He,lt,fe,Ge,At]),(0,i.useEffect)(()=>{ue({type:fe.length?new C(fe):void 0})},[fe,ue]),{loading:He,error:Ye,availableTypes:We,selectedTypes:fe,setSelectedTypes:Ge}}function Be(){const w=(0,c.useApi)(f),{error:N,loading:$,value:X}=(0,It.default)(async()=>{const ue=await w.getEntities({fields:["kind"]}).then(ie=>ie.items);return[...new Set(ue.map(ie=>ie.kind))].sort()});return{error:N,loading:$,kinds:X}}function Le(){const w=(0,c.useApi)(f),N=(0,c.useApi)(c.identityApiRef);return(0,It.default)(async()=>{const $=await N.getBackstageIdentity();return w.getEntityByName((0,p.of)($.userEntityRef,{defaultKind:"User",defaultNamespace:p.sk}))},[w,N])}const Re=20;function Ee(w,{type:N,kind:$}){const X=(0,c.useApi)(f),{loading:ue,value:ie,error:fe}=(0,It.default)(async()=>{const Ge=w.relations&&w.relations.filter(Ye=>(!N||Ye.type.toLocaleLowerCase("en-US")===N.toLocaleLowerCase("en-US"))&&(!$||Ye.target.kind.toLocaleLowerCase("en-US")===$.toLocaleLowerCase("en-US")));if(!Ge)return[];const We=Object.values((0,h.groupBy)(Ge,({target:Ye})=>`${Ye.kind}:${Ye.namespace}`.toLocaleLowerCase("en-US"))),Ke=[];for(const Ye of We)Ke.push({kind:Ye[0].target.kind,namespace:Ye[0].target.namespace,nameBatches:(0,h.chunk)(Ye.map(He=>He.target.name),Re)});return(await Promise.all(Ke.flatMap(Ye=>Ye.nameBatches.map(He=>X.getEntities({filter:{kind:Ye.kind,"metadata.namespace":Ye.namespace,"metadata.name":He}}))))).flatMap(Ye=>Ye.items)},[w,N]);return{entities:ie,loading:ue,error:fe}}var Fe=e(72164);function St(w){return typeof w=="string"?w:(0,p.eE)(w)}function ut(){const w=(0,c.useApi)(y),N=(0,Fe.Z)(w.starredEntitie$(),new Set),$=(0,i.useCallback)(ue=>N.has(St(ue)),[N]),X=(0,i.useCallback)(ue=>w.toggleStarred(St(ue)).then(),[w]);return{starredEntities:N,toggleStarredEntity:X,isStarredEntity:$}}function Ve(w){return typeof w=="string"?w:(0,p.eE)(w)}function se(w){const N=(0,c.useApi)(y),[$,X]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{const ie=N.starredEntitie$().subscribe({next(fe){X(fe.has(Ve(w)))}});return()=>{ie.unsubscribe()}},[w,N]),{toggleStarredEntity:(0,i.useCallback)(()=>N.toggleStarred(Ve(w)).then(),[w,N]),isStarredEntity:$}}async function Ne(w){return(await w.getBackstageIdentity()).ownershipEntityRefs}async function et(w,N){const $=new Array,X=N.find(ue=>ue.startsWith("user:"));if(X){const ue=await w.getEntityByName((0,p.of)(X));if(ue){const ie=rt(ue,p.hr,{kind:"Group"});for(const fe of ie)$.push((0,p.eE)(fe))}}return $}function Ue(){const w=(0,c.useApi)(c.identityApiRef),N=(0,c.useApi)(f),{loading:$,value:X}=(0,It.default)(async()=>{const{ownershipEntityRefs:ie}=await w.getBackstageIdentity(),fe=await et(N,ie);return new Set([...ie,...fe])},[]),ue=(0,i.useMemo)(()=>{const ie=new Set(X!=null?X:[]);return fe=>{const Ge=("metadata"in fe?rt(fe,p.S4):[fe]).map(p.eE);for(const We of Ge)if(ie.has(We))return!0;return!1}},[X]);return(0,i.useMemo)(()=>({loading:$,isOwnedEntity:ue}),[$,ue])}function Ze(w){const N=useApi(identityApiRef),$=useApi(catalogApiRef),{loading:X,value:ue}=useAsync(async()=>{const fe=await loadIdentityOwnerRefs(N),Ge=await loadCatalogOwnerRefs($,fe);return await $.getEntities(w?{filter:{kind:w,[`relations.${RELATION_OWNED_BY}`]:[...fe,...Ge]}}:{filter:{[`relations.${RELATION_OWNED_BY}`]:[...fe,...Ge]}})},[]),ie=useMemo(()=>ue,[ue]);return useMemo(()=>({loading:X,ownedEntities:ie}),[X,ie])}var Je=e(20221);function G(w){const{entity:N,loading:$,error:X}=Qe(),{allowed:ue,loading:ie,error:fe}=(0,Je.gI)(w,N?(0,p.eE)(N):void 0);return $||ie?{loading:!0,allowed:!1}:X?{loading:!1,allowed:!1,error:X}:{loading:!1,allowed:ue,error:fe}}const A=({initialFilter:w,hidden:N})=>{var ie;const{updateFilters:$,queryParameters:X}=useEntityListProvider(),[ue]=useState((ie=[X.kind].flat()[0])!=null?ie:w);return useEffect(()=>{$({kind:ue?new EntityKindFilter(ue):void 0})},[ue,$]),N?null:React.createElement(Alert,{severity:"warning"},"Kind filter not yet available")};var D=e(79692),z=e(95544),ee=e(90436),Oe=e(5806),ge=e(21324),Ce=e(86619),De=e(19996),$e=e(25505),Et=e(38016),re=e(88013);const Z=(0,D.Z)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),Q=i.createElement($e.Z,{fontSize:"small"}),he=i.createElement(De.Z,{fontSize:"small"}),we=()=>{var Ke,lt;const w=Z(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=ht(),ie=[ue.lifecycles].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(ie.length?ie:(lt=(Ke=X.lifecycles)==null?void 0:Ke.values)!=null?lt:[]);(0,i.useEffect)(()=>{N({lifecycles:fe.length?new le(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.map(Ye=>{var He;return(He=Ye.spec)==null?void 0:He.lifecycle}).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(ee.Z,{variant:"button"},"Lifecycle"),i.createElement(re.ZP,{"aria-label":"Lifecycle",multiple:!0,options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:Q,checkedIcon:he,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"lifecycle-picker-expand"}),renderInput:Ye=>i.createElement(Ce.Z,{...Ye,className:w.input,variant:"outlined"})})):null},je=(0,D.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),tt=i.createElement($e.Z,{fontSize:"small"}),Dt=i.createElement(De.Z,{fontSize:"small"}),tn=()=>{var Ke,lt;const w=je(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=ht(),ie=[ue.owners].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(ie.length?ie:(lt=(Ke=X.owners)==null?void 0:Ke.values)!=null?lt:[]);(0,i.useEffect)(()=>{N({owners:fe.length?new Y(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.flatMap(Ye=>rt(Ye,p.S4).map(He=>ot(He,{defaultKind:"group"}))).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(ee.Z,{variant:"button"},"Owner"),i.createElement(re.ZP,{multiple:!0,"aria-label":"Owner",options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:tt,checkedIcon:Dt,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"owner-picker-expand"}),renderInput:Ye=>i.createElement(Ce.Z,{...Ye,className:w.input,variant:"outlined"})})):null},cn=(0,D.Z)(w=>({searchToolbar:{paddingLeft:0,paddingRight:0},input:{}}),{name:"CatalogReactEntitySearchBar"}),$n=()=>{var ie,fe;const w=cn(),{filters:N,updateFilters:$}=useEntityListProvider(),[X,ue]=useState((fe=(ie=N.text)==null?void 0:ie.value)!=null?fe:"");return useDebounce(()=>{$({text:X.length?new EntityTextFilter(X):void 0})},250,[X,$]),React.createElement(Toolbar,{className:w.searchToolbar},React.createElement(FormControl,null,React.createElement(Input,{id:"input-with-icon-adornment",className:w.input,placeholder:"Search",autoComplete:"off",onChange:Ge=>ue(Ge.target.value),value:X,startAdornment:React.createElement(InputAdornment,{position:"start"},React.createElement(Search,null)),endAdornment:React.createElement(InputAdornment,{position:"end"},React.createElement(IconButton,{"aria-label":"clear search",onClick:()=>ue(""),edge:"end",disabled:X.length===0},React.createElement(Clear,null)))})))};function Cn({defaultKind:w}){function N($){var X;return((X=$.metadata)==null?void 0:X.title)||ot($,{defaultKind:w})}return{title:"Name",highlight:!0,customFilterAndSearch($,X){return N(X).includes($)},customSort($,X){return N($).localeCompare(N(X))},render:$=>{var X;return i.createElement(ae,{entityRef:$,defaultKind:w,title:(X=$.metadata)==null?void 0:X.title})}}}function yn({title:w,relation:N,defaultKind:$,filter:X}){function ue(fe){return rt(fe,N,X)}function ie(fe){return ue(fe).map(Ge=>ot(Ge,{defaultKind:$})).join(", ")}return{title:w,customFilterAndSearch(fe,Ge){return ie(Ge).includes(fe)},customSort(fe,Ge){return ie(fe).localeCompare(ie(Ge))},render:fe=>i.createElement(te,{entityRefs:ue(fe),defaultKind:$})}}function yt(){return yn({title:"Owner",relation:p.S4,defaultKind:"group"})}function Gt(){return yn({title:"Domain",relation:p.cz,defaultKind:"domain",filter:{kind:"domain"}})}function fn(){return yn({title:"System",relation:p.cz,defaultKind:"system",filter:{kind:"system"}})}function On(){return{title:"Description",field:"metadata.description",render:w=>i.createElement(it.OverflowTooltip,{text:w.metadata.description,placement:"bottom-start",line:2}),width:"auto"}}function Ht(){return{title:"Lifecycle",field:"spec.lifecycle"}}function wn(){return{title:"Type",field:"spec.type"}}const or=[Cn({defaultKind:"system"}),Gt(),yt(),On()],sr=[Cn({defaultKind:"component"}),fn(),yt(),wn(),Ht(),On()],vr=(0,D.Z)(w=>({empty:{padding:w.spacing(2),display:"flex",justifyContent:"center"}}));function Wn({entities:w,title:N,emptyContent:$,variant:X="gridItem",columns:ue}){const ie=vr(),fe={minWidth:"0",width:"100%"};return X==="gridItem"&&(fe.height="calc(100% - 10px)"),i.createElement(it.Table,{columns:ue,title:N,style:fe,emptyContent:$&&i.createElement("div",{className:ie.empty},$),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense"},data:w})}Wn.columns=r,Wn.systemEntityColumns=or,Wn.componentEntityColumns=sr;const Fn=(0,D.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),Qn=i.createElement($e.Z,{fontSize:"small"}),ir=i.createElement(De.Z,{fontSize:"small"}),Rr=()=>{var Ke,lt;const w=Fn(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=ht(),ie=[ue.tags].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(ie.length?ie:(lt=(Ke=X.tags)==null?void 0:Ke.values)!=null?lt:[]);(0,i.useEffect)(()=>{N({tags:fe.length?new F(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.flatMap(Ye=>Ye.metadata.tags).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(ee.Z,{variant:"button"},"Tags"),i.createElement(re.ZP,{multiple:!0,"aria-label":"Tags",options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:Qn,checkedIcon:ir,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"tag-picker-expand"}),renderInput:Ye=>i.createElement(Ce.Z,{...Ye,className:w.input,variant:"outlined"})})):null};var zn=e(82108),qr=e.n(zn);const Sr=w=>{var Ke;const{hidden:N,initialFilter:$}=w,X=(0,c.useApi)(c.alertApiRef),{error:ue,availableTypes:ie,selectedTypes:fe,setSelectedTypes:Ge}=ye();if((0,i.useEffect)(()=>{ue&&X.post({message:"Failed to load entity types",severity:"error"}),$&&Ge([$])},[ue,X,$,Ge]),ie.length===0||ue)return null;const We=[{value:"all",label:"All"},...ie.map(lt=>({value:lt,label:qr()(lt)}))];return N?null:i.createElement(z.Z,{pb:1,pt:1},i.createElement(it.Select,{label:"Type",items:We,selected:(Ke=We.length>1?fe[0]:void 0)!=null?Ke:"all",onChange:lt=>Ge(lt==="all"?[]:[String(lt)])}))};var lr=e(15459),Cr=e(61837),Xn=e(11640),Tr=e(28347);const kn=(0,lr.Z)({root:{color:"#f3ba37"}})(Xn.Z),qn=w=>w?"Remove from favorites":"Add to favorites",Bn=w=>w?i.createElement(kn,null):i.createElement(Tr.Z,null),cr=w=>{const{toggleStarredEntity:N,isStarredEntity:$}=se(w.entity);return i.createElement(Cr.Z,{color:"inherit",...w,onClick:()=>N()},i.createElement(Ct.ZP,{title:qn($)},Bn($)))};var xn=e(77277),mn=e(55999),an=e(85256),Pr=e(8629),Ir=e(79249),Lr=e(38724),Or=e(49429),ur=e(99688);function xr(w){var At;const N=(0,c.useApi)(f),$=(At=w.metadata.annotations)==null?void 0:At[p.lb],X=w.metadata.uid,ue=$==="bootstrap:bootstrap",ie=(0,It.default)(async()=>{const bt=N.getOriginLocationByEntity(w);let Zt;if(!$)Zt=Promise.resolve([]);else{const $t=`metadata.annotations.${p.lb}`;Zt=N.getEntities({filter:{[$t]:$},fields:["kind","metadata.uid","metadata.name","metadata.namespace"]}).then(Vt=>Vt.items)}return Promise.all([bt,Zt]).then(([$t,Vt])=>({location:$t,colocatedEntities:Vt}))},[N,w]),fe=(0,i.useCallback)(async function(){const{location:Zt,colocatedEntities:$t}=ie.value;await N.removeLocationById(Zt.id),await Promise.allSettled($t.map(Vt=>N.removeEntityByUid(Vt.metadata.uid)))},[N,ie]),Ge=(0,i.useCallback)(async function(){await N.removeEntityByUid(X)},[N,X]);if(ue)return{type:"bootstrap",location:$,deleteEntity:Ge};const{loading:We,error:Ke,value:lt}=ie;if(We)return{type:"loading"};if(Ke)return{type:"error",error:Ke};const{location:Ye,colocatedEntities:He}=lt;return Ye?{type:"unregister",location:$,colocatedEntities:He.map(p.C_),unregisterLocation:fe,deleteEntity:Ge}:{type:"only-delete",deleteEntity:Ge}}var Dr=e(10179);const br=(0,D.Z)({advancedButton:{fontSize:"0.7em"}}),Fr=({entity:w,onConfirm:N})=>{var At;const $=(0,c.useApi)(c.alertApiRef),X=(0,c.useApi)(c.configApiRef),ue=br(),ie=xr(w),[fe,Ge]=(0,i.useState)(!1),[We,Ke]=(0,i.useState)(!1),lt=(At=X.getOptionalString("app.title"))!=null?At:"Backstage",Ye=(0,i.useCallback)(async function(){if("unregisterLocation"in ie){Ke(!0);try{await ie.unregisterLocation(),N()}catch(Zt){(0,Dr.BD)(Zt),$.post({message:Zt.message})}finally{Ke(!1)}}},[$,N,ie]),He=(0,i.useCallback)(async function(){if("deleteEntity"in ie){Ke(!0);try{await ie.deleteEntity(),N()}catch(Zt){(0,Dr.BD)(Zt),$.post({message:Zt.message})}finally{Ke(!1)}}},[$,N,ie]);return ie.type==="loading"?i.createElement(it.Progress,null):ie.type==="error"?i.createElement(it.ResponseErrorPanel,{error:ie.error}):ie.type==="bootstrap"?i.createElement(i.Fragment,null,i.createElement(ur.Z,{severity:"info"},'You cannot unregister this entity, since it originates from a protected Backstage configuration (location "',ie.location,'"). If you believe this is in error, please contact the ',lt," ","integrator."),i.createElement(z.Z,{marginTop:2},!fe&&i.createElement(xn.Z,{variant:"text",size:"small",color:"primary",className:ue.advancedButton,onClick:()=>Ge(!0)},"Advanced Options"),fe&&i.createElement(i.Fragment,null,i.createElement(mn.Z,null,"You have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity")))):ie.type==="only-delete"?i.createElement(i.Fragment,null,i.createElement(mn.Z,null,"This entity does not seem to originate from a registered location. You therefore only have the option to delete it outright from the catalog."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity")):ie.type==="unregister"?i.createElement(i.Fragment,null,i.createElement(mn.Z,null,"This action will unregister the following entities:"),i.createElement(mn.Z,{component:"ul"},ie.colocatedEntities.map(bt=>i.createElement("li",{key:`${bt.kind}:${bt.namespace}/${bt.name}`},i.createElement(ae,{entityRef:bt})))),i.createElement(mn.Z,null,"Located at the following location:"),i.createElement(mn.Z,{component:"ul"},i.createElement("li",null,ie.location)),i.createElement(mn.Z,null,"To undo, just re-register the entity in ",lt,"."),i.createElement(z.Z,{marginTop:2},i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:Ye},"Unregister Location"),!fe&&i.createElement(z.Z,{component:"span",marginLeft:2},i.createElement(xn.Z,{variant:"text",size:"small",color:"primary",className:ue.advancedButton,onClick:()=>Ge(!0)},"Advanced Options"))),fe&&i.createElement(i.Fragment,null,i.createElement(z.Z,{paddingTop:4,paddingBottom:4},i.createElement(an.Z,null)),i.createElement(mn.Z,null,"You also have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity"))):i.createElement(ur.Z,{severity:"error"},"Internal error: Unknown state")},_r=({open:w,onConfirm:N,onClose:$,entity:X})=>i.createElement(Pr.Z,{open:w,onClose:$},i.createElement(Ir.Z,{id:"responsive-dialog-title"},"Are you sure you want to unregister this entity?"),i.createElement(Lr.Z,null,i.createElement(Fr,{entity:X,onConfirm:N})),i.createElement(Or.Z,null,i.createElement(xn.Z,{onClick:$,color:"primary"},"Cancel")));var Br=e(94339),Mr=e(11776),ea=e(12231),Mn=e(86136),dr=e(49378),fr=e(9520),mr=e(47603);const Nr=(0,D.Z)(w=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:w.spacing(1,0,1,0)},title:{margin:w.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:w.palette.text.primary},menuItem:{minHeight:w.spacing(6)},groupWrapper:{margin:w.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function hr(w){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:mr.Z},{id:"starred",label:"Starred",icon:Xn.Z}]},{name:w!=null?w:"Company",items:[{id:"all",label:"All"}]}]}const gr=({initialFilter:w,availableFilters:N})=>{var wt,Tn;const $=Nr(),ue=(wt=(0,c.useApi)(c.configApiRef).getOptionalString("organization.name"))!=null?wt:"Company",{filters:ie,updateFilters:fe,backendEntities:Ge,queryParameters:We,loading:Ke}=ht(),lt=["starred","all"],Ye=hr(ue).map(Kt=>({...Kt,items:Kt.items.filter(({id:Qt})=>["group","user"].some(Dn=>Dn===We.kind)?lt.includes(Qt):!N||N.includes(Qt))})).filter(({items:Kt})=>!!Kt.length),{isStarredEntity:He}=ut(),{isOwnedEntity:At}=Ue(),bt=(0,i.useMemo)(()=>new ve("owned",At,He),[At,He]),Zt=(0,i.useMemo)(()=>new ve("starred",At,He),[At,He]),[$t,Vt]=(0,i.useState)((Tn=[We.user].flat()[0])!=null?Tn:w),qt=(0,i.useMemo)(()=>Ge.filter(zt((0,h.compact)(Object.values({...ie,user:void 0})))),[ie,Ge]),on=(0,i.useMemo)(()=>({all:qt.length,starred:qt.filter(Kt=>Zt.filterEntity(Kt)).length,owned:qt.filter(Kt=>bt.filterEntity(Kt)).length}),[qt,Zt,bt]);return(0,i.useEffect)(()=>{!Ke&&!!$t&&$t!=="all"&&on[$t]===0&&Vt("all")},[Ke,on,$t,Vt]),(0,i.useEffect)(()=>{fe({user:$t?new ve($t,At,He):void 0})},[$t,At,He,fe]),i.createElement(Br.Z,{className:$.root},Ye.map(Kt=>i.createElement(i.Fragment,{key:Kt.name},i.createElement(ee.Z,{variant:"subtitle2",className:$.title},Kt.name),i.createElement(Br.Z,{className:$.groupWrapper},i.createElement(Mr.Z,{disablePadding:!0,dense:!0},Kt.items.map(Qt=>{var Dn,_n;return i.createElement(ea.Z,{key:Qt.id,button:!0,divider:!0,onClick:()=>Vt(Qt.id),selected:Qt.id===((Dn=ie.user)==null?void 0:Dn.value),className:$.menuItem,disabled:on[Qt.id]===0,"data-testid":`user-picker-${Qt.id}`},Qt.icon&&i.createElement(Mn.Z,{className:$.listIcon},i.createElement(Qt.icon,{fontSize:"small"})),i.createElement(dr.Z,null,i.createElement(ee.Z,{variant:"body1"},Qt.label)),i.createElement(fr.Z,null,(_n=on[Qt.id])!=null?_n:"-"))}))))))},Ur=({children:w,value:N})=>{var We;const[$,X]=useState((We=N==null?void 0:N.filters)!=null?We:{}),ue=useCallback(Ke=>{X(lt=>{const Ye=typeof Ke=="function"?Ke(lt):Ke;return{...lt,...Ye}})},[]),ie={entities:[],backendEntities:[],updateFilters:ue,filters:$,loading:!1,queryParameters:{}},{filters:fe,...Ge}=N!=null?N:{};return React.createElement(EntityListContext.Provider,{value:{...ie,...Ge}},w)};var Hn=e(92787)},92787:function(){},39398:function(J,o,e){"use strict";e.r(o),e.d(o,{AboutCard:function(){return Ie},AboutContent:function(){return oe},AboutField:function(){return H}});var r=e(52890),t=e(9118),c=e(36964),f=e(36356),E=e(19139),s=e(79692),p=e(94339),h=e(32552),m=e(61837),l=e(85256),y=e(24579),i=e(52866),S=e(30254),b=e(27604),I=e(2784),V=e(47851),B=e(60905),P=e(90436),O=e(7089);const x=(0,s.Z)(me=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:me.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}})),H=({label:me,value:ze,gridSizes:Pe,children:Qe})=>{const st=x(),_e=(0,c.useElementFilter)(Qe,nt=>nt.getElements()),gt=_e.length>0?_e:I.createElement(P.Z,{variant:"body2",className:st.value},ze||"unknown");return I.createElement(B.Z,{item:!0,...Pe},I.createElement(P.Z,{variant:"subtitle2",className:st.label},me),gt)},q=(0,s.Z)({description:{wordBreak:"break-word"}}),oe=({entity:me})=>{var rt,Tt,Pt,xt,Nt,ht;const ze=q(),Pe=me.kind.toLocaleLowerCase("en-US")==="system",Qe=me.kind.toLocaleLowerCase("en-US")==="resource",st=me.kind.toLocaleLowerCase("en-US")==="component",_e=me.kind.toLocaleLowerCase("en-US")==="api",gt=me.kind.toLocaleLowerCase("en-US")==="template",nt=me.kind.toLocaleLowerCase("en-US")==="location",at=me.kind.toLocaleLowerCase("en-US")==="group",Rt=(0,E.getEntityRelations)(me,r.cz,{kind:"system"}),zt=(0,E.getEntityRelations)(me,r.cz,{kind:"component"}),Ot=(0,E.getEntityRelations)(me,r.cz,{kind:"domain"}),pt=(0,E.getEntityRelations)(me,r.S4);return I.createElement(B.Z,{container:!0},I.createElement(H,{label:"Description",gridSizes:{xs:12}},I.createElement(P.Z,{variant:"body2",paragraph:!0,className:ze.description},((rt=me==null?void 0:me.metadata)==null?void 0:rt.description)||"No description")),I.createElement(H,{label:"Owner",value:"No Owner",gridSizes:{xs:12,sm:6,lg:4}},pt.length>0&&I.createElement(E.EntityRefLinks,{entityRefs:pt,defaultKind:"group"})),(Pe||Ot.length>0)&&I.createElement(H,{label:"Domain",value:"No Domain",gridSizes:{xs:12,sm:6,lg:4}},Ot.length>0&&I.createElement(E.EntityRefLinks,{entityRefs:Ot,defaultKind:"domain"})),(_e||st||Qe||Rt.length>0)&&I.createElement(H,{label:"System",value:"No System",gridSizes:{xs:12,sm:6,lg:4}},Rt.length>0&&I.createElement(E.EntityRefLinks,{entityRefs:Rt,defaultKind:"system"})),st&&zt.length>0&&I.createElement(H,{label:"Parent Component",value:"No Parent Component",gridSizes:{xs:12,sm:6,lg:4}},I.createElement(E.EntityRefLinks,{entityRefs:zt,defaultKind:"component"})),(_e||st||Qe||gt||at||nt||typeof((Tt=me==null?void 0:me.spec)==null?void 0:Tt.type)=="string")&&I.createElement(H,{label:"Type",value:(Pt=me==null?void 0:me.spec)==null?void 0:Pt.type,gridSizes:{xs:12,sm:6,lg:4}}),(_e||st||typeof((xt=me==null?void 0:me.spec)==null?void 0:xt.lifecycle)=="string")&&I.createElement(H,{label:"Lifecycle",value:(Nt=me==null?void 0:me.spec)==null?void 0:Nt.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),I.createElement(H,{label:"Tags",value:"No Tags",gridSizes:{xs:12,sm:6,lg:4}},(((ht=me==null?void 0:me.metadata)==null?void 0:ht.tags)||[]).map(It=>I.createElement(O.Z,{key:It,size:"small",label:It}))))},pe=(0,s.Z)({gridItemCard:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"},fullHeightCard:{display:"flex",flexDirection:"column",height:"100%"},gridItemCardContent:{flex:1},fullHeightCardContent:{flex:1}});function Ie({variant:me}){var xt,Nt;const ze=pe(),{entity:Pe}=(0,E.useEntity)(),Qe=(0,c.useApi)(f.q3),st=(0,c.useApi)(E.Ah),_e=(0,c.useApi)(c.alertApiRef),gt=(0,c.useRouteRef)(V.j),nt=(0,E.getEntitySourceLocation)(Pe,Qe),at=(0,E.getEntityMetadataEditUrl)(Pe),Rt={label:"View Source",disabled:!nt,icon:I.createElement(f.nW,{type:nt==null?void 0:nt.integrationType}),href:nt==null?void 0:nt.locationTargetUrl},zt={label:"View TechDocs",disabled:!((xt=Pe.metadata.annotations)==null?void 0:xt["backstage.io/techdocs-ref"])||!gt,icon:I.createElement(S.Z,null),href:gt&&gt({namespace:Pe.metadata.namespace||r.sk,kind:Pe.kind,name:Pe.metadata.name})};let Ot="";me==="gridItem"?Ot=ze.gridItemCard:me==="fullHeight"&&(Ot=ze.fullHeightCard);let pt="";me==="gridItem"?pt=ze.gridItemCardContent:me==="fullHeight"&&(pt=ze.fullHeightCardContent);const rt=(Nt=Pe.metadata.annotations)==null?void 0:Nt[r.Jl],Tt=(rt==null?void 0:rt.startsWith("url:"))||(rt==null?void 0:rt.startsWith("file:")),Pt=(0,I.useCallback)(async()=>{await st.refreshEntity((0,r.eE)(Pe)),_e.post({message:"Refresh scheduled",severity:"info"})},[st,_e,Pe]);return I.createElement(p.Z,{className:Ot},I.createElement(h.Z,{title:"About",action:I.createElement(I.Fragment,null,Tt&&I.createElement(m.Z,{"aria-label":"Refresh",title:"Schedule entity refresh",onClick:Pt},I.createElement(i.Z,null)),I.createElement(m.Z,{component:t.Link,"aria-label":"Edit",disabled:!at,title:"Edit Metadata",to:at!=null?at:"#"},I.createElement(b.Z,null))),subheader:I.createElement(t.HeaderIconLinkRow,{links:[Rt,zt]})}),I.createElement(l.Z,null),I.createElement(y.Z,{className:pt},I.createElement(oe,{entity:Pe})))}},49782:function(J,o,e){"use strict";e.d(o,{K:function(){return l}});var r=e(2784),t=e(79692),c=e(12420),f=e(97580),E=e(73698),s=e(74603),p=e(12231),h=e(19139);const m=(0,t.Z)(y=>(0,c.Z)({root:{...y.typography.h4}})),l=({initialFilter:y="component"})=>{var O;const i=m(),{kinds:S=[]}=(0,h.useEntityKinds)(),{updateFilters:b,queryParameters:I}=(0,h.useEntityListProvider)(),[V,B]=(0,r.useState)(((O=[I.kind].flat()[0])!=null?O:y).toLocaleLowerCase("en-US"));(0,r.useEffect)(()=>{b({kind:V?new h.EntityKindFilter(V):void 0})},[V,b]);const P=[(0,f.Z)(V)].concat(S).sort().reduce((x,H)=>(x[H.toLocaleLowerCase("en-US")]=H,x),{});return r.createElement(E.Z,{input:r.createElement(s.Z,{value:V}),value:V,onChange:x=>B(x.target.value),classes:i},Object.keys(P).map(x=>r.createElement(p.Z,{value:x,key:x},`${P[x]}s`)))}},7758:function(J,o,e){"use strict";e.r(o),e.d(o,{CatalogPage:function(){return y},DefaultCatalogPage:function(){return l}});var r=e(2784),t=e(10289),c=e(9118),f=e(36964),E=e(19139),s=e(47851),p=e(91730),h=e(26997),m=e(49782);const l=({columns:i,actions:S,initiallySelectedFilter:b="owned"})=>{var B;const I=(B=(0,f.useApi)(f.configApiRef).getOptionalString("organization.name"))!=null?B:"Backstage",V=(0,f.useRouteRef)(s.y);return r.createElement(c.PageWithHeader,{title:`${I} Catalog`,themeId:"home"},r.createElement(E.EntityListProvider,null,r.createElement(c.Content,null,r.createElement(c.ContentHeader,{titleComponent:r.createElement(m.K,null)},r.createElement(c.CreateButton,{title:"Create Component",to:V&&V()}),r.createElement(c.SupportButton,null,"All your software catalog entities")),r.createElement(h.q7,null,r.createElement(h.Gh,null,r.createElement(E.EntityTypePicker,null),r.createElement(E.UserListPicker,{initialFilter:b}),r.createElement(E.EntityOwnerPicker,null),r.createElement(E.EntityLifecyclePicker,null),r.createElement(E.EntityTagPicker,null)),r.createElement(h.Nz,null,r.createElement(p.E,{columns:i,actions:S}))))))},y=i=>(0,t.pC)()||r.createElement(l,{...i})},17499:function(J,o,e){"use strict";e.r(o),e.d(o,{createNameColumn:function(){return E},createSystemColumn:function(){return s},createOwnerColumn:function(){return p},createSpecTypeColumn:function(){return h},createSpecLifecycleColumn:function(){return m},createMetadataDescriptionColumn:function(){return l},createTagsColumn:function(){return y}});var r=e(2784),t=e(19139),c=e(7089),f=e(9118);function E(i){function S(b){var I;return((I=b.metadata)==null?void 0:I.title)||(0,t.formatEntityRefTitle)(b,{defaultKind:i==null?void 0:i.defaultKind})}return{title:"Name",field:"resolved.name",highlight:!0,customSort({entity:b},{entity:I}){return S(b).localeCompare(S(I))},render:({entity:b})=>{var I;return r.createElement(t.EntityRefLink,{entityRef:b,defaultKind:(i==null?void 0:i.defaultKind)||"Component",title:(I=b.metadata)==null?void 0:I.title})}}}function s(){return{title:"System",field:"resolved.partOfSystemRelationTitle",render:({resolved:i})=>r.createElement(t.EntityRefLinks,{entityRefs:i.partOfSystemRelations,defaultKind:"system"})}}function p(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:i})=>r.createElement(t.EntityRefLinks,{entityRefs:i.ownedByRelations,defaultKind:"group"})}}function h(){return{title:"Type",field:"entity.spec.type",hidden:!0}}function m(){return{title:"Lifecycle",field:"entity.spec.lifecycle"}}function l(){return{title:"Description",field:"entity.metadata.description",render:({entity:i})=>r.createElement(f.OverflowTooltip,{text:i.metadata.description,placement:"bottom-start"}),width:"auto"}}function y(){return{title:"Tags",field:"entity.metadata.tags",cellStyle:{padding:"0px 16px 0px 20px"},render:({entity:i})=>r.createElement(r.Fragment,null,i.metadata.tags&&i.metadata.tags.map(S=>r.createElement(c.Z,{key:S,label:S,size:"small",variant:"outlined",style:{marginBottom:"0px"}})))}}},91730:function(J,o,e){"use strict";e.d(o,{E:function(){return m}});var r=e(52890),t=e(19139),c=e(27604),f=e(2997),E=e(76635),s=e(2784),p=e(17499),h=e(9118);const m=({columns:l,actions:y})=>{var Ie,me,ze;const{isStarredEntity:i,toggleStarredEntity:S}=(0,t.useStarredEntities)(),{loading:b,error:I,entities:V,filters:B}=(0,t.useEntityListProvider)(),P=(0,s.useMemo)(()=>{var Pe;return[p.createNameColumn({defaultKind:(Pe=B.kind)==null?void 0:Pe.value}),p.createSystemColumn(),p.createOwnerColumn(),p.createSpecTypeColumn(),p.createSpecLifecycleColumn(),p.createMetadataDescriptionColumn(),p.createTagsColumn()]},[(Ie=B.kind)==null?void 0:Ie.value]),O=B.type===void 0,x=(0,E.capitalize)((ze=(me=B.user)==null?void 0:me.value)!=null?ze:"all");if(I)return s.createElement("div",null,s.createElement(h.WarningPanel,{severity:"error",title:"Could not fetch catalog entities."},s.createElement(h.CodeSnippet,{language:"text",text:I.toString()})));const H=[({entity:Pe})=>{const Qe=(0,t.getEntityMetadataViewUrl)(Pe);return{icon:()=>s.createElement(f.Z,{"aria-label":"View",fontSize:"small"}),tooltip:"View",disabled:!Qe,onClick:()=>{!Qe||window.open(Qe,"_blank")}}},({entity:Pe})=>{const Qe=(0,t.getEntityMetadataEditUrl)(Pe);return{icon:()=>s.createElement(c.Z,{"aria-label":"Edit",fontSize:"small"}),tooltip:"Edit",disabled:!Qe,onClick:()=>{!Qe||window.open(Qe,"_blank")}}},({entity:Pe})=>{const Qe=i(Pe);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,t.favoriteEntityIcon)(Qe),tooltip:(0,t.favoriteEntityTooltip)(Qe),onClick:()=>S(Pe)}}],q=V.map(Pe=>{const Qe=(0,t.getEntityRelations)(Pe,r.cz,{kind:"system"}),st=(0,t.getEntityRelations)(Pe,r.S4);return{entity:Pe,resolved:{name:(0,t.formatEntityRefTitle)(Pe,{defaultKind:"Component"}),ownedByRelationsTitle:st.map(_e=>(0,t.formatEntityRefTitle)(_e,{defaultKind:"group"})).join(", "),ownedByRelations:st,partOfSystemRelationTitle:Qe.map(_e=>(0,t.formatEntityRefTitle)(_e,{defaultKind:"system"})).join(", "),partOfSystemRelations:Qe}}}),oe=(l||P).find(Pe=>Pe.title==="Type");oe&&(oe.hidden=!O);const pe=q.length>20;return s.createElement(h.Table,{isLoading:b,columns:l||P,options:{paging:pe,pageSize:20,actionsColumnIndex:-1,loadingType:"linear",showEmptyDataSourceMessage:!b,padding:"dense",pageSizeOptions:[20,50,100]},title:`${x} (${V.length})`,data:q,actions:y||H})};m.columns=p},26997:function(J,o,e){"use strict";e.d(o,{Nz:function(){return i},Gh:function(){return y},q7:function(){return c}});var r=e(60905),t=e(2784);const c=({children:S})=>t.createElement(r.Z,{container:!0,style:{position:"relative"}},S);var f=e(41156),E=e(60364),s=e(77277),p=e(4190),h=e(95544),m=e(90436),l=e(36444);const y=({children:S})=>{const b=(0,f.Z)(P=>P.breakpoints.down("md")),I=(0,E.Z)(),[V,B]=(0,t.useState)(!1);return b?t.createElement(t.Fragment,null,t.createElement(s.Z,{style:{marginTop:I.spacing(1),marginLeft:I.spacing(1)},onClick:()=>B(!0),startIcon:t.createElement(l.Z,null)},"Filters"),t.createElement(p.ZP,{open:V,onClose:()=>B(!1),anchor:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary"},t.createElement(h.Z,{m:2},t.createElement(m.Z,{variant:"h6",component:"h2",style:{marginBottom:I.spacing(1)}},"Filters"),S))):t.createElement(r.Z,{item:!0,lg:2},S)},i=({children:S})=>t.createElement(r.Z,{item:!0,xs:12,lg:10},S)},47851:function(J,o,e){"use strict";e.d(o,{y:function(){return t},j:function(){return c}});var r=e(36964);const t=(0,r.createExternalRouteRef)({id:"create-component",optional:!0}),c=(0,r.createExternalRouteRef)({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]})},20221:function(J,o,e){"use strict";e.d(o,{iM:function(){return S},RV:function(){return c},gI:function(){return I}});var r=e(2784),t=e(36964);const c=(0,t.createApiRef)({id:"plugin.permission.api"});var f;(function(B){const P="DENY";B.DENY=P;const O="ALLOW";B.ALLOW=O;const x="CONDITIONAL";B.CONDITIONAL=x})(f||(f={}));var E=e(10179),s=e(96279),p=e.n(s),h=e(9571),m=e(30195);const l=m.z.lazy(()=>m.z.object({rule:m.z.string(),params:m.z.array(m.z.unknown())}).or(m.z.object({anyOf:m.z.array(l)})).or(m.z.object({allOf:m.z.array(l)})).or(m.z.object({not:l}))),y=m.z.object({items:m.z.array(m.z.object({id:m.z.string(),result:m.z.literal(f.ALLOW).or(m.z.literal(f.DENY))}).or(m.z.object({id:m.z.string(),result:m.z.literal(f.CONDITIONAL),conditions:l})))});class i{constructor(P){_(this,"enabled");_(this,"discovery");var O;this.discovery=P.discovery,this.enabled=(O=P.config.getOptionalBoolean("permission.enabled"))!=null?O:!1}async authorize(P,O){if(!this.enabled)return P.map(Ie=>({result:f.ALLOW}));const x={items:P.map(Ie=>({id:h.Z(),...Ie}))},H=await this.discovery.getBaseUrl("permission"),q=await p()(`${H}/authorize`,{method:"POST",body:JSON.stringify(x),headers:{...this.getAuthorizationHeader(O==null?void 0:O.token),"content-type":"application/json"}});if(!q.ok)throw await E.VL.fromResponse(q);const oe=await q.json();this.assertValidResponse(x,oe);const pe=oe.items.reduce((Ie,me)=>(Ie[me.id]=me,Ie),{});return x.items.map(Ie=>pe[Ie.id])}getAuthorizationHeader(P){return P?{Authorization:`Bearer ${P}`}:{}}assertValidResponse(P,O){const H=y.parse(O).items.map(oe=>oe.id);if(!P.items.every(oe=>H.includes(oe.id)))throw new Error("Unexpected authorization response from permission-backend")}}class S{constructor(P,O){this.permissionClient=P,this.identityApi=O}static create(P){const{config:O,discovery:x,identity:H}=P,q=new i({discovery:x,config:O});return new S(q,H)}async authorize(P){return(await this.permissionClient.authorize([P],await this.identityApi.getCredentials()))[0]}}var b=e(85482);const I=(B,P)=>{const O=(0,t.useApi)(c),{data:x,error:H}=(0,b.ZP)({permission:B,resourceRef:P},async q=>{const{result:oe}=await O.authorize(q);return oe});return H?{error:H,loading:!1,allowed:!1}:x===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:x===f.ALLOW}},V=B=>{const{permission:P,resourceRef:O,errorComponent:x,...H}=B,q=usePermission(P,O),oe=useApp(),{NotFoundErrorPage:pe}=oe.getComponents();let Ie=x===void 0?React.createElement(pe,null):x;return q.loading?Ie=null:q.allowed&&(Ie=B.element),React.createElement(Route,{...H,element:Ie})}},91512:function(J,o,e){"use strict";e.d(o,{g:function(){return E},w:function(){return s}});var r=e(36964),t=e(10179),c=e(19126),f=e.n(c);const E=(0,r.createApiRef)({id:"plugin.search.queryservice"});class s{constructor(h){_(this,"discoveryApi");_(this,"identityApi");this.discoveryApi=h.discoveryApi,this.identityApi=h.identityApi}async query(h){const{token:m}=await this.identityApi.getCredentials(),l=f().stringify(h),y=`${await this.discoveryApi.getBaseUrl("search/query")}?${l}`,i=await fetch(y,{headers:m?{Authorization:`Bearer ${m}`}:{}});if(!i.ok)throw await t.VL.fromResponse(i);return i.json()}}},19941:function(J,o,e){"use strict";e.r(o),e.d(o,{DefaultResultListItem:function(){return h}});var r=e(2784),t=e(38402),c=e(86136),f=e(49378),E=e(95544),s=e(85256),p=e(9118);const h=({result:m,icon:l,secondaryAction:y})=>r.createElement(p.Link,{to:m.location},r.createElement(t.Z,{alignItems:"center"},l&&r.createElement(c.Z,null,l),r.createElement(f.Z,{primaryTypographyProps:{variant:"h6"},primary:m.title,secondary:m.text}),y&&r.createElement(E.Z,{alignItems:"flex-end"},y)),r.createElement(s.Z,null))},1795:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchBar:function(){return S},SearchBarBase:function(){return i}});var r=e(2784),t=e(48760),c=e(36964),f=e(50581),E=e(61837),s=e(74603),p=e(21853),h=e(33375),m=e(22313);const l=({children:b})=>{const I=(0,c.useAnalytics)(),{term:V}=(0,m.Rx)();return(0,r.useEffect)(()=>{V&&I.captureEvent("search",V)},[I,V]),r.createElement(r.Fragment,null,b)},y=()=>(0,r.useContext)(m.ci)!==void 0,i=({onChange:b,onKeyDown:I,onSubmit:V,debounceTime:B=200,clearButton:P=!0,fullWidth:O=!0,value:x,inputProps:H={},endAdornment:q,...oe})=>{const pe=(0,c.useApi)(c.configApiRef),[Ie,me]=(0,r.useState)(x),ze=y();(0,r.useEffect)(()=>{me(Rt=>Rt!==x?x:Rt)},[x]),(0,t.Z)(()=>b(Ie),B,[Ie]);const Pe=(0,r.useCallback)(Rt=>{me(Rt.target.value)},[me]),Qe=(0,r.useCallback)(Rt=>{I&&I(Rt),V&&Rt.key==="Enter"&&V()},[I,V]),st=(0,r.useCallback)(()=>{b("")},[b]),_e=`Search in ${pe.getOptionalString("app.title")||"Backstage"}`,gt=r.createElement(f.Z,{position:"start"},r.createElement(E.Z,{"aria-label":"Query",disabled:!0},r.createElement(p.Z,null))),nt=r.createElement(f.Z,{position:"end"},r.createElement(E.Z,{"aria-label":"Clear",onClick:st},r.createElement(h.Z,null))),at=r.createElement(l,null,r.createElement(s.Z,{"data-testid":"search-bar-next",value:Ie,placeholder:_e,startAdornment:gt,endAdornment:P?nt:q,inputProps:{"aria-label":"Search",...H},fullWidth:O,onChange:Pe,onKeyDown:Qe,...oe}));return ze?at:r.createElement(m.Nd,null,at)},S=({onChange:b,...I})=>{const{term:V,setTerm:B}=(0,m.Rx)(),P=O=>{b?b(O):B(O)};return r.createElement(i,{value:V,onChange:P,...I})}},22313:function(J,o,e){"use strict";e.d(o,{ci:function(){return s},Nd:function(){return p},Rx:function(){return h}});var r=e(36964),t=e(2784),c=e(64279),f=e(1849),E=e(91512);const s=(0,t.createContext)(void 0),p=({initialState:m={term:"",pageCursor:void 0,filters:{},types:[]},children:l})=>{var st,_e,gt,nt;const y=(0,r.useApi)(E.g),[i,S]=(0,t.useState)(m.pageCursor),[b,I]=(0,t.useState)(m.filters),[V,B]=(0,t.useState)(m.term),[P,O]=(0,t.useState)(m.types),[x,H]=(0,t.useState)(!1),q=(0,t.useCallback)(()=>H(at=>!at),[]),oe=(0,f.Z)(V),pe=(0,c.default)(()=>y.query({term:V,filters:b,pageCursor:i,types:P}),[V,b,P,i]),Ie=!pe.loading&&!pe.error&&((st=pe.value)==null?void 0:st.nextPageCursor),me=!pe.loading&&!pe.error&&((_e=pe.value)==null?void 0:_e.previousPageCursor),ze=(0,t.useCallback)(()=>{var at;S((at=pe.value)==null?void 0:at.nextPageCursor)},[(gt=pe.value)==null?void 0:gt.nextPageCursor]),Pe=(0,t.useCallback)(()=>{var at;S((at=pe.value)==null?void 0:at.previousPageCursor)},[(nt=pe.value)==null?void 0:nt.previousPageCursor]);(0,t.useEffect)(()=>{V&&oe&&V!==oe&&S(void 0)},[V,oe,m.pageCursor]);const Qe={result:pe,filters:b,setFilters:I,open:x,toggleModal:q,term:V,setTerm:B,types:P,setTypes:O,pageCursor:i,setPageCursor:S,fetchNextPage:Ie?ze:void 0,fetchPreviousPage:me?Pe:void 0};return t.createElement(r.AnalyticsContext,{attributes:{searchTypes:P.sort().join(",")}},t.createElement(s.Provider,{value:Qe,children:l}))},h=()=>{const m=(0,t.useContext)(s);if(m===void 0)throw new Error("useSearch must be used within a SearchContextProvider");return m}},65678:function(J,o,e){"use strict";e.d(o,{s:function(){return oe}});var r=e(2784),t=e(60364),c=e(8629),f=e(79249),E=e(27556),s=e(38724),p=e(60905),h=e(85256),m=e(11776),l=e(49429),y=e(69001),i=e(79692),S=e(1795),b=e(19941),I=e(39332),V=e(22313),B=e(8542),P=e(36964),O=e(9118),x=e(20863);const H=(0,i.Z)(pe=>({container:{borderRadius:30,display:"flex",height:"2.4em"},input:{flex:1},paperFullWidth:{height:"calc(100% - 128px)"},dialogActionsContainer:{padding:pe.spacing(1,3)},viewResultsLink:{verticalAlign:"0.5em"}})),q=({open:pe=!0,toggleModal:Ie})=>{const me=(0,P.useRouteRef)(x._Z),ze=H(),{term:Pe}=(0,V.Rx)(),{focusContent:Qe}=(0,O.useContent)(),{transitions:st}=(0,t.Z)(),_e=()=>{Ie(),setTimeout(Qe,st.duration.leavingScreen)},gt=()=>{_e()};return r.createElement(c.Z,{classes:{paperFullWidth:ze.paperFullWidth},onClose:Ie,"aria-labelledby":"search-modal-title",open:pe,fullWidth:!0,maxWidth:"lg"},r.createElement(f.Z,null,r.createElement(E.Z,{className:ze.container},r.createElement(S.SearchBar,{className:ze.input}))),r.createElement(s.Z,null,r.createElement(p.Z,{container:!0,direction:"row-reverse",justifyContent:"flex-start",alignItems:"center"},r.createElement(p.Z,{item:!0},r.createElement(O.Link,{onClick:()=>{Ie(),setTimeout(Qe,st.duration.leavingScreen)},to:`${me()}?query=${Pe}`},r.createElement("span",{className:ze.viewResultsLink},"View Full Results"),r.createElement(y.Z,{color:"primary"})))),r.createElement(h.Z,null),r.createElement(I.SearchResult,null,({results:nt})=>r.createElement(m.Z,null,nt.map(({document:at})=>r.createElement("div",{role:"button",tabIndex:0,key:`${at.location}-btn`,onClick:_e,onKeyPress:gt},r.createElement(b.DefaultResultListItem,{key:at.location,result:at})))))),r.createElement(l.Z,{className:ze.dialogActionsContainer},r.createElement(p.Z,{container:!0,direction:"row"},r.createElement(p.Z,{item:!0,xs:12},r.createElement(B.G,null)))))},oe=({open:pe=!0,toggleModal:Ie})=>r.createElement(V.Nd,null,r.createElement(q,{open:pe,toggleModal:Ie}))},3992:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchPage:function(){return Ut}});var r=e(2784),t=e(1849),c=e(19126),f=e.n(c),E=e(10289),s=e(22313),p=e(60905),h=e(48760),m=e(79692),l=e(27556),y=e(74603),i=e(61837),S=e(21853),b=e(33375);const I=(0,m.Z)(()=>({root:{display:"flex",alignItems:"center"},input:{flex:1}})),V=({searchQuery:be,handleSearch:ot,handleClearSearchBar:it})=>{const Ct=I();return r.createElement(l.Z,{component:"form",onSubmit:ae=>ot(ae),className:Ct.root},r.createElement(i.Z,{disabled:!0,type:"submit","aria-label":"search"},r.createElement(S.Z,null)),r.createElement(y.Z,{className:Ct.input,placeholder:"Search in Backstage",value:be,onChange:ae=>ot(ae),inputProps:{"aria-label":"search backstage"}}),r.createElement(i.Z,{"aria-label":"search",onClick:()=>it()},r.createElement(b.Z,null)))};var B=e(85256),P=e(90436),O=e(99688),x=e(64279),H=e(19139),q=e(36444);const oe=(0,m.Z)(be=>({filters:{width:"250px",display:"flex"},icon:{margin:be.spacing(-1,0,0,0)}})),pe=({numberOfSelectedFilters:be,handleToggleFilters:ot})=>{const it=oe();return r.createElement("div",{className:it.filters},r.createElement(i.Z,{className:it.icon,"aria-label":"settings",onClick:ot},r.createElement(q.Z,null)),r.createElement(P.Z,{variant:"h6"},"Filters (",be||0,")"))};var Ie=e(94339),me=e(32552),ze=e(77277),Pe=e(24579),Qe=e(73698),st=e(12231),_e=e(11776),gt=e(38402),nt=e(21324),at=e(49378);const Rt=(0,m.Z)(be=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:be.spacing(0,1,0,1)},dropdown:{width:"100%"}})),zt=({filters:be,filterOptions:ot,resetFilters:it,updateSelected:Ct,updateChecked:ae})=>{const te=Rt();return r.createElement(Ie.Z,{className:te.filters},r.createElement(me.Z,{title:r.createElement(P.Z,{variant:"h6"},"Filters"),action:r.createElement(ze.Z,{color:"primary",onClick:()=>it()},"CLEAR ALL")}),r.createElement(B.Z,null),ot.kind.length===0&&ot.lifecycle.length===0&&r.createElement(Pe.Z,null,r.createElement(P.Z,{variant:"subtitle2"},"Filters cannot be applied to available results")),ot.kind.length>0&&r.createElement(Pe.Z,null,r.createElement(P.Z,{variant:"subtitle2"},"Kind"),r.createElement(Qe.Z,{id:"outlined-select",onChange:T=>{var C;return Ct((C=T==null?void 0:T.target)==null?void 0:C.value)},variant:"outlined",className:te.dropdown,value:be.selected},ot.kind.map(T=>r.createElement(st.Z,{selected:T==="",dense:!0,key:T,value:T},T)))),ot.lifecycle.length>0&&r.createElement(Pe.Z,null,r.createElement(P.Z,{variant:"subtitle2"},"Lifecycle"),r.createElement(_e.Z,{disablePadding:!0,dense:!0},ot.lifecycle.map(T=>r.createElement(gt.Z,{key:T,dense:!0,button:!0,onClick:()=>ae(T)},r.createElement(nt.Z,{edge:"start",disableRipple:!0,className:te.checkbox,color:"primary",checked:be.checked.includes(T),tabIndex:-1,value:T,name:T}),r.createElement(at.Z,{id:T,primary:T}))))))};var Ot=e(52890),pt=e(9118),rt=e(36964);const Tt=(0,m.Z)(be=>({searchQuery:{color:be.palette.text.primary,background:be.palette.background.default,borderRadius:"10%"},tableHeader:{margin:be.spacing(1,0,0,0),display:"flex"},divider:{width:"1px",margin:be.spacing(0,2),padding:be.spacing(2,0)}})),Pt=[{title:"Name",field:"name",highlight:!0,render:be=>r.createElement(pt.Link,{to:be.url||""},be.name)},{title:"Description",field:"description"},{title:"Owner",field:"owner"},{title:"Kind",field:"kind"},{title:"LifeCycle",field:"lifecycle"}],xt=({searchQuery:be,numberOfSelectedFilters:ot,numberOfResults:it,handleToggleFilters:Ct})=>{const ae=Tt();return r.createElement("div",{className:ae.tableHeader},r.createElement(pe,{numberOfSelectedFilters:ot,handleToggleFilters:Ct}),r.createElement(B.Z,{className:ae.divider,orientation:"vertical"}),r.createElement(p.Z,{item:!0,xs:12},be?r.createElement(P.Z,{variant:"h6"},`${it} `,it>1?"results for ":"result for ",r.createElement("span",{className:ae.searchQuery},'"',be,'"')," "):r.createElement(P.Z,{variant:"h6"},`${it} results`)))},Nt=({searchQuery:be})=>{const ot=(0,rt.useApi)(H.Ah),[it,Ct]=(0,r.useState)(!1),[ae,te]=(0,r.useState)({selected:"",checked:[]}),[T,C]=(0,r.useState)([]),{loading:F,error:j,value:Y}=(0,x.default)(async()=>(await ot.getEntities()).items.map(Re=>{var Ee,Fe,St,ut,Ve;return{name:Re.metadata.name,description:Re.metadata.description,owner:typeof((Ee=Re.spec)==null?void 0:Ee.owner)=="string"?(Fe=Re.spec)==null?void 0:Fe.owner:void 0,kind:Re.kind,lifecycle:typeof((St=Re.spec)==null?void 0:St.lifecycle)=="string"?(ut=Re.spec)==null?void 0:ut.lifecycle:void 0,url:`/catalog/${((Ve=Re.metadata.namespace)==null?void 0:Ve.toLocaleLowerCase("en-US"))||Ot.sk}/${Re.kind.toLocaleLowerCase("en-US")}/${Re.metadata.name}`}}),[]);if((0,r.useEffect)(()=>{if(Y){let Le=Y;ae.selected!==""&&(Le=Y.filter(Re=>ae.selected.includes(Re.kind))),ae.checked.length>0&&(Le=Le.filter(Re=>Re.lifecycle&&ae.checked.includes(Re.lifecycle))),be&&(Le=Le.filter(Re=>{var Ee,Fe,St;return((Ee=Re.name)==null?void 0:Ee.toLocaleLowerCase("en-US").includes(be))||((Fe=Re.name)==null?void 0:Fe.toLocaleLowerCase("en-US").includes(be.split(" ").join("-")))||((St=Re.description)==null?void 0:St.toLocaleLowerCase("en-US").includes(be))})),C(Le)}},[ae,be,Y]),F)return r.createElement(pt.Progress,null);if(j)return r.createElement(O.Z,{severity:"error"},"Error encountered while fetching search results. ",j.toString());if(!Y||Y.length===0)return r.createElement(pt.EmptyState,{missing:"data",title:"Sorry, no results were found"});const le=()=>{te({selected:"",checked:[]})},ve=Le=>{te(Re=>({...Re,selected:Le}))},ye=Le=>{if(ae.checked.includes(Le)){te(Re=>({...Re,checked:Re.checked.filter(Ee=>Ee!==Le)}));return}te(Re=>({...Re,checked:[...Re.checked,Le]}))},Be=Y.reduce((Le,Re)=>(Re.kind&&Le.kind.indexOf(Re.kind)<0&&Le.kind.push(Re.kind),Re.lifecycle&&Le.lifecycle.indexOf(Re.lifecycle)<0&&Le.lifecycle.push(Re.lifecycle),Le),{kind:[],lifecycle:[]});return r.createElement(r.Fragment,null,r.createElement(p.Z,{container:!0},it&&r.createElement(p.Z,{item:!0,xs:3},r.createElement(zt,{filters:ae,filterOptions:Be,resetFilters:le,updateSelected:ve,updateChecked:ye})),r.createElement(p.Z,{item:!0,xs:it?9:12},r.createElement(pt.Table,{options:{paging:!0,pageSize:20,search:!1},data:T,columns:Pt,title:r.createElement(xt,{searchQuery:be,numberOfResults:T.length,numberOfSelectedFilters:(ae.selected!==""?1:0)+ae.checked.length,handleToggleFilters:()=>Ct(!it)})}))))},ht=()=>{const[be,ot]=(0,pt.useQueryParamState)("query"),[it,Ct]=(0,r.useState)(be!=null?be:""),ae=T=>{T.preventDefault(),Ct(T.target.value)};(0,r.useEffect)(()=>Ct(be!=null?be:""),[be]),(0,h.Z)(()=>{ot(it)},200,[it]);const te=()=>{Ct("")};return r.createElement(pt.Page,{themeId:"home"},r.createElement(pt.Header,{title:"Search"}),r.createElement(pt.Content,null,r.createElement(p.Z,{container:!0,direction:"row"},r.createElement(p.Z,{item:!0,xs:12},r.createElement(V,{handleSearch:ae,handleClearSearchBar:te,searchQuery:it})),r.createElement(p.Z,{item:!0,xs:12},r.createElement(Nt,{searchQuery:(be!=null?be:"").toLocaleLowerCase("en-US")})))))},It=()=>{const be=(0,E.TH)(),{term:ot,setTerm:it,types:Ct,setTypes:ae,pageCursor:te,setPageCursor:T,filters:C,setFilters:F}=(0,s.Rx)(),j=(0,t.Z)(be.search);return(0,r.useEffect)(()=>{if(be.search===j)return;const Y=f().parse(be.search.substring(1),{arrayLimit:0})||{};Y.filters&&F(Y.filters),Y.query&&it(Y.query),Y.pageCursor&&T(Y.pageCursor),Y.types&&ae(Y.types)},[j,be,it,ae,T,F]),(0,r.useEffect)(()=>{const Y=f().stringify({query:ot,types:Ct,pageCursor:te,filters:C},{arrayFormat:"brackets"}),le=`${window.location.pathname}?${Y}`;window.history.replaceState(null,document.title,le)},[ot,Ct,te,C]),null},Ut=()=>{const be=(0,E.pC)();return r.createElement(s.Nd,null,r.createElement(It,null),be||r.createElement(ht,null))}},39332:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchResult:function(){return f}});var r=e(9118),t=e(2784),c=e(22313);const f=({children:E})=>{const{result:{loading:s,error:p,value:h}}=(0,c.Rx)();return s?t.createElement(r.Progress,null):p?t.createElement(r.ResponseErrorPanel,{title:"Error encountered while fetching search results",error:p}):(h==null?void 0:h.results.length)?t.createElement(t.Fragment,null,E({results:h.results})):t.createElement(r.EmptyState,{missing:"data",title:"Sorry, no results were found"})}},8542:function(J,o,e){"use strict";e.d(o,{G:function(){return h}});var r=e(79692),t=e(77277),c=e(35352),f=e(27742),E=e(2784),s=e(22313);const p=(0,r.Z)(m=>({root:{display:"flex",justifyContent:"space-between",gap:m.spacing(2),margin:m.spacing(2,0)}})),h=()=>{const{fetchNextPage:m,fetchPreviousPage:l}=(0,s.Rx)(),y=p();return!m&&!l?E.createElement(E.Fragment,null):E.createElement("nav",{"arial-label":"pagination navigation",className:y.root},E.createElement(t.Z,{"aria-label":"previous page",disabled:!l,onClick:l,startIcon:E.createElement(c.Z,null)},"Previous"),E.createElement(t.Z,{"aria-label":"next page",disabled:!m,onClick:m,endIcon:E.createElement(f.Z,null)},"Next"))}},20863:function(J,o,e){"use strict";e.d(o,{_Z:function(){return c}});var r=e(91512),t=e(36964);const c=(0,t.createRouteRef)({id:"search"}),f=(0,t.createRouteRef)({id:"search:next"}),E=(0,t.createPlugin)({id:"search",apis:[(0,t.createApiFactory)({api:r.g,deps:{discoveryApi:t.discoveryApiRef,identityApi:t.identityApiRef},factory:({discoveryApi:I,identityApi:V})=>new r.w({discoveryApi:I,identityApi:V})})],routes:{root:c,nextRoot:f}}),s=E.provide((0,t.createRoutableExtension)({name:"SearchPage",component:()=>Promise.resolve().then(e.bind(e,3992)).then(I=>I.SearchPage),mountPoint:c})),p=E.provide((0,t.createRoutableExtension)({name:"SearchPageNext",component:()=>Promise.resolve().then(e.bind(e,3992)).then(I=>I.SearchPage),mountPoint:f})),h=E.provide((0,t.createComponentExtension)({name:"SearchBar",component:{lazy:()=>Promise.resolve().then(e.bind(e,1795)).then(I=>I.SearchBar)}})),m=E.provide((0,t.createComponentExtension)({name:"SearchBarNext",component:{lazy:()=>Promise.resolve().then(e.bind(e,1795)).then(I=>I.SearchBar)}})),l=E.provide((0,t.createComponentExtension)({name:"SearchResult",component:{lazy:()=>Promise.resolve().then(e.bind(e,39332)).then(I=>I.SearchResult)}})),y=E.provide((0,t.createComponentExtension)({name:"SearchResultNext",component:{lazy:()=>Promise.resolve().then(e.bind(e,39332)).then(I=>I.SearchResult)}})),i=E.provide((0,t.createComponentExtension)({name:"SidebarSearchModal",component:{lazy:()=>e.e(3825).then(e.bind(e,43825)).then(I=>I.SidebarSearchModal)}})),S=E.provide((0,t.createComponentExtension)({name:"DefaultResultListItem",component:{lazy:()=>Promise.resolve().then(e.bind(e,19941)).then(I=>I.DefaultResultListItem)}})),b=E.provide((0,t.createComponentExtension)({name:"HomePageSearchBar",component:{lazy:()=>e.e(6105).then(e.bind(e,46105)).then(I=>I.HomePageSearchBar)}}))},94067:function(J,o,e){"use strict";e.r(o),e.d(o,{EmbeddedDocsRouter:function(){return b},Router:function(){return S},isTechDocsAvailable:function(){return i}});var r=e(2784),t=e(19139),c=e(10289),f=e(41481),E=e(31752),s=e(73873),p=e(97589),h=e(36964);const m=({entity:I})=>{var B;const V=(0,h.useApi)(h.configApiRef);return r.createElement(s.Ej,{withSearch:!1,entityRef:{namespace:(0,p.D)((B=I.metadata.namespace)!=null?B:"default",V),kind:(0,p.D)(I.kind,V),name:(0,p.D)(I.metadata.name,V)}})};var l=e(9118);const y="backstage.io/techdocs-ref",i=I=>{var V,B;return Boolean((B=(V=I==null?void 0:I.metadata)==null?void 0:V.annotations)==null?void 0:B[y])},S=()=>r.createElement(c.Z5,null,r.createElement(c.AW,{path:"/",element:r.createElement(f.TechDocsIndexPage,null)}),r.createElement(c.AW,{path:"/:namespace/:kind/:name/*",element:r.createElement(E.TechDocsPage,null)})),b=I=>{var P;const{entity:V}=(0,t.useEntity)();return((P=V.metadata.annotations)==null?void 0:P[y])?r.createElement(c.Z5,null,r.createElement(c.AW,{path:"/*",element:r.createElement(m,{entity:V})})):r.createElement(l.MissingAnnotationEmptyState,{annotation:y})}},3337:function(J,o,e){"use strict";e.d(o,{D:function(){return t},g:function(){return c}});var r=e(36964);const t=(0,r.createApiRef)({id:"plugin.techdocs.storageservice"}),c=(0,r.createApiRef)({id:"plugin.techdocs.service"})},71226:function(J,o,e){"use strict";e.d(o,{O:function(){return l}});var r=e(2784),t=e(79692),c=e(49378),f=e(38402),E=e(85256),s=e(9118),p=e(15277),h=e.n(p);const m=(0,t.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),l=({result:y,lineClamp:i=5,asListItem:S=!0,asLink:b=!0,title:I})=>{const V=m(),B=()=>{var x;return r.createElement(c.Z,{className:V.itemText,primaryTypographyProps:{variant:"h6"},primary:I||`${y.title} | ${(x=y.entityTitle)!=null?x:y.name} docs`,secondary:r.createElement(h(),{line:i,truncateText:"\u2026",text:y.text,element:"span"})})},P=({children:x})=>b?r.createElement(s.Link,{to:y.location},x):r.createElement(r.Fragment,null,x),O=({children:x})=>S?r.createElement(r.Fragment,null,r.createElement(f.Z,{alignItems:"flex-start",className:V.flexContainer},x),r.createElement(E.Z,{component:"li"})):r.createElement(r.Fragment,null,x);return r.createElement(P,null,r.createElement(O,null,r.createElement(B,null)))}},97589:function(J,o,e){"use strict";e.d(o,{D:function(){return r}});function r(t,c){return c.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?t:t.toLocaleLowerCase("en-US")}},10187:function(J,o,e){"use strict";e.r(o),e.d(o,{DocsCardGrid:function(){return l}});var r=e(2784),t=e(36964),c=e(94339),f=e(16111),E=e(24579),s=e(14503),p=e(68725),h=e(9118),m=e(97589);const l=({entities:y})=>{const i=(0,t.useRouteRef)(p.Fw),S=(0,t.useApi)(t.configApiRef);return y?r.createElement(h.ItemCardGrid,{"data-testid":"docs-explore"},(y==null?void 0:y.length)?y.map((b,I)=>{var V,B;return r.createElement(c.Z,{key:I},r.createElement(f.Z,null,r.createElement(h.ItemCardHeader,{title:(V=b.metadata.title)!=null?V:b.metadata.name})),r.createElement(E.Z,null,b.metadata.description),r.createElement(s.Z,null,r.createElement(h.Button,{to:i({namespace:(0,m.D)((B=b.metadata.namespace)!=null?B:"default",S),kind:(0,m.D)(b.kind,S),name:(0,m.D)(b.metadata.name,S)}),color:"primary","data-testid":"read_docs"},"Read Docs")))}):null):null}},83201:function(J,o,e){"use strict";e.r(o),e.d(o,{DocsTable:function(){return y}});var r=e(2784),t=e(95074),c=e(36964),f=e(52890),E=e(19139),s=e(68725),p=e(9118),h=e(50294),m=e(67430),l=e(97589);const y=({entities:i,title:S,loading:b,columns:I,actions:V})=>{const[,B]=(0,t.Z)(),P=(0,c.useRouteRef)(s.Fw),O=(0,c.useApi)(c.configApiRef);if(!i)return null;const x=i.map(oe=>{var Ie;const pe=(0,E.getEntityRelations)(oe,f.S4);return{entity:oe,resolved:{docsUrl:P({namespace:(0,l.D)((Ie=oe.metadata.namespace)!=null?Ie:"default",O),kind:(0,l.D)(oe.kind,O),name:(0,l.D)(oe.metadata.name,O)}),ownedByRelations:pe,ownedByRelationsTitle:pe.map(me=>(0,E.formatEntityRefTitle)(me,{defaultKind:"group"})).join(", ")}}}),H=[m.createNameColumn(),m.createOwnerColumn(),m.createTypeColumn()],q=[h.createCopyDocsUrlAction(B)];return r.createElement(r.Fragment,null,b||x&&x.length>0?r.createElement(p.Table,{isLoading:b,options:{paging:!0,pageSize:20,search:!0,actionsColumnIndex:-1},data:x,columns:I||H,actions:V||q,title:S?`${S} (${x.length})`:`All (${x.length})`}):r.createElement(p.EmptyState,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:r.createElement(p.Button,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained"},"DOCS")}))}},57110:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsCustomHome:function(){return i}});var r=e(2784),t=e(64279),c=e(79692),f=e(19139),E=e(83201),s=e(10187),p=e(1114),h=e(9118),m=e(36964);const l={DocsTable:E.DocsTable,DocsCardGrid:s.DocsCardGrid},y=({config:S,entities:b,index:I})=>{const B=(0,c.Z)({panelContainer:{marginBottom:"2rem",...S.panelCSS?S.panelCSS:{}}})(),{value:P}=(0,f.useOwnUser)(),O=l[S.panelType],x=b.filter(H=>S.filterPredicate==="ownedByUser"?P?(0,f.isOwnerOf)(P,H):!1:typeof S.filterPredicate=="function"&&S.filterPredicate(H));return r.createElement(r.Fragment,null,r.createElement(h.ContentHeader,{title:S.title,description:S.description},I===0?r.createElement(h.SupportButton,null,"Discover documentation in your ecosystem."):null),r.createElement("div",{className:B.panelContainer},r.createElement(O,{"data-testid":"techdocs-custom-panel",entities:x})))},i=({tabsConfig:S})=>{const[b,I]=(0,r.useState)(0),V=(0,m.useApi)(f.Ah),{value:B,loading:P,error:O}=(0,t.default)(async()=>(await V.getEntities({filter:{"metadata.annotations.backstage.io/techdocs-ref":f.n3},fields:["apiVersion","kind","metadata","relations","spec.owner","spec.type"]})).items.filter(q=>{var oe;return!!((oe=q.metadata.annotations)==null?void 0:oe["backstage.io/techdocs-ref"])})),x=S[b];return P?r.createElement(p.j,null,r.createElement(h.Content,null,r.createElement(h.Progress,null))):O?r.createElement(p.j,null,r.createElement(h.Content,null,r.createElement(h.WarningPanel,{severity:"error",title:"Could not load available documentation."},r.createElement(h.CodeSnippet,{language:"text",text:O.toString()})))):r.createElement(p.j,null,r.createElement(h.HeaderTabs,{selectedIndex:b,onChange:H=>I(H),tabs:S.map(({label:H},q)=>({id:q.toString(),label:H}))}),r.createElement(h.Content,{"data-testid":"techdocs-content"},x.panels.map((H,q)=>r.createElement(y,{key:q,config:H,entities:B||[],index:q}))))}},41481:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsIndexPage:function(){return E}});var r=e(2784),t=e(10289),c=e(57110);const f=()=>{const s=[{label:"Overview",panels:[{title:"Overview",description:"Explore your internal technical ecosystem through documentation.",panelType:"DocsCardGrid",filterPredicate:()=>!0}]},{label:"Owned Documents",panels:[{title:"Owned documents",description:"Access your documentation.",panelType:"DocsTable",filterPredicate:"ownedByUser"}]}];return r.createElement(c.TechDocsCustomHome,{tabsConfig:s})},E=()=>(0,t.pC)()||r.createElement(f,null)},1114:function(J,o,e){"use strict";e.d(o,{j:function(){return f}});var r=e(2784),t=e(9118),c=e(36964);const f=({children:E})=>{var h;const p=`Documentation available in ${(h=(0,c.useApi)(c.configApiRef).getOptionalString("organization.name"))!=null?h:"Backstage"}`;return r.createElement(t.PageWithHeader,{title:"Documentation",subtitle:p,themeId:"documentation"},E)}},50294:function(J,o,e){"use strict";e.r(o),e.d(o,{createCopyDocsUrlAction:function(){return f},createStarEntityAction:function(){return E}});var r=e(2784),t=e(39981),c=e(19139);function f(s){return p=>({icon:()=>r.createElement(t.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>s(`${window.location.origin}${p.resolved.docsUrl}`)})}function E(s,p){return({entity:h})=>{const m=s(h);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,c.favoriteEntityIcon)(m),tooltip:(0,c.favoriteEntityTooltip)(m),onClick:()=>p(h)}}}},67430:function(J,o,e){"use strict";e.r(o),e.d(o,{createNameColumn:function(){return E},createOwnerColumn:function(){return s},createTypeColumn:function(){return p}});var r=e(2784),t=e(9118),c=e(19139);function f(h){return h.metadata.title||h.metadata.name}function E(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:h=>r.createElement(t.SubvalueCell,{value:r.createElement(t.Link,{to:h.resolved.docsUrl},f(h.entity)),subvalue:h.entity.metadata.description})}}function s(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:h})=>r.createElement(c.EntityRefLinks,{entityRefs:h.ownedByRelations,defaultKind:"group"})}}function p(){return{title:"Type",field:"entity.spec.type"}}},80547:function(J,o,e){"use strict";e.d(o,{Ej:function(){return Ct},DK:function(){return be}});var r=e(2784),t=e(10289),c=e(79692),f=e(60364),E=e(60905),s=e(36964),p=e(36356),h=e(9118),m=e(3337);const l=(ae,te,T)=>{const C=ae==="src"&&te.endsWith(".svg"),F=!te.match(/^([a-z]*:)?\/\//i),j=te.startsWith(T);return C&&(F||j)},y=({techdocsStorageApi:ae,entityId:te,path:T})=>async C=>{const F=await ae.getApiOrigin(),j=async(Y,le)=>{for(const ve of Y)if(ve.hasAttribute(le)){const ye=ve.getAttribute(le);if(!ye)return;const Be=await ae.getBaseUrl(ye,te,T);if(l(le,ye,F))try{const Re=await(await fetch(Be,{credentials:"include"})).text();ve.setAttribute(le,`data:image/svg+xml;base64,${btoa(Re)}`)}catch{ve.setAttribute("alt",`Error: ${ye}`)}else ve.setAttribute(le,Be)}};return await Promise.all([j(C.querySelectorAll("img"),"src"),j(C.querySelectorAll("script"),"src"),j(C.querySelectorAll("source"),"src"),j(C.querySelectorAll("link"),"href"),j(C.querySelectorAll("a[download]"),"href")]),C};var i=e(63925),S=e(67097),b=e(28316),I=e(82717),V=e.n(I);const B=ae=>te=>{const T=te.querySelector('[title="Edit this page"]');if(!T||!T.href)return te;const C=new URL(T.href),F=ae.byUrl(C);if((F==null?void 0:F.type)!=="github"&&(F==null?void 0:F.type)!=="gitlab")return te;const j=te.querySelector("article>h1").childNodes[0].textContent,Y=encodeURIComponent(`Documentation Feedback: ${j}`),le=encodeURIComponent(`Page source:
32
- ${T.href}
33
-
34
- Feedback:`),ve=(F==null?void 0:F.type)==="github"?(0,i.Pb)(C.href,"blob"):C.href,ye=V()(ve),Be=`/${ye.organization}/${ye.name}`,Le=T.cloneNode();switch(F==null?void 0:F.type){case"gitlab":Le.href=`${C.origin}${Be}/issues/new?issue[title]=${Y}&issue[description]=${le}`;break;case"github":Le.href=`${C.origin}${Be}/issues/new?title=${Y}&body=${le}`;break;default:return te}return b.render(r.createElement(S.Z),Le),Le.style.paddingLeft="5px",Le.title="Leave feedback for this page",Le.id="git-feedback-link",T==null||T.insertAdjacentElement("beforebegin",Le),te},P=()=>ae=>(((T,C)=>{Array.from(T).filter(F=>F.hasAttribute(C)).forEach(F=>{const j=F.getAttribute(C);if(j){j.match(/^https?:\/\//i)&&F.setAttribute("target","_blank");try{const Y=O(window.location.href);F.setAttribute(C,new URL(j,Y).toString())}catch{F.replaceWith(F.textContent||j)}}})})(Array.from(ae.getElementsByTagName("a")),"href"),ae);function O(ae){const te=new URL(ae);return!te.pathname.endsWith("/")&&!te.pathname.endsWith(".html")&&(te.pathname+="/"),te.toString()}const x=({baseUrl:ae,onClick:te})=>T=>(Array.from(T.getElementsByTagName("a")).forEach(C=>{C.addEventListener("click",F=>{const Y=C.getAttribute("href");!Y||Y.startsWith(ae)&&!C.hasAttribute("download")&&(F.preventDefault(),te(F,Y))})}),T),H=()=>ae=>(Array.from(ae.querySelectorAll("pre > code")).forEach(te=>{var F;const T=document.createElement("button"),C=te.textContent||"";T.className="md-clipboard md-icon",T.title="Copy to clipboard",T.innerHTML='<svg viewBox="0 0 24 24"><path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg>',T.addEventListener("click",()=>navigator.clipboard.writeText(C)),(F=te==null?void 0:te.parentElement)==null||F.prepend(T)}),ae),q=()=>ae=>{var te;return(te=ae.querySelector(".md-header"))==null||te.remove(),ae},oe=()=>ae=>{var te;return(te=ae.querySelector(".md-footer-copyright"))==null||te.remove(),ae},pe=({docStorageUrl:ae,onLoading:te,onLoaded:T})=>C=>{const F=Array.from(C.querySelectorAll('head > link[rel="stylesheet"]')).filter(Y=>{var le;return(le=Y.getAttribute("href"))==null?void 0:le.startsWith(ae)});let j=F.length;return j>0&&te(C),F.forEach(Y=>Y.addEventListener("load",()=>{j-=1,j===0&&T(C)})),C};var Ie=e(35368),me=e.n(Ie);const ze=/main\.[A-Fa-f0-9]{8}\.min\.css$/,Pe=/^https:\/\/fonts\.googleapis\.com/,Qe=/^https:\/\/fonts\.gstatic\.com/,st=ae=>{if(ae.nodeName&&ae.nodeName==="LINK"){const te=ae.getAttribute("href")||"";te.match(ze)&&ae.setAttribute("rel","stylesheet"),te.match(Pe)&&ae.setAttribute("rel","stylesheet"),te.match(Qe)&&ae.setAttribute("rel","preconnect")}return ae},_e=ae=>te=>{if(te.nodeName==="IFRAME"){const T=te.getAttribute("src");if(!T)return te.remove(),te;try{const C=new URL(T);ae.some(j=>C.host===j)||te.remove()}catch(C){console.warn(`Invalid iframe src, ${C}`),te.remove()}}return te},gt=ae=>{const te=(ae==null?void 0:ae.getOptionalStringArray("allowedIframeHosts"))||[];return T=>{me().addHook("afterSanitizeAttributes",st);const C=["link"];return te.length>0&&(me().addHook("beforeSanitizeElements",_e(te)),C.push("iframe")),me().sanitize(T.innerHTML,{ADD_TAGS:C,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})}},nt=({css:ae})=>te=>(te.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${ae}</style>`),te),at=()=>ae=>(setTimeout(()=>{var te;if(window.location.hash){const T=window.location.hash.slice(1);(te=ae==null?void 0:ae.querySelector(`#${T}`))==null||te.scrollIntoView()}},200),ae),Rt=async(ae,te)=>{let T;if(typeof ae=="string")T=new DOMParser().parseFromString(ae,"text/html").documentElement;else if(ae instanceof Element)T=ae;else throw new Error("dom is not a recognized type");for(const C of te)T=await C(T);return T};var zt=e(82957),Ot=e(25921),pt=e(64279),rt=e(77446);function Tt({contentLoading:ae,content:te,activeSyncState:T}){return ae||T==="BUILD_READY_RELOAD"||!te&&T==="CHECKING"?"CHECKING":!te&&T==="BUILDING"?"INITIAL_BUILD":te?T==="BUILDING"?"CONTENT_STALE_REFRESHING":T==="BUILD_READY"?"CONTENT_STALE_READY":T==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Pt(ae,te){const T={...ae};switch(te.type){case"sync":te.state==="CHECKING"&&(T.buildLog=[]),T.activeSyncState=te.state,T.syncError=te.syncError;break;case"contentLoading":T.contentLoading=!0,T.contentError=void 0;break;case"content":typeof te.path=="string"&&(T.path=te.path),T.contentLoading=!1,T.content=te.content,T.contentError=te.contentError;break;case"buildLog":T.buildLog=T.buildLog.concat(te.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(T.activeSyncState)&&["contentLoading","content"].includes(te.type)&&(T.activeSyncState="UP_TO_DATE",T.buildLog=[]),T}function xt(ae,te,T,C){var Be,Le;const[F,j]=(0,r.useReducer)(Pt,{activeSyncState:"CHECKING",path:C,contentLoading:!0,buildLog:[]}),Y=(0,s.useApi)(m.D),{retry:le}=(0,rt.Z)(async()=>{j({type:"contentLoading"});try{const Re=await Y.getEntityDocs({kind:ae,namespace:te,name:T},C);return j({type:"content",content:Re,path:C}),Re}catch(Re){j({type:"content",contentError:Re,path:C})}},[Y,ae,te,T,C]),ve=(0,r.useRef)({content:void 0,reload:()=>{}});return ve.current={content:F.content,reload:le},(0,pt.default)(async()=>{j({type:"sync",state:"CHECKING"});const Re=setTimeout(()=>{j({type:"sync",state:"BUILDING"})},1e3);try{switch(await Y.syncEntityDocs({kind:ae,namespace:te,name:T},Fe=>{j({type:"buildLog",log:Fe})})){case"updated":ve.current.content?j({type:"sync",state:"BUILD_READY"}):(ve.current.reload(),j({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":j({type:"sync",state:"UP_TO_DATE"});break;default:j({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(Ee){j({type:"sync",state:"ERROR",syncError:Ee})}finally{clearTimeout(Re)}},[ae,T,te,Y,j,ve]),{state:(0,r.useMemo)(()=>Tt({activeSyncState:F.activeSyncState,contentLoading:F.contentLoading,content:F.content}),[F.activeSyncState,F.content,F.contentLoading]),contentReload:le,path:F.path,content:F.content,contentErrorMessage:(Be=F.contentError)==null?void 0:Be.toString(),syncErrorMessage:(Le=F.syncError)==null?void 0:Le.toString(),buildLog:F.buildLog}}const Nt=(0,c.Z)(ae=>({searchBar:{marginLeft:"20rem",maxWidth:"calc(100% - 20rem * 2 - 3rem)",marginTop:ae.spacing(1),"@media screen and (max-width: 76.1875em)":{marginLeft:"10rem",maxWidth:"calc(100% - 10rem)"}}})),ht=(0,r.createContext)({}),It=({children:ae,entityRef:te})=>{const{"*":T}=(0,t.UO)(),{kind:C,namespace:F,name:j}=te,Y=xt(C,F,j,T);return r.createElement(ht.Provider,{value:Y},ae)},Ut=(ae,te)=>T=>React.createElement(It,{entityRef:te},React.createElement(ae,{...T})),be=()=>(0,r.useContext)(ht),ot=ae=>{const te=(0,t.s0)(),T=(0,f.Z)(),C=(0,s.useApi)(m.D),F=(0,s.useApi)(p.q3),j=(0,s.useApi)(s.configApiRef),{namespace:Y="",kind:le="",name:ve=""}=ae,{state:ye,path:Be,content:Le}=be(),[Re,Ee]=(0,r.useState)(),[Fe,St]=(0,r.useState)(null),{isPinned:ut}=(0,r.useContext)(h.SidebarPinStateContext),Ve=(0,r.useCallback)(()=>{if(!Fe||!Re)return;const Ue=Fe.querySelector(".md-container > .md-tabs");Re.forEach(Ze=>{const Je=Math.max(Fe.getBoundingClientRect().top,0);Ze.style.top=Ue?`${Je+Ue.getBoundingClientRect().height}px`:`${Je}px`})},[Fe,Re]);(0,r.useEffect)(()=>(Ve(),window.addEventListener("scroll",Ve,!0),window.addEventListener("resize",Ve),()=>{window.removeEventListener("scroll",Ve,!0),window.removeEventListener("resize",Ve)}),[Ve,ye]);const se=(0,r.useCallback)(()=>{if(!Fe)return;const Ue=Fe.querySelector(".md-footer");Ue&&(Ue.style.width=`${Fe.getBoundingClientRect().width}px`)},[Fe]);(0,r.useEffect)(()=>(se(),window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}));const Ne=(0,r.useCallback)((Ue,Ze)=>Rt(Ue,[gt(j.getOptionalConfig("techdocs.sanitizer")),y({techdocsStorageApi:C,entityId:{kind:le,name:ve,namespace:Y},path:Ze}),P(),q(),oe(),B(F),nt({css:`
35
- body {
36
- font-family: ${T.typography.fontFamily};
37
- --md-text-color: ${T.palette.text.primary};
38
- --md-text-link-color: ${T.palette.primary.main};
39
-
40
- --md-code-fg-color: ${T.palette.text.primary};
41
- --md-code-bg-color: ${T.palette.background.paper};
42
- --md-accent-fg-color: ${T.palette.primary.main};
43
- --md-default-fg-color--lightest: ${T.palette.textVerySubtle};
44
- }
45
- .md-main__inner { margin-top: 0; }
46
- .md-sidebar { position: fixed; bottom: 100px; width: 20rem; }
47
- .md-sidebar--secondary { right: 2rem; }
48
- .md-content { margin-bottom: 50px }
49
- .md-footer { position: fixed; bottom: 0px; }
50
- .md-footer-nav__link { width: 20rem;}
51
- .md-content { margin-left: 20rem; max-width: calc(100% - 20rem * 2 - 3rem); }
52
- .md-typeset { font-size: 1rem; }
53
- .md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: bold; }
54
- .md-nav { font-size: 1rem; }
55
- .md-grid { max-width: 90vw; margin: 0 }
56
- .md-typeset blockquote {
57
- color: ${T.palette.textSubtle};
58
- border-left: 0.2rem solid ${T.palette.textVerySubtle};
59
- }
60
- .md-typeset hr {
61
- border-bottom: 0.05rem dotted ${T.palette.textVerySubtle};
62
- }
63
- .md-typeset table:not([class]) {
64
- font-size: 1rem;
65
- border: 1px solid ${T.palette.text.primary};
66
- border-bottom: none;
67
- border-collapse: collapse;
68
- }
69
- .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
70
- border-bottom: 1px solid ${T.palette.text.primary};
71
- }
72
- .md-typeset table:not([class]) th { font-weight: bold; }
73
- .md-typeset .admonition, .md-typeset details {
74
- font-size: 1rem;
75
- }
76
-
77
- /* style the checkmarks of the task list */
78
- .md-typeset .task-list-control .task-list-indicator::before {
79
- background-color: ${T.palette.action.disabledBackground};
80
- }
81
- .md-typeset .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
82
- background-color: ${T.palette.success.main};
83
- }
84
- /**/
85
-
86
- @media screen and (max-width: 76.1875em) {
87
- .md-nav {
88
- background-color: ${T.palette.background.default};
89
- transition: none !important
90
- }
91
- .md-sidebar--secondary { display: none; }
92
- .md-sidebar--primary { left: ${ut?"242px":"72px"}; width: 10rem }
93
- .md-content { margin-left: 10rem; max-width: calc(100% - 10rem); }
94
- .md-content__inner { font-size: 0.9rem }
95
- .md-footer {
96
- position: static;
97
- padding-left: 10rem;
98
- }
99
- .md-footer-nav__link {
100
- /* footer links begin to overlap at small sizes without setting width */
101
- width: 50%;
102
- }
103
- .md-nav--primary .md-nav__title {
104
- white-space: normal;
105
- height: auto;
106
- line-height: 1rem;
107
- cursor: auto;
108
- }
109
- .md-nav--primary > .md-nav__title [for="none"] {
110
- padding-top: 0;
111
- }
112
- }
113
- `}),nt({css:`
114
- .md-nav__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
115
- transition: none;
116
- }
117
- `}),nt({css:`
118
- .md-typeset pre > code::-webkit-scrollbar-thumb {
119
- background-color: hsla(0, 0%, 0%, 0.32);
120
- }
121
- .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
122
- background-color: hsla(0, 0%, 0%, 0.87);
123
- }
124
- `}),nt({css:`
125
- :host {
126
- --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>');
127
- --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>');
128
- --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>');
129
- --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>');
130
- --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>');
131
- --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>');
132
- --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>');
133
- --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>');
134
- --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>');
135
- --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>');
136
- --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>');
137
- --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>');
138
- }
139
- :host {
140
- --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>');
141
- }
142
- :host {
143
- --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.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
144
- }
145
- :host {
146
- --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>');
147
- --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>');
148
- }
149
- `})]),[le,ve,Y,F,C,j,T.palette.action.disabledBackground,T.palette.background.default,T.palette.background.paper,T.palette.primary.main,T.palette.success.main,T.palette.text.primary,T.palette.textSubtle,T.palette.textVerySubtle,T.typography.fontFamily,ut]),et=(0,r.useCallback)(async Ue=>Rt(Ue,[at(),H(),x({baseUrl:window.location.origin,onClick:(Ze,Je)=>{var D,z;const G=Ze.ctrlKey||Ze.metaKey,A=new URL(Je);A.hash?G?window.open(`${A.pathname}${A.hash}`,"_blank"):(te(`${A.pathname}${A.hash}`),(D=Ue==null?void 0:Ue.querySelector(`#${A.hash.slice(1)}`))==null||D.scrollIntoView()):G?window.open(A.pathname,"_blank"):(te(A.pathname),(z=Ue==null?void 0:Ue.querySelector(".md-content__inner"))==null||z.scrollIntoView())}}),pe({docStorageUrl:await C.getApiOrigin(),onLoading:Ze=>{Ze.style.setProperty("opacity","0")},onLoaded:Ze=>{var Je;Ze.style.removeProperty("opacity"),(Je=Ze.querySelector(".md-nav__title"))==null||Je.removeAttribute("for"),Ee(Array.from(Ze.querySelectorAll(".md-sidebar")))}})]),[te,C]);return(0,r.useEffect)(()=>{if(!Le)return()=>{};let Ue=!0;return Ne(Le,Be).then(async Ze=>{if(!(Ze==null?void 0:Ze.innerHTML)||!Ue)return;window.scroll({top:0});const Je=await et(Ze);St(Je)}),()=>{Ue=!1}},[Le,Be,Ne,et]),Fe},it=({entityRef:ae,onReady:te=()=>{},withSearch:T=!0})=>{var le,ve;const C=Nt(),F=ot(ae),j=(0,r.useRef)(null),Y=(0,r.useRef)(te);return(0,r.useEffect)(()=>{Y.current=te},[te]),(0,r.useEffect)(()=>{if(!F||!j.current)return;const ye=j.current,Be=ye.shadowRoot||ye.attachShadow({mode:"open"});Array.from(Be.children).forEach(Le=>Be.removeChild(Le)),Be.appendChild(F),Y.current()},[F]),r.createElement(r.Fragment,null,r.createElement(Ot.N,null),T&&((ve=(le=j==null?void 0:j.current)==null?void 0:le.shadowRoot)==null?void 0:ve.innerHTML)&&r.createElement(E.Z,{container:!0,className:C.searchBar},r.createElement(zt.S,{entityId:ae})),r.createElement("div",{"data-testid":"techdocs-content-shadowroot",ref:j}))},Ct=({entityRef:ae,onReady:te=()=>{},withSearch:T=!0})=>r.createElement(It,{entityRef:ae},r.createElement(it,{entityRef:ae,onReady:te,withSearch:T}))},94252:function(J,o,e){"use strict";e.d(o,{T:function(){return f}});var r=e(2784),t=e(36964),c=e(9118);const f=({errorMessage:E})=>{const s=(0,t.useApi)(t.configApiRef).getOptionalString("techdocs.builder");let p="";return s!=="local"&&(p="Note that techdocs.builder is not set to 'local' in your config, which means this Backstage app will not generate docs if they are not found. Make sure the project's docs are generated and published by some external process (e.g. CI/CD pipeline). Or change techdocs.builder to 'local' to generate docs from this Backstage instance."),r.createElement(c.ErrorPage,{status:"404",statusMessage:E||"Documentation not found",additionalInfo:p})}},31752:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsPage:function(){return y}});var r=e(2784),t=e(10289),c=e(64279),f=e(3337),E=e(94252),s=e(36964),p=e(9118),h=e(80547),m=e(46025);const l=()=>{const[i,S]=(0,r.useState)(!1),{namespace:b,kind:I,name:V}=(0,t.UO)(),B=(0,s.useApi)(f.g),{value:P}=(0,c.default)(()=>i?B.getTechDocsMetadata({kind:I,namespace:b,name:V}):Promise.resolve(void 0),[I,b,V,B,i]),{value:O,error:x}=(0,c.default)(()=>B.getEntityMetadata({kind:I,namespace:b,name:V}),[I,b,V,B]),H=(0,r.useCallback)(()=>{S(!0)},[S]);return x?r.createElement(E.T,{errorMessage:x.message}):r.createElement(p.Page,{themeId:"documentation"},r.createElement(m.n,{techDocsMetadata:P,entityMetadata:O,entityRef:{kind:I,namespace:b,name:V}}),r.createElement(p.Content,{"data-testid":"techdocs-content"},r.createElement(h.Ej,{onReady:H,entityRef:{kind:I,namespace:b,name:V}})))},y=({children:i})=>{const S=(0,t.pC)(),[b,I]=(0,r.useState)(!1),{namespace:V,kind:B,name:P}=(0,t.UO)(),O=(0,s.useApi)(f.g),{value:x}=(0,c.default)(()=>b?O.getTechDocsMetadata({kind:B,namespace:V,name:P}):Promise.resolve(void 0),[B,V,P,O,b]),{value:H,error:q}=(0,c.default)(()=>O.getEntityMetadata({kind:B,namespace:V,name:P}),[B,V,P,O]),oe=(0,r.useCallback)(()=>{I(!0)},[I]);return q?r.createElement(E.T,{errorMessage:q.message}):i?r.createElement(p.Page,{themeId:"documentation"},i instanceof Function?i({techdocsMetadataValue:x,entityMetadataValue:H,entityRef:{kind:B,namespace:V,name:P},onReady:oe}):i):S||r.createElement(l,null)}},46025:function(J,o,e){"use strict";e.d(o,{n:function(){return h}});var r=e(52890),t=e(9118),c=e(36964),f=e(19139),E=e(73250),s=e(2784),p=e(68725);const h=({entityRef:m,entityMetadata:l,techDocsMetadata:y})=>{const{name:i}=m,{site_name:S,site_description:b}=y||{},{locationMetadata:I,spec:V}=l||{},B=V==null?void 0:V.lifecycle,P=l?(0,f.getEntityRelations)(l,r.S4):[],O=(0,c.useRouteRef)(p._Z)(),x=s.createElement(s.Fragment,null,s.createElement(t.HeaderLabel,{label:"Component",value:s.createElement(f.EntityRefLink,{color:"inherit",entityRef:m,defaultKind:"Component"})}),P.length>0&&s.createElement(t.HeaderLabel,{label:"Owner",value:s.createElement(f.EntityRefLinks,{color:"inherit",entityRefs:P,defaultKind:"group"})}),B?s.createElement(t.HeaderLabel,{label:"Lifecycle",value:B}):null,I&&I.type!=="dir"&&I.type!=="file"?s.createElement(t.HeaderLabel,{label:"",value:s.createElement("a",{href:I.target,target:"_blank",rel:"noopener noreferrer"},s.createElement(E.Z,{style:{marginTop:"-25px",fill:"#fff"}}))}):null);return s.createElement(t.Header,{title:S||".",pageTitleOverride:S||i,subtitle:b&&b!=="None"?b:"",type:"Docs",typeLink:O},x)}},82957:function(J,o,e){"use strict";e.d(o,{S:function(){return Ve}});var r=e(91512),t=e(2784),c=e(79692);const f=(0,c.Z)(se=>({filters:{width:"250px",display:"flex"},icon:{margin:se.spacing(-1,0,0,0)}})),E=({numberOfSelectedFilters:se,handleToggleFilters:Ne})=>{const et=f();return React.createElement("div",{className:et.filters},React.createElement(IconButton,{className:et.icon,"aria-label":"settings",onClick:Ne},React.createElement(FilterListIcon,null)),React.createElement(Typography,{variant:"h6"},"Filters (",se||0,")"))},s=(0,c.Z)(se=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:se.spacing(0,1,0,1)},dropdown:{width:"100%"}})),p=({filters:se,filterOptions:Ne,resetFilters:et,updateSelected:Ue,updateChecked:Ze})=>{const Je=s();return React.createElement(Card,{className:Je.filters},React.createElement(CardHeader,{title:React.createElement(Typography,{variant:"h6"},"Filters"),action:React.createElement(Button,{color:"primary",onClick:()=>et()},"CLEAR ALL")}),React.createElement(Divider,null),Ne.kind.length===0&&Ne.lifecycle.length===0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Filters cannot be applied to available results")),Ne.kind.length>0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Kind"),React.createElement(Select,{id:"outlined-select",onChange:G=>{var A;return Ue((A=G==null?void 0:G.target)==null?void 0:A.value)},variant:"outlined",className:Je.dropdown,value:se.selected},Ne.kind.map(G=>React.createElement(MenuItem,{selected:G==="",dense:!0,key:G,value:G},G)))),Ne.lifecycle.length>0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Lifecycle"),React.createElement(List,{disablePadding:!0,dense:!0},Ne.lifecycle.map(G=>React.createElement(ListItem,{key:G,dense:!0,button:!0,onClick:()=>Ze(G)},React.createElement(Checkbox,{edge:"start",disableRipple:!0,className:Je.checkbox,color:"primary",checked:se.checked.includes(G),tabIndex:-1,value:G,name:G}),React.createElement(ListItemText,{id:G,primary:G}))))))};var h=e(1795),m=e(22313),l=e(42494),y=e(84899),i=e(5806),S=e(21324),b=e(56939),I=e(73698),V=e(12231),B=e(86619),P=e(7089),O=e(88013),x=e(69294),H=e(48760);const q=(se,Ne,et=[],Ue=250)=>{const Ze=(0,t.useRef)({}),Je=se||(()=>Promise.resolve([])),[G,A]=(0,x.default)(Je,[Ne],{loading:!0});if((0,H.Z)(()=>{Ze.current[Ne]===void 0&&(Ze.current[Ne]=A(Ne).then(z=>(Ze.current[Ne]=z,z)))},Ue,[A,Ne]),et.length)return{loading:!1,value:et};const D=Ze.current[Ne];return Array.isArray(D)?{loading:!1,value:D}:G},oe=(se,Ne)=>{const{setFilters:et}=(0,m.Rx)();(0,t.useEffect)(()=>{Ne&&[Ne].flat().length>0&&et(Ue=>({...Ue,[se]:Ne}))},[])},pe=se=>{const{className:Ne,defaultValue:et,name:Ue,values:Ze,valuesDebounceMs:Je,label:G,filterSelectedOptions:A,limitTags:D,multiple:z}=se,[ee,Oe]=(0,t.useState)("");oe(Ue,et);const ge=typeof Ze=="function"?Ze:void 0,Ce=typeof Ze=="function"?void 0:Ze,{value:De,loading:$e}=q(ge,ee,Ce,Je),{filters:Et,setFilters:re}=(0,m.Rx)(),Z=Et[Ue]||(z?[]:null),Q=(je,tt)=>{re(Dt=>{const{[Ue]:tn,...cn}=Dt;return tt?{...cn,[Ue]:tt}:{...cn}})},he=je=>t.createElement(B.Z,{...je,name:"search",variant:"outlined",label:G,fullWidth:!0}),we=(je,tt)=>je.map((Dt,tn)=>t.createElement(P.Z,{label:Dt,color:"primary",...tt({index:tn})}));return t.createElement(O.ZP,{filterSelectedOptions:A,limitTags:D,multiple:z,className:Ne,id:`${z?"multi-":""}select-filter-${Ue}--select`,options:De||[],loading:$e,value:Z,onChange:Q,onInputChange:(je,tt)=>Oe(tt),renderInput:he,renderTags:we})},Ie=(0,c.Z)({label:{textTransform:"capitalize"}}),me=se=>{const{className:Ne,defaultValue:et,label:Ue,name:Ze,values:Je=[],valuesDebounceMs:G}=se,A=Ie(),{filters:D,setFilters:z}=(0,m.Rx)();oe(Ze,et);const ee=typeof Je=="function"?Je:void 0,Oe=typeof Je=="function"?void 0:Je,{value:ge=[],loading:Ce}=q(ee,"",Oe,G),De=$e=>{const{target:{value:Et,checked:re}}=$e;z(Z=>{const{[Ze]:Q,...he}=Z,we=(Q||[]).filter(tt=>tt!==Et),je=re?[...we,Et]:we;return je.length?{...he,[Ze]:je}:he})};return t.createElement(l.Z,{className:Ne,disabled:Ce,fullWidth:!0,"data-testid":"search-checkboxfilter-next"},Ue?t.createElement(y.Z,{className:A.label},Ue):null,ge.map($e=>{var Et;return t.createElement(i.Z,{key:$e,control:t.createElement(S.Z,{color:"primary",tabIndex:-1,inputProps:{"aria-labelledby":$e},value:$e,name:$e,onChange:De,checked:((Et=D[Ze])!=null?Et:[]).includes($e)}),label:$e})}))},ze=se=>{const{className:Ne,defaultValue:et,label:Ue,name:Ze,values:Je,valuesDebounceMs:G}=se,A=Ie();oe(Ze,et);const D=typeof Je=="function"?Je:void 0,z=typeof Je=="function"?void 0:Je,{value:ee=[],loading:Oe}=q(D,"",z,G),{filters:ge,setFilters:Ce}=(0,m.Rx)(),De=$e=>{const{target:{value:Et}}=$e;Ce(re=>{const{[Ze]:Z,...Q}=re;return Et?{...Q,[Ze]:Et}:Q})};return t.createElement(l.Z,{disabled:Oe,className:Ne,variant:"filled",fullWidth:!0,"data-testid":"search-selectfilter-next"},Ue?t.createElement(b.Z,{className:A.label,margin:"dense"},Ue):null,t.createElement(I.Z,{variant:"outlined",value:ge[Ze]||"",onChange:De},t.createElement(V.Z,{value:""},t.createElement("em",null,"All")),ee.map($e=>t.createElement(V.Z,{key:$e,value:$e},$e))))},Pe=({component:se,...Ne})=>t.createElement(se,{...Ne});Pe.Checkbox=se=>t.createElement(Pe,{...se,component:me}),Pe.Select=se=>t.createElement(Pe,{...se,component:ze}),Pe.Autocomplete=se=>t.createElement(Pe,{...se,component:pe});const Qe=null;var st=e(65678),_e=e(3992),gt=e(8542),nt=e(49378),at=e(62155),Rt=e(94339),zt=e(32552),Ot=e(24579),pt=e(27616),rt=e(8284),Tt=e(70660),Pt=e(11776),xt=e(85256),Nt=e(38402),ht=e(86136),It=e(38016),Ut=e(56881);const be=(0,c.Z)(se=>({card:{backgroundColor:"rgba(0, 0, 0, .11)"},cardContent:{paddingTop:se.spacing(1)},icon:{color:se.palette.common.black},list:{width:"100%"},listItemIcon:{width:"24px",height:"24px"},accordion:{backgroundColor:se.palette.background.paper},accordionSummary:{minHeight:"auto","&.Mui-expanded":{minHeight:"auto"}},accordionSummaryContent:{margin:se.spacing(2,0),"&.Mui-expanded":{margin:se.spacing(2,0)}},accordionDetails:{padding:se.spacing(0,0,1)}})),ot=se=>{const Ne=be(),{setPageCursor:et,setTypes:Ue,types:Ze}=(0,m.Rx)(),[Je,G]=(0,t.useState)(!0),{defaultValue:A,name:D,types:z}=se,ee=()=>G(De=>!De),Oe=De=>()=>{Ue(De!==""?[De]:[]),et(void 0),G(!1)};(0,t.useEffect)(()=>{A&&Ue([A])},[]);const ge=[{value:"",name:"All",icon:t.createElement(Ut.Z,null)},...z],Ce=Ze[0]||"";return t.createElement(Rt.Z,{className:Ne.card},t.createElement(zt.Z,{title:D,titleTypographyProps:{variant:"overline"}}),t.createElement(Ot.Z,{className:Ne.cardContent},t.createElement(pt.Z,{className:Ne.accordion,expanded:Je,onChange:ee},t.createElement(rt.Z,{classes:{root:Ne.accordionSummary,content:Ne.accordionSummaryContent},expandIcon:t.createElement(It.Z,{className:Ne.icon}),IconButtonProps:{size:"small"}},Je?"Collapse":ge.filter(De=>De.value===Ce)[0].name),t.createElement(Tt.Z,{classes:{root:Ne.accordionDetails}},t.createElement(Pt.Z,{className:Ne.list,component:"nav","aria-label":"filter by type",disablePadding:!0,dense:!0},ge.map(De=>t.createElement(t.Fragment,{key:De.value},t.createElement(xt.Z,null),t.createElement(Nt.Z,{selected:Ze[0]===De.value||Ze.length===0&&De.value==="",onClick:Oe(De.value),button:!0},t.createElement(ht.Z,null,(0,t.cloneElement)(De.icon,{className:Ne.listItemIcon})),t.createElement(nt.Z,{primary:De.name})))))))))};var it=e(99152),Ct=e(6487);const ae=(0,c.Z)(se=>({tabs:{borderBottom:`1px solid ${se.palette.textVerySubtle}`,padding:se.spacing(0,4)},tab:{height:"50px",fontWeight:se.typography.fontWeightBold,fontSize:se.typography.pxToRem(13),color:se.palette.textSubtle,minWidth:"130px"}})),te=se=>{const Ne=ae(),{setPageCursor:et,setTypes:Ue,types:Ze}=(0,m.Rx)(),{defaultValue:Je,types:G}=se,A=(z,ee)=>{Ue(ee!==""?[ee]:[]),et(void 0)};(0,t.useEffect)(()=>{Je&&Ue([Je])},[]);const D=[{value:"",name:"All"},...G];return t.createElement(it.Z,{className:Ne.tabs,indicatorColor:"primary",value:Ze.length===0?"":Ze[0],onChange:A},D.map(z=>t.createElement(Ct.Z,{className:Ne.tab,disableRipple:!0,label:z.name,value:z.value})))},T=(0,c.Z)(se=>({label:{textTransform:"capitalize"},chips:{display:"flex",flexWrap:"wrap",marginTop:se.spacing(1)},chip:{margin:2}})),C=se=>{const{className:Ne,defaultValue:et,name:Ue,values:Ze=[]}=se,Je=T(),{types:G,setTypes:A}=(0,m.Rx)();(0,at.Z)(()=>{G.length||(et&&Array.isArray(et)?A(et):et&&A([et]))});const D=z=>{const ee=z.target.value;A(ee)};return t.createElement(l.Z,{className:Ne,variant:"filled",fullWidth:!0,"data-testid":"search-typefilter-next"},t.createElement(b.Z,{className:Je.label,margin:"dense"},Ue),t.createElement(I.Z,{multiple:!0,variant:"outlined",value:G,onChange:D,placeholder:"All Results",renderValue:z=>t.createElement("div",{className:Je.chips},z.map(ee=>t.createElement(P.Z,{key:ee,label:ee,className:Je.chip,size:"small"})))},Ze.map(z=>t.createElement(V.Z,{key:z,value:z},t.createElement(S.Z,{checked:G.indexOf(z)>-1}),t.createElement(nt.Z,{primary:z})))))};C.Accordion=se=>t.createElement(ot,{...se}),C.Tabs=se=>t.createElement(te,{...se});var F=e(19126),j=e(20863),Y=e(36964),le=e(9118);const ve=se=>{const Ne=useRouteRef(rootRouteRef),{focusContent:et}=useContent(),Ue=useNavigate(),Ze=useCallback(Je=>{const G=qs.stringify({query:Je},{addQueryPrefix:!0});et(),Ue(`${Ne()}${G}`)},[et,Ue,Ne]);return React.createElement(SidebarSearchField,{icon:se.icon,onSearch:Ze,to:"/search"})};var ye=e(60905),Be=e(50581),Le=e(61837),Re=e(4614),Ee=e(21853),Fe=e(10289),St=e(71226);const ut=({entityId:se,debounceTime:Ne=150})=>{const[et,Ue]=(0,t.useState)(!1),Ze=(0,Fe.s0)(),{term:Je,setTerm:G,result:{loading:A,value:D}}=(0,m.Rx)(),[z,ee]=(0,t.useState)([]);(0,t.useEffect)(()=>{let $e=!0;if($e&&D){const Et=D.results.slice(0,10);ee(Et)}return()=>{$e=!1}},[A,D]);const[Oe,ge]=(0,t.useState)(Je);(0,H.Z)(()=>G(Oe),Ne,[Oe]);const Ce=$e=>{et||Ue(!0),ge($e.target.value)},De=($e,Et)=>{if(Et==null?void 0:Et.document){const{location:re}=Et.document;Ze(re)}};return t.createElement(ye.Z,{item:!0,xs:12},t.createElement(O.ZP,{"data-testid":"techdocs-search-bar",size:"small",open:et,getOptionLabel:()=>"",filterOptions:$e=>$e,onClose:()=>{Ue(!1)},onFocus:()=>{Ue(!0)},onChange:De,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:z,renderOption:({document:$e})=>t.createElement(St.O,{result:$e,lineClamp:3,asListItem:!1,asLink:!1,title:$e.title}),loading:A,renderInput:$e=>t.createElement(B.Z,{...$e,"data-testid":"techdocs-search-bar-input",variant:"outlined",fullWidth:!0,placeholder:`Search ${se.name} docs`,value:Oe,onChange:Ce,InputProps:{...$e.InputProps,startAdornment:t.createElement(Be.Z,{position:"start"},t.createElement(Le.Z,{"aria-label":"Query",disabled:!0},t.createElement(Ee.Z,null))),endAdornment:t.createElement(t.Fragment,null,A?t.createElement(Re.Z,{color:"inherit",size:20}):null,$e.InputProps.endAdornment)}})}))},Ve=se=>{const Ne={term:"",types:["techdocs"],pageCursor:"",filters:se.entityId};return t.createElement(m.Nd,{initialState:Ne},t.createElement(ut,{...se}))}},25921:function(J,o,e){"use strict";e.d(o,{N:function(){return O}});var r=e(2784),t=e(9118),c=e(79692),f=e(4614),E=e(77277),s=e(99688),p=e(12420),h=e(60905),m=e(90436),l=e(61837),y=e(4190),i=e(87685);const S=(0,c.Z)(x=>(0,p.Z)({paper:{width:"100%",[x.breakpoints.up("sm")]:{width:"75%"},[x.breakpoints.up("md")]:{width:"50%"},padding:x.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:x.palette.background.default}})),b=({buildLog:x,onClose:H})=>{const q=S(),oe=x.length===0?"Waiting for logs...":x.join(`
150
- `);return r.createElement(h.Z,{container:!0,direction:"column",className:q.root,spacing:0,wrap:"nowrap"},r.createElement(h.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap"},r.createElement(m.Z,{variant:"h5"},"Build Details"),r.createElement(l.Z,{key:"dismiss",title:"Close the drawer",onClick:H,color:"inherit"},r.createElement(i.Z,null))),r.createElement(t.LogViewer,{text:oe,classes:{root:q.logs}}))},I=({buildLog:x})=>{const H=S(),[q,oe]=(0,r.useState)(!1);return r.createElement(r.Fragment,null,r.createElement(E.Z,{color:"inherit",onClick:()=>oe(!0)},"Show Build Logs"),r.createElement(y.ZP,{classes:{paper:H.paper},anchor:"right",open:q,onClose:()=>oe(!1)},r.createElement(b,{buildLog:x,onClose:()=>oe(!1)})))};var V=e(94252),B=e(80547);const P=(0,c.Z)(()=>({message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),O=()=>{let x=null;const H=P(),{state:q,contentReload:oe,contentErrorMessage:pe,syncErrorMessage:Ie,buildLog:me}=(0,B.DK)(),ze=q==="CHECKING"?r.createElement(t.Progress,null):null;return q==="INITIAL_BUILD"&&(x=r.createElement(s.Z,{variant:"outlined",severity:"info",icon:r.createElement(f.Z,{size:"24px"}),action:r.createElement(I,{buildLog:me})},"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster.")),q==="CONTENT_STALE_REFRESHING"&&(x=r.createElement(s.Z,{variant:"outlined",severity:"info",icon:r.createElement(f.Z,{size:"24px"}),action:r.createElement(I,{buildLog:me})},"A newer version of this documentation is being prepared and will be available shortly.")),q==="CONTENT_STALE_READY"&&(x=r.createElement(s.Z,{variant:"outlined",severity:"success",action:r.createElement(E.Z,{color:"inherit",onClick:()=>oe()},"Refresh")},"A newer version of this documentation is now available, please refresh to view.")),q==="CONTENT_STALE_ERROR"&&(x=r.createElement(s.Z,{variant:"outlined",severity:"error",action:r.createElement(I,{buildLog:me}),classes:{message:H.message}},"Building a newer version of this documentation failed."," ",Ie)),q==="CONTENT_NOT_FOUND"&&(x=r.createElement(r.Fragment,null,Ie&&r.createElement(s.Z,{variant:"outlined",severity:"error",action:r.createElement(I,{buildLog:me}),classes:{message:H.message}},"Building a newer version of this documentation failed."," ",Ie),r.createElement(V.T,{errorMessage:pe}))),r.createElement(r.Fragment,null,ze,x)}},73873:function(J,o,e){"use strict";e.d(o,{Ej:function(){return r.Ej},EV:function(){return t.TechDocsPage},nN:function(){return c.n}});var r=e(80547),t=e(31752),c=e(46025),f=e(25921),E=e(82957)},68725:function(J,o,e){"use strict";e.d(o,{_Z:function(){return t},Fw:function(){return c},pd:function(){return f}});var r=e(36964);const t=(0,r.createRouteRef)({id:"techdocs:index-page"}),c=(0,r.createRouteRef)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),f=(0,r.createRouteRef)({id:"techdocs:catalog-reader-view"})},19133:function(J,o,e){"use strict";J.exports=e.p+"static/createComponent.975d1e1e..svg"},86284:function(J,o,e){"use strict";J.exports=e.p+"static/missingAnnotation.67f79e98..svg"},3871:function(J,o,e){"use strict";J.exports=e.p+"static/noBuild.1715fa71..svg"},96465:function(J,o,e){"use strict";J.exports=e.p+"static/noInformation.4b426325..svg"},29788:function(J,o,e){"use strict";J.exports=e.p+"static/mic-drop.fe3ef4d0..svg"},219:function(J,o,e){"use strict";J.exports=e.p+"static/illo.7884c54f..svg"},53260:function(){}},function(J){var o=function(r){return J(J.s=r)};J.O(0,[2370,6202,9284,2126,7012,427,5218,4736],function(){return o(88649),o(41333)});var e=J.O()}]);
151
-
152
- //# sourceMappingURL=main.9488c24e.js.map