From abd88b8b8e8b4cc67fabbfdf66d1f89cc32a5490 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 23 Jun 2023 07:45:00 +0000 Subject: [PATCH] chore(deps): bump kumahq/kuma-gui to 84f0fbca26c600a98a4e12f7c3dce0f2c082db5e Bumps kumahq/kuma-gui to version [release-2.3@84f0fbca26c600a98a4e12f7c3dce0f2c082db5e](https://github.com/kumahq/kuma-gui/tree/84f0fbca26c600a98a4e12f7c3dce0f2c082db5e) Signed-off-by: GitHub --- ...722e8c98.js => AddNewServices-ffa39487.js} | 2 +- ...d62e.js => AddNewServicesCode-c8896231.js} | 2 +- .../{App-4273f842.js => App-cf5d1fdb.js} | 2 +- ...9fab465.js => AppNotFoundView-d81284b8.js} | 2 +- ...e_vue_type_style_index_0_lang-136398d6.js} | 2 +- ...-182e6384.js => CompletedView-38c65757.js} | 2 +- ...a15a.js => ConfigurationTypes-f46345c2.js} | 2 +- ...a800305f.js => ContentWrapper-ae5c5230.js} | 2 +- ...esh-f7b4300f.js => CreateMesh-34a0ce47.js} | 2 +- ...w-49747af7.js => DataOverview-7f440d3d.js} | 2 +- ...467.js => DataPlaneDetailView-48047e68.js} | 2 +- ...-777ed13b.js => DataPlaneList-c00650aa.js} | 2 +- ...b93b6.js => DataPlaneListView-80bf6214.js} | 2 +- ...69f.js => DataplaneKubernetes-9e8777c7.js} | 2 +- ...b391.js => DataplaneUniversal-a226067e.js} | 2 +- ...266c.js => DataplanesOverview-54aa5c01.js} | 2 +- ...60bf.js => DefinitionListItem-dd7f1ed7.js} | 2 +- ...a2ed16b.js => DeploymentTypes-33994be5.js} | 2 +- ...f219477.js => DiagnosticsView-b0006384.js} | 2 +- ...e_type_script_setup_true_lang-e60ab842.js} | 2 +- ...e_type_script_setup_true_lang-613df6e8.js} | 2 +- ...4cb.js => EnvironmentSwitcher-2d9d2cf0.js} | 2 +- ...Data-ebe2f45c.js => EnvoyData-d68db4e2.js} | 2 +- ...ock-86257192.js => ErrorBlock-c00a9be3.js} | 2 +- ...e_type_script_setup_true_lang-f54a5cba.js} | 2 +- ...Box-23a1489f.js => LoadingBox-ff395360.js} | 2 +- ...c07580.js => MainOverviewView-f40f531e.js} | 2 +- ...w-7ce34429.js => MeshItemView-05118668.js} | 2 +- ...w-a1065e88.js => MeshListView-5e70b74a.js} | 2 +- ...b04ff3.js => MeshOverviewView-d2b36b83.js} | 2 +- ...-ce24b5f4.js => MeshResources-812263b7.js} | 2 +- ...hView-280b7907.js => MeshView-21beb898.js} | 2 +- ...ard-b1770598.js => MeshWizard-e7f4eda0.js} | 2 +- ...-014ca5ca.js => MultiZoneView-31207c2f.js} | 2 +- ...e_type_script_setup_true_lang-ebe8f97b.js} | 2 +- ...e_type_script_setup_true_lang-b99a9b59.js} | 2 +- ...e954db95.js => OnboardingPage-ed86946b.js} | 2 +- ...0da04a46.js => OnboardingView-46286745.js} | 2 +- ...fcd47a.js => PolicyDetailView-8600a5f0.js} | 2 +- ...e_type_script_setup_true_lang-a6a4d464.js} | 2 +- ...d2f77bad.js => PolicyListView-8f70c22b.js} | 2 +- ...e_type_script_setup_true_lang-ad3fe3ac.js} | 2 +- ...e_type_script_setup_true_lang-c8f5e134.js} | 2 +- ...e_type_script_setup_true_lang-4f1e634f.js} | 2 +- ...d48eb.js => ServiceDetailView-11066707.js} | 2 +- ...3590bcc.js => ServiceListView-6d15a789.js} | 2 +- ...b59a9e0a.js => ServiceSummary-9a459366.js} | 2 +- ...ge-d4b430b5.js => StatusBadge-456f7f13.js} | 2 +- ...e_type_script_setup_true_lang-5d8c7c2f.js} | 2 +- ...n-759bb1a3.js => StepSkeleton-f870dd24.js} | 2 +- ...e_type_script_setup_true_lang-b5623c15.js} | 2 +- ...get-67e5cef2.js => TabsWidget-98d43afa.js} | 2 +- ...agList-da1dbae1.js => TagList-337d8082.js} | 2 +- ...a739.js => TextWithCopyButton-6362ddfe.js} | 2 +- ...e_type_script_setup_true_lang-201c2757.js} | 2 +- ...ew-4d8f1bd1.js => WelcomeView-0d40fe0b.js} | 2 +- ...8cae01cc.js => ZoneCreateView-96af1d60.js} | 2 +- ...6fd59ca0.js => ZoneDetailView-1fa7e66a.js} | 2 +- ...e_type_script_setup_true_lang-9cf4e0fb.js} | 2 +- ...df.js => ZoneEgressDetailView-93b98f09.js} | 2 +- ...e_type_script_setup_true_lang-b2080d11.js} | 2 +- ...7833.js => ZoneEgressListView-9eb4b45d.js} | 2 +- ...-8fc3bd67.js => ZoneIndexView-16861d5e.js} | 2 +- ...1.js => ZoneIngressDetailView-34922039.js} | 2 +- ...e_type_script_setup_true_lang-1ddcc82c.js} | 2 +- ...5b6.js => ZoneIngressListView-e7a95459.js} | 2 +- ...w-7e647860.js => ZoneListView-710fec54.js} | 2 +- .../{index-e7c4cb0f.js => index-3e91d6ff.js} | 24 +++++++++---------- ...db3f0bda.js => kongponents.es-605260c0.js} | 2 +- app/kuma-ui/pkg/resources/data/index.html | 2 +- 70 files changed, 81 insertions(+), 81 deletions(-) rename app/kuma-ui/pkg/resources/data/assets/{AddNewServices-722e8c98.js => AddNewServices-ffa39487.js} (86%) rename app/kuma-ui/pkg/resources/data/assets/{AddNewServicesCode-b3f2d62e.js => AddNewServicesCode-c8896231.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{App-4273f842.js => App-cf5d1fdb.js} (92%) rename app/kuma-ui/pkg/resources/data/assets/{AppNotFoundView-09fab465.js => AppNotFoundView-d81284b8.js} (80%) rename app/kuma-ui/pkg/resources/data/assets/{CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js => CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js} (99%) rename app/kuma-ui/pkg/resources/data/assets/{CompletedView-182e6384.js => CompletedView-38c65757.js} (76%) rename app/kuma-ui/pkg/resources/data/assets/{ConfigurationTypes-42c6a15a.js => ConfigurationTypes-f46345c2.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ContentWrapper-a800305f.js => ContentWrapper-ae5c5230.js} (77%) rename app/kuma-ui/pkg/resources/data/assets/{CreateMesh-f7b4300f.js => CreateMesh-34a0ce47.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{DataOverview-49747af7.js => DataOverview-7f440d3d.js} (93%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneDetailView-fdb62467.js => DataPlaneDetailView-48047e68.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneList-777ed13b.js => DataPlaneList-c00650aa.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneListView-a1fb93b6.js => DataPlaneListView-80bf6214.js} (67%) rename app/kuma-ui/pkg/resources/data/assets/{DataplaneKubernetes-3e02669f.js => DataplaneKubernetes-9e8777c7.js} (95%) rename app/kuma-ui/pkg/resources/data/assets/{DataplaneUniversal-9a78b391.js => DataplaneUniversal-a226067e.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{DataplanesOverview-a37b266c.js => DataplanesOverview-54aa5c01.js} (79%) rename app/kuma-ui/pkg/resources/data/assets/{DefinitionListItem-84d660bf.js => DefinitionListItem-dd7f1ed7.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{DeploymentTypes-da2ed16b.js => DeploymentTypes-33994be5.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{DiagnosticsView-2f219477.js => DiagnosticsView-b0006384.js} (60%) rename app/kuma-ui/pkg/resources/data/assets/{EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js => EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js} (78%) rename app/kuma-ui/pkg/resources/data/assets/{EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js => EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js} (91%) rename app/kuma-ui/pkg/resources/data/assets/{EnvironmentSwitcher-cd6444cb.js => EnvironmentSwitcher-2d9d2cf0.js} (93%) rename app/kuma-ui/pkg/resources/data/assets/{EnvoyData-ebe2f45c.js => EnvoyData-d68db4e2.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{ErrorBlock-86257192.js => ErrorBlock-c00a9be3.js} (87%) rename app/kuma-ui/pkg/resources/data/assets/{LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js => LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js} (71%) rename app/kuma-ui/pkg/resources/data/assets/{LoadingBox-23a1489f.js => LoadingBox-ff395360.js} (76%) rename app/kuma-ui/pkg/resources/data/assets/{MainOverviewView-a8c07580.js => MainOverviewView-f40f531e.js} (51%) rename app/kuma-ui/pkg/resources/data/assets/{MeshItemView-7ce34429.js => MeshItemView-05118668.js} (70%) rename app/kuma-ui/pkg/resources/data/assets/{MeshListView-a1065e88.js => MeshListView-5e70b74a.js} (73%) rename app/kuma-ui/pkg/resources/data/assets/{MeshOverviewView-a8b04ff3.js => MeshOverviewView-d2b36b83.js} (85%) rename app/kuma-ui/pkg/resources/data/assets/{MeshResources-ce24b5f4.js => MeshResources-812263b7.js} (92%) rename app/kuma-ui/pkg/resources/data/assets/{MeshView-280b7907.js => MeshView-21beb898.js} (79%) rename app/kuma-ui/pkg/resources/data/assets/{MeshWizard-b1770598.js => MeshWizard-e7f4eda0.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{MultiZoneView-014ca5ca.js => MultiZoneView-31207c2f.js} (86%) rename app/kuma-ui/pkg/resources/data/assets/{MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js => MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js} (77%) rename app/kuma-ui/pkg/resources/data/assets/{NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js => NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{OnboardingPage-e954db95.js => OnboardingPage-ed86946b.js} (92%) rename app/kuma-ui/pkg/resources/data/assets/{OnboardingView-0da04a46.js => OnboardingView-46286745.js} (70%) rename app/kuma-ui/pkg/resources/data/assets/{PolicyDetailView-b2fcd47a.js => PolicyDetailView-8600a5f0.js} (54%) rename app/kuma-ui/pkg/resources/data/assets/{PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js => PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js} (89%) rename app/kuma-ui/pkg/resources/data/assets/{PolicyListView-d2f77bad.js => PolicyListView-8f70c22b.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js => ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js => RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js => RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js} (99%) rename app/kuma-ui/pkg/resources/data/assets/{ServiceDetailView-cd2d48eb.js => ServiceDetailView-11066707.js} (74%) rename app/kuma-ui/pkg/resources/data/assets/{ServiceListView-23590bcc.js => ServiceListView-6d15a789.js} (72%) rename app/kuma-ui/pkg/resources/data/assets/{ServiceSummary-b59a9e0a.js => ServiceSummary-9a459366.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{StatusBadge-d4b430b5.js => StatusBadge-456f7f13.js} (74%) rename app/kuma-ui/pkg/resources/data/assets/{StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js => StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js} (73%) rename app/kuma-ui/pkg/resources/data/assets/{StepSkeleton-759bb1a3.js => StepSkeleton-f870dd24.js} (94%) rename app/kuma-ui/pkg/resources/data/assets/{SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js => SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js} (89%) rename app/kuma-ui/pkg/resources/data/assets/{TabsWidget-67e5cef2.js => TabsWidget-98d43afa.js} (85%) rename app/kuma-ui/pkg/resources/data/assets/{TagList-da1dbae1.js => TagList-337d8082.js} (79%) rename app/kuma-ui/pkg/resources/data/assets/{TextWithCopyButton-7c6aa739.js => TextWithCopyButton-6362ddfe.js} (87%) rename app/kuma-ui/pkg/resources/data/assets/{WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js => WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js} (93%) rename app/kuma-ui/pkg/resources/data/assets/{WelcomeView-4d8f1bd1.js => WelcomeView-0d40fe0b.js} (94%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneCreateView-8cae01cc.js => ZoneCreateView-96af1d60.js} (95%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneDetailView-6fd59ca0.js => ZoneDetailView-1fa7e66a.js} (62%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js => ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneEgressDetailView-d0a0d5df.js => ZoneEgressDetailView-93b98f09.js} (55%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js => ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneEgressListView-5ae77833.js => ZoneEgressListView-9eb4b45d.js} (67%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIndexView-8fc3bd67.js => ZoneIndexView-16861d5e.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIngressDetailView-39dc4141.js => ZoneIngressDetailView-34922039.js} (55%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js => ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIngressListView-6de225b6.js => ZoneIngressListView-e7a95459.js} (68%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneListView-7e647860.js => ZoneListView-710fec54.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{index-e7c4cb0f.js => index-3e91d6ff.js} (73%) rename app/kuma-ui/pkg/resources/data/assets/{kongponents.es-db3f0bda.js => kongponents.es-605260c0.js} (99%) diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-722e8c98.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-ffa39487.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServices-722e8c98.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServices-ffa39487.js index b264da3917d2..bc6c43dcb5e0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-722e8c98.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-ffa39487.js @@ -1,4 +1,4 @@ -import{O as b,a as x,b as S}from"./OnboardingPage-e954db95.js";import{d as m,o as u,f as h,q as w,H as y,c as k,a as B,b as t,i as s,e as _,h as o,l as e,p as $,n as C}from"./index-e7c4cb0f.js";import{h as v,f as N,k as I,g as A,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as M}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import"./kongponents.es-db3f0bda.js";const V=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,q=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,z=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),h("div",{class:y(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[w(r.$slots,"default",{},void 0,!0)],2))}});const p=v(z,[["__scopeId","data-v-93fc7d1a"]]),f=a=>($("data-v-8218f0d7"),a=a(),C(),a),H={class:"service-mode-list"},L=f(()=>e("div",{class:"service-box-content"},[e("img",{src:V}),o(),e("p",{class:"service-mode-title"},` +import{O as b,a as x,b as S}from"./OnboardingPage-ed86946b.js";import{d as m,o as u,f as h,q as w,H as y,c as k,a as B,b as t,i as s,e as _,h as o,l as e,p as $,n as C}from"./index-3e91d6ff.js";import{h as v,f as N,k as I,g as A,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as M}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import"./kongponents.es-605260c0.js";const V=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,q=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,z=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),h("div",{class:y(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[w(r.$slots,"default",{},void 0,!0)],2))}});const p=v(z,[["__scopeId","data-v-93fc7d1a"]]),f=a=>($("data-v-8218f0d7"),a=a(),C(),a),H={class:"service-mode-list"},L=f(()=>e("div",{class:"service-box-content"},[e("img",{src:V}),o(),e("p",{class:"service-mode-title"},` Demo app `),o(),e("p",null,"Counter application")],-1)),R=f(()=>e("div",{class:"service-box-content"},[e("img",{src:q}),o(),e("p",{class:"service-mode-title"},` Manually diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-b3f2d62e.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c8896231.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-b3f2d62e.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c8896231.js index 3e672292b9df..5da51f501064 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-b3f2d62e.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c8896231.js @@ -1,4 +1,4 @@ -import{L as k}from"./LoadingBox-23a1489f.js";import{O as w,a as x,b as y}from"./OnboardingPage-e954db95.js";import{k as A,j as N,f as C,g as T,_ as I,h as P}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{d as E,s as p,c as L,M as O,o,a as S,b as s,i as t,e as R,h as e,f as c,F as B,l as n,g as V,p as $,n as G}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const h=i=>($("data-v-159bee77"),i=i(),G(),i),K=h(()=>n("p",{class:"mb-4 text-center"},` +import{L as k}from"./LoadingBox-ff395360.js";import{O as w,a as x,b as y}from"./OnboardingPage-ed86946b.js";import{k as A,j as N,f as C,g as T,_ as I,h as P}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{d as E,s as p,c as L,M as O,o,a as S,b as s,i as t,e as R,h as e,f as c,F as B,l as n,g as V,p as $,n as G}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const h=i=>($("data-v-159bee77"),i=i(),G(),i),K=h(()=>n("p",{class:"mb-4 text-center"},` The demo application includes two services: a Redis backend to store a counter value, and a frontend web UI to show and increment the counter. `,-1)),M=h(()=>n("p",null,"To run execute the following command:",-1)),q={key:1},F={class:"status-box mt-4"},H={key:0,class:"status--is-connected","data-testid":"dpps-connected"},U={key:1,class:"status--is-disconnected","data-testid":"dpps-disconnected"},j={key:0,class:"status-loading-box mt-4"},z=1e3,_="https://github.com/kumahq/kuma-counter-demo/",J="https://github.com/kumahq/kuma-counter-demo/blob/master/README.md",Q="kubectl apply -f https://bit.ly/3Kh2Try",W=E({__name:"AddNewServicesCode",setup(i){const{t:b}=A(),f=N(),g=C(),a=p(!1),l=p(null),v=L(()=>g.getters["config/getEnvironment"]==="kubernetes");r(),O(function(){u()});async function r(){try{const{total:d}=await f.getAllDataplanes();a.value=d>0}catch(d){console.error(d)}finally{a.value||(u(),l.value=window.setTimeout(()=>r(),z))}}function u(){l.value!==null&&window.clearTimeout(l.value)}return(d,X)=>(o(),S(I,null,{default:s(()=>[t(D,{title:R(b)("onboarding.routes.add-services-code.title")},null,8,["title"]),e(),t(T,null,{default:s(()=>[t(w,null,{header:s(()=>[t(x,null,{title:s(()=>[e(` Add services diff --git a/app/kuma-ui/pkg/resources/data/assets/App-4273f842.js b/app/kuma-ui/pkg/resources/data/assets/App-cf5d1fdb.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/App-4273f842.js rename to app/kuma-ui/pkg/resources/data/assets/App-cf5d1fdb.js index 56d863d055b0..c726cecd08c9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/App-4273f842.js +++ b/app/kuma-ui/pkg/resources/data/assets/App-cf5d1fdb.js @@ -1 +1 @@ -import{d as M,u as z,c as n,w as B,r as E,a as t,b as c,o as e,e as a,f as u,g as r,h as i,i as _,T as O,j as T,F as V}from"./index-e7c4cb0f.js";import{u as j,a as F,b as H,c as I,d as P,e as W,f as $,_ as q,g as D,h as K}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import"./kongponents.es-db3f0bda.js";const R={key:1},G={key:2,class:"app-content-container"},J=M({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(f){const g=f,[v,h,y,A,b,k]=[j(),F(),H(),I(),P(),W()],d=$(),o=z(),w=n(()=>o.path),s=n(()=>o.meta.isWizard===!0),N=n(()=>d.getters.shouldShowAppError),S=n(()=>d.getters.shouldShowNotificationManager),C=n(()=>d.getters.shouldShowOnboardingNotification);B(()=>s.value,x,{immediate:!0});function x(p){const l=document.body.classList.contains("is-wizard-page");p&&!l?document.body.classList.add("is-wizard-page"):!p&&l&&document.body.classList.remove("is-wizard-page")}return(p,l)=>{const m=E("router-view");return e(),t(q,null,{default:c(()=>[a(d).state.globalLoading||a(o).name===void 0?(e(),t(a(y),{key:0})):(e(),u(V,{key:1},[s.value?r("",!0):(e(),t(a(h),{key:0})),i(),a(o).meta.onboardingProcess?(e(),u("div",R,[_(m)])):(e(),u("div",G,[s.value?r("",!0):(e(),t(a(v),{key:0})),i(),_(D,null,{default:c(()=>[N.value?(e(),t(a(A),{key:0,"data-testid":"app-error"})):r("",!0),i(),!s.value&&S.value?(e(),t(a(b),{key:1})):r("",!0),i(),!s.value&&C.value?(e(),t(a(k),{key:2})):r("",!0),i(),(e(),t(m,{key:w.value},{default:c(({Component:L})=>[_(O,{mode:"out-in",name:"fade"},{default:c(()=>[(e(),u("div",{key:a(o).name,class:"transition-root"},[(e(),t(T(L),{data:g.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const Y=K(J,[["__scopeId","data-v-68e3a682"]]);export{Y as default}; +import{d as M,u as z,c as n,w as B,r as E,a as t,b as c,o as e,e as a,f as u,g as r,h as i,i as _,T as O,j as T,F as V}from"./index-3e91d6ff.js";import{u as j,a as F,b as H,c as I,d as P,e as W,f as $,_ as q,g as D,h as K}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import"./kongponents.es-605260c0.js";const R={key:1},G={key:2,class:"app-content-container"},J=M({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(f){const g=f,[v,h,y,A,b,k]=[j(),F(),H(),I(),P(),W()],d=$(),o=z(),w=n(()=>o.path),s=n(()=>o.meta.isWizard===!0),N=n(()=>d.getters.shouldShowAppError),S=n(()=>d.getters.shouldShowNotificationManager),C=n(()=>d.getters.shouldShowOnboardingNotification);B(()=>s.value,x,{immediate:!0});function x(p){const l=document.body.classList.contains("is-wizard-page");p&&!l?document.body.classList.add("is-wizard-page"):!p&&l&&document.body.classList.remove("is-wizard-page")}return(p,l)=>{const m=E("router-view");return e(),t(q,null,{default:c(()=>[a(d).state.globalLoading||a(o).name===void 0?(e(),t(a(y),{key:0})):(e(),u(V,{key:1},[s.value?r("",!0):(e(),t(a(h),{key:0})),i(),a(o).meta.onboardingProcess?(e(),u("div",R,[_(m)])):(e(),u("div",G,[s.value?r("",!0):(e(),t(a(v),{key:0})),i(),_(D,null,{default:c(()=>[N.value?(e(),t(a(A),{key:0,"data-testid":"app-error"})):r("",!0),i(),!s.value&&S.value?(e(),t(a(b),{key:1})):r("",!0),i(),!s.value&&C.value?(e(),t(a(k),{key:2})):r("",!0),i(),(e(),t(m,{key:w.value},{default:c(({Component:L})=>[_(O,{mode:"out-in",name:"fade"},{default:c(()=>[(e(),u("div",{key:a(o).name,class:"transition-root"},[(e(),t(T(L),{data:g.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const Y=K(J,[["__scopeId","data-v-68e3a682"]]);export{Y as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-09fab465.js b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-d81284b8.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-09fab465.js rename to app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-d81284b8.js index 9f39fbbc6809..436775c93330 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-09fab465.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-d81284b8.js @@ -1,4 +1,4 @@ -import{l as n,T as s,Q as r}from"./kongponents.es-db3f0bda.js";import{d as c,f as l,i as o,b as e,e as a,o as i,h as t,l as p}from"./index-e7c4cb0f.js";const d={class:"overview"},m=p("p",null,"Page Not Found",-1),g=c({__name:"AppNotFoundView",setup(_){return(u,f)=>(i(),l("div",d,[o(a(r),null,{title:e(()=>[o(a(n),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),m]),message:e(()=>[t(` +import{l as n,T as s,Q as r}from"./kongponents.es-605260c0.js";import{d as c,f as l,i as o,b as e,e as a,o as i,h as t,l as p}from"./index-3e91d6ff.js";const d={class:"overview"},m=p("p",null,"Page Not Found",-1),g=c({__name:"AppNotFoundView",setup(_){return(u,f)=>(i(),l("div",d,[o(a(r),null,{title:e(()=>[o(a(n),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),m]),message:e(()=>[t(` The page or entity you were looking for does not exist. `)]),cta:e(()=>[o(a(s),{appearance:"primary",to:{name:"home"}},{default:e(()=>[t(` Go Home diff --git a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js rename to app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js index 9ea7b17e1721..40d011a5220e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js +++ b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js @@ -1,4 +1,4 @@ -import{u as te}from"./kongponents.es-db3f0bda.js";import{ay as Y,az as ae,d as ne,s as re,Y as U,o as ie,a as se,b as oe,q as le,ad as ue,e as Z}from"./index-e7c4cb0f.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{u as te}from"./kongponents.es-605260c0.js";import{ay as Y,az as ae,d as ne,s as re,Y as U,o as ie,a as se,b as oe,q as le,ad as ue,e as Z}from"./index-3e91d6ff.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT diff --git a/app/kuma-ui/pkg/resources/data/assets/CompletedView-182e6384.js b/app/kuma-ui/pkg/resources/data/assets/CompletedView-38c65757.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/CompletedView-182e6384.js rename to app/kuma-ui/pkg/resources/data/assets/CompletedView-38c65757.js index 0bc60ba7fd16..14d12523a857 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CompletedView-182e6384.js +++ b/app/kuma-ui/pkg/resources/data/assets/CompletedView-38c65757.js @@ -1,3 +1,3 @@ -import{O as i,a as _,b as p}from"./OnboardingPage-e954db95.js";import{k as r,g as l,_ as c,h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as f,o as u,a as g,b as e,i as t,e as h,h as o,p as b,n as v,l as s}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const w=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),v(),a),C=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:w})],-1)),V=f({__name:"CompletedView",setup(a){const{t:n}=r();return(k,I)=>(u(),g(c,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(l,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` +import{O as i,a as _,b as p}from"./OnboardingPage-ed86946b.js";import{k as r,g as l,_ as c,h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as f,o as u,a as g,b as e,i as t,e as h,h as o,p as b,n as v,l as s}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const w=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),v(),a),C=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:w})],-1)),V=f({__name:"CompletedView",setup(a){const{t:n}=r();return(k,I)=>(u(),g(c,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(l,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` Go to the dashboard `)]),_:1})]),content:e(()=>[C]),navigation:e(()=>[t(p,{"next-step":"home","next-step-title":"Complete","last-step":"","show-skip":!1})]),_:1})]),_:1})]),_:1}))}});const y=d(V,[["__scopeId","data-v-f50ef4b3"]]);export{y as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-42c6a15a.js b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-f46345c2.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-42c6a15a.js rename to app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-f46345c2.js index 28c2925d55d0..92ac3e0b02af 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-42c6a15a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-f46345c2.js @@ -1,4 +1,4 @@ -import{n as l}from"./kongponents.es-db3f0bda.js";import{O as y,a as h,b as V}from"./OnboardingPage-e954db95.js";import{o as x,p as G,q as C,f as k,k as M,g as P,_ as T,h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as B,s as K,G as S,c as i,o as d,a as p,b as e,i as o,e as r,h as a,l as m,j as U}from"./index-e7c4cb0f.js";const $={class:"graph-list mb-6"},w={class:"radio-button-group"},I=B({__name:"ConfigurationTypes",setup(j){const c=x(),g=G(),_={postgres:C(),memory:g,kubernetes:c},u=k(),{t:f}=M(),t=K("kubernetes");S(function(){t.value=u.getters["config/getConfigurationType"]});const v=i(()=>u.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-create-mesh"),b=i(()=>_[t.value]);return(z,n)=>(d(),p(T,null,{default:e(()=>[o(O,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(P,null,{default:e(()=>[o(y,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[a(` +import{n as l}from"./kongponents.es-605260c0.js";import{O as y,a as h,b as V}from"./OnboardingPage-ed86946b.js";import{o as x,p as G,q as C,f as k,k as M,g as P,_ as T,h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as B,s as K,G as S,c as i,o as d,a as p,b as e,i as o,e as r,h as a,l as m,j as U}from"./index-3e91d6ff.js";const $={class:"graph-list mb-6"},w={class:"radio-button-group"},I=B({__name:"ConfigurationTypes",setup(j){const c=x(),g=G(),_={postgres:C(),memory:g,kubernetes:c},u=k(),{t:f}=M(),t=K("kubernetes");S(function(){t.value=u.getters["config/getConfigurationType"]});const v=i(()=>u.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-create-mesh"),b=i(()=>_[t.value]);return(z,n)=>(d(),p(T,null,{default:e(()=>[o(O,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(P,null,{default:e(()=>[o(y,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[a(` Learn about configuration storage `)]),_:1})]),content:e(()=>[m("div",$,[(d(),p(U(b.value)))]),a(),m("div",w,[o(r(l),{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=s=>t.value=s),name:"deployment","selected-value":"kubernetes"},{default:e(()=>[a(` Kubernetes diff --git a/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-a800305f.js b/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-ae5c5230.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ContentWrapper-a800305f.js rename to app/kuma-ui/pkg/resources/data/assets/ContentWrapper-ae5c5230.js index 4c56119407a4..e8a405de47c2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-a800305f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-ae5c5230.js @@ -1 +1 @@ -import{d as n,Q as a,o as t,f as s,l as _,q as o,h as c,e as p,g as d}from"./index-e7c4cb0f.js";import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";const l={class:"content-wrapper"},m={class:"content-wrapper__content kcard-border"},u={key:0,class:"content-wrapper__sidebar"},v=n({__name:"ContentWrapper",setup(f){const r=a();return(e,h)=>(t(),s("div",l,[_("div",m,[o(e.$slots,"content",{},void 0,!0)]),c(),p(r).sidebar?(t(),s("div",u,[o(e.$slots,"sidebar",{},void 0,!0)])):d("",!0)]))}});const k=i(v,[["__scopeId","data-v-22673661"]]);export{k as C}; +import{d as n,Q as a,o as t,f as s,l as _,q as o,h as c,e as p,g as d}from"./index-3e91d6ff.js";import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";const l={class:"content-wrapper"},m={class:"content-wrapper__content kcard-border"},u={key:0,class:"content-wrapper__sidebar"},v=n({__name:"ContentWrapper",setup(f){const r=a();return(e,h)=>(t(),s("div",l,[_("div",m,[o(e.$slots,"content",{},void 0,!0)]),c(),p(r).sidebar?(t(),s("div",u,[o(e.$slots,"sidebar",{},void 0,!0)])):d("",!0)]))}});const k=i(v,[["__scopeId","data-v-22673661"]]);export{k as C}; diff --git a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-f7b4300f.js b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-34a0ce47.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/CreateMesh-f7b4300f.js rename to app/kuma-ui/pkg/resources/data/assets/CreateMesh-34a0ce47.js index 64aa236d9922..f95979be47e0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-f7b4300f.js +++ b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-34a0ce47.js @@ -1,4 +1,4 @@ -import{e as p}from"./kongponents.es-db3f0bda.js";import{O as _,a as m,b as f}from"./OnboardingPage-e954db95.js";import{f as h,k as g,g as b,_ as v,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as x}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as S,s as A,c as C,o as N,a as k,b as e,i as t,e as n,h as a,l as o,t as B,L as D,p as I,n as M}from"./index-e7c4cb0f.js";const r=s=>(I("data-v-594df836"),s=s(),M(),s),O={class:"mb-4 text-center"},E=r(()=>o("i",null,"default",-1)),P=r(()=>o("p",{class:"mt-4 text-center"},` +import{e as p}from"./kongponents.es-605260c0.js";import{O as _,a as m,b as f}from"./OnboardingPage-ed86946b.js";import{f as h,k as g,g as b,_ as v,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as x}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as S,s as A,c as C,o as N,a as k,b as e,i as t,e as n,h as a,l as o,t as B,L as D,p as I,n as M}from"./index-3e91d6ff.js";const r=s=>(I("data-v-594df836"),s=s(),M(),s),O={class:"mb-4 text-center"},E=r(()=>o("i",null,"default",-1)),P=r(()=>o("p",{class:"mt-4 text-center"},` This mesh is empty. Next, you add services and their data plane proxies. `,-1)),T=S({__name:"CreateMesh",setup(s){const i=[{label:"Name",key:"name"},{label:"Services",key:"servicesAmount"},{label:"DPPs",key:"dppsAmount"}],c=h(),{t:l}=g(),d=A({total:1,data:[{name:"default",servicesAmount:0,dppsAmount:0}]}),u=C(()=>c.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-configuration-types");return(V,$)=>(N(),k(v,null,{default:e(()=>[t(x,{title:n(l)("onboarding.routes.create-mesh.title")},null,8,["title"]),a(),t(b,null,{default:e(()=>[t(_,null,{header:e(()=>[t(m,null,{title:e(()=>[a(` Create the mesh diff --git a/app/kuma-ui/pkg/resources/data/assets/DataOverview-49747af7.js b/app/kuma-ui/pkg/resources/data/assets/DataOverview-7f440d3d.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/DataOverview-49747af7.js rename to app/kuma-ui/pkg/resources/data/assets/DataOverview-7f440d3d.js index cb55a750b3bc..a76f9c6aa83a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataOverview-49747af7.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataOverview-7f440d3d.js @@ -1,4 +1,4 @@ -import{l as k,T as D,B as J,J as O,e as M}from"./kongponents.es-db3f0bda.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as Q}from"./ErrorBlock-86257192.js";import{_ as X}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{d as P,o as t,f as d,a as l,b as s,i as m,e as c,h as o,g as p,Z as S,Q as Z,s as R,c as B,w as Y,r as ee,l as _,q as C,m as T,k as te,F as h,t as r,H as N,p as ae,n as se}from"./index-e7c4cb0f.js";import{r as q,h as z}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{T as ne}from"./TagList-da1dbae1.js";import{S as oe}from"./StatusBadge-d4b430b5.js";const ie=""+new URL("icon-empty-table-dbb0b754.svg",import.meta.url).href,le={class:"pagination"},re=P({__name:"PaginationWidget",props:{hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1}},emits:["next","previous"],setup(n,{emit:u}){const a=n,b=q();function w(){u("next"),b.info(S.PAGINATION_NEXT_BUTTON_CLICKED)}function v(){u("previous"),b.info(S.PAGINATION_PREVIOUS_BUTTON_CLICKED)}return(E,x)=>(t(),d("div",le,[a.hasPrevious?(t(),l(c(D),{key:0,appearance:"primary","data-testid":"pagination-previous-button",onClick:v},{default:s(()=>[m(c(k),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":"","aria-hidden":"true"}),o(` +import{l as k,T as D,B as J,J as O,e as M}from"./kongponents.es-605260c0.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as Q}from"./ErrorBlock-c00a9be3.js";import{_ as X}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{d as P,o as t,f as d,a as l,b as s,i as m,e as c,h as o,g as p,Z as S,Q as Z,s as R,c as B,w as Y,r as ee,l as _,q as C,m as T,k as te,F as h,t as r,H as N,p as ae,n as se}from"./index-3e91d6ff.js";import{r as q,h as z}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{T as ne}from"./TagList-337d8082.js";import{S as oe}from"./StatusBadge-456f7f13.js";const ie=""+new URL("icon-empty-table-dbb0b754.svg",import.meta.url).href,le={class:"pagination"},re=P({__name:"PaginationWidget",props:{hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1}},emits:["next","previous"],setup(n,{emit:u}){const a=n,b=q();function w(){u("next"),b.info(S.PAGINATION_NEXT_BUTTON_CLICKED)}function v(){u("previous"),b.info(S.PAGINATION_PREVIOUS_BUTTON_CLICKED)}return(E,x)=>(t(),d("div",le,[a.hasPrevious?(t(),l(c(D),{key:0,appearance:"primary","data-testid":"pagination-previous-button",onClick:v},{default:s(()=>[m(c(k),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":"","aria-hidden":"true"}),o(` Previous `)]),_:1})):p("",!0),o(),a.hasNext?(t(),l(c(D),{key:1,appearance:"primary","data-testid":"pagination-next-button",onClick:w},{default:s(()=>[o(` diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-fdb62467.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-48047e68.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-fdb62467.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-48047e68.js index da77c9d9673a..808c2c0f6d44 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-fdb62467.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-48047e68.js @@ -1,4 +1,4 @@ -import{d as S,r as F,o as e,f as n,h as l,F as m,k as E,l as f,t as g,i as u,b as t,g as R,a as d,m as ke,e as I,p as ge,n as fe,c as z,q as Ee,s as M,w as ae,v as Oe,x as le,y as Ue,z as Qe,A as Ge,C as Me,I as Ie,K as Re,B as Le,u as ze}from"./index-e7c4cb0f.js";import{P as xe,l as _e,e as ve,V as Se}from"./kongponents.es-db3f0bda.js";import{A as J,i as W,h as Y,f as V,j as se,k as Te,l as Ye,g as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as De}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{T as j}from"./TagList-da1dbae1.js";import{_ as we}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as Be}from"./ErrorBlock-86257192.js";import{_ as be}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{t as ie}from"./toYaml-4e00099e.js";import{D as oe,a as q}from"./DefinitionListItem-84d660bf.js";import{E as te}from"./EnvoyData-ebe2f45c.js";import{_ as Ke}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import{S as qe}from"./StatusBadge-d4b430b5.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import{_ as Fe,S as Je}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import{T as We}from"./TabsWidget-67e5cef2.js";import{T as Ve}from"./TextWithCopyButton-7c6aa739.js";import{_ as Xe}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js";import{_ as Ze}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import"./QueryParameter-70743f73.js";const K=c=>(ge("data-v-1a7d780a"),c=c(),fe(),c),$e={class:"mesh-gateway-policy-list"},et=K(()=>f("h3",null,"Gateway policies",-1)),tt={key:0,class:"policy-list"},at=K(()=>f("h3",{class:"mt-6"},` +import{d as S,r as F,o as e,f as n,h as l,F as m,k as E,l as f,t as g,i as u,b as t,g as R,a as d,m as ke,e as I,p as ge,n as fe,c as z,q as Ee,s as M,w as ae,v as Oe,x as le,y as Ue,z as Qe,A as Ge,C as Me,I as Ie,K as Re,B as Le,u as ze}from"./index-3e91d6ff.js";import{P as xe,l as _e,e as ve,V as Se}from"./kongponents.es-605260c0.js";import{A as J,i as W,h as Y,f as V,j as se,k as Te,l as Ye,g as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as De}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{T as j}from"./TagList-337d8082.js";import{_ as we}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as Be}from"./ErrorBlock-c00a9be3.js";import{_ as be}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{t as ie}from"./toYaml-4e00099e.js";import{D as oe,a as q}from"./DefinitionListItem-dd7f1ed7.js";import{E as te}from"./EnvoyData-d68db4e2.js";import{_ as Ke}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import{S as qe}from"./StatusBadge-456f7f13.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import{_ as Fe,S as Je}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import{T as We}from"./TabsWidget-98d43afa.js";import{T as Ve}from"./TextWithCopyButton-6362ddfe.js";import{_ as Xe}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js";import{_ as Ze}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import"./QueryParameter-70743f73.js";const K=c=>(ge("data-v-1a7d780a"),c=c(),fe(),c),$e={class:"mesh-gateway-policy-list"},et=K(()=>f("h3",null,"Gateway policies",-1)),tt={key:0,class:"policy-list"},at=K(()=>f("h3",{class:"mt-6"},` Listeners `,-1)),st=K(()=>f("b",null,"Host",-1)),nt=K(()=>f("h4",{class:"mt-2"},` Routes diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-777ed13b.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-c00650aa.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneList-777ed13b.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneList-c00650aa.js index be8585286b15..501aa21d7632 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-777ed13b.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-c00650aa.js @@ -1,4 +1,4 @@ -var Ke=Object.defineProperty;var Me=(e,n,t)=>n in e?Ke(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ee=(e,n,t)=>(Me(e,typeof n!="symbol"?n+"":n,t),t);import{d as ue,s as I,c as A,w as Z,o as c,f as _,l as v,h as o,i as C,e as F,q as Be,t as P,R as Ae,S as Re,H as Ce,F as M,k as R,g as K,G as je,N as qe,p as de,n as ce,x as Ee,U as De,v as xe,y as ze,r as He,a as B,b as D,E as Se,A as Qe,C as Ge,V as Ze,W as Je,K as Ye,B as We,X as Xe,P as et,Y as Pe,Z as tt}from"./index-e7c4cb0f.js";import{l as te,Z as at,B as nt,J as st,T as lt}from"./kongponents.es-db3f0bda.js";import{C as ot}from"./ContentWrapper-a800305f.js";import{D as it}from"./DataOverview-49747af7.js";import{_ as rt}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{h as pe,j as ut,k as dt,r as ct,f as pt}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{a as q,D as re}from"./DefinitionListItem-84d660bf.js";import{_ as ft}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import{S as mt}from"./StatusBadge-d4b430b5.js";import{T as vt}from"./TagList-da1dbae1.js";import{T as gt}from"./TextWithCopyButton-7c6aa739.js";import{Q as z}from"./QueryParameter-70743f73.js";const Ie=[{key:"status",label:"Status"},{key:"entity",label:"Name"},{key:"type",label:"Type"},{key:"service",label:"Service"},{key:"protocol",label:"Protocol"},{key:"zone",label:"Zone"},{key:"lastConnected",label:"Last Connected"},{key:"lastUpdated",label:"Last Updated"},{key:"totalUpdates",label:"Total Updates"},{key:"dpVersion",label:"Kuma DP version"},{key:"envoyVersion",label:"Envoy version"}],yt=["entity"],ht=Ie.filter(e=>!yt.includes(e.key)).map(e=>({tableHeaderKey:e.key,label:e.label,isChecked:!1})),Oe=["status","entity","type","service","protocol","zone","lastUpdated","dpVersion"];function _t(e,n=Oe){return Ie.filter(t=>n.includes(t.key)?e?!0:t.key!=="zone":!1)}function bt(e,n,t){return Math.max(n,Math.min(e,t))}const kt=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class wt{constructor(n,t){ee(this,"commands");ee(this,"keyMap");ee(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(n).map(([w,r])=>[w.toLowerCase(),r])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(n){Tt(n,this.keyMap,this.commands)}}function Tt(e,n,t){const w=Ct(e.code),r=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",w].filter(m=>m!=="").join("+"),u=n[r];if(!u)return;const h=t[u];h.isAllowedContext&&!h.isAllowedContext(e)||(h.shouldPreventDefaultAction&&e.preventDefault(),!(h.isDisabled&&h.isDisabled())&&h.trigger(e))}function Ct(e){return kt.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}function Dt(e,n){const t=" "+e,w=t.matchAll(/ ([-\s\w]+):\s*/g),r=[];for(const u of Array.from(w)){if(u.index===void 0)continue;const h=St(u[1]);if(n.length>0&&!n.includes(h))throw new Error(`Unknown field “${h}”. Known fields: ${n.join(", ")}`);const m=u.index+u[0].length,T=t.substring(m);let S;if(/^\s*["']/.test(T)){const p=T.match(/['"](.*?)['"]/);if(p!==null)S=p[1];else throw new Error(`Quote mismatch for field “${h}”.`)}else{const p=T.indexOf(" "),g=p===-1?T.length:p;S=T.substring(0,g)}S!==""&&r.push([h,S])}return r}function St(e){return e.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(n,t)=>t===0?n:n.substring(1).toUpperCase())}const Ue=e=>(de("data-v-2fcde9ea"),e=e(),ce(),e),Pt=Ue(()=>v("span",{class:"visually-hidden"},"Focus filter",-1)),At=["for"],Et=["id","placeholder"],xt={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},It={class:"k-suggestion-list"},Ot={key:0,class:"k-filter-bar-error"},Ut={key:0},Vt=["title","data-filter-field"],Nt={class:"visually-hidden"},$t=Ue(()=>v("span",{class:"visually-hidden"},"Clear query",-1)),Ft=ue({__name:"KFilterBar",props:{id:{type:String,required:!0},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(e,{emit:n}){const t=e,w=I(null),r=I(null),u=I(t.query),h=I([]),m=I(null),T=I(!1),S=I(-1),O=A(()=>Object.keys(t.fields)),p=A(()=>Object.entries(t.fields).slice(0,5).map(([a,l])=>({fieldName:a,...l}))),g=A(()=>O.value.length>0?`Filter by ${O.value.join(", ")}`:"Filter"),y=A(()=>t.placeholder??g.value);Z(()=>h.value,function(a,l){i(a,l)||(m.value=null,n("fields-change",{fields:a,query:u.value}))}),Z(()=>u.value,function(){u.value===""&&(m.value=null),T.value=!0});const b={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},k={submitQuery:{trigger:E,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:L,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:H,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:G,isAllowedContext(a){return w.value!==null&&a.composedPath().includes(w.value)}}};function N(){const a=new wt(b,k);je(function(){a.registerListener()}),qe(function(){a.unRegisterListener()}),s(u.value)}N();function U(a){const l=a.target;s(l.value)}function E(){if(r.value instanceof HTMLInputElement)if(S.value===-1)s(r.value.value),T.value=!1;else{const a=p.value[S.value].fieldName;a&&Q(r.value,a)}}function L(){J(1)}function H(){J(-1)}function J(a){S.value=bt(S.value+a,-1,p.value.length-1)}function ae(){r.value instanceof HTMLInputElement&&r.value.focus()}function ne(a){const d=a.currentTarget.getAttribute("data-filter-field");d&&r.value instanceof HTMLInputElement&&Q(r.value,d)}function Q(a,l){const d=u.value===""||u.value.endsWith(" ")?"":" ";u.value+=d+l+":",a.focus(),S.value=-1}function Y(){u.value="",r.value instanceof HTMLInputElement&&(r.value.value="",r.value.focus(),s(""))}function se(a){a.relatedTarget===null&&G(),w.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!w.value.contains(a.relatedTarget)&&G()}function G(){T.value=!1}function s(a){m.value=null;try{const l=Dt(a,O.value);l.sort((d,V)=>d[0].localeCompare(V[0])),h.value=l}catch(l){if(l instanceof Error)m.value=l,T.value=!0;else throw l}}function i(a,l){return JSON.stringify(a)===JSON.stringify(l)}return(a,l)=>(c(),_("div",{ref_key:"filterBar",ref:w,class:"k-filter-bar","data-testid":"k-filter-bar"},[v("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:ae},[Pt,o(),C(F(te),{"aria-hidden":"true",class:"k-filter-icon",color:"var(--grey-400)","data-testid":"k-filter-bar-filter-icon","hide-title":"",icon:"filter",size:"20"})]),o(),v("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[Be(a.$slots,"default",{},()=>[o(P(g.value),1)],!0)],8,At),o(),Ae(v("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:r,"onUpdate:modelValue":l[0]||(l[0]=d=>u.value=d),class:"k-filter-bar-input",type:"text",placeholder:y.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=d=>T.value=!0),onBlur:se,onChange:U},null,40,Et),[[Re,u.value]]),o(),T.value?(c(),_("div",xt,[v("div",It,[m.value!==null?(c(),_("p",Ot,P(m.value.message),1)):(c(),_("button",{key:1,class:Ce(["k-submit-query-button",{"k-submit-query-button-is-selected":S.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:E},` +var Ke=Object.defineProperty;var Me=(e,n,t)=>n in e?Ke(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ee=(e,n,t)=>(Me(e,typeof n!="symbol"?n+"":n,t),t);import{d as ue,s as I,c as A,w as Z,o as c,f as _,l as v,h as o,i as C,e as F,q as Be,t as P,R as Ae,S as Re,H as Ce,F as M,k as R,g as K,G as je,N as qe,p as de,n as ce,x as Ee,U as De,v as xe,y as ze,r as He,a as B,b as D,E as Se,A as Qe,C as Ge,V as Ze,W as Je,K as Ye,B as We,X as Xe,P as et,Y as Pe,Z as tt}from"./index-3e91d6ff.js";import{l as te,Z as at,B as nt,J as st,T as lt}from"./kongponents.es-605260c0.js";import{C as ot}from"./ContentWrapper-ae5c5230.js";import{D as it}from"./DataOverview-7f440d3d.js";import{_ as rt}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{h as pe,j as ut,k as dt,r as ct,f as pt}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{a as q,D as re}from"./DefinitionListItem-dd7f1ed7.js";import{_ as ft}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import{S as mt}from"./StatusBadge-456f7f13.js";import{T as vt}from"./TagList-337d8082.js";import{T as gt}from"./TextWithCopyButton-6362ddfe.js";import{Q as z}from"./QueryParameter-70743f73.js";const Ie=[{key:"status",label:"Status"},{key:"entity",label:"Name"},{key:"type",label:"Type"},{key:"service",label:"Service"},{key:"protocol",label:"Protocol"},{key:"zone",label:"Zone"},{key:"lastConnected",label:"Last Connected"},{key:"lastUpdated",label:"Last Updated"},{key:"totalUpdates",label:"Total Updates"},{key:"dpVersion",label:"Kuma DP version"},{key:"envoyVersion",label:"Envoy version"}],yt=["entity"],ht=Ie.filter(e=>!yt.includes(e.key)).map(e=>({tableHeaderKey:e.key,label:e.label,isChecked:!1})),Oe=["status","entity","type","service","protocol","zone","lastUpdated","dpVersion"];function _t(e,n=Oe){return Ie.filter(t=>n.includes(t.key)?e?!0:t.key!=="zone":!1)}function bt(e,n,t){return Math.max(n,Math.min(e,t))}const kt=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class wt{constructor(n,t){ee(this,"commands");ee(this,"keyMap");ee(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(n).map(([w,r])=>[w.toLowerCase(),r])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(n){Tt(n,this.keyMap,this.commands)}}function Tt(e,n,t){const w=Ct(e.code),r=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",w].filter(m=>m!=="").join("+"),u=n[r];if(!u)return;const h=t[u];h.isAllowedContext&&!h.isAllowedContext(e)||(h.shouldPreventDefaultAction&&e.preventDefault(),!(h.isDisabled&&h.isDisabled())&&h.trigger(e))}function Ct(e){return kt.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}function Dt(e,n){const t=" "+e,w=t.matchAll(/ ([-\s\w]+):\s*/g),r=[];for(const u of Array.from(w)){if(u.index===void 0)continue;const h=St(u[1]);if(n.length>0&&!n.includes(h))throw new Error(`Unknown field “${h}”. Known fields: ${n.join(", ")}`);const m=u.index+u[0].length,T=t.substring(m);let S;if(/^\s*["']/.test(T)){const p=T.match(/['"](.*?)['"]/);if(p!==null)S=p[1];else throw new Error(`Quote mismatch for field “${h}”.`)}else{const p=T.indexOf(" "),g=p===-1?T.length:p;S=T.substring(0,g)}S!==""&&r.push([h,S])}return r}function St(e){return e.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(n,t)=>t===0?n:n.substring(1).toUpperCase())}const Ue=e=>(de("data-v-2fcde9ea"),e=e(),ce(),e),Pt=Ue(()=>v("span",{class:"visually-hidden"},"Focus filter",-1)),At=["for"],Et=["id","placeholder"],xt={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},It={class:"k-suggestion-list"},Ot={key:0,class:"k-filter-bar-error"},Ut={key:0},Vt=["title","data-filter-field"],Nt={class:"visually-hidden"},$t=Ue(()=>v("span",{class:"visually-hidden"},"Clear query",-1)),Ft=ue({__name:"KFilterBar",props:{id:{type:String,required:!0},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(e,{emit:n}){const t=e,w=I(null),r=I(null),u=I(t.query),h=I([]),m=I(null),T=I(!1),S=I(-1),O=A(()=>Object.keys(t.fields)),p=A(()=>Object.entries(t.fields).slice(0,5).map(([a,l])=>({fieldName:a,...l}))),g=A(()=>O.value.length>0?`Filter by ${O.value.join(", ")}`:"Filter"),y=A(()=>t.placeholder??g.value);Z(()=>h.value,function(a,l){i(a,l)||(m.value=null,n("fields-change",{fields:a,query:u.value}))}),Z(()=>u.value,function(){u.value===""&&(m.value=null),T.value=!0});const b={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},k={submitQuery:{trigger:E,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:L,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:H,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:G,isAllowedContext(a){return w.value!==null&&a.composedPath().includes(w.value)}}};function N(){const a=new wt(b,k);je(function(){a.registerListener()}),qe(function(){a.unRegisterListener()}),s(u.value)}N();function U(a){const l=a.target;s(l.value)}function E(){if(r.value instanceof HTMLInputElement)if(S.value===-1)s(r.value.value),T.value=!1;else{const a=p.value[S.value].fieldName;a&&Q(r.value,a)}}function L(){J(1)}function H(){J(-1)}function J(a){S.value=bt(S.value+a,-1,p.value.length-1)}function ae(){r.value instanceof HTMLInputElement&&r.value.focus()}function ne(a){const d=a.currentTarget.getAttribute("data-filter-field");d&&r.value instanceof HTMLInputElement&&Q(r.value,d)}function Q(a,l){const d=u.value===""||u.value.endsWith(" ")?"":" ";u.value+=d+l+":",a.focus(),S.value=-1}function Y(){u.value="",r.value instanceof HTMLInputElement&&(r.value.value="",r.value.focus(),s(""))}function se(a){a.relatedTarget===null&&G(),w.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!w.value.contains(a.relatedTarget)&&G()}function G(){T.value=!1}function s(a){m.value=null;try{const l=Dt(a,O.value);l.sort((d,V)=>d[0].localeCompare(V[0])),h.value=l}catch(l){if(l instanceof Error)m.value=l,T.value=!0;else throw l}}function i(a,l){return JSON.stringify(a)===JSON.stringify(l)}return(a,l)=>(c(),_("div",{ref_key:"filterBar",ref:w,class:"k-filter-bar","data-testid":"k-filter-bar"},[v("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:ae},[Pt,o(),C(F(te),{"aria-hidden":"true",class:"k-filter-icon",color:"var(--grey-400)","data-testid":"k-filter-bar-filter-icon","hide-title":"",icon:"filter",size:"20"})]),o(),v("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[Be(a.$slots,"default",{},()=>[o(P(g.value),1)],!0)],8,At),o(),Ae(v("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:r,"onUpdate:modelValue":l[0]||(l[0]=d=>u.value=d),class:"k-filter-bar-input",type:"text",placeholder:y.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=d=>T.value=!0),onBlur:se,onChange:U},null,40,Et),[[Re,u.value]]),o(),T.value?(c(),_("div",xt,[v("div",It,[m.value!==null?(c(),_("p",Ot,P(m.value.message),1)):(c(),_("button",{key:1,class:Ce(["k-submit-query-button",{"k-submit-query-button-is-selected":S.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:E},` Submit `+P(u.value),3)),o(),(c(!0),_(M,null,R(p.value,(d,V)=>(c(),_("div",{key:`${t.id}-${V}`,class:Ce(["k-suggestion-list-item",{"k-suggestion-list-item-is-selected":S.value===V}])},[v("b",null,P(d.fieldName),1),d.description!==""?(c(),_("span",Ut,": "+P(d.description),1)):K("",!0),o(),v("button",{class:"k-apply-suggestion-button",title:`Add ${d.fieldName}:`,type:"button","data-filter-field":d.fieldName,"data-testid":"k-filter-bar-apply-suggestion-button",onClick:ne},[v("span",Nt,"Add "+P(d.fieldName)+":",1),o(),C(F(te),{"aria-hidden":"true",color:"currentColor","hide-title":"",icon:"chevronRight",size:"16"})],8,Vt)],2))),128))])])):K("",!0),o(),u.value!==""?(c(),_("button",{key:1,class:"k-clear-query-button",title:"Clear query",type:"button","data-testid":"k-filter-bar-clear-query-button",onClick:Y},[$t,o(),C(F(te),{"aria-hidden":"true",color:"currentColor",icon:"clear","hide-title":"",size:"20"})])):K("",!0)],512))}});const Lt=pe(Ft,[["__scopeId","data-v-2fcde9ea"]]),Ve=e=>(de("data-v-fc544ac8"),e=e(),ce(),e),Kt={class:"entity-section-list"},Mt={class:"entity-title","data-testid":"data-plane-proxy-title"},Bt={class:"mt-2 heading-with-icon"},Rt={key:0},jt=Ve(()=>v("h4",null,"Insights",-1)),qt={class:"block-list"},zt={key:0,class:"mt-2"},Ht=Ve(()=>v("summary",null,` Responses (acknowledged / sent) `,-1)),Qt=ue({__name:"DataPlaneEntitySummary",props:{dataPlaneOverview:{type:Object,required:!0}},setup(e){const n=e,t=ut(),{t:w}=dt(),r=A(()=>({name:"data-plane-detail-view",params:{mesh:n.dataPlaneOverview.mesh,dataPlane:n.dataPlaneOverview.name}})),u=A(()=>Ee(n.dataPlaneOverview.dataplane)),h=A(()=>{var g;const p=Array.from(((g=n.dataPlaneOverview.dataplaneInsight)==null?void 0:g.subscriptions)??[]);return p.reverse(),p.map(y=>{const b=y.connectTime!==void 0?De(y.connectTime):"—",k=y.disconnectTime!==void 0?De(y.disconnectTime):"—",N=Object.entries(y.status).filter(([U])=>!["total","lastUpdateTime"].includes(U)).map(([U,E])=>{const L=`${E.responsesAcknowledged??0} / ${E.responsesSent??0}`;return{type:U.toUpperCase(),ratio:L,responsesSent:E.responsesSent??0,responsesAcknowledged:E.responsesAcknowledged??0,responsesRejected:E.responsesRejected??0}});return{subscription:y,formattedConnectDate:b,formattedDisconnectDate:k,statuses:N}})}),m=A(()=>{const{status:p}=xe(n.dataPlaneOverview.dataplane,n.dataPlaneOverview.dataplaneInsight);return p}),T=A(()=>{const p=ze(n.dataPlaneOverview.dataplaneInsight);return p!==null?Object.entries(p).map(([g,y])=>({name:g,version:y})):[]}),S=A(()=>{var E;const p=((E=n.dataPlaneOverview.dataplaneInsight)==null?void 0:E.subscriptions)??[];if(p.length===0)return[];const g=p[p.length-1];if(!g.version)return[];const y=[],b=g.version.envoy,k=g.version.kumaDp;if(!(b.kumaDpCompatible!==void 0?b.kumaDpCompatible:!0)){const L=`Envoy ${b.version} is not supported by Kuma DP ${k.version}.`;y.push(L)}if(!(k.kumaCpCompatible!==void 0?k.kumaCpCompatible:!0)){const L=`Kuma DP ${k.version} is not supported by this Kuma control plane.`;y.push(L)}return y});async function O(p){const{mesh:g,name:y}=n.dataPlaneOverview;return await t.getDataplaneFromMesh({mesh:g,name:y},p)}return(p,g)=>{const y=He("router-link");return c(),B(F(at),null,{body:D(()=>[v("div",Kt,[v("section",null,[v("h3",Mt,[v("span",null,[o(` diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-a1fb93b6.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-80bf6214.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-a1fb93b6.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-80bf6214.js index 19b3c2baacd1..3d801e2ff72c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-a1fb93b6.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-80bf6214.js @@ -1 +1 @@ -import{d as P,u as V,s as r,c as A,w as I,P as S,o as b,a as k,b as w,i as c,e as G,h as N}from"./index-e7c4cb0f.js";import{D as O}from"./DataPlaneList-777ed13b.js";import{j as q,k as B,g as R,_ as $}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{Q as f}from"./QueryParameter-70743f73.js";import"./kongponents.es-db3f0bda.js";import"./ContentWrapper-a800305f.js";import"./DataOverview-49747af7.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";import"./DefinitionListItem-84d660bf.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./TextWithCopyButton-7c6aa739.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./toYaml-4e00099e.js";const oe=P({__name:"DataPlaneListView",props:{selectedDppName:{type:String,required:!1,default:null},gatewayType:{type:String,required:!1,default:"true"},offset:{type:Number,required:!1,default:0},isGatewayView:{type:Boolean,required:!1,default:!1}},setup(v){const a=v,g=q(),{t:_}=B(),D={name:{description:"filter by name or parts of a name"},service:{description:"filter by “kuma.io/service” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},E={protocol:{description:"filter by “kuma.io/protocol” value"}},F={},i=V(),o=r([]),n=r(!0),d=r(null),p=r(null),y=r(a.offset),L=A(()=>({...D,...a.isGatewayView?F:E}));I(()=>i.params.mesh,function(){i.name!=="data-planes-list-view"&&i.name!=="gateways-list-view"||u(0)});function T(){const t=f.get("filterFields"),s=t!==null?JSON.parse(t):{};u(a.offset,{...s,gateway:a.gatewayType})}T();async function u(t,s={}){y.value=t,f.set("offset",t>0?t:null),f.set("gatewayType",s.gateway==="true"?"all":s.gateway),n.value=!0;const m=i.params.mesh,l=h(s,S,t,a.isGatewayView);try{const{items:e,next:x}=await g.getAllDataplaneOverviewsFromMesh({mesh:m},l);p.value=x,o.value=e??[]}catch(e){e instanceof Error?d.value=e:console.error(e),o.value=[],p.value=null}finally{n.value=!1}}function h(t,s,m,l){const e={...t,size:s,offset:m};return l&&(!("gateway"in e)||e.gateway==="false")?e.gateway="true":l||(e.gateway="false"),e}return(t,s)=>(b(),k($,{module:a.isGatewayView?"gateways":"data-planes"},{default:w(()=>[c(z,{title:G(_)(`${a.isGatewayView?"gateways":"data-planes"}.routes.items.title`)},null,8,["title"]),N(),c(R,null,{default:w(()=>[c(O,{"data-plane-overviews":o.value,"is-loading":n.value,error:d.value,"next-url":p.value,"page-offset":y.value,"selected-dpp-name":a.selectedDppName,"is-gateway-view":a.isGatewayView,"gateway-type":a.gatewayType,"dpp-filter-fields":L.value,onLoadData:u},null,8,["data-plane-overviews","is-loading","error","next-url","page-offset","selected-dpp-name","is-gateway-view","gateway-type","dpp-filter-fields"])]),_:1})]),_:1},8,["module"]))}});export{oe as default}; +import{d as P,u as V,s as r,c as A,w as I,P as S,o as b,a as k,b as w,i as c,e as G,h as N}from"./index-3e91d6ff.js";import{D as O}from"./DataPlaneList-c00650aa.js";import{j as q,k as B,g as R,_ as $}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{Q as f}from"./QueryParameter-70743f73.js";import"./kongponents.es-605260c0.js";import"./ContentWrapper-ae5c5230.js";import"./DataOverview-7f440d3d.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";import"./DefinitionListItem-dd7f1ed7.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./TextWithCopyButton-6362ddfe.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./toYaml-4e00099e.js";const oe=P({__name:"DataPlaneListView",props:{selectedDppName:{type:String,required:!1,default:null},gatewayType:{type:String,required:!1,default:"true"},offset:{type:Number,required:!1,default:0},isGatewayView:{type:Boolean,required:!1,default:!1}},setup(v){const a=v,g=q(),{t:_}=B(),D={name:{description:"filter by name or parts of a name"},service:{description:"filter by “kuma.io/service” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},E={protocol:{description:"filter by “kuma.io/protocol” value"}},F={},i=V(),o=r([]),n=r(!0),d=r(null),p=r(null),y=r(a.offset),L=A(()=>({...D,...a.isGatewayView?F:E}));I(()=>i.params.mesh,function(){i.name!=="data-planes-list-view"&&i.name!=="gateways-list-view"||u(0)});function T(){const t=f.get("filterFields"),s=t!==null?JSON.parse(t):{};u(a.offset,{...s,gateway:a.gatewayType})}T();async function u(t,s={}){y.value=t,f.set("offset",t>0?t:null),f.set("gatewayType",s.gateway==="true"?"all":s.gateway),n.value=!0;const m=i.params.mesh,l=h(s,S,t,a.isGatewayView);try{const{items:e,next:x}=await g.getAllDataplaneOverviewsFromMesh({mesh:m},l);p.value=x,o.value=e??[]}catch(e){e instanceof Error?d.value=e:console.error(e),o.value=[],p.value=null}finally{n.value=!1}}function h(t,s,m,l){const e={...t,size:s,offset:m};return l&&(!("gateway"in e)||e.gateway==="false")?e.gateway="true":l||(e.gateway="false"),e}return(t,s)=>(b(),k($,{module:a.isGatewayView?"gateways":"data-planes"},{default:w(()=>[c(z,{title:G(_)(`${a.isGatewayView?"gateways":"data-planes"}.routes.items.title`)},null,8,["title"]),N(),c(R,null,{default:w(()=>[c(O,{"data-plane-overviews":o.value,"is-loading":n.value,error:d.value,"next-url":p.value,"page-offset":y.value,"selected-dpp-name":a.selectedDppName,"is-gateway-view":a.isGatewayView,"gateway-type":a.gatewayType,"dpp-filter-fields":L.value,onLoadData:u},null,8,["data-plane-overviews","is-loading","error","next-url","page-offset","selected-dpp-name","is-gateway-view","gateway-type","dpp-filter-fields"])]),_:1})]),_:1},8,["module"]))}});export{oe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-3e02669f.js b/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-9e8777c7.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-3e02669f.js rename to app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-9e8777c7.js index 3188bd4bf872..78da180585c1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-3e02669f.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-9e8777c7.js @@ -1,4 +1,4 @@ -import{d as G,D as Y,s as p,c as x,w as Q,_ as X,o as u,a as S,b as n,i,e as r,h as a,l as e,t as m,L as Z,R as c,X as H,f as h,k as J,F as ee,$ as k,S as M,g as y,p as ae,n as se}from"./index-e7c4cb0f.js";import{Z as v,T as B,V as E}from"./kongponents.es-db3f0bda.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js";import{E as te}from"./EnvironmentSwitcher-cd6444cb.js";import{S as le,F as _}from"./StepSkeleton-759bb1a3.js";import{f as oe}from"./formatForCLI-931cd5c6.js";import{j as ie,k as re,f as de,g as ue,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as me}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as U}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{Q as he}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";const ve={apiVersion:"v1",kind:"Namespace",metadata:{name:null,namespace:null,labels:{"kuma.io/sidecar-injection":"enabled"},annotations:{"kuma.io/mesh":null}}},l=f=>(ae("data-v-8d55aae9"),f=f(),se(),f),_e={class:"wizard"},ke={class:"wizard__content"},ye=l(()=>e("h3",null,` +import{d as G,D as Y,s as p,c as x,w as Q,_ as X,o as u,a as S,b as n,i,e as r,h as a,l as e,t as m,L as Z,R as c,X as H,f as h,k as J,F as ee,$ as k,S as M,g as y,p as ae,n as se}from"./index-3e91d6ff.js";import{Z as v,T as B,V as E}from"./kongponents.es-605260c0.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js";import{E as te}from"./EnvironmentSwitcher-2d9d2cf0.js";import{S as le,F as _}from"./StepSkeleton-f870dd24.js";import{f as oe}from"./formatForCLI-931cd5c6.js";import{j as ie,k as re,f as de,g as ue,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as me}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as U}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{Q as he}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";const ve={apiVersion:"v1",kind:"Namespace",metadata:{name:null,namespace:null,labels:{"kuma.io/sidecar-injection":"enabled"},annotations:{"kuma.io/mesh":null}}},l=f=>(ae("data-v-8d55aae9"),f=f(),se(),f),_e={class:"wizard"},ke={class:"wizard__content"},ye=l(()=>e("h3",null,` Create Kubernetes Dataplane `,-1)),ge=l(()=>e("h3",null,` To get started, please select on what Mesh you would like to add the Dataplane: diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-9a78b391.js b/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-a226067e.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-9a78b391.js rename to app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-a226067e.js index 6544e03cf5f9..cd4918e3657b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-9a78b391.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-a226067e.js @@ -1,4 +1,4 @@ -import{d as j,o as u,a as U,b as l,l as a,q as de,i as r,e as d,h as e,D as pe,s as _,c as D,w as G,_ as M,t as v,L as ce,R as m,X as R,f,k as B,F as O,$ as W,S as N,g as q,p as ve,n as me}from"./index-e7c4cb0f.js";import{l as he,h as _e,Z as fe,T as $,V as we}from"./kongponents.es-db3f0bda.js";import{_ as De}from"./EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js";import{E as ke}from"./EnvironmentSwitcher-cd6444cb.js";import{S as ge,F as c}from"./StepSkeleton-759bb1a3.js";import{h as H,j as ye,k as Se,f as Ne,g as be,_ as Pe}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as Ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as C}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{Q as Te}from"./QueryParameter-70743f73.js";import{t as xe}from"./toYaml-4e00099e.js";const Ae={type:"Dataplane",mesh:null,name:null,networking:{}},Me=j({__name:"HelperTooltip",props:{placement:{type:String,required:!1,default:void 0}},setup(h){const b=h;return(P,E)=>(u(),U(d(_e),{class:"help-icon",trigger:"click",width:"100%","max-width":"300",placement:b.placement},{content:l(()=>[a("div",null,[de(P.$slots,"default",{},void 0,!0)])]),default:l(()=>[r(d(he),{icon:"info",color:"var(--grey-500)",size:"16","hide-title":""}),e()]),_:3},8,["placement"]))}});const w=H(Me,[["__scopeId","data-v-8cf92c6f"]]);function $e(){return"https://localhost:5678/".replace("localhost",window.location.hostname)}const i=h=>(ve("data-v-9f023d47"),h=h(),me(),h),Ce={class:"wizard"},Ue={class:"wizard__content"},Ee=i(()=>a("h3",null,` +import{d as j,o as u,a as U,b as l,l as a,q as de,i as r,e as d,h as e,D as pe,s as _,c as D,w as G,_ as M,t as v,L as ce,R as m,X as R,f,k as B,F as O,$ as W,S as N,g as q,p as ve,n as me}from"./index-3e91d6ff.js";import{l as he,h as _e,Z as fe,T as $,V as we}from"./kongponents.es-605260c0.js";import{_ as De}from"./EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js";import{E as ke}from"./EnvironmentSwitcher-2d9d2cf0.js";import{S as ge,F as c}from"./StepSkeleton-f870dd24.js";import{h as H,j as ye,k as Se,f as Ne,g as be,_ as Pe}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as Ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as C}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{Q as Te}from"./QueryParameter-70743f73.js";import{t as xe}from"./toYaml-4e00099e.js";const Ae={type:"Dataplane",mesh:null,name:null,networking:{}},Me=j({__name:"HelperTooltip",props:{placement:{type:String,required:!1,default:void 0}},setup(h){const b=h;return(P,E)=>(u(),U(d(_e),{class:"help-icon",trigger:"click",width:"100%","max-width":"300",placement:b.placement},{content:l(()=>[a("div",null,[de(P.$slots,"default",{},void 0,!0)])]),default:l(()=>[r(d(he),{icon:"info",color:"var(--grey-500)",size:"16","hide-title":""}),e()]),_:3},8,["placement"]))}});const w=H(Me,[["__scopeId","data-v-8cf92c6f"]]);function $e(){return"https://localhost:5678/".replace("localhost",window.location.hostname)}const i=h=>(ve("data-v-9f023d47"),h=h(),me(),h),Ce={class:"wizard"},Ue={class:"wizard__content"},Ee=i(()=>a("h3",null,` Create Universal Dataplane `,-1)),Ve=i(()=>a("h3",null,` To get started, please select on what Mesh you would like to add the Dataplane: diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-a37b266c.js b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-54aa5c01.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-a37b266c.js rename to app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-54aa5c01.js index b9ff4ead97cb..c930cf59d806 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-a37b266c.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-54aa5c01.js @@ -1,3 +1,3 @@ -import{e as A}from"./kongponents.es-db3f0bda.js";import{L as S}from"./LoadingBox-23a1489f.js";import{O as N,a as T,b as F}from"./OnboardingPage-e954db95.js";import{j as I,k as E,g as L,_ as $,h as C}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as H}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{S as M}from"./StatusBadge-d4b430b5.js";import{d as R,s as b,c as w,N as V,O as j,o as n,a as y,b as a,i as s,e as k,h as u,m as z,l as o,t as c,f as d,F as K}from"./index-e7c4cb0f.js";const U={key:0,class:"status-loading-box mb-4"},W={key:1},q={class:"mb-4"},G=R({__name:"DataplanesOverview",setup(J){const m=I(),{t:x}=E(),D=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),O=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),p=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);V(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await m.getAllDataplanes({size:10});if(Array.isArray(t))for(const B of t){const{name:v,mesh:g}=B,P=await m.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=j(P.dataplaneInsight);h==="offline"&&(i=!0),r.push({status:h,name:v,mesh:g})}}catch(t){console.error(t)}e.value.data=r,e.value.total=e.value.data.length,i&&(_(),l.value=window.setTimeout(f,1e3))}return(i,r)=>(n(),y($,null,{default:a(()=>[s(H,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(L,null,{default:a(()=>[s(N,null,{header:a(()=>[s(T,null,z({title:a(()=>[o("p",null,c(O.value),1)]),_:2},[p.value!==null?{name:"description",fn:a(()=>[o("p",null,c(p.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",U,[s(S)])):(n(),d("div",W,[o("p",q,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(A),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(M,{key:0,status:t},null,8,["status"])):(n(),d(K,{key:1},[u(` +import{e as A}from"./kongponents.es-605260c0.js";import{L as S}from"./LoadingBox-ff395360.js";import{O as N,a as T,b as F}from"./OnboardingPage-ed86946b.js";import{j as I,k as E,g as L,_ as $,h as C}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as H}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{S as M}from"./StatusBadge-456f7f13.js";import{d as R,s as b,c as w,N as V,O as j,o as n,a as y,b as a,i as s,e as k,h as u,m as z,l as o,t as c,f as d,F as K}from"./index-3e91d6ff.js";const U={key:0,class:"status-loading-box mb-4"},W={key:1},q={class:"mb-4"},G=R({__name:"DataplanesOverview",setup(J){const m=I(),{t:x}=E(),D=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),O=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),p=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);V(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await m.getAllDataplanes({size:10});if(Array.isArray(t))for(const B of t){const{name:v,mesh:g}=B,P=await m.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=j(P.dataplaneInsight);h==="offline"&&(i=!0),r.push({status:h,name:v,mesh:g})}}catch(t){console.error(t)}e.value.data=r,e.value.total=e.value.data.length,i&&(_(),l.value=window.setTimeout(f,1e3))}return(i,r)=>(n(),y($,null,{default:a(()=>[s(H,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(L,null,{default:a(()=>[s(N,null,{header:a(()=>[s(T,null,z({title:a(()=>[o("p",null,c(O.value),1)]),_:2},[p.value!==null?{name:"description",fn:a(()=>[o("p",null,c(p.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",U,[s(S)])):(n(),d("div",W,[o("p",q,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(A),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(M,{key:0,status:t},null,8,["status"])):(n(),d(K,{key:1},[u(` — `)],64))]),_:1},8,["fetcher"])]))]),navigation:a(()=>[s(F,{"next-step":"onboarding-completed","previous-step":"onboarding-add-services-code","should-allow-next":e.value.data.length>0},null,8,["should-allow-next"])]),_:1})]),_:1})]),_:1}))}});const se=C(G,[["__scopeId","data-v-4588fbe4"]]);export{se as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-84d660bf.js b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-dd7f1ed7.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-84d660bf.js rename to app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-dd7f1ed7.js index 1f15e876beb8..0308ce1fcc4c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-84d660bf.js +++ b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-dd7f1ed7.js @@ -1 +1 @@ -import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{o as n,f as o,q as _,d,l as s,t as a,h as r}from"./index-e7c4cb0f.js";const l={},f={class:"definition-list"};function p(e,t){return n(),o("dl",f,[_(e.$slots,"default",{},void 0,!0)])}const I=i(l,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},h={class:"definition-list-item__details"},v=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,D)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",h,[_(c.$slots,"default",{},void 0,!0)])]))}});const L=i(v,[["__scopeId","data-v-74f2c619"]]);export{I as D,L as a}; +import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{o as n,f as o,q as _,d,l as s,t as a,h as r}from"./index-3e91d6ff.js";const l={},f={class:"definition-list"};function p(e,t){return n(),o("dl",f,[_(e.$slots,"default",{},void 0,!0)])}const I=i(l,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},h={class:"definition-list-item__details"},v=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,D)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",h,[_(c.$slots,"default",{},void 0,!0)])]))}});const L=i(v,[["__scopeId","data-v-74f2c619"]]);export{I as D,L as a}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-da2ed16b.js b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-33994be5.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-da2ed16b.js rename to app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-33994be5.js index f06e77013b0d..65b4b6c3d7a2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-da2ed16b.js +++ b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-33994be5.js @@ -1,4 +1,4 @@ -import{n as i}from"./kongponents.es-db3f0bda.js";import{O as g,a as b,b as v}from"./OnboardingPage-e954db95.js";import{m as y,n as h,f as V,k as z,g as x,_ as G,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as D,s as C,c as N,G as O,o as u,a as r,b as e,i as a,e as s,h as t,l as d,t as T,L as k,j as w}from"./index-e7c4cb0f.js";const B={class:"graph-list mb-6"},P={class:"radio-button-group"},U=D({__name:"DeploymentTypes",setup($){const m=y(),p={standalone:h(),"multi-zone":m},c=V(),{t:_}=z(),n=C("standalone"),f=N(()=>p[n.value]);return O(function(){n.value=c.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(L,o)=>(u(),r(G,null,{default:e(()=>[a(S,{title:s(_)("onboarding.routes.deployment-types.title")},null,8,["title"]),t(),a(x,null,{default:e(()=>[a(g,{"with-image":""},{header:e(()=>[a(b,null,{title:e(()=>[t(` +import{n as i}from"./kongponents.es-605260c0.js";import{O as g,a as b,b as v}from"./OnboardingPage-ed86946b.js";import{m as y,n as h,f as V,k as z,g as x,_ as G,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as D,s as C,c as N,G as O,o as u,a as r,b as e,i as a,e as s,h as t,l as d,t as T,L as k,j as w}from"./index-3e91d6ff.js";const B={class:"graph-list mb-6"},P={class:"radio-button-group"},U=D({__name:"DeploymentTypes",setup($){const m=y(),p={standalone:h(),"multi-zone":m},c=V(),{t:_}=z(),n=C("standalone"),f=N(()=>p[n.value]);return O(function(){n.value=c.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(L,o)=>(u(),r(G,null,{default:e(()=>[a(S,{title:s(_)("onboarding.routes.deployment-types.title")},null,8,["title"]),t(),a(x,null,{default:e(()=>[a(g,{"with-image":""},{header:e(()=>[a(b,null,{title:e(()=>[t(` Learn about deployments `)]),description:e(()=>[d("p",null,T(s(k))+" can be deployed in standalone or multi-zone mode.",1)]),_:1})]),content:e(()=>[d("div",B,[(u(),r(w(f.value)))]),t(),d("div",P,[a(s(i),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),name:"mode","selected-value":"standalone","data-testid":"onboarding-standalone-radio-button"},{default:e(()=>[t(` Standalone deployment diff --git a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-2f219477.js b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b0006384.js similarity index 60% rename from app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-2f219477.js rename to app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b0006384.js index 5caa7106679d..8a230e72bc36 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-2f219477.js +++ b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b0006384.js @@ -1 +1 @@ -import{Z as l}from"./kongponents.es-db3f0bda.js";import{f as u,k as m,g as _,_ as f}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as d}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{_ as p}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{d as b,c as k,o as s,a as t,b as o,i as a,e as n,h as y}from"./index-e7c4cb0f.js";const B=b({__name:"DiagnosticsView",setup(x){const c=u(),{t:i}=m(),r=k(()=>{const e=c.getters["config/getConfig"];return e?JSON.stringify(e,null,2):null});return(e,$)=>(s(),t(f,null,{default:o(()=>[a(d,{title:n(i)("diagnostics.routes.item.title")},null,8,["title"]),y(),a(_,{breadcrumbs:[{to:{name:"diagnostics"},text:n(i)("diagnostics.routes.item.breadcrumbs")}]},{default:o(()=>[a(n(l),null,{body:o(()=>[r.value===null?(s(),t(p,{key:0})):(s(),t(g,{key:1,id:"code-block-diagnostics",language:"json",code:r.value,"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1}))}});export{B as default}; +import{Z as l}from"./kongponents.es-605260c0.js";import{f as u,k as m,g as _,_ as f}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as d}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{_ as p}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{d as b,c as k,o as s,a as t,b as o,i as a,e as n,h as y}from"./index-3e91d6ff.js";const B=b({__name:"DiagnosticsView",setup(x){const c=u(),{t:i}=m(),r=k(()=>{const e=c.getters["config/getConfig"];return e?JSON.stringify(e,null,2):null});return(e,$)=>(s(),t(f,null,{default:o(()=>[a(d,{title:n(i)("diagnostics.routes.item.title")},null,8,["title"]),y(),a(_,{breadcrumbs:[{to:{name:"diagnostics"},text:n(i)("diagnostics.routes.item.breadcrumbs")}]},{default:o(()=>[a(n(l),null,{body:o(()=>[r.value===null?(s(),t(p,{key:0})):(s(),t(g,{key:1,id:"code-block-diagnostics",language:"json",code:r.value,"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1}))}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js similarity index 78% rename from app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js rename to app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js index af3a714491f3..3afd1421488f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js +++ b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js @@ -1 +1 @@ -import{l as t,Q as r}from"./kongponents.es-db3f0bda.js";import{d as l,o as n,a as c,m as i,b as a,q as s,i as d,e as o,h as m,l as p}from"./index-e7c4cb0f.js";const _=p("p",null,"There is no data to display.",-1),y=l({__name:"EmptyBlock",setup(f){return(e,h)=>(n(),c(o(r),{"cta-is-hidden":""},i({title:a(()=>[s(e.$slots,"title",{},()=>[d(o(t),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),m(),s(e.$slots,"default",{},()=>[_])])]),_:2},[e.$slots.message?{name:"message",fn:a(()=>[s(e.$slots,"message")]),key:"0"}:void 0]),1024))}});export{y as _}; +import{l as t,Q as r}from"./kongponents.es-605260c0.js";import{d as l,o as n,a as c,m as i,b as a,q as s,i as d,e as o,h as m,l as p}from"./index-3e91d6ff.js";const _=p("p",null,"There is no data to display.",-1),y=l({__name:"EmptyBlock",setup(f){return(e,h)=>(n(),c(o(r),{"cta-is-hidden":""},i({title:a(()=>[s(e.$slots,"title",{},()=>[d(o(t),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),m(),s(e.$slots,"default",{},()=>[_])])]),_:2},[e.$slots.message?{name:"message",fn:a(()=>[s(e.$slots,"message")]),key:"0"}:void 0]),1024))}});export{y as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js b/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js rename to app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js index 2fa703d8dfaa..2a73bf9dae07 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js +++ b/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js @@ -1 +1 @@ -import{l as u,Q as k}from"./kongponents.es-db3f0bda.js";import{d as g,s,G as b,N as B,o,f as C,l as m,i as w,b as y,a as d,e as l,h as E,q as n}from"./index-e7c4cb0f.js";const N={class:"scanner"},$={class:"scanner-content"},q={class:"mb-2"},z=g({__name:"EntityScanner",props:{interval:{type:Number,required:!1,default:1e3},retries:{type:Number,required:!1,default:3600},hasError:{type:Boolean,default:!1},loaderFunction:{type:Function,required:!0},canComplete:{type:Boolean,default:!1}},emits:["hide-siblings"],setup(a,{emit:p}){const r=a,f=s(0),t=s(!1),v=s(!1),i=s(null);b(function(){h()}),B(function(){c()});function h(){t.value=!0,v.value=!1,c(),i.value=window.setInterval(async()=>{f.value++,await r.loaderFunction(),(f.value===r.retries||r.canComplete===!0)&&(c(),t.value=!1,v.value=!0,p("hide-siblings",!0))},r.interval)}function c(){i.value!==null&&window.clearInterval(i.value)}return(e,F)=>(o(),C("div",N,[m("div",$,[w(l(k),{"cta-is-hidden":""},{title:y(()=>[m("div",q,[t.value?(o(),d(l(u),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):a.hasError?(o(),d(l(u),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(o(),d(l(u),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),E(),t.value?n(e.$slots,"loading-title",{key:0}):a.hasError?n(e.$slots,"error-title",{key:1}):n(e.$slots,"complete-title",{key:2})]),message:y(()=>[t.value?n(e.$slots,"loading-content",{key:0}):a.hasError?n(e.$slots,"error-content",{key:1}):n(e.$slots,"complete-content",{key:2})]),_:3})])]))}});export{z as _}; +import{l as u,Q as k}from"./kongponents.es-605260c0.js";import{d as g,s,G as b,N as B,o,f as C,l as m,i as w,b as y,a as d,e as l,h as E,q as n}from"./index-3e91d6ff.js";const N={class:"scanner"},$={class:"scanner-content"},q={class:"mb-2"},z=g({__name:"EntityScanner",props:{interval:{type:Number,required:!1,default:1e3},retries:{type:Number,required:!1,default:3600},hasError:{type:Boolean,default:!1},loaderFunction:{type:Function,required:!0},canComplete:{type:Boolean,default:!1}},emits:["hide-siblings"],setup(a,{emit:p}){const r=a,f=s(0),t=s(!1),v=s(!1),i=s(null);b(function(){h()}),B(function(){c()});function h(){t.value=!0,v.value=!1,c(),i.value=window.setInterval(async()=>{f.value++,await r.loaderFunction(),(f.value===r.retries||r.canComplete===!0)&&(c(),t.value=!1,v.value=!0,p("hide-siblings",!0))},r.interval)}function c(){i.value!==null&&window.clearInterval(i.value)}return(e,F)=>(o(),C("div",N,[m("div",$,[w(l(k),{"cta-is-hidden":""},{title:y(()=>[m("div",q,[t.value?(o(),d(l(u),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):a.hasError?(o(),d(l(u),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(o(),d(l(u),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),E(),t.value?n(e.$slots,"loading-title",{key:0}):a.hasError?n(e.$slots,"error-title",{key:1}):n(e.$slots,"complete-title",{key:2})]),message:y(()=>[t.value?n(e.$slots,"loading-content",{key:0}):a.hasError?n(e.$slots,"error-content",{key:1}):n(e.$slots,"complete-content",{key:2})]),_:3})])]))}});export{z as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-cd6444cb.js b/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-2d9d2cf0.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-cd6444cb.js rename to app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-2d9d2cf0.js index addb73da9cac..1cdaadea3ba6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-cd6444cb.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-2d9d2cf0.js @@ -1,4 +1,4 @@ -import{T as _,Z as p}from"./kongponents.es-db3f0bda.js";import{d as m,u as b,c as y,o,f as a,i as c,m as f,b as i,h as e,l as n,t as g,e as t,g as v,p as k,n as w}from"./index-e7c4cb0f.js";import{f as S,h as x}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";const u=d=>(k("data-v-f74b1174"),d=d(),w(),d),K={class:"wizard-switcher"},U={class:"capitalize"},E={key:0},z={key:0},I=u(()=>n("p",null,[e(` +import{T as _,Z as p}from"./kongponents.es-605260c0.js";import{d as m,u as b,c as y,o,f as a,i as c,m as f,b as i,h as e,l as n,t as g,e as t,g as v,p as k,n as w}from"./index-3e91d6ff.js";import{f as S,h as x}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";const u=d=>(k("data-v-f74b1174"),d=d(),w(),d),K={class:"wizard-switcher"},U={class:"capitalize"},E={key:0},z={key:0},I=u(()=>n("p",null,[e(` We have detected that you are running on a `),n("strong",null,"Kubernetes environment"),e(`, and we are going to be showing you instructions for Kubernetes unless you decide to visualize the instructions for Universal. diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-ebe2f45c.js b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-d68db4e2.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/EnvoyData-ebe2f45c.js rename to app/kuma-ui/pkg/resources/data/assets/EnvoyData-d68db4e2.js index 2b0036f72110..ad7a599199c0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-ebe2f45c.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-d68db4e2.js @@ -1,3 +1,3 @@ -import{T as p}from"./kongponents.es-db3f0bda.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{_ as g}from"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import{j as _,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as h,s as o,w as i,G as v,o as N,f as E,l as q,i as d,b as c,h as u,e as z}from"./index-e7c4cb0f.js";const P={class:"envoy-data-actions"},k=h({__name:"EnvoyData",props:{dataPath:{type:String,required:!0},queryKey:{type:String,required:!1,default:null},mesh:{type:String,required:!1,default:""},dppName:{type:String,required:!1,default:""},zoneIngressName:{type:String,required:!1,default:""},zoneEgressName:{type:String,required:!1,default:""}},setup(f){const e=f,n=_(),s=o(!0),r=o(null),l=o("");i(()=>e.dppName,function(){t()}),i(()=>e.zoneIngressName,function(){t()}),i(()=>e.zoneEgressName,function(){t()}),v(function(){t()});async function t(){r.value=null,s.value=!0;try{let a="";e.mesh!==""&&e.dppName!==""?a=await n.getDataplaneData({dataPath:e.dataPath,mesh:e.mesh,dppName:e.dppName}):e.zoneIngressName!==""?a=await n.getZoneIngressData({dataPath:e.dataPath,zoneIngressName:e.zoneIngressName}):e.zoneEgressName!==""&&(a=await n.getZoneEgressData({dataPath:e.dataPath,zoneEgressName:e.zoneEgressName})),l.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?r.value=a:console.error(a)}finally{s.value=!1}}return(a,b)=>(N(),E("div",null,[q("div",P,[d(z(p),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` +import{T as p}from"./kongponents.es-605260c0.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{_ as g}from"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import{j as _,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as h,s as o,w as i,G as v,o as N,f as E,l as q,i as d,b as c,h as u,e as z}from"./index-3e91d6ff.js";const P={class:"envoy-data-actions"},k=h({__name:"EnvoyData",props:{dataPath:{type:String,required:!0},queryKey:{type:String,required:!1,default:null},mesh:{type:String,required:!1,default:""},dppName:{type:String,required:!1,default:""},zoneIngressName:{type:String,required:!1,default:""},zoneEgressName:{type:String,required:!1,default:""}},setup(f){const e=f,n=_(),s=o(!0),r=o(null),l=o("");i(()=>e.dppName,function(){t()}),i(()=>e.zoneIngressName,function(){t()}),i(()=>e.zoneEgressName,function(){t()}),v(function(){t()});async function t(){r.value=null,s.value=!0;try{let a="";e.mesh!==""&&e.dppName!==""?a=await n.getDataplaneData({dataPath:e.dataPath,mesh:e.mesh,dppName:e.dppName}):e.zoneIngressName!==""?a=await n.getZoneIngressData({dataPath:e.dataPath,zoneIngressName:e.zoneIngressName}):e.zoneEgressName!==""&&(a=await n.getZoneEgressData({dataPath:e.dataPath,zoneEgressName:e.zoneEgressName})),l.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?r.value=a:console.error(a)}finally{s.value=!1}}return(a,b)=>(N(),E("div",null,[q("div",P,[d(z(p),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` Refresh `)]),_:1},8,["disabled"])]),u(),d(g,{"is-loading":s.value,error:r.value},{default:c(()=>[d(m,{id:`code-block-${e.dataPath}`,language:"json",code:l.value,"is-searchable":"","query-key":e.queryKey??`code-block-${e.dataPath}`},null,8,["id","code","query-key"])]),_:1},8,["is-loading","error"])]))}});const C=y(k,[["__scopeId","data-v-afa8dc47"]]);export{C as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-86257192.js b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-c00a9be3.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/ErrorBlock-86257192.js rename to app/kuma-ui/pkg/resources/data/assets/ErrorBlock-c00a9be3.js index 6f7d294f3aef..025947f22aa4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-86257192.js +++ b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-c00a9be3.js @@ -1 +1 @@ -import{l as b,Q as g,P as _}from"./kongponents.es-db3f0bda.js";import{d as y,c as v,ax as p,o as a,f as s,i as n,m as w,b as c,l as o,h as r,t,g as d,F as B,k as E,e as l,q as x,a as S,p as C,n as I}from"./index-e7c4cb0f.js";import{h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";const f=e=>(C("data-v-176c6beb"),e=e(),I(),e),V={class:"error-block"},q=f(()=>o("p",null,"An error has occurred while trying to load this data.",-1)),A={class:"error-block-details"},D=f(()=>o("summary",null,"Details",-1)),F={key:0},P={key:0,class:"badge-list"},Q=y({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null}},setup(e){const i=e,u=v(()=>i.error instanceof p?i.error.causes:[]);return(h,z)=>(a(),s("div",V,[n(l(g),{"cta-is-hidden":""},w({title:c(()=>[n(l(b),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),r(),x(h.$slots,"default",{},()=>[q],!0)]),_:2},[e.error!==null||u.value.length>0?{name:"message",fn:c(()=>[o("details",A,[D,r(),e.error!==null?(a(),s("p",F,t(e.error.message),1)):d("",!0),r(),o("ul",null,[(a(!0),s(B,null,E(u.value,(m,k)=>(a(),s("li",{key:k},[o("b",null,[o("code",null,t(m.field),1)]),r(": "+t(m.message),1)]))),128))])])]),key:"0"}:void 0]),1024),r(),e.error instanceof l(p)?(a(),s("div",P,[e.error.code?(a(),S(l(_),{key:0,appearance:"warning"},{default:c(()=>[r(t(e.error.code),1)]),_:1})):d("",!0),r(),n(l(_),{appearance:"warning"},{default:c(()=>[r(t(e.error.statusCode),1)]),_:1})])):d("",!0)]))}});const j=N(Q,[["__scopeId","data-v-176c6beb"]]);export{j as E}; +import{l as b,Q as g,P as _}from"./kongponents.es-605260c0.js";import{d as y,c as v,ax as p,o as a,f as s,i as n,m as w,b as c,l as o,h as r,t,g as d,F as B,k as E,e as l,q as x,a as S,p as C,n as I}from"./index-3e91d6ff.js";import{h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";const f=e=>(C("data-v-176c6beb"),e=e(),I(),e),V={class:"error-block"},q=f(()=>o("p",null,"An error has occurred while trying to load this data.",-1)),A={class:"error-block-details"},D=f(()=>o("summary",null,"Details",-1)),F={key:0},P={key:0,class:"badge-list"},Q=y({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null}},setup(e){const i=e,u=v(()=>i.error instanceof p?i.error.causes:[]);return(h,z)=>(a(),s("div",V,[n(l(g),{"cta-is-hidden":""},w({title:c(()=>[n(l(b),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),r(),x(h.$slots,"default",{},()=>[q],!0)]),_:2},[e.error!==null||u.value.length>0?{name:"message",fn:c(()=>[o("details",A,[D,r(),e.error!==null?(a(),s("p",F,t(e.error.message),1)):d("",!0),r(),o("ul",null,[(a(!0),s(B,null,E(u.value,(m,k)=>(a(),s("li",{key:k},[o("b",null,[o("code",null,t(m.field),1)]),r(": "+t(m.message),1)]))),128))])])]),key:"0"}:void 0]),1024),r(),e.error instanceof l(p)?(a(),s("div",P,[e.error.code?(a(),S(l(_),{key:0,appearance:"warning"},{default:c(()=>[r(t(e.error.code),1)]),_:1})):d("",!0),r(),n(l(_),{appearance:"warning"},{default:c(()=>[r(t(e.error.statusCode),1)]),_:1})])):d("",!0)]))}});const j=N(Q,[["__scopeId","data-v-176c6beb"]]);export{j as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js similarity index 71% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js index 03880945ce56..c49d25923407 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js @@ -1 +1 @@ -import{l as o,Q as s}from"./kongponents.es-db3f0bda.js";import{d as t,o as n,a as r,b as c,i,e,h as d,q as l,l as _}from"./index-e7c4cb0f.js";const p=_("p",null,"Loading data …",-1),b=t({__name:"LoadingBlock",setup(m){return(a,f)=>(n(),r(e(s),{"cta-is-hidden":"","data-testid":"loading-block"},{title:c(()=>[i(e(o),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),d(),l(a.$slots,"default",{},()=>[p])]),_:3}))}});export{b as _}; +import{l as o,Q as s}from"./kongponents.es-605260c0.js";import{d as t,o as n,a as r,b as c,i,e,h as d,q as l,l as _}from"./index-3e91d6ff.js";const p=_("p",null,"Loading data …",-1),b=t({__name:"LoadingBlock",setup(m){return(a,f)=>(n(),r(e(s),{"cta-is-hidden":"","data-testid":"loading-block"},{title:c(()=>[i(e(o),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),d(),l(a.$slots,"default",{},()=>[p])]),_:3}))}});export{b as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-23a1489f.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-ff395360.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBox-23a1489f.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBox-ff395360.js index f8fc7e3e0ee2..f7b2a6eeb40e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-23a1489f.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-ff395360.js @@ -1 +1 @@ -import{h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{o as n,f as _,h as s,p as l,n as c,l as o}from"./index-e7c4cb0f.js";const a={},e=t=>(l("data-v-67594d24"),t=t(),c(),t),i={class:"loading","data-testid":"loading"},p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),u=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1));function f(t,x){return n(),_("div",i,[p,s(),r,s(),u,s(),h,s(),v])}const B=d(a,[["render",f],["__scopeId","data-v-67594d24"]]);export{B as L}; +import{h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{o as n,f as _,h as s,p as l,n as c,l as o}from"./index-3e91d6ff.js";const a={},e=t=>(l("data-v-67594d24"),t=t(),c(),t),i={class:"loading","data-testid":"loading"},p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),u=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1));function f(t,x){return n(),_("div",i,[p,s(),r,s(),u,s(),h,s(),v])}const B=d(a,[["render",f],["__scopeId","data-v-67594d24"]]);export{B as L}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a8c07580.js b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-f40f531e.js similarity index 51% rename from app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a8c07580.js rename to app/kuma-ui/pkg/resources/data/assets/MainOverviewView-f40f531e.js index 6f80c48d39c9..f178656dd6a8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a8c07580.js +++ b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-f40f531e.js @@ -1 +1 @@ -import{s as i,k as n,_ as c,g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{M as l}from"./MeshResources-ce24b5f4.js";import{d as u,a as f,b as s,o as d,i as e,e as t,h as a,l as p}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const v={class:"kcard-stack"},N=u({__name:"MainOverviewView",setup(h){const r=i(),{t:o}=n();return(w,k)=>(d(),f(c,null,{default:s(()=>[e(m,{title:t(o)("main-overview.routes.item.title")},null,8,["title"]),a(),e(_,null,{default:s(()=>[p("div",v,[e(t(r)),a(),e(l)])]),_:1})]),_:1}))}});export{N as default}; +import{s as i,k as n,_ as c,g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{M as l}from"./MeshResources-812263b7.js";import{d as u,a as f,b as s,o as d,i as e,e as t,h as a,l as p}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const v={class:"kcard-stack"},N=u({__name:"MainOverviewView",setup(h){const r=i(),{t:o}=n();return(w,k)=>(d(),f(c,null,{default:s(()=>[e(m,{title:t(o)("main-overview.routes.item.title")},null,8,["title"]),a(),e(_,null,{default:s(()=>[p("div",v,[e(t(r)),a(),e(l)])]),_:1})]),_:1}))}});export{N as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshItemView-7ce34429.js b/app/kuma-ui/pkg/resources/data/assets/MeshItemView-05118668.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/MeshItemView-7ce34429.js rename to app/kuma-ui/pkg/resources/data/assets/MeshItemView-05118668.js index 0d0623262412..0886f8b880f5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshItemView-7ce34429.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshItemView-05118668.js @@ -1 +1 @@ -import{k as _,g as c,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as l}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as u,r as f,o,a as r,b as t,i as s,e as n,h,j as d}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const $=u({__name:"MeshItemView",setup(b){const{t:a}=_();return(w,x)=>{const i=f("RouterView");return o(),r(p,null,{default:t(({route:e})=>[s(l,{title:n(a)("meshes.routes.item.title",{name:e.params.mesh})},null,8,["title"]),h(),s(c,{breadcrumbs:[{to:{name:"mesh-list-view"},text:n(a)("meshes.routes.item.breadcrumbs")},{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh}]},{default:t(()=>[s(i,null,{default:t(m=>[(o(),r(d(m.Component),{key:m.route.path}))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{$ as default}; +import{k as _,g as c,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as l}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as u,r as f,o,a as r,b as t,i as s,e as n,h,j as d}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const $=u({__name:"MeshItemView",setup(b){const{t:a}=_();return(w,x)=>{const i=f("RouterView");return o(),r(p,null,{default:t(({route:e})=>[s(l,{title:n(a)("meshes.routes.item.title",{name:e.params.mesh})},null,8,["title"]),h(),s(c,{breadcrumbs:[{to:{name:"mesh-list-view"},text:n(a)("meshes.routes.item.breadcrumbs")},{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh}]},{default:t(()=>[s(i,null,{default:t(m=>[(o(),r(d(m.Component),{key:m.route.path}))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{$ as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshListView-a1065e88.js b/app/kuma-ui/pkg/resources/data/assets/MeshListView-5e70b74a.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/MeshListView-a1065e88.js rename to app/kuma-ui/pkg/resources/data/assets/MeshListView-5e70b74a.js index f61bc940e303..c10d5c3dd7f3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshListView-a1065e88.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshListView-5e70b74a.js @@ -1 +1 @@ -import{d as D,u as T,s,w as A,o as E,a as N,b as v,i as m,e as u,h as V,l as h,P as b}from"./index-e7c4cb0f.js";import{k as M,j as S,g as L,_ as P}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as B}from"./DataOverview-49747af7.js";import{Q as R}from"./QueryParameter-70743f73.js";import"./kongponents.es-db3f0bda.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";const $={class:"kcard-stack"},q={class:"kcard-border"},H=D({__name:"MeshListView",props:{selectedMeshName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(g){const c=g,{t:r}=M(),y=S(),w={title:r("common.emptyState.title"),message:r("common.emptyState.message",{type:"Meshes"})},d=T(),l=s(!0),n=s(null),o=s({headers:[{label:"Name",key:"entity"}],data:[]}),f=s(null),p=s(c.offset);A(()=>d.params.mesh,function(){d.name==="mesh-list-view"&&i(0)}),x();function x(){i(c.offset)}async function i(e){p.value=e,R.set("offset",e>0?e:null),l.value=!0,n.value=null;const a=b;try{const{items:t,next:_}=await y.getAllMeshes({size:a,offset:e});f.value=_,o.value.data=k(t??[])}catch(t){o.value.data=[],t instanceof Error?n.value=t:console.error(t)}finally{l.value=!1}}function k(e){return e.map(a=>{const{name:t}=a;return{entity:a,detailViewRoute:{name:"mesh-detail-view",params:{mesh:t}}}})}return(e,a)=>(E(),N(P,null,{default:v(()=>[m(z,{title:u(r)("meshes.routes.items.title")},null,8,["title"]),V(),m(L,{breadcrumbs:[{to:{name:"mesh-list-view"},text:u(r)("meshes.routes.items.breadcrumbs")}]},{default:v(()=>[h("div",$,[h("div",q,[m(B,{"page-size":u(b),"is-loading":l.value,error:n.value,"empty-state":w,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:f.value,"page-offset":p.value,onLoadData:i},null,8,["page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])])])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{H as default}; +import{d as D,u as T,s,w as A,o as E,a as N,b as v,i as m,e as u,h as V,l as h,P as b}from"./index-3e91d6ff.js";import{k as M,j as S,g as L,_ as P}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as B}from"./DataOverview-7f440d3d.js";import{Q as R}from"./QueryParameter-70743f73.js";import"./kongponents.es-605260c0.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";const $={class:"kcard-stack"},q={class:"kcard-border"},H=D({__name:"MeshListView",props:{selectedMeshName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(g){const c=g,{t:r}=M(),y=S(),w={title:r("common.emptyState.title"),message:r("common.emptyState.message",{type:"Meshes"})},d=T(),l=s(!0),n=s(null),o=s({headers:[{label:"Name",key:"entity"}],data:[]}),f=s(null),p=s(c.offset);A(()=>d.params.mesh,function(){d.name==="mesh-list-view"&&i(0)}),x();function x(){i(c.offset)}async function i(e){p.value=e,R.set("offset",e>0?e:null),l.value=!0,n.value=null;const a=b;try{const{items:t,next:_}=await y.getAllMeshes({size:a,offset:e});f.value=_,o.value.data=k(t??[])}catch(t){o.value.data=[],t instanceof Error?n.value=t:console.error(t)}finally{l.value=!1}}function k(e){return e.map(a=>{const{name:t}=a;return{entity:a,detailViewRoute:{name:"mesh-detail-view",params:{mesh:t}}}})}return(e,a)=>(E(),N(P,null,{default:v(()=>[m(z,{title:u(r)("meshes.routes.items.title")},null,8,["title"]),V(),m(L,{breadcrumbs:[{to:{name:"mesh-list-view"},text:u(r)("meshes.routes.items.breadcrumbs")}]},{default:v(()=>[h("div",$,[h("div",q,[m(B,{"page-size":u(b),"is-loading":l.value,error:n.value,"empty-state":w,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:f.value,"page-offset":p.value,onLoadData:i},null,8,["page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])])])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-a8b04ff3.js b/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-d2b36b83.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-a8b04ff3.js rename to app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-d2b36b83.js index d5550d85877a..d595c9c00318 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-a8b04ff3.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-d2b36b83.js @@ -1 +1 @@ -import{Z as M,P as L}from"./kongponents.es-db3f0bda.js";import{d as A,u as O,c as _,w as R,o as r,f as m,i as s,h as l,s as D,E as N,r as G,a as p,b as o,e as d,l as B,k as P,t as g,F as y,g as S}from"./index-e7c4cb0f.js";import{f as F,D as x,h as K,k as H,j as J,g as Q,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as X}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as $,a as V}from"./DefinitionListItem-84d660bf.js";import{M as Y}from"./MeshResources-ce24b5f4.js";import{_ as ee}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import{_ as te}from"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import{T as ae}from"./TextWithCopyButton-7c6aa739.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./toYaml-4e00099e.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";const se={class:"chart-box-list"},ne=A({__name:"MeshCharts",setup(Z){const k=O(),c=F(),f=_(()=>c.getters.getChart("services",{title:"Services",showTotal:!0})),v=_(()=>c.getters.getChart("dataplanes",{title:"DP Proxies",showTotal:!0,isStatusChart:!0})),b=_(()=>c.getters.getChart("kumaDPVersions",{title:"Kuma DP",subtitle:"versions"})),w=_(()=>c.getters.getChart("envoyVersions",{title:"Envoy",subtitle:"versions"}));R(()=>k.params.mesh,function(u){typeof u=="string"&&n(u)},{immediate:!0});function n(u){c.dispatch("fetchMeshInsights",u),c.dispatch("fetchServices",u)}return(u,I)=>(r(),m("div",se,[s(x,{data:f.value},null,8,["data"]),l(),s(x,{data:v.value},null,8,["data"]),l(),s(x,{data:b.value},null,8,["data"]),l(),s(x,{data:w.value},null,8,["data"])]))}});const oe=K(ne,[["__scopeId","data-v-5ab6d374"]]),re={class:"kcard-stack"},le={class:"columns"},ie={key:0},ce=A({__name:"MeshOverviewView",setup(Z){const{t:k}=H(),c=J(),f=O(),v=F(),b=D(!0),w=D(!1),n=D(null),u=D(null),I=_(()=>{if(n.value===null)return null;const{name:t,creationTime:a,modificationTime:h}=n.value;return{name:t,created:N(a),modified:N(h),"Data Plane Proxies":v.state.meshInsight.dataplanes.total}}),j=_(()=>{var E;if(n.value===null)return null;const t=C(n.value,"mtls"),a=C(n.value,"logging"),h=C(n.value,"metrics"),e=C(n.value,"tracing"),i=!!((E=n.value.routing)!=null&&E.localityAwareLoadBalancing);return{mtls:t,logging:a,metrics:h,tracing:e,localityAwareLoadBalancing:i}}),W=_(()=>v.state.sidebar.insights.mesh.policies.total),q=_(()=>v.state.policyTypes.map(t=>{var a;return{...t,length:((a=v.state.meshInsight.policies[t.name])==null?void 0:a.total)??0}}));R(()=>f.params.mesh,function(){f.name==="single-mesh-overview"&&T()}),T();async function T(){b.value=!0,w.value=!1;const t=f.params.mesh;try{n.value=await c.getMesh({name:t}),u.value=await c.getMeshInsights({name:t})}catch(a){w.value=!0,n.value=null,u.value=null,console.error(a)}finally{b.value=!1}}function C(t,a){if(t===null||t[a]===void 0)return!1;const h=t[a].enabledBackend??t[a].defaultBackend??t[a].backends[0].name,e=t[a].backends.find(i=>i.name===h);return`${e.type} / ${e.name}`}async function z(t){const a=f.params.mesh;return await c.getMesh({name:a},t)}return(t,a)=>{const h=G("router-link");return r(),p(U,{module:"meshes"},{default:o(()=>[s(X,{title:d(k)("meshes.routes.overview.title")},null,8,["title"]),l(),s(Q,null,{default:o(()=>[B("div",re,[s(d(M),null,{body:o(()=>[s(oe)]),_:1}),l(),n.value!==null?(r(),p(d(M),{key:0},{body:o(()=>[B("div",le,[s(te,{"is-loading":b.value,"has-error":w.value,"is-empty":n.value===null||u.value===null},{default:o(()=>[s($,null,{default:o(()=>[(r(!0),m(y,null,P(I.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(L),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):i==="name"&&typeof e=="string"?(r(),p(ae,{key:1,text:e},null,8,["text"])):(r(),m(y,{key:2},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),_:1},8,["is-loading","has-error","is-empty"]),l(),s($,null,{default:o(()=>[(r(!0),m(y,null,P(j.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(L),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):(r(),m(y,{key:1},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),l(),s($,null,{default:o(()=>[s(V,{term:`Policies (${W.value})`},{default:o(()=>[B("ul",null,[(r(!0),m(y,null,P(q.value,(e,i)=>(r(),m(y,{key:i},[e.length!==0?(r(),m("li",ie,[s(h,{to:{name:"policies-list-view",params:{policyPath:e.path}}},{default:o(()=>[l(g(e.name)+": "+g(e.length),1)]),_:2},1032,["to"])])):S("",!0)],64))),128))])]),_:1},8,["term"])]),_:1})])]),_:1})):S("",!0),l(),s(d(M),null,{body:o(()=>{var e;return[s(ee,{id:"code-block-mesh","resource-fetcher":z,"resource-fetcher-watch-key":((e=n.value)==null?void 0:e.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1}),l(),s(Y)])]),_:1})]),_:1})}}});const De=K(ce,[["__scopeId","data-v-6325d95c"]]);export{De as default}; +import{Z as M,P as L}from"./kongponents.es-605260c0.js";import{d as A,u as O,c as _,w as R,o as r,f as m,i as s,h as l,s as D,E as N,r as G,a as p,b as o,e as d,l as B,k as P,t as g,F as y,g as S}from"./index-3e91d6ff.js";import{f as F,D as x,h as K,k as H,j as J,g as Q,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as X}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as $,a as V}from"./DefinitionListItem-dd7f1ed7.js";import{M as Y}from"./MeshResources-812263b7.js";import{_ as ee}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import{_ as te}from"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import{T as ae}from"./TextWithCopyButton-6362ddfe.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./toYaml-4e00099e.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";const se={class:"chart-box-list"},ne=A({__name:"MeshCharts",setup(Z){const k=O(),c=F(),f=_(()=>c.getters.getChart("services",{title:"Services",showTotal:!0})),v=_(()=>c.getters.getChart("dataplanes",{title:"DP Proxies",showTotal:!0,isStatusChart:!0})),b=_(()=>c.getters.getChart("kumaDPVersions",{title:"Kuma DP",subtitle:"versions"})),w=_(()=>c.getters.getChart("envoyVersions",{title:"Envoy",subtitle:"versions"}));R(()=>k.params.mesh,function(u){typeof u=="string"&&n(u)},{immediate:!0});function n(u){c.dispatch("fetchMeshInsights",u),c.dispatch("fetchServices",u)}return(u,I)=>(r(),m("div",se,[s(x,{data:f.value},null,8,["data"]),l(),s(x,{data:v.value},null,8,["data"]),l(),s(x,{data:b.value},null,8,["data"]),l(),s(x,{data:w.value},null,8,["data"])]))}});const oe=K(ne,[["__scopeId","data-v-5ab6d374"]]),re={class:"kcard-stack"},le={class:"columns"},ie={key:0},ce=A({__name:"MeshOverviewView",setup(Z){const{t:k}=H(),c=J(),f=O(),v=F(),b=D(!0),w=D(!1),n=D(null),u=D(null),I=_(()=>{if(n.value===null)return null;const{name:t,creationTime:a,modificationTime:h}=n.value;return{name:t,created:N(a),modified:N(h),"Data Plane Proxies":v.state.meshInsight.dataplanes.total}}),j=_(()=>{var E;if(n.value===null)return null;const t=C(n.value,"mtls"),a=C(n.value,"logging"),h=C(n.value,"metrics"),e=C(n.value,"tracing"),i=!!((E=n.value.routing)!=null&&E.localityAwareLoadBalancing);return{mtls:t,logging:a,metrics:h,tracing:e,localityAwareLoadBalancing:i}}),W=_(()=>v.state.sidebar.insights.mesh.policies.total),q=_(()=>v.state.policyTypes.map(t=>{var a;return{...t,length:((a=v.state.meshInsight.policies[t.name])==null?void 0:a.total)??0}}));R(()=>f.params.mesh,function(){f.name==="single-mesh-overview"&&T()}),T();async function T(){b.value=!0,w.value=!1;const t=f.params.mesh;try{n.value=await c.getMesh({name:t}),u.value=await c.getMeshInsights({name:t})}catch(a){w.value=!0,n.value=null,u.value=null,console.error(a)}finally{b.value=!1}}function C(t,a){if(t===null||t[a]===void 0)return!1;const h=t[a].enabledBackend??t[a].defaultBackend??t[a].backends[0].name,e=t[a].backends.find(i=>i.name===h);return`${e.type} / ${e.name}`}async function z(t){const a=f.params.mesh;return await c.getMesh({name:a},t)}return(t,a)=>{const h=G("router-link");return r(),p(U,{module:"meshes"},{default:o(()=>[s(X,{title:d(k)("meshes.routes.overview.title")},null,8,["title"]),l(),s(Q,null,{default:o(()=>[B("div",re,[s(d(M),null,{body:o(()=>[s(oe)]),_:1}),l(),n.value!==null?(r(),p(d(M),{key:0},{body:o(()=>[B("div",le,[s(te,{"is-loading":b.value,"has-error":w.value,"is-empty":n.value===null||u.value===null},{default:o(()=>[s($,null,{default:o(()=>[(r(!0),m(y,null,P(I.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(L),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):i==="name"&&typeof e=="string"?(r(),p(ae,{key:1,text:e},null,8,["text"])):(r(),m(y,{key:2},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),_:1},8,["is-loading","has-error","is-empty"]),l(),s($,null,{default:o(()=>[(r(!0),m(y,null,P(j.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(L),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):(r(),m(y,{key:1},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),l(),s($,null,{default:o(()=>[s(V,{term:`Policies (${W.value})`},{default:o(()=>[B("ul",null,[(r(!0),m(y,null,P(q.value,(e,i)=>(r(),m(y,{key:i},[e.length!==0?(r(),m("li",ie,[s(h,{to:{name:"policies-list-view",params:{policyPath:e.path}}},{default:o(()=>[l(g(e.name)+": "+g(e.length),1)]),_:2},1032,["to"])])):S("",!0)],64))),128))])]),_:1},8,["term"])]),_:1})])]),_:1})):S("",!0),l(),s(d(M),null,{body:o(()=>{var e;return[s(ee,{id:"code-block-mesh","resource-fetcher":z,"resource-fetcher-watch-key":((e=n.value)==null?void 0:e.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1}),l(),s(Y)])]),_:1})]),_:1})}}});const De=K(ce,[["__scopeId","data-v-6325d95c"]]);export{De as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshResources-ce24b5f4.js b/app/kuma-ui/pkg/resources/data/assets/MeshResources-812263b7.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/MeshResources-ce24b5f4.js rename to app/kuma-ui/pkg/resources/data/assets/MeshResources-812263b7.js index 1d75ccdd0792..b4e1f7181a21 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshResources-ce24b5f4.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshResources-812263b7.js @@ -1,4 +1,4 @@ -import{T as i,Z as c}from"./kongponents.es-db3f0bda.js";import{l as h,f as m,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as U,c as A,o as R,f,i as o,b as n,h as s,l as t,e,t as r,p as b,n as v}from"./index-e7c4cb0f.js";const l=_=>(b("data-v-88c956eb"),_=_(),v(),_),C={class:"kcard-switcher"},y=l(()=>t("p",null,[s(` +import{T as i,Z as c}from"./kongponents.es-605260c0.js";import{l as h,f as m,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as U,c as A,o as R,f,i as o,b as n,h as s,l as t,e,t as r,p as b,n as v}from"./index-3e91d6ff.js";const l=_=>(b("data-v-88c956eb"),_=_(),v(),_),C={class:"kcard-switcher"},y=l(()=>t("p",null,[s(` We can create multiple isolated Mesh resources (i.e. per application/`),t("wbr"),s("team/"),t("wbr"),s(`business unit). `)],-1)),E={class:"resource-list-actions mt-4"},T=l(()=>t("p",null,` We need a data plane proxy for each replica of our services within a Mesh resource. diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshView-280b7907.js b/app/kuma-ui/pkg/resources/data/assets/MeshView-21beb898.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/MeshView-280b7907.js rename to app/kuma-ui/pkg/resources/data/assets/MeshView-21beb898.js index f65422b40753..a65afe751cd2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshView-280b7907.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshView-21beb898.js @@ -1 +1 @@ -import{d as f,D as p,r as d,o as c,a as i,b as s,i as a,e as h,h as R,j as w}from"./index-e7c4cb0f.js";import{k as C,g as V,_ as b}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as k}from"./NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js";import"./kongponents.es-db3f0bda.js";const j=f({__name:"MeshView",setup(v){var r;const l=C(),_=(((r=p().getRoutes().find(e=>e.name==="mesh-detail-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const n=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=n.name,o=((u=n.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:o}});return(e,n)=>{const t=d("RouterView");return c(),i(b,null,{default:s(()=>[a(V,null,{default:s(()=>[a(k,{tabs:h(_)},null,8,["tabs"]),R(),a(t,null,{default:s(o=>[(c(),i(w(o.Component),{key:o.route.path}))]),_:1})]),_:1})]),_:1})}}});export{j as default}; +import{d as f,D as p,r as d,o as c,a as i,b as s,i as a,e as h,h as R,j as w}from"./index-3e91d6ff.js";import{k as C,g as V,_ as b}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as k}from"./NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js";import"./kongponents.es-605260c0.js";const j=f({__name:"MeshView",setup(v){var r;const l=C(),_=(((r=p().getRoutes().find(e=>e.name==="mesh-detail-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const n=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=n.name,o=((u=n.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:o}});return(e,n)=>{const t=d("RouterView");return c(),i(b,null,{default:s(()=>[a(V,null,{default:s(()=>[a(k,{tabs:h(_)},null,8,["tabs"]),R(),a(t,null,{default:s(o=>[(c(),i(w(o.Component),{key:o.route.path}))]),_:1})]),_:1})]),_:1})}}});export{j as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshWizard-b1770598.js b/app/kuma-ui/pkg/resources/data/assets/MeshWizard-e7f4eda0.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/MeshWizard-b1770598.js rename to app/kuma-ui/pkg/resources/data/assets/MeshWizard-e7f4eda0.js index 156531684499..8de196c61486 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshWizard-b1770598.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshWizard-e7f4eda0.js @@ -1,4 +1,4 @@ -import{d as be,s as f,c as Y,w as A,_ as N,Y as j,o as u,a as g,b as s,i as c,e as h,h as l,l as t,t as y,g as p,R as r,S as b,$ as v,X as x,f as O,p as fe,n as ve}from"./index-e7c4cb0f.js";import{Z as P,V as W,T as X}from"./kongponents.es-db3f0bda.js";import{_ as _e}from"./EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js";import{S as ke,F as m}from"./StepSkeleton-759bb1a3.js";import{f as ye}from"./formatForCLI-931cd5c6.js";import{j as Te,k as Ee,l as Me,f as we,g as Se,_ as Ue,h as Ae}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as Ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as J}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{T as Ce}from"./TabsWidget-67e5cef2.js";import{Q as De}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";const Le={mtls:{enabledBackend:null,backends:[]},tracing:{defaultBackend:null,backends:[{name:null,type:null}]},logging:{backends:[{name:null,format:'{ "destination": "%KUMA_DESTINATION_SERVICE%", "destinationAddress": "%UPSTREAM_LOCAL_ADDRESS%", "source": "%KUMA_SOURCE_SERVICE%", "sourceAddress": "%KUMA_SOURCE_ADDRESS%", "bytesReceived": "%BYTES_RECEIVED%", "bytesSent": "%BYTES_SENT%"}',type:null}]},metrics:{enabledBackend:null,backends:[{name:null,type:null}]}},i=C=>(fe("data-v-570b9a33"),C=C(),ve(),C),Be={class:"wizard"},Re={class:"wizard__content"},Ve=i(()=>t("code",null,"kubectl",-1)),Ie=i(()=>t("code",null,"kumactl",-1)),xe=i(()=>t("h3",null,` +import{d as be,s as f,c as Y,w as A,_ as N,Y as j,o as u,a as g,b as s,i as c,e as h,h as l,l as t,t as y,g as p,R as r,S as b,$ as v,X as x,f as O,p as fe,n as ve}from"./index-3e91d6ff.js";import{Z as P,V as W,T as X}from"./kongponents.es-605260c0.js";import{_ as _e}from"./EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js";import{S as ke,F as m}from"./StepSkeleton-f870dd24.js";import{f as ye}from"./formatForCLI-931cd5c6.js";import{j as Te,k as Ee,l as Me,f as we,g as Se,_ as Ue,h as Ae}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as Ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as J}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{T as Ce}from"./TabsWidget-98d43afa.js";import{Q as De}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";const Le={mtls:{enabledBackend:null,backends:[]},tracing:{defaultBackend:null,backends:[{name:null,type:null}]},logging:{backends:[{name:null,format:'{ "destination": "%KUMA_DESTINATION_SERVICE%", "destinationAddress": "%UPSTREAM_LOCAL_ADDRESS%", "source": "%KUMA_SOURCE_SERVICE%", "sourceAddress": "%KUMA_SOURCE_ADDRESS%", "bytesReceived": "%BYTES_RECEIVED%", "bytesSent": "%BYTES_SENT%"}',type:null}]},metrics:{enabledBackend:null,backends:[{name:null,type:null}]}},i=C=>(fe("data-v-570b9a33"),C=C(),ve(),C),Be={class:"wizard"},Re={class:"wizard__content"},Ve=i(()=>t("code",null,"kubectl",-1)),Ie=i(()=>t("code",null,"kumactl",-1)),xe=i(()=>t("h3",null,` To get started, please fill in the following information: `,-1)),Oe={class:"k-input-label mx-2"},Pe=i(()=>t("span",null,"Disabled",-1)),Ke={class:"k-input-label mx-2"},ze=i(()=>t("span",null,"Enabled",-1)),Fe=i(()=>t("option",{value:"builtin"},` builtin diff --git a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-014ca5ca.js b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-31207c2f.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/MultiZoneView-014ca5ca.js rename to app/kuma-ui/pkg/resources/data/assets/MultiZoneView-31207c2f.js index 57c69f3a3e4f..66b2a97b4fd2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-014ca5ca.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-31207c2f.js @@ -1,4 +1,4 @@ -import{L as x}from"./LoadingBox-23a1489f.js";import{O as z,a as Z,b as I}from"./OnboardingPage-e954db95.js";import{j as k,l as T,k as A,g as O,_ as M,h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{d as L,s as r,M as U,o as a,a as C,b as i,i as l,e as m,h as e,l as n,f as c,g as S,p as B,n as $}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const E=u=>(B("data-v-40900992"),u=u(),$(),u),K=E(()=>n("p",{class:"mb-4 text-center"},` +import{L as x}from"./LoadingBox-ff395360.js";import{O as z,a as Z,b as I}from"./OnboardingPage-ed86946b.js";import{j as k,l as T,k as A,g as O,_ as M,h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{d as L,s as r,M as U,o as a,a as C,b as i,i as l,e as m,h as e,l as n,f as c,g as S,p as B,n as $}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const E=u=>(B("data-v-40900992"),u=u(),$(),u),K=E(()=>n("p",{class:"mb-4 text-center"},` A zone requires both the zone control plane and zone ingress. On Kubernetes, you run a single command to create both resources. On Universal, you must create them separately. `,-1)),R={class:"mb-4 text-center"},D=["href"],P={class:"status-box mt-4"},G={key:0,class:"status--is-connected","data-testid":"zone-connected"},j={key:1,class:"status--is-disconnected","data-testid":"zone-disconnected"},q={class:"status-box mt-4"},H={key:0,class:"status--is-connected","data-testid":"zone-ingress-connected"},Q={key:1,class:"status--is-disconnected","data-testid":"zone-ingress-disconnected"},Y={key:0,class:"status-loading-box mt-4"},w=1e3,F=L({__name:"MultiZoneView",setup(u){const p=k(),f=T(),{t:y}=A(),s=r(!1),o=r(!1),d=r(null),_=r(null);U(function(){h(),b()}),v(),g();async function v(){try{const{total:t}=await p.getZones();s.value=t>0}catch(t){s.value=!1,console.error(t)}finally{s.value||(h(),d.value=window.setTimeout(v,w))}}async function g(){try{const{total:t}=await p.getAllZoneIngressOverviews();o.value=t>0}catch(t){o.value=!1,console.error(t)}finally{o.value||(b(),_.value=window.setTimeout(g,w))}}function h(){d.value!==null&&window.clearTimeout(d.value)}function b(){_.value!==null&&window.clearTimeout(_.value)}return(t,J)=>(a(),C(M,null,{default:i(()=>[l(V,{title:m(y)("onboarding.routes.multizone.title")},null,8,["title"]),e(),l(O,null,{default:i(()=>[l(z,null,{header:i(()=>[l(Z,null,{title:i(()=>[e(` Add zones diff --git a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js rename to app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js index 65dac50c8c8e..e8451569f87b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js @@ -1,4 +1,4 @@ -import{l as r,T as i,Q as l}from"./kongponents.es-db3f0bda.js";import{d as c,o as _,a as u,b as n,i as s,e,h as a,l as t,t as m,L as p}from"./index-e7c4cb0f.js";import{l as d}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";const f=t("p",null,[a(` +import{l as r,T as i,Q as l}from"./kongponents.es-605260c0.js";import{d as c,o as _,a as u,b as n,i as s,e,h as a,l as t,t as m,L as p}from"./index-3e91d6ff.js";import{l as d}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";const f=t("p",null,[a(` To access this page, you must be running in `),t("strong",null,"Multi-Zone"),a(` mode. `)],-1),C=c({__name:"MultizoneInfo",setup(g){const o=d();return(M,T)=>(_(),u(e(l),null,{title:n(()=>[s(e(r),{class:"mb-3",icon:"dangerCircleOutline",size:"42"}),a(),t("p",null,m(e(p))+" is running in Standalone mode.",1)]),message:n(()=>[f]),cta:n(()=>[s(e(i),{to:`${e(o)("KUMA_DOCS_URL")}/documentation/deployments/?${e(o)("KUMA_UTM_QUERY_PARAMS")}`,target:"_blank",appearance:"primary"},{default:n(()=>[a(` Learn More diff --git a/app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js b/app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js rename to app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js index 14dbf9ad4310..713c26d94815 100644 --- a/app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js +++ b/app/kuma-ui/pkg/resources/data/assets/NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js @@ -1 +1 @@ -import{o as i}from"./kongponents.es-db3f0bda.js";import{d as p,u as d,c as n,r as f,o as _,a as N,m as h,k as b,b as u,i as k,h as v,t as x,e as y}from"./index-e7c4cb0f.js";const T=p({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(m){const a=m,o=d(),c=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=o.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const r=a.tabs.find(e=>!!(e.routeName===o.name||t.includes(e.module)));return"#"+((r==null?void 0:r.routeName)??a.tabs[0].routeName)});return(t,r)=>{const s=f("router-link");return _(),N(y(i),{tabs:c.value,"model-value":l.value,"has-panels":!1},h({_:2},[b(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[k(s,{to:{name:e.routeName}},{default:u(()=>[v(x(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});export{T as _}; +import{o as i}from"./kongponents.es-605260c0.js";import{d as p,u as d,c as n,r as f,o as _,a as N,m as h,k as b,b as u,i as k,h as v,t as x,e as y}from"./index-3e91d6ff.js";const T=p({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(m){const a=m,o=d(),c=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=o.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const r=a.tabs.find(e=>!!(e.routeName===o.name||t.includes(e.module)));return"#"+((r==null?void 0:r.routeName)??a.tabs[0].routeName)});return(t,r)=>{const s=f("router-link");return _(),N(y(i),{tabs:c.value,"model-value":l.value,"has-panels":!1},h({_:2},[b(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[k(s,{to:{name:e.routeName}},{default:u(()=>[v(x(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});export{T as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-e954db95.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-ed86946b.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingPage-e954db95.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingPage-ed86946b.js index fa073c77fdd8..9b118e51edfc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-e954db95.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-ed86946b.js @@ -1,4 +1,4 @@ -import{d as g,Q as S,o as s,f as p,l as a,q as i,h as o,e as c,g as u,a as f,b as l,i as y,t as k,H as x,p as $,n as O}from"./index-e7c4cb0f.js";import{h as v,f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{T as _}from"./kongponents.es-db3f0bda.js";const w={class:"onboarding-heading"},B={class:"onboarding-title"},q={key:0,class:"onboarding-description"},I=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",w,[a("h1",B,[i(t.$slots,"title",{},void 0,!0)]),o(),c(e).description?(s(),p("div",q,[i(t.$slots,"description",{},void 0,!0)])):u("",!0)]))}});const J=v(I,[["__scopeId","data-v-166d4213"]]),C={class:"onboarding-actions"},T={class:"button-list"},H=g({__name:"OnboardingNavigation",props:{shouldAllowNext:{type:Boolean,required:!1,default:!0},showSkip:{type:Boolean,required:!1,default:!0},nextStep:{type:String,required:!0},previousStep:{type:String,required:!1,default:""},nextStepTitle:{type:String,required:!1,default:"Next"},lastStep:{type:Boolean,required:!1,default:!1}},setup(n){const e=n,t=N();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",C,[e.previousStep?(s(),f(c(_),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button",onClick:r[0]||(r[0]=m=>b(e.previousStep))},{default:l(()=>[o(` +import{d as g,Q as S,o as s,f as p,l as a,q as i,h as o,e as c,g as u,a as f,b as l,i as y,t as k,H as x,p as $,n as O}from"./index-3e91d6ff.js";import{h as v,f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{T as _}from"./kongponents.es-605260c0.js";const w={class:"onboarding-heading"},B={class:"onboarding-title"},q={key:0,class:"onboarding-description"},I=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",w,[a("h1",B,[i(t.$slots,"title",{},void 0,!0)]),o(),c(e).description?(s(),p("div",q,[i(t.$slots,"description",{},void 0,!0)])):u("",!0)]))}});const J=v(I,[["__scopeId","data-v-166d4213"]]),C={class:"onboarding-actions"},T={class:"button-list"},H=g({__name:"OnboardingNavigation",props:{shouldAllowNext:{type:Boolean,required:!1,default:!0},showSkip:{type:Boolean,required:!1,default:!0},nextStep:{type:String,required:!0},previousStep:{type:String,required:!1,default:""},nextStepTitle:{type:String,required:!1,default:"Next"},lastStep:{type:Boolean,required:!1,default:!1}},setup(n){const e=n,t=N();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",C,[e.previousStep?(s(),f(c(_),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button",onClick:r[0]||(r[0]=m=>b(e.previousStep))},{default:l(()=>[o(` Back `)]),_:1},8,["to"])):u("",!0),o(),a("div",T,[e.showSkip?(s(),f(c(_),{key:0,appearance:"outline","data-testid":"onboarding-skip-button",to:{name:"home"},onClick:d},{default:l(()=>[o(` Skip setup diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-0da04a46.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-46286745.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingView-0da04a46.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingView-46286745.js index 9f8c74e4f21e..35a05f379307 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-0da04a46.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-46286745.js @@ -1 +1 @@ -import{g as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as c,r as i,o,a,b as e,i as n,j as l}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const w=c({__name:"OnboardingView",setup(m){return(p,u)=>{const t=i("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(l(r)))]),_:1})]),_:1})]),_:1})}}});export{w as default}; +import{g as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as c,r as i,o,a,b as e,i as n,j as l}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const w=c({__name:"OnboardingView",setup(m){return(p,u)=>{const t=i("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(l(r)))]),_:1})]),_:1})]),_:1})}}});export{w as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-b2fcd47a.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8600a5f0.js similarity index 54% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-b2fcd47a.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8600a5f0.js index 1a152b2b074b..eb48292c96e8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-b2fcd47a.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8600a5f0.js @@ -1 +1 @@ -import{d as h,u as _,c as y,o as i,a as m,b as p,i as r,e as c,h as f,g as d}from"./index-e7c4cb0f.js";import{_ as P}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js";import{f as b,k as x,g as N,_ as k}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./kongponents.es-db3f0bda.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./TextWithCopyButton-7c6aa739.js";import"./toYaml-4e00099e.js";import"./TabsWidget-67e5cef2.js";import"./QueryParameter-70743f73.js";const G=h({__name:"PolicyDetailView",props:{mesh:{},policyPath:{},policyName:{}},setup(l){const e=l,n=_(),t=b(),{t:a}=x(),o=y(()=>t.state.policyTypesByPath[e.policyPath]);u();function u(){t.dispatch("updatePageTitle",n.params.policy)}return(V,$)=>(i(),m(k,{module:"policies"},{default:p(({route:s})=>[r(T,{title:c(a)("policies.routes.item.title")},null,8,["title"]),f(),r(N,{breadcrumbs:[{to:{name:"policies-list-view",params:{mesh:s.params.mesh,policyPath:s.params.policyPath}},text:c(a)("policies.routes.item.breadcrumbs")}]},{default:p(()=>[o.value?(i(),m(P,{key:0,name:e.policyName,mesh:e.mesh,path:e.policyPath,type:o.value.name},null,8,["name","mesh","path","type"])):d("",!0)]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{G as default}; +import{d as h,u as _,c as y,o as i,a as m,b as p,i as r,e as c,h as f,g as d}from"./index-3e91d6ff.js";import{_ as P}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js";import{f as b,k as x,g as N,_ as k}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./kongponents.es-605260c0.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./TextWithCopyButton-6362ddfe.js";import"./toYaml-4e00099e.js";import"./TabsWidget-98d43afa.js";import"./QueryParameter-70743f73.js";const G=h({__name:"PolicyDetailView",props:{mesh:{},policyPath:{},policyName:{}},setup(l){const e=l,n=_(),t=b(),{t:a}=x(),o=y(()=>t.state.policyTypesByPath[e.policyPath]);u();function u(){t.dispatch("updatePageTitle",n.params.policy)}return(V,$)=>(i(),m(k,{module:"policies"},{default:p(({route:s})=>[r(T,{title:c(a)("policies.routes.item.title")},null,8,["title"]),f(),r(N,{breadcrumbs:[{to:{name:"policies-list-view",params:{mesh:s.params.mesh,policyPath:s.params.policyPath}},text:c(a)("policies.routes.item.breadcrumbs")}]},{default:p(()=>[o.value?(i(),m(P,{key:0,name:e.policyName,mesh:e.mesh,path:e.policyPath,type:o.value.name},null,8,["name","mesh","path","type"])):d("",!0)]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js index 114e52345b4e..4335944b9608 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js @@ -1,3 +1,3 @@ -import{d as k,s as p,c as P,w as q,G as D,r as x,o as y,a as N,b as t,h as u,R as T,S as B,l as w,f as v,k as V,i as n,t as g,F as A}from"./index-e7c4cb0f.js";import{_ as L}from"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import{j as C}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as $}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import{T as E}from"./TabsWidget-67e5cef2.js";import{T as F}from"./TextWithCopyButton-7c6aa739.js";const I=w("h2",null,"Dataplanes",-1),M=k({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(f){const e=f,_=C(),m=p(!1),o=p(!0),r=p(!1),i=p([]),a=p(""),l=P(()=>{const h=a.value.toLowerCase();return i.value.filter(({dataplane:s})=>s.name.toLowerCase().includes(h))});q(()=>e.policyName,function(){d()}),D(function(){d()});async function d(){r.value=!1,o.value=!0;try{const{items:h,total:s}=await _.getPolicyConnections({mesh:e.mesh,policyPath:e.policyPath,policyName:e.policyName});m.value=s>0,i.value=h??[]}catch{r.value=!0}finally{o.value=!1}}return(h,s)=>{const S=x("router-link");return y(),N(L,{"has-error":r.value,"is-loading":o.value,"is-empty":!m.value},{default:t(()=>[I,u(),T(w("input",{id:"dataplane-search","onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[B,a.value]]),u(),(y(!0),v(A,null,V(l.value,(c,b)=>(y(),v("p",{key:b,class:"mt-2","data-testid":"dataplane-name"},[n(S,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:t(()=>[u(g(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["has-error","is-loading","is-empty"])}}}),R={class:"policy-details kcard-border"},W={class:"entity-heading","data-testid":"policy-single-entity"},z=k({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(f){const e=f,_=C(),m=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],o=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function r(i){const{name:a,mesh:l,path:d}=e;return await _.getSinglePolicyEntity({name:a,mesh:l,path:d},i)}return(i,a)=>{const l=x("router-link");return y(),v("div",R,[n(E,{tabs:m},{tabHeader:t(()=>[w("h1",W,[u(g(e.type)+`: +import{d as k,s as p,c as P,w as q,G as D,r as x,o as y,a as N,b as t,h as u,R as T,S as B,l as w,f as v,k as V,i as n,t as g,F as A}from"./index-3e91d6ff.js";import{_ as L}from"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import{j as C}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as $}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import{T as E}from"./TabsWidget-98d43afa.js";import{T as F}from"./TextWithCopyButton-6362ddfe.js";const I=w("h2",null,"Dataplanes",-1),M=k({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(f){const e=f,_=C(),m=p(!1),o=p(!0),r=p(!1),i=p([]),a=p(""),l=P(()=>{const h=a.value.toLowerCase();return i.value.filter(({dataplane:s})=>s.name.toLowerCase().includes(h))});q(()=>e.policyName,function(){d()}),D(function(){d()});async function d(){r.value=!1,o.value=!0;try{const{items:h,total:s}=await _.getPolicyConnections({mesh:e.mesh,policyPath:e.policyPath,policyName:e.policyName});m.value=s>0,i.value=h??[]}catch{r.value=!0}finally{o.value=!1}}return(h,s)=>{const S=x("router-link");return y(),N(L,{"has-error":r.value,"is-loading":o.value,"is-empty":!m.value},{default:t(()=>[I,u(),T(w("input",{id:"dataplane-search","onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[B,a.value]]),u(),(y(!0),v(A,null,V(l.value,(c,b)=>(y(),v("p",{key:b,class:"mt-2","data-testid":"dataplane-name"},[n(S,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:t(()=>[u(g(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["has-error","is-loading","is-empty"])}}}),R={class:"policy-details kcard-border"},W={class:"entity-heading","data-testid":"policy-single-entity"},z=k({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(f){const e=f,_=C(),m=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],o=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function r(i){const{name:a,mesh:l,path:d}=e;return await _.getSinglePolicyEntity({name:a,mesh:l,path:d},i)}return(i,a)=>{const l=x("router-link");return y(),v("div",R,[n(E,{tabs:m},{tabHeader:t(()=>[w("h1",W,[u(g(e.type)+`: `,1),n(F,{text:e.name},{default:t(()=>[n(l,{to:o.value},{default:t(()=>[u(g(e.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:t(()=>[n($,{id:"code-block-policy","resource-fetcher":r,"resource-fetcher-watch-key":e.name,"is-searchable":""},null,8,["resource-fetcher-watch-key"])]),"affected-dpps":t(()=>[n(M,{mesh:e.mesh,"policy-name":e.name,"policy-path":e.path},null,8,["mesh","policy-name","policy-path"])]),_:1})])}}});export{z as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-d2f77bad.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-8f70c22b.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/PolicyListView-d2f77bad.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyListView-8f70c22b.js index 39cd0998b583..1aeca82152cd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-d2f77bad.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-8f70c22b.js @@ -1,4 +1,4 @@ -import{l as Z,T as F,Z as W,V as j,v as G}from"./kongponents.es-db3f0bda.js";import{d as I,o as _,a as P,b as l,i as r,e as t,h as c,u as H,D as Y,s as d,c as g,w as J,f as X,l as y,g as N,P as V,H as L,t as ee,p as ae,n as te}from"./index-e7c4cb0f.js";import{_ as se}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-0d0e45ed.js";import{l as le,j as oe,f as ne,k as ie,g as re,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as ue}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as me}from"./DataOverview-49747af7.js";import{Q as $}from"./QueryParameter-70743f73.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./TextWithCopyButton-7c6aa739.js";import"./toYaml-4e00099e.js";import"./TabsWidget-67e5cef2.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";const de=I({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(o){const a=o;return(k,D)=>(_(),P(t(F),{class:"docs-link",appearance:"outline",target:"_blank",to:a.href},{default:l(()=>[r(t(Z),{icon:"externalLink",color:"currentColor",size:"16","hide-title":""}),c(` +import{l as Z,T as F,Z as W,V as j,v as G}from"./kongponents.es-605260c0.js";import{d as I,o as _,a as P,b as l,i as r,e as t,h as c,u as H,D as Y,s as d,c as g,w as J,f as X,l as y,g as N,P as V,H as L,t as ee,p as ae,n as te}from"./index-3e91d6ff.js";import{_ as se}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-a6a4d464.js";import{l as le,j as oe,f as ne,k as ie,g as re,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as ue}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as me}from"./DataOverview-7f440d3d.js";import{Q as $}from"./QueryParameter-70743f73.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./TextWithCopyButton-6362ddfe.js";import"./toYaml-4e00099e.js";import"./TabsWidget-98d43afa.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";const de=I({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(o){const a=o;return(k,D)=>(_(),P(t(F),{class:"docs-link",appearance:"outline",target:"_blank",to:a.href},{default:l(()=>[r(t(Z),{icon:"externalLink",color:"currentColor",size:"16","hide-title":""}),c(` Documentation `)]),_:1},8,["to"]))}}),ye=o=>(ae("data-v-32be22cb"),o=o(),te(),o),he={class:"kcard-stack"},fe={class:"kcard-border"},_e=ye(()=>y("p",null,[y("strong",null,"Warning"),c(` This policy is experimental. If you encountered any problem please open an diff --git a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js rename to app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js index 5f3e1eac826c..b1f29b4fb18d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js +++ b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js @@ -1 +1 @@ -import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{C as b}from"./TextWithCopyButton-7c6aa739.js";import{_ as x}from"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import{k as _}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{t as v}from"./toYaml-4e00099e.js";import{d as k,s as n,w as m,o as q,a as B,b as c,i as d,m as S,e as h,h as C,t as F}from"./index-e7c4cb0f.js";const Y=k({__name:"ResourceCodeBlock",props:{id:{type:String,required:!0},resourceFetcher:{type:Function,required:!0},resourceFetcherWatchKey:{type:[String,Number],required:!1,default:null},codeMaxHeight:{type:String,required:!1,default:null},isSearchable:{type:Boolean,required:!1,default:!1},showCopyAsKubernetesButton:{type:Boolean,required:!1,default:!0}},setup(r){const t=r,i=_(),u=n(""),o=n(!1),a=n(null);m(()=>t.resourceFetcherWatchKey,function(e,s){e!==s&&e!==null&&l()}),m(()=>t.resourceFetcher,function(){l()},{immediate:!0});async function l(){o.value=!0,a.value=null;try{const e=await t.resourceFetcher();u.value=f(e)}catch(e){e instanceof Error?a.value=e:console.error(e)}finally{o.value=!1}}async function y(){const e=await t.resourceFetcher({format:"kubernetes"});return f(e)}function f(e){const{creationTime:s,modificationTime:K,...p}=e;return v(p)}return(e,s)=>(q(),B(x,{"is-loading":o.value,error:a.value},{default:c(()=>[d(g,{id:r.id,language:"yaml",code:u.value,"is-searchable":t.isSearchable,"query-key":t.id,"code-max-height":t.codeMaxHeight},S({_:2},[r.showCopyAsKubernetesButton?{name:"secondary-actions",fn:c(()=>[d(b,{"get-text":y,"copy-text":h(i).t("common.copyKubernetesText")},{default:c(()=>[C(F(h(i).t("common.copyKubernetesShortText")),1)]),_:1},8,["copy-text"])]),key:"0"}:void 0]),1032,["id","code","is-searchable","query-key","code-max-height"])]),_:1},8,["is-loading","error"]))}});export{Y as _}; +import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{C as b}from"./TextWithCopyButton-6362ddfe.js";import{_ as x}from"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import{k as _}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{t as v}from"./toYaml-4e00099e.js";import{d as k,s as n,w as m,o as q,a as B,b as c,i as d,m as S,e as h,h as C,t as F}from"./index-3e91d6ff.js";const Y=k({__name:"ResourceCodeBlock",props:{id:{type:String,required:!0},resourceFetcher:{type:Function,required:!0},resourceFetcherWatchKey:{type:[String,Number],required:!1,default:null},codeMaxHeight:{type:String,required:!1,default:null},isSearchable:{type:Boolean,required:!1,default:!1},showCopyAsKubernetesButton:{type:Boolean,required:!1,default:!0}},setup(r){const t=r,i=_(),u=n(""),o=n(!1),a=n(null);m(()=>t.resourceFetcherWatchKey,function(e,s){e!==s&&e!==null&&l()}),m(()=>t.resourceFetcher,function(){l()},{immediate:!0});async function l(){o.value=!0,a.value=null;try{const e=await t.resourceFetcher();u.value=f(e)}catch(e){e instanceof Error?a.value=e:console.error(e)}finally{o.value=!1}}async function y(){const e=await t.resourceFetcher({format:"kubernetes"});return f(e)}function f(e){const{creationTime:s,modificationTime:K,...p}=e;return v(p)}return(e,s)=>(q(),B(x,{"is-loading":o.value,error:a.value},{default:c(()=>[d(g,{id:r.id,language:"yaml",code:u.value,"is-searchable":t.isSearchable,"query-key":t.id,"code-max-height":t.codeMaxHeight},S({_:2},[r.showCopyAsKubernetesButton?{name:"secondary-actions",fn:c(()=>[d(b,{"get-text":y,"copy-text":h(i).t("common.copyKubernetesText")},{default:c(()=>[C(F(h(i).t("common.copyKubernetesShortText")),1)]),_:1},8,["copy-text"])]),key:"0"}:void 0]),1032,["id","code","is-searchable","query-key","code-max-height"])]),_:1},8,["is-loading","error"]))}});export{Y as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js rename to app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js index 715c42f84d24..d3901bd3e29d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js @@ -1 +1 @@ -import{d as i,a4 as a,w as s,N as m,g as u}from"./index-e7c4cb0f.js";const d=i({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""}},setup(n){const r=n,o=Symbol("route-title"),e=a("route-view-parent");return typeof e<"u"&&(s(()=>r.title,t=>{t.length>0&&e.addTitle(t,o)},{immediate:!0}),m(()=>{e.removeTitle(o)})),(t,c)=>u("",!0)}});export{d as _}; +import{d as i,a4 as a,w as s,N as m,g as u}from"./index-3e91d6ff.js";const d=i({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""}},setup(n){const r=n,o=Symbol("route-title"),e=a("route-view-parent");return typeof e<"u"&&(s(()=>r.title,t=>{t.length>0&&e.addTitle(t,o)},{immediate:!0}),m(()=>{e.removeTitle(o)})),(t,c)=>u("",!0)}});export{d as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js rename to app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js index 06632cdf14cc..e57472e9598d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js @@ -1,4 +1,4 @@ -var ee=Object.defineProperty;var ie=(i,t,e)=>t in i?ee(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var w=(i,t,e)=>(ie(i,typeof t!="symbol"?t+"":t,e),e);import{l as b2,Q as se,T as q1,V as F6,h as o1,J as t7,B as ne,Z as dt,f as oe,g as re}from"./kongponents.es-db3f0bda.js";import{d as I,a4 as X2,s as p1,c as X,o as V,f as B,l as f,q as E1,h as C,i as S,b as H,g as l1,T as ae,H as V6,a5 as q2,a6 as le,a7 as v1,a8 as ft,a9 as ce,aa as g2,ab as he,ac as de,a as n1,e as x,t as O,r as ut,p as I6,n as T6,G as f6,M as Ct,ad as pt,L as e1,u as R6,Z as fe,w as S2,F as E6,k as $6,ae as gt,af as ue,N as _t,ag as w6,ah as mt,D as Ce,j as pe,Y as e7,J as k2,ai as i1}from"./index-e7c4cb0f.js";const ge=["aria-expanded"],_e={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},me=I({__name:"AccordionItem",setup(i){const t=X2("parentAccordion"),e=p1(null),s=X(()=>t===void 0?!1:t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.includes(e.value):e.value===t.active.value);t!==void 0&&(e.value=t.count.value++);function n(){s.value?o():r()}function o(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.splice(t.active.value.indexOf(e.value),1):t.active.value=null)}function r(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.push(e.value):t.active.value=e.value)}function a(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function l(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,h)=>(V(),B("li",{class:V6(["accordion-item",{active:s.value}])},[f("button",{class:"accordion-item-header",type:"button","aria-expanded":s.value?"true":"false","data-testid":"accordion-item-button",onClick:n},[E1(c.$slots,"accordion-header",{},void 0,!0)],8,ge),C(),S(ae,{name:"accordion",onEnter:a,onAfterEnter:l,onBeforeLeave:a},{default:H(()=>[s.value?(V(),B("div",_e,[E1(c.$slots,"accordion-content",{},void 0,!0)])):l1("",!0)]),_:3})],2))}});const c1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e},Me=c1(me,[["__scopeId","data-v-dfd99690"]]),xe={class:"accordion-list"},ye=I({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(i){const t=i,e=p1(0),s=p1(t.initiallyOpen!==null?t.initiallyOpen:t.multipleOpen?[]:null);return q2("parentAccordion",{multipleOpen:t.multipleOpen,active:s,count:e}),(n,o)=>(V(),B("ul",xe,[E1(n.$slots,"default",{},void 0,!0)]))}});const be=c1(ye,[["__scopeId","data-v-53d92d22"]]);function t2(){return le(v1.store)}const[G1,Le,Mt,ys,bs,Ls,ve,He]=ft(v1.env,v1.nav,v1.api,v1.store,v1.router,v1.bootstrap,v1.i18n,v1.logger),Ve=I({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const i={ref:"_"};for(const t in this.$props)i[ce(t)]=this.$props[t];return g2("span",[he(this.$slots,"default")?g2("a",i,this.$slots.default()):g2("a",i)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const i=this.$el.appendChild(document.createElement("span")),t=this;de(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(e){e.render(i.appendChild(t.$refs._),function(s){try{i.parentNode.replaceChild(s,i)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),we=f("p",null,"Unable to reach the API",-1),Se={key:0},ke=I({__name:"AppErrorMessage",setup(i){const t=Mt();return(e,s)=>(V(),n1(x(se),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:H(()=>[S(x(b2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),we]),message:H(()=>[f("p",null,[C(` +var ee=Object.defineProperty;var ie=(i,t,e)=>t in i?ee(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var w=(i,t,e)=>(ie(i,typeof t!="symbol"?t+"":t,e),e);import{l as b2,Q as se,T as q1,V as F6,h as o1,J as t7,B as ne,Z as dt,f as oe,g as re}from"./kongponents.es-605260c0.js";import{d as I,a4 as X2,s as p1,c as X,o as V,f as B,l as f,q as E1,h as C,i as S,b as H,g as l1,T as ae,H as V6,a5 as q2,a6 as le,a7 as v1,a8 as ft,a9 as ce,aa as g2,ab as he,ac as de,a as n1,e as x,t as O,r as ut,p as I6,n as T6,G as f6,M as Ct,ad as pt,L as e1,u as R6,Z as fe,w as S2,F as E6,k as $6,ae as gt,af as ue,N as _t,ag as w6,ah as mt,D as Ce,j as pe,Y as e7,J as k2,ai as i1}from"./index-3e91d6ff.js";const ge=["aria-expanded"],_e={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},me=I({__name:"AccordionItem",setup(i){const t=X2("parentAccordion"),e=p1(null),s=X(()=>t===void 0?!1:t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.includes(e.value):e.value===t.active.value);t!==void 0&&(e.value=t.count.value++);function n(){s.value?o():r()}function o(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.splice(t.active.value.indexOf(e.value),1):t.active.value=null)}function r(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.push(e.value):t.active.value=e.value)}function a(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function l(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,h)=>(V(),B("li",{class:V6(["accordion-item",{active:s.value}])},[f("button",{class:"accordion-item-header",type:"button","aria-expanded":s.value?"true":"false","data-testid":"accordion-item-button",onClick:n},[E1(c.$slots,"accordion-header",{},void 0,!0)],8,ge),C(),S(ae,{name:"accordion",onEnter:a,onAfterEnter:l,onBeforeLeave:a},{default:H(()=>[s.value?(V(),B("div",_e,[E1(c.$slots,"accordion-content",{},void 0,!0)])):l1("",!0)]),_:3})],2))}});const c1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e},Me=c1(me,[["__scopeId","data-v-dfd99690"]]),xe={class:"accordion-list"},ye=I({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(i){const t=i,e=p1(0),s=p1(t.initiallyOpen!==null?t.initiallyOpen:t.multipleOpen?[]:null);return q2("parentAccordion",{multipleOpen:t.multipleOpen,active:s,count:e}),(n,o)=>(V(),B("ul",xe,[E1(n.$slots,"default",{},void 0,!0)]))}});const be=c1(ye,[["__scopeId","data-v-53d92d22"]]);function t2(){return le(v1.store)}const[G1,Le,Mt,ys,bs,Ls,ve,He]=ft(v1.env,v1.nav,v1.api,v1.store,v1.router,v1.bootstrap,v1.i18n,v1.logger),Ve=I({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const i={ref:"_"};for(const t in this.$props)i[ce(t)]=this.$props[t];return g2("span",[he(this.$slots,"default")?g2("a",i,this.$slots.default()):g2("a",i)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const i=this.$el.appendChild(document.createElement("span")),t=this;de(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(e){e.render(i.appendChild(t.$refs._),function(s){try{i.parentNode.replaceChild(s,i)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),we=f("p",null,"Unable to reach the API",-1),Se={key:0},ke=I({__name:"AppErrorMessage",setup(i){const t=Mt();return(e,s)=>(V(),n1(x(se),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:H(()=>[S(x(b2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),we]),message:H(()=>[f("p",null,[C(` Please double check to make sure it is up and running `),x(t).baseUrl?(V(),B("span",Se,[C(", and it is reachable at "),f("code",null,O(x(t).baseUrl),1)])):l1("",!0)])]),_:1}))}}),Ae={key:0,"data-testid":"notification-amount",class:"notification-icon__amount"},Be=I({__name:"NotificationIcon",setup(i){const t=t2(),e=X(()=>t.getters["notifications/amountOfActions"]);function s(){t.dispatch("notifications/openModal")}return(n,o)=>(V(),B("button",{class:"notification-icon cursor-pointer",type:"button",onClick:s},[S(x(b2),{icon:"notificationBell",color:"var(--yellow-300)"}),C(),e.value>0?(V(),B("span",Ae,O(e.value),1)):l1("",!0)]))}});const Ze=c1(Be,[["__scopeId","data-v-8303fa85"]]),Oe={class:"upgrade-check"},Pe={class:"alert-content"},De=I({__name:"UpgradeCheck",setup(i){const t=Mt(),e=G1(),s=p1(""),n=p1(!1);r(e("KUMA_VERSION"));const o=(a,l)=>{const c=a.split("."),h=l.split(".");for(let d=0;d<3;d++){const u=Number(c[d]),p=Number(h[d]);if(u>p)return 1;if(p>u)return-1}return 0};async function r(a){if(a.match("^[0-9]+.[0-9]+.[0-9]+$")){try{s.value=await t.getLatestVersion()}catch(l){console.error(l);return}if(s.value!==""){const l=o(s.value,a);n.value=l===1}else{const c=new Date,h=new Date("2020-06-03 12:00:00"),d=new Date(h.getFullYear(),h.getMonth()+3,h.getDate());n.value=c.getTime()>=d.getTime()}}}return(a,l)=>(V(),B("div",Oe,[n.value?(V(),n1(x(F6),{key:0,class:"upgrade-check-alert",appearance:"warning",size:"small"},{alertMessage:H(()=>[f("div",Pe,[f("div",null,O(x(e)("KUMA_PRODUCT_NAME"))+` update available `,1),C(),f("div",null,[S(x(q1),{class:"warning-button",appearance:"primary",size:"small",to:x(e)("KUMA_INSTALL_URL")},{default:H(()=>[C(` Update diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-cd2d48eb.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-11066707.js similarity index 74% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-cd2d48eb.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-11066707.js index 16809ec681a2..c0fd699224ba 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-cd2d48eb.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-11066707.js @@ -1 +1 @@ -import{d as E,o,f as B,i as b,h as T,a as p,g as I,F as L,u as V,s as d,w as P,b as F,e as N,l as j}from"./index-e7c4cb0f.js";import{S as z}from"./ServiceSummary-b59a9e0a.js";import{D as C}from"./DataPlaneList-777ed13b.js";import{j as R,f as G,k as Q,g as W,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as K}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as H}from"./ErrorBlock-86257192.js";import{_ as U}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{Q as X}from"./QueryParameter-70743f73.js";import"./kongponents.es-db3f0bda.js";import"./DefinitionListItem-84d660bf.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./TextWithCopyButton-7c6aa739.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./toYaml-4e00099e.js";import"./StatusBadge-d4b430b5.js";import"./TagList-da1dbae1.js";import"./ContentWrapper-a800305f.js";import"./DataOverview-49747af7.js";const Y=E({__name:"ServiceDetails",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null},dataPlaneOverviews:{type:Array,required:!1,default:null},dppFilterFields:{type:Object,required:!0},selectedDppName:{type:String,required:!1,default:null}},emits:["load-dataplane-overviews"],setup(f,{emit:_}){const e=f;function a(w,c){var l;(((l=e.service.serviceType)==null?void 0:l.startsWith("gateway"))??!1)||delete c.gateway,_("load-dataplane-overviews",w,c)}return(w,c)=>{var u;return o(),B(L,null,[b(z,{service:e.service,"external-service":f.externalService},null,8,["service","external-service"]),T(),e.dataPlaneOverviews!==null?(o(),p(C,{key:0,class:"mt-4","data-plane-overviews":e.dataPlaneOverviews,"dpp-filter-fields":e.dppFilterFields,"selected-dpp-name":e.selectedDppName,"is-gateway-view":((u=e.dataPlaneOverviews[0])==null?void 0:u.dataplane.networking.gateway)!==void 0,onLoadData:a},null,8,["data-plane-overviews","dpp-filter-fields","selected-dpp-name","is-gateway-view"])):I("",!0)],64)}}}),Z={class:"service-details"},he=E({__name:"ServiceDetailView",props:{selectedDppName:{type:String,required:!1,default:null}},setup(f){const _=f,e=R(),a=V(),w=G(),{t:c}=Q(),u={name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},l=d(null),h=d(null),g=d(null),S=d(!0),y=d(null);P(()=>a.params.mesh,function(){a.name==="service-detail-view"&&x(0)}),P(()=>a.params.name,function(){a.name==="service-detail-view"&&x(0)});function $(){w.dispatch("updatePageTitle",a.params.service);const t=X.get("filterFields"),n=t!==null?JSON.parse(t):{};x(0,n)}$();async function x(t,n={}){S.value=!0,y.value=null,l.value=null,h.value=null,g.value=null;const r=a.params.mesh,m=a.params.service;try{l.value=await e.getServiceInsight({mesh:r,name:m}),l.value.serviceType==="external"?h.value=await e.getExternalServiceByServiceInsightName(r,m):await O(t,n)}catch(s){s instanceof Error?y.value=s:console.error(s)}finally{S.value=!1}}async function O(t,n){const r=a.params.mesh,m=a.params.service;try{const s=q(m,t,n),i=await e.getAllDataplaneOverviewsFromMesh({mesh:r},s);g.value=i.items??[]}catch{g.value=null}}function q(t,n,r){const s=`kuma.io/service:${t}`,i={...r,offset:n,size:50};if(i.tag){const D=Array.isArray(i.tag)?i.tag:[i.tag],k=[];for(const[v,A]of D.entries())A.startsWith("kuma.io/service:")&&k.push(v);for(let v=k.length-1;v===0;v--)D.splice(k[v],1);i.tag=D.concat(s)}else i.tag=s;return i}return(t,n)=>(o(),p(J,{module:"services"},{default:F(({route:r})=>[b(K,{title:N(c)("services.routes.item.title",{name:r.params.service})},null,8,["title"]),T(),b(W,{breadcrumbs:[{to:{name:"services-list-view",params:{mesh:r.params.mesh}},text:N(c)("services.routes.item.breadcrumbs")}]},{default:F(()=>[j("div",Z,[S.value?(o(),p(U,{key:0})):y.value!==null?(o(),p(H,{key:1,error:y.value},null,8,["error"])):l.value===null?(o(),p(M,{key:2})):(o(),p(Y,{key:3,service:l.value,"data-plane-overviews":g.value,"external-service":h.value,"dpp-filter-fields":u,"selected-dpp-name":_.selectedDppName,onLoadDataplaneOverviews:O},null,8,["service","data-plane-overviews","external-service","selected-dpp-name"]))])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{he as default}; +import{d as E,o,f as B,i as b,h as T,a as p,g as I,F as L,u as V,s as d,w as P,b as F,e as N,l as j}from"./index-3e91d6ff.js";import{S as z}from"./ServiceSummary-9a459366.js";import{D as C}from"./DataPlaneList-c00650aa.js";import{j as R,f as G,k as Q,g as W,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as K}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as H}from"./ErrorBlock-c00a9be3.js";import{_ as U}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{Q as X}from"./QueryParameter-70743f73.js";import"./kongponents.es-605260c0.js";import"./DefinitionListItem-dd7f1ed7.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./TextWithCopyButton-6362ddfe.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./toYaml-4e00099e.js";import"./StatusBadge-456f7f13.js";import"./TagList-337d8082.js";import"./ContentWrapper-ae5c5230.js";import"./DataOverview-7f440d3d.js";const Y=E({__name:"ServiceDetails",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null},dataPlaneOverviews:{type:Array,required:!1,default:null},dppFilterFields:{type:Object,required:!0},selectedDppName:{type:String,required:!1,default:null}},emits:["load-dataplane-overviews"],setup(f,{emit:_}){const e=f;function a(w,c){var l;(((l=e.service.serviceType)==null?void 0:l.startsWith("gateway"))??!1)||delete c.gateway,_("load-dataplane-overviews",w,c)}return(w,c)=>{var u;return o(),B(L,null,[b(z,{service:e.service,"external-service":f.externalService},null,8,["service","external-service"]),T(),e.dataPlaneOverviews!==null?(o(),p(C,{key:0,class:"mt-4","data-plane-overviews":e.dataPlaneOverviews,"dpp-filter-fields":e.dppFilterFields,"selected-dpp-name":e.selectedDppName,"is-gateway-view":((u=e.dataPlaneOverviews[0])==null?void 0:u.dataplane.networking.gateway)!==void 0,onLoadData:a},null,8,["data-plane-overviews","dpp-filter-fields","selected-dpp-name","is-gateway-view"])):I("",!0)],64)}}}),Z={class:"service-details"},he=E({__name:"ServiceDetailView",props:{selectedDppName:{type:String,required:!1,default:null}},setup(f){const _=f,e=R(),a=V(),w=G(),{t:c}=Q(),u={name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},l=d(null),h=d(null),g=d(null),S=d(!0),y=d(null);P(()=>a.params.mesh,function(){a.name==="service-detail-view"&&x(0)}),P(()=>a.params.name,function(){a.name==="service-detail-view"&&x(0)});function $(){w.dispatch("updatePageTitle",a.params.service);const t=X.get("filterFields"),n=t!==null?JSON.parse(t):{};x(0,n)}$();async function x(t,n={}){S.value=!0,y.value=null,l.value=null,h.value=null,g.value=null;const r=a.params.mesh,m=a.params.service;try{l.value=await e.getServiceInsight({mesh:r,name:m}),l.value.serviceType==="external"?h.value=await e.getExternalServiceByServiceInsightName(r,m):await O(t,n)}catch(s){s instanceof Error?y.value=s:console.error(s)}finally{S.value=!1}}async function O(t,n){const r=a.params.mesh,m=a.params.service;try{const s=q(m,t,n),i=await e.getAllDataplaneOverviewsFromMesh({mesh:r},s);g.value=i.items??[]}catch{g.value=null}}function q(t,n,r){const s=`kuma.io/service:${t}`,i={...r,offset:n,size:50};if(i.tag){const D=Array.isArray(i.tag)?i.tag:[i.tag],k=[];for(const[v,A]of D.entries())A.startsWith("kuma.io/service:")&&k.push(v);for(let v=k.length-1;v===0;v--)D.splice(k[v],1);i.tag=D.concat(s)}else i.tag=s;return i}return(t,n)=>(o(),p(J,{module:"services"},{default:F(({route:r})=>[b(K,{title:N(c)("services.routes.item.title",{name:r.params.service})},null,8,["title"]),T(),b(W,{breadcrumbs:[{to:{name:"services-list-view",params:{mesh:r.params.mesh}},text:N(c)("services.routes.item.breadcrumbs")}]},{default:F(()=>[j("div",Z,[S.value?(o(),p(U,{key:0})):y.value!==null?(o(),p(H,{key:1,error:y.value},null,8,["error"])):l.value===null?(o(),p(M,{key:2})):(o(),p(Y,{key:3,service:l.value,"data-plane-overviews":g.value,"external-service":h.value,"dpp-filter-fields":u,"selected-dpp-name":_.selectedDppName,onLoadDataplaneOverviews:O},null,8,["service","data-plane-overviews","external-service","selected-dpp-name"]))])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{he as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-23590bcc.js b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-6d15a789.js similarity index 72% rename from app/kuma-ui/pkg/resources/data/assets/ServiceListView-23590bcc.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceListView-6d15a789.js index b4e6c9d642f7..e502c14bbdae 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-23590bcc.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-6d15a789.js @@ -1 +1 @@ -import{d as L,u as z,s as l,w as B,o as h,a as w,b as u,i as c,e as k,h as q,P as D,g as F}from"./index-e7c4cb0f.js";import{S as M}from"./ServiceSummary-b59a9e0a.js";import{j as O,k as Q,g as R,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{C as G}from"./ContentWrapper-a800305f.js";import{D as K}from"./DataOverview-49747af7.js";import{Q as S}from"./QueryParameter-70743f73.js";import"./kongponents.es-db3f0bda.js";import"./DefinitionListItem-84d660bf.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./TextWithCopyButton-7c6aa739.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./toYaml-4e00099e.js";import"./StatusBadge-d4b430b5.js";import"./TagList-da1dbae1.js";const pe=L({__name:"ServiceListView",props:{selectedServiceName:{type:String,required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const m=N,p=O(),{t:P}=Q(),A=[{label:"Name",key:"entity"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"Status",key:"status"},{label:"DP proxies (online / total)",key:"dpProxiesStatus"}],E={title:"No Data",message:"There are no service insights present."},v=z(),d=l(!0),f=l(null),b=l(null),x=l(m.offset),t=l(null),i=l(null),n=l({headers:A,data:[]});B(()=>v.params.mesh,function(){v.name==="services-list-view"&&y(0)}),y(m.offset);async function y(a){var o;x.value=a,S.set("offset",a>0?a:null),d.value=!0,f.value=null;const e=v.params.mesh,r=D;try{const{items:s,next:_}=await p.getAllServiceInsightsFromMesh({mesh:e},{size:r,offset:a});b.value=_,n.value.data=C(s??[]),await g({name:m.selectedServiceName??((o=n.value.data[0])==null?void 0:o.entity.name),mesh:e})}catch(s){n.value.data=[],t.value=null,i.value=null,s instanceof Error?f.value=s:console.error(s)}finally{d.value=!1}}function C(a){return a.map(e=>{const{serviceType:r="internal",addressPort:o="",status:s="not_available"}=e,_={name:"service-detail-view",params:{mesh:e.mesh,service:e.name}};let T="—";if(e.dataplanes){const{online:V=0,total:$=0}=e.dataplanes;T=`${V} / ${$}`}return{entity:e,detailViewRoute:_,status:s,serviceType:r,dpProxiesStatus:T,addressPort:o}})}async function g({name:a,mesh:e}){a!==void 0?(t.value=await p.getServiceInsight({mesh:e,name:a}),t.value.serviceType==="external"&&(i.value=await p.getExternalServiceByServiceInsightName(e,a)),S.set("service",a)):(t.value=null,i.value=null,S.set("service",null))}return(a,e)=>(h(),w(U,{module:"services"},{default:u(()=>[c(j,{title:k(P)("services.routes.items.title")},null,8,["title"]),q(),c(R,null,{default:u(()=>[c(G,null,{content:u(()=>{var r;return[c(K,{"selected-entity-name":(r=t.value)==null?void 0:r.name,"page-size":k(D),error:f.value,"is-loading":d.value,"empty-state":E,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":x.value,onTableAction:g,onLoadData:y},null,8,["selected-entity-name","page-size","error","is-loading","table-data","table-data-is-empty","next","page-offset"])]}),sidebar:u(()=>[t.value!==null?(h(),w(M,{key:0,service:t.value,"external-service":i.value},null,8,["service","external-service"])):F("",!0)]),_:1})]),_:1})]),_:1}))}});export{pe as default}; +import{d as L,u as z,s as l,w as B,o as h,a as w,b as u,i as c,e as k,h as q,P as D,g as F}from"./index-3e91d6ff.js";import{S as M}from"./ServiceSummary-9a459366.js";import{j as O,k as Q,g as R,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{C as G}from"./ContentWrapper-ae5c5230.js";import{D as K}from"./DataOverview-7f440d3d.js";import{Q as S}from"./QueryParameter-70743f73.js";import"./kongponents.es-605260c0.js";import"./DefinitionListItem-dd7f1ed7.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./TextWithCopyButton-6362ddfe.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./toYaml-4e00099e.js";import"./StatusBadge-456f7f13.js";import"./TagList-337d8082.js";const pe=L({__name:"ServiceListView",props:{selectedServiceName:{type:String,required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const m=N,p=O(),{t:P}=Q(),A=[{label:"Name",key:"entity"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"Status",key:"status"},{label:"DP proxies (online / total)",key:"dpProxiesStatus"}],E={title:"No Data",message:"There are no service insights present."},v=z(),d=l(!0),f=l(null),b=l(null),x=l(m.offset),t=l(null),i=l(null),n=l({headers:A,data:[]});B(()=>v.params.mesh,function(){v.name==="services-list-view"&&y(0)}),y(m.offset);async function y(a){var o;x.value=a,S.set("offset",a>0?a:null),d.value=!0,f.value=null;const e=v.params.mesh,r=D;try{const{items:s,next:_}=await p.getAllServiceInsightsFromMesh({mesh:e},{size:r,offset:a});b.value=_,n.value.data=C(s??[]),await g({name:m.selectedServiceName??((o=n.value.data[0])==null?void 0:o.entity.name),mesh:e})}catch(s){n.value.data=[],t.value=null,i.value=null,s instanceof Error?f.value=s:console.error(s)}finally{d.value=!1}}function C(a){return a.map(e=>{const{serviceType:r="internal",addressPort:o="",status:s="not_available"}=e,_={name:"service-detail-view",params:{mesh:e.mesh,service:e.name}};let T="—";if(e.dataplanes){const{online:V=0,total:$=0}=e.dataplanes;T=`${V} / ${$}`}return{entity:e,detailViewRoute:_,status:s,serviceType:r,dpProxiesStatus:T,addressPort:o}})}async function g({name:a,mesh:e}){a!==void 0?(t.value=await p.getServiceInsight({mesh:e,name:a}),t.value.serviceType==="external"&&(i.value=await p.getExternalServiceByServiceInsightName(e,a)),S.set("service",a)):(t.value=null,i.value=null,S.set("service",null))}return(a,e)=>(h(),w(U,{module:"services"},{default:u(()=>[c(j,{title:k(P)("services.routes.items.title")},null,8,["title"]),q(),c(R,null,{default:u(()=>[c(G,null,{content:u(()=>{var r;return[c(K,{"selected-entity-name":(r=t.value)==null?void 0:r.name,"page-size":k(D),error:f.value,"is-loading":d.value,"empty-state":E,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":x.value,onTableAction:g,onLoadData:y},null,8,["selected-entity-name","page-size","error","is-loading","table-data","table-data-is-empty","next","page-offset"])]}),sidebar:u(()=>[t.value!==null?(h(),w(M,{key:0,service:t.value,"external-service":i.value},null,8,["service","external-service"])):F("",!0)]),_:1})]),_:1})]),_:1}))}});export{pe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-b59a9e0a.js b/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-9a459366.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/ServiceSummary-b59a9e0a.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceSummary-9a459366.js index 12c041b276fc..bc6097d4ca57 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-b59a9e0a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-9a459366.js @@ -1,4 +1,4 @@ -import{Z as D}from"./kongponents.es-db3f0bda.js";import{a as u,D as B}from"./DefinitionListItem-84d660bf.js";import{_ as C}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-625782e1.js";import{S as P}from"./StatusBadge-d4b430b5.js";import{T as V}from"./TagList-da1dbae1.js";import{T as L}from"./TextWithCopyButton-7c6aa739.js";import{j as N,h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as A,c as i,r as E,o as l,a as o,b as s,l as v,h as t,i as c,t as m,g as d,f as h,F as k,e as I}from"./index-e7c4cb0f.js";const O={class:"entity-section-list"},$={class:"entity-title"},q=A({__name:"ServiceSummary",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null}},setup(g){const e=g,p=N(),b=i(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),f=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),_=i(()=>{var r;return e.service.serviceType==="external"&&e.externalService!==null?(r=e.externalService.networking.tls)!=null&&r.enabled?"Enabled":"Disabled":null}),x=i(()=>{var r,a;if(e.service.serviceType==="external")return null;{const n=((r=e.service.dataplanes)==null?void 0:r.online)??0,w=((a=e.service.dataplanes)==null?void 0:a.total)??0;return`${n} online / ${w} total`}}),y=i(()=>e.service.serviceType==="external"?null:e.service.status??null),S=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function T(r){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:a,name:n}=e.externalService;return await p.getExternalService({mesh:a,name:n},r)}else{const{mesh:a,name:n}=e.service;return await p.getServiceInsight({mesh:a,name:n},r)}}return(r,a)=>{const n=E("router-link");return l(),o(I(D),null,{body:s(()=>[v("div",O,[v("section",null,[v("h1",$,[v("span",null,[t(` +import{Z as D}from"./kongponents.es-605260c0.js";import{a as u,D as B}from"./DefinitionListItem-dd7f1ed7.js";import{_ as C}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-ad3fe3ac.js";import{S as P}from"./StatusBadge-456f7f13.js";import{T as V}from"./TagList-337d8082.js";import{T as L}from"./TextWithCopyButton-6362ddfe.js";import{j as N,h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as A,c as i,r as E,o as l,a as o,b as s,l as v,h as t,i as c,t as m,g as d,f as h,F as k,e as I}from"./index-3e91d6ff.js";const O={class:"entity-section-list"},$={class:"entity-title"},q=A({__name:"ServiceSummary",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null}},setup(g){const e=g,p=N(),b=i(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),f=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),_=i(()=>{var r;return e.service.serviceType==="external"&&e.externalService!==null?(r=e.externalService.networking.tls)!=null&&r.enabled?"Enabled":"Disabled":null}),x=i(()=>{var r,a;if(e.service.serviceType==="external")return null;{const n=((r=e.service.dataplanes)==null?void 0:r.online)??0,w=((a=e.service.dataplanes)==null?void 0:a.total)??0;return`${n} online / ${w} total`}}),y=i(()=>e.service.serviceType==="external"?null:e.service.status??null),S=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function T(r){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:a,name:n}=e.externalService;return await p.getExternalService({mesh:a,name:n},r)}else{const{mesh:a,name:n}=e.service;return await p.getServiceInsight({mesh:a,name:n},r)}}return(r,a)=>{const n=E("router-link");return l(),o(I(D),null,{body:s(()=>[v("div",O,[v("section",null,[v("h1",$,[v("span",null,[t(` Service: `),c(L,{text:e.service.name},{default:s(()=>[c(n,{to:b.value},{default:s(()=>[t(m(e.service.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),t(),y.value?(l(),o(P,{key:0,status:y.value},null,8,["status"])):d("",!0)]),t(),c(B,{class:"mt-4"},{default:s(()=>[c(u,{term:"Address"},{default:s(()=>[f.value!==null?(l(),h(k,{key:0},[t(m(f.value),1)],64)):(l(),h(k,{key:1},[t(` diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-d4b430b5.js b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-456f7f13.js similarity index 74% rename from app/kuma-ui/pkg/resources/data/assets/StatusBadge-d4b430b5.js rename to app/kuma-ui/pkg/resources/data/assets/StatusBadge-456f7f13.js index b5d4b8da0a00..8007f6ff1e43 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-d4b430b5.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-456f7f13.js @@ -1 +1 @@ -import{k as e,h as n}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as o,o as r,f as u,l as p,t as _,e as c,H as d}from"./index-e7c4cb0f.js";const i=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(s){const t=s,a=e();return(l,m)=>(r(),u("span",{class:d(["status",{[`status--${t.status}`]:!0}]),"data-testid":"status-badge"},[p("span",null,_(c(a).t(`http.api.value.${t.status}`)),1)],2))}});const B=n(i,[["__scopeId","data-v-28156661"]]);export{B as S}; +import{k as e,h as n}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as o,o as r,f as u,l as p,t as _,e as c,H as d}from"./index-3e91d6ff.js";const i=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(s){const t=s,a=e();return(l,m)=>(r(),u("span",{class:d(["status",{[`status--${t.status}`]:!0}]),"data-testid":"status-badge"},[p("span",null,_(c(a).t(`http.api.value.${t.status}`)),1)],2))}});const B=n(i,[["__scopeId","data-v-28156661"]]);export{B as S}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js rename to app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js index 1582a170c48c..50fee87661c0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js @@ -1 +1 @@ -import{_ as l}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as s}from"./ErrorBlock-86257192.js";import{_ as n}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{d as f,o as r,f as a,a as o,q as i}from"./index-e7c4cb0f.js";const m={key:3},p=f({__name:"StatusInfo",props:{isLoading:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},error:{type:[Error,null],required:!1,default:null}},setup(e){return(t,u)=>(r(),a("div",null,[e.isLoading?(r(),o(n,{key:0})):e.hasError||e.error!==null?(r(),o(s,{key:1,error:e.error},null,8,["error"])):e.isEmpty?(r(),o(l,{key:2})):(r(),a("div",m,[i(t.$slots,"default")]))]))}});export{p as _}; +import{_ as l}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as s}from"./ErrorBlock-c00a9be3.js";import{_ as n}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{d as f,o as r,f as a,a as o,q as i}from"./index-3e91d6ff.js";const m={key:3},p=f({__name:"StatusInfo",props:{isLoading:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},error:{type:[Error,null],required:!1,default:null}},setup(e){return(t,u)=>(r(),a("div",null,[e.isLoading?(r(),o(n,{key:0})):e.hasError||e.error!==null?(r(),o(s,{key:1,error:e.error},null,8,["error"])):e.isEmpty?(r(),o(l,{key:2})):(r(),a("div",m,[i(t.$slots,"default")]))]))}});export{p as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-759bb1a3.js b/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-f870dd24.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/StepSkeleton-759bb1a3.js rename to app/kuma-ui/pkg/resources/data/assets/StepSkeleton-f870dd24.js index 352ce8ae0fa0..b174c355ad26 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-759bb1a3.js +++ b/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-f870dd24.js @@ -1,4 +1,4 @@ -import{d as F,o as a,f as o,l as t,t as B,g as h,h as _,H as f,q as b,s as y,c as w,G as D,F as m,k as v,R as z,a0 as S,i as u,b as k,e as p}from"./index-e7c4cb0f.js";import{h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{l as C,T as x}from"./kongponents.es-db3f0bda.js";import{Q as $}from"./QueryParameter-70743f73.js";const I={class:"form-line-wrapper"},L={key:0,class:"form-line__col"},P=["for"],V=F({__name:"FormFragment",props:{title:{type:String,required:!1,default:null},forAttr:{type:String,required:!1,default:null},allInline:{type:Boolean,default:!1},hideLabelCol:{type:Boolean,default:!1},equalCols:{type:Boolean,default:!1},shiftRight:{type:Boolean,default:!1}},setup(d){const r=d;return(l,e)=>(a(),o("div",I,[t("div",{class:f(["form-line",{"has-equal-cols":r.equalCols}])},[r.hideLabelCol?h("",!0):(a(),o("div",L,[t("label",{for:r.forAttr,class:"k-input-label"},B(r.title)+`: +import{d as F,o as a,f as o,l as t,t as B,g as h,h as _,H as f,q as b,s as y,c as w,G as D,F as m,k as v,R as z,a0 as S,i as u,b as k,e as p}from"./index-3e91d6ff.js";import{h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{l as C,T as x}from"./kongponents.es-605260c0.js";import{Q as $}from"./QueryParameter-70743f73.js";const I={class:"form-line-wrapper"},L={key:0,class:"form-line__col"},P=["for"],V=F({__name:"FormFragment",props:{title:{type:String,required:!1,default:null},forAttr:{type:String,required:!1,default:null},allInline:{type:Boolean,default:!1},hideLabelCol:{type:Boolean,default:!1},equalCols:{type:Boolean,default:!1},shiftRight:{type:Boolean,default:!1}},setup(d){const r=d;return(l,e)=>(a(),o("div",I,[t("div",{class:f(["form-line",{"has-equal-cols":r.equalCols}])},[r.hideLabelCol?h("",!0):(a(),o("div",L,[t("label",{for:r.forAttr,class:"k-input-label"},B(r.title)+`: `,9,P)])),_(),t("div",{class:f(["form-line__col",{"is-inline":r.allInline,"is-shifted-right":r.shiftRight}])},[b(l.$slots,"default")],2)],2)]))}});const ae=q(V,[["__scopeId","data-v-aa1ca9d8"]]),E={class:"wizard-steps"},Q={class:"wizard-steps__content-wrapper"},G={class:"wizard-steps__indicator"},H={class:"wizard-steps__indicator__controls",role:"tablist","aria-label":"steptabs"},M=["aria-selected","aria-controls"],j={class:"wizard-steps__content"},J={ref:"wizardForm",autocomplete:"off"},K=["id","aria-labelledby"],O={key:0,class:"wizard-steps__footer"},U={class:"wizard-steps__sidebar"},W={class:"wizard-steps__sidebar__content"},X=F({__name:"StepSkeleton",props:{steps:{type:Array,required:!0},sidebarContent:{type:Array,required:!0},footerEnabled:{type:Boolean,default:!0},nextDisabled:{type:Boolean,default:!0}},emits:["go-to-step"],setup(d,{emit:r}){const l=d,e=y(0),c=y(null),N=w(()=>e.value>=l.steps.length-1),A=w(()=>e.value<=0);D(function(){const n=$.get("step");e.value=n?parseInt(n):0,e.value in l.steps&&(c.value=l.steps[e.value].slug)});function R(){e.value++,g(e.value)}function T(){e.value--,g(e.value)}function g(n){c.value=l.steps[n].slug,$.set("step",n),r("go-to-step",n)}return(n,Y)=>(a(),o("div",E,[t("div",Q,[t("header",G,[t("ul",H,[(a(!0),o(m,null,v(d.steps,(s,i)=>(a(),o("li",{key:s.slug,"aria-selected":c.value===s.slug?"true":"false","aria-controls":`wizard-steps__content__item--${i}`,class:f([{"is-complete":i<=e.value},"wizard-steps__indicator__item"])},[t("span",null,B(s.label),1)],10,M))),128))])]),_(),t("div",j,[t("form",J,[(a(!0),o(m,null,v(d.steps,(s,i)=>(a(),o("div",{id:`wizard-steps__content__item--${i}`,key:s.slug,"aria-labelledby":`wizard-steps__content__item--${i}`,role:"tabpanel",tabindex:"0",class:"wizard-steps__content__item"},[c.value===s.slug?b(n.$slots,s.slug,{key:0},void 0,!0):h("",!0)],8,K))),128))],512)]),_(),l.footerEnabled?(a(),o("footer",O,[z(u(p(x),{appearance:"outline","data-testid":"next-previous-button",onClick:T},{default:k(()=>[u(p(C),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":""}),_(` Previous diff --git a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js rename to app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js index 498996262c58..b839c84040c5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js +++ b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js @@ -1,4 +1,4 @@ -import{l as w,V as B}from"./kongponents.es-db3f0bda.js";import{a as p,D as v}from"./DefinitionListItem-84d660bf.js";import{k as C,h as L}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{d as x,c as N,o as e,f as o,h as a,i as k,b as i,a as u,t as c,e as s,g as d,E as T,F as b,k as D,l as y,p as P,n as j,U as S}from"./index-e7c4cb0f.js";const E=t=>(P("data-v-321555ca"),t=t(),j(),t),O={key:0},q=E(()=>y("h5",{class:"overview-tertiary-title"},` +import{l as w,V as B}from"./kongponents.es-605260c0.js";import{a as p,D as v}from"./DefinitionListItem-dd7f1ed7.js";import{k as C,h as L}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{d as x,c as N,o as e,f as o,h as a,i as k,b as i,a as u,t as c,e as s,g as d,E as T,F as b,k as D,l as y,p as P,n as j,U as S}from"./index-3e91d6ff.js";const E=t=>(P("data-v-321555ca"),t=t(),j(),t),O={key:0},q=E(()=>y("h5",{class:"overview-tertiary-title"},` General Information: `,-1)),F={key:1,class:"columns mt-4",style:{"--columns":"4"}},R={key:0},U={class:"overview-tertiary-title"},G=x({__name:"SubscriptionDetails",props:{details:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(t){const r=t,{t:l}=C(),h=N(()=>{var I,m;let n;if(r.isDiscoverySubscription){const{lastUpdateTime:_,total:g,...f}=r.details.status;n=f}return(I=r.details.status)!=null&&I.stat&&(n=(m=r.details.status)==null?void 0:m.stat),n});function V(n){return n?parseInt(n,10).toLocaleString("en").toString():"0"}function $(n){return n==="--"?"error calculating":n}return(n,I)=>(e(),o("div",null,[t.details.globalInstanceId||t.details.controlPlaneInstanceId||t.details.connectTime||t.details.disconnectTime?(e(),o("div",O,[q,a(),k(v,null,{default:i(()=>[t.details.globalInstanceId?(e(),u(p,{key:0,term:s(l)("http.api.property.globalInstanceId")},{default:i(()=>[a(c(t.details.globalInstanceId),1)]),_:1},8,["term"])):d("",!0),a(),t.details.controlPlaneInstanceId?(e(),u(p,{key:1,term:s(l)("http.api.property.controlPlaneInstanceId")},{default:i(()=>[a(c(t.details.controlPlaneInstanceId),1)]),_:1},8,["term"])):d("",!0),a(),t.details.connectTime?(e(),u(p,{key:2,term:s(l)("http.api.property.connectTime")},{default:i(()=>[a(c(s(T)(t.details.connectTime)),1)]),_:1},8,["term"])):d("",!0),a(),t.details.disconnectTime?(e(),u(p,{key:3,term:s(l)("http.api.property.disconnectTime")},{default:i(()=>[a(c(s(T)(t.details.disconnectTime)),1)]),_:1},8,["term"])):d("",!0)]),_:1})])):d("",!0),a(),h.value?(e(),o("div",F,[(e(!0),o(b,null,D(h.value,(m,_)=>(e(),o(b,{key:_},[Object.keys(m).length>0?(e(),o("div",R,[y("h6",U,c(s(l)(`http.api.property.${_}`))+`: `,1),a(),k(v,null,{default:i(()=>[(e(!0),o(b,null,D(m,(g,f)=>(e(),u(p,{key:f,term:s(l)(`http.api.property.${f}`)},{default:i(()=>[a(c($(V(g))),1)]),_:2},1032,["term"]))),128))]),_:2},1024)])):d("",!0)],64))),128))])):(e(),u(s(B),{key:2,appearance:"info",class:"mt-4"},{alertIcon:i(()=>[k(s(w),{icon:"portal"})]),alertMessage:i(()=>[a(` diff --git a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-67e5cef2.js b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-98d43afa.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/TabsWidget-67e5cef2.js rename to app/kuma-ui/pkg/resources/data/assets/TabsWidget-98d43afa.js index 46a1ec3feb55..d002a2e08636 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-67e5cef2.js +++ b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-98d43afa.js @@ -1 +1 @@ -import{Z as B,l as k,o as T}from"./kongponents.es-db3f0bda.js";import{E as q}from"./ErrorBlock-86257192.js";import{_ as E}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import{d as S,s as V,c as w,o as t,f as n,a as f,F as $,q as m,g as x,h as p,l as c,i as l,m as C,k as N,b as i,e as d,Z as I,p as L,n as W}from"./index-e7c4cb0f.js";import{r as O,h as Z}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{Q as _}from"./QueryParameter-70743f73.js";const A=a=>(L("data-v-4cf998d3"),a=a(),W(),a),F={class:"tab-container","data-testid":"tab-container"},H={key:0,class:"tab__header"},Q={class:"tab__content-container"},z={class:"flex items-center with-warnings"},G=A(()=>c("span",null,"Warnings",-1)),P=S({__name:"TabsWidget",props:{tabs:{type:Array,required:!0},isLoading:{type:Boolean,required:!1,default:!1},isEmpty:{type:Boolean,required:!1,default:!1},hasError:{type:Boolean,required:!1,default:!1},error:{type:[Error,null],required:!1,default:null},hasBorder:{type:Boolean,required:!1,default:!1},initialTabOverride:{type:String,required:!1,default:null}},emits:["on-tab-change"],setup(a,{emit:b}){const o=a,g=O(),r=V(""),h=w(()=>o.tabs.map(e=>e.hash.replace("#","")));function v(){const e=_.get("tab");e!==null?r.value=`#${e}`:o.initialTabOverride!==null&&(r.value=`#${o.initialTabOverride}`)}v();function y(e){_.set("tab",e.substring(1)),g.info(I.TABS_TAB_CHANGE,{data:{newActiveTabHash:e}}),b("on-tab-change",e)}return(e,u)=>(t(),n("div",F,[a.isLoading?(t(),f(E,{key:0})):a.error!==null?(t(),f(q,{key:1,error:a.error},null,8,["error"])):(t(),n($,{key:2},[e.$slots.tabHeader?(t(),n("header",H,[m(e.$slots,"tabHeader",{},void 0,!0)])):x("",!0),p(),c("div",Q,[l(d(T),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=s=>r.value=s),tabs:a.tabs,onChanged:y},C({"warnings-anchor":i(()=>[c("span",z,[l(d(k),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),p(),G])]),_:2},[N(h.value,(s,U)=>({name:s,fn:i(()=>[l(d(B),{"border-variant":"noBorder"},{body:i(()=>[m(e.$slots,s,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const X=Z(P,[["__scopeId","data-v-4cf998d3"]]);export{X as T}; +import{Z as B,l as k,o as T}from"./kongponents.es-605260c0.js";import{E as q}from"./ErrorBlock-c00a9be3.js";import{_ as E}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import{d as S,s as V,c as w,o as t,f as n,a as f,F as $,q as m,g as x,h as p,l as c,i as l,m as C,k as N,b as i,e as d,Z as I,p as L,n as W}from"./index-3e91d6ff.js";import{r as O,h as Z}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{Q as _}from"./QueryParameter-70743f73.js";const A=a=>(L("data-v-4cf998d3"),a=a(),W(),a),F={class:"tab-container","data-testid":"tab-container"},H={key:0,class:"tab__header"},Q={class:"tab__content-container"},z={class:"flex items-center with-warnings"},G=A(()=>c("span",null,"Warnings",-1)),P=S({__name:"TabsWidget",props:{tabs:{type:Array,required:!0},isLoading:{type:Boolean,required:!1,default:!1},isEmpty:{type:Boolean,required:!1,default:!1},hasError:{type:Boolean,required:!1,default:!1},error:{type:[Error,null],required:!1,default:null},hasBorder:{type:Boolean,required:!1,default:!1},initialTabOverride:{type:String,required:!1,default:null}},emits:["on-tab-change"],setup(a,{emit:b}){const o=a,g=O(),r=V(""),h=w(()=>o.tabs.map(e=>e.hash.replace("#","")));function v(){const e=_.get("tab");e!==null?r.value=`#${e}`:o.initialTabOverride!==null&&(r.value=`#${o.initialTabOverride}`)}v();function y(e){_.set("tab",e.substring(1)),g.info(I.TABS_TAB_CHANGE,{data:{newActiveTabHash:e}}),b("on-tab-change",e)}return(e,u)=>(t(),n("div",F,[a.isLoading?(t(),f(E,{key:0})):a.error!==null?(t(),f(q,{key:1,error:a.error},null,8,["error"])):(t(),n($,{key:2},[e.$slots.tabHeader?(t(),n("header",H,[m(e.$slots,"tabHeader",{},void 0,!0)])):x("",!0),p(),c("div",Q,[l(d(T),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=s=>r.value=s),tabs:a.tabs,onChanged:y},C({"warnings-anchor":i(()=>[c("span",z,[l(d(k),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),p(),G])]),_:2},[N(h.value,(s,U)=>({name:s,fn:i(()=>[l(d(B),{"border-variant":"noBorder"},{body:i(()=>[m(e.$slots,s,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const X=Z(P,[["__scopeId","data-v-4cf998d3"]]);export{X as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TagList-da1dbae1.js b/app/kuma-ui/pkg/resources/data/assets/TagList-337d8082.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/TagList-da1dbae1.js rename to app/kuma-ui/pkg/resources/data/assets/TagList-337d8082.js index ac8083d16ea3..4a5d68421448 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TagList-da1dbae1.js +++ b/app/kuma-ui/pkg/resources/data/assets/TagList-337d8082.js @@ -1 +1 @@ -import{P as f}from"./kongponents.es-db3f0bda.js";import{d as b,u as h,D as g,c as y,o as r,f as l,F as k,k as x,a as i,b as p,j as L,h as T,t as m,l as w,e as B}from"./index-e7c4cb0f.js";import{h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},D=b({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=h(),c=g(),_=y(()=>(Array.isArray(s.tags)?s.tags:z(s.tags)).map(n=>{const{label:t,value:u}=n,v=d(n);return{label:t,value:u,route:v}}));function d(e){if(e.value!=="*")try{switch(e.label){case"kuma.io/zone":return c.resolve({name:"zone-cp-detail-view",params:{zone:e.value}});case"kuma.io/service":return"mesh"in a.params?c.resolve({name:"service-detail-view",params:{mesh:a.params.mesh,service:e.value}}):void 0;default:return}}catch{return}}return(e,n)=>(r(),l("span",C,[(r(!0),l(k,null,x(_.value,(t,u)=>(r(),i(B(f),{key:u,class:"tag-badge"},{default:p(()=>[(r(),i(L(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[T(m(t.label)+":",1),w("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const N=j(D,[["__scopeId","data-v-2e356c8b"]]);export{N as T}; +import{P as f}from"./kongponents.es-605260c0.js";import{d as b,u as h,D as g,c as y,o as r,f as l,F as k,k as x,a as i,b as p,j as L,h as T,t as m,l as w,e as B}from"./index-3e91d6ff.js";import{h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},D=b({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=h(),c=g(),_=y(()=>(Array.isArray(s.tags)?s.tags:z(s.tags)).map(n=>{const{label:t,value:u}=n,v=d(n);return{label:t,value:u,route:v}}));function d(e){if(e.value!=="*")try{switch(e.label){case"kuma.io/zone":return c.resolve({name:"zone-cp-detail-view",params:{zone:e.value}});case"kuma.io/service":return"mesh"in a.params?c.resolve({name:"service-detail-view",params:{mesh:a.params.mesh,service:e.value}}):void 0;default:return}}catch{return}}return(e,n)=>(r(),l("span",C,[(r(!0),l(k,null,x(_.value,(t,u)=>(r(),i(B(f),{key:u,class:"tag-badge"},{default:p(()=>[(r(),i(L(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[T(m(t.label)+":",1),w("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const N=j(D,[["__scopeId","data-v-2e356c8b"]]);export{N as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-7c6aa739.js b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6362ddfe.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-7c6aa739.js rename to app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6362ddfe.js index 3e76c9cce971..640c240c6ea8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-7c6aa739.js +++ b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6362ddfe.js @@ -1 +1 @@ -import{l as m,T as C,L as g}from"./kongponents.es-db3f0bda.js";import{d as y,o as r,a as _,b as u,i as p,e as n,h as d,q as f,l as h,t as x,f as S,j as b}from"./index-e7c4cb0f.js";import{h as T,k as B}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";const v={class:"visually-hidden"},q=y({__name:"CopyButton",props:{text:{type:String,required:!1,default:""},getText:{type:Function,required:!1,default:null},copyText:{type:String,required:!1,default:"Copy"},tooltipSuccessText:{type:String,required:!1,default:"Copied code!"},tooltipFailText:{type:String,required:!1,default:"Failed to copy!"}},setup(l){const t=l;async function c(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch(a){o=!1,console.error(a)}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(r(),_(n(g),null,{default:u(({copyToClipboard:e})=>[p(n(C),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>c(o,e)},{default:u(()=>[p(n(m),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[h("span",v,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const k=T(q,[["__scopeId","data-v-ed92fcab"]]),w={class:"copy-button-wrapper"},F=y({__name:"TextWithCopyButton",props:{text:{type:String,required:!0},tag:{type:String,required:!1,default:"span"}},setup(l){const t=l,c=B();return(s,i)=>(r(),S("div",w,[f(s.$slots,"default",{},()=>[(r(),_(b(t.tag),null,{default:u(()=>[d(x(t.text),1)]),_:1}))],!0),d(),p(k,{text:t.text,"copy-text":n(c).t("common.copyText"),"tooltip-success-text":n(c).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const E=T(F,[["__scopeId","data-v-069e891c"]]);export{k as C,E as T}; +import{l as m,T as C,L as g}from"./kongponents.es-605260c0.js";import{d as y,o as r,a as _,b as u,i as p,e as n,h as d,q as f,l as h,t as x,f as S,j as b}from"./index-3e91d6ff.js";import{h as T,k as B}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";const v={class:"visually-hidden"},q=y({__name:"CopyButton",props:{text:{type:String,required:!1,default:""},getText:{type:Function,required:!1,default:null},copyText:{type:String,required:!1,default:"Copy"},tooltipSuccessText:{type:String,required:!1,default:"Copied code!"},tooltipFailText:{type:String,required:!1,default:"Failed to copy!"}},setup(l){const t=l;async function c(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch(a){o=!1,console.error(a)}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(r(),_(n(g),null,{default:u(({copyToClipboard:e})=>[p(n(C),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>c(o,e)},{default:u(()=>[p(n(m),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[h("span",v,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const k=T(q,[["__scopeId","data-v-ed92fcab"]]),w={class:"copy-button-wrapper"},F=y({__name:"TextWithCopyButton",props:{text:{type:String,required:!0},tag:{type:String,required:!1,default:"span"}},setup(l){const t=l,c=B();return(s,i)=>(r(),S("div",w,[f(s.$slots,"default",{},()=>[(r(),_(b(t.tag),null,{default:u(()=>[d(x(t.text),1)]),_:1}))],!0),d(),p(k,{text:t.text,"copy-text":n(c).t("common.copyText"),"tooltip-success-text":n(c).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const E=T(F,[["__scopeId","data-v-069e891c"]]);export{k as C,E as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js rename to app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js index 5e043226e0a7..51a5455fd11b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js +++ b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js @@ -1,4 +1,4 @@ -import{V as _}from"./kongponents.es-db3f0bda.js";import{d as l,o as a,f as r,t,h as n,l as s,F as m,k as d,i as y,b as g,a as P,j as f,e as D,a3 as O,B as b,V as h,W as C}from"./index-e7c4cb0f.js";const N=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,u)=>(a(),r("span",null,t(e.payload),1))}}),E=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` +import{V as _}from"./kongponents.es-605260c0.js";import{d as l,o as a,f as r,t,h as n,l as s,F as m,k as d,i as y,b as g,a as P,j as f,e as D,a3 as O,B as b,V as h,W as C}from"./index-3e91d6ff.js";const N=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,u)=>(a(),r("span",null,t(e.payload),1))}}),E=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` Envoy (`),s("strong",null,t(e.payload.envoy),1),n(") is unsupported by the current version of Kuma DP ("),s("strong",null,t(e.payload.kumaDp),1),n(") [Requirements: "),s("strong",null,t(e.payload.requirements),1),n(`]. `)]))}}),V=l({__name:"WarningUnsupportedKumaDPVersion",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` Unsupported version of Kuma DP (`),s("strong",null,t(e.payload.kumaDp),1),n(`) diff --git a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-4d8f1bd1.js b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-0d40fe0b.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/WelcomeView-4d8f1bd1.js rename to app/kuma-ui/pkg/resources/data/assets/WelcomeView-0d40fe0b.js index bf46cf263307..bc4860ca9b73 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-4d8f1bd1.js +++ b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-0d40fe0b.js @@ -1,4 +1,4 @@ -import{l as V}from"./kongponents.es-db3f0bda.js";import{O as S,a as L,b as C}from"./OnboardingPage-e954db95.js";import{d as f,s as $,G as H,o as i,f as h,h as a,H as W,J as g,p as M,n as y,l as t,c as p,L as u,a as m,b as d,i as o,e as n,t as v,k as A,g as I,F as N}from"./index-e7c4cb0f.js";import{h as w,f as O,k as G,g as B,_ as j}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";const E=e=>(M("data-v-4b67edd8"),e=e(),y(),e),F=E(()=>t("defs",null,null,-1)),T=g(' ',1),D=g('
',1),P=f({__name:"WelcomeAnimationSvg",setup(e){const s=$(!1);return H(function(){window.setTimeout(()=>{s.value=!0},30)}),(r,b)=>(i(),h("svg",{class:W(["background svg",{active:s.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),T,a(),D],2))}});const R=w(P,[["__scopeId","data-v-4b67edd8"]]),k=e=>(M("data-v-feaef025"),e=e(),y(),e),U=k(()=>t("strong",null,"few minutes",-1)),J=k(()=>t("h2",{class:"text-center"},` +import{l as V}from"./kongponents.es-605260c0.js";import{O as S,a as L,b as C}from"./OnboardingPage-ed86946b.js";import{d as f,s as $,G as H,o as i,f as h,h as a,H as W,J as g,p as M,n as y,l as t,c as p,L as u,a as m,b as d,i as o,e as n,t as v,k as A,g as I,F as N}from"./index-3e91d6ff.js";import{h as w,f as O,k as G,g as B,_ as j}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";const E=e=>(M("data-v-4b67edd8"),e=e(),y(),e),F=E(()=>t("defs",null,null,-1)),T=g(' ',1),D=g('
',1),P=f({__name:"WelcomeAnimationSvg",setup(e){const s=$(!1);return H(function(){window.setTimeout(()=>{s.value=!0},30)}),(r,b)=>(i(),h("svg",{class:W(["background svg",{active:s.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),T,a(),D],2))}});const R=w(P,[["__scopeId","data-v-4b67edd8"]]),k=e=>(M("data-v-feaef025"),e=e(),y(),e),U=k(()=>t("strong",null,"few minutes",-1)),J=k(()=>t("h2",{class:"text-center"},` Let’s get started: `,-1)),Y={class:"item-status-list-wrapper"},q={class:"item-status-list"},K={class:"circle mr-2"},Q=f({__name:"WelcomeView",setup(e){const s=O(),{t:r}=G(),b=p(()=>{const l=s.getters["config/getEnvironment"];return l.charAt(0).toUpperCase()+l.slice(1)}),_=p(()=>s.getters["config/getMulticlusterStatus"]),x=p(()=>[{name:`Run ${u} control plane`,status:!0},{name:"Learn about deployments",status:!1},{name:"Learn about configuration storage",status:!1},..._.value?[{name:"Add zones",status:!1}]:[],{name:"Create the mesh",status:!1},{name:"Add services",status:!1},{name:"Go to the dashboard",status:!1}]);return(l,X)=>(i(),m(j,null,{default:d(()=>[o(z,{title:n(r)("onboarding.routes.welcome.title",{name:n(r)("common.product.name")})},null,8,["title"]),a(),o(B,null,{default:d(()=>[t("div",null,[o(S,null,{header:d(()=>[o(L,null,{title:d(()=>[a(` Welcome to `+v(n(u)),1)]),description:d(()=>[t("p",null,[a(` diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-8cae01cc.js b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-96af1d60.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-8cae01cc.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-96af1d60.js index c1dd3975453f..6de8bf0681ab 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-8cae01cc.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-96af1d60.js @@ -1,4 +1,4 @@ -import{l as F,T as $,c as O,a as W,n as D,b as L}from"./kongponents.es-db3f0bda.js";import{d as Z,u as B,c as y,o as f,f as C,l as t,t as o,e as n,h as e,i as l,p as M,n as R,q as N,s as b,a as I,b as r,g as S,F as j,O as H}from"./index-e7c4cb0f.js";import{_ as z}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{l as G,k as q,f as x,h as T,j as J,g as Q,_ as X}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{E as ee}from"./ErrorBlock-86257192.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-ff97d5a8.js";const te=m=>(M("data-v-293c555d"),m=m(),R(),m),oe={href:"https://helm.sh/docs/intro/install/"},se=te(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),ae={class:"k-input-label mt-4"},le={class:"mt-4"},re=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(m){const a=m,u=G(),s=q(),p=B(),k=x(),g=y(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),_=y(()=>{const i={zoneName:a.zoneName,globalKdsAddress:k.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof p.params.virtualControlPlaneId=="string"&&(i.controlPlaneId=p.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",i).trim()});return(i,h)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(s).t("zones.form.kubernetes.prerequisites.title")),1),e(),t("ul",null,[t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+n(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),e(`: +import{l as F,T as $,c as O,a as W,n as D,b as L}from"./kongponents.es-605260c0.js";import{d as Z,u as B,c as y,o as f,f as C,l as t,t as o,e as n,h as e,i as l,p as M,n as R,q as N,s as b,a as I,b as r,g as S,F as j,O as H}from"./index-3e91d6ff.js";import{_ as z}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{l as G,k as q,f as x,h as T,j as J,g as Q,_ as X}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{E as ee}from"./ErrorBlock-c00a9be3.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-613df6e8.js";const te=m=>(M("data-v-293c555d"),m=m(),R(),m),oe={href:"https://helm.sh/docs/intro/install/"},se=te(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),ae={class:"k-input-label mt-4"},le={class:"mt-4"},re=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(m){const a=m,u=G(),s=q(),p=B(),k=x(),g=y(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),_=y(()=>{const i={zoneName:a.zoneName,globalKdsAddress:k.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof p.params.virtualControlPlaneId=="string"&&(i.controlPlaneId=p.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",i).trim()});return(i,h)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(s).t("zones.form.kubernetes.prerequisites.title")),1),e(),t("ul",null,[t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+n(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),e(`: `+o(n(s).t("zones.form.kubernetes.prerequisites.step1Description",{productName:n(u)("KUMA_PRODUCT_NAME")})),1)]),e(),t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step2Label")),1),e(`: `+o(n(s).t("zones.form.kubernetes.prerequisites.step2Description")),1)]),e(),t("li",null,[t("a",oe,o(n(s).t("zones.form.kubernetes.prerequisites.step3LinkTitle")),1),e(" "+o(n(s).t("zones.form.kubernetes.prerequisites.step3Tail")),1)])]),e(),t("h3",null,"2. "+o(n(s).t("zones.form.kubernetes.helm.title")),1),e(),se,e(),t("ol",null,[t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step1Description"))+" ",1),l(z,{id:"zone-kubernetes-create-namespace",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step1Command"),language:"bash"},null,8,["code"])]),e(),t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step2Description"))+" ",1),l(z,{id:"zone-kubernetes-add-charts-repo",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step2Command"),language:"bash"},null,8,["code"])]),e(),t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step3Description"))+" ",1),l(z,{id:"zone-kubernetes-repo-update",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step3Command"),language:"bash"},null,8,["code"])])]),e(),t("h3",null,"3. "+o(n(s).t("zones.form.kubernetes.secret.title")),1),e(),t("p",null,o(n(s).t("zones.form.kubernetes.secret.createSecretDescription")),1),e(),l(z,{id:"zone-kubernetes-create-secret",class:"mt-4",code:g.value,language:"bash"},null,8,["code"]),e(),t("h3",null,"4. "+o(n(s).t("zones.form.kubernetes.connectZone.title")),1),e(),t("p",null,o(n(s).t("zones.form.kubernetes.connectZone.configDescription")),1),e(),t("span",ae,o(n(s).t("zones.form.kubernetes.connectZone.configFileName")),1),e(),l(z,{id:"zone-kubernetes-config-code-block",code:_.value,language:"yaml"},null,8,["code"]),e(),t("p",le,o(n(s).t("zones.form.kubernetes.connectZone.connectDescription")),1),e(),l(z,{id:"zone-kubernetes-command-code-block",class:"mt-4",code:n(s).t("zones.form.kubernetes.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const ue=T(re,[["__scopeId","data-v-293c555d"]]),ie={class:"k-input-label mt-4"},ce={class:"mt-4"},de=Z({__name:"ZoneCreateUniversalInstructions",props:{zoneName:{type:String,required:!0},token:{type:String,required:!0}},setup(m){const a=m,u=q(),s=B(),p=x(),k=y(()=>u.t("zones.form.universal.saveToken.saveTokenCommand",{token:a.token}).trim()),g=y(()=>{const _={zoneName:a.zoneName,globalKdsAddress:p.state.globalKdsAddress};return typeof s.params.virtualControlPlaneId=="string"&&(_.controlPlaneId=s.params.virtualControlPlaneId),u.t("zones.form.universal.connectZone.config",_).trim()});return(_,i)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(u).t("zones.form.universal.saveToken.title")),1),e(),t("p",null,o(n(u).t("zones.form.universal.saveToken.saveTokenDescription")),1),e(),l(z,{id:"zone-kubernetes-token",class:"mt-4",code:k.value,language:"bash"},null,8,["code"]),e(),t("h3",null,"2. "+o(n(u).t("zones.form.universal.connectZone.title")),1),e(),t("p",null,o(n(u).t("zones.form.universal.connectZone.configDescription")),1),e(),t("span",ie,o(n(u).t("zones.form.universal.connectZone.configFileName")),1),e(),l(z,{id:"zone-universal-config-code-block",class:"mt-4",code:g.value,language:"yaml"},null,8,["code"]),e(),t("p",ce,o(n(u).t("zones.form.universal.connectZone.connectDescription")),1),e(),l(z,{id:"zone-universal-connect-command-code-block",class:"mt-4",code:n(u).t("zones.form.universal.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const me=T(de,[["__scopeId","data-v-ea760a7e"]]),pe={class:"app-title-bar"},_e={class:"title-wrapper"},ve={class:"title"},be={class:"action-list"},fe=Z({__name:"WizardTitleBar",setup(m){return(a,u)=>(f(),C("div",pe,[t("div",_e,[l(n(F),{icon:"kong"}),e(),t("span",ve,[N(a.$slots,"title",{},void 0,!0)])]),e(),t("div",be,[N(a.$slots,"actions",{},void 0,!0)])]))}});const ze=T(fe,[["__scopeId","data-v-f0a75c34"]]),ke={class:"form-content"},ge={class:"form-wrapper mt-4"},he={key:1,class:"form-wrapper mt-4"},ye={class:"k-input-label"},Ce={class:"radio-button-group"},Ee={class:"k-input-label"},Ie={class:"radio-button-group"},Ze={class:"k-input-label"},Te={class:"radio-button-group"},Ve={class:"mt-6"},we={class:"mt-2"},$e=Z({__name:"ZoneCreateView",setup(m){const{t:a}=q(),u=J(),s=b(null),p=b(!1),k=b(null),g=b(!1),_=b(null),i=b(""),h=b("kubernetes"),V=b(!0),w=b(!0),E=y(()=>s.value!==null&&s.value.token?s.value.token:""),K=y(()=>E.value!==""?window.btoa(E.value):""),U=y(()=>i.value!=="");async function A(){p.value=!0,k.value=null;try{s.value=await u.createZone({name:i.value})}catch(d){d instanceof Error?k.value=d:console.error(d)}finally{p.value=!1}}async function P(){g.value=!1,_.value=null;try{const d=await u.getZoneOverview({name:i.value}),c=H(d.zoneInsight);g.value=c==="online"}catch(d){d instanceof Error?_.value=d:console.error(d)}}return(d,c)=>(f(),I(X,null,{default:r(()=>[l(Y,{title:n(a)("zones.routes.create.title")},null,8,["title"]),e(),l(Q,{breadcrumbs:[]},{default:r(()=>[l(ze,{class:"mb-6"},{title:r(()=>[e(o(n(a)("zones.routes.create.title")),1)]),actions:r(()=>[l(n($),{appearance:"outline",to:{name:"zone-cp-list-view"}},{default:r(()=>[e(o(n(a)("zones.form.exit")),1)]),_:1})]),_:1}),e(),t("div",ke,[t("h1",null,o(n(a)("zones.routes.create.title")),1),e(),t("div",ge,[t("div",null,[l(n(O),{for:"zone-name"},{default:r(()=>[e(o(n(a)("zones.form.nameLabel"))+` * `,1)]),_:1}),e(),l(n(W),{id:"zone-name",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=v=>i.value=v),type:"text",name:"zone-name","data-testid":"name-input",disabled:s.value!==null},null,8,["modelValue","disabled"])]),e(),l(n($),{appearance:"creation",icon:p.value?"spinner":"plus",disabled:!U.value||p.value||s.value!==null,"data-testid":"create-zone-button",onClick:A},{default:r(()=>[e(o(n(a)("zones.form.createZoneButtonLabel")),1)]),_:1},8,["icon","disabled"])]),e(),k.value!==null?(f(),I(ee,{key:0,class:"mt-4",error:k.value},{default:r(()=>[e(o(n(a)("zones.create.errorTitle")),1)]),_:1},8,["error"])):S("",!0),e(),s.value!==null?(f(),C("div",he,[t("div",null,[t("span",ye,o(n(a)("zones.form.environmentLabel"))+` * diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6fd59ca0.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-1fa7e66a.js similarity index 62% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6fd59ca0.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-1fa7e66a.js index 67e9c8195f12..306dd1c6fcce 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6fd59ca0.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-1fa7e66a.js @@ -1 +1 @@ -import{d as k,u as z,s as l,w as p,o as a,a as s,b as f,i as c,e as _,h,l as b,f as y}from"./index-e7c4cb0f.js";import{_ as $}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js";import{j as x,f as B,k as g,g as E,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as C}from"./ErrorBlock-86257192.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./kongponents.es-db3f0bda.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./DefinitionListItem-84d660bf.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-7c6aa739.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js";const O={class:"zone-details"},T={key:3,class:"kcard-border"},W=k({__name:"ZoneDetailView",setup(Z){const d=x(),e=z(),v=B(),{t:m}=g(),t=l(null),n=l(!0),o=l(null);p(()=>e.params.mesh,function(){e.name==="zone-cp-detail-view"&&i()}),p(()=>e.params.name,function(){e.name==="zone-cp-detail-view"&&i()}),w();function w(){v.dispatch("updatePageTitle",e.params.zone),i()}async function i(){n.value=!0,o.value=null;const u=e.params.zone;try{t.value=await d.getZoneOverview({name:u})}catch(r){t.value=null,r instanceof Error?o.value=r:console.error(r)}finally{n.value=!1}}return(u,r)=>(a(),s(V,null,{default:f(()=>[c(N,{title:_(m)("zone-cps.routes.item.title")},null,8,["title"]),h(),c(E,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:_(m)("zone-cps.routes.item.breadcrumbs")}]},{default:f(()=>[b("div",O,[n.value?(a(),s(D,{key:0})):o.value!==null?(a(),s(C,{key:1,error:o.value},null,8,["error"])):t.value===null?(a(),s(A,{key:2})):(a(),y("div",T,[c($,{"zone-overview":t.value},null,8,["zone-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{W as default}; +import{d as k,u as z,s as l,w as p,o as a,a as s,b as f,i as c,e as _,h,l as b,f as y}from"./index-3e91d6ff.js";import{_ as $}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js";import{j as x,f as B,k as g,g as E,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as C}from"./ErrorBlock-c00a9be3.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./kongponents.es-605260c0.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./DefinitionListItem-dd7f1ed7.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-6362ddfe.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js";const O={class:"zone-details"},T={key:3,class:"kcard-border"},W=k({__name:"ZoneDetailView",setup(Z){const d=x(),e=z(),v=B(),{t:m}=g(),t=l(null),n=l(!0),o=l(null);p(()=>e.params.mesh,function(){e.name==="zone-cp-detail-view"&&i()}),p(()=>e.params.name,function(){e.name==="zone-cp-detail-view"&&i()}),w();function w(){v.dispatch("updatePageTitle",e.params.zone),i()}async function i(){n.value=!0,o.value=null;const u=e.params.zone;try{t.value=await d.getZoneOverview({name:u})}catch(r){t.value=null,r instanceof Error?o.value=r:console.error(r)}finally{n.value=!1}}return(u,r)=>(a(),s(V,null,{default:f(()=>[c(N,{title:_(m)("zone-cps.routes.item.title")},null,8,["title"]),h(),c(E,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:_(m)("zone-cps.routes.item.breadcrumbs")}]},{default:f(()=>[b("div",O,[n.value?(a(),s(D,{key:0})):o.value!==null?(a(),s(C,{key:1,error:o.value},null,8,["error"])):t.value===null?(a(),s(A,{key:2})):(a(),y("div",T,[c($,{"zone-overview":t.value},null,8,["zone-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{W as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js index 03259b1aded4..0d3412c0edb9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js @@ -1,4 +1,4 @@ -import{P as N}from"./kongponents.es-db3f0bda.js";import{k as T,f as V,A as x,i as B}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as D}from"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import{a as L,D as Z}from"./DefinitionListItem-84d660bf.js";import{_ as E,S as P}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import{T as $}from"./TabsWidget-67e5cef2.js";import{T as b}from"./TextWithCopyButton-7c6aa739.js";import{_ as F}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js";import{d as R,c as l,O as W,a2 as j,a3 as q,r as G,o as i,a as u,b as e,l as J,h as p,i as c,t as f,f as g,k as w,e as k,F as d,g as H}from"./index-e7c4cb0f.js";const M={class:"entity-heading"},oe=R({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(O){const r=O,{t:z}=T(),y=V(),v=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],C=l(()=>({name:"zone-cp-detail-view",params:{zone:r.zoneOverview.name}})),m=l(()=>{const{type:t,name:n}=r.zoneOverview,o=W(r.zoneOverview.zoneInsight);return{type:t,name:n,status:o,"Authentication Type":j(r.zoneOverview)}}),S=l(()=>{var n;const t=((n=r.zoneOverview.zoneInsight)==null?void 0:n.subscriptions)??[];return Array.from(t).reverse()}),h=l(()=>{var o;const t=[],n=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[];if(n.length>0){const s=n[n.length-1],a=s.version.kumaCp.version||"-",{kumaCpGlobalCompatible:A=!0}=s.version.kumaCp;A||t.push({kind:q,payload:{zoneCpVersion:a,globalCpVersion:y.getters["config/getVersion"]}})}return t}),_=l(()=>{var o;const t=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[],n=t[t.length-1];return n.config?JSON.stringify(JSON.parse(n.config),null,2):null}),I=l(()=>h.value.length===0?v.filter(t=>t.hash!=="#warnings"):v);return(t,n)=>{const o=G("router-link");return i(),u($,{tabs:I.value},{tabHeader:e(()=>[J("h1",M,[p(` +import{P as N}from"./kongponents.es-605260c0.js";import{k as T,f as V,A as x,i as B}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as D}from"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import{a as L,D as Z}from"./DefinitionListItem-dd7f1ed7.js";import{_ as E,S as P}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import{T as $}from"./TabsWidget-98d43afa.js";import{T as b}from"./TextWithCopyButton-6362ddfe.js";import{_ as F}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js";import{d as R,c as l,O as W,a2 as j,a3 as q,r as G,o as i,a as u,b as e,l as J,h as p,i as c,t as f,f as g,k as w,e as k,F as d,g as H}from"./index-3e91d6ff.js";const M={class:"entity-heading"},oe=R({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(O){const r=O,{t:z}=T(),y=V(),v=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],C=l(()=>({name:"zone-cp-detail-view",params:{zone:r.zoneOverview.name}})),m=l(()=>{const{type:t,name:n}=r.zoneOverview,o=W(r.zoneOverview.zoneInsight);return{type:t,name:n,status:o,"Authentication Type":j(r.zoneOverview)}}),S=l(()=>{var n;const t=((n=r.zoneOverview.zoneInsight)==null?void 0:n.subscriptions)??[];return Array.from(t).reverse()}),h=l(()=>{var o;const t=[],n=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[];if(n.length>0){const s=n[n.length-1],a=s.version.kumaCp.version||"-",{kumaCpGlobalCompatible:A=!0}=s.version.kumaCp;A||t.push({kind:q,payload:{zoneCpVersion:a,globalCpVersion:y.getters["config/getVersion"]}})}return t}),_=l(()=>{var o;const t=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[],n=t[t.length-1];return n.config?JSON.stringify(JSON.parse(n.config),null,2):null}),I=l(()=>h.value.length===0?v.filter(t=>t.hash!=="#warnings"):v);return(t,n)=>{const o=G("router-link");return i(),u($,{tabs:I.value},{tabHeader:e(()=>[J("h1",M,[p(` Zone: `),c(b,{text:m.value.name},{default:e(()=>[c(o,{to:C.value},{default:e(()=>[p(f(m.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[c(Z,null,{default:e(()=>[(i(!0),g(d,null,w(m.value,(s,a)=>(i(),u(L,{key:a,term:k(z)(`http.api.property.${a}`)},{default:e(()=>[a==="status"?(i(),u(k(N),{key:0,appearance:s==="offline"?"danger":"success"},{default:e(()=>[p(f(s),1)]),_:2},1032,["appearance"])):a==="name"?(i(),u(b,{key:1,text:s},null,8,["text"])):(i(),g(d,{key:2},[p(f(s),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[c(B,{"initially-open":0},{default:e(()=>[(i(!0),g(d,null,w(S.value,(s,a)=>(i(),u(x,{key:a},{"accordion-header":e(()=>[c(E,{details:s},null,8,["details"])]),"accordion-content":e(()=>[c(P,{details:s},null,8,["details"])]),_:2},1024))),128))]),_:1})]),config:e(()=>[_.value!==null?(i(),u(D,{key:0,id:"code-block-zone-config",language:"json",code:_.value,"is-searchable":"","query-key":"zone-config"},null,8,["code"])):H("",!0)]),warnings:e(()=>[c(F,{warnings:h.value},null,8,["warnings"])]),_:1},8,["tabs"])}}});export{oe as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-d0a0d5df.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-93b98f09.js similarity index 55% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-d0a0d5df.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-93b98f09.js index e2627a768d9f..fd3034d4f3a4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-d0a0d5df.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-93b98f09.js @@ -1 +1 @@ -import{d as w,u as k,s as l,w as f,o as s,a as o,b as _,i as m,e as p,h as z,l as h,f as E}from"./index-e7c4cb0f.js";import{_ as b}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js";import{j as y,f as $,k as x,g as B,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as C}from"./ErrorBlock-86257192.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./DefinitionListItem-84d660bf.js";import"./EnvoyData-ebe2f45c.js";import"./kongponents.es-db3f0bda.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-7c6aa739.js";const O={class:"zone-details"},T={key:3,class:"kcard-border"},X=w({__name:"ZoneEgressDetailView",setup(Z){const d=y(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-egress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-egress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneEgress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneEgress;try{a.value=await d.getZoneEgressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(V,null,{default:_(()=>[m(N,{title:p(u)("zone-egresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(u)("zone-egresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",O,[n.value?(s(),o(D,{key:0})):r.value!==null?(s(),o(C,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(A,{key:2})):(s(),E("div",T,[m(b,{"zone-egress-overview":a.value},null,8,["zone-egress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; +import{d as w,u as k,s as l,w as f,o as s,a as o,b as _,i as m,e as p,h as z,l as h,f as E}from"./index-3e91d6ff.js";import{_ as b}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js";import{j as y,f as $,k as x,g as B,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as C}from"./ErrorBlock-c00a9be3.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./DefinitionListItem-dd7f1ed7.js";import"./EnvoyData-d68db4e2.js";import"./kongponents.es-605260c0.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-6362ddfe.js";const O={class:"zone-details"},T={key:3,class:"kcard-border"},X=w({__name:"ZoneEgressDetailView",setup(Z){const d=y(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-egress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-egress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneEgress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneEgress;try{a.value=await d.getZoneEgressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(V,null,{default:_(()=>[m(N,{title:p(u)("zone-egresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(u)("zone-egresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",O,[n.value?(s(),o(D,{key:0})):r.value!==null?(s(),o(C,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(A,{key:2})):(s(),E("div",T,[m(b,{"zone-egress-overview":a.value},null,8,["zone-egress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js index a6beb3bd5396..82196bfab550 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js @@ -1,4 +1,4 @@ -import{k as w,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{a as O,D as B}from"./DefinitionListItem-84d660bf.js";import{E as c}from"./EnvoyData-ebe2f45c.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import{T}from"./TabsWidget-67e5cef2.js";import{T as g}from"./TextWithCopyButton-7c6aa739.js";import{d as A,c as m,r as I,o as t,a as l,b as e,l as q,h as d,i as s,t as h,f as v,k as y,e as L,F as p}from"./index-e7c4cb0f.js";const V={class:"entity-heading"},H=A({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=w(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Egress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],k=m(()=>({name:"zone-egress-detail-view",params:{zoneEgress:u.zoneEgressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneEgressOverview;return{type:i,name:a}}),E=m(()=>{var a;const i=((a=u.zoneEgressOverview.zoneEgressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const x=I("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[q("h1",V,[d(` +import{k as w,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{a as O,D as B}from"./DefinitionListItem-dd7f1ed7.js";import{E as c}from"./EnvoyData-d68db4e2.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import{T}from"./TabsWidget-98d43afa.js";import{T as g}from"./TextWithCopyButton-6362ddfe.js";import{d as A,c as m,r as I,o as t,a as l,b as e,l as q,h as d,i as s,t as h,f as v,k as y,e as L,F as p}from"./index-3e91d6ff.js";const V={class:"entity-heading"},H=A({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=w(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Egress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],k=m(()=>({name:"zone-egress-detail-view",params:{zoneEgress:u.zoneEgressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneEgressOverview;return{type:i,name:a}}),E=m(()=>{var a;const i=((a=u.zoneEgressOverview.zoneEgressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const x=I("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[q("h1",V,[d(` Zone Egress: `),s(g,{text:n.value.name},{default:e(()=>[s(x,{to:k.value},{default:e(()=>[d(h(n.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(B,null,{default:e(()=>[(t(!0),v(p,null,y(n.value,(o,r)=>(t(),l(O,{key:r,term:L(_)(`http.api.property.${r}`)},{default:e(()=>[r==="name"?(t(),l(g,{key:0,text:o},null,8,["text"])):(t(),v(p,{key:1},[d(h(o),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),v(p,null,y(E.value,(o,r)=>(t(),l(b,{key:r},{"accordion-header":e(()=>[s(C,{details:o},null,8,["details"])]),"accordion-content":e(()=>[s(S,{details:o,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(c,{"data-path":"xds","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-stats":e(()=>[s(c,{"data-path":"stats","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-clusters":e(()=>[s(c,{"data-path":"clusters","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})}}});export{H as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-5ae77833.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-9eb4b45d.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-5ae77833.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-9eb4b45d.js index ed6d97a90fde..8ff88e379e62 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-5ae77833.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-9eb4b45d.js @@ -1 +1 @@ -import{d as A,u as Z,s as o,w as V,O as I,o as w,a as O,b as z,i as l,e as p,h as k,l as f,P as x,f as S,g as B}from"./index-e7c4cb0f.js";import{_ as L}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-9d358bb6.js";import{j as P,k as $,g as C,_ as q}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as Q}from"./DataOverview-49747af7.js";import{Q as v}from"./QueryParameter-70743f73.js";import"./DefinitionListItem-84d660bf.js";import"./EnvoyData-ebe2f45c.js";import"./kongponents.es-db3f0bda.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./TextWithCopyButton-7c6aa739.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";const R={class:"zoneegresses"},U={class:"kcard-stack"},j={class:"kcard-border"},G={key:0,class:"kcard-border"},de=A({__name:"ZoneEgressListView",props:{selectedZoneEgressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const i=N,g=P(),{t:_}=$(),T={title:"No Data",message:"There are no Zone Egresses present."},b=Z(),u=o(!0),c=o(null),n=o({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),r=o(null),y=o(null),E=o(i.offset);V(()=>b.params.mesh,function(){b.name==="zone-egress-list-view"&&m(0)}),m(i.offset);async function m(e){var a;E.value=e,v.set("offset",e>0?e:null),u.value=!0,c.value=null;const t=x;try{const{items:s,next:d}=await g.getAllZoneEgressOverviews({size:t,offset:e});y.value=d,n.value.data=D(s??[]),await h({name:i.selectedZoneEgressName??((a=n.value.data[0])==null?void 0:a.entity.name)})}catch(s){n.value.data=[],r.value=null,s instanceof Error?c.value=s:console.error(s)}finally{u.value=!1}}function D(e){return e.map(t=>{const{name:a}=t,s={name:"zone-egress-detail-view",params:{zoneEgress:a}},d=I(t.zoneEgressInsight??{});return{entity:t,detailViewRoute:s,status:d}})}async function h({name:e}){if(e===void 0){r.value=null,v.set("zoneEgress",null);return}try{r.value=await g.getZoneEgressOverview({name:e}),v.set("zoneEgress",e)}catch(t){console.error(t)}}return(e,t)=>(w(),O(q,null,{default:z(()=>[l(F,{title:p(_)("zone-egresses.routes.items.title")},null,8,["title"]),k(),l(C,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(_)("zone-egresses.routes.items.breadcrumbs")}]},{default:z(()=>{var a;return[f("div",R,[f("div",U,[f("div",j,[l(Q,{"selected-entity-name":(a=r.value)==null?void 0:a.name,"page-size":p(x),"is-loading":u.value,error:c.value,"empty-state":T,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:y.value,"page-offset":E.value,onTableAction:h,onLoadData:m},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),k(),r.value!==null?(w(),S("div",G,[l(L,{"zone-egress-overview":r.value},null,8,["zone-egress-overview"])])):B("",!0)])])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{de as default}; +import{d as A,u as Z,s as o,w as V,O as I,o as w,a as O,b as z,i as l,e as p,h as k,l as f,P as x,f as S,g as B}from"./index-3e91d6ff.js";import{_ as L}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-b2080d11.js";import{j as P,k as $,g as C,_ as q}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as Q}from"./DataOverview-7f440d3d.js";import{Q as v}from"./QueryParameter-70743f73.js";import"./DefinitionListItem-dd7f1ed7.js";import"./EnvoyData-d68db4e2.js";import"./kongponents.es-605260c0.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./TextWithCopyButton-6362ddfe.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";const R={class:"zoneegresses"},U={class:"kcard-stack"},j={class:"kcard-border"},G={key:0,class:"kcard-border"},de=A({__name:"ZoneEgressListView",props:{selectedZoneEgressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const i=N,g=P(),{t:_}=$(),T={title:"No Data",message:"There are no Zone Egresses present."},b=Z(),u=o(!0),c=o(null),n=o({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),r=o(null),y=o(null),E=o(i.offset);V(()=>b.params.mesh,function(){b.name==="zone-egress-list-view"&&m(0)}),m(i.offset);async function m(e){var a;E.value=e,v.set("offset",e>0?e:null),u.value=!0,c.value=null;const t=x;try{const{items:s,next:d}=await g.getAllZoneEgressOverviews({size:t,offset:e});y.value=d,n.value.data=D(s??[]),await h({name:i.selectedZoneEgressName??((a=n.value.data[0])==null?void 0:a.entity.name)})}catch(s){n.value.data=[],r.value=null,s instanceof Error?c.value=s:console.error(s)}finally{u.value=!1}}function D(e){return e.map(t=>{const{name:a}=t,s={name:"zone-egress-detail-view",params:{zoneEgress:a}},d=I(t.zoneEgressInsight??{});return{entity:t,detailViewRoute:s,status:d}})}async function h({name:e}){if(e===void 0){r.value=null,v.set("zoneEgress",null);return}try{r.value=await g.getZoneEgressOverview({name:e}),v.set("zoneEgress",e)}catch(t){console.error(t)}}return(e,t)=>(w(),O(q,null,{default:z(()=>[l(F,{title:p(_)("zone-egresses.routes.items.title")},null,8,["title"]),k(),l(C,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(_)("zone-egresses.routes.items.breadcrumbs")}]},{default:z(()=>{var a;return[f("div",R,[f("div",U,[f("div",j,[l(Q,{"selected-entity-name":(a=r.value)==null?void 0:a.name,"page-size":p(x),"is-loading":u.value,error:c.value,"empty-state":T,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:y.value,"page-offset":E.value,onTableAction:h,onLoadData:m},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),k(),r.value!==null?(w(),S("div",G,[l(L,{"zone-egress-overview":r.value},null,8,["zone-egress-overview"])])):B("",!0)])])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{de as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-8fc3bd67.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-16861d5e.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-8fc3bd67.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-16861d5e.js index 370fa5b63451..e616b537eba9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-8fc3bd67.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-16861d5e.js @@ -1 +1 @@ -import{k as l,f as _,g as d,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as f}from"./NavTabs.vue_vue_type_script_setup_true_lang-5929bdcf.js";import{d as g,r as z,o as t,a as s,b as o,i as n,e as a,g as v,h as w,j as b}from"./index-e7c4cb0f.js";import"./kongponents.es-db3f0bda.js";const $=g({__name:"ZoneIndexView",setup(x){const e=l(),i=_(),r=[{title:e.t("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e.t("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e.t("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(N,V)=>{const m=z("RouterView");return t(),s(p,null,{default:o(()=>[n(d,{breadcrumbs:[{to:{name:"zone-index-view"},text:a(e).t("zones.routes.items.breadcrumbs")}]},{default:o(()=>[a(i).getters["config/getMulticlusterStatus"]?(t(),s(f,{key:0,tabs:r})):v("",!0),w(),n(m,null,{default:o(({Component:u,route:c})=>[(t(),s(b(u),{key:c.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{$ as default}; +import{k as l,f as _,g as d,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as f}from"./NavTabs.vue_vue_type_script_setup_true_lang-b99a9b59.js";import{d as g,r as z,o as t,a as s,b as o,i as n,e as a,g as v,h as w,j as b}from"./index-3e91d6ff.js";import"./kongponents.es-605260c0.js";const $=g({__name:"ZoneIndexView",setup(x){const e=l(),i=_(),r=[{title:e.t("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e.t("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e.t("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(N,V)=>{const m=z("RouterView");return t(),s(p,null,{default:o(()=>[n(d,{breadcrumbs:[{to:{name:"zone-index-view"},text:a(e).t("zones.routes.items.breadcrumbs")}]},{default:o(()=>[a(i).getters["config/getMulticlusterStatus"]?(t(),s(f,{key:0,tabs:r})):v("",!0),w(),n(m,null,{default:o(({Component:u,route:c})=>[(t(),s(b(u),{key:c.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{$ as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-39dc4141.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-34922039.js similarity index 55% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-39dc4141.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-34922039.js index cee4533dc3a1..807a35acd438 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-39dc4141.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-34922039.js @@ -1 +1 @@ -import{d as w,u as k,s as l,w as f,o as s,a as o,b as _,i as m,e as p,h as z,l as h,f as b}from"./index-e7c4cb0f.js";import{_ as y}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js";import{j as I,f as $,k as x,g as B,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{_ as N}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import{E as A}from"./ErrorBlock-86257192.js";import{_ as C}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./DefinitionListItem-84d660bf.js";import"./EnvoyData-ebe2f45c.js";import"./kongponents.es-db3f0bda.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-7c6aa739.js";const D={class:"zone-details"},O={key:3,class:"kcard-border"},X=w({__name:"ZoneIngressDetailView",setup(T){const d=I(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-ingress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-ingress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneIngress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneIngress;try{a.value=await d.getZoneIngressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(E,null,{default:_(()=>[m(V,{title:p(u)("zone-ingresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:p(u)("zone-ingresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",D,[n.value?(s(),o(C,{key:0})):r.value!==null?(s(),o(A,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(N,{key:2})):(s(),b("div",O,[m(y,{"zone-ingress-overview":a.value},null,8,["zone-ingress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; +import{d as w,u as k,s as l,w as f,o as s,a as o,b as _,i as m,e as p,h as z,l as h,f as b}from"./index-3e91d6ff.js";import{_ as y}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js";import{j as I,f as $,k as x,g as B,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{_ as N}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import{E as A}from"./ErrorBlock-c00a9be3.js";import{_ as C}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./DefinitionListItem-dd7f1ed7.js";import"./EnvoyData-d68db4e2.js";import"./kongponents.es-605260c0.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-6362ddfe.js";const D={class:"zone-details"},O={key:3,class:"kcard-border"},X=w({__name:"ZoneIngressDetailView",setup(T){const d=I(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-ingress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-ingress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneIngress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneIngress;try{a.value=await d.getZoneIngressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(E,null,{default:_(()=>[m(V,{title:p(u)("zone-ingresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:p(u)("zone-ingresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",D,[n.value?(s(),o(C,{key:0})):r.value!==null?(s(),o(A,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(N,{key:2})):(s(),b("div",O,[m(y,{"zone-ingress-overview":a.value},null,8,["zone-ingress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js index e7e5bea3ae53..f86820e29eb5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js @@ -1,4 +1,4 @@ -import{k as w,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{a as O,D as B}from"./DefinitionListItem-84d660bf.js";import{E as c}from"./EnvoyData-ebe2f45c.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import{T}from"./TabsWidget-67e5cef2.js";import{T as g}from"./TextWithCopyButton-7c6aa739.js";import{d as A,c as m,r as q,o as t,a as l,b as e,l as L,h as d,i as s,t as h,f as v,k as y,e as V,F as p}from"./index-e7c4cb0f.js";const Z={class:"entity-heading"},H=A({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=w(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Ingress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],I=m(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:u.zoneIngressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneIngressOverview;return{type:i,name:a}}),k=m(()=>{var a;const i=((a=u.zoneIngressOverview.zoneIngressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const x=q("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[L("h1",Z,[d(` +import{k as w,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{a as O,D as B}from"./DefinitionListItem-dd7f1ed7.js";import{E as c}from"./EnvoyData-d68db4e2.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import{T}from"./TabsWidget-98d43afa.js";import{T as g}from"./TextWithCopyButton-6362ddfe.js";import{d as A,c as m,r as q,o as t,a as l,b as e,l as L,h as d,i as s,t as h,f as v,k as y,e as V,F as p}from"./index-3e91d6ff.js";const Z={class:"entity-heading"},H=A({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=w(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Ingress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],I=m(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:u.zoneIngressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneIngressOverview;return{type:i,name:a}}),k=m(()=>{var a;const i=((a=u.zoneIngressOverview.zoneIngressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const x=q("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[L("h1",Z,[d(` Zone Ingress: `),s(g,{text:n.value.name},{default:e(()=>[s(x,{to:I.value},{default:e(()=>[d(h(n.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(B,null,{default:e(()=>[(t(!0),v(p,null,y(n.value,(o,r)=>(t(),l(O,{key:r,term:V(_)(`http.api.property.${r}`)},{default:e(()=>[r==="name"?(t(),l(g,{key:0,text:o},null,8,["text"])):(t(),v(p,{key:1},[d(h(o),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),v(p,null,y(k.value,(o,r)=>(t(),l(b,{key:r},{"accordion-header":e(()=>[s(C,{details:o},null,8,["details"])]),"accordion-content":e(()=>[s(S,{details:o,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(c,{"data-path":"xds","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-stats":e(()=>[s(c,{"data-path":"stats","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-clusters":e(()=>[s(c,{"data-path":"clusters","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})}}});export{H as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6de225b6.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-e7a95459.js similarity index 68% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6de225b6.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-e7a95459.js index a781bbcd23ea..76a3b9b22e34 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6de225b6.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-e7a95459.js @@ -1 +1 @@ -import{d as V,u as O,s as r,w as I,O as $,o as i,a as k,b as x,i as l,e as u,h as N,l as T,f as D,P as E,g as B}from"./index-e7c4cb0f.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js";import{_ as P}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-12fed92a.js";import{j as C,k as M,f as q,g as F,_ as Q}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as R}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as U}from"./DataOverview-49747af7.js";import{Q as g}from"./QueryParameter-70743f73.js";import"./kongponents.es-db3f0bda.js";import"./DefinitionListItem-84d660bf.js";import"./EnvoyData-ebe2f45c.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-88e69e81.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./TextWithCopyButton-7c6aa739.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";const j={class:"zoneingresses"},G={key:1,class:"kcard-stack"},K={class:"kcard-border"},Y={key:0,class:"kcard-border"},ve=V({__name:"ZoneIngressListView",props:{selectedZoneIngressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(S){const c=S,v=C(),{t:_}=M(),A={title:"No Data",message:"There are no Zone Ingresses present."},y=O(),b=q(),m=r(!0),d=r(null),o=r({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),n=r(null),h=r(null),w=r(c.offset);I(()=>y.params.mesh,function(){y.name==="zone-ingress-list-view"&&f(0)}),I(()=>b.getters["config/getMulticlusterStatus"],function(e){e&&f(c.offset)},{immediate:!0});async function f(e){var s;w.value=e,g.set("offset",e>0?e:null),m.value=!0,d.value=null;const t=E;try{const{items:a,next:p}=await v.getAllZoneIngressOverviews({size:t,offset:e});h.value=p,o.value.data=Z(a??[]),await z({name:c.selectedZoneIngressName??((s=o.value.data[0])==null?void 0:s.entity.name)})}catch(a){o.value.data=[],n.value=null,a instanceof Error?d.value=a:console.error(a)}finally{m.value=!1}}function Z(e){return e.map(t=>{const{name:s}=t,a={name:"zone-ingress-detail-view",params:{zoneIngress:s}},p=$(t.zoneIngressInsight??{});return{entity:t,detailViewRoute:a,status:p}})}async function z({name:e}){if(e===void 0){n.value=null,g.set("zoneIngress",null);return}try{n.value=await v.getZoneIngressOverview({name:e}),g.set("zoneIngress",e)}catch(t){console.error(t)}}return(e,t)=>(i(),k(Q,null,{default:x(()=>[l(R,{title:u(_)("zone-ingresses.routes.items.title")},null,8,["title"]),N(),l(F,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:u(_)("zone-ingresses.routes.items.breadcrumbs")}]},{default:x(()=>{var s;return[T("div",j,[u(b).getters["config/getMulticlusterStatus"]===!1?(i(),k(L,{key:0})):(i(),D("div",G,[T("div",K,[l(U,{"selected-entity-name":(s=n.value)==null?void 0:s.name,"page-size":u(E),"is-loading":m.value,error:d.value,"empty-state":A,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:h.value,"page-offset":w.value,onTableAction:z,onLoadData:f},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),N(),n.value!==null?(i(),D("div",Y,[l(P,{"zone-ingress-overview":n.value},null,8,["zone-ingress-overview"])])):B("",!0)]))])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{ve as default}; +import{d as V,u as O,s as r,w as I,O as $,o as i,a as k,b as x,i as l,e as u,h as N,l as T,f as D,P as E,g as B}from"./index-3e91d6ff.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js";import{_ as P}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-1ddcc82c.js";import{j as C,k as M,f as q,g as F,_ as Q}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as R}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as U}from"./DataOverview-7f440d3d.js";import{Q as g}from"./QueryParameter-70743f73.js";import"./kongponents.es-605260c0.js";import"./DefinitionListItem-dd7f1ed7.js";import"./EnvoyData-d68db4e2.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-5d8c7c2f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./TextWithCopyButton-6362ddfe.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";const j={class:"zoneingresses"},G={key:1,class:"kcard-stack"},K={class:"kcard-border"},Y={key:0,class:"kcard-border"},ve=V({__name:"ZoneIngressListView",props:{selectedZoneIngressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(S){const c=S,v=C(),{t:_}=M(),A={title:"No Data",message:"There are no Zone Ingresses present."},y=O(),b=q(),m=r(!0),d=r(null),o=r({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),n=r(null),h=r(null),w=r(c.offset);I(()=>y.params.mesh,function(){y.name==="zone-ingress-list-view"&&f(0)}),I(()=>b.getters["config/getMulticlusterStatus"],function(e){e&&f(c.offset)},{immediate:!0});async function f(e){var s;w.value=e,g.set("offset",e>0?e:null),m.value=!0,d.value=null;const t=E;try{const{items:a,next:p}=await v.getAllZoneIngressOverviews({size:t,offset:e});h.value=p,o.value.data=Z(a??[]),await z({name:c.selectedZoneIngressName??((s=o.value.data[0])==null?void 0:s.entity.name)})}catch(a){o.value.data=[],n.value=null,a instanceof Error?d.value=a:console.error(a)}finally{m.value=!1}}function Z(e){return e.map(t=>{const{name:s}=t,a={name:"zone-ingress-detail-view",params:{zoneIngress:s}},p=$(t.zoneIngressInsight??{});return{entity:t,detailViewRoute:a,status:p}})}async function z({name:e}){if(e===void 0){n.value=null,g.set("zoneIngress",null);return}try{n.value=await v.getZoneIngressOverview({name:e}),g.set("zoneIngress",e)}catch(t){console.error(t)}}return(e,t)=>(i(),k(Q,null,{default:x(()=>[l(R,{title:u(_)("zone-ingresses.routes.items.title")},null,8,["title"]),N(),l(F,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:u(_)("zone-ingresses.routes.items.breadcrumbs")}]},{default:x(()=>{var s;return[T("div",j,[u(b).getters["config/getMulticlusterStatus"]===!1?(i(),k(L,{key:0})):(i(),D("div",G,[T("div",K,[l(U,{"selected-entity-name":(s=n.value)==null?void 0:s.name,"page-size":u(E),"is-loading":m.value,error:d.value,"empty-state":A,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:h.value,"page-offset":w.value,onTableAction:z,onLoadData:f},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),N(),n.value!==null?(i(),D("div",Y,[l(P,{"zone-ingress-overview":n.value},null,8,["zone-ingress-overview"])])):B("",!0)]))])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{ve as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-7e647860.js b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-710fec54.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneListView-7e647860.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneListView-710fec54.js index ddfeafbb45a8..8b48e119bccf 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-7e647860.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-710fec54.js @@ -1,3 +1,3 @@ -import{V as ee,d as te,T as ae}from"./kongponents.es-db3f0bda.js";import{d as K,s as i,o as m,a as h,b as u,q as F,h as d,e as t,g as A,u as se,w as P,a1 as W,O as ne,i as _,l as x,f as U,P as Y,m as oe,t as O}from"./index-e7c4cb0f.js";import{_ as re}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-fc916b30.js";import{_ as le}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-b7dda969.js";import{l as ie,k as ce,j as ue,f as de,g as me,_ as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-ecbba17f.js";import{_ as fe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-03a26b48.js";import{D as ve}from"./DataOverview-49747af7.js";import{Q as Z}from"./QueryParameter-70743f73.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-4fe949f7.js";import"./DefinitionListItem-84d660bf.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-51deb8c9.js";import"./TabsWidget-67e5cef2.js";import"./ErrorBlock-86257192.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-3b2b388b.js";import"./TextWithCopyButton-7c6aa739.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-5d01da38.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7a665f3e.js";import"./TagList-da1dbae1.js";import"./StatusBadge-d4b430b5.js";const ge=K({__name:"DeleteResourceModal",props:{actionButtonText:{type:String,required:!1,default:"Yes, delete"},confirmationText:{type:String,required:!1,default:""},deleteFunction:{type:Function,required:!0},isVisible:{type:Boolean,required:!0},modalId:{type:String,required:!0},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(E,{emit:p}){const o=E,s=i(!1);async function r(){s.value=!1;try{await o.deleteFunction(),p("delete")}catch(f){console.error(f),s.value=!0}}return(f,y)=>(m(),h(t(te),{"action-button-text":o.actionButtonText,"confirmation-text":o.confirmationText,"is-visible":o.isVisible,"modal-id":o.modalId,title:o.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:y[0]||(y[0]=T=>p("cancel")),onProceed:r},{"body-content":u(()=>[F(f.$slots,"body-content"),d(),s.value?(m(),h(t(ee),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:u(()=>[F(f.$slots,"error")]),_:3})):A("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),be={class:"zones"},ye={key:1,class:"kcard-stack"},_e={class:"kcard-border"},he={key:0,class:"kcard-border"},Be=K({__name:"ZoneListView",props:{selectedZoneName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(E){const p=E,o=ie(),{t:s}=ce(),r=ue(),f={title:"No Data",message:"There are no Zones present."},y=se(),T=de(),N=i(!0),z=i(!1),k=i(""),S=i(null),v=i({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Storage type",key:"storeType"},{label:"Ingress",key:"hasIngress"},{label:"Egress",key:"hasEgress"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],data:[]}),g=i(null),M=i(null),V=i(p.offset);P(()=>y.params.mesh,function(){y.name==="zone-cp-list-view"&&w(0)}),P(()=>T.getters["config/getMulticlusterStatus"],function(e){e&&w(p.offset)},{immediate:!0});async function w(e){var n;V.value=e,Z.set("offset",e>0?e:null),N.value=!0,S.value=null;const c=Y;try{const[{items:l,next:I},{items:a},{items:D}]=await Promise.all([r.getAllZoneOverviews({size:c,offset:e}),W(r.getAllZoneIngressOverviews.bind(r)),W(r.getAllZoneEgressOverviews.bind(r))]);M.value=I,v.value.data=Q(l??[],a??[],D??[]),await q({name:p.selectedZoneName??((n=v.value.data[0])==null?void 0:n.entity.name)})}catch(l){g.value=null,v.value.data=[],l instanceof Error?S.value=l:console.error(l)}finally{N.value=!1}}function Q(e,c,n){const l=new Set(c.map(a=>a.zoneIngress.zone)),I=new Set(n.map(a=>a.zoneEgress.zone));return e.map(a=>{var B;const{name:D}=a,J={name:"zone-cp-detail-view",params:{zone:D}};let $="-",L="",R=!0;(((B=a.zoneInsight)==null?void 0:B.subscriptions)??[]).forEach(b=>{if(b.version&&b.version.kumaCp){$=b.version.kumaCp.version;const{kumaCpGlobalCompatible:X=!0}=b.version.kumaCp;R=X,b.config&&(L=JSON.parse(b.config).store.type)}});const H=ne(a.zoneInsight);return{entity:a,detailViewRoute:J,status:H,zoneCpVersion:$,storeType:L,hasIngress:l.has(a.name)?"Yes":"No",hasEgress:I.has(a.name)?"Yes":"No",withWarnings:!R}})}async function q({name:e}){if(e===void 0){g.value=null,Z.set("zone",null);return}try{g.value=await r.getZoneOverview({name:e}),Z.set("zone",e)}catch(c){console.error(c)}}async function G(){await r.deleteZone({name:k.value})}function C(e){var n;const c=((n=e==null?void 0:e.entity)==null?void 0:n.name)??(e==null?void 0:e.name)??"";z.value=!z.value,k.value=c}function j(){C(),w(0)}return(e,c)=>(m(),h(pe,null,{default:u(()=>[_(fe,{title:t(s)("zone-cps.routes.items.title")},null,8,["title"]),d(),_(me,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:t(s)("zone-cps.routes.items.breadcrumbs")}]},{default:u(()=>{var n;return[x("div",be,[t(T).getters["config/getMulticlusterStatus"]===!1?(m(),h(re,{key:0})):(m(),U("div",ye,[x("div",_e,[_(ve,{"selected-entity-name":(n=g.value)==null?void 0:n.name,"page-size":t(Y),"is-loading":N.value,error:S.value,"empty-state":f,"table-data":v.value,"table-data-is-empty":v.value.data.length===0,"show-warnings":v.value.data.some(l=>l.withWarnings),next:M.value,"page-offset":V.value,"show-delete-action":t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled",onDeleteResource:C,onTableAction:q,onLoadData:w},oe({_:2},[t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled"?{name:"additionalControls",fn:u(()=>[_(t(ae),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:u(()=>[d(` +import{V as ee,d as te,T as ae}from"./kongponents.es-605260c0.js";import{d as K,s as i,o as m,a as h,b as u,q as F,h as d,e as t,g as A,u as se,w as P,a1 as W,O as ne,i as _,l as x,f as U,P as Y,m as oe,t as O}from"./index-3e91d6ff.js";import{_ as re}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-ebe8f97b.js";import{_ as le}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-9cf4e0fb.js";import{l as ie,k as ce,j as ue,f as de,g as me,_ as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-4f1e634f.js";import{_ as fe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c8f5e134.js";import{D as ve}from"./DataOverview-7f440d3d.js";import{Q as Z}from"./QueryParameter-70743f73.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-136398d6.js";import"./DefinitionListItem-dd7f1ed7.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-b5623c15.js";import"./TabsWidget-98d43afa.js";import"./ErrorBlock-c00a9be3.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-f54a5cba.js";import"./TextWithCopyButton-6362ddfe.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-201c2757.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-e60ab842.js";import"./TagList-337d8082.js";import"./StatusBadge-456f7f13.js";const ge=K({__name:"DeleteResourceModal",props:{actionButtonText:{type:String,required:!1,default:"Yes, delete"},confirmationText:{type:String,required:!1,default:""},deleteFunction:{type:Function,required:!0},isVisible:{type:Boolean,required:!0},modalId:{type:String,required:!0},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(E,{emit:p}){const o=E,s=i(!1);async function r(){s.value=!1;try{await o.deleteFunction(),p("delete")}catch(f){console.error(f),s.value=!0}}return(f,y)=>(m(),h(t(te),{"action-button-text":o.actionButtonText,"confirmation-text":o.confirmationText,"is-visible":o.isVisible,"modal-id":o.modalId,title:o.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:y[0]||(y[0]=T=>p("cancel")),onProceed:r},{"body-content":u(()=>[F(f.$slots,"body-content"),d(),s.value?(m(),h(t(ee),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:u(()=>[F(f.$slots,"error")]),_:3})):A("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),be={class:"zones"},ye={key:1,class:"kcard-stack"},_e={class:"kcard-border"},he={key:0,class:"kcard-border"},Be=K({__name:"ZoneListView",props:{selectedZoneName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(E){const p=E,o=ie(),{t:s}=ce(),r=ue(),f={title:"No Data",message:"There are no Zones present."},y=se(),T=de(),N=i(!0),z=i(!1),k=i(""),S=i(null),v=i({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Storage type",key:"storeType"},{label:"Ingress",key:"hasIngress"},{label:"Egress",key:"hasEgress"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],data:[]}),g=i(null),M=i(null),V=i(p.offset);P(()=>y.params.mesh,function(){y.name==="zone-cp-list-view"&&w(0)}),P(()=>T.getters["config/getMulticlusterStatus"],function(e){e&&w(p.offset)},{immediate:!0});async function w(e){var n;V.value=e,Z.set("offset",e>0?e:null),N.value=!0,S.value=null;const c=Y;try{const[{items:l,next:I},{items:a},{items:D}]=await Promise.all([r.getAllZoneOverviews({size:c,offset:e}),W(r.getAllZoneIngressOverviews.bind(r)),W(r.getAllZoneEgressOverviews.bind(r))]);M.value=I,v.value.data=Q(l??[],a??[],D??[]),await q({name:p.selectedZoneName??((n=v.value.data[0])==null?void 0:n.entity.name)})}catch(l){g.value=null,v.value.data=[],l instanceof Error?S.value=l:console.error(l)}finally{N.value=!1}}function Q(e,c,n){const l=new Set(c.map(a=>a.zoneIngress.zone)),I=new Set(n.map(a=>a.zoneEgress.zone));return e.map(a=>{var B;const{name:D}=a,J={name:"zone-cp-detail-view",params:{zone:D}};let $="-",L="",R=!0;(((B=a.zoneInsight)==null?void 0:B.subscriptions)??[]).forEach(b=>{if(b.version&&b.version.kumaCp){$=b.version.kumaCp.version;const{kumaCpGlobalCompatible:X=!0}=b.version.kumaCp;R=X,b.config&&(L=JSON.parse(b.config).store.type)}});const H=ne(a.zoneInsight);return{entity:a,detailViewRoute:J,status:H,zoneCpVersion:$,storeType:L,hasIngress:l.has(a.name)?"Yes":"No",hasEgress:I.has(a.name)?"Yes":"No",withWarnings:!R}})}async function q({name:e}){if(e===void 0){g.value=null,Z.set("zone",null);return}try{g.value=await r.getZoneOverview({name:e}),Z.set("zone",e)}catch(c){console.error(c)}}async function G(){await r.deleteZone({name:k.value})}function C(e){var n;const c=((n=e==null?void 0:e.entity)==null?void 0:n.name)??(e==null?void 0:e.name)??"";z.value=!z.value,k.value=c}function j(){C(),w(0)}return(e,c)=>(m(),h(pe,null,{default:u(()=>[_(fe,{title:t(s)("zone-cps.routes.items.title")},null,8,["title"]),d(),_(me,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:t(s)("zone-cps.routes.items.breadcrumbs")}]},{default:u(()=>{var n;return[x("div",be,[t(T).getters["config/getMulticlusterStatus"]===!1?(m(),h(re,{key:0})):(m(),U("div",ye,[x("div",_e,[_(ve,{"selected-entity-name":(n=g.value)==null?void 0:n.name,"page-size":t(Y),"is-loading":N.value,error:S.value,"empty-state":f,"table-data":v.value,"table-data-is-empty":v.value.data.length===0,"show-warnings":v.value.data.some(l=>l.withWarnings),next:M.value,"page-offset":V.value,"show-delete-action":t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled",onDeleteResource:C,onTableAction:q,onLoadData:w},oe({_:2},[t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled"?{name:"additionalControls",fn:u(()=>[_(t(ae),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:u(()=>[d(` Create Zone `)]),_:1})]),key:"0"}:void 0]),1032,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","show-warnings","next","page-offset","show-delete-action"])]),d(),g.value!==null?(m(),U("div",he,[_(le,{"zone-overview":g.value},null,8,["zone-overview"])])):A("",!0)])),d(),z.value?(m(),h(ge,{key:2,"confirmation-text":k.value,"delete-function":G,"is-visible":z.value,"modal-id":"delete-zone-modal","action-button-text":t(s)("zones.delete.confirmModal.proceedText"),title:t(s)("zones.delete.confirmModal.title"),onCancel:C,onDelete:j},{"body-content":u(()=>[x("p",null,O(t(s)("zones.delete.confirmModal.text1",{zoneName:k.value})),1),d(),x("p",null,O(t(s)("zones.delete.confirmModal.text2")),1)]),error:u(()=>[d(O(t(s)("zones.delete.confirmModal.errorText")),1)]),_:1},8,["confirmation-text","is-visible","action-button-text","title"])):A("",!0)])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{Be as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/index-e7c4cb0f.js b/app/kuma-ui/pkg/resources/data/assets/index-3e91d6ff.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/index-e7c4cb0f.js rename to app/kuma-ui/pkg/resources/data/assets/index-3e91d6ff.js index d188633266b1..a9a76048df64 100644 --- a/app/kuma-ui/pkg/resources/data/assets/index-e7c4cb0f.js +++ b/app/kuma-ui/pkg/resources/data/assets/index-3e91d6ff.js @@ -1,12 +1,12 @@ -var ec=Object.defineProperty;var tc=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ue=(e,t,n)=>(tc(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const nc="modulepreload",rc=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},pi={},V=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=rc(i,r),i in pi)return;pi[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":nc,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function Ns(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const ue={},qt=[],Ge=()=>{},sc=()=>!1,ic=/^on[^a-z]/,_r=e=>ic.test(e),Ps=e=>e.startsWith("onUpdate:"),de=Object.assign,Ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oc=Object.prototype.hasOwnProperty,X=(e,t)=>oc.call(e,t),x=Array.isArray,Yt=e=>Fn(e)==="[object Map]",yr=e=>Fn(e)==="[object Set]",di=e=>Fn(e)==="[object Date]",G=e=>typeof e=="function",he=e=>typeof e=="string",Rn=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Vo=e=>ie(e)&&G(e.then)&&G(e.catch),Ko=Object.prototype.toString,Fn=e=>Ko.call(e),ac=e=>Fn(e).slice(8,-1),zo=e=>Fn(e)==="[object Object]",Ms=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nr=Ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lc=/-(\w)/g,tt=br(e=>e.replace(lc,(t,n)=>n?n.toUpperCase():"")),cc=/\B([A-Z])/g,Ft=br(e=>e.replace(cc,"-$1").toLowerCase()),Tr=br(e=>e.charAt(0).toUpperCase()+e.slice(1)),rr=br(e=>e?`on${Tr(e)}`:""),Cn=(e,t)=>!Object.is(e,t),sr=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ur=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uc=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let mi;const es=()=>mi||(mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ds(e){if(x(e)){const t={};for(let n=0;n{if(n){const r=n.split(hc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Hs(e){let t="";if(he(e))t=e;else if(x(e))for(let n=0;nnn(n,t))}const dE=e=>he(e)?e:e==null?"":x(e)||ie(e)&&(e.toString===Ko||!G(e.toString))?JSON.stringify(e,Wo,2):String(e),Wo=(e,t)=>t&&t.__v_isRef?Wo(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:yr(t)?{[`Set(${t.size})`]:[...t.values()]}:ie(t)&&!x(t)&&!zo(t)?String(t):t;let Fe;class Xo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},qo=e=>(e.w&It)>0,Yo=e=>(e.n&It)>0,Tc=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":x(e)?Ms(n)&&a.push(o.get("length")):(a.push(o.get(Ht)),Yt(e)&&a.push(o.get(ns)));break;case"delete":x(e)||(a.push(o.get(Ht)),Yt(e)&&a.push(o.get(ns)));break;case"set":Yt(e)&&a.push(o.get(Ht));break}if(a.length===1)a[0]&&rs(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);rs(Bs(l))}}function rs(e,t){const n=x(e)?e:[...e];for(const r of n)r.computed&&Ei(r);for(const r of n)r.computed||Ei(r)}function Ei(e,t){(e!==ke||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Sc(e,t){var n;return(n=fr.get(e))==null?void 0:n.get(t)}const Ac=Ns("__proto__,__v_isRef,__isVue"),ea=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn)),Oc=Us(),wc=Us(!1,!0),Rc=Us(!0),vi=Cc();function Cc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=q(this);for(let i=0,o=this.length;i{e[t]=function(...n){fn();const r=q(this)[t].apply(this,n);return hn(),r}}),e}function Nc(e){const t=q(this);return Re(t,"has",e),t.hasOwnProperty(e)}function Us(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?zc:ia:t?sa:ra).get(r))return r;const o=x(r);if(!e){if(o&&X(vi,s))return Reflect.get(vi,s,i);if(s==="hasOwnProperty")return Nc}const a=Reflect.get(r,s,i);return(Rn(s)?ea.has(s):Ac(s))||(e||Re(r,"get",s),t)?a:ve(a)?o&&Ms(s)?a:a.value:ie(a)?e?oa(a):pn(a):a}}const Pc=ta(),Lc=ta(!0);function ta(e=!1){return function(n,r,s,i){let o=n[r];if(rn(o)&&ve(o)&&!ve(s))return!1;if(!e&&(!hr(s)&&!rn(s)&&(o=q(o),s=q(s)),!x(n)&&ve(o)&&!ve(s)))return o.value=s,!0;const a=x(n)&&Ms(r)?Number(r)e,Ir=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,r=!1){e=e.__v_raw;const s=q(e),i=q(t);n||(t!==i&&Re(s,"get",t),Re(s,"get",i));const{has:o}=Ir(s),a=r?Fs:n?Gs:Nn;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,r=q(n),s=q(e);return t||(e!==s&&Re(r,"has",e),Re(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Kn(e,t=!1){return e=e.__v_raw,!t&&Re(q(e),"iterate",Ht),Reflect.get(e,"size",e)}function _i(e){e=q(e);const t=q(this);return Ir(t).has.call(t,e)||(t.add(e),ct(t,"add",e,e)),this}function yi(e,t){t=q(t);const n=q(this),{has:r,get:s}=Ir(n);let i=r.call(n,e);i||(e=q(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Cn(t,o)&&ct(n,"set",e,t):ct(n,"add",e,t),this}function bi(e){const t=q(this),{has:n,get:r}=Ir(t);let s=n.call(t,e);s||(e=q(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&ct(t,"delete",e,void 0),i}function Ti(){const e=q(this),t=e.size!==0,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}function zn(e,t){return function(r,s){const i=this,o=i.__v_raw,a=q(o),l=t?Fs:e?Gs:Nn;return!e&&Re(a,"iterate",Ht),o.forEach((u,c)=>r.call(s,l(u),l(c),i))}}function Zn(e,t,n){return function(...r){const s=this.__v_raw,i=q(s),o=Yt(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Fs:t?Gs:Nn;return!t&&Re(i,"iterate",l?ns:Ht),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return e==="delete"?!1:this}}function Uc(){const e={get(i){return jn(this,i)},get size(){return Kn(this)},has:Vn,add:_i,set:yi,delete:bi,clear:Ti,forEach:zn(!1,!1)},t={get(i){return jn(this,i,!1,!0)},get size(){return Kn(this)},has:Vn,add:_i,set:yi,delete:bi,clear:Ti,forEach:zn(!1,!0)},n={get(i){return jn(this,i,!0)},get size(){return Kn(this,!0)},has(i){return Vn.call(this,i,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:zn(!0,!1)},r={get(i){return jn(this,i,!0,!0)},get size(){return Kn(this,!0)},has(i){return Vn.call(this,i,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zn(i,!1,!1),n[i]=Zn(i,!0,!1),t[i]=Zn(i,!1,!0),r[i]=Zn(i,!0,!0)}),[e,n,t,r]}const[Fc,kc,$c,Gc]=Uc();function ks(e,t){const n=t?e?Gc:$c:e?kc:Fc;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(X(n,s)&&s in r?n:r,s,i)}const jc={get:ks(!1,!1)},Vc={get:ks(!1,!0)},Kc={get:ks(!0,!1)},ra=new WeakMap,sa=new WeakMap,ia=new WeakMap,zc=new WeakMap;function Zc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wc(e){return e.__v_skip||!Object.isExtensible(e)?0:Zc(ac(e))}function pn(e){return rn(e)?e:$s(e,!1,na,jc,ra)}function Xc(e){return $s(e,!1,xc,Vc,sa)}function oa(e){return $s(e,!0,Bc,Kc,ia)}function $s(e,t,n,r,s){if(!ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Wc(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Qt(e){return rn(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function hr(e){return!!(e&&e.__v_isShallow)}function aa(e){return Qt(e)||rn(e)}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function la(e){return cr(e,"__v_skip",!0),e}const Nn=e=>ie(e)?pn(e):e,Gs=e=>ie(e)?oa(e):e;function ca(e){yt&&ke&&(e=q(e),Jo(e.dep||(e.dep=Bs())))}function ua(e,t){e=q(e);const n=e.dep;n&&rs(n)}function ve(e){return!!(e&&e.__v_isRef===!0)}function qc(e){return fa(e,!1)}function Yc(e){return fa(e,!0)}function fa(e,t){return ve(e)?e:new Qc(e,t)}class Qc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Nn(t)}get value(){return ca(this),this._value}set value(t){const n=this.__v_isShallow||hr(t)||rn(t);t=n?t:q(t),Cn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Nn(t),ua(this))}}function Jt(e){return ve(e)?e.value:e}const Jc={get:(e,t,n)=>Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ha(e){return Qt(e)?e:new Proxy(e,Jc)}function mE(e){const t=x(e)?new Array(e.length):{};for(const n in e)t[n]=tu(e,n);return t}class eu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sc(q(this._object),this._key)}}function tu(e,t,n){const r=e[t];return ve(r)?r:new eu(e,t,n)}class nu{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xs(t,()=>{this._dirty||(this._dirty=!0,ua(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=q(this);return ca(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ru(e,t,n=!1){let r,s;const i=G(e);return i?(r=e,s=Ge):(r=e.get,s=e.set),new nu(r,s,i||!s,n)}function bt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Sr(i,t,n)}return s}function De(e,t,n,r){if(G(e)){const i=bt(e,t,n,r);return i&&Vo(i)&&i.catch(o=>{Sr(o,t,n)}),i}const s=[];for(let i=0;i>>1;Ln(be[r])et&&be.splice(t,1)}function au(e){x(e)?en.push(...e):(!ot||!ot.includes(e,e.allowRecurse?Pt+1:Pt))&&en.push(e),ma()}function Ii(e,t=Pn?et+1:0){for(;tLn(n)-Ln(r)),Pt=0;Pte.id==null?1/0:e.id,lu=(e,t)=>{const n=Ln(e)-Ln(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ea(e){ss=!1,Pn=!0,be.sort(lu);const t=Ge;try{for(et=0;ethe(g)?g.trim():g)),f&&(s=n.map(ur))}let a,l=r[a=rr(t)]||r[a=rr(tt(t))];!l&&i&&(l=r[a=rr(Ft(t))]),l&&De(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,De(u,e,6,s)}}function va(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!G(e)){const l=u=>{const c=va(u,t,!0);c&&(a=!0,de(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ie(e)&&r.set(e,null),null):(x(i)?i.forEach(l=>o[l]=null):de(o,i),ie(e)&&r.set(e,o),o)}function Ar(e,t){return!e||!_r(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Ft(t))||X(e,t))}let _e=null,Or=null;function pr(e){const t=_e;return _e=e,Or=e&&e.type.__scopeId||null,t}function gE(e){Or=e}function EE(){Or=null}function uu(e,t=_e,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Hi(-1);const i=pr(t);let o;try{o=e(...s)}finally{pr(i),r._d&&Hi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ur(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:h,setupState:g,ctx:I,inheritAttrs:b}=e;let C,A;const N=pr(e);try{if(n.shapeFlag&4){const L=s||r;C=Je(c.call(L,L,f,i,g,h,I)),A=l}else{const L=t;C=Je(L.length>1?L(i,{attrs:l,slots:a,emit:u}):L(i,null)),A=t.props?l:fu(l)}}catch(L){An.length=0,Sr(L,e,1),C=Ae(He)}let H=C;if(A&&b!==!1){const L=Object.keys(A),{shapeFlag:Z}=H;L.length&&Z&7&&(o&&L.some(Ps)&&(A=hu(A,o)),H=St(H,A))}return n.dirs&&(H=St(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),C=H,pr(N),C}const fu=e=>{let t;for(const n in e)(n==="class"||n==="style"||_r(n))&&((t||(t={}))[n]=e[n]);return t},hu=(e,t)=>{const n={};for(const r in e)(!Ps(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function pu(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Si(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function gu(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):au(e)}function vE(e,t){return wr(e,null,t)}function Eu(e,t){return wr(e,null,{flush:"post"})}const Wn={};function tn(e,t,n){return wr(e,t,n)}function wr(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=ue){var a;const l=bc()===((a=Ee)==null?void 0:a.scope)?Ee:null;let u,c=!1,f=!1;if(ve(e)?(u=()=>e.value,c=hr(e)):Qt(e)?(u=()=>e,r=!0):x(e)?(f=!0,c=e.some(L=>Qt(L)||hr(L)),u=()=>e.map(L=>{if(ve(L))return L.value;if(Qt(L))return Dt(L);if(G(L))return bt(L,l,2)})):G(e)?t?u=()=>bt(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),De(e,l,3,[g])}:u=Ge,t&&r){const L=u;u=()=>Dt(L())}let h,g=L=>{h=N.onStop=()=>{bt(L,l,4)}},I;if(Dn)if(g=Ge,t?n&&De(t,l,3,[u(),f?[]:void 0,g]):u(),s==="sync"){const L=uf();I=L.__watcherHandles||(L.__watcherHandles=[])}else return Ge;let b=f?new Array(e.length).fill(Wn):Wn;const C=()=>{if(N.active)if(t){const L=N.run();(r||c||(f?L.some((Z,ae)=>Cn(Z,b[ae])):Cn(L,b)))&&(h&&h(),De(t,l,3,[L,b===Wn?void 0:f&&b[0]===Wn?[]:b,g]),b=L)}else N.run()};C.allowRecurse=!!t;let A;s==="sync"?A=C:s==="post"?A=()=>we(C,l&&l.suspense):(C.pre=!0,l&&(C.id=l.uid),A=()=>Vs(C));const N=new xs(u,A);t?n?C():b=N.run():s==="post"?we(N.run.bind(N),l&&l.suspense):N.run();const H=()=>{N.stop(),l&&l.scope&&Ls(l.scope.effects,N)};return I&&I.push(H),H}function vu(e,t,n){const r=this.proxy,s=he(e)?e.includes(".")?_a(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const o=Ee;sn(this);const a=wr(s,i.bind(r),n);return o?sn(o):Bt(),a}function _a(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Dt(n,t)});else if(zo(e))for(const n in e)Dt(e[n],t);return e}function _E(e,t){const n=_e;if(n===null)return e;const r=Lr(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Aa(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],ya={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},yu={name:"BaseTransition",props:ya,setup(e,{slots:t}){const n=Ys(),r=_u();let s;return()=>{const i=t.default&&Ta(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const b of i)if(b.type!==He){o=b;break}}const a=q(e),{mode:l}=a;if(r.isLeaving)return Fr(o);const u=Ai(o);if(!u)return Fr(o);const c=is(u,a,r,n);os(u,c);const f=n.subTree,h=f&&Ai(f);let g=!1;const{getTransitionKey:I}=u.type;if(I){const b=I();s===void 0?s=b:b!==s&&(s=b,g=!0)}if(h&&h.type!==He&&(!Lt(u,h)||g)){const b=is(h,a,r,n);if(os(h,b),l==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Fr(o);l==="in-out"&&u.type!==He&&(b.delayLeave=(C,A,N)=>{const H=ba(r,h);H[String(h.key)]=h,C._leaveCb=()=>{A(),C._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=N})}return o}}},bu=yu;function ba(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function is(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:I,onBeforeAppear:b,onAppear:C,onAfterAppear:A,onAppearCancelled:N}=t,H=String(e.key),L=ba(n,e),Z=(j,le)=>{j&&De(j,r,9,le)},ae=(j,le)=>{const te=le[1];Z(j,le),x(j)?j.every(ge=>ge.length<=1)&&te():j.length<=1&&te()},me={mode:i,persisted:o,beforeEnter(j){let le=a;if(!n.isMounted)if(s)le=b||a;else return;j._leaveCb&&j._leaveCb(!0);const te=L[H];te&&Lt(e,te)&&te.el._leaveCb&&te.el._leaveCb(),Z(le,[j])},enter(j){let le=l,te=u,ge=c;if(!n.isMounted)if(s)le=C||l,te=A||u,ge=N||c;else return;let D=!1;const J=j._enterCb=Te=>{D||(D=!0,Te?Z(ge,[j]):Z(te,[j]),me.delayedLeave&&me.delayedLeave(),j._enterCb=void 0)};le?ae(le,[j,J]):J()},leave(j,le){const te=String(e.key);if(j._enterCb&&j._enterCb(!0),n.isUnmounting)return le();Z(f,[j]);let ge=!1;const D=j._leaveCb=J=>{ge||(ge=!0,le(),J?Z(I,[j]):Z(g,[j]),j._leaveCb=void 0,L[te]===e&&delete L[te])};L[te]=e,h?ae(h,[j,D]):D()},clone(j){return is(j,t,n,r)}};return me}function Fr(e){if(Rr(e))return e=St(e),e.children=null,e}function Ai(e){return Rr(e)?e.children?e.children[0]:void 0:e}function os(e,t){e.shapeFlag&6&&e.component?os(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ta(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;ide({name:e.name},t,{setup:e}))():e}const Tn=e=>!!e.type.__asyncLoader,Rr=e=>e.type.__isKeepAlive;function Tu(e,t){Sa(e,"a",t)}function Iu(e,t){Sa(e,"da",t)}function Sa(e,t,n=Ee){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Cr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Rr(s.parent.vnode)&&Su(r,t,n,s),s=s.parent}}function Su(e,t,n,r){const s=Cr(t,e,r,!0);zs(()=>{Ls(r[t],s)},n)}function Cr(e,t,n=Ee,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fn(),sn(n);const a=De(t,n,e,o);return Bt(),hn(),a});return r?s.unshift(i):s.push(i),i}}const ft=e=>(t,n=Ee)=>(!Dn||e==="sp")&&Cr(e,(...r)=>t(...r),n),Au=ft("bm"),Ks=ft("m"),Ou=ft("bu"),wu=ft("u"),Aa=ft("bum"),zs=ft("um"),Ru=ft("sp"),Cu=ft("rtg"),Nu=ft("rtc");function Pu(e,t=Ee){Cr("ec",e,t)}const Zs="components";function yE(e,t){return wa(Zs,e,!0,t)||e}const Oa=Symbol.for("v-ndc");function bE(e){return he(e)?wa(Zs,e,!1)||e:e||Oa}function wa(e,t,n=!0,r=!1){const s=_e||Ee;if(s){const i=s.type;if(e===Zs){const a=af(i,!1);if(a&&(a===t||a===tt(t)||a===Tr(tt(t))))return i}const o=Oi(s[e]||i[e],t)||Oi(s.appContext[e],t);return!o&&r?i:o}}function Oi(e,t){return e&&(e[t]||e[tt(t)]||e[Tr(tt(t))])}function TE(e,t,n,r){let s;const i=n&&n[r];if(x(e)||he(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function SE(e,t,n={},r,s){if(_e.isCE||_e.parent&&Tn(_e.parent)&&_e.parent.isCE)return t!=="default"&&(n.name=t),Ae("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Ua();const o=i&&Ra(i(n)),a=ka(Pe,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Ra(e){return e.some(t=>gr(t)?!(t.type===He||t.type===Pe&&!Ra(t.children)):!0)?e:null}function AE(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rr(r)]=e[r];return n}const as=e=>e?ja(e)?Lr(e)||e.proxy:as(e.parent):null,In=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>as(e.parent),$root:e=>as(e.root),$emit:e=>e.emit,$options:e=>Ws(e),$forceUpdate:e=>e.f||(e.f=()=>Vs(e.update)),$nextTick:e=>e.n||(e.n=da.bind(e.proxy)),$watch:e=>vu.bind(e)}),kr=(e,t)=>e!==ue&&!e.__isScriptSetup&&X(e,t),Lu={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(kr(r,t))return o[t]=1,r[t];if(s!==ue&&X(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&X(u,t))return o[t]=3,i[t];if(n!==ue&&X(n,t))return o[t]=4,n[t];ls&&(o[t]=0)}}const c=In[t];let f,h;if(c)return t==="$attrs"&&Re(e,"get",t),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ue&&X(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,X(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return kr(s,t)?(s[t]=n,!0):r!==ue&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==ue&&X(e,o)||kr(t,o)||(a=i[0])&&X(a,o)||X(r,o)||X(In,o)||X(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function OE(){return Ca().slots}function wE(){return Ca().attrs}function Ca(){const e=Ys();return e.setupContext||(e.setupContext=Ka(e))}function wi(e){return x(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ls=!0;function Mu(e){const t=Ws(e),n=e.proxy,r=e.ctx;ls=!1,t.beforeCreate&&Ri(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:I,activated:b,deactivated:C,beforeDestroy:A,beforeUnmount:N,destroyed:H,unmounted:L,render:Z,renderTracked:ae,renderTriggered:me,errorCaptured:j,serverPrefetch:le,expose:te,inheritAttrs:ge,components:D,directives:J,filters:Te}=t;if(u&&Du(u,r,null),o)for(const re in o){const Y=o[re];G(Y)&&(r[re]=Y.bind(n))}if(s){const re=s.call(n,n);ie(re)&&(e.data=pn(re))}if(ls=!0,i)for(const re in i){const Y=i[re],st=G(Y)?Y.bind(n,n):G(Y.get)?Y.get.bind(n,n):Ge,ht=!G(Y)&&G(Y.set)?Y.set.bind(n):Ge,Ze=Le({get:st,set:ht});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Oe=>Ze.value=Oe})}if(a)for(const re in a)Na(a[re],r,n,re);if(l){const re=G(l)?l.call(n):l;Reflect.ownKeys(re).forEach(Y=>{ir(Y,re[Y])})}c&&Ri(c,e,"c");function fe(re,Y){x(Y)?Y.forEach(st=>re(st.bind(n))):Y&&re(Y.bind(n))}if(fe(Au,f),fe(Ks,h),fe(Ou,g),fe(wu,I),fe(Tu,b),fe(Iu,C),fe(Pu,j),fe(Nu,ae),fe(Cu,me),fe(Aa,N),fe(zs,L),fe(Ru,le),x(te))if(te.length){const re=e.exposed||(e.exposed={});te.forEach(Y=>{Object.defineProperty(re,Y,{get:()=>n[Y],set:st=>n[Y]=st})})}else e.exposed||(e.exposed={});Z&&e.render===Ge&&(e.render=Z),ge!=null&&(e.inheritAttrs=ge),D&&(e.components=D),J&&(e.directives=J)}function Du(e,t,n=Ge){x(e)&&(e=cs(e));for(const r in e){const s=e[r];let i;ie(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),ve(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ri(e,t,n){De(x(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Na(e,t,n,r){const s=r.includes(".")?_a(n,r):()=>n[r];if(he(e)){const i=t[e];G(i)&&tn(s,i)}else if(G(e))tn(s,e.bind(n));else if(ie(e))if(x(e))e.forEach(i=>Na(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&tn(s,i,e)}}function Ws(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>dr(l,u,o,!0)),dr(l,t,o)),ie(t)&&i.set(t,l),l}function dr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&dr(e,i,n,!0),s&&s.forEach(o=>dr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Hu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Hu={data:Ci,props:Ni,emits:Ni,methods:yn,computed:yn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:yn,directives:yn,watch:xu,provide:Ci,inject:Bu};function Ci(e,t){return t?e?function(){return de(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function Bu(e,t){return yn(cs(e),cs(t))}function cs(e){if(x(e)){const t={};for(let n=0;n1)return n&&G(t)?t.call(r&&r.proxy):t}}function ku(e,t,n,r=!1){const s={},i={};cr(i,Pr,1),e.propsDefaults=Object.create(null),La(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Xc(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function $u(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=q(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,g]=Ma(f,t,!0);de(o,h),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return ie(e)&&r.set(e,qt),qt;if(x(i))for(let c=0;c-1,g[1]=b<0||I-1||X(g,"default"))&&a.push(f)}}}const u=[o,a];return ie(e)&&r.set(e,u),u}function Pi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return Li(e)===Li(t)}function Di(e,t){return x(t)?t.findIndex(n=>Mi(n,e)):G(t)&&Mi(t,e)?0:-1}const Da=e=>e[0]==="_"||e==="$stable",Xs=e=>x(e)?e.map(Je):[Je(e)],Gu=(e,t,n)=>{if(t._n)return t;const r=uu((...s)=>Xs(t(...s)),n);return r._c=!1,r},Ha=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Da(s))continue;const i=e[s];if(G(i))t[s]=Gu(s,i,r);else if(i!=null){const o=Xs(i);t[s]=()=>o}}},Ba=(e,t)=>{const n=Xs(t);e.slots.default=()=>n},ju=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=q(t),cr(t,"_",n)):Ha(t,e.slots={})}else e.slots={},t&&Ba(e,t);cr(e.slots,Pr,1)},Vu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(de(s,t),!n&&a===1&&delete s._):(i=!t.$stable,Ha(t,s)),o=t}else t&&(Ba(e,t),o={default:1});if(i)for(const a in s)!Da(a)&&!(a in o)&&delete s[a]};function fs(e,t,n,r,s=!1){if(x(e)){e.forEach((h,g)=>fs(h,t&&(x(t)?t[g]:t),n,r,s));return}if(Tn(r)&&!s)return;const i=r.shapeFlag&4?Lr(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ue?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(he(u)?(c[u]=null,X(f,u)&&(f[u]=null)):ve(u)&&(u.value=null)),G(l))bt(l,a,12,[o,c]);else{const h=he(l),g=ve(l);if(h||g){const I=()=>{if(e.f){const b=h?X(f,l)?f[l]:c[l]:l.value;s?x(b)&&Ls(b,i):x(b)?b.includes(i)||b.push(i):h?(c[l]=[i],X(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=o,X(f,l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(I.id=-1,we(I,n)):I()}}}const we=gu;function Ku(e){return zu(e)}function zu(e,t){const n=es();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=Ge,insertStaticContent:I}=e,b=(p,d,m,E=null,_=null,y=null,R=!1,S=null,O=!!d.dynamicChildren)=>{if(p===d)return;p&&!Lt(p,d)&&(E=v(p),Oe(p,_,y,!0),p=null),d.patchFlag===-2&&(O=!1,d.dynamicChildren=null);const{type:T,ref:F,shapeFlag:M}=d;switch(T){case Nr:C(p,d,m,E);break;case He:A(p,d,m,E);break;case Sn:p==null&&N(d,m,E,R);break;case Pe:D(p,d,m,E,_,y,R,S,O);break;default:M&1?Z(p,d,m,E,_,y,R,S,O):M&6?J(p,d,m,E,_,y,R,S,O):(M&64||M&128)&&T.process(p,d,m,E,_,y,R,S,O,w)}F!=null&&_&&fs(F,p&&p.ref,y,d||p,!d)},C=(p,d,m,E)=>{if(p==null)r(d.el=a(d.children),m,E);else{const _=d.el=p.el;d.children!==p.children&&u(_,d.children)}},A=(p,d,m,E)=>{p==null?r(d.el=l(d.children||""),m,E):d.el=p.el},N=(p,d,m,E)=>{[p.el,p.anchor]=I(p.children,d,m,E,p.el,p.anchor)},H=({el:p,anchor:d},m,E)=>{let _;for(;p&&p!==d;)_=h(p),r(p,m,E),p=_;r(d,m,E)},L=({el:p,anchor:d})=>{let m;for(;p&&p!==d;)m=h(p),s(p),p=m;s(d)},Z=(p,d,m,E,_,y,R,S,O)=>{R=R||d.type==="svg",p==null?ae(d,m,E,_,y,R,S,O):le(p,d,_,y,R,S,O)},ae=(p,d,m,E,_,y,R,S)=>{let O,T;const{type:F,props:M,shapeFlag:k,transition:$,dirs:K}=p;if(O=p.el=o(p.type,y,M&&M.is,M),k&8?c(O,p.children):k&16&&j(p.children,O,null,E,_,y&&F!=="foreignObject",R,S),K&&Ot(p,null,E,"created"),me(O,p,p.scopeId,R,E),M){for(const ne in M)ne!=="value"&&!nr(ne)&&i(O,ne,null,M[ne],y,p.children,E,_,ye);"value"in M&&i(O,"value",null,M.value),(T=M.onVnodeBeforeMount)&&Xe(T,E,p)}K&&Ot(p,null,E,"beforeMount");const oe=(!_||_&&!_.pendingBranch)&&$&&!$.persisted;oe&&$.beforeEnter(O),r(O,d,m),((T=M&&M.onVnodeMounted)||oe||K)&&we(()=>{T&&Xe(T,E,p),oe&&$.enter(O),K&&Ot(p,null,E,"mounted")},_)},me=(p,d,m,E,_)=>{if(m&&g(p,m),E)for(let y=0;y{for(let T=O;T{const S=d.el=p.el;let{patchFlag:O,dynamicChildren:T,dirs:F}=d;O|=p.patchFlag&16;const M=p.props||ue,k=d.props||ue;let $;m&&wt(m,!1),($=k.onVnodeBeforeUpdate)&&Xe($,m,d,p),F&&Ot(d,p,m,"beforeUpdate"),m&&wt(m,!0);const K=_&&d.type!=="foreignObject";if(T?te(p.dynamicChildren,T,S,m,E,K,y):R||Y(p,d,S,null,m,E,K,y,!1),O>0){if(O&16)ge(S,d,M,k,m,E,_);else if(O&2&&M.class!==k.class&&i(S,"class",null,k.class,_),O&4&&i(S,"style",M.style,k.style,_),O&8){const oe=d.dynamicProps;for(let ne=0;ne{$&&Xe($,m,d,p),F&&Ot(d,p,m,"updated")},E)},te=(p,d,m,E,_,y,R)=>{for(let S=0;S{if(m!==E){if(m!==ue)for(const S in m)!nr(S)&&!(S in E)&&i(p,S,m[S],null,R,d.children,_,y,ye);for(const S in E){if(nr(S))continue;const O=E[S],T=m[S];O!==T&&S!=="value"&&i(p,S,T,O,R,d.children,_,y,ye)}"value"in E&&i(p,"value",m.value,E.value)}},D=(p,d,m,E,_,y,R,S,O)=>{const T=d.el=p?p.el:a(""),F=d.anchor=p?p.anchor:a("");let{patchFlag:M,dynamicChildren:k,slotScopeIds:$}=d;$&&(S=S?S.concat($):$),p==null?(r(T,m,E),r(F,m,E),j(d.children,m,F,_,y,R,S,O)):M>0&&M&64&&k&&p.dynamicChildren?(te(p.dynamicChildren,k,m,_,y,R,S),(d.key!=null||_&&d===_.subTree)&&xa(p,d,!0)):Y(p,d,m,F,_,y,R,S,O)},J=(p,d,m,E,_,y,R,S,O)=>{d.slotScopeIds=S,p==null?d.shapeFlag&512?_.ctx.activate(d,m,E,R,O):Te(d,m,E,_,y,R,O):rt(p,d,O)},Te=(p,d,m,E,_,y,R)=>{const S=p.component=nf(p,E,_);if(Rr(p)&&(S.ctx.renderer=w),rf(S),S.asyncDep){if(_&&_.registerDep(S,fe),!p.el){const O=S.subTree=Ae(He);A(null,O,d,m)}return}fe(S,p,d,m,_,y,R)},rt=(p,d,m)=>{const E=d.component=p.component;if(pu(p,d,m))if(E.asyncDep&&!E.asyncResolved){re(E,d,m);return}else E.next=d,ou(E.update),E.update();else d.el=p.el,E.vnode=d},fe=(p,d,m,E,_,y,R)=>{const S=()=>{if(p.isMounted){let{next:F,bu:M,u:k,parent:$,vnode:K}=p,oe=F,ne;wt(p,!1),F?(F.el=K.el,re(p,F,R)):F=K,M&&sr(M),(ne=F.props&&F.props.onVnodeBeforeUpdate)&&Xe(ne,$,F,K),wt(p,!0);const pe=Ur(p),xe=p.subTree;p.subTree=pe,b(xe,pe,f(xe.el),v(xe),p,_,y),F.el=pe.el,oe===null&&du(p,pe.el),k&&we(k,_),(ne=F.props&&F.props.onVnodeUpdated)&&we(()=>Xe(ne,$,F,K),_)}else{let F;const{el:M,props:k}=d,{bm:$,m:K,parent:oe}=p,ne=Tn(d);if(wt(p,!1),$&&sr($),!ne&&(F=k&&k.onVnodeBeforeMount)&&Xe(F,oe,d),wt(p,!0),M&&Q){const pe=()=>{p.subTree=Ur(p),Q(M,p.subTree,p,_,null)};ne?d.type.__asyncLoader().then(()=>!p.isUnmounted&&pe()):pe()}else{const pe=p.subTree=Ur(p);b(null,pe,m,E,p,_,y),d.el=pe.el}if(K&&we(K,_),!ne&&(F=k&&k.onVnodeMounted)){const pe=d;we(()=>Xe(F,oe,pe),_)}(d.shapeFlag&256||oe&&Tn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&we(p.a,_),p.isMounted=!0,d=m=E=null}},O=p.effect=new xs(S,()=>Vs(T),p.scope),T=p.update=()=>O.run();T.id=p.uid,wt(p,!0),T()},re=(p,d,m)=>{d.component=p;const E=p.vnode.props;p.vnode=d,p.next=null,$u(p,d.props,E,m),Vu(p,d.children,m),fn(),Ii(),hn()},Y=(p,d,m,E,_,y,R,S,O=!1)=>{const T=p&&p.children,F=p?p.shapeFlag:0,M=d.children,{patchFlag:k,shapeFlag:$}=d;if(k>0){if(k&128){ht(T,M,m,E,_,y,R,S,O);return}else if(k&256){st(T,M,m,E,_,y,R,S,O);return}}$&8?(F&16&&ye(T,_,y),M!==T&&c(m,M)):F&16?$&16?ht(T,M,m,E,_,y,R,S,O):ye(T,_,y,!0):(F&8&&c(m,""),$&16&&j(M,m,E,_,y,R,S,O))},st=(p,d,m,E,_,y,R,S,O)=>{p=p||qt,d=d||qt;const T=p.length,F=d.length,M=Math.min(T,F);let k;for(k=0;kF?ye(p,_,y,!0,!1,M):j(d,m,E,_,y,R,S,O,M)},ht=(p,d,m,E,_,y,R,S,O)=>{let T=0;const F=d.length;let M=p.length-1,k=F-1;for(;T<=M&&T<=k;){const $=p[T],K=d[T]=O?Et(d[T]):Je(d[T]);if(Lt($,K))b($,K,m,null,_,y,R,S,O);else break;T++}for(;T<=M&&T<=k;){const $=p[M],K=d[k]=O?Et(d[k]):Je(d[k]);if(Lt($,K))b($,K,m,null,_,y,R,S,O);else break;M--,k--}if(T>M){if(T<=k){const $=k+1,K=$k)for(;T<=M;)Oe(p[T],_,y,!0),T++;else{const $=T,K=T,oe=new Map;for(T=K;T<=k;T++){const Ne=d[T]=O?Et(d[T]):Je(d[T]);Ne.key!=null&&oe.set(Ne.key,T)}let ne,pe=0;const xe=k-K+1;let Vt=!1,ui=0;const mn=new Array(xe);for(T=0;T=xe){Oe(Ne,_,y,!0);continue}let We;if(Ne.key!=null)We=oe.get(Ne.key);else for(ne=K;ne<=k;ne++)if(mn[ne-K]===0&&Lt(Ne,d[ne])){We=ne;break}We===void 0?Oe(Ne,_,y,!0):(mn[We-K]=T+1,We>=ui?ui=We:Vt=!0,b(Ne,d[We],m,null,_,y,R,S,O),pe++)}const fi=Vt?Zu(mn):qt;for(ne=fi.length-1,T=xe-1;T>=0;T--){const Ne=K+T,We=d[Ne],hi=Ne+1{const{el:y,type:R,transition:S,children:O,shapeFlag:T}=p;if(T&6){Ze(p.component.subTree,d,m,E);return}if(T&128){p.suspense.move(d,m,E);return}if(T&64){R.move(p,d,m,w);return}if(R===Pe){r(y,d,m);for(let M=0;MS.enter(y),_);else{const{leave:M,delayLeave:k,afterLeave:$}=S,K=()=>r(y,d,m),oe=()=>{M(y,()=>{K(),$&&$()})};k?k(y,K,oe):oe()}else r(y,d,m)},Oe=(p,d,m,E=!1,_=!1)=>{const{type:y,props:R,ref:S,children:O,dynamicChildren:T,shapeFlag:F,patchFlag:M,dirs:k}=p;if(S!=null&&fs(S,null,m,p,!0),F&256){d.ctx.deactivate(p);return}const $=F&1&&k,K=!Tn(p);let oe;if(K&&(oe=R&&R.onVnodeBeforeUnmount)&&Xe(oe,d,p),F&6)Gn(p.component,m,E);else{if(F&128){p.suspense.unmount(m,E);return}$&&Ot(p,null,d,"beforeUnmount"),F&64?p.type.remove(p,d,m,_,w,E):T&&(y!==Pe||M>0&&M&64)?ye(T,d,m,!1,!0):(y===Pe&&M&384||!_&&F&16)&&ye(O,d,m),E&&Gt(p)}(K&&(oe=R&&R.onVnodeUnmounted)||$)&&we(()=>{oe&&Xe(oe,d,p),$&&Ot(p,null,d,"unmounted")},m)},Gt=p=>{const{type:d,el:m,anchor:E,transition:_}=p;if(d===Pe){jt(m,E);return}if(d===Sn){L(p);return}const y=()=>{s(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(p.shapeFlag&1&&_&&!_.persisted){const{leave:R,delayLeave:S}=_,O=()=>R(m,y);S?S(p.el,y,O):O()}else y()},jt=(p,d)=>{let m;for(;p!==d;)m=h(p),s(p),p=m;s(d)},Gn=(p,d,m)=>{const{bum:E,scope:_,update:y,subTree:R,um:S}=p;E&&sr(E),_.stop(),y&&(y.active=!1,Oe(R,p,d,m)),S&&we(S,d),we(()=>{p.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},ye=(p,d,m,E=!1,_=!1,y=0)=>{for(let R=y;Rp.shapeFlag&6?v(p.component.subTree):p.shapeFlag&128?p.suspense.next():h(p.anchor||p.el),P=(p,d,m)=>{p==null?d._vnode&&Oe(d._vnode,null,null,!0):b(d._vnode||null,p,d,null,null,null,m),Ii(),ga(),d._vnode=p},w={p:b,um:Oe,m:Ze,r:Gt,mt:Te,mc:j,pc:Y,pbc:te,n:v,o:e};let B,Q;return t&&([B,Q]=t(w)),{render:P,hydrate:B,createApp:Fu(P,B)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xa(e,t,n=!1){const r=e.children,s=t.children;if(x(r)&&x(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Wu=e=>e.__isTeleport,Pe=Symbol.for("v-fgt"),Nr=Symbol.for("v-txt"),He=Symbol.for("v-cmt"),Sn=Symbol.for("v-stc"),An=[];let $e=null;function Ua(e=!1){An.push($e=e?null:[])}function Xu(){An.pop(),$e=An[An.length-1]||null}let Mn=1;function Hi(e){Mn+=e}function Fa(e){return e.dynamicChildren=Mn>0?$e||qt:null,Xu(),Mn>0&&$e&&$e.push(e),e}function RE(e,t,n,r,s,i){return Fa(Ga(e,t,n,r,s,i,!0))}function ka(e,t,n,r,s){return Fa(Ae(e,t,n,r,s,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Pr="__vInternal",$a=({key:e})=>e??null,or=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||ve(e)||G(e)?{i:_e,r:e,k:t,f:!!n}:e:null);function Ga(e,t=null,n=null,r=0,s=null,i=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$a(t),ref:t&&or(t),scopeId:Or,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_e};return a?(qs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=he(n)?8:16),Mn>0&&!o&&$e&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&$e.push(l),l}const Ae=qu;function qu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Oa)&&(e=He),gr(e)){const a=St(e,t,!0);return n&&qs(a,n),Mn>0&&!i&&$e&&(a.shapeFlag&6?$e[$e.indexOf(e)]=a:$e.push(a)),a.patchFlag|=-2,a}if(lf(e)&&(e=e.__vccOpts),t){t=Yu(t);let{class:a,style:l}=t;a&&!he(a)&&(t.class=Hs(a)),ie(l)&&(aa(l)&&!x(l)&&(l=de({},l)),t.style=Ds(l))}const o=he(e)?1:mu(e)?128:Wu(e)?64:ie(e)?4:G(e)?2:0;return Ga(e,t,n,r,s,o,i,!0)}function Yu(e){return e?aa(e)||Pr in e?de({},e):e:null}function St(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?Ju(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&$a(a),ref:t&&t.ref?n&&s?x(s)?s.concat(or(t)):[s,or(t)]:or(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qu(e=" ",t=0){return Ae(Nr,null,e,t)}function CE(e,t){const n=Ae(Sn,null,e);return n.staticCount=t,n}function NE(e="",t=!1){return t?(Ua(),ka(He,null,e)):Ae(He,null,e)}function Je(e){return e==null||typeof e=="boolean"?Ae(He):x(e)?Ae(Pe,null,e.slice()):typeof e=="object"?Et(e):Ae(Nr,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function qs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),qs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Pr in t)?t._ctx=_e:s===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),r&64?(n=16,t=[Qu(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ju(...e){const t={};for(let n=0;nEe||_e;let Qs,Kt,Bi="__VUE_INSTANCE_SETTERS__";(Kt=es()[Bi])||(Kt=es()[Bi]=[]),Kt.push(e=>Ee=e),Qs=e=>{Kt.length>1?Kt.forEach(t=>t(e)):Kt[0](e)};const sn=e=>{Qs(e),e.scope.on()},Bt=()=>{Ee&&Ee.scope.off(),Qs(null)};function ja(e){return e.vnode.shapeFlag&4}let Dn=!1;function rf(e,t=!1){Dn=t;const{props:n,children:r}=e.vnode,s=ja(e);ku(e,n,s,t),ju(e,r);const i=s?sf(e,t):void 0;return Dn=!1,i}function sf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=la(new Proxy(e.ctx,Lu));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Ka(e):null;sn(e),fn();const i=bt(r,e,0,[e.props,s]);if(hn(),Bt(),Vo(i)){if(i.then(Bt,Bt),t)return i.then(o=>{xi(e,o,t)}).catch(o=>{Sr(o,e,0)});e.asyncDep=i}else xi(e,i,t)}else Va(e,t)}function xi(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=ha(t)),Va(e,n)}let Ui;function Va(e,t,n){const r=e.type;if(!e.render){if(!t&&Ui&&!r.render){const s=r.template||Ws(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=de(de({isCustomElement:i,delimiters:a},o),l);r.render=Ui(s,u)}}e.render=r.render||Ge}sn(e),fn(),Mu(e),hn(),Bt()}function of(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function Ka(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return of(e)},slots:e.slots,emit:e.emit,expose:t}}function Lr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ha(la(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in In)return In[n](e)},has(t,n){return n in t||n in In}}))}function af(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function lf(e){return G(e)&&"__vccOpts"in e}const Le=(e,t)=>ru(e,t,Dn);function Js(e,t,n){const r=arguments.length;return r===2?ie(t)&&!x(t)?gr(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),Ae(e,t,n))}const cf=Symbol.for("v-scx"),uf=()=>je(cf),ff="3.3.4",hf="http://www.w3.org/2000/svg",Mt=typeof document<"u"?document:null,Fi=Mt&&Mt.createElement("template"),pf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?Mt.createElementNS(hf,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Fi.innerHTML=r?`${e}`:e;const a=Fi.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function df(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function mf(e,t,n){const r=e.style,s=he(n);if(n&&!s){if(t&&!he(t))for(const i in t)n[i]==null&&hs(r,i,"");for(const i in n)hs(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ki=/\s*!important$/;function hs(e,t,n){if(x(n))n.forEach(r=>hs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=gf(e,t);ki.test(n)?e.setProperty(Ft(r),n.replace(ki,""),"important"):e[r]=n}}const $i=["Webkit","Moz","ms"],$r={};function gf(e,t){const n=$r[t];if(n)return n;let r=tt(t);if(r!=="filter"&&r in e)return $r[t]=r;r=Tr(r);for(let s=0;s<$i.length;s++){const i=$i[s]+r;if(i in e)return $r[t]=i}return t}const Gi="http://www.w3.org/1999/xlink";function Ef(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Gi,t.slice(6,t.length)):e.setAttributeNS(Gi,t,n);else{const i=gc(t);n==null||i&&!Zo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function vf(e,t,n,r,s,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,s,i),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const u=a==="OPTION"?e.getAttribute("value"):e.value,c=n??"";u!==c&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Zo(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function _t(e,t,n,r){e.addEventListener(t,n,r)}function _f(e,t,n,r){e.removeEventListener(t,n,r)}function yf(e,t,n,r,s=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=bf(t);if(r){const u=i[t]=Sf(r,s);_t(e,a,u,l)}else o&&(_f(e,a,o,l),i[t]=void 0)}}const ji=/(?:Once|Passive|Capture)$/;function bf(e){let t;if(ji.test(e)){t={};let r;for(;r=e.match(ji);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let Gr=0;const Tf=Promise.resolve(),If=()=>Gr||(Tf.then(()=>Gr=0),Gr=Date.now());function Sf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;De(Af(r,n.value),t,5,[r])};return n.value=e,n.attached=If(),n}function Af(e,t){if(x(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Vi=/^on[a-z]/,Of=(e,t,n,r,s=!1,i,o,a,l)=>{t==="class"?df(e,r,s):t==="style"?mf(e,n,r):_r(t)?Ps(t)||yf(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wf(e,t,r,s))?vf(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ef(e,t,r,s))};function wf(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Vi.test(t)&&G(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vi.test(t)&&he(n)?!1:t in e}function PE(e){const t=Ys();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>ds(i,s))},r=()=>{const s=e(t.proxy);ps(t.subTree,s),n(s)};Eu(r),Ks(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),zs(()=>s.disconnect())})}function ps(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ps(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ds(e.el,t);else if(e.type===Pe)e.children.forEach(n=>ps(n,t));else if(e.type===Sn){let{el:n,anchor:r}=e;for(;n&&(ds(n,t),n!==r);)n=n.nextSibling}}function ds(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const dt="transition",gn="animation",za=(e,{slots:t})=>Js(bu,Rf(e),t);za.displayName="Transition";const Za={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};za.props=de({},ya,Za);const Rt=(e,t=[])=>{x(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ki=e=>e?x(e)?e.some(t=>t.length>1):e.length>1:!1;function Rf(e){const t={};for(const D in e)D in Za||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,I=Cf(s),b=I&&I[0],C=I&&I[1],{onBeforeEnter:A,onEnter:N,onEnterCancelled:H,onLeave:L,onLeaveCancelled:Z,onBeforeAppear:ae=A,onAppear:me=N,onAppearCancelled:j=H}=t,le=(D,J,Te)=>{Ct(D,J?c:a),Ct(D,J?u:o),Te&&Te()},te=(D,J)=>{D._isLeaving=!1,Ct(D,f),Ct(D,g),Ct(D,h),J&&J()},ge=D=>(J,Te)=>{const rt=D?me:N,fe=()=>le(J,D,Te);Rt(rt,[J,fe]),zi(()=>{Ct(J,D?l:i),mt(J,D?c:a),Ki(rt)||Zi(J,r,b,fe)})};return de(t,{onBeforeEnter(D){Rt(A,[D]),mt(D,i),mt(D,o)},onBeforeAppear(D){Rt(ae,[D]),mt(D,l),mt(D,u)},onEnter:ge(!1),onAppear:ge(!0),onLeave(D,J){D._isLeaving=!0;const Te=()=>te(D,J);mt(D,f),Lf(),mt(D,h),zi(()=>{D._isLeaving&&(Ct(D,f),mt(D,g),Ki(L)||Zi(D,r,C,Te))}),Rt(L,[D,Te])},onEnterCancelled(D){le(D,!1),Rt(H,[D])},onAppearCancelled(D){le(D,!0),Rt(j,[D])},onLeaveCancelled(D){te(D),Rt(Z,[D])}})}function Cf(e){if(e==null)return null;if(ie(e))return[jr(e.enter),jr(e.leave)];{const t=jr(e);return[t,t]}}function jr(e){return uc(e)}function mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ct(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nf=0;function Zi(e,t,n,r){const s=e._endId=++Nf,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Pf(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[I]||"").split(", "),s=r(`${dt}Delay`),i=r(`${dt}Duration`),o=Wi(s,i),a=r(`${gn}Delay`),l=r(`${gn}Duration`),u=Wi(a,l);let c=null,f=0,h=0;t===dt?o>0&&(c=dt,f=o,h=i.length):t===gn?u>0&&(c=gn,f=u,h=l.length):(f=Math.max(o,u),c=f>0?o>u?dt:gn:null,h=c?c===dt?i.length:l.length:0);const g=c===dt&&/\b(transform|all)(,|$)/.test(r(`${dt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function Wi(e,t){for(;e.lengthXi(n)+Xi(e[r])))}function Xi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lf(){return document.body.offsetHeight}const on=e=>{const t=e.props["onUpdate:modelValue"]||!1;return x(t)?n=>sr(t,n):t};function Mf(e){e.target.composing=!0}function qi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const LE={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=on(s);const i=r||s.props&&s.props.type==="number";_t(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=ur(a)),e._assign(a)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Mf),_t(e,"compositionend",qi),_t(e,"change",qi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=on(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ur(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},ME={created(e,{value:t},n){e.checked=nn(t,n.props.value),e._assign=on(n),_t(e,"change",()=>{e._assign(Hn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=on(r),t!==n&&(e.checked=nn(t,r.props.value))}},DE={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=yr(t);_t(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ur(Hn(o)):Hn(o));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=on(r)},mounted(e,{value:t}){Yi(e,t)},beforeUpdate(e,t,n){e._assign=on(n)},updated(e,{value:t}){Yi(e,t)}};function Yi(e,t){const n=e.multiple;if(!(n&&!x(t)&&!yr(t))){for(let r=0,s=e.options.length;r-1:i.selected=t.has(o);else if(nn(Hn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hn(e){return"_value"in e?e._value:e.value}const Df=["ctrl","shift","alt","meta"],Hf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Df.some(n=>e[`${n}Key`]&&!t.includes(n))},HE=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=Ft(n.key);if(t.some(s=>s===r||Bf[s]===r))return e(n)},xE={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),En(e,!0),r.enter(e)):r.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e._vod:"none"}const xf=de({patchProp:Of},pf);let Qi;function Uf(){return Qi||(Qi=Ku(xf))}const Ff=(...e)=>{const t=Uf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=kf(r);if(!s)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function kf(e){return he(e)?document.querySelector(e):e}function $f(){return Wa().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wa(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Gf=typeof Proxy=="function",jf="devtools-plugin:setup",Vf="plugin:settings:set";let zt,ms;function Kf(){var e;return zt!==void 0||(typeof window<"u"&&window.performance?(zt=!0,ms=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(zt=!0,ms=global.perf_hooks.performance):zt=!1),zt}function zf(){return Kf()?ms.now():Date.now()}class Zf{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return zf()}},n&&n.on(Vf,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Wf(e,t){const n=e,r=Wa(),s=$f(),i=Gf&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(jf,e,t);else{const o=i?new Zf(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*! +var ec=Object.defineProperty;var tc=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ue=(e,t,n)=>(tc(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const nc="modulepreload",rc=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},pi={},V=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=rc(i,r),i in pi)return;pi[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":nc,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function Ns(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const ue={},qt=[],Ge=()=>{},sc=()=>!1,ic=/^on[^a-z]/,_r=e=>ic.test(e),Ps=e=>e.startsWith("onUpdate:"),de=Object.assign,Ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oc=Object.prototype.hasOwnProperty,X=(e,t)=>oc.call(e,t),x=Array.isArray,Yt=e=>Fn(e)==="[object Map]",yr=e=>Fn(e)==="[object Set]",di=e=>Fn(e)==="[object Date]",G=e=>typeof e=="function",he=e=>typeof e=="string",Rn=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Vo=e=>ie(e)&&G(e.then)&&G(e.catch),Ko=Object.prototype.toString,Fn=e=>Ko.call(e),ac=e=>Fn(e).slice(8,-1),zo=e=>Fn(e)==="[object Object]",Ms=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nr=Ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lc=/-(\w)/g,tt=br(e=>e.replace(lc,(t,n)=>n?n.toUpperCase():"")),cc=/\B([A-Z])/g,Ft=br(e=>e.replace(cc,"-$1").toLowerCase()),Tr=br(e=>e.charAt(0).toUpperCase()+e.slice(1)),rr=br(e=>e?`on${Tr(e)}`:""),Cn=(e,t)=>!Object.is(e,t),sr=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ur=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uc=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let mi;const es=()=>mi||(mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ds(e){if(x(e)){const t={};for(let n=0;n{if(n){const r=n.split(hc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Hs(e){let t="";if(he(e))t=e;else if(x(e))for(let n=0;nnn(n,t))}const mE=e=>he(e)?e:e==null?"":x(e)||ie(e)&&(e.toString===Ko||!G(e.toString))?JSON.stringify(e,Wo,2):String(e),Wo=(e,t)=>t&&t.__v_isRef?Wo(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:yr(t)?{[`Set(${t.size})`]:[...t.values()]}:ie(t)&&!x(t)&&!zo(t)?String(t):t;let Fe;class Xo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},qo=e=>(e.w&It)>0,Yo=e=>(e.n&It)>0,Tc=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":x(e)?Ms(n)&&a.push(o.get("length")):(a.push(o.get(Ht)),Yt(e)&&a.push(o.get(ns)));break;case"delete":x(e)||(a.push(o.get(Ht)),Yt(e)&&a.push(o.get(ns)));break;case"set":Yt(e)&&a.push(o.get(Ht));break}if(a.length===1)a[0]&&rs(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);rs(Bs(l))}}function rs(e,t){const n=x(e)?e:[...e];for(const r of n)r.computed&&Ei(r);for(const r of n)r.computed||Ei(r)}function Ei(e,t){(e!==ke||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Sc(e,t){var n;return(n=fr.get(e))==null?void 0:n.get(t)}const Ac=Ns("__proto__,__v_isRef,__isVue"),ea=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn)),Oc=Us(),wc=Us(!1,!0),Rc=Us(!0),vi=Cc();function Cc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=q(this);for(let i=0,o=this.length;i{e[t]=function(...n){fn();const r=q(this)[t].apply(this,n);return hn(),r}}),e}function Nc(e){const t=q(this);return Re(t,"has",e),t.hasOwnProperty(e)}function Us(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?zc:ia:t?sa:ra).get(r))return r;const o=x(r);if(!e){if(o&&X(vi,s))return Reflect.get(vi,s,i);if(s==="hasOwnProperty")return Nc}const a=Reflect.get(r,s,i);return(Rn(s)?ea.has(s):Ac(s))||(e||Re(r,"get",s),t)?a:ve(a)?o&&Ms(s)?a:a.value:ie(a)?e?oa(a):pn(a):a}}const Pc=ta(),Lc=ta(!0);function ta(e=!1){return function(n,r,s,i){let o=n[r];if(rn(o)&&ve(o)&&!ve(s))return!1;if(!e&&(!hr(s)&&!rn(s)&&(o=q(o),s=q(s)),!x(n)&&ve(o)&&!ve(s)))return o.value=s,!0;const a=x(n)&&Ms(r)?Number(r)e,Ir=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,r=!1){e=e.__v_raw;const s=q(e),i=q(t);n||(t!==i&&Re(s,"get",t),Re(s,"get",i));const{has:o}=Ir(s),a=r?Fs:n?Gs:Nn;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,r=q(n),s=q(e);return t||(e!==s&&Re(r,"has",e),Re(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Kn(e,t=!1){return e=e.__v_raw,!t&&Re(q(e),"iterate",Ht),Reflect.get(e,"size",e)}function _i(e){e=q(e);const t=q(this);return Ir(t).has.call(t,e)||(t.add(e),ct(t,"add",e,e)),this}function yi(e,t){t=q(t);const n=q(this),{has:r,get:s}=Ir(n);let i=r.call(n,e);i||(e=q(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Cn(t,o)&&ct(n,"set",e,t):ct(n,"add",e,t),this}function bi(e){const t=q(this),{has:n,get:r}=Ir(t);let s=n.call(t,e);s||(e=q(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&ct(t,"delete",e,void 0),i}function Ti(){const e=q(this),t=e.size!==0,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}function zn(e,t){return function(r,s){const i=this,o=i.__v_raw,a=q(o),l=t?Fs:e?Gs:Nn;return!e&&Re(a,"iterate",Ht),o.forEach((u,c)=>r.call(s,l(u),l(c),i))}}function Zn(e,t,n){return function(...r){const s=this.__v_raw,i=q(s),o=Yt(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Fs:t?Gs:Nn;return!t&&Re(i,"iterate",l?ns:Ht),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return e==="delete"?!1:this}}function Uc(){const e={get(i){return jn(this,i)},get size(){return Kn(this)},has:Vn,add:_i,set:yi,delete:bi,clear:Ti,forEach:zn(!1,!1)},t={get(i){return jn(this,i,!1,!0)},get size(){return Kn(this)},has:Vn,add:_i,set:yi,delete:bi,clear:Ti,forEach:zn(!1,!0)},n={get(i){return jn(this,i,!0)},get size(){return Kn(this,!0)},has(i){return Vn.call(this,i,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:zn(!0,!1)},r={get(i){return jn(this,i,!0,!0)},get size(){return Kn(this,!0)},has(i){return Vn.call(this,i,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zn(i,!1,!1),n[i]=Zn(i,!0,!1),t[i]=Zn(i,!1,!0),r[i]=Zn(i,!0,!0)}),[e,n,t,r]}const[Fc,kc,$c,Gc]=Uc();function ks(e,t){const n=t?e?Gc:$c:e?kc:Fc;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(X(n,s)&&s in r?n:r,s,i)}const jc={get:ks(!1,!1)},Vc={get:ks(!1,!0)},Kc={get:ks(!0,!1)},ra=new WeakMap,sa=new WeakMap,ia=new WeakMap,zc=new WeakMap;function Zc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wc(e){return e.__v_skip||!Object.isExtensible(e)?0:Zc(ac(e))}function pn(e){return rn(e)?e:$s(e,!1,na,jc,ra)}function Xc(e){return $s(e,!1,xc,Vc,sa)}function oa(e){return $s(e,!0,Bc,Kc,ia)}function $s(e,t,n,r,s){if(!ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Wc(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Qt(e){return rn(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function hr(e){return!!(e&&e.__v_isShallow)}function aa(e){return Qt(e)||rn(e)}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function la(e){return cr(e,"__v_skip",!0),e}const Nn=e=>ie(e)?pn(e):e,Gs=e=>ie(e)?oa(e):e;function ca(e){yt&&ke&&(e=q(e),Jo(e.dep||(e.dep=Bs())))}function ua(e,t){e=q(e);const n=e.dep;n&&rs(n)}function ve(e){return!!(e&&e.__v_isRef===!0)}function qc(e){return fa(e,!1)}function Yc(e){return fa(e,!0)}function fa(e,t){return ve(e)?e:new Qc(e,t)}class Qc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Nn(t)}get value(){return ca(this),this._value}set value(t){const n=this.__v_isShallow||hr(t)||rn(t);t=n?t:q(t),Cn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Nn(t),ua(this))}}function Jt(e){return ve(e)?e.value:e}const Jc={get:(e,t,n)=>Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ha(e){return Qt(e)?e:new Proxy(e,Jc)}function gE(e){const t=x(e)?new Array(e.length):{};for(const n in e)t[n]=tu(e,n);return t}class eu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sc(q(this._object),this._key)}}function tu(e,t,n){const r=e[t];return ve(r)?r:new eu(e,t,n)}class nu{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xs(t,()=>{this._dirty||(this._dirty=!0,ua(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=q(this);return ca(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ru(e,t,n=!1){let r,s;const i=G(e);return i?(r=e,s=Ge):(r=e.get,s=e.set),new nu(r,s,i||!s,n)}function bt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Sr(i,t,n)}return s}function De(e,t,n,r){if(G(e)){const i=bt(e,t,n,r);return i&&Vo(i)&&i.catch(o=>{Sr(o,t,n)}),i}const s=[];for(let i=0;i>>1;Ln(be[r])et&&be.splice(t,1)}function au(e){x(e)?en.push(...e):(!ot||!ot.includes(e,e.allowRecurse?Pt+1:Pt))&&en.push(e),ma()}function Ii(e,t=Pn?et+1:0){for(;tLn(n)-Ln(r)),Pt=0;Pte.id==null?1/0:e.id,lu=(e,t)=>{const n=Ln(e)-Ln(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ea(e){ss=!1,Pn=!0,be.sort(lu);const t=Ge;try{for(et=0;ethe(g)?g.trim():g)),f&&(s=n.map(ur))}let a,l=r[a=rr(t)]||r[a=rr(tt(t))];!l&&i&&(l=r[a=rr(Ft(t))]),l&&De(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,De(u,e,6,s)}}function va(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!G(e)){const l=u=>{const c=va(u,t,!0);c&&(a=!0,de(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ie(e)&&r.set(e,null),null):(x(i)?i.forEach(l=>o[l]=null):de(o,i),ie(e)&&r.set(e,o),o)}function Ar(e,t){return!e||!_r(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Ft(t))||X(e,t))}let _e=null,Or=null;function pr(e){const t=_e;return _e=e,Or=e&&e.type.__scopeId||null,t}function EE(e){Or=e}function vE(){Or=null}function uu(e,t=_e,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Hi(-1);const i=pr(t);let o;try{o=e(...s)}finally{pr(i),r._d&&Hi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ur(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:h,setupState:g,ctx:I,inheritAttrs:b}=e;let C,A;const N=pr(e);try{if(n.shapeFlag&4){const L=s||r;C=Je(c.call(L,L,f,i,g,h,I)),A=l}else{const L=t;C=Je(L.length>1?L(i,{attrs:l,slots:a,emit:u}):L(i,null)),A=t.props?l:fu(l)}}catch(L){An.length=0,Sr(L,e,1),C=Ae(He)}let H=C;if(A&&b!==!1){const L=Object.keys(A),{shapeFlag:Z}=H;L.length&&Z&7&&(o&&L.some(Ps)&&(A=hu(A,o)),H=St(H,A))}return n.dirs&&(H=St(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),C=H,pr(N),C}const fu=e=>{let t;for(const n in e)(n==="class"||n==="style"||_r(n))&&((t||(t={}))[n]=e[n]);return t},hu=(e,t)=>{const n={};for(const r in e)(!Ps(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function pu(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Si(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function gu(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):au(e)}function _E(e,t){return wr(e,null,t)}function Eu(e,t){return wr(e,null,{flush:"post"})}const Wn={};function tn(e,t,n){return wr(e,t,n)}function wr(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=ue){var a;const l=bc()===((a=Ee)==null?void 0:a.scope)?Ee:null;let u,c=!1,f=!1;if(ve(e)?(u=()=>e.value,c=hr(e)):Qt(e)?(u=()=>e,r=!0):x(e)?(f=!0,c=e.some(L=>Qt(L)||hr(L)),u=()=>e.map(L=>{if(ve(L))return L.value;if(Qt(L))return Dt(L);if(G(L))return bt(L,l,2)})):G(e)?t?u=()=>bt(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),De(e,l,3,[g])}:u=Ge,t&&r){const L=u;u=()=>Dt(L())}let h,g=L=>{h=N.onStop=()=>{bt(L,l,4)}},I;if(Dn)if(g=Ge,t?n&&De(t,l,3,[u(),f?[]:void 0,g]):u(),s==="sync"){const L=uf();I=L.__watcherHandles||(L.__watcherHandles=[])}else return Ge;let b=f?new Array(e.length).fill(Wn):Wn;const C=()=>{if(N.active)if(t){const L=N.run();(r||c||(f?L.some((Z,ae)=>Cn(Z,b[ae])):Cn(L,b)))&&(h&&h(),De(t,l,3,[L,b===Wn?void 0:f&&b[0]===Wn?[]:b,g]),b=L)}else N.run()};C.allowRecurse=!!t;let A;s==="sync"?A=C:s==="post"?A=()=>we(C,l&&l.suspense):(C.pre=!0,l&&(C.id=l.uid),A=()=>Vs(C));const N=new xs(u,A);t?n?C():b=N.run():s==="post"?we(N.run.bind(N),l&&l.suspense):N.run();const H=()=>{N.stop(),l&&l.scope&&Ls(l.scope.effects,N)};return I&&I.push(H),H}function vu(e,t,n){const r=this.proxy,s=he(e)?e.includes(".")?_a(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const o=Ee;sn(this);const a=wr(s,i.bind(r),n);return o?sn(o):Bt(),a}function _a(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Dt(n,t)});else if(zo(e))for(const n in e)Dt(e[n],t);return e}function yE(e,t){const n=_e;if(n===null)return e;const r=Lr(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Aa(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],ya={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},yu={name:"BaseTransition",props:ya,setup(e,{slots:t}){const n=Ys(),r=_u();let s;return()=>{const i=t.default&&Ta(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const b of i)if(b.type!==He){o=b;break}}const a=q(e),{mode:l}=a;if(r.isLeaving)return Fr(o);const u=Ai(o);if(!u)return Fr(o);const c=is(u,a,r,n);os(u,c);const f=n.subTree,h=f&&Ai(f);let g=!1;const{getTransitionKey:I}=u.type;if(I){const b=I();s===void 0?s=b:b!==s&&(s=b,g=!0)}if(h&&h.type!==He&&(!Lt(u,h)||g)){const b=is(h,a,r,n);if(os(h,b),l==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Fr(o);l==="in-out"&&u.type!==He&&(b.delayLeave=(C,A,N)=>{const H=ba(r,h);H[String(h.key)]=h,C._leaveCb=()=>{A(),C._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=N})}return o}}},bu=yu;function ba(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function is(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:I,onBeforeAppear:b,onAppear:C,onAfterAppear:A,onAppearCancelled:N}=t,H=String(e.key),L=ba(n,e),Z=(j,le)=>{j&&De(j,r,9,le)},ae=(j,le)=>{const te=le[1];Z(j,le),x(j)?j.every(ge=>ge.length<=1)&&te():j.length<=1&&te()},me={mode:i,persisted:o,beforeEnter(j){let le=a;if(!n.isMounted)if(s)le=b||a;else return;j._leaveCb&&j._leaveCb(!0);const te=L[H];te&&Lt(e,te)&&te.el._leaveCb&&te.el._leaveCb(),Z(le,[j])},enter(j){let le=l,te=u,ge=c;if(!n.isMounted)if(s)le=C||l,te=A||u,ge=N||c;else return;let D=!1;const J=j._enterCb=Te=>{D||(D=!0,Te?Z(ge,[j]):Z(te,[j]),me.delayedLeave&&me.delayedLeave(),j._enterCb=void 0)};le?ae(le,[j,J]):J()},leave(j,le){const te=String(e.key);if(j._enterCb&&j._enterCb(!0),n.isUnmounting)return le();Z(f,[j]);let ge=!1;const D=j._leaveCb=J=>{ge||(ge=!0,le(),J?Z(I,[j]):Z(g,[j]),j._leaveCb=void 0,L[te]===e&&delete L[te])};L[te]=e,h?ae(h,[j,D]):D()},clone(j){return is(j,t,n,r)}};return me}function Fr(e){if(Rr(e))return e=St(e),e.children=null,e}function Ai(e){return Rr(e)?e.children?e.children[0]:void 0:e}function os(e,t){e.shapeFlag&6&&e.component?os(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ta(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;ide({name:e.name},t,{setup:e}))():e}const Tn=e=>!!e.type.__asyncLoader,Rr=e=>e.type.__isKeepAlive;function Tu(e,t){Sa(e,"a",t)}function Iu(e,t){Sa(e,"da",t)}function Sa(e,t,n=Ee){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Cr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Rr(s.parent.vnode)&&Su(r,t,n,s),s=s.parent}}function Su(e,t,n,r){const s=Cr(t,e,r,!0);zs(()=>{Ls(r[t],s)},n)}function Cr(e,t,n=Ee,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fn(),sn(n);const a=De(t,n,e,o);return Bt(),hn(),a});return r?s.unshift(i):s.push(i),i}}const ft=e=>(t,n=Ee)=>(!Dn||e==="sp")&&Cr(e,(...r)=>t(...r),n),Au=ft("bm"),Ks=ft("m"),Ou=ft("bu"),wu=ft("u"),Aa=ft("bum"),zs=ft("um"),Ru=ft("sp"),Cu=ft("rtg"),Nu=ft("rtc");function Pu(e,t=Ee){Cr("ec",e,t)}const Zs="components";function bE(e,t){return wa(Zs,e,!0,t)||e}const Oa=Symbol.for("v-ndc");function TE(e){return he(e)?wa(Zs,e,!1)||e:e||Oa}function wa(e,t,n=!0,r=!1){const s=_e||Ee;if(s){const i=s.type;if(e===Zs){const a=af(i,!1);if(a&&(a===t||a===tt(t)||a===Tr(tt(t))))return i}const o=Oi(s[e]||i[e],t)||Oi(s.appContext[e],t);return!o&&r?i:o}}function Oi(e,t){return e&&(e[t]||e[tt(t)]||e[Tr(tt(t))])}function IE(e,t,n,r){let s;const i=n&&n[r];if(x(e)||he(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function AE(e,t,n={},r,s){if(_e.isCE||_e.parent&&Tn(_e.parent)&&_e.parent.isCE)return t!=="default"&&(n.name=t),Ae("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Ua();const o=i&&Ra(i(n)),a=ka(Pe,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Ra(e){return e.some(t=>gr(t)?!(t.type===He||t.type===Pe&&!Ra(t.children)):!0)?e:null}function OE(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rr(r)]=e[r];return n}const as=e=>e?ja(e)?Lr(e)||e.proxy:as(e.parent):null,In=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>as(e.parent),$root:e=>as(e.root),$emit:e=>e.emit,$options:e=>Ws(e),$forceUpdate:e=>e.f||(e.f=()=>Vs(e.update)),$nextTick:e=>e.n||(e.n=da.bind(e.proxy)),$watch:e=>vu.bind(e)}),kr=(e,t)=>e!==ue&&!e.__isScriptSetup&&X(e,t),Lu={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(kr(r,t))return o[t]=1,r[t];if(s!==ue&&X(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&X(u,t))return o[t]=3,i[t];if(n!==ue&&X(n,t))return o[t]=4,n[t];ls&&(o[t]=0)}}const c=In[t];let f,h;if(c)return t==="$attrs"&&Re(e,"get",t),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ue&&X(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,X(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return kr(s,t)?(s[t]=n,!0):r!==ue&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==ue&&X(e,o)||kr(t,o)||(a=i[0])&&X(a,o)||X(r,o)||X(In,o)||X(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wE(){return Ca().slots}function RE(){return Ca().attrs}function Ca(){const e=Ys();return e.setupContext||(e.setupContext=Ka(e))}function wi(e){return x(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ls=!0;function Mu(e){const t=Ws(e),n=e.proxy,r=e.ctx;ls=!1,t.beforeCreate&&Ri(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:I,activated:b,deactivated:C,beforeDestroy:A,beforeUnmount:N,destroyed:H,unmounted:L,render:Z,renderTracked:ae,renderTriggered:me,errorCaptured:j,serverPrefetch:le,expose:te,inheritAttrs:ge,components:D,directives:J,filters:Te}=t;if(u&&Du(u,r,null),o)for(const re in o){const Y=o[re];G(Y)&&(r[re]=Y.bind(n))}if(s){const re=s.call(n,n);ie(re)&&(e.data=pn(re))}if(ls=!0,i)for(const re in i){const Y=i[re],st=G(Y)?Y.bind(n,n):G(Y.get)?Y.get.bind(n,n):Ge,ht=!G(Y)&&G(Y.set)?Y.set.bind(n):Ge,Ze=Le({get:st,set:ht});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Oe=>Ze.value=Oe})}if(a)for(const re in a)Na(a[re],r,n,re);if(l){const re=G(l)?l.call(n):l;Reflect.ownKeys(re).forEach(Y=>{ir(Y,re[Y])})}c&&Ri(c,e,"c");function fe(re,Y){x(Y)?Y.forEach(st=>re(st.bind(n))):Y&&re(Y.bind(n))}if(fe(Au,f),fe(Ks,h),fe(Ou,g),fe(wu,I),fe(Tu,b),fe(Iu,C),fe(Pu,j),fe(Nu,ae),fe(Cu,me),fe(Aa,N),fe(zs,L),fe(Ru,le),x(te))if(te.length){const re=e.exposed||(e.exposed={});te.forEach(Y=>{Object.defineProperty(re,Y,{get:()=>n[Y],set:st=>n[Y]=st})})}else e.exposed||(e.exposed={});Z&&e.render===Ge&&(e.render=Z),ge!=null&&(e.inheritAttrs=ge),D&&(e.components=D),J&&(e.directives=J)}function Du(e,t,n=Ge){x(e)&&(e=cs(e));for(const r in e){const s=e[r];let i;ie(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),ve(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ri(e,t,n){De(x(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Na(e,t,n,r){const s=r.includes(".")?_a(n,r):()=>n[r];if(he(e)){const i=t[e];G(i)&&tn(s,i)}else if(G(e))tn(s,e.bind(n));else if(ie(e))if(x(e))e.forEach(i=>Na(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&tn(s,i,e)}}function Ws(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>dr(l,u,o,!0)),dr(l,t,o)),ie(t)&&i.set(t,l),l}function dr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&dr(e,i,n,!0),s&&s.forEach(o=>dr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Hu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Hu={data:Ci,props:Ni,emits:Ni,methods:yn,computed:yn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:yn,directives:yn,watch:xu,provide:Ci,inject:Bu};function Ci(e,t){return t?e?function(){return de(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function Bu(e,t){return yn(cs(e),cs(t))}function cs(e){if(x(e)){const t={};for(let n=0;n1)return n&&G(t)?t.call(r&&r.proxy):t}}function ku(e,t,n,r=!1){const s={},i={};cr(i,Pr,1),e.propsDefaults=Object.create(null),La(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Xc(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function $u(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=q(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,g]=Ma(f,t,!0);de(o,h),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return ie(e)&&r.set(e,qt),qt;if(x(i))for(let c=0;c-1,g[1]=b<0||I-1||X(g,"default"))&&a.push(f)}}}const u=[o,a];return ie(e)&&r.set(e,u),u}function Pi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return Li(e)===Li(t)}function Di(e,t){return x(t)?t.findIndex(n=>Mi(n,e)):G(t)&&Mi(t,e)?0:-1}const Da=e=>e[0]==="_"||e==="$stable",Xs=e=>x(e)?e.map(Je):[Je(e)],Gu=(e,t,n)=>{if(t._n)return t;const r=uu((...s)=>Xs(t(...s)),n);return r._c=!1,r},Ha=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Da(s))continue;const i=e[s];if(G(i))t[s]=Gu(s,i,r);else if(i!=null){const o=Xs(i);t[s]=()=>o}}},Ba=(e,t)=>{const n=Xs(t);e.slots.default=()=>n},ju=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=q(t),cr(t,"_",n)):Ha(t,e.slots={})}else e.slots={},t&&Ba(e,t);cr(e.slots,Pr,1)},Vu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(de(s,t),!n&&a===1&&delete s._):(i=!t.$stable,Ha(t,s)),o=t}else t&&(Ba(e,t),o={default:1});if(i)for(const a in s)!Da(a)&&!(a in o)&&delete s[a]};function fs(e,t,n,r,s=!1){if(x(e)){e.forEach((h,g)=>fs(h,t&&(x(t)?t[g]:t),n,r,s));return}if(Tn(r)&&!s)return;const i=r.shapeFlag&4?Lr(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ue?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(he(u)?(c[u]=null,X(f,u)&&(f[u]=null)):ve(u)&&(u.value=null)),G(l))bt(l,a,12,[o,c]);else{const h=he(l),g=ve(l);if(h||g){const I=()=>{if(e.f){const b=h?X(f,l)?f[l]:c[l]:l.value;s?x(b)&&Ls(b,i):x(b)?b.includes(i)||b.push(i):h?(c[l]=[i],X(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=o,X(f,l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(I.id=-1,we(I,n)):I()}}}const we=gu;function Ku(e){return zu(e)}function zu(e,t){const n=es();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=Ge,insertStaticContent:I}=e,b=(p,d,m,E=null,_=null,y=null,R=!1,S=null,O=!!d.dynamicChildren)=>{if(p===d)return;p&&!Lt(p,d)&&(E=v(p),Oe(p,_,y,!0),p=null),d.patchFlag===-2&&(O=!1,d.dynamicChildren=null);const{type:T,ref:F,shapeFlag:M}=d;switch(T){case Nr:C(p,d,m,E);break;case He:A(p,d,m,E);break;case Sn:p==null&&N(d,m,E,R);break;case Pe:D(p,d,m,E,_,y,R,S,O);break;default:M&1?Z(p,d,m,E,_,y,R,S,O):M&6?J(p,d,m,E,_,y,R,S,O):(M&64||M&128)&&T.process(p,d,m,E,_,y,R,S,O,w)}F!=null&&_&&fs(F,p&&p.ref,y,d||p,!d)},C=(p,d,m,E)=>{if(p==null)r(d.el=a(d.children),m,E);else{const _=d.el=p.el;d.children!==p.children&&u(_,d.children)}},A=(p,d,m,E)=>{p==null?r(d.el=l(d.children||""),m,E):d.el=p.el},N=(p,d,m,E)=>{[p.el,p.anchor]=I(p.children,d,m,E,p.el,p.anchor)},H=({el:p,anchor:d},m,E)=>{let _;for(;p&&p!==d;)_=h(p),r(p,m,E),p=_;r(d,m,E)},L=({el:p,anchor:d})=>{let m;for(;p&&p!==d;)m=h(p),s(p),p=m;s(d)},Z=(p,d,m,E,_,y,R,S,O)=>{R=R||d.type==="svg",p==null?ae(d,m,E,_,y,R,S,O):le(p,d,_,y,R,S,O)},ae=(p,d,m,E,_,y,R,S)=>{let O,T;const{type:F,props:M,shapeFlag:k,transition:$,dirs:K}=p;if(O=p.el=o(p.type,y,M&&M.is,M),k&8?c(O,p.children):k&16&&j(p.children,O,null,E,_,y&&F!=="foreignObject",R,S),K&&Ot(p,null,E,"created"),me(O,p,p.scopeId,R,E),M){for(const ne in M)ne!=="value"&&!nr(ne)&&i(O,ne,null,M[ne],y,p.children,E,_,ye);"value"in M&&i(O,"value",null,M.value),(T=M.onVnodeBeforeMount)&&Xe(T,E,p)}K&&Ot(p,null,E,"beforeMount");const oe=(!_||_&&!_.pendingBranch)&&$&&!$.persisted;oe&&$.beforeEnter(O),r(O,d,m),((T=M&&M.onVnodeMounted)||oe||K)&&we(()=>{T&&Xe(T,E,p),oe&&$.enter(O),K&&Ot(p,null,E,"mounted")},_)},me=(p,d,m,E,_)=>{if(m&&g(p,m),E)for(let y=0;y{for(let T=O;T{const S=d.el=p.el;let{patchFlag:O,dynamicChildren:T,dirs:F}=d;O|=p.patchFlag&16;const M=p.props||ue,k=d.props||ue;let $;m&&wt(m,!1),($=k.onVnodeBeforeUpdate)&&Xe($,m,d,p),F&&Ot(d,p,m,"beforeUpdate"),m&&wt(m,!0);const K=_&&d.type!=="foreignObject";if(T?te(p.dynamicChildren,T,S,m,E,K,y):R||Y(p,d,S,null,m,E,K,y,!1),O>0){if(O&16)ge(S,d,M,k,m,E,_);else if(O&2&&M.class!==k.class&&i(S,"class",null,k.class,_),O&4&&i(S,"style",M.style,k.style,_),O&8){const oe=d.dynamicProps;for(let ne=0;ne{$&&Xe($,m,d,p),F&&Ot(d,p,m,"updated")},E)},te=(p,d,m,E,_,y,R)=>{for(let S=0;S{if(m!==E){if(m!==ue)for(const S in m)!nr(S)&&!(S in E)&&i(p,S,m[S],null,R,d.children,_,y,ye);for(const S in E){if(nr(S))continue;const O=E[S],T=m[S];O!==T&&S!=="value"&&i(p,S,T,O,R,d.children,_,y,ye)}"value"in E&&i(p,"value",m.value,E.value)}},D=(p,d,m,E,_,y,R,S,O)=>{const T=d.el=p?p.el:a(""),F=d.anchor=p?p.anchor:a("");let{patchFlag:M,dynamicChildren:k,slotScopeIds:$}=d;$&&(S=S?S.concat($):$),p==null?(r(T,m,E),r(F,m,E),j(d.children,m,F,_,y,R,S,O)):M>0&&M&64&&k&&p.dynamicChildren?(te(p.dynamicChildren,k,m,_,y,R,S),(d.key!=null||_&&d===_.subTree)&&xa(p,d,!0)):Y(p,d,m,F,_,y,R,S,O)},J=(p,d,m,E,_,y,R,S,O)=>{d.slotScopeIds=S,p==null?d.shapeFlag&512?_.ctx.activate(d,m,E,R,O):Te(d,m,E,_,y,R,O):rt(p,d,O)},Te=(p,d,m,E,_,y,R)=>{const S=p.component=nf(p,E,_);if(Rr(p)&&(S.ctx.renderer=w),rf(S),S.asyncDep){if(_&&_.registerDep(S,fe),!p.el){const O=S.subTree=Ae(He);A(null,O,d,m)}return}fe(S,p,d,m,_,y,R)},rt=(p,d,m)=>{const E=d.component=p.component;if(pu(p,d,m))if(E.asyncDep&&!E.asyncResolved){re(E,d,m);return}else E.next=d,ou(E.update),E.update();else d.el=p.el,E.vnode=d},fe=(p,d,m,E,_,y,R)=>{const S=()=>{if(p.isMounted){let{next:F,bu:M,u:k,parent:$,vnode:K}=p,oe=F,ne;wt(p,!1),F?(F.el=K.el,re(p,F,R)):F=K,M&&sr(M),(ne=F.props&&F.props.onVnodeBeforeUpdate)&&Xe(ne,$,F,K),wt(p,!0);const pe=Ur(p),xe=p.subTree;p.subTree=pe,b(xe,pe,f(xe.el),v(xe),p,_,y),F.el=pe.el,oe===null&&du(p,pe.el),k&&we(k,_),(ne=F.props&&F.props.onVnodeUpdated)&&we(()=>Xe(ne,$,F,K),_)}else{let F;const{el:M,props:k}=d,{bm:$,m:K,parent:oe}=p,ne=Tn(d);if(wt(p,!1),$&&sr($),!ne&&(F=k&&k.onVnodeBeforeMount)&&Xe(F,oe,d),wt(p,!0),M&&Q){const pe=()=>{p.subTree=Ur(p),Q(M,p.subTree,p,_,null)};ne?d.type.__asyncLoader().then(()=>!p.isUnmounted&&pe()):pe()}else{const pe=p.subTree=Ur(p);b(null,pe,m,E,p,_,y),d.el=pe.el}if(K&&we(K,_),!ne&&(F=k&&k.onVnodeMounted)){const pe=d;we(()=>Xe(F,oe,pe),_)}(d.shapeFlag&256||oe&&Tn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&we(p.a,_),p.isMounted=!0,d=m=E=null}},O=p.effect=new xs(S,()=>Vs(T),p.scope),T=p.update=()=>O.run();T.id=p.uid,wt(p,!0),T()},re=(p,d,m)=>{d.component=p;const E=p.vnode.props;p.vnode=d,p.next=null,$u(p,d.props,E,m),Vu(p,d.children,m),fn(),Ii(),hn()},Y=(p,d,m,E,_,y,R,S,O=!1)=>{const T=p&&p.children,F=p?p.shapeFlag:0,M=d.children,{patchFlag:k,shapeFlag:$}=d;if(k>0){if(k&128){ht(T,M,m,E,_,y,R,S,O);return}else if(k&256){st(T,M,m,E,_,y,R,S,O);return}}$&8?(F&16&&ye(T,_,y),M!==T&&c(m,M)):F&16?$&16?ht(T,M,m,E,_,y,R,S,O):ye(T,_,y,!0):(F&8&&c(m,""),$&16&&j(M,m,E,_,y,R,S,O))},st=(p,d,m,E,_,y,R,S,O)=>{p=p||qt,d=d||qt;const T=p.length,F=d.length,M=Math.min(T,F);let k;for(k=0;kF?ye(p,_,y,!0,!1,M):j(d,m,E,_,y,R,S,O,M)},ht=(p,d,m,E,_,y,R,S,O)=>{let T=0;const F=d.length;let M=p.length-1,k=F-1;for(;T<=M&&T<=k;){const $=p[T],K=d[T]=O?Et(d[T]):Je(d[T]);if(Lt($,K))b($,K,m,null,_,y,R,S,O);else break;T++}for(;T<=M&&T<=k;){const $=p[M],K=d[k]=O?Et(d[k]):Je(d[k]);if(Lt($,K))b($,K,m,null,_,y,R,S,O);else break;M--,k--}if(T>M){if(T<=k){const $=k+1,K=$k)for(;T<=M;)Oe(p[T],_,y,!0),T++;else{const $=T,K=T,oe=new Map;for(T=K;T<=k;T++){const Ne=d[T]=O?Et(d[T]):Je(d[T]);Ne.key!=null&&oe.set(Ne.key,T)}let ne,pe=0;const xe=k-K+1;let Vt=!1,ui=0;const mn=new Array(xe);for(T=0;T=xe){Oe(Ne,_,y,!0);continue}let We;if(Ne.key!=null)We=oe.get(Ne.key);else for(ne=K;ne<=k;ne++)if(mn[ne-K]===0&&Lt(Ne,d[ne])){We=ne;break}We===void 0?Oe(Ne,_,y,!0):(mn[We-K]=T+1,We>=ui?ui=We:Vt=!0,b(Ne,d[We],m,null,_,y,R,S,O),pe++)}const fi=Vt?Zu(mn):qt;for(ne=fi.length-1,T=xe-1;T>=0;T--){const Ne=K+T,We=d[Ne],hi=Ne+1{const{el:y,type:R,transition:S,children:O,shapeFlag:T}=p;if(T&6){Ze(p.component.subTree,d,m,E);return}if(T&128){p.suspense.move(d,m,E);return}if(T&64){R.move(p,d,m,w);return}if(R===Pe){r(y,d,m);for(let M=0;MS.enter(y),_);else{const{leave:M,delayLeave:k,afterLeave:$}=S,K=()=>r(y,d,m),oe=()=>{M(y,()=>{K(),$&&$()})};k?k(y,K,oe):oe()}else r(y,d,m)},Oe=(p,d,m,E=!1,_=!1)=>{const{type:y,props:R,ref:S,children:O,dynamicChildren:T,shapeFlag:F,patchFlag:M,dirs:k}=p;if(S!=null&&fs(S,null,m,p,!0),F&256){d.ctx.deactivate(p);return}const $=F&1&&k,K=!Tn(p);let oe;if(K&&(oe=R&&R.onVnodeBeforeUnmount)&&Xe(oe,d,p),F&6)Gn(p.component,m,E);else{if(F&128){p.suspense.unmount(m,E);return}$&&Ot(p,null,d,"beforeUnmount"),F&64?p.type.remove(p,d,m,_,w,E):T&&(y!==Pe||M>0&&M&64)?ye(T,d,m,!1,!0):(y===Pe&&M&384||!_&&F&16)&&ye(O,d,m),E&&Gt(p)}(K&&(oe=R&&R.onVnodeUnmounted)||$)&&we(()=>{oe&&Xe(oe,d,p),$&&Ot(p,null,d,"unmounted")},m)},Gt=p=>{const{type:d,el:m,anchor:E,transition:_}=p;if(d===Pe){jt(m,E);return}if(d===Sn){L(p);return}const y=()=>{s(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(p.shapeFlag&1&&_&&!_.persisted){const{leave:R,delayLeave:S}=_,O=()=>R(m,y);S?S(p.el,y,O):O()}else y()},jt=(p,d)=>{let m;for(;p!==d;)m=h(p),s(p),p=m;s(d)},Gn=(p,d,m)=>{const{bum:E,scope:_,update:y,subTree:R,um:S}=p;E&&sr(E),_.stop(),y&&(y.active=!1,Oe(R,p,d,m)),S&&we(S,d),we(()=>{p.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},ye=(p,d,m,E=!1,_=!1,y=0)=>{for(let R=y;Rp.shapeFlag&6?v(p.component.subTree):p.shapeFlag&128?p.suspense.next():h(p.anchor||p.el),P=(p,d,m)=>{p==null?d._vnode&&Oe(d._vnode,null,null,!0):b(d._vnode||null,p,d,null,null,null,m),Ii(),ga(),d._vnode=p},w={p:b,um:Oe,m:Ze,r:Gt,mt:Te,mc:j,pc:Y,pbc:te,n:v,o:e};let B,Q;return t&&([B,Q]=t(w)),{render:P,hydrate:B,createApp:Fu(P,B)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xa(e,t,n=!1){const r=e.children,s=t.children;if(x(r)&&x(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Wu=e=>e.__isTeleport,Pe=Symbol.for("v-fgt"),Nr=Symbol.for("v-txt"),He=Symbol.for("v-cmt"),Sn=Symbol.for("v-stc"),An=[];let $e=null;function Ua(e=!1){An.push($e=e?null:[])}function Xu(){An.pop(),$e=An[An.length-1]||null}let Mn=1;function Hi(e){Mn+=e}function Fa(e){return e.dynamicChildren=Mn>0?$e||qt:null,Xu(),Mn>0&&$e&&$e.push(e),e}function CE(e,t,n,r,s,i){return Fa(Ga(e,t,n,r,s,i,!0))}function ka(e,t,n,r,s){return Fa(Ae(e,t,n,r,s,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Pr="__vInternal",$a=({key:e})=>e??null,or=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||ve(e)||G(e)?{i:_e,r:e,k:t,f:!!n}:e:null);function Ga(e,t=null,n=null,r=0,s=null,i=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$a(t),ref:t&&or(t),scopeId:Or,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_e};return a?(qs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=he(n)?8:16),Mn>0&&!o&&$e&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&$e.push(l),l}const Ae=qu;function qu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Oa)&&(e=He),gr(e)){const a=St(e,t,!0);return n&&qs(a,n),Mn>0&&!i&&$e&&(a.shapeFlag&6?$e[$e.indexOf(e)]=a:$e.push(a)),a.patchFlag|=-2,a}if(lf(e)&&(e=e.__vccOpts),t){t=Yu(t);let{class:a,style:l}=t;a&&!he(a)&&(t.class=Hs(a)),ie(l)&&(aa(l)&&!x(l)&&(l=de({},l)),t.style=Ds(l))}const o=he(e)?1:mu(e)?128:Wu(e)?64:ie(e)?4:G(e)?2:0;return Ga(e,t,n,r,s,o,i,!0)}function Yu(e){return e?aa(e)||Pr in e?de({},e):e:null}function St(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?Ju(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&$a(a),ref:t&&t.ref?n&&s?x(s)?s.concat(or(t)):[s,or(t)]:or(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qu(e=" ",t=0){return Ae(Nr,null,e,t)}function NE(e,t){const n=Ae(Sn,null,e);return n.staticCount=t,n}function PE(e="",t=!1){return t?(Ua(),ka(He,null,e)):Ae(He,null,e)}function Je(e){return e==null||typeof e=="boolean"?Ae(He):x(e)?Ae(Pe,null,e.slice()):typeof e=="object"?Et(e):Ae(Nr,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function qs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),qs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Pr in t)?t._ctx=_e:s===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),r&64?(n=16,t=[Qu(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ju(...e){const t={};for(let n=0;nEe||_e;let Qs,Kt,Bi="__VUE_INSTANCE_SETTERS__";(Kt=es()[Bi])||(Kt=es()[Bi]=[]),Kt.push(e=>Ee=e),Qs=e=>{Kt.length>1?Kt.forEach(t=>t(e)):Kt[0](e)};const sn=e=>{Qs(e),e.scope.on()},Bt=()=>{Ee&&Ee.scope.off(),Qs(null)};function ja(e){return e.vnode.shapeFlag&4}let Dn=!1;function rf(e,t=!1){Dn=t;const{props:n,children:r}=e.vnode,s=ja(e);ku(e,n,s,t),ju(e,r);const i=s?sf(e,t):void 0;return Dn=!1,i}function sf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=la(new Proxy(e.ctx,Lu));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Ka(e):null;sn(e),fn();const i=bt(r,e,0,[e.props,s]);if(hn(),Bt(),Vo(i)){if(i.then(Bt,Bt),t)return i.then(o=>{xi(e,o,t)}).catch(o=>{Sr(o,e,0)});e.asyncDep=i}else xi(e,i,t)}else Va(e,t)}function xi(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=ha(t)),Va(e,n)}let Ui;function Va(e,t,n){const r=e.type;if(!e.render){if(!t&&Ui&&!r.render){const s=r.template||Ws(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=de(de({isCustomElement:i,delimiters:a},o),l);r.render=Ui(s,u)}}e.render=r.render||Ge}sn(e),fn(),Mu(e),hn(),Bt()}function of(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function Ka(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return of(e)},slots:e.slots,emit:e.emit,expose:t}}function Lr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ha(la(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in In)return In[n](e)},has(t,n){return n in t||n in In}}))}function af(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function lf(e){return G(e)&&"__vccOpts"in e}const Le=(e,t)=>ru(e,t,Dn);function Js(e,t,n){const r=arguments.length;return r===2?ie(t)&&!x(t)?gr(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),Ae(e,t,n))}const cf=Symbol.for("v-scx"),uf=()=>je(cf),ff="3.3.4",hf="http://www.w3.org/2000/svg",Mt=typeof document<"u"?document:null,Fi=Mt&&Mt.createElement("template"),pf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?Mt.createElementNS(hf,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Fi.innerHTML=r?`${e}`:e;const a=Fi.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function df(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function mf(e,t,n){const r=e.style,s=he(n);if(n&&!s){if(t&&!he(t))for(const i in t)n[i]==null&&hs(r,i,"");for(const i in n)hs(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ki=/\s*!important$/;function hs(e,t,n){if(x(n))n.forEach(r=>hs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=gf(e,t);ki.test(n)?e.setProperty(Ft(r),n.replace(ki,""),"important"):e[r]=n}}const $i=["Webkit","Moz","ms"],$r={};function gf(e,t){const n=$r[t];if(n)return n;let r=tt(t);if(r!=="filter"&&r in e)return $r[t]=r;r=Tr(r);for(let s=0;s<$i.length;s++){const i=$i[s]+r;if(i in e)return $r[t]=i}return t}const Gi="http://www.w3.org/1999/xlink";function Ef(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Gi,t.slice(6,t.length)):e.setAttributeNS(Gi,t,n);else{const i=gc(t);n==null||i&&!Zo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function vf(e,t,n,r,s,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,s,i),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const u=a==="OPTION"?e.getAttribute("value"):e.value,c=n??"";u!==c&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Zo(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function _t(e,t,n,r){e.addEventListener(t,n,r)}function _f(e,t,n,r){e.removeEventListener(t,n,r)}function yf(e,t,n,r,s=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=bf(t);if(r){const u=i[t]=Sf(r,s);_t(e,a,u,l)}else o&&(_f(e,a,o,l),i[t]=void 0)}}const ji=/(?:Once|Passive|Capture)$/;function bf(e){let t;if(ji.test(e)){t={};let r;for(;r=e.match(ji);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let Gr=0;const Tf=Promise.resolve(),If=()=>Gr||(Tf.then(()=>Gr=0),Gr=Date.now());function Sf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;De(Af(r,n.value),t,5,[r])};return n.value=e,n.attached=If(),n}function Af(e,t){if(x(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Vi=/^on[a-z]/,Of=(e,t,n,r,s=!1,i,o,a,l)=>{t==="class"?df(e,r,s):t==="style"?mf(e,n,r):_r(t)?Ps(t)||yf(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wf(e,t,r,s))?vf(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ef(e,t,r,s))};function wf(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Vi.test(t)&&G(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vi.test(t)&&he(n)?!1:t in e}function LE(e){const t=Ys();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>ds(i,s))},r=()=>{const s=e(t.proxy);ps(t.subTree,s),n(s)};Eu(r),Ks(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),zs(()=>s.disconnect())})}function ps(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ps(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ds(e.el,t);else if(e.type===Pe)e.children.forEach(n=>ps(n,t));else if(e.type===Sn){let{el:n,anchor:r}=e;for(;n&&(ds(n,t),n!==r);)n=n.nextSibling}}function ds(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const dt="transition",gn="animation",za=(e,{slots:t})=>Js(bu,Rf(e),t);za.displayName="Transition";const Za={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};za.props=de({},ya,Za);const Rt=(e,t=[])=>{x(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ki=e=>e?x(e)?e.some(t=>t.length>1):e.length>1:!1;function Rf(e){const t={};for(const D in e)D in Za||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,I=Cf(s),b=I&&I[0],C=I&&I[1],{onBeforeEnter:A,onEnter:N,onEnterCancelled:H,onLeave:L,onLeaveCancelled:Z,onBeforeAppear:ae=A,onAppear:me=N,onAppearCancelled:j=H}=t,le=(D,J,Te)=>{Ct(D,J?c:a),Ct(D,J?u:o),Te&&Te()},te=(D,J)=>{D._isLeaving=!1,Ct(D,f),Ct(D,g),Ct(D,h),J&&J()},ge=D=>(J,Te)=>{const rt=D?me:N,fe=()=>le(J,D,Te);Rt(rt,[J,fe]),zi(()=>{Ct(J,D?l:i),mt(J,D?c:a),Ki(rt)||Zi(J,r,b,fe)})};return de(t,{onBeforeEnter(D){Rt(A,[D]),mt(D,i),mt(D,o)},onBeforeAppear(D){Rt(ae,[D]),mt(D,l),mt(D,u)},onEnter:ge(!1),onAppear:ge(!0),onLeave(D,J){D._isLeaving=!0;const Te=()=>te(D,J);mt(D,f),Lf(),mt(D,h),zi(()=>{D._isLeaving&&(Ct(D,f),mt(D,g),Ki(L)||Zi(D,r,C,Te))}),Rt(L,[D,Te])},onEnterCancelled(D){le(D,!1),Rt(H,[D])},onAppearCancelled(D){le(D,!0),Rt(j,[D])},onLeaveCancelled(D){te(D),Rt(Z,[D])}})}function Cf(e){if(e==null)return null;if(ie(e))return[jr(e.enter),jr(e.leave)];{const t=jr(e);return[t,t]}}function jr(e){return uc(e)}function mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ct(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nf=0;function Zi(e,t,n,r){const s=e._endId=++Nf,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Pf(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[I]||"").split(", "),s=r(`${dt}Delay`),i=r(`${dt}Duration`),o=Wi(s,i),a=r(`${gn}Delay`),l=r(`${gn}Duration`),u=Wi(a,l);let c=null,f=0,h=0;t===dt?o>0&&(c=dt,f=o,h=i.length):t===gn?u>0&&(c=gn,f=u,h=l.length):(f=Math.max(o,u),c=f>0?o>u?dt:gn:null,h=c?c===dt?i.length:l.length:0);const g=c===dt&&/\b(transform|all)(,|$)/.test(r(`${dt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function Wi(e,t){for(;e.lengthXi(n)+Xi(e[r])))}function Xi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lf(){return document.body.offsetHeight}const on=e=>{const t=e.props["onUpdate:modelValue"]||!1;return x(t)?n=>sr(t,n):t};function Mf(e){e.target.composing=!0}function qi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ME={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=on(s);const i=r||s.props&&s.props.type==="number";_t(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=ur(a)),e._assign(a)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Mf),_t(e,"compositionend",qi),_t(e,"change",qi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=on(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ur(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},DE={created(e,{value:t},n){e.checked=nn(t,n.props.value),e._assign=on(n),_t(e,"change",()=>{e._assign(Hn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=on(r),t!==n&&(e.checked=nn(t,r.props.value))}},HE={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=yr(t);_t(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ur(Hn(o)):Hn(o));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=on(r)},mounted(e,{value:t}){Yi(e,t)},beforeUpdate(e,t,n){e._assign=on(n)},updated(e,{value:t}){Yi(e,t)}};function Yi(e,t){const n=e.multiple;if(!(n&&!x(t)&&!yr(t))){for(let r=0,s=e.options.length;r-1:i.selected=t.has(o);else if(nn(Hn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hn(e){return"_value"in e?e._value:e.value}const Df=["ctrl","shift","alt","meta"],Hf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Df.some(n=>e[`${n}Key`]&&!t.includes(n))},BE=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=Ft(n.key);if(t.some(s=>s===r||Bf[s]===r))return e(n)},UE={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),En(e,!0),r.enter(e)):r.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e._vod:"none"}const xf=de({patchProp:Of},pf);let Qi;function Uf(){return Qi||(Qi=Ku(xf))}const Ff=(...e)=>{const t=Uf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=kf(r);if(!s)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function kf(e){return he(e)?document.querySelector(e):e}function $f(){return Wa().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wa(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Gf=typeof Proxy=="function",jf="devtools-plugin:setup",Vf="plugin:settings:set";let zt,ms;function Kf(){var e;return zt!==void 0||(typeof window<"u"&&window.performance?(zt=!0,ms=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(zt=!0,ms=global.perf_hooks.performance):zt=!1),zt}function zf(){return Kf()?ms.now():Date.now()}class Zf{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return zf()}},n&&n.on(Vf,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Wf(e,t){const n=e,r=Wa(),s=$f(),i=Gf&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(jf,e,t);else{const o=i?new Zf(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT - */var Xa="store";function dn(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Xf(e){return e!==null&&typeof e=="object"}function qf(e){return e&&typeof e.then=="function"}function Yf(e,t){return function(){return e(t)}}function qa(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Ya(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Mr(e,n,[],e._modules.root,!0),ei(e,n,t)}function ei(e,t,n){var r=e._state,s=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={},a={},l=_c(!0);l.run(function(){dn(i,function(u,c){o[c]=Yf(u,e),a[c]=Le(function(){return o[c]()}),Object.defineProperty(e.getters,c,{get:function(){return a[c].value},enumerable:!0})})}),e._state=pn({data:t}),e._scope=l,e.strict&&nh(e),r&&n&&e._withCommit(function(){r.data=null}),s&&s.stop()}function Mr(e,t,n,r,s){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!s){var a=ti(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var u=r.context=Qf(e,o,n);r.forEachMutation(function(c,f){var h=o+f;Jf(e,h,c,u)}),r.forEachAction(function(c,f){var h=c.root?f:o+f,g=c.handler||c;eh(e,h,g,u)}),r.forEachGetter(function(c,f){var h=o+f;th(e,h,c,u)}),r.forEachChild(function(c,f){Mr(e,t,n.concat(f),c,s)})}function Qf(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(i,o,a){var l=Er(i,o,a),u=l.payload,c=l.options,f=l.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,u)},commit:r?e.commit:function(i,o,a){var l=Er(i,o,a),u=l.payload,c=l.options,f=l.type;(!c||!c.root)&&(f=t+f),e.commit(f,u,c)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return Qa(e,t)}},state:{get:function(){return ti(e.state,n)}}}),s}function Qa(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var i=s.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Jf(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(o){n.call(e,r.state,o)})}function eh(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(o){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return qf(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function th(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function nh(e){tn(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function ti(e,t){return t.reduce(function(n,r){return n[r]},e)}function Er(e,t,n){return Xf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var rh="vuex bindings",Ji="vuex:mutations",Vr="vuex:actions",Zt="vuex",sh=0;function ih(e,t){Wf({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[rh]},function(n){n.addTimelineLayer({id:Ji,label:"Vuex Mutations",color:eo}),n.addTimelineLayer({id:Vr,label:"Vuex Actions",color:eo}),n.addInspector({id:Zt,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Zt)if(r.filter){var s=[];nl(s,t._modules.root,r.filter,""),r.rootNodes=s}else r.rootNodes=[tl(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Zt){var s=r.nodeId;Qa(t,s),r.state=lh(uh(t._modules,s),s==="root"?t.getters:t._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Zt){var s=r.nodeId,i=r.path;s!=="root"&&(i=s.split("/").filter(Boolean).concat(i)),t._withCommit(function(){r.set(t._state.data,i,r.state.value)})}}),t.subscribe(function(r,s){var i={};r.payload&&(i.payload=r.payload),i.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(Zt),n.sendInspectorState(Zt),n.addTimelineEvent({layerId:Ji,event:{time:Date.now(),title:r.type,data:i}})}),t.subscribeAction({before:function(r,s){var i={};r.payload&&(i.payload=r.payload),r._id=sh++,r._time=Date.now(),i.state=s,n.addTimelineEvent({layerId:Vr,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,s){var i={},o=Date.now()-r._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},r.payload&&(i.payload=r.payload),i.state=s,n.addTimelineEvent({layerId:Vr,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var eo=8702998,oh=6710886,ah=16777215,Ja={label:"namespaced",textColor:ah,backgroundColor:oh};function el(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function tl(e,t){return{id:t||"root",label:el(t),tags:e.namespaced?[Ja]:[],children:Object.keys(e._children).map(function(n){return tl(e._children[n],t+n+"/")})}}function nl(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Ja]:[]}),Object.keys(t._children).forEach(function(s){nl(e,t._children[s],n,r+s+"/")})}function lh(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),s={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(r.length){var i=ch(t);s.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?el(o):o,editable:!1,value:gs(function(){return i[o]})}})}return s}function ch(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var s=t,i=r.pop();r.forEach(function(o){s[o]||(s[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),s=s[o]._custom.value}),s[i]=gs(function(){return e[n]})}else t[n]=gs(function(){return e[n]})}),t}function uh(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,s,i){var o=r[s];if(!o)throw new Error('Missing module "'+s+'" for path "'+t+'".');return i===n.length-1?o:o._children},t==="root"?e:e.root._children)}function gs(e){try{return e()}catch(t){return t}}var Ke=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},rl={namespaced:{configurable:!0}};rl.namespaced.get=function(){return!!this._rawModule.namespaced};Ke.prototype.addChild=function(t,n){this._children[t]=n};Ke.prototype.removeChild=function(t){delete this._children[t]};Ke.prototype.getChild=function(t){return this._children[t]};Ke.prototype.hasChild=function(t){return t in this._children};Ke.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Ke.prototype.forEachChild=function(t){dn(this._children,t)};Ke.prototype.forEachGetter=function(t){this._rawModule.getters&&dn(this._rawModule.getters,t)};Ke.prototype.forEachAction=function(t){this._rawModule.actions&&dn(this._rawModule.actions,t)};Ke.prototype.forEachMutation=function(t){this._rawModule.mutations&&dn(this._rawModule.mutations,t)};Object.defineProperties(Ke.prototype,rl);var kt=function(t){this.register([],t,!1)};kt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};kt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")};kt.prototype.update=function(t){sl([],this.root,t)};kt.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var i=new Ke(n,r);if(t.length===0)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}n.modules&&dn(n.modules,function(a,l){s.register(t.concat(l),a,r)})};kt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);s&&s.runtime&&n.removeChild(r)};kt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function sl(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;sl(e.concat(r),t.getChild(r),n.modules[r])}}function fh(e){return new Ce(e)}var Ce=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new kt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(h,g){return l.call(o,h,g)},this.commit=function(h,g,I){return u.call(o,h,g,I)},this.strict=s;var c=this._modules.root.state;Mr(this,c,[],this._modules.root),ei(this,c),r.forEach(function(f){return f(n)})},ni={state:{configurable:!0}};Ce.prototype.install=function(t,n){t.provide(n||Xa,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&ih(t,this)};ni.state.get=function(){return this._state.data};ni.state.set=function(e){};Ce.prototype.commit=function(t,n,r){var s=this,i=Er(t,n,r),o=i.type,a=i.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(c){return c(l,s.state)}))};Ce.prototype.dispatch=function(t,n){var r=this,s=Er(t,n),i=s.type,o=s.payload,a={type:i,payload:o},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(o)})):l[0](o);return new Promise(function(c,f){u.then(function(h){try{r._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(a,r.state)})}catch{}c(h)},function(h){try{r._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(a,r.state,h)})}catch{}f(h)})})}};Ce.prototype.subscribe=function(t,n){return qa(t,this._subscribers,n)};Ce.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return qa(r,this._actionSubscribers,n)};Ce.prototype.watch=function(t,n,r){var s=this;return tn(function(){return t(s.state,s.getters)},n,Object.assign({},r))};Ce.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Ce.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Mr(this,this.state,t,this._modules.get(t),r.preserveState),ei(this,this.state)};Ce.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=ti(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Ya(this)};Ce.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Ce.prototype.hotUpdate=function(t){this._modules.update(t),Ya(this,!0)};Ce.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Ce.prototype,ni);/*! + */var Xa="store";function dn(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Xf(e){return e!==null&&typeof e=="object"}function qf(e){return e&&typeof e.then=="function"}function Yf(e,t){return function(){return e(t)}}function qa(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Ya(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Mr(e,n,[],e._modules.root,!0),ei(e,n,t)}function ei(e,t,n){var r=e._state,s=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={},a={},l=_c(!0);l.run(function(){dn(i,function(u,c){o[c]=Yf(u,e),a[c]=Le(function(){return o[c]()}),Object.defineProperty(e.getters,c,{get:function(){return a[c].value},enumerable:!0})})}),e._state=pn({data:t}),e._scope=l,e.strict&&nh(e),r&&n&&e._withCommit(function(){r.data=null}),s&&s.stop()}function Mr(e,t,n,r,s){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!s){var a=ti(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var u=r.context=Qf(e,o,n);r.forEachMutation(function(c,f){var h=o+f;Jf(e,h,c,u)}),r.forEachAction(function(c,f){var h=c.root?f:o+f,g=c.handler||c;eh(e,h,g,u)}),r.forEachGetter(function(c,f){var h=o+f;th(e,h,c,u)}),r.forEachChild(function(c,f){Mr(e,t,n.concat(f),c,s)})}function Qf(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(i,o,a){var l=Er(i,o,a),u=l.payload,c=l.options,f=l.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,u)},commit:r?e.commit:function(i,o,a){var l=Er(i,o,a),u=l.payload,c=l.options,f=l.type;(!c||!c.root)&&(f=t+f),e.commit(f,u,c)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return Qa(e,t)}},state:{get:function(){return ti(e.state,n)}}}),s}function Qa(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var i=s.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Jf(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(o){n.call(e,r.state,o)})}function eh(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(o){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return qf(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function th(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function nh(e){tn(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function ti(e,t){return t.reduce(function(n,r){return n[r]},e)}function Er(e,t,n){return Xf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var rh="vuex bindings",Ji="vuex:mutations",Vr="vuex:actions",Zt="vuex",sh=0;function ih(e,t){Wf({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[rh]},function(n){n.addTimelineLayer({id:Ji,label:"Vuex Mutations",color:eo}),n.addTimelineLayer({id:Vr,label:"Vuex Actions",color:eo}),n.addInspector({id:Zt,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Zt)if(r.filter){var s=[];nl(s,t._modules.root,r.filter,""),r.rootNodes=s}else r.rootNodes=[tl(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Zt){var s=r.nodeId;Qa(t,s),r.state=lh(uh(t._modules,s),s==="root"?t.getters:t._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Zt){var s=r.nodeId,i=r.path;s!=="root"&&(i=s.split("/").filter(Boolean).concat(i)),t._withCommit(function(){r.set(t._state.data,i,r.state.value)})}}),t.subscribe(function(r,s){var i={};r.payload&&(i.payload=r.payload),i.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(Zt),n.sendInspectorState(Zt),n.addTimelineEvent({layerId:Ji,event:{time:Date.now(),title:r.type,data:i}})}),t.subscribeAction({before:function(r,s){var i={};r.payload&&(i.payload=r.payload),r._id=sh++,r._time=Date.now(),i.state=s,n.addTimelineEvent({layerId:Vr,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,s){var i={},o=Date.now()-r._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},r.payload&&(i.payload=r.payload),i.state=s,n.addTimelineEvent({layerId:Vr,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var eo=8702998,oh=6710886,ah=16777215,Ja={label:"namespaced",textColor:ah,backgroundColor:oh};function el(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function tl(e,t){return{id:t||"root",label:el(t),tags:e.namespaced?[Ja]:[],children:Object.keys(e._children).map(function(n){return tl(e._children[n],t+n+"/")})}}function nl(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Ja]:[]}),Object.keys(t._children).forEach(function(s){nl(e,t._children[s],n,r+s+"/")})}function lh(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),s={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(r.length){var i=ch(t);s.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?el(o):o,editable:!1,value:gs(function(){return i[o]})}})}return s}function ch(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var s=t,i=r.pop();r.forEach(function(o){s[o]||(s[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),s=s[o]._custom.value}),s[i]=gs(function(){return e[n]})}else t[n]=gs(function(){return e[n]})}),t}function uh(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,s,i){var o=r[s];if(!o)throw new Error('Missing module "'+s+'" for path "'+t+'".');return i===n.length-1?o:o._children},t==="root"?e:e.root._children)}function gs(e){try{return e()}catch(t){return t}}var Ke=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},rl={namespaced:{configurable:!0}};rl.namespaced.get=function(){return!!this._rawModule.namespaced};Ke.prototype.addChild=function(t,n){this._children[t]=n};Ke.prototype.removeChild=function(t){delete this._children[t]};Ke.prototype.getChild=function(t){return this._children[t]};Ke.prototype.hasChild=function(t){return t in this._children};Ke.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Ke.prototype.forEachChild=function(t){dn(this._children,t)};Ke.prototype.forEachGetter=function(t){this._rawModule.getters&&dn(this._rawModule.getters,t)};Ke.prototype.forEachAction=function(t){this._rawModule.actions&&dn(this._rawModule.actions,t)};Ke.prototype.forEachMutation=function(t){this._rawModule.mutations&&dn(this._rawModule.mutations,t)};Object.defineProperties(Ke.prototype,rl);var kt=function(t){this.register([],t,!1)};kt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};kt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")};kt.prototype.update=function(t){sl([],this.root,t)};kt.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var i=new Ke(n,r);if(t.length===0)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}n.modules&&dn(n.modules,function(a,l){s.register(t.concat(l),a,r)})};kt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);s&&s.runtime&&n.removeChild(r)};kt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function sl(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;sl(e.concat(r),t.getChild(r),n.modules[r])}}function fh(e){return new Ce(e)}var Ce=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new kt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(h,g){return l.call(o,h,g)},this.commit=function(h,g,I){return u.call(o,h,g,I)},this.strict=s;var c=this._modules.root.state;Mr(this,c,[],this._modules.root),ei(this,c),r.forEach(function(f){return f(n)})},ni={state:{configurable:!0}};Ce.prototype.install=function(t,n){t.provide(n||Xa,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&ih(t,this)};ni.state.get=function(){return this._state.data};ni.state.set=function(e){};Ce.prototype.commit=function(t,n,r){var s=this,i=Er(t,n,r),o=i.type,a=i.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(c){return c(l,s.state)}))};Ce.prototype.dispatch=function(t,n){var r=this,s=Er(t,n),i=s.type,o=s.payload,a={type:i,payload:o},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(o)})):l[0](o);return new Promise(function(c,f){u.then(function(h){try{r._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(a,r.state)})}catch{}c(h)},function(h){try{r._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(a,r.state,h)})}catch{}f(h)})})}};Ce.prototype.subscribe=function(t,n){return qa(t,this._subscribers,n)};Ce.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return qa(r,this._actionSubscribers,n)};Ce.prototype.watch=function(t,n,r){var s=this;return tn(function(){return t(s.state,s.getters)},n,Object.assign({},r))};Ce.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Ce.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Mr(this,this.state,t,this._modules.get(t),r.preserveState),ei(this,this.state)};Ce.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=ti(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Ya(this)};Ce.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Ce.prototype.hotUpdate=function(t){this._modules.update(t),Ya(this,!0)};Ce.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Ce.prototype,ni);const FE={PAGINATION_PREVIOUS_BUTTON_CLICKED:"pagination-previous-button-clicked",PAGINATION_NEXT_BUTTON_CLICKED:"pagination-next-button-clicked",SIDEBAR_ITEM_CLICKED:"sidebar-item-clicked",TABLE_REFRESH_BUTTON_CLICKED:"table-refresh-button-clicked",TABS_TAB_CHANGE:"tabs-tab-change",CREATE_DATA_PLANE_PROXY_CLICKED:"create-data-plane-proxy-clicked"};class hh{info(...t){this._log("info",...t)}warn(...t){this._log("warn",...t)}error(...t){this._log("error",...t)}_log(t,...n){console[t](...n)}}const ph=()=>{class e extends hh{setup(){console.warn("Logging is disabled")}_log(){}}return new e};/*! * vue-router v4.2.2 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Xt=typeof window<"u";function hh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function Kr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ve(s)?s.map(e):e(s)}return n}const On=()=>{},Ve=Array.isArray,ph=/\/$/,dh=e=>e.replace(ph,"");function zr(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=vh(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function mh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function to(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&an(t.matched[r],n.matched[s])&&il(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function il(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Eh(e[n],t[n]))return!1;return!0}function Eh(e,t){return Ve(e)?no(e,t):Ve(t)?no(t,e):e===t}function no(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function vh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Bn;(function(e){e.pop="pop",e.push="push"})(Bn||(Bn={}));var wn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wn||(wn={}));function _h(e){if(!e)if(Xt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),dh(e)}const yh=/^[^#]+#/;function bh(e,t){return e.replace(yh,"#")+t}function Th(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Dr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ih(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Th(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ro(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Sh(e,t){Es.set(e,t)}function Ah(e){const t=Es.get(e);return Es.delete(e),t}let Oh=()=>location.protocol+"//"+location.host;function ol(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),to(l,"")}return to(n,e)+r+s}function wh(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const g=ol(e,location),I=n.value,b=t.value;let C=0;if(h){if(n.value=g,t.value=h,o&&o===I){o=null;return}C=b?h.position-b.position:0}else r(g);s.forEach(A=>{A(n.value,I,{delta:C,type:Bn.pop,direction:C?C>0?wn.forward:wn.back:wn.unknown})})};function l(){o=n.value}function u(h){s.push(h);const g=()=>{const I=s.indexOf(h);I>-1&&s.splice(I,1)};return i.push(g),g}function c(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Dr()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function so(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Dr():null}}function Rh(e){const{history:t,location:n}=window,r={value:ol(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Oh()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](h)}}function o(l,u){const c=ee({},t.state,so(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=ee({},s.value,t.state,{forward:l,scroll:Dr()});i(c.current,c,!0);const f=ee({},so(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Ch(e){e=_h(e);const t=Rh(e),n=wh(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ee({location:"",base:e,go:r,createHref:bh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Nh(e){return typeof e=="string"||e&&typeof e=="object"}function al(e){return typeof e=="string"||typeof e=="symbol"}const gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ll=Symbol("");var io;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(io||(io={}));function ln(e,t){return ee(new Error,{type:e,[ll]:!0},t)}function it(e,t){return e instanceof Error&&ll in e&&(t==null||!!(e.type&t))}const oo="[^/]+?",Ph={sensitive:!1,strict:!1,start:!0,end:!0},Lh=/[.+*?^${}()[\]/\\]/g;function Mh(e,t){const n=ee({},Ph,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Hh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Bh={type:0,value:""},xh=/[a-zA-Z0-9_]/;function Uh(e){if(!e)return[[]];if(e==="/")return[[Bh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a{o(N)}:On}function o(c){if(al(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!cl(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!co(c)&&r.set(c.record.name,c)}function u(c,f){let h,g={},I,b;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw ln(1,{location:c});b=h.record.name,g=ee(lo(f.params,h.keys.filter(N=>!N.optional).map(N=>N.name)),c.params&&lo(c.params,h.keys.map(N=>N.name))),I=h.stringify(g)}else if("path"in c)I=c.path,h=n.find(N=>N.re.test(I)),h&&(g=h.parse(I),b=h.record.name);else{if(h=f.name?r.get(f.name):n.find(N=>N.re.test(f.path)),!h)throw ln(1,{location:c,currentLocation:f});b=h.record.name,g=ee({},f.params,c.params),I=h.stringify(g)}const C=[];let A=h;for(;A;)C.unshift(A.record),A=A.parent;return{name:b,path:I,params:g,matched:C,meta:jh(C)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function lo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $h(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Gh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Gh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function co(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jh(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function uo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function cl(e,t){return t.children.some(n=>n===e||cl(e,n))}const ul=/#/g,Vh=/&/g,Kh=/\//g,zh=/=/g,Zh=/\?/g,fl=/\+/g,Wh=/%5B/g,Xh=/%5D/g,hl=/%5E/g,qh=/%60/g,pl=/%7B/g,Yh=/%7C/g,dl=/%7D/g,Qh=/%20/g;function ri(e){return encodeURI(""+e).replace(Yh,"|").replace(Wh,"[").replace(Xh,"]")}function Jh(e){return ri(e).replace(pl,"{").replace(dl,"}").replace(hl,"^")}function vs(e){return ri(e).replace(fl,"%2B").replace(Qh,"+").replace(ul,"%23").replace(Vh,"%26").replace(qh,"`").replace(pl,"{").replace(dl,"}").replace(hl,"^")}function ep(e){return vs(e).replace(zh,"%3D")}function tp(e){return ri(e).replace(ul,"%23").replace(Zh,"%3F")}function np(e){return e==null?"":tp(e).replace(Kh,"%2F")}function vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function rp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&vs(i)):[r&&vs(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function sp(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const ip=Symbol(""),ho=Symbol(""),Hr=Symbol(""),si=Symbol(""),_s=Symbol("");function vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function vt(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ln(4,{from:n,to:t})):f instanceof Error?a(f):Nh(f)?a(ln(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[s],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>a(f))})}function Zr(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(op(a)){const u=(a.__vccOpts||a)[t];u&&s.push(vt(u,n,r,i,o))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=hh(u)?u.default:u;i.components[o]=c;const h=(c.__vccOpts||c)[t];return h&&vt(h,n,r,i,o)()}))}}return s}function op(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function po(e){const t=je(Hr),n=je(si),r=Le(()=>t.resolve(Jt(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(an.bind(null,c));if(h>-1)return h;const g=mo(l[u-2]);return u>1&&mo(c)===g&&f[f.length-1].path!==g?f.findIndex(an.bind(null,l[u-2])):h}),i=Le(()=>s.value>-1&&up(n.params,r.value.params)),o=Le(()=>s.value>-1&&s.value===n.matched.length-1&&il(n.params,r.value.params));function a(l={}){return cp(l)?t[Jt(e.replace)?"replace":"push"](Jt(e.to)).catch(On):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const ap=Ia({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:po,setup(e,{slots:t}){const n=pn(po(e)),{options:r}=je(Hr),s=Le(()=>({[go(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[go(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Js("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),lp=ap;function cp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function up(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ve(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function mo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const go=(e,t,n)=>e??t??n,fp=Ia({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=je(_s),s=Le(()=>e.route||r.value),i=je(ho,0),o=Le(()=>{let u=Jt(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Le(()=>s.value.matched[o.value]);ir(ho,Le(()=>o.value+1)),ir(ip,a),ir(_s,s);const l=qc();return tn(()=>[l.value,a.value,e.name],([u,c,f],[h,g,I])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!an(c,g)||!h)&&(c.enterCallbacks[f]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return Eo(n.default,{Component:h,route:u});const g=f.props[c],I=g?g===!0?u.params:typeof g=="function"?g(u):g:null,C=Js(h,ee({},I,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Eo(n.default,{Component:C,route:u})||C}}});function Eo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hp=fp;function pp(e){const t=kh(e.routes,e),n=e.parseQuery||rp,r=e.stringifyQuery||fo,s=e.history,i=vn(),o=vn(),a=vn(),l=Yc(gt);let u=gt;Xt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kr.bind(null,v=>""+v),f=Kr.bind(null,np),h=Kr.bind(null,vr);function g(v,P){let w,B;return al(v)?(w=t.getRecordMatcher(v),B=P):B=v,t.addRoute(B,w)}function I(v){const P=t.getRecordMatcher(v);P&&t.removeRoute(P)}function b(){return t.getRoutes().map(v=>v.record)}function C(v){return!!t.getRecordMatcher(v)}function A(v,P){if(P=ee({},P||l.value),typeof v=="string"){const m=zr(n,v,P.path),E=t.resolve({path:m.path},P),_=s.createHref(m.fullPath);return ee(m,E,{params:h(E.params),hash:vr(m.hash),redirectedFrom:void 0,href:_})}let w;if("path"in v)w=ee({},v,{path:zr(n,v.path,P.path).path});else{const m=ee({},v.params);for(const E in m)m[E]==null&&delete m[E];w=ee({},v,{params:f(m)}),P.params=f(P.params)}const B=t.resolve(w,P),Q=v.hash||"";B.params=c(h(B.params));const p=mh(r,ee({},v,{hash:Jh(Q),path:B.path})),d=s.createHref(p);return ee({fullPath:p,hash:Q,query:r===fo?sp(v.query):v.query||{}},B,{redirectedFrom:void 0,href:d})}function N(v){return typeof v=="string"?zr(n,v,l.value.path):ee({},v)}function H(v,P){if(u!==v)return ln(8,{from:P,to:v})}function L(v){return me(v)}function Z(v){return L(ee(N(v),{replace:!0}))}function ae(v){const P=v.matched[v.matched.length-1];if(P&&P.redirect){const{redirect:w}=P;let B=typeof w=="function"?w(v):w;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=N(B):{path:B},B.params={}),ee({query:v.query,hash:v.hash,params:"path"in B?{}:v.params},B)}}function me(v,P){const w=u=A(v),B=l.value,Q=v.state,p=v.force,d=v.replace===!0,m=ae(w);if(m)return me(ee(N(m),{state:typeof m=="object"?ee({},Q,m.state):Q,force:p,replace:d}),P||w);const E=w;E.redirectedFrom=P;let _;return!p&&gh(r,B,w)&&(_=ln(16,{to:E,from:B}),Ze(B,B,!0,!1)),(_?Promise.resolve(_):te(E,B)).catch(y=>it(y)?it(y,2)?y:ht(y):Y(y,E,B)).then(y=>{if(y){if(it(y,2))return me(ee({replace:d},N(y.to),{state:typeof y.to=="object"?ee({},Q,y.to.state):Q,force:p}),P||E)}else y=D(E,B,!0,d,Q);return ge(E,B,y),y})}function j(v,P){const w=H(v,P);return w?Promise.reject(w):Promise.resolve()}function le(v){const P=jt.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(v):v()}function te(v,P){let w;const[B,Q,p]=dp(v,P);w=Zr(B.reverse(),"beforeRouteLeave",v,P);for(const m of B)m.leaveGuards.forEach(E=>{w.push(vt(E,v,P))});const d=j.bind(null,v,P);return w.push(d),ye(w).then(()=>{w=[];for(const m of i.list())w.push(vt(m,v,P));return w.push(d),ye(w)}).then(()=>{w=Zr(Q,"beforeRouteUpdate",v,P);for(const m of Q)m.updateGuards.forEach(E=>{w.push(vt(E,v,P))});return w.push(d),ye(w)}).then(()=>{w=[];for(const m of v.matched)if(m.beforeEnter&&!P.matched.includes(m))if(Ve(m.beforeEnter))for(const E of m.beforeEnter)w.push(vt(E,v,P));else w.push(vt(m.beforeEnter,v,P));return w.push(d),ye(w)}).then(()=>(v.matched.forEach(m=>m.enterCallbacks={}),w=Zr(p,"beforeRouteEnter",v,P),w.push(d),ye(w))).then(()=>{w=[];for(const m of o.list())w.push(vt(m,v,P));return w.push(d),ye(w)}).catch(m=>it(m,8)?m:Promise.reject(m))}function ge(v,P,w){for(const B of a.list())le(()=>B(v,P,w))}function D(v,P,w,B,Q){const p=H(v,P);if(p)return p;const d=P===gt,m=Xt?history.state:{};w&&(B||d?s.replace(v.fullPath,ee({scroll:d&&m&&m.scroll},Q)):s.push(v.fullPath,Q)),l.value=v,Ze(v,P,w,d),ht()}let J;function Te(){J||(J=s.listen((v,P,w)=>{if(!Gn.listening)return;const B=A(v),Q=ae(B);if(Q){me(ee(Q,{replace:!0}),B).catch(On);return}u=B;const p=l.value;Xt&&Sh(ro(p.fullPath,w.delta),Dr()),te(B,p).catch(d=>it(d,12)?d:it(d,2)?(me(d.to,B).then(m=>{it(m,20)&&!w.delta&&w.type===Bn.pop&&s.go(-1,!1)}).catch(On),Promise.reject()):(w.delta&&s.go(-w.delta,!1),Y(d,B,p))).then(d=>{d=d||D(B,p,!1),d&&(w.delta&&!it(d,8)?s.go(-w.delta,!1):w.type===Bn.pop&&it(d,20)&&s.go(-1,!1)),ge(B,p,d)}).catch(On)}))}let rt=vn(),fe=vn(),re;function Y(v,P,w){ht(v);const B=fe.list();return B.length?B.forEach(Q=>Q(v,P,w)):console.error(v),Promise.reject(v)}function st(){return re&&l.value!==gt?Promise.resolve():new Promise((v,P)=>{rt.add([v,P])})}function ht(v){return re||(re=!v,Te(),rt.list().forEach(([P,w])=>v?w(v):P()),rt.reset()),v}function Ze(v,P,w,B){const{scrollBehavior:Q}=e;if(!Xt||!Q)return Promise.resolve();const p=!w&&Ah(ro(v.fullPath,0))||(B||!w)&&history.state&&history.state.scroll||null;return da().then(()=>Q(v,P,p)).then(d=>d&&Ih(d)).catch(d=>Y(d,v,P))}const Oe=v=>s.go(v);let Gt;const jt=new Set,Gn={currentRoute:l,listening:!0,addRoute:g,removeRoute:I,hasRoute:C,getRoutes:b,resolve:A,options:e,push:L,replace:Z,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:fe.add,isReady:st,install(v){const P=this;v.component("RouterLink",lp),v.component("RouterView",hp),v.config.globalProperties.$router=P,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(l)}),Xt&&!Gt&&l.value===gt&&(Gt=!0,L(s.location).catch(Q=>{}));const w={};for(const Q in gt)w[Q]=Le(()=>l.value[Q]);v.provide(Hr,P),v.provide(si,pn(w)),v.provide(_s,l);const B=v.unmount;jt.add(v),v.unmount=function(){jt.delete(v),jt.size<1&&(u=gt,J&&J(),J=null,l.value=gt,Gt=!1,re=!1),B()}}};function ye(v){return v.reduce((P,w)=>P.then(()=>le(w)),Promise.resolve())}return Gn}function dp(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oan(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>an(u,l))||s.push(l))}return[n,r,s]}function UE(){return je(Hr)}function FE(){return je(si)}class mp{constructor(t){Ue(this,"storageAdapter");this.storageAdapter=t}get(t){let n;try{n=this.storageAdapter.getItem(t)}catch{return null}if(n===null||!(n.startsWith("[")||n.startsWith("{")))return n;try{return JSON.parse(n)}catch{return n}}set(t,n){try{const r=typeof n=="string"?n:JSON.stringify(n);this.storageAdapter.setItem(t,r)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const lt=new mp(window.localStorage);function ml(e,t,n="/"){const r=pp({history:Ch(n),routes:e});return r.beforeEach(gp()),r.beforeEach(Ep(t)),r.beforeEach(vp(t)),r}const gp=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},Ep=e=>(t,n,r)=>{t.params.mesh&&t.params.mesh!==e.state.selectedMesh&&e.dispatch("updateSelectedMesh",t.params.mesh),r()},vp=e=>(t,n,r)=>{const s=e.state.onboarding.isCompleted,i=t.meta.onboardingProcess,o=e.getters.shouldShowOnboardingNotification;s&&i&&!o?r({name:"home"}):!s&&!i&&o?r({name:lt.get("onboardingStep")??"onboarding-welcome"}):r()};function _p(e,t,n){return async r=>{const s=Ff(r),i=await ml(t,n,e("KUMA_BASE_PATH"));return s.use(n,Xa),s.use(i),s}}function yp(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}function Tt(e,t=0){const n=bp(e);return n!==void 0?parseInt(n):t}function bp(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const Tp=()=>({items:(t="data-planes")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.dpp,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./DataPlaneListView-a1fb93b6.js"),["./RouteView-22a3f08a.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="data-plane")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,component:()=>V(()=>import("./DataPlaneDetailView-fdb62467.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]}),Ip=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>V(()=>import("./DiagnosticsView-2f219477.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],Sp=()=>({items:(t="gateways")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.gateway,gatewayType:n.query.gatewayType==="all"?"true":n.query.gatewayType,offset:Tt(n.query.offset),isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneListView-a1fb93b6.js"),["./RouteView-22a3f08a.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="gateway")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,props:()=>({isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneDetailView-fdb62467.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]});function Ap(e){return[{name:"Home",routeName:"home"},...e?[{name:"Zones",routeName:"zone-cp-list-view",anchorRouteName:"zone-index-view"}]:[{name:"Zone Egresses",routeName:"zone-egress-list-view",anchorRouteName:"zone-index-view"}],{name:"Meshes",routeName:"mesh-list-view",anchorRouteName:"mesh-index-view"}]}const Op=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:s=>({page:Tt(s.query.page),selectedMeshName:s.query.mesh}),component:()=>V(()=>import("./MeshListView-a1065e88.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",component:()=>V(()=>import("./MeshView-280b7907.js"),["./RouteView-22a3f08a.css"],import.meta.url),redirect:()=>({name:"mesh-list-view"}),children:[{path:":mesh",name:"mesh-abstract-view",redirect:()=>({name:"mesh-detail-view"}),component:()=>V(()=>import("./MeshItemView-7ce34429.js"),["./RouteView-22a3f08a.css"],import.meta.url),children:[{path:"",name:"mesh-detail-view",redirect:()=>({name:"mesh-overview-view"}),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-overview-view",component:()=>V(()=>import("./MeshOverviewView-a8b04ff3.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./MeshResources-e8681616.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./MeshOverviewView-9b45c9e6.css"],import.meta.url)},...e.items("services"),...t.items("gateways"),...n.items("data-planes"),...r.items("policies")]},...e.item("service"),...t.item("gateway"),...n.item("data-plane"),...r.item("policy")]}]}],wp=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>V(()=>import("./OnboardingView-0da04a46.js"),["./RouteView-22a3f08a.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>V(()=>import("./WelcomeView-4d8f1bd1.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./WelcomeView-cf973e31.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DeploymentTypes-da2ed16b.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-6867b00d.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./ConfigurationTypes-42c6a15a.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>V(()=>import("./MultiZoneView-014ca5ca.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-15591d17.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CreateMesh-f7b4300f.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./CreateMesh-f600c80c.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServices-722e8c98.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServicesCode-b3f2d62e.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./CodeBlock-7d9027b4.css","./AddNewServicesCode-a8a2e964.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-overview",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DataplanesOverview-a37b266c.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-5ec121ec.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CompletedView-182e6384.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],Rp=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let s=e.state.policyTypes.find(i=>i.name in e.state.sidebar.insights.mesh.policies?e.state.sidebar.insights.mesh.policies[i.name]!==0:!1);return s===void 0&&(s=e.state.policyTypes[0]),s===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:s.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>V(()=>import("./PolicyListView-d2f77bad.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./PolicyListView-2e2f4f44.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,selectedPolicyName:r.query.policy,offset:Tt(r.query.offset)})}]}]}],item:(n="policy")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${n==="policy"?":policyPath/":""}:policy`,name:`${n}-detail-view`,props:r=>({mesh:r.params.mesh,policyPath:r.params.policyPath,policyName:r.params.policy}),component:()=>V(()=>import("./PolicyDetailView-b2fcd47a.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),Cp=()=>({items:(t="services")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedServiceName:n.query.service,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./ServiceListView-23590bcc.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css"],import.meta.url)}]}],item:(t="")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:":service",name:`${t}-detail-view`,component:()=>V(()=>import("./ServiceDetailView-cd2d48eb.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css","./DataPlaneList-28426d93.css"],import.meta.url)}]}]}),Np=()=>[{path:"/wizard",name:"wizard",children:[{path:"mesh",name:"create-mesh",component:()=>V(()=>import("./MeshWizard-b1770598.js"),["./RouteView-22a3f08a.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./MeshWizard-97c77108.css"],import.meta.url)},{path:"kubernetes-dataplane",name:"kubernetes-dataplane",component:()=>V(()=>import("./DataplaneKubernetes-3e02669f.js"),["./RouteView-22a3f08a.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneKubernetes-3cc5ca78.css"],import.meta.url)},{path:"universal-dataplane",name:"universal-dataplane",component:()=>V(()=>import("./DataplaneUniversal-9a78b391.js"),["./RouteView-22a3f08a.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneUniversal-9bff3173.css"],import.meta.url)}]}],Pp=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>V(()=>import("./ZoneCreateView-8cae01cc.js"),["./CodeBlock-7d9027b4.css","./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./ZoneCreateView-ded76835.css"],import.meta.url)}],Lp=e=>[...e,{path:"/zones",name:"zone-index-view",component:()=>V(()=>import("./ZoneIndexView-8fc3bd67.js"),["./RouteView-22a3f08a.css"],import.meta.url),redirect:()=>({name:"zone-cp-list-view"}),children:[{path:"zone-cps",name:"zone-cp-abstract-view",meta:{module:"zone-cps"},children:[{path:"",name:"zone-cp-list-view",props:t=>({selectedZoneName:t.query.zone,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneListView-7e647860.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-view",component:()=>V(()=>import("./ZoneDetailView-6fd59ca0.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingress-abstract-view",meta:{module:"zone-ingresses"},children:[{path:"",name:"zone-ingress-list-view",props:t=>({selectedZoneIngressName:t.query.zoneIngress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneIngressListView-6de225b6.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>V(()=>import("./ZoneIngressDetailView-39dc4141.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egress-abstract-view",meta:{module:"zone-egresses"},children:[{path:"",name:"zone-egress-list-view",props:t=>({selectedZoneEgressName:t.query.zoneEgress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneEgressListView-5ae77833.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>V(()=>import("./ZoneEgressDetailView-d0a0d5df.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]}]}],Mp={common:{product:{name:"Kuma"},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."}}},Dp={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},Hp={http:{api:{property:{mtls:"mTLS",mTLS:"mTLS",globalInstanceId:"Global instance ID",controlPlaneInstanceId:"CP instance ID",connectTime:"Last connected",disconnectTime:"Disconnect time",cds:"CDS",eds:"EDS",lds:"LDS",rds:"RDS",responsesSent:"Responses sent",responsesAcknowledged:"Responses acknowledged",responsesRejected:"Responses rejected",certificateExpirationTime:"Expiration time",lastCertificateRegeneration:"Last generated",certificateRegenerations:"Regenerations"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available"}}}},Bp={"data-planes":{routes:{item:{title:"Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}}}},xp={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},Up={gateways:{routes:{item:{title:"Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},Fp={"main-overview":{routes:{item:{title:"Overview"}}}},kp={meshes:{routes:{item:{title:"{name}",breadcrumbs:"Meshes",navigation:{"mesh-overview-view":"Overview","services-abstract-view":"Services","data-planes-abstract-view":"Data Plane Proxies","gateways-abstract-view":"Gateways","policies-abstract-view":"Policies"}},items:{title:"Meshes",breadcrumbs:"Meshes"},overview:{title:"Mesh overview"}}}},$p={onboarding:{routes:{welcome:{title:"Welcome to {name}!"},"deployment-types":{title:"Deployment Types"},"configuration-types":{title:"Configuration Types"},multizone:{title:"Multizone"},"create-mesh":{title:"Create the Mesh"},"add-services":{title:"Add new services"},"add-services-code":{title:"Add new services"},"dataplanes-overview":{title:"Data plane overview"},completed:{title:"Completed"}}}},Gp={policies:{routes:{item:{title:"Policy",breadcrumbs:"Policies"},items:{title:"{name}"}}}},jp={services:{routes:{item:{title:"Service",breadcrumbs:"Services"},items:{title:"Services"}}}},Vp={"wizard-mesh":{routes:{item:{title:"Create a new mesh"}}},"wizard-universal":{routes:{item:{title:"Create a new data plane proxy on Universal"}}},"wizard-kubernetes":{routes:{item:{title:"Create a new data plane proxy on Kubernetes"}}}},Kp={"zone-ingresses":{routes:{item:{title:"Zone Ingress",breadcrumbs:"Zone Ingresses"},items:{title:"Zone Ingresses",breadcrumbs:"Zone Ingresses"}}},"zone-egresses":{routes:{item:{title:"Zone Egress",breadcrumbs:"Zone Egresses"},items:{title:"Zone Egresses",breadcrumbs:"Zone Egresses"}}},zones:{routes:{create:{title:"Create & connect Zone"},items:{breadcrumbs:"Zones",navigation:{"zone-cp-list-view":"Zone CPs","zone-ingress-list-view":"Zone Ingresses","zone-egress-list-view":"Zone Egresses"}}},form:{exit:"Exit",nameLabel:"Name",createZoneButtonLabel:"Create Zone & generate token",environmentLabel:"Environment",universalLabel:"Universal",kubernetesLabel:"Kubernetes",zoneIngressLabel:"Zone Ingress",zoneIngressEnabledLabel:"Enabled",zoneEgressLabel:"Zone Egress",zoneEgressEnabledLabel:"Enabled",connectZone:"Connect Zone",scan:{waitTitle:"Waiting for Zone to be connected …",completeTitle:"Done!",completeDescription:"The Zone “{name}” is now connected.",completeButtonLabel:"Go to Zone “{name}”",errorTitle:"Could not connect Zone",errorDescription:"We were unable to connect Zone."},universal:{saveToken:{title:"Save token",saveTokenDescription:"Save the token to a file.",saveTokenCommand:`mkdir -p ~/kuma-cp \\ + */const Xt=typeof window<"u";function dh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function Kr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ve(s)?s.map(e):e(s)}return n}const On=()=>{},Ve=Array.isArray,mh=/\/$/,gh=e=>e.replace(mh,"");function zr(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=yh(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Eh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function to(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function vh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&an(t.matched[r],n.matched[s])&&il(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function il(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_h(e[n],t[n]))return!1;return!0}function _h(e,t){return Ve(e)?no(e,t):Ve(t)?no(t,e):e===t}function no(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function yh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Bn;(function(e){e.pop="pop",e.push="push"})(Bn||(Bn={}));var wn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wn||(wn={}));function bh(e){if(!e)if(Xt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gh(e)}const Th=/^[^#]+#/;function Ih(e,t){return e.replace(Th,"#")+t}function Sh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Dr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ah(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Sh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ro(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Oh(e,t){Es.set(e,t)}function wh(e){const t=Es.get(e);return Es.delete(e),t}let Rh=()=>location.protocol+"//"+location.host;function ol(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),to(l,"")}return to(n,e)+r+s}function Ch(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const g=ol(e,location),I=n.value,b=t.value;let C=0;if(h){if(n.value=g,t.value=h,o&&o===I){o=null;return}C=b?h.position-b.position:0}else r(g);s.forEach(A=>{A(n.value,I,{delta:C,type:Bn.pop,direction:C?C>0?wn.forward:wn.back:wn.unknown})})};function l(){o=n.value}function u(h){s.push(h);const g=()=>{const I=s.indexOf(h);I>-1&&s.splice(I,1)};return i.push(g),g}function c(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Dr()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function so(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Dr():null}}function Nh(e){const{history:t,location:n}=window,r={value:ol(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Rh()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](h)}}function o(l,u){const c=ee({},t.state,so(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=ee({},s.value,t.state,{forward:l,scroll:Dr()});i(c.current,c,!0);const f=ee({},so(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Ph(e){e=bh(e);const t=Nh(e),n=Ch(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ee({location:"",base:e,go:r,createHref:Ih.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Lh(e){return typeof e=="string"||e&&typeof e=="object"}function al(e){return typeof e=="string"||typeof e=="symbol"}const gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ll=Symbol("");var io;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(io||(io={}));function ln(e,t){return ee(new Error,{type:e,[ll]:!0},t)}function it(e,t){return e instanceof Error&&ll in e&&(t==null||!!(e.type&t))}const oo="[^/]+?",Mh={sensitive:!1,strict:!1,start:!0,end:!0},Dh=/[.+*?^${}()[\]/\\]/g;function Hh(e,t){const n=ee({},Mh,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function xh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Uh={type:0,value:""},Fh=/[a-zA-Z0-9_]/;function kh(e){if(!e)return[[]];if(e==="/")return[[Uh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a{o(N)}:On}function o(c){if(al(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!cl(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!co(c)&&r.set(c.record.name,c)}function u(c,f){let h,g={},I,b;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw ln(1,{location:c});b=h.record.name,g=ee(lo(f.params,h.keys.filter(N=>!N.optional).map(N=>N.name)),c.params&&lo(c.params,h.keys.map(N=>N.name))),I=h.stringify(g)}else if("path"in c)I=c.path,h=n.find(N=>N.re.test(I)),h&&(g=h.parse(I),b=h.record.name);else{if(h=f.name?r.get(f.name):n.find(N=>N.re.test(f.path)),!h)throw ln(1,{location:c,currentLocation:f});b=h.record.name,g=ee({},f.params,c.params),I=h.stringify(g)}const C=[];let A=h;for(;A;)C.unshift(A.record),A=A.parent;return{name:b,path:I,params:g,matched:C,meta:Kh(C)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function lo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function jh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Vh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function co(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kh(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function uo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function cl(e,t){return t.children.some(n=>n===e||cl(e,n))}const ul=/#/g,zh=/&/g,Zh=/\//g,Wh=/=/g,Xh=/\?/g,fl=/\+/g,qh=/%5B/g,Yh=/%5D/g,hl=/%5E/g,Qh=/%60/g,pl=/%7B/g,Jh=/%7C/g,dl=/%7D/g,ep=/%20/g;function ri(e){return encodeURI(""+e).replace(Jh,"|").replace(qh,"[").replace(Yh,"]")}function tp(e){return ri(e).replace(pl,"{").replace(dl,"}").replace(hl,"^")}function vs(e){return ri(e).replace(fl,"%2B").replace(ep,"+").replace(ul,"%23").replace(zh,"%26").replace(Qh,"`").replace(pl,"{").replace(dl,"}").replace(hl,"^")}function np(e){return vs(e).replace(Wh,"%3D")}function rp(e){return ri(e).replace(ul,"%23").replace(Xh,"%3F")}function sp(e){return e==null?"":rp(e).replace(Zh,"%2F")}function vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ip(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&vs(i)):[r&&vs(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function op(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const ap=Symbol(""),ho=Symbol(""),Hr=Symbol(""),si=Symbol(""),_s=Symbol("");function vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function vt(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ln(4,{from:n,to:t})):f instanceof Error?a(f):Lh(f)?a(ln(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[s],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>a(f))})}function Zr(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(lp(a)){const u=(a.__vccOpts||a)[t];u&&s.push(vt(u,n,r,i,o))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=dh(u)?u.default:u;i.components[o]=c;const h=(c.__vccOpts||c)[t];return h&&vt(h,n,r,i,o)()}))}}return s}function lp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function po(e){const t=je(Hr),n=je(si),r=Le(()=>t.resolve(Jt(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(an.bind(null,c));if(h>-1)return h;const g=mo(l[u-2]);return u>1&&mo(c)===g&&f[f.length-1].path!==g?f.findIndex(an.bind(null,l[u-2])):h}),i=Le(()=>s.value>-1&&hp(n.params,r.value.params)),o=Le(()=>s.value>-1&&s.value===n.matched.length-1&&il(n.params,r.value.params));function a(l={}){return fp(l)?t[Jt(e.replace)?"replace":"push"](Jt(e.to)).catch(On):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const cp=Ia({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:po,setup(e,{slots:t}){const n=pn(po(e)),{options:r}=je(Hr),s=Le(()=>({[go(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[go(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Js("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),up=cp;function fp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hp(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ve(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function mo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const go=(e,t,n)=>e??t??n,pp=Ia({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=je(_s),s=Le(()=>e.route||r.value),i=je(ho,0),o=Le(()=>{let u=Jt(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Le(()=>s.value.matched[o.value]);ir(ho,Le(()=>o.value+1)),ir(ap,a),ir(_s,s);const l=qc();return tn(()=>[l.value,a.value,e.name],([u,c,f],[h,g,I])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!an(c,g)||!h)&&(c.enterCallbacks[f]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return Eo(n.default,{Component:h,route:u});const g=f.props[c],I=g?g===!0?u.params:typeof g=="function"?g(u):g:null,C=Js(h,ee({},I,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Eo(n.default,{Component:C,route:u})||C}}});function Eo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const dp=pp;function mp(e){const t=Gh(e.routes,e),n=e.parseQuery||ip,r=e.stringifyQuery||fo,s=e.history,i=vn(),o=vn(),a=vn(),l=Yc(gt);let u=gt;Xt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kr.bind(null,v=>""+v),f=Kr.bind(null,sp),h=Kr.bind(null,vr);function g(v,P){let w,B;return al(v)?(w=t.getRecordMatcher(v),B=P):B=v,t.addRoute(B,w)}function I(v){const P=t.getRecordMatcher(v);P&&t.removeRoute(P)}function b(){return t.getRoutes().map(v=>v.record)}function C(v){return!!t.getRecordMatcher(v)}function A(v,P){if(P=ee({},P||l.value),typeof v=="string"){const m=zr(n,v,P.path),E=t.resolve({path:m.path},P),_=s.createHref(m.fullPath);return ee(m,E,{params:h(E.params),hash:vr(m.hash),redirectedFrom:void 0,href:_})}let w;if("path"in v)w=ee({},v,{path:zr(n,v.path,P.path).path});else{const m=ee({},v.params);for(const E in m)m[E]==null&&delete m[E];w=ee({},v,{params:f(m)}),P.params=f(P.params)}const B=t.resolve(w,P),Q=v.hash||"";B.params=c(h(B.params));const p=Eh(r,ee({},v,{hash:tp(Q),path:B.path})),d=s.createHref(p);return ee({fullPath:p,hash:Q,query:r===fo?op(v.query):v.query||{}},B,{redirectedFrom:void 0,href:d})}function N(v){return typeof v=="string"?zr(n,v,l.value.path):ee({},v)}function H(v,P){if(u!==v)return ln(8,{from:P,to:v})}function L(v){return me(v)}function Z(v){return L(ee(N(v),{replace:!0}))}function ae(v){const P=v.matched[v.matched.length-1];if(P&&P.redirect){const{redirect:w}=P;let B=typeof w=="function"?w(v):w;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=N(B):{path:B},B.params={}),ee({query:v.query,hash:v.hash,params:"path"in B?{}:v.params},B)}}function me(v,P){const w=u=A(v),B=l.value,Q=v.state,p=v.force,d=v.replace===!0,m=ae(w);if(m)return me(ee(N(m),{state:typeof m=="object"?ee({},Q,m.state):Q,force:p,replace:d}),P||w);const E=w;E.redirectedFrom=P;let _;return!p&&vh(r,B,w)&&(_=ln(16,{to:E,from:B}),Ze(B,B,!0,!1)),(_?Promise.resolve(_):te(E,B)).catch(y=>it(y)?it(y,2)?y:ht(y):Y(y,E,B)).then(y=>{if(y){if(it(y,2))return me(ee({replace:d},N(y.to),{state:typeof y.to=="object"?ee({},Q,y.to.state):Q,force:p}),P||E)}else y=D(E,B,!0,d,Q);return ge(E,B,y),y})}function j(v,P){const w=H(v,P);return w?Promise.reject(w):Promise.resolve()}function le(v){const P=jt.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(v):v()}function te(v,P){let w;const[B,Q,p]=gp(v,P);w=Zr(B.reverse(),"beforeRouteLeave",v,P);for(const m of B)m.leaveGuards.forEach(E=>{w.push(vt(E,v,P))});const d=j.bind(null,v,P);return w.push(d),ye(w).then(()=>{w=[];for(const m of i.list())w.push(vt(m,v,P));return w.push(d),ye(w)}).then(()=>{w=Zr(Q,"beforeRouteUpdate",v,P);for(const m of Q)m.updateGuards.forEach(E=>{w.push(vt(E,v,P))});return w.push(d),ye(w)}).then(()=>{w=[];for(const m of v.matched)if(m.beforeEnter&&!P.matched.includes(m))if(Ve(m.beforeEnter))for(const E of m.beforeEnter)w.push(vt(E,v,P));else w.push(vt(m.beforeEnter,v,P));return w.push(d),ye(w)}).then(()=>(v.matched.forEach(m=>m.enterCallbacks={}),w=Zr(p,"beforeRouteEnter",v,P),w.push(d),ye(w))).then(()=>{w=[];for(const m of o.list())w.push(vt(m,v,P));return w.push(d),ye(w)}).catch(m=>it(m,8)?m:Promise.reject(m))}function ge(v,P,w){for(const B of a.list())le(()=>B(v,P,w))}function D(v,P,w,B,Q){const p=H(v,P);if(p)return p;const d=P===gt,m=Xt?history.state:{};w&&(B||d?s.replace(v.fullPath,ee({scroll:d&&m&&m.scroll},Q)):s.push(v.fullPath,Q)),l.value=v,Ze(v,P,w,d),ht()}let J;function Te(){J||(J=s.listen((v,P,w)=>{if(!Gn.listening)return;const B=A(v),Q=ae(B);if(Q){me(ee(Q,{replace:!0}),B).catch(On);return}u=B;const p=l.value;Xt&&Oh(ro(p.fullPath,w.delta),Dr()),te(B,p).catch(d=>it(d,12)?d:it(d,2)?(me(d.to,B).then(m=>{it(m,20)&&!w.delta&&w.type===Bn.pop&&s.go(-1,!1)}).catch(On),Promise.reject()):(w.delta&&s.go(-w.delta,!1),Y(d,B,p))).then(d=>{d=d||D(B,p,!1),d&&(w.delta&&!it(d,8)?s.go(-w.delta,!1):w.type===Bn.pop&&it(d,20)&&s.go(-1,!1)),ge(B,p,d)}).catch(On)}))}let rt=vn(),fe=vn(),re;function Y(v,P,w){ht(v);const B=fe.list();return B.length?B.forEach(Q=>Q(v,P,w)):console.error(v),Promise.reject(v)}function st(){return re&&l.value!==gt?Promise.resolve():new Promise((v,P)=>{rt.add([v,P])})}function ht(v){return re||(re=!v,Te(),rt.list().forEach(([P,w])=>v?w(v):P()),rt.reset()),v}function Ze(v,P,w,B){const{scrollBehavior:Q}=e;if(!Xt||!Q)return Promise.resolve();const p=!w&&wh(ro(v.fullPath,0))||(B||!w)&&history.state&&history.state.scroll||null;return da().then(()=>Q(v,P,p)).then(d=>d&&Ah(d)).catch(d=>Y(d,v,P))}const Oe=v=>s.go(v);let Gt;const jt=new Set,Gn={currentRoute:l,listening:!0,addRoute:g,removeRoute:I,hasRoute:C,getRoutes:b,resolve:A,options:e,push:L,replace:Z,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:fe.add,isReady:st,install(v){const P=this;v.component("RouterLink",up),v.component("RouterView",dp),v.config.globalProperties.$router=P,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(l)}),Xt&&!Gt&&l.value===gt&&(Gt=!0,L(s.location).catch(Q=>{}));const w={};for(const Q in gt)w[Q]=Le(()=>l.value[Q]);v.provide(Hr,P),v.provide(si,pn(w)),v.provide(_s,l);const B=v.unmount;jt.add(v),v.unmount=function(){jt.delete(v),jt.size<1&&(u=gt,J&&J(),J=null,l.value=gt,Gt=!1,re=!1),B()}}};function ye(v){return v.reduce((P,w)=>P.then(()=>le(w)),Promise.resolve())}return Gn}function gp(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oan(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>an(u,l))||s.push(l))}return[n,r,s]}function kE(){return je(Hr)}function $E(){return je(si)}class Ep{constructor(t){Ue(this,"storageAdapter");this.storageAdapter=t}get(t){let n;try{n=this.storageAdapter.getItem(t)}catch{return null}if(n===null||!(n.startsWith("[")||n.startsWith("{")))return n;try{return JSON.parse(n)}catch{return n}}set(t,n){try{const r=typeof n=="string"?n:JSON.stringify(n);this.storageAdapter.setItem(t,r)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const lt=new Ep(window.localStorage);function ml(e,t,n="/"){const r=mp({history:Ph(n),routes:e});return r.beforeEach(vp()),r.beforeEach(_p(t)),r.beforeEach(yp(t)),r}const vp=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},_p=e=>(t,n,r)=>{t.params.mesh&&t.params.mesh!==e.state.selectedMesh&&e.dispatch("updateSelectedMesh",t.params.mesh),r()},yp=e=>(t,n,r)=>{const s=e.state.onboarding.isCompleted,i=t.meta.onboardingProcess,o=e.getters.shouldShowOnboardingNotification;s&&i&&!o?r({name:"home"}):!s&&!i&&o?r({name:lt.get("onboardingStep")??"onboarding-welcome"}):r()};function bp(e,t,n){return async r=>{const s=Ff(r),i=await ml(t,n,e("KUMA_BASE_PATH"));return s.use(n,Xa),s.use(i),s}}function Tp(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}function Tt(e,t=0){const n=Ip(e);return n!==void 0?parseInt(n):t}function Ip(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const Sp=()=>({items:(t="data-planes")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.dpp,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./DataPlaneListView-80bf6214.js"),["./RouteView-22a3f08a.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="data-plane")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,component:()=>V(()=>import("./DataPlaneDetailView-48047e68.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]}),Ap=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>V(()=>import("./DiagnosticsView-b0006384.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],Op=()=>({items:(t="gateways")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.gateway,gatewayType:n.query.gatewayType==="all"?"true":n.query.gatewayType,offset:Tt(n.query.offset),isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneListView-80bf6214.js"),["./RouteView-22a3f08a.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="gateway")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,props:()=>({isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneDetailView-48047e68.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]});function wp(e){return[{name:"Home",routeName:"home"},...e?[{name:"Zones",routeName:"zone-cp-list-view",anchorRouteName:"zone-index-view"}]:[{name:"Zone Egresses",routeName:"zone-egress-list-view",anchorRouteName:"zone-index-view"}],{name:"Meshes",routeName:"mesh-list-view",anchorRouteName:"mesh-index-view"}]}const Rp=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:s=>({page:Tt(s.query.page),selectedMeshName:s.query.mesh}),component:()=>V(()=>import("./MeshListView-5e70b74a.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",component:()=>V(()=>import("./MeshView-21beb898.js"),["./RouteView-22a3f08a.css"],import.meta.url),redirect:()=>({name:"mesh-list-view"}),children:[{path:":mesh",name:"mesh-abstract-view",redirect:()=>({name:"mesh-detail-view"}),component:()=>V(()=>import("./MeshItemView-05118668.js"),["./RouteView-22a3f08a.css"],import.meta.url),children:[{path:"",name:"mesh-detail-view",redirect:()=>({name:"mesh-overview-view"}),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-overview-view",component:()=>V(()=>import("./MeshOverviewView-d2b36b83.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./MeshResources-e8681616.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./MeshOverviewView-9b45c9e6.css"],import.meta.url)},...e.items("services"),...t.items("gateways"),...n.items("data-planes"),...r.items("policies")]},...e.item("service"),...t.item("gateway"),...n.item("data-plane"),...r.item("policy")]}]}],Cp=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>V(()=>import("./OnboardingView-46286745.js"),["./RouteView-22a3f08a.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>V(()=>import("./WelcomeView-0d40fe0b.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./WelcomeView-cf973e31.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DeploymentTypes-33994be5.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-6867b00d.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./ConfigurationTypes-f46345c2.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>V(()=>import("./MultiZoneView-31207c2f.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-15591d17.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CreateMesh-34a0ce47.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./CreateMesh-f600c80c.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServices-ffa39487.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServicesCode-c8896231.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./CodeBlock-7d9027b4.css","./AddNewServicesCode-a8a2e964.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-overview",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DataplanesOverview-54aa5c01.js"),["./RouteView-22a3f08a.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-5ec121ec.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CompletedView-38c65757.js"),["./RouteView-22a3f08a.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],Np=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let s=e.state.policyTypes.find(i=>i.name in e.state.sidebar.insights.mesh.policies?e.state.sidebar.insights.mesh.policies[i.name]!==0:!1);return s===void 0&&(s=e.state.policyTypes[0]),s===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:s.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>V(()=>import("./PolicyListView-8f70c22b.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./PolicyListView-2e2f4f44.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,selectedPolicyName:r.query.policy,offset:Tt(r.query.offset)})}]}]}],item:(n="policy")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${n==="policy"?":policyPath/":""}:policy`,name:`${n}-detail-view`,props:r=>({mesh:r.params.mesh,policyPath:r.params.policyPath,policyName:r.params.policy}),component:()=>V(()=>import("./PolicyDetailView-8600a5f0.js"),["./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),Pp=()=>({items:(t="services")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedServiceName:n.query.service,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./ServiceListView-6d15a789.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css"],import.meta.url)}]}],item:(t="")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:":service",name:`${t}-detail-view`,component:()=>V(()=>import("./ServiceDetailView-11066707.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css","./DataPlaneList-28426d93.css"],import.meta.url)}]}]}),Lp=()=>[{path:"/wizard",name:"wizard",children:[{path:"mesh",name:"create-mesh",component:()=>V(()=>import("./MeshWizard-e7f4eda0.js"),["./RouteView-22a3f08a.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./MeshWizard-97c77108.css"],import.meta.url)},{path:"kubernetes-dataplane",name:"kubernetes-dataplane",component:()=>V(()=>import("./DataplaneKubernetes-9e8777c7.js"),["./RouteView-22a3f08a.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneKubernetes-3cc5ca78.css"],import.meta.url)},{path:"universal-dataplane",name:"universal-dataplane",component:()=>V(()=>import("./DataplaneUniversal-a226067e.js"),["./RouteView-22a3f08a.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneUniversal-9bff3173.css"],import.meta.url)}]}],Mp=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>V(()=>import("./ZoneCreateView-96af1d60.js"),["./CodeBlock-7d9027b4.css","./RouteView-22a3f08a.css","./ErrorBlock-20da7d1b.css","./ZoneCreateView-ded76835.css"],import.meta.url)}],Dp=e=>[...e,{path:"/zones",name:"zone-index-view",component:()=>V(()=>import("./ZoneIndexView-16861d5e.js"),["./RouteView-22a3f08a.css"],import.meta.url),redirect:()=>({name:"zone-cp-list-view"}),children:[{path:"zone-cps",name:"zone-cp-abstract-view",meta:{module:"zone-cps"},children:[{path:"",name:"zone-cp-list-view",props:t=>({selectedZoneName:t.query.zone,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneListView-710fec54.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-view",component:()=>V(()=>import("./ZoneDetailView-1fa7e66a.js"),["./RouteView-22a3f08a.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingress-abstract-view",meta:{module:"zone-ingresses"},children:[{path:"",name:"zone-ingress-list-view",props:t=>({selectedZoneIngressName:t.query.zoneIngress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneIngressListView-e7a95459.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>V(()=>import("./ZoneIngressDetailView-34922039.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egress-abstract-view",meta:{module:"zone-egresses"},children:[{path:"",name:"zone-egress-list-view",props:t=>({selectedZoneEgressName:t.query.zoneEgress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneEgressListView-9eb4b45d.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>V(()=>import("./ZoneEgressDetailView-93b98f09.js"),["./RouteView-22a3f08a.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]}]}],Hp={common:{product:{name:"Kuma"},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."}}},Bp={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},xp={http:{api:{property:{mtls:"mTLS",mTLS:"mTLS",globalInstanceId:"Global instance ID",controlPlaneInstanceId:"CP instance ID",connectTime:"Last connected",disconnectTime:"Disconnect time",cds:"CDS",eds:"EDS",lds:"LDS",rds:"RDS",responsesSent:"Responses sent",responsesAcknowledged:"Responses acknowledged",responsesRejected:"Responses rejected",certificateExpirationTime:"Expiration time",lastCertificateRegeneration:"Last generated",certificateRegenerations:"Regenerations"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available"}}}},Up={"data-planes":{routes:{item:{title:"Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}}}},Fp={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},kp={gateways:{routes:{item:{title:"Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},$p={"main-overview":{routes:{item:{title:"Overview"}}}},Gp={meshes:{routes:{item:{title:"{name}",breadcrumbs:"Meshes",navigation:{"mesh-overview-view":"Overview","services-abstract-view":"Services","data-planes-abstract-view":"Data Plane Proxies","gateways-abstract-view":"Gateways","policies-abstract-view":"Policies"}},items:{title:"Meshes",breadcrumbs:"Meshes"},overview:{title:"Mesh overview"}}}},jp={onboarding:{routes:{welcome:{title:"Welcome to {name}!"},"deployment-types":{title:"Deployment Types"},"configuration-types":{title:"Configuration Types"},multizone:{title:"Multizone"},"create-mesh":{title:"Create the Mesh"},"add-services":{title:"Add new services"},"add-services-code":{title:"Add new services"},"dataplanes-overview":{title:"Data plane overview"},completed:{title:"Completed"}}}},Vp={policies:{routes:{item:{title:"Policy",breadcrumbs:"Policies"},items:{title:"{name}"}}}},Kp={services:{routes:{item:{title:"Service",breadcrumbs:"Services"},items:{title:"Services"}}}},zp={"wizard-mesh":{routes:{item:{title:"Create a new mesh"}}},"wizard-universal":{routes:{item:{title:"Create a new data plane proxy on Universal"}}},"wizard-kubernetes":{routes:{item:{title:"Create a new data plane proxy on Kubernetes"}}}},Zp={"zone-ingresses":{routes:{item:{title:"Zone Ingress",breadcrumbs:"Zone Ingresses"},items:{title:"Zone Ingresses",breadcrumbs:"Zone Ingresses"}}},"zone-egresses":{routes:{item:{title:"Zone Egress",breadcrumbs:"Zone Egresses"},items:{title:"Zone Egresses",breadcrumbs:"Zone Egresses"}}},zones:{routes:{create:{title:"Create & connect Zone"},items:{breadcrumbs:"Zones",navigation:{"zone-cp-list-view":"Zone CPs","zone-ingress-list-view":"Zone Ingresses","zone-egress-list-view":"Zone Egresses"}}},form:{exit:"Exit",nameLabel:"Name",createZoneButtonLabel:"Create Zone & generate token",environmentLabel:"Environment",universalLabel:"Universal",kubernetesLabel:"Kubernetes",zoneIngressLabel:"Zone Ingress",zoneIngressEnabledLabel:"Enabled",zoneEgressLabel:"Zone Egress",zoneEgressEnabledLabel:"Enabled",connectZone:"Connect Zone",scan:{waitTitle:"Waiting for Zone to be connected …",completeTitle:"Done!",completeDescription:"The Zone “{name}” is now connected.",completeButtonLabel:"Go to Zone “{name}”",errorTitle:"Could not connect Zone",errorDescription:"We were unable to connect Zone."},universal:{saveToken:{title:"Save token",saveTokenDescription:"Save the token to a file.",saveTokenCommand:`mkdir -p ~/kuma-cp \\ && echo {token} > ~/kuma-cp/cpTokenFile \\ && chmod 600 ~/kuma-cp/cpTokenFile `},connectZone:{title:"Connect Zone",configDescription:"Copy and paste the following configuration into the config.yaml on your local machine.",configFileName:"config.yaml",config:`environment: universal @@ -43,25 +43,25 @@ egress: enabled: {zoneEgressEnabled} experimental: deltaKds: true -`,connectDescription:"Next, run the following command to connect the Zone.",connectCommand:"helm install -n kuma-system -f values.yaml kuma kuma/kuma"}}},create:{errorTitle:"Could not create the Zone"},delete:{confirmModal:{text1:"Are you sure you want to delete the Zone {zoneName}?",text2:"This action cannot be reversed.",proceedText:"Yes, delete",title:"Delete Zone",errorText:"An unexpected error occurred"}}},"zone-cps":{routes:{item:{title:"Zone CP",breadcrumbs:"Zone CPs"},items:{title:"Zone CPs",breadcrumbs:"Zone CPs"}}}},zp={...Mp,...Hp,...Dp,...Fp,...$p,...xp,...Vp,...kp,...jp,...Gp,...Bp,...Up,...Kp},Zp=(e,t,n,r,s)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>V(()=>import("./AppNotFoundView-09fab465.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>V(()=>import("./MainOverviewView-a8c07580.js"),["./RouteView-22a3f08a.css","./MeshResources-e8681616.css"],import.meta.url)},...e,...t,...r,...n,...s];function Wp(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"1.7.0"}}class Xp{constructor(t){Ue(this,"env");let n=t;const r=(a,l="")=>this.var(a,(n==null?void 0:n[a])??l),s=this.getConfig(),i=Yp(r("KUMA_VERSION",s.version)),o=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${o}&utm_medium=${o}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:r("KUMA_API_URL")||s.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||s.baseGuiPath}}var(t,n=""){var r;return((r=this.env)==null?void 0:r[t])??n}getConfig(){const t=document.querySelector("#kuma-config");let n;if(t instanceof HTMLScriptElement&&t.textContent)try{n=JSON.parse(t.textContent.trim())}catch(r){console.error(r)}return n||(n=Wp(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=qp(n.apiUrl),n}}function gl(e){return e.endsWith("/")?gl(e.slice(0,-1)):e}function qp(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,gl(e)}function Yp(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[s,i]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${s}`,pre:`${t}.${n}.${s}${i!==void 0?`-${i}`:""}`}}var ys=function(e,t){return ys=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},ys(e,t)};function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ys(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,s=t;r1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(od,function(l,u,c,f,h,g){if(u)t.minimumIntegerDigits=c.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ol.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(_o.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(_o,function(l,u,c,f,h,g){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=s.options[0];i==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),yo(i)));continue}if(Al.test(s.stem)){t=U(U({},t),yo(s.stem));continue}var o=wl(s.stem);o&&(t=U(U({},t),o));var a=ad(s.stem);a&&(t=U(U({},t),a))}return t}var Xn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cd(e,t){for(var n="",r=0;r>1),l="a",u=ud(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;o-- >0;)n=u+n}else s==="J"?n+="H":n+=s}return n}function ud(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var s=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return s[0]}var Wr,fd=new RegExp("^".concat(Sl.source,"*")),hd=new RegExp("".concat(Sl.source,"*$"));function W(e,t){return{start:e,end:t}}var pd=!!String.prototype.startsWith,dd=!!String.fromCodePoint,md=!!Object.fromEntries,gd=!!String.prototype.codePointAt,Ed=!!String.prototype.trimStart,vd=!!String.prototype.trimEnd,_d=!!Number.isSafeInteger,yd=_d?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ts=!0;try{var bd=Cl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ts=((Wr=bd.exec("a"))===null||Wr===void 0?void 0:Wr[0])==="a"}catch{Ts=!1}var To=pd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Is=dd?String.fromCodePoint:function(){for(var e=[],t=0;ts;){if(i=e[s++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},Io=md?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),s;return r<55296||r>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},Td=Ed?function(e){return e.trimStart()}:function(e){return e.replace(fd,"")},Id=vd?function(e){return e.trimEnd()}:function(e){return e.replace(hd,"")};function Cl(e,t){return new RegExp(e,t)}var Ss;if(Ts){var So=Cl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ss=function(e,t){var n;So.lastIndex=t;var r=So.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else Ss=function(e,t){for(var n=[];;){var r=Rl(e,t);if(r===void 0||Nl(r)||wd(r))break;n.push(r),t+=r>=65536?2:1}return Is.apply(void 0,n)};var Sd=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;s.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ce.pound,location:W(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(z.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&As(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(s,"/>"),location:W(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:ce.tag,value:s,children:o,location:W(r,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,W(a,this.clonePosition())))}else return this.error(z.UNCLOSED_TAG,W(r,this.clonePosition()))}else return this.error(z.INVALID_TAG,W(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Od(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),s="";;){var i=this.tryParseQuote(n);if(i){s+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){s+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=W(r,this.clonePosition());return{val:{type:ce.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ad(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Is.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Is(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(z.EMPTY_ARGUMENT,W(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:s,location:W(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition())):this.parseArgumentOptions(t,n,s,r);default:return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ss(this.message,n),s=n+r.length;this.bumpTo(s);var i=this.clonePosition(),o=W(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,s){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,W(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=Id(f.val);if(h.length===0)return this.error(z.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));var g=W(c,this.clonePosition());u={style:h,styleLocation:g}}var I=this.tryParseArgumentClose(s);if(I.err)return I;var b=W(s,this.clonePosition());if(u&&To(u==null?void 0:u.style,"::",0)){var C=Td(u.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(C,u.styleLocation);return f.err?f:{val:{type:ce.number,value:r,location:b,style:f.val},err:null}}else{if(C.length===0)return this.error(z.EXPECT_DATE_TIME_SKELETON,b);var A=C;this.locale&&(A=cd(C,this.locale));var h={type:cn.dateTime,pattern:A,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?nd(A):{}},N=a==="date"?ce.date:ce.time;return{val:{type:N,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?ce.number:a==="date"?ce.date:ce.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,W(H,U({},H)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),Z=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),Z=f.val}var ae=this.tryParsePluralOrSelectOptions(t,a,n,L);if(ae.err)return ae;var I=this.tryParseArgumentClose(s);if(I.err)return I;var me=W(s,this.clonePosition());return a==="select"?{val:{type:ce.select,value:r,options:Io(ae.val),location:me},err:null}:{val:{type:ce.plural,value:r,options:Io(ae.val),offset:Z,pluralType:a==="plural"?"cardinal":"ordinal",location:me},err:null}}default:return this.error(z.INVALID_ARGUMENT_TYPE,W(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=sd(t)}catch{return this.error(z.INVALID_NUMBER_SKELETON,n)}return{val:{type:cn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ld(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,s){for(var i,o=!1,a=[],l=new Set,u=s.value,c=s.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=W(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(t+1,n,r);if(I.err)return I;var b=this.tryParseArgumentClose(g);if(b.err)return b;a.push([u,{value:I.val,location:W(g,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return a.length===0?this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(z.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=o*10+(a-48),this.bump();else break}var l=W(s,this.clonePosition());return i?(o*=r,yd(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Rl(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(To(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function As(e){return e>=97&&e<=122||e>=65&&e<=90}function Ad(e){return As(e)||e===47}function Od(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Nl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wd(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Os(e){e.forEach(function(t){if(delete t.location,yl(t)||bl(t))for(var n in t.options)delete t.options[n].location,Os(t.options[n].value);else El(t)&&Il(t.style)||(vl(t)||_l(t))&&bs(t.style)?delete t.style.location:Tl(t)&&Os(t.children)})}function Rd(e,t){t===void 0&&(t={}),t=U({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Sd(e,t).parse();if(n.err){var r=SyntaxError(z[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Os(n.val),n.val}function Ye(e,t){var n=t&&t.cache?t.cache:Dd,r=t&&t.serializer?t.serializer:Md,s=t&&t.strategy?t.strategy:Nd;return s(e,{cache:n,serializer:r})}function Cd(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Pl(e,t,n,r){var s=Cd(r)?r:n(r),i=t.get(s);return typeof i>"u"&&(i=e.call(this,r),t.set(s,i)),i}function Ll(e,t,n){var r=Array.prototype.slice.call(arguments,3),s=n(r),i=t.get(s);return typeof i>"u"&&(i=e.apply(this,r),t.set(s,i)),i}function ii(e,t,n,r,s){return n.bind(t,e,r,s)}function Nd(e,t){var n=e.length===1?Pl:Ll;return ii(e,this,n,t.cache.create(),t.serializer)}function Pd(e,t){return ii(e,this,Ll,t.cache.create(),t.serializer)}function Ld(e,t){return ii(e,this,Pl,t.cache.create(),t.serializer)}var Md=function(){return JSON.stringify(arguments)};function oi(){this.cache=Object.create(null)}oi.prototype.get=function(e){return this.cache[e]};oi.prototype.set=function(e,t){this.cache[e]=t};var Dd={create:function(){return new oi}},Qe={variadic:Pd,monadic:Ld},nt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(nt||(nt={}));var At=function(e){ze(t,e);function t(n,r,s){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ao=function(e){ze(t,e);function t(n,r,s,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),nt.INVALID_VALUE,i)||this}return t}(At),Hd=function(e){ze(t,e);function t(n,r,s){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),nt.INVALID_VALUE,s)||this}return t}(At),Bd=function(e){ze(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),nt.MISSING_VALUE,r)||this}return t}(At),Se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Se||(Se={}));function xd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Se.literal||n.type!==Se.literal?t.push(n):r.value+=n.value,t},[])}function Ud(e){return typeof e=="function"}function ar(e,t,n,r,s,i,o){if(e.length===1&&vo(e[0]))return[{type:Se.literal,value:e[0].value}];for(var a=[],l=0,u=e;l[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>V(()=>import("./AppNotFoundView-d81284b8.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>V(()=>import("./MainOverviewView-f40f531e.js"),["./RouteView-22a3f08a.css","./MeshResources-e8681616.css"],import.meta.url)},...e,...t,...r,...n,...s];function qp(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"1.7.0"}}class Yp{constructor(t){Ue(this,"env");let n=t;const r=(a,l="")=>this.var(a,(n==null?void 0:n[a])??l),s=this.getConfig(),i=Jp(r("KUMA_VERSION",s.version)),o=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${o}&utm_medium=${o}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:r("KUMA_API_URL")||s.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||s.baseGuiPath}}var(t,n=""){var r;return((r=this.env)==null?void 0:r[t])??n}getConfig(){const t=document.querySelector("#kuma-config");let n;if(t instanceof HTMLScriptElement&&t.textContent)try{n=JSON.parse(t.textContent.trim())}catch(r){console.error(r)}return n||(n=qp(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=Qp(n.apiUrl),n}}function gl(e){return e.endsWith("/")?gl(e.slice(0,-1)):e}function Qp(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,gl(e)}function Jp(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[s,i]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${s}`,pre:`${t}.${n}.${s}${i!==void 0?`-${i}`:""}`}}var ys=function(e,t){return ys=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},ys(e,t)};function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ys(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,s=t;r1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(ld,function(l,u,c,f,h,g){if(u)t.minimumIntegerDigits=c.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ol.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(_o.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(_o,function(l,u,c,f,h,g){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=s.options[0];i==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),yo(i)));continue}if(Al.test(s.stem)){t=U(U({},t),yo(s.stem));continue}var o=wl(s.stem);o&&(t=U(U({},t),o));var a=cd(s.stem);a&&(t=U(U({},t),a))}return t}var Xn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fd(e,t){for(var n="",r=0;r>1),l="a",u=hd(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;o-- >0;)n=u+n}else s==="J"?n+="H":n+=s}return n}function hd(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var s=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return s[0]}var Wr,pd=new RegExp("^".concat(Sl.source,"*")),dd=new RegExp("".concat(Sl.source,"*$"));function W(e,t){return{start:e,end:t}}var md=!!String.prototype.startsWith,gd=!!String.fromCodePoint,Ed=!!Object.fromEntries,vd=!!String.prototype.codePointAt,_d=!!String.prototype.trimStart,yd=!!String.prototype.trimEnd,bd=!!Number.isSafeInteger,Td=bd?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ts=!0;try{var Id=Cl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ts=((Wr=Id.exec("a"))===null||Wr===void 0?void 0:Wr[0])==="a"}catch{Ts=!1}var To=md?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Is=gd?String.fromCodePoint:function(){for(var e=[],t=0;ts;){if(i=e[s++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},Io=Ed?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),s;return r<55296||r>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},Sd=_d?function(e){return e.trimStart()}:function(e){return e.replace(pd,"")},Ad=yd?function(e){return e.trimEnd()}:function(e){return e.replace(dd,"")};function Cl(e,t){return new RegExp(e,t)}var Ss;if(Ts){var So=Cl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ss=function(e,t){var n;So.lastIndex=t;var r=So.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else Ss=function(e,t){for(var n=[];;){var r=Rl(e,t);if(r===void 0||Nl(r)||Cd(r))break;n.push(r),t+=r>=65536?2:1}return Is.apply(void 0,n)};var Od=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;s.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ce.pound,location:W(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(z.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&As(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(s,"/>"),location:W(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:ce.tag,value:s,children:o,location:W(r,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,W(a,this.clonePosition())))}else return this.error(z.UNCLOSED_TAG,W(r,this.clonePosition()))}else return this.error(z.INVALID_TAG,W(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Rd(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),s="";;){var i=this.tryParseQuote(n);if(i){s+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){s+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=W(r,this.clonePosition());return{val:{type:ce.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wd(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Is.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Is(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(z.EMPTY_ARGUMENT,W(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:s,location:W(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition())):this.parseArgumentOptions(t,n,s,r);default:return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ss(this.message,n),s=n+r.length;this.bumpTo(s);var i=this.clonePosition(),o=W(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,s){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,W(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=Ad(f.val);if(h.length===0)return this.error(z.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));var g=W(c,this.clonePosition());u={style:h,styleLocation:g}}var I=this.tryParseArgumentClose(s);if(I.err)return I;var b=W(s,this.clonePosition());if(u&&To(u==null?void 0:u.style,"::",0)){var C=Sd(u.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(C,u.styleLocation);return f.err?f:{val:{type:ce.number,value:r,location:b,style:f.val},err:null}}else{if(C.length===0)return this.error(z.EXPECT_DATE_TIME_SKELETON,b);var A=C;this.locale&&(A=fd(C,this.locale));var h={type:cn.dateTime,pattern:A,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?sd(A):{}},N=a==="date"?ce.date:ce.time;return{val:{type:N,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?ce.number:a==="date"?ce.date:ce.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,W(H,U({},H)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),Z=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),Z=f.val}var ae=this.tryParsePluralOrSelectOptions(t,a,n,L);if(ae.err)return ae;var I=this.tryParseArgumentClose(s);if(I.err)return I;var me=W(s,this.clonePosition());return a==="select"?{val:{type:ce.select,value:r,options:Io(ae.val),location:me},err:null}:{val:{type:ce.plural,value:r,options:Io(ae.val),offset:Z,pluralType:a==="plural"?"cardinal":"ordinal",location:me},err:null}}default:return this.error(z.INVALID_ARGUMENT_TYPE,W(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=od(t)}catch{return this.error(z.INVALID_NUMBER_SKELETON,n)}return{val:{type:cn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ud(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,s){for(var i,o=!1,a=[],l=new Set,u=s.value,c=s.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=W(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(t+1,n,r);if(I.err)return I;var b=this.tryParseArgumentClose(g);if(b.err)return b;a.push([u,{value:I.val,location:W(g,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return a.length===0?this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(z.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=o*10+(a-48),this.bump();else break}var l=W(s,this.clonePosition());return i?(o*=r,Td(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Rl(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(To(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function As(e){return e>=97&&e<=122||e>=65&&e<=90}function wd(e){return As(e)||e===47}function Rd(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Nl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Cd(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Os(e){e.forEach(function(t){if(delete t.location,yl(t)||bl(t))for(var n in t.options)delete t.options[n].location,Os(t.options[n].value);else El(t)&&Il(t.style)||(vl(t)||_l(t))&&bs(t.style)?delete t.style.location:Tl(t)&&Os(t.children)})}function Nd(e,t){t===void 0&&(t={}),t=U({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Od(e,t).parse();if(n.err){var r=SyntaxError(z[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Os(n.val),n.val}function Ye(e,t){var n=t&&t.cache?t.cache:Bd,r=t&&t.serializer?t.serializer:Hd,s=t&&t.strategy?t.strategy:Ld;return s(e,{cache:n,serializer:r})}function Pd(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Pl(e,t,n,r){var s=Pd(r)?r:n(r),i=t.get(s);return typeof i>"u"&&(i=e.call(this,r),t.set(s,i)),i}function Ll(e,t,n){var r=Array.prototype.slice.call(arguments,3),s=n(r),i=t.get(s);return typeof i>"u"&&(i=e.apply(this,r),t.set(s,i)),i}function ii(e,t,n,r,s){return n.bind(t,e,r,s)}function Ld(e,t){var n=e.length===1?Pl:Ll;return ii(e,this,n,t.cache.create(),t.serializer)}function Md(e,t){return ii(e,this,Ll,t.cache.create(),t.serializer)}function Dd(e,t){return ii(e,this,Pl,t.cache.create(),t.serializer)}var Hd=function(){return JSON.stringify(arguments)};function oi(){this.cache=Object.create(null)}oi.prototype.get=function(e){return this.cache[e]};oi.prototype.set=function(e,t){this.cache[e]=t};var Bd={create:function(){return new oi}},Qe={variadic:Md,monadic:Dd},nt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(nt||(nt={}));var At=function(e){ze(t,e);function t(n,r,s){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ao=function(e){ze(t,e);function t(n,r,s,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),nt.INVALID_VALUE,i)||this}return t}(At),xd=function(e){ze(t,e);function t(n,r,s){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),nt.INVALID_VALUE,s)||this}return t}(At),Ud=function(e){ze(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),nt.MISSING_VALUE,r)||this}return t}(At),Se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Se||(Se={}));function Fd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Se.literal||n.type!==Se.literal?t.push(n):r.value+=n.value,t},[])}function kd(e){return typeof e=="function"}function ar(e,t,n,r,s,i,o){if(e.length===1&&vo(e[0]))return[{type:Se.literal,value:e[0].value}];for(var a=[],l=0,u=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Rd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),xt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(xt||(xt={}));var kn=function(e){ze(t,e);function t(n,r,s){var i=this,o=s?s instanceof Error?s:new Error(String(s)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,nt.MISSING_INTL_API,o);var L=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));H=c.options[L]||c.options.other}if(!H)throw new Ao(c.value,h,Object.keys(c.options),o);a.push.apply(a,ar(H.value,t,n,r,s,h-(c.offset||0)));continue}}return Fd(a)}function $d(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=U(U({},e[r]),t[r]||{}),n},{})):e}function Gd(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=$d(e[r],t[r]),n},U({},e)):e}function Xr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function jd(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ye(function(){for(var t,n=[],r=0;r"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Nd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),xt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(xt||(xt={}));var kn=function(e){ze(t,e);function t(n,r,s){var i=this,o=s?s instanceof Error?s:new Error(String(s)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(o?` `.concat(o.message,` -`).concat(o.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),Gd=function(e){ze(t,e);function t(n,r){return e.call(this,xt.UNSUPPORTED_FORMATTER,n,r)||this}return t}(kn),jd=function(e){ze(t,e);function t(n,r){return e.call(this,xt.INVALID_CONFIG,n,r)||this}return t}(kn),Oo=function(e){ze(t,e);function t(n,r){return e.call(this,xt.MISSING_DATA,n,r)||this}return t}(kn),Be=function(e){ze(t,e);function t(n,r,s){var i=e.call(this,xt.FORMAT_ERROR,"".concat(n,` +`).concat(o.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),Vd=function(e){ze(t,e);function t(n,r){return e.call(this,xt.UNSUPPORTED_FORMATTER,n,r)||this}return t}(kn),Kd=function(e){ze(t,e);function t(n,r){return e.call(this,xt.INVALID_CONFIG,n,r)||this}return t}(kn),Oo=function(e){ze(t,e);function t(n,r){return e.call(this,xt.MISSING_DATA,n,r)||this}return t}(kn),Be=function(e){ze(t,e);function t(n,r,s){var i=e.call(this,xt.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` `),s)||this;return i.locale=r,i}return t}(kn),qr=function(e){ze(t,e);function t(n,r,s,i){var o=e.call(this,"".concat(n,` MessageID: `).concat(s==null?void 0:s.id,` Default Message: `).concat(s==null?void 0:s.defaultMessage,` Description: `).concat(s==null?void 0:s.description,` -`),r,i)||this;return o.descriptor=s,o.locale=r,o}return t}(Be),Vd=function(e){ze(t,e);function t(n,r){var s=e.call(this,xt.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var o;return(o=i.value)!==null&&o!==void 0?o:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return s.descriptor=n,s}return t}(kn);function $t(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,s){return s in e?r[s]=e[s]:s in n&&(r[s]=n[s]),r},{})}var Kd=function(e){},zd=function(e){},Zd={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Kd,onWarn:zd};function Dl(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Nt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Wd(e){e===void 0&&(e=Dl());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,s=Ye(function(){for(var a,l=[],u=0;u0&&(f=o(c.shift()),h=o(c[0]))}g[f]=kl(e[u],t)}),i}const vm=Dl(),_m=(e,t,n=!1)=>{const r=gm({locale:e,messages:Em.flatten(t,{safe:!0})},vm),{$t:s,...i}=r,o=i;return{t:(l,u,c)=>o.formatMessage({id:l},u,c),te:l=>!!o.messages[l],tm:l=>o.messages[l]||[],...o,source:t}};function ym(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function li(e,t,n=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return n;const r=Array.isArray(t)?t:t.split(".");if(r.length===1){const s=e[r[0]];return s===void 0?n:s}return li(e[r[0]],r.slice(1),n)}class Po extends Error{get key(){return this.message}}const bm=e=>{const t=_m("en-us",e,!0);return{...t,t:function(...n){const r=n[0];try{if(typeof li(e,r)>"u")throw r.startsWith("http.api.")?new Po(r):new Error(`Missing message: "${r}" for locale "en-us", using id as fallback`);return t.t(...n)}catch(s){switch(!0){case s instanceof Po:return ym(s.key.split(".").pop());default:throw s}}}}};class Tm extends Error{constructor({title:n=null,message:r,code:s=null,statusCode:i,causes:o=[]}){super(r);Ue(this,"title");Ue(this,"code");Ue(this,"causes");Ue(this,"statusCode");this.name="ApiError",this.title=n,this.code=s,this.statusCode=i,this.causes=o}toJSON(){return{name:this.name,title:this.title,message:this.message,code:this.code,statusCode:this.statusCode,causes:this.causes}}}async function Im(e,t={},n){var c;const r=t,s=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(s)&&r.headers.set("content-type","application/json");let i=e;"params"in t&&t.params!==void 0&&s==="GET"&&(i+=`?${new URLSearchParams(t.params).toString()}`),n!==void 0&&((c=r.headers.get("content-type"))!=null&&c.startsWith("application/json")?r.body=JSON.stringify(n):r.body=n);let o;try{o=await fetch(i,r)}catch(f){throw Sm(f)}const a=o.headers.get("content-type"),u=(a!==null?a.startsWith("application/json")||a.startsWith("application/problem+json"):!1)?await o.json():await o.text();if(o.ok)return{response:o,data:u};throw Am(o,u)}function Sm(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function Am(e,t){let n=null,r="An error has occurred while trying to load this data.",s=null,i=[];return typeof t=="string"&&t.length>0?r=t:t&&(Object.prototype.hasOwnProperty.call(t,"title")&&(n=t.title),Object.prototype.hasOwnProperty.call(t,"details")&&(r=t.details),Object.prototype.hasOwnProperty.call(t,"code")&&(s=t.code),Object.prototype.hasOwnProperty.call(t,"causes")&&Array.isArray(t.causes)&&(i=t.causes)),e.status===403&&(r="You currently don’t have access to this data."),new Tm({title:n,message:r,code:s,causes:i,statusCode:e.status})}const Lo={credentials:"include"};class Om{constructor(t){Ue(this,"_baseUrl");Ue(this,"_options",Lo);this._baseUrl=t}get baseUrl(){return this._baseUrl}set baseUrl(t){this._baseUrl=t}get options(){return this._options}set options(t){this._options=t}async get(t,n){const{data:r}=await this.raw(t,void 0,n,"GET");return r}async delete(t,n){await this.raw(t,void 0,n,"DELETE")}async post(t,n,r){const{data:s}=await this.raw(t,n,r,"POST");return s}async put(t,n,r){const{data:s}=await this.raw(t,n,r,"PUT");return s}async patch(t,n,r){const{data:s}=await this.raw(t,n,r,"PATCH");return s}async raw(t,n,r={},s="GET"){const i=Mo(r);i.method=s;const o=new Headers(this.options.headers);if("headers"in i){const u=i.headers instanceof Headers?i.headers:new Headers(i.headers);for(const[c,f]of u)o.set(c,f)}const a={...Lo,...this.options,...i};Object.keys(o).length>0&&(a.headers=o);const l=Mo(a);return Im(`${t.startsWith("http")?"":this.baseUrl}${t}`,l,n)}}function Mo(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,s]of Object.entries(t.params))if(s!==void 0)if(Array.isArray(s))for(const i of s)n.push([r,i]);else n.push([r,s]);t.params=n}return t}class wm{constructor(t){Ue(this,"client");Ue(this,"env");this.client=new Om(t("KUMA_API_URL")),this.env=t}get baseUrl(){return this.client.baseUrl}setBaseUrl(t){this.client.baseUrl=t}setOptions(t){this.client.options=t}}class Rm extends wm{getInfo(){return this.client.get("/")}async getStatus(){try{const{response:t}=await this.client.raw("/");return t.status===200?"OK":null}catch{return null}}async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsights(){return this.client.get("/global-insights")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},n){return this.client.get(`/zones/${t}`,{params:n})}createZone(t){return this.client.post("/provision-zone",t)}updateZone(t){return this.client.put(`/zones/${t.name}`,t)}deleteZone({name:t}){return this.client.delete(`/zones/${t}`)}getAllZoneOverviews(t){return this.client.get("/zones+insights",{params:t})}getZoneOverview({name:t},n){return this.client.get(`/zones+insights/${t}`,{params:n})}getZoneIngressData({zoneIngressName:t,dataPath:n},r){return this.client.get(`/zoneingresses/${t}/${n}`,{params:r})}getAllZoneIngressOverviews(t){return this.client.get("/zoneingresses+insights",{params:t})}getZoneIngressOverview({name:t},n){return this.client.get(`/zoneingresses+insights/${t}`,{params:n})}getZoneEgressData({zoneEgressName:t,dataPath:n},r){return this.client.get(`/zoneegresses/${t}/${n}`,{params:r})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegressoverviews",{params:t})}getZoneEgressOverview({name:t},n){return this.client.get(`/zoneegressoverviews/${t}`,{params:n})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},n){return this.client.get(`/meshes/${t}`,{params:n})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},n){return this.client.get(`/mesh-insights/${t}`,{params:n})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}`,{params:r})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes+insights",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/dataplanes+insights`,{params:n})}getDataplaneOverviewFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes+insights/${n}`,{params:r})}getSidecarDataplanePolicies({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getMeshGatewayDataplane({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getDataplaneRules({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/rules`,{params:r})}getDataplaneData({mesh:t,dppName:n,dataPath:r},s){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:s})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/service-insights`,{params:n})}getServiceInsight({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/service-insights/${n}`,{params:r})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/external-services`,{params:n})}getExternalService({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/external-services/${n}`,{params:r})}async getExternalServiceByServiceInsightName(t,n){const{items:r}=await this.getAllExternalServicesFromMesh({mesh:t});return Array.isArray(r)?r.find(i=>i.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,policyPath:n,policyName:r},s){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:s})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},s){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:s})}}const kE={PAGINATION_PREVIOUS_BUTTON_CLICKED:"pagination-previous-button-clicked",PAGINATION_NEXT_BUTTON_CLICKED:"pagination-next-button-clicked",SIDEBAR_ITEM_CLICKED:"sidebar-item-clicked",TABLE_REFRESH_BUTTON_CLICKED:"table-refresh-button-clicked",TABS_TAB_CHANGE:"tabs-tab-change",CREATE_DATA_PLANE_PROXY_CLICKED:"create-data-plane-proxy-clicked"};class Cm{info(...t){this._log("info",...t)}warn(...t){this._log("warn",...t)}error(...t){this._log("error",...t)}_log(t,...n){console[t](...n)}}var Yr=new WeakMap,$l=new Map,Nm=new Map,Ut;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Ut||(Ut={}));var ut;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(ut||(ut={}));var Pm=class{constructor(e){this.impl=e,this.type=Ut.Constant}},Lm=class{constructor(e){this.impl=e,this.type=Ut.Factory}},Mm=e=>e.type===Ut.Factory,xr=class{constructor(e){this.impl=e,this.type=Ut.Instance}},Dm=class extends xr{constructor(){super(...arguments),this.scope=ut.Container,this.cache=new WeakMap}},Hm=class extends xr{constructor(){super(...arguments),this.scope=ut.Resolution}},Bm=class extends xr{constructor(e){super(e),this.impl=e,this.scope=ut.Singleton}},xm=class extends xr{constructor(){super(...arguments),this.scope=ut.Transient}},Um=e=>e.type===Ut.Instance,Fm=e=>e.scope===ut.Container,km=e=>e.scope===ut.Resolution,$m=e=>e.scope===ut.Singleton,Gm=e=>Symbol(e),se=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},bn=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=bn.notag){const r=this.map.get(t.__s);r?r.set(n,e):this.map.set(t.__s,new Map().set(n,e))}find(e,t,n){const r=this.map.get(e.__s);if(r!==void 0){if(n){const s=r.get(n);if(s)return s}if(t)for(let s=0,i=t.length;s{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Gl=bn;Gl.notag=Gm("NO_TAG");var jm=class{constructor(e,t,n,r){this.vault=e,this.tokens=t,this.getVault=n,this.condition=r}from(e){const{tokens:t}=this;for(let n=0,r=t.length;nthis.resolveToken(s,n,r,t.split()))}resolveToken(e,t,n,r=new jl){const s=this.vault.get(e,r,t,n);if(s)return this.resolveBinding(s,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return Um(e)?$m(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):Fm(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):km(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):Mm(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(s=>lr.resolveInitialization(s,n,e.impl.initializer)):lr.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const s=n();if(s!==void 0)return s;const i=this.createInstance(e.impl,t);return r(i),i}createInstance(e,t){const n=this.getParameters(e,t),r=Yr.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const s=e(...n);return Yr.set(e,!0),s}catch{const i=new e(...n);return Yr.set(e,!1),i}}getParameters(e,t){const n=$l.get(e);if(n)return this.resolveTokens(n,t,Nm.get(e),e);if(e.length===0)return[];throw new Error(`Missing required 'injected' registration of '${e.name}'`)}static resolveInitialization(e,t,n){const r=n==null?void 0:n(e,...t);return r instanceof Promise?r.then(()=>e):e}},Wm=()=>new lr,Xm=(e,...t)=>($l.set(e,t),e),$E=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qm=function(t){return Ym(t)&&!Qm(t)};function Ym(e){return!!e&&typeof e=="object"}function Qm(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tg(e)}var Jm=typeof Symbol=="function"&&Symbol.for,eg=Jm?Symbol.for("react.element"):60103;function tg(e){return e.$$typeof===eg}function ng(e){return Array.isArray(e)?[]:{}}function Un(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(ng(e),e,t):e}function rg(e,t,n){return e.concat(t).map(function(r){return Un(r,n)})}function sg(e,t){if(!t.customMerge)return un;var n=t.customMerge(e);return typeof n=="function"?n:un}function ig(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Do(e){return Object.keys(e).concat(ig(e))}function Kl(e,t){try{return t in e}catch{return!1}}function og(e,t){return Kl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ag(e,t,n){var r={};return n.isMergeableObject(e)&&Do(e).forEach(function(s){r[s]=Un(e[s],n)}),Do(t).forEach(function(s){og(e,s)||(Kl(e,s)&&n.isMergeableObject(t[s])?r[s]=sg(s,n)(e[s],t[s],n):r[s]=Un(t[s],n))}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||rg,n.isMergeableObject=n.isMergeableObject||qm,n.cloneUnlessOtherwiseSpecified=Un;var r=Array.isArray(t),s=Array.isArray(e),i=r===s;return i?r?n.arrayMerge(e,t,n):ag(e,t,n):Un(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return un(r,s,n)},{})};var lg=un,cg=lg;const ug=Vl(cg),ci=Wm(),fg=(...e)=>[...new Map([...e.flat()]).entries()],hg=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const s=r.decorates,i=t.get(s);if(typeof i<"u"){const{labels:o,...a}=i,l=se("inner"),u=se("inner.wrapper");t.set(l,{...a}),t.set(u,{service:()=>()=>$n(l)}),t.set(s,{...r,arguments:[u],labels:o})}r.decorates=void 0}}),[...t.entries()]},$n=e=>ci.get(e),pg=(...e)=>(hg(fg(...e)).forEach(n=>zl(...n)),$n),GE=(...e)=>e.map(t=>()=>$n(t)),Yn=new WeakMap,zl=(e,t)=>{const n=ci.bind(e);switch(!0){case"constant"in t:n.toConstant(t.constant);break;case"service"in t:{const r=n.toInstance(t.service);(typeof t.shared>"u"||t.shared===!0)&&r.inSingletonScope();break}}typeof t.labels<"u"&&t.labels.forEach(r=>{Yn.has(r)||(Yn.set(r,[]),zl(r,{service:()=>Yn.get(r).reduce((i,o)=>{const a=$n(o);return Array.isArray(a)?i.concat(a):a instanceof Object?ug(i,a):i},[])})),Yn.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,s)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${s}]`)}),Xm(t.service,...t.arguments))},dg=(e,t)=>{const n=se(t.description);return ci.bind(n).toConstant(e),n},mg=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Zl=mg;const gg="2.0.0",Eg=256,vg=Number.MAX_SAFE_INTEGER||9007199254740991,_g=16,yg=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Wl={MAX_LENGTH:Eg,MAX_SAFE_COMPONENT_LENGTH:_g,MAX_SAFE_INTEGER:vg,RELEASE_TYPES:yg,SEMVER_SPEC_VERSION:gg,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Rs={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Wl,r=Zl;t=e.exports={};const s=t.re=[],i=t.src=[],o=t.t={};let a=0;const l=(u,c,f)=>{const h=a++;r(u,h,c),o[u]=h,i[h]=c,s[h]=new RegExp(c,f?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),l("FULL",`^${i[o.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),l("LOOSE",`^${i[o.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[o.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),l("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[o.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Rs,Rs.exports);var bg=Rs.exports;const Tg=Object.freeze({loose:!0}),Ig=Object.freeze({}),Sg=e=>e?typeof e!="object"?Tg:e:Ig;var Ag=Sg;const Ho=/^[0-9]+$/,Xl=(e,t)=>{const n=Ho.test(e),r=Ho.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eXl(t,e);var wg={compareIdentifiers:Xl,rcompareIdentifiers:Og};const Qn=Zl,{MAX_LENGTH:Bo,MAX_SAFE_INTEGER:Jn}=Wl,{re:xo,t:Uo}=bg,Rg=Ag,{compareIdentifiers:Wt}=wg;let Cg=class qe{constructor(t,n){if(n=Rg(n),t instanceof qe){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Bo)throw new TypeError(`version is longer than ${Bo} characters`);Qn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?xo[Uo.LOOSE]:xo[Uo.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Jn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),Wt(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Ng=Cg;const Fo=Ng,Pg=(e,t,n)=>new Fo(e,n).compare(new Fo(t,n));var Lg=Pg;const Qr=Vl(Lg),jE="Kuma",VE=50,Cs=500,ko="Disabled",KE="kuma.io/zone",Mg={status:null,tagline:null,version:null,kumaDocsVersion:"latest",clientConfig:null},Dg={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t,SET_TAGLINE:(e,t)=>e.tagline=t,SET_VERSION:(e,t)=>e.version=t,SET_KUMA_DOCS_VERSION:(e,t)=>e.kumaDocsVersion=t},Hg={getStatus:e=>e.status,getConfig:e=>e.clientConfig,getEnvironment:e=>{var t;return(t=e.clientConfig)==null?void 0:t.environment},getMode:e=>{var t;return(t=e.clientConfig)==null?void 0:t.mode},getTagline:e=>e.tagline,getVersion:e=>e.version,getKumaDocsVersion:e=>e.kumaDocsVersion,getConfigurationType:e=>{var t,n;return(n=(t=e.clientConfig)==null?void 0:t.store)==null?void 0:n.type},getMulticlusterStatus:(e,t)=>t.getMode==="global"},Bg=e=>({bootstrapConfig({dispatch:t}){const n=t("getInfo"),r=t("getConfig");return Promise.all([n,r])},getConfig({commit:t}){return e.getConfig().then(n=>{t("SET_CONFIG_DATA",n)})},getStatus({commit:t}){return e.getStatus().then(n=>{t("SET_STATUS",n)})},getInfo({commit:t}){return e.getInfo().then(n=>{t("SET_TAGLINE",n.tagline),t("SET_VERSION",n.version);let r;const s=n.basedOnKuma??n.version,i=s.indexOf("-preview.");if(i!==-1){const o=s.substring(0,i);r=o==="0.0.0"?"dev":o.replace(/\.\d+$/,".x")}else r=s.replace(/\.\d+$/,".x");t("SET_KUMA_DOCS_VERSION",r)}).catch(n=>{console.error(n)})}}),xg=e=>({namespaced:!0,state:()=>Mg,getters:Hg,mutations:Dg,actions:Bg(e)}),Ug={isOpen:!1},Fg={OPEN_MODAL:e=>e.isOpen=!0,CLOSE_MODAL:e=>e.isOpen=!1},kg={meshNotificationItemMap(e,t,n){var i;return(((i=n.meshes)==null?void 0:i.items)||[]).reduce((o,a)=>(o[a.name]={hasLogging:!!a.logging,hasMtls:!!a.mtls,hasMetrics:!!a.metrics,hasTracing:!!a.tracing},o),{})},meshNotificationItemMapWithAction(e,t){const n=t.meshNotificationItemMap;return Object.entries(n).reduce((r,[s,i])=>(Object.values(i).some(a=>!a)&&(r[s]=i),r),{})},singleMeshNotificationItems(e,t,n,r){if(n.selectedMesh===null||!(n.selectedMesh in t.meshNotificationItemMap))return[];const s=t.meshNotificationItemMap[n.selectedMesh],i=Object.entries(r.getMeshInsight.policies).filter(([a,l])=>["MeshAccessLog","MeshTrace"].includes(a)).some(([a,l])=>l.total>0),o=[{name:"Observability, Metrics & Service Map",component:"MetricsNotification",isCompleted:s.hasMetrics},{name:"Logging",component:"LoggingNotification",isCompleted:s.hasLogging||i},{name:"Zero-trust security",component:"MtlsNotification",isCompleted:s.hasMtls},{name:"Tracing",component:"TracingNotification",isCompleted:s.hasTracing}];return o.sort((a,l)=>+a.isCompleted-+l.isCompleted),o},amountOfActions(e,t){return Object.keys(t.meshNotificationItemMapWithAction).length}},$g={openModal({commit:e}){e("OPEN_MODAL")},closeModal({commit:e}){e("CLOSE_MODAL")}},Gg={namespaced:!0,state:()=>Ug,getters:kg,mutations:Fg,actions:$g},jg={isCompleted:lt.get("onboardingIsCompleted")==="true",step:lt.get("onboardingStep")||"onboarding-welcome",mode:"demo"},Vg={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},Kg={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),t("sidebar/getInsights",null,{root:!0}),e("SET_IS_COMPLETED",!0),lt.set("onboardingIsCompleted","true"),lt.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),lt.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},zg={namespaced:!0,state:()=>jg,mutations:Vg,actions:Kg};function $o(e){const t=e.items.reduce((n,{dataplanes:r,dataplanesByType:s,policies:i,services:o})=>{var a,l;n.services.internal+=o.internal||0,n.services.external+=o.external||0,n.services.total+=o.total||0,n.dataplanes.total+=r.total||0,n.dataplanes.standard+=((a=s.standard)==null?void 0:a.total)||0,n.dataplanes.gateway+=((l=s.gateway)==null?void 0:l.total)||0;for(const[u,c]of Object.entries(i))n.policies[u]||(n.policies[u]=0),n.policies[u]+=c.total||0;return n},{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}});return t.policies.total=Object.values(t.policies).reduce((n,r)=>n+r,0),t}function Zg(e){return Object.entries(e.resources).reduce((t,[n,r])=>(t[n]||(t[n]=0),t[n]+=r.total||0,t),{})}const Wg={insights:{global:{},mesh:{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}}}},Xg={SET_GLOBAL_INSIGHTS:(e,t)=>e.insights.global=t,SET_MESH_INSIGHTS:(e,t)=>e.insights.mesh=t},qg=e=>({getInsights({dispatch:t}){return Promise.all([t("getGlobalInsights"),t("getMeshInsights")])},async getMeshInsights({commit:t,rootState:n}){if(n.selectedMesh===null)return;let r;try{const s=await e.getMeshInsights({name:n.selectedMesh});r=$o({items:[s]})}catch{r=$o({items:[]})}t("SET_MESH_INSIGHTS",r)},async getGlobalInsights({commit:t}){const n=await e.getGlobalInsights(),r=Zg(n);t("SET_GLOBAL_INSIGHTS",r)}}),Yg=e=>({namespaced:!0,state:()=>Wg,mutations:Xg,actions:qg(e)}),ql=(e={},t={})=>{const n=e.online||0,r=t.online||0,s=e.partiallyDegraded||0,i=t.partiallyDegraded||0,o=e.total||0,a=t.total||0;return{online:n+r,partiallyDegraded:s+i,total:o+a}},Qg=(e,t={})=>Object.entries(t).reduce((n,[r,s])=>{const i=n[r]?n[r].total:0;return{...n,[r]:{total:i+s.total}}},e),Go=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>({...n,[r]:ql(n[r],s)}),e),Jg=(e={},t={})=>({kumaDp:Go(e.kumaDp,t.kumaDp),envoy:Go(e.envoy,t.envoy)});function Yl(){return{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}}}}function eE(e={}){return Ql([e])}function Ql(e=[]){return e.reduce((t,n)=>({meshesTotal:e.length,dataplanes:ql(t.dataplanes,n.dataplanes),policies:Qg(t.policies,n.policies),dpVersions:Jg(t.dpVersions,n.dpVersions)}),{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}}})}const tE=new Intl.DateTimeFormat("en-US",{dateStyle:"long"}),nE=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"medium"});function rE(e){const t=new Date(Date.parse(e)),n=Math.floor((Date.now()-t.getTime())/1e3);return n<=1?"just now":n<20?`${n} seconds ago`:n<40?"half a minute ago":n<60?"less than a minute ago":n<=90?"one minute ago":n<=3540?`${Math.round(n/60)} minutes ago`:n<=5400?"1 hour ago":n<=86400?`${Math.round(n/3600)} hours ago`:n<=129600?"1 day ago":n<604800?`${Math.round(n/86400)} days ago`:n<=777600?"1 week ago":tE.format(t)}function zE(e){const t=new Date(Date.parse(e));return nE.format(t)}function ZE(e){const t=e.replace(/[^a-zA-Z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim();return e?t:""}async function er(e){try{let t=null,n=0,r=[],s=null;for(;;){const i={size:Cs,offset:n},{total:o,items:a,next:l}=await e(i);if(Array.isArray(a)&&(r=r.concat(a)),t===null&&(t=o),!l||s===l)break;s=l,n+=Cs}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function WE(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const s=JSON.parse(r.config);return li(s,"dpServer.auth.type",ko)}}return ko}function XE(e){let t=[];e.networking.inbound&&(t=e.networking.inbound.filter(r=>"tags"in r).flatMap(r=>Object.entries(r.tags)).map(([r,s])=>`${r}=${s}`)),e.networking.gateway&&(t=Object.entries(e.networking.gateway.tags).map(([r,s])=>`${r}=${s}`));const n=Array.from(new Set(t));return n.sort((r,s)=>r.localeCompare(s)),n.map(r=>r.split("=")).map(([r,s])=>({label:r,value:s}))}function Jl(e={subscriptions:[]}){return(e.subscriptions??[]).some(n=>{var r;return((r=n.connectTime)==null?void 0:r.length)&&!n.disconnectTime})?"online":"offline"}function qE(e,t={subscriptions:[]}){const n=e.networking.inbound??[],r=n.filter(i=>i.health&&!i.health.ready).map(i=>`Inbound on port ${i.port} is not ready (kuma.io/service: ${i.tags["kuma.io/service"]})`);let s;switch(!0){case n.length===0:s="online";break;case r.length===n.length:s="offline";break;case r.length>0:s="partially_degraded";break;default:s=Jl(t)}return{status:s,reason:r}}function YE(e){if(e===void 0||e.subscriptions.length===0)return null;const t={},n=e.subscriptions[e.subscriptions.length-1];return n.version===void 0?null:(n.version.envoy&&(t.envoy=n.version.envoy.version),n.version.kumaDp&&(t.kumaDp=n.version.kumaDp.version),n.version.dependencies&&Object.entries(n.version.dependencies).forEach(([r,s])=>{t[r]=s}),t)}function QE(e){if(e.dataplaneInsight===void 0||e.dataplaneInsight.mTLS===void 0)return null;const{mTLS:t}=e.dataplaneInsight,n=new Date(t.certificateExpirationTime),r=new Date(n.getTime()+n.getTimezoneOffset()*6e4);return{certificateExpirationTime:`${r.toLocaleDateString("en-US")} ${r.getHours()}:${r.getMinutes()}:${r.getSeconds()}`,lastCertificateRegeneration:rE(t.lastCertificateRegeneration),certificateRegenerations:t.certificateRegenerations}}function JE(e){var r,s;return((r=e.kumaDp)==null?void 0:r.kumaCpCompatible)??!0?((s=e.envoy)==null?void 0:s.kumaDpCompatible)??!0?{kind:sE}:{kind:oE,payload:{envoy:e.envoy.version,kumaDp:e.kumaDp.version}}:{kind:iE,payload:{kumaDp:e.kumaDp.version}}}const sE="COMPATIBLE",ev="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",tv="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",iE="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",oE="INCOMPATIBLE_UNSUPPORTED_ENVOY",nv="INCOMPATIBLE_WRONG_FORMAT",Jr="Online",jo="Offline",aE="Partially degraded",lE={menu:null,globalLoading:!0,defaultVisibility:{appError:!0,notificationManager:!0,onboardingNotification:!0},pageTitle:"",meshes:{total:0,items:[],next:null},selectedMesh:"default",totalDataplaneCount:0,version:"",itemQueryNamespace:"item",totalClusters:0,serviceSummary:{total:0,internal:{total:0,online:0,offline:0,partiallyDegraded:0},external:{total:0}},overviewCharts:{dataplanes:{data:[]},meshes:{data:[]},services:{data:[]},policies:{data:[]},zones:{data:[]},zonesCPVersions:{data:[]},kumaDPVersions:{data:[]},envoyVersions:{data:[]}},meshInsight:Yl(),meshInsightsFetching:!1,serviceInsightsFetching:!1,externalServicesFetching:!1,zonesInsightsFetching:!1,policyTypes:[],policyTypesByPath:{},policyTypesByName:{},globalKdsAddress:"grpcs://:5685"},cE=e=>({modules:{sidebar:Yg(e),config:xg(e),notifications:Gg,onboarding:zg},state:()=>lE,getters:{globalLoading:t=>t.globalLoading,shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowNotificationManager:(t,n)=>t.defaultVisibility.notificationManager&&n["notifications/amountOfActions"]>0,shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n},getMeshList:t=>t.meshes,getItemQueryNamespace:t=>t.itemQueryNamespace,getMeshInsight:t=>t.meshInsight,getMeshInsightsFetching:t=>t.meshInsightsFetching,getServiceInsightsFetching:t=>t.serviceInsightsFetching,getExternalServicesFetching:t=>t.externalServicesFetching,getResourceFetching:({meshInsightsFetching:t,serviceInsightsFetching:n,externalServicesFetching:r})=>t||n||r,getServiceResourcesFetching:({serviceInsightsFetching:t,externalServicesFetching:n})=>t||n,getZonesInsightsFetching:({zonesInsightsFetching:t})=>t,getChart:t=>(n,{title:r,subtitle:s=void 0,showTotal:i=!1,isStatusChart:o=!1})=>({title:r,subtitle:s,showTotal:i,isStatusChart:o,dataPoints:t.overviewCharts[n].data})},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_PAGE_TITLE:(t,n)=>t.pageTitle=n,SET_MESHES:(t,n)=>t.meshes=n,SET_SELECTED_MESH:(t,n)=>t.selectedMesh=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_TOTAL_CLUSTER_COUNT:(t,n)=>t.totalClusters=n,SET_INTERNAL_SERVICE_SUMMARY:(t,{items:n=[]})=>{const r={online:0,partially_degraded:0,offline:0,not_available:0},{online:s,offline:i,partially_degraded:o}=n.reduce((l,{status:u="offline"})=>({...l,[u]:l[u]+1}),r),a=s+i+o;t.serviceSummary.internal={...t.serviceSummary.internal,total:a,online:s,partiallyDegraded:o,offline:i},t.serviceSummary.total=t.serviceSummary.external.total+a},SET_EXTERNAL_SERVICE_SUMMARY:(t,{total:n=0})=>{t.serviceSummary.external.total=n,t.serviceSummary.total=t.serviceSummary.internal.total+n},SET_MESH_INSIGHT:(t,n)=>t.meshInsight=eE(n),SET_MESH_INSIGHT_FROM_ALL_MESHES:(t,n)=>t.meshInsight=Ql(n.items),SET_ZONES_INSIGHTS_FETCHING:(t,n)=>t.zonesInsightsFetching=n,SET_MESH_INSIGHTS_FETCHING:(t,n)=>t.meshInsightsFetching=n,SET_SERVICE_INSIGHTS_FETCHING:(t,n)=>t.serviceInsightsFetching=n,SET_EXTERNAL_SERVICES_FETCHING:(t,n)=>t.externalServicesFetching=n,SET_OVERVIEW_CHART_DATA:(t,{chartName:n,data:r})=>{t.overviewCharts[n].data=r},SET_POLICY_TYPES:(t,n)=>{n.sort((r,s)=>r.name.localeCompare(s.name)),t.policyTypes=n},SET_POLICY_TYPES_BY_PATH:(t,n)=>t.policyTypesByPath=n,SET_POLICY_TYPES_BY_NAME:(t,n)=>t.policyTypesByName=n,SET_GLOBAL_KDS_ADDRESS:(t,n)=>t.globalKdsAddress=n},actions:{updateGlobalLoading({commit:t},n){t("SET_GLOBAL_LOADING",n)},async bootstrap({dispatch:t,getters:n,state:r}){if(await t("config/getStatus"),n["config/getStatus"]==="OK")if(await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")]),r.meshes.items.length>0){const s=lt.get("selectedMesh");let i;if(s!==null){const o=r.meshes.items.find(a=>a.name===s);o!==void 0&&(i=o)}i===void 0&&(i=r.meshes.items[0]),await t("updateSelectedMesh",i.name),await t("sidebar/getInsights")}else await t("updateSelectedMesh",null)},updatePageTitle({commit:t},n){t("SET_PAGE_TITLE",n)},async fetchMeshList({commit:t,state:n}){const r={size:Cs};try{const{total:s,items:i,next:o}=await e.getAllMeshes(r),a={items:i??[],total:s,next:o};a.items.sort((l,u)=>l.name==="default"?-1:u.name==="default"?1:l.name.localeCompare(u.name)),t("SET_MESHES",a)}catch(s){console.error(s)}},updateSelectedMesh({commit:t},n){n!==null?lt.set("selectedMesh",n):lt.remove("selectedMesh"),t("SET_SELECTED_MESH",n)},async fetchTotalClusterCount({commit:t}){const n=await e.getZones();t("SET_TOTAL_CLUSTER_COUNT",n.total)},async fetchDataplaneTotalCount({commit:t}){try{const n=await e.getAllDataplanes({size:1});t("SET_TOTAL_DATAPLANE_COUNT",n.total)}catch(n){console.error(n)}},async fetchGlobalInsights({commit:t}){var n,r;try{const s=await e.getGlobalInsights(),i=[{title:"Mesh",data:((n=s.resources.Mesh)==null?void 0:n.total)??0}];t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:i});const o=[{title:Jr,data:((r=s.resources.Zone)==null?void 0:r.total)??0,route:{name:"zone-cp-list-view"}}];t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:o})}catch(s){console.error(s)}},async fetchMeshInsights({commit:t,dispatch:n},r){t("SET_MESH_INSIGHTS_FETCHING",!0);try{if(r===void 0){const s=await er(e.getAllMeshInsights.bind(e));if(s.items.length>0){const i=[];i.push({title:"Mesh",data:s.items.length}),t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:i}),t("SET_MESH_INSIGHT_FROM_ALL_MESHES",s)}}else t("SET_MESH_INSIGHT",await e.getMeshInsights({name:r}))}catch{t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:[]}),t("SET_MESH_INSIGHT",Yl())}finally{n("setChartsFromMeshInsights")}t("SET_MESH_INSIGHTS_FETCHING",!1)},async fetchServiceInsights({commit:t},n){t("SET_SERVICE_INSIGHTS_FETCHING",!0);try{const r=n===void 0?e.getAllServiceInsights.bind(e):e.getAllServiceInsightsFromMesh.bind(e,{mesh:n});t("SET_INTERNAL_SERVICE_SUMMARY",await er(r))}catch{t("SET_INTERNAL_SERVICE_SUMMARY",{})}t("SET_SERVICE_INSIGHTS_FETCHING",!1)},async fetchExternalServices({commit:t},n){t("SET_EXTERNAL_SERVICES_FETCHING",!0);try{const r=n===void 0?e.getAllExternalServices.bind(e):e.getAllExternalServicesFromMesh.bind(e,{mesh:n});t("SET_EXTERNAL_SERVICE_SUMMARY",await er(r))}catch{t("SET_EXTERNAL_SERVICE_SUMMARY",{})}t("SET_EXTERNAL_SERVICES_FETCHING",!1)},async fetchServices({dispatch:t},n){const r=t("fetchExternalServices",n),s=t("fetchServiceInsights",n);await Promise.all([s,r]),await t("setOverviewServicesChartData")},async fetchZonesInsights({commit:t,dispatch:n,getters:r},s=!1){t("SET_ZONES_INSIGHTS_FETCHING",!0);try{if(s){const i=await er(e.getAllZoneOverviews.bind(e));i.items.length>0&&(n("setOverviewZonesChartData",i),n("setOverviewZonesCPVersionsChartData",i))}else{const i=[{title:"Zone",data:1,route:{name:"zone-cp-list-view"}}],o=[{title:r["config/getVersion"],data:1,route:{name:"zone-cp-list-view"}}];t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:i}),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:o})}}catch{t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:[]}),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:[]})}t("SET_ZONES_INSIGHTS_FETCHING",!1)},async fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((i,o)=>Object.assign(i,{[o.path]:o}),{}),s=n.reduce((i,o)=>Object.assign(i,{[o.name]:o}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",s)},setChartsFromMeshInsights({dispatch:t}){t("setOverviewDataplanesChartData"),t("setOverviewKumaDPVersionsChartData"),t("setOverviewEnvoyVersionsChartData")},setOverviewZonesChartData({commit:t},{items:n=[]}){const r=n.length;let s=0;n.forEach(o=>{Jl(o.zoneInsight)==="online"&&s++});const i=[];r&&(i.push({title:Jr,data:s,route:{name:"zone-cp-list-view"}}),s!==r&&i.push({title:jo,data:r-s,route:{name:"zone-cp-list-view"}})),t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:i})},setOverviewServicesChartData({state:t,commit:n}){const{internal:r,external:s}=t.serviceSummary,i=[];r.total&&t.selectedMesh!==null&&i.push({title:"Internal",data:r.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),s.total&&t.selectedMesh!==null&&i.push({title:"External",data:s.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),n("SET_OVERVIEW_CHART_DATA",{chartName:"services",data:i})},setOverviewDataplanesChartData({state:t,commit:n}){const r=t.meshInsight.dataplanes.total,s=[];if(r>0){const i=t.meshInsight.dataplanes.online??0;s.push({title:Jr,data:i});const o=t.meshInsight.dataplanes.partiallyDegraded??0;o>0&&s.push({title:aE,data:o});const a=r-o-i;a>0&&s.push({title:jo,data:a})}n("SET_OVERVIEW_CHART_DATA",{chartName:"dataplanes",data:s})},setOverviewZonesCPVersionsChartData({commit:t},{items:n}){const r=n.reduce((s,i)=>{var u;const o=((u=i.zoneInsight)==null?void 0:u.subscriptions)??[];if(o.length===0)return s;const a=o.pop(),l=s.find(c=>{var f,h;return c.title===((h=(f=a.version)==null?void 0:f.kumaCp)==null?void 0:h.version)});return l?l.data++:s.push({title:a.version.kumaCp.version,data:1,route:{name:"zone-cp-list-view"}}),s},[]);r.sort((s,i)=>s.title==="unknown"?1:i.title==="unknown"?-1:Qr(s.title,i.title)),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:r})},setOverviewEnvoyVersionsChartData({state:t,commit:n}){const{envoy:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Qr(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"envoyVersions",data:s})},setOverviewKumaDPVersionsChartData({state:t,commit:n}){const{kumaDp:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Qr(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"kumaDPVersions",data:s})},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),uE={EnvVars:se("EnvVars"),Env:se("Env"),env:se("env"),i18n:se("i18n"),enUs:se("i18n.locale.enUs"),kumaEnUs:se("kuma.locale.enUs"),api:se("KumaApi"),storeConfig:se("storeOptions"),store:se("store"),router:se("router"),routes:se("vue.routes"),meshRoutes:se("kuma.mesh.routes"),dataplaneRoutes:se("kuma.dataplane.routes"),gatewayRoutes:se("kuma.gateway.routes"),serviceRoutes:se("kuma.service.routes"),policyRoutes:se("kuma.policy.routes"),zoneRoutes:se("kuma.zone.routes"),diagnosticsRoutes:se("kuma.diagnostics.routes"),onboardingRoutes:se("kuma.onboarding.routes"),wizardRoutes:se("kuma.wizard.routes"),nav:se("nav"),logger:se("logger"),app:se("app"),bootstrap:se("bootstrap")},fE=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",KUMA_FEEDBACK_URL:"https://github.com/kumahq/kuma/issues/new/choose",KUMA_CHAT_URL:"https://kuma-mesh.slack.com",KUMA_INSTALL_URL:"https://kuma.io/install/latest/",KUMA_VERSION_URL:"https://kuma.io/latest_version",KUMA_DOCS_URL:"https://kuma.io/docs",KUMA_MOCK_API_ENABLED:{}.VITE_MOCK_API_ENABLED,KUMA_ZONE_CREATION_FLOW:{}.VITE_ZONE_CREATION_FLOW}}],[e.Env,{service:Xp,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>$n(e.Env).var(...t)}],[e.i18n,{service:bm,arguments:[e.enUs]}],[e.kumaEnUs,{constant:zp,labels:[e.enUs]}],[e.api,{service:Rm,arguments:[e.env]}],[e.logger,{service:Cm}],[e.storeConfig,{service:cE,arguments:[e.api]}],[e.store,{service:fh,arguments:[e.storeConfig]}],[e.router,{service:ml,arguments:[e.routes,e.store]}],[e.routes,{service:Zp,arguments:[e.zoneRoutes,e.meshRoutes,e.wizardRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:Op,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:Tp}],[e.gatewayRoutes,{service:Sp}],[e.serviceRoutes,{service:Cp}],[e.policyRoutes,{service:Rp,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:Lp,arguments:[dg([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?Pp():[]],{description:"kuma.zone.action.routes"})]}],[e.wizardRoutes,{service:Np}],[e.onboardingRoutes,{service:wp}],[e.diagnosticsRoutes,{service:Ip}],[e.nav,{service:()=>t=>Ap(t)}],[e.app,{service:_p,arguments:[e.env,e.routes,e.store]}],[e.bootstrap,{service:yp,arguments:[e.store]}]],tr=uE;async function hE(){const e=pg(fE(tr),[]);(await e(tr.app)((await V(()=>import("./App-4273f842.js"),["./RouteView-22a3f08a.css","./App-88efaca9.css"],import.meta.url)).default)).mount("#app");const n=e(tr.store);await n.dispatch("updateGlobalLoading",!0),await e(tr.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}hE();export{ME as $,JE as A,ev as B,sE as C,UE as D,rE as E,Pe as F,Ks as G,Hs as H,nv as I,CE as J,KE as K,jE as L,zs as M,Aa as N,Jl as O,VE as P,OE as Q,_E as R,LE as S,za as T,zE as U,iE as V,oE as W,DE as X,lt as Y,kE as Z,ZE as _,ka as a,xE as a0,er as a1,WE as a2,tv as a3,je as a4,ir as a5,$n as a6,tr as a7,GE as a8,Ft as a9,Js as aa,X as ab,V as ac,Ds as ad,Yc as ae,ff as af,q as ag,aa as ah,dg as ai,pn as aj,He as ak,St as al,Ju as am,wE as an,da as ao,BE as ap,HE as aq,PE as ar,vE as as,AE as at,rn as au,mE as av,Ys as aw,Tm as ax,$E as ay,Vl as az,uu as b,Le as c,Ia as d,Jt as e,RE as f,NE as g,Qu as h,Ae as i,bE as j,TE as k,Ga as l,IE as m,EE as n,Ua as o,gE as p,SE as q,yE as r,qc as s,dE as t,FE as u,qE as v,tn as w,XE as x,YE as y,QE as z}; +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function vm(e,t){var n=qd(t),r=U(U({},Xd),e),s=r.locale,i=r.defaultLocale,o=r.onError;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&o?o(new Oo('Missing locale data for locale: "'.concat(s,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&o&&o(new Oo('Missing locale data for locale: "'.concat(s,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new Kd('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Em(r),U(U({},r),{formatters:n,formatNumber:dm.bind(null,r,n.getNumberFormat),formatNumberToParts:mm.bind(null,r,n.getNumberFormat),formatRelativeTime:hm.bind(null,r,n.getRelativeTimeFormat),formatDate:Qd.bind(null,r,n.getDateTimeFormat),formatDateToParts:tm.bind(null,r,n.getDateTimeFormat),formatTime:Jd.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:em.bind(null,r,n.getDateTimeFormat),formatTimeToParts:nm.bind(null,r,n.getDateTimeFormat),formatPlural:cm.bind(null,r,n.getPluralRules),formatMessage:Co.bind(null,r,n),$t:Co.bind(null,r,n),formatList:am.bind(null,r,n.getListFormat),formatListToParts:Bl.bind(null,r,n.getListFormat),formatDisplayName:sm.bind(null,r,n.getDisplayNames)})}var _m=xn;xn.flatten=xn;xn.unflatten=kl;function Ul(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Fl(e){return e}function xn(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,s=t.transformKey||Fl,i={};function o(a,l,u){u=u||1,Object.keys(a).forEach(function(c){const f=a[c],h=t.safe&&Array.isArray(f),g=Object.prototype.toString.call(f),I=Ul(f),b=g==="[object Object]"||g==="[object Array]",C=l?l+n+s(c):s(c);if(!h&&!I&&b&&Object.keys(f).length&&(!t.maxDepth||u0&&(f=o(c.shift()),h=o(c[0]))}g[f]=kl(e[u],t)}),i}const ym=Dl(),bm=(e,t,n=!1)=>{const r=vm({locale:e,messages:_m.flatten(t,{safe:!0})},ym),{$t:s,...i}=r,o=i;return{t:(l,u,c)=>o.formatMessage({id:l},u,c),te:l=>!!o.messages[l],tm:l=>o.messages[l]||[],...o,source:t}};function Tm(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function li(e,t,n=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return n;const r=Array.isArray(t)?t:t.split(".");if(r.length===1){const s=e[r[0]];return s===void 0?n:s}return li(e[r[0]],r.slice(1),n)}class Po extends Error{get key(){return this.message}}const Im=e=>{const t=bm("en-us",e,!0);return{...t,t:function(...n){const r=n[0];try{if(typeof li(e,r)>"u")throw r.startsWith("http.api.")?new Po(r):new Error(`Missing message: "${r}" for locale "en-us", using id as fallback`);return t.t(...n)}catch(s){switch(!0){case s instanceof Po:return Tm(s.key.split(".").pop());default:throw s}}}}};class Sm extends Error{constructor({title:n=null,message:r,code:s=null,statusCode:i,causes:o=[]}){super(r);Ue(this,"title");Ue(this,"code");Ue(this,"causes");Ue(this,"statusCode");this.name="ApiError",this.title=n,this.code=s,this.statusCode=i,this.causes=o}toJSON(){return{name:this.name,title:this.title,message:this.message,code:this.code,statusCode:this.statusCode,causes:this.causes}}}async function Am(e,t={},n){var c;const r=t,s=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(s)&&r.headers.set("content-type","application/json");let i=e;"params"in t&&t.params!==void 0&&s==="GET"&&(i+=`?${new URLSearchParams(t.params).toString()}`),n!==void 0&&((c=r.headers.get("content-type"))!=null&&c.startsWith("application/json")?r.body=JSON.stringify(n):r.body=n);let o;try{o=await fetch(i,r)}catch(f){throw Om(f)}const a=o.headers.get("content-type"),u=(a!==null?a.startsWith("application/json")||a.startsWith("application/problem+json"):!1)?await o.json():await o.text();if(o.ok)return{response:o,data:u};throw wm(o,u)}function Om(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function wm(e,t){let n=null,r="An error has occurred while trying to load this data.",s=null,i=[];return typeof t=="string"&&t.length>0?r=t:t&&(Object.prototype.hasOwnProperty.call(t,"title")&&(n=t.title),Object.prototype.hasOwnProperty.call(t,"details")&&(r=t.details),Object.prototype.hasOwnProperty.call(t,"code")&&(s=t.code),Object.prototype.hasOwnProperty.call(t,"causes")&&Array.isArray(t.causes)&&(i=t.causes)),e.status===403&&(r="You currently don’t have access to this data."),new Sm({title:n,message:r,code:s,causes:i,statusCode:e.status})}const Lo={credentials:"include"};class Rm{constructor(t){Ue(this,"_baseUrl");Ue(this,"_options",Lo);this._baseUrl=t}get baseUrl(){return this._baseUrl}set baseUrl(t){this._baseUrl=t}get options(){return this._options}set options(t){this._options=t}async get(t,n){const{data:r}=await this.raw(t,void 0,n,"GET");return r}async delete(t,n){await this.raw(t,void 0,n,"DELETE")}async post(t,n,r){const{data:s}=await this.raw(t,n,r,"POST");return s}async put(t,n,r){const{data:s}=await this.raw(t,n,r,"PUT");return s}async patch(t,n,r){const{data:s}=await this.raw(t,n,r,"PATCH");return s}async raw(t,n,r={},s="GET"){const i=Mo(r);i.method=s;const o=new Headers(this.options.headers);if("headers"in i){const u=i.headers instanceof Headers?i.headers:new Headers(i.headers);for(const[c,f]of u)o.set(c,f)}const a={...Lo,...this.options,...i};Object.keys(o).length>0&&(a.headers=o);const l=Mo(a);return Am(`${t.startsWith("http")?"":this.baseUrl}${t}`,l,n)}}function Mo(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,s]of Object.entries(t.params))if(s!==void 0)if(Array.isArray(s))for(const i of s)n.push([r,i]);else n.push([r,s]);t.params=n}return t}class Cm{constructor(t){Ue(this,"client");Ue(this,"env");this.client=new Rm(t("KUMA_API_URL")),this.env=t}get baseUrl(){return this.client.baseUrl}setBaseUrl(t){this.client.baseUrl=t}setOptions(t){this.client.options=t}}class Nm extends Cm{getInfo(){return this.client.get("/")}async getStatus(){try{const{response:t}=await this.client.raw("/");return t.status===200?"OK":null}catch{return null}}async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsights(){return this.client.get("/global-insights")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},n){return this.client.get(`/zones/${t}`,{params:n})}createZone(t){return this.client.post("/provision-zone",t)}updateZone(t){return this.client.put(`/zones/${t.name}`,t)}deleteZone({name:t}){return this.client.delete(`/zones/${t}`)}getAllZoneOverviews(t){return this.client.get("/zones+insights",{params:t})}getZoneOverview({name:t},n){return this.client.get(`/zones+insights/${t}`,{params:n})}getZoneIngressData({zoneIngressName:t,dataPath:n},r){return this.client.get(`/zoneingresses/${t}/${n}`,{params:r})}getAllZoneIngressOverviews(t){return this.client.get("/zoneingresses+insights",{params:t})}getZoneIngressOverview({name:t},n){return this.client.get(`/zoneingresses+insights/${t}`,{params:n})}getZoneEgressData({zoneEgressName:t,dataPath:n},r){return this.client.get(`/zoneegresses/${t}/${n}`,{params:r})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegressoverviews",{params:t})}getZoneEgressOverview({name:t},n){return this.client.get(`/zoneegressoverviews/${t}`,{params:n})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},n){return this.client.get(`/meshes/${t}`,{params:n})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},n){return this.client.get(`/mesh-insights/${t}`,{params:n})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}`,{params:r})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes+insights",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/dataplanes+insights`,{params:n})}getDataplaneOverviewFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes+insights/${n}`,{params:r})}getSidecarDataplanePolicies({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getMeshGatewayDataplane({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getDataplaneRules({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/rules`,{params:r})}getDataplaneData({mesh:t,dppName:n,dataPath:r},s){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:s})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/service-insights`,{params:n})}getServiceInsight({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/service-insights/${n}`,{params:r})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/external-services`,{params:n})}getExternalService({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/external-services/${n}`,{params:r})}async getExternalServiceByServiceInsightName(t,n){const{items:r}=await this.getAllExternalServicesFromMesh({mesh:t});return Array.isArray(r)?r.find(i=>i.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,policyPath:n,policyName:r},s){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:s})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},s){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:s})}}var Yr=new WeakMap,$l=new Map,Pm=new Map,Ut;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Ut||(Ut={}));var ut;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(ut||(ut={}));var Lm=class{constructor(e){this.impl=e,this.type=Ut.Constant}},Mm=class{constructor(e){this.impl=e,this.type=Ut.Factory}},Dm=e=>e.type===Ut.Factory,xr=class{constructor(e){this.impl=e,this.type=Ut.Instance}},Hm=class extends xr{constructor(){super(...arguments),this.scope=ut.Container,this.cache=new WeakMap}},Bm=class extends xr{constructor(){super(...arguments),this.scope=ut.Resolution}},xm=class extends xr{constructor(e){super(e),this.impl=e,this.scope=ut.Singleton}},Um=class extends xr{constructor(){super(...arguments),this.scope=ut.Transient}},Fm=e=>e.type===Ut.Instance,km=e=>e.scope===ut.Container,$m=e=>e.scope===ut.Resolution,Gm=e=>e.scope===ut.Singleton,jm=e=>Symbol(e),se=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},bn=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=bn.notag){const r=this.map.get(t.__s);r?r.set(n,e):this.map.set(t.__s,new Map().set(n,e))}find(e,t,n){const r=this.map.get(e.__s);if(r!==void 0){if(n){const s=r.get(n);if(s)return s}if(t)for(let s=0,i=t.length;s{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Gl=bn;Gl.notag=jm("NO_TAG");var Vm=class{constructor(e,t,n,r){this.vault=e,this.tokens=t,this.getVault=n,this.condition=r}from(e){const{tokens:t}=this;for(let n=0,r=t.length;nthis.resolveToken(s,n,r,t.split()))}resolveToken(e,t,n,r=new jl){const s=this.vault.get(e,r,t,n);if(s)return this.resolveBinding(s,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return Fm(e)?Gm(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):km(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):$m(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):Dm(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(s=>lr.resolveInitialization(s,n,e.impl.initializer)):lr.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const s=n();if(s!==void 0)return s;const i=this.createInstance(e.impl,t);return r(i),i}createInstance(e,t){const n=this.getParameters(e,t),r=Yr.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const s=e(...n);return Yr.set(e,!0),s}catch{const i=new e(...n);return Yr.set(e,!1),i}}getParameters(e,t){const n=$l.get(e);if(n)return this.resolveTokens(n,t,Pm.get(e),e);if(e.length===0)return[];throw new Error(`Missing required 'injected' registration of '${e.name}'`)}static resolveInitialization(e,t,n){const r=n==null?void 0:n(e,...t);return r instanceof Promise?r.then(()=>e):e}},Xm=()=>new lr,qm=(e,...t)=>($l.set(e,t),e),GE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ym=function(t){return Qm(t)&&!Jm(t)};function Qm(e){return!!e&&typeof e=="object"}function Jm(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ng(e)}var eg=typeof Symbol=="function"&&Symbol.for,tg=eg?Symbol.for("react.element"):60103;function ng(e){return e.$$typeof===tg}function rg(e){return Array.isArray(e)?[]:{}}function Un(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(rg(e),e,t):e}function sg(e,t,n){return e.concat(t).map(function(r){return Un(r,n)})}function ig(e,t){if(!t.customMerge)return un;var n=t.customMerge(e);return typeof n=="function"?n:un}function og(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Do(e){return Object.keys(e).concat(og(e))}function Kl(e,t){try{return t in e}catch{return!1}}function ag(e,t){return Kl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lg(e,t,n){var r={};return n.isMergeableObject(e)&&Do(e).forEach(function(s){r[s]=Un(e[s],n)}),Do(t).forEach(function(s){ag(e,s)||(Kl(e,s)&&n.isMergeableObject(t[s])?r[s]=ig(s,n)(e[s],t[s],n):r[s]=Un(t[s],n))}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sg,n.isMergeableObject=n.isMergeableObject||Ym,n.cloneUnlessOtherwiseSpecified=Un;var r=Array.isArray(t),s=Array.isArray(e),i=r===s;return i?r?n.arrayMerge(e,t,n):lg(e,t,n):Un(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return un(r,s,n)},{})};var cg=un,ug=cg;const fg=Vl(ug),ci=Xm(),hg=(...e)=>[...new Map([...e.flat()]).entries()],pg=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const s=r.decorates,i=t.get(s);if(typeof i<"u"){const{labels:o,...a}=i,l=se("inner"),u=se("inner.wrapper");t.set(l,{...a}),t.set(u,{service:()=>()=>$n(l)}),t.set(s,{...r,arguments:[u],labels:o})}r.decorates=void 0}}),[...t.entries()]},$n=e=>ci.get(e),dg=(...e)=>(pg(hg(...e)).forEach(n=>zl(...n)),$n),jE=(...e)=>e.map(t=>()=>$n(t)),Yn=new WeakMap,zl=(e,t)=>{const n=ci.bind(e);switch(!0){case"constant"in t:n.toConstant(t.constant);break;case"service"in t:{const r=n.toInstance(t.service);(typeof t.shared>"u"||t.shared===!0)&&r.inSingletonScope();break}}typeof t.labels<"u"&&t.labels.forEach(r=>{Yn.has(r)||(Yn.set(r,[]),zl(r,{service:()=>Yn.get(r).reduce((i,o)=>{const a=$n(o);return Array.isArray(a)?i.concat(a):a instanceof Object?fg(i,a):i},[])})),Yn.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,s)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${s}]`)}),qm(t.service,...t.arguments))},mg=(e,t)=>{const n=se(t.description);return ci.bind(n).toConstant(e),n},gg=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Zl=gg;const Eg="2.0.0",vg=256,_g=Number.MAX_SAFE_INTEGER||9007199254740991,yg=16,bg=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Wl={MAX_LENGTH:vg,MAX_SAFE_COMPONENT_LENGTH:yg,MAX_SAFE_INTEGER:_g,RELEASE_TYPES:bg,SEMVER_SPEC_VERSION:Eg,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Rs={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Wl,r=Zl;t=e.exports={};const s=t.re=[],i=t.src=[],o=t.t={};let a=0;const l=(u,c,f)=>{const h=a++;r(u,h,c),o[u]=h,i[h]=c,s[h]=new RegExp(c,f?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),l("FULL",`^${i[o.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),l("LOOSE",`^${i[o.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[o.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),l("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[o.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Rs,Rs.exports);var Tg=Rs.exports;const Ig=Object.freeze({loose:!0}),Sg=Object.freeze({}),Ag=e=>e?typeof e!="object"?Ig:e:Sg;var Og=Ag;const Ho=/^[0-9]+$/,Xl=(e,t)=>{const n=Ho.test(e),r=Ho.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eXl(t,e);var Rg={compareIdentifiers:Xl,rcompareIdentifiers:wg};const Qn=Zl,{MAX_LENGTH:Bo,MAX_SAFE_INTEGER:Jn}=Wl,{re:xo,t:Uo}=Tg,Cg=Og,{compareIdentifiers:Wt}=Rg;let Ng=class qe{constructor(t,n){if(n=Cg(n),t instanceof qe){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Bo)throw new TypeError(`version is longer than ${Bo} characters`);Qn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?xo[Uo.LOOSE]:xo[Uo.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Jn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),Wt(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Pg=Ng;const Fo=Pg,Lg=(e,t,n)=>new Fo(e,n).compare(new Fo(t,n));var Mg=Lg;const Qr=Vl(Mg),VE="Kuma",KE=50,Cs=500,ko="Disabled",zE="kuma.io/zone",Dg={status:null,tagline:null,version:null,kumaDocsVersion:"latest",clientConfig:null},Hg={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t,SET_TAGLINE:(e,t)=>e.tagline=t,SET_VERSION:(e,t)=>e.version=t,SET_KUMA_DOCS_VERSION:(e,t)=>e.kumaDocsVersion=t},Bg={getStatus:e=>e.status,getConfig:e=>e.clientConfig,getEnvironment:e=>{var t;return(t=e.clientConfig)==null?void 0:t.environment},getMode:e=>{var t;return(t=e.clientConfig)==null?void 0:t.mode},getTagline:e=>e.tagline,getVersion:e=>e.version,getKumaDocsVersion:e=>e.kumaDocsVersion,getConfigurationType:e=>{var t,n;return(n=(t=e.clientConfig)==null?void 0:t.store)==null?void 0:n.type},getMulticlusterStatus:(e,t)=>t.getMode==="global"},xg=e=>({bootstrapConfig({dispatch:t}){const n=t("getInfo"),r=t("getConfig");return Promise.all([n,r])},getConfig({commit:t}){return e.getConfig().then(n=>{t("SET_CONFIG_DATA",n)})},getStatus({commit:t}){return e.getStatus().then(n=>{t("SET_STATUS",n)})},getInfo({commit:t}){return e.getInfo().then(n=>{t("SET_TAGLINE",n.tagline),t("SET_VERSION",n.version);let r;const s=n.basedOnKuma??n.version,i=s.indexOf("-preview.");if(i!==-1){const o=s.substring(0,i);r=o==="0.0.0"?"dev":o.replace(/\.\d+$/,".x")}else r=s.replace(/\.\d+$/,".x");t("SET_KUMA_DOCS_VERSION",r)}).catch(n=>{console.error(n)})}}),Ug=e=>({namespaced:!0,state:()=>Dg,getters:Bg,mutations:Hg,actions:xg(e)}),Fg={isOpen:!1},kg={OPEN_MODAL:e=>e.isOpen=!0,CLOSE_MODAL:e=>e.isOpen=!1},$g={meshNotificationItemMap(e,t,n){var i;return(((i=n.meshes)==null?void 0:i.items)||[]).reduce((o,a)=>(o[a.name]={hasLogging:!!a.logging,hasMtls:!!a.mtls,hasMetrics:!!a.metrics,hasTracing:!!a.tracing},o),{})},meshNotificationItemMapWithAction(e,t){const n=t.meshNotificationItemMap;return Object.entries(n).reduce((r,[s,i])=>(Object.values(i).some(a=>!a)&&(r[s]=i),r),{})},singleMeshNotificationItems(e,t,n,r){if(n.selectedMesh===null||!(n.selectedMesh in t.meshNotificationItemMap))return[];const s=t.meshNotificationItemMap[n.selectedMesh],i=Object.entries(r.getMeshInsight.policies).filter(([a,l])=>["MeshAccessLog","MeshTrace"].includes(a)).some(([a,l])=>l.total>0),o=[{name:"Observability, Metrics & Service Map",component:"MetricsNotification",isCompleted:s.hasMetrics},{name:"Logging",component:"LoggingNotification",isCompleted:s.hasLogging||i},{name:"Zero-trust security",component:"MtlsNotification",isCompleted:s.hasMtls},{name:"Tracing",component:"TracingNotification",isCompleted:s.hasTracing}];return o.sort((a,l)=>+a.isCompleted-+l.isCompleted),o},amountOfActions(e,t){return Object.keys(t.meshNotificationItemMapWithAction).length}},Gg={openModal({commit:e}){e("OPEN_MODAL")},closeModal({commit:e}){e("CLOSE_MODAL")}},jg={namespaced:!0,state:()=>Fg,getters:$g,mutations:kg,actions:Gg},Vg={isCompleted:lt.get("onboardingIsCompleted")==="true",step:lt.get("onboardingStep")||"onboarding-welcome",mode:"demo"},Kg={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},zg={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),t("sidebar/getInsights",null,{root:!0}),e("SET_IS_COMPLETED",!0),lt.set("onboardingIsCompleted","true"),lt.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),lt.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},Zg={namespaced:!0,state:()=>Vg,mutations:Kg,actions:zg};function $o(e){const t=e.items.reduce((n,{dataplanes:r,dataplanesByType:s,policies:i,services:o})=>{var a,l;n.services.internal+=o.internal||0,n.services.external+=o.external||0,n.services.total+=o.total||0,n.dataplanes.total+=r.total||0,n.dataplanes.standard+=((a=s.standard)==null?void 0:a.total)||0,n.dataplanes.gateway+=((l=s.gateway)==null?void 0:l.total)||0;for(const[u,c]of Object.entries(i))n.policies[u]||(n.policies[u]=0),n.policies[u]+=c.total||0;return n},{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}});return t.policies.total=Object.values(t.policies).reduce((n,r)=>n+r,0),t}function Wg(e){return Object.entries(e.resources).reduce((t,[n,r])=>(t[n]||(t[n]=0),t[n]+=r.total||0,t),{})}const Xg={insights:{global:{},mesh:{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}}}},qg={SET_GLOBAL_INSIGHTS:(e,t)=>e.insights.global=t,SET_MESH_INSIGHTS:(e,t)=>e.insights.mesh=t},Yg=e=>({getInsights({dispatch:t}){return Promise.all([t("getGlobalInsights"),t("getMeshInsights")])},async getMeshInsights({commit:t,rootState:n}){if(n.selectedMesh===null)return;let r;try{const s=await e.getMeshInsights({name:n.selectedMesh});r=$o({items:[s]})}catch{r=$o({items:[]})}t("SET_MESH_INSIGHTS",r)},async getGlobalInsights({commit:t}){const n=await e.getGlobalInsights(),r=Wg(n);t("SET_GLOBAL_INSIGHTS",r)}}),Qg=e=>({namespaced:!0,state:()=>Xg,mutations:qg,actions:Yg(e)}),ql=(e={},t={})=>{const n=e.online||0,r=t.online||0,s=e.partiallyDegraded||0,i=t.partiallyDegraded||0,o=e.total||0,a=t.total||0;return{online:n+r,partiallyDegraded:s+i,total:o+a}},Jg=(e,t={})=>Object.entries(t).reduce((n,[r,s])=>{const i=n[r]?n[r].total:0;return{...n,[r]:{total:i+s.total}}},e),Go=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>({...n,[r]:ql(n[r],s)}),e),eE=(e={},t={})=>({kumaDp:Go(e.kumaDp,t.kumaDp),envoy:Go(e.envoy,t.envoy)});function Yl(){return{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}}}}function tE(e={}){return Ql([e])}function Ql(e=[]){return e.reduce((t,n)=>({meshesTotal:e.length,dataplanes:ql(t.dataplanes,n.dataplanes),policies:Jg(t.policies,n.policies),dpVersions:eE(t.dpVersions,n.dpVersions)}),{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}}})}const nE=new Intl.DateTimeFormat("en-US",{dateStyle:"long"}),rE=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"medium"});function sE(e){const t=new Date(Date.parse(e)),n=Math.floor((Date.now()-t.getTime())/1e3);return n<=1?"just now":n<20?`${n} seconds ago`:n<40?"half a minute ago":n<60?"less than a minute ago":n<=90?"one minute ago":n<=3540?`${Math.round(n/60)} minutes ago`:n<=5400?"1 hour ago":n<=86400?`${Math.round(n/3600)} hours ago`:n<=129600?"1 day ago":n<604800?`${Math.round(n/86400)} days ago`:n<=777600?"1 week ago":nE.format(t)}function ZE(e){const t=new Date(Date.parse(e));return rE.format(t)}function WE(e){const t=e.replace(/[^a-zA-Z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim();return e?t:""}async function er(e){try{let t=null,n=0,r=[],s=null;for(;;){const i={size:Cs,offset:n},{total:o,items:a,next:l}=await e(i);if(Array.isArray(a)&&(r=r.concat(a)),t===null&&(t=o),!l||s===l)break;s=l,n+=Cs}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function XE(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const s=JSON.parse(r.config);return li(s,"dpServer.auth.type",ko)}}return ko}function qE(e){let t=[];e.networking.inbound&&(t=e.networking.inbound.filter(r=>"tags"in r).flatMap(r=>Object.entries(r.tags)).map(([r,s])=>`${r}=${s}`)),e.networking.gateway&&(t=Object.entries(e.networking.gateway.tags).map(([r,s])=>`${r}=${s}`));const n=Array.from(new Set(t));return n.sort((r,s)=>r.localeCompare(s)),n.map(r=>r.split("=")).map(([r,s])=>({label:r,value:s}))}function Jl(e={subscriptions:[]}){return(e.subscriptions??[]).some(n=>{var r;return((r=n.connectTime)==null?void 0:r.length)&&!n.disconnectTime})?"online":"offline"}function YE(e,t={subscriptions:[]}){const n=e.networking.inbound??[],r=n.filter(i=>i.health&&!i.health.ready).map(i=>`Inbound on port ${i.port} is not ready (kuma.io/service: ${i.tags["kuma.io/service"]})`);let s;switch(!0){case n.length===0:s="online";break;case r.length===n.length:s="offline";break;case r.length>0:s="partially_degraded";break;default:s=Jl(t)}return{status:s,reason:r}}function QE(e){if(e===void 0||e.subscriptions.length===0)return null;const t={},n=e.subscriptions[e.subscriptions.length-1];return n.version===void 0?null:(n.version.envoy&&(t.envoy=n.version.envoy.version),n.version.kumaDp&&(t.kumaDp=n.version.kumaDp.version),n.version.dependencies&&Object.entries(n.version.dependencies).forEach(([r,s])=>{t[r]=s}),t)}function JE(e){if(e.dataplaneInsight===void 0||e.dataplaneInsight.mTLS===void 0)return null;const{mTLS:t}=e.dataplaneInsight,n=new Date(t.certificateExpirationTime),r=new Date(n.getTime()+n.getTimezoneOffset()*6e4);return{certificateExpirationTime:`${r.toLocaleDateString("en-US")} ${r.getHours()}:${r.getMinutes()}:${r.getSeconds()}`,lastCertificateRegeneration:sE(t.lastCertificateRegeneration),certificateRegenerations:t.certificateRegenerations}}function ev(e){var r,s;return((r=e.kumaDp)==null?void 0:r.kumaCpCompatible)??!0?((s=e.envoy)==null?void 0:s.kumaDpCompatible)??!0?{kind:iE}:{kind:aE,payload:{envoy:e.envoy.version,kumaDp:e.kumaDp.version}}:{kind:oE,payload:{kumaDp:e.kumaDp.version}}}const iE="COMPATIBLE",tv="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",nv="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",oE="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",aE="INCOMPATIBLE_UNSUPPORTED_ENVOY",rv="INCOMPATIBLE_WRONG_FORMAT",Jr="Online",jo="Offline",lE="Partially degraded",cE={menu:null,globalLoading:!0,defaultVisibility:{appError:!0,notificationManager:!0,onboardingNotification:!0},pageTitle:"",meshes:{total:0,items:[],next:null},selectedMesh:"default",totalDataplaneCount:0,version:"",itemQueryNamespace:"item",totalClusters:0,serviceSummary:{total:0,internal:{total:0,online:0,offline:0,partiallyDegraded:0},external:{total:0}},overviewCharts:{dataplanes:{data:[]},meshes:{data:[]},services:{data:[]},policies:{data:[]},zones:{data:[]},zonesCPVersions:{data:[]},kumaDPVersions:{data:[]},envoyVersions:{data:[]}},meshInsight:Yl(),meshInsightsFetching:!1,serviceInsightsFetching:!1,externalServicesFetching:!1,zonesInsightsFetching:!1,policyTypes:[],policyTypesByPath:{},policyTypesByName:{},globalKdsAddress:"grpcs://:5685"},uE=e=>({modules:{sidebar:Qg(e),config:Ug(e),notifications:jg,onboarding:Zg},state:()=>cE,getters:{globalLoading:t=>t.globalLoading,shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowNotificationManager:(t,n)=>t.defaultVisibility.notificationManager&&n["notifications/amountOfActions"]>0,shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n},getMeshList:t=>t.meshes,getItemQueryNamespace:t=>t.itemQueryNamespace,getMeshInsight:t=>t.meshInsight,getMeshInsightsFetching:t=>t.meshInsightsFetching,getServiceInsightsFetching:t=>t.serviceInsightsFetching,getExternalServicesFetching:t=>t.externalServicesFetching,getResourceFetching:({meshInsightsFetching:t,serviceInsightsFetching:n,externalServicesFetching:r})=>t||n||r,getServiceResourcesFetching:({serviceInsightsFetching:t,externalServicesFetching:n})=>t||n,getZonesInsightsFetching:({zonesInsightsFetching:t})=>t,getChart:t=>(n,{title:r,subtitle:s=void 0,showTotal:i=!1,isStatusChart:o=!1})=>({title:r,subtitle:s,showTotal:i,isStatusChart:o,dataPoints:t.overviewCharts[n].data})},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_PAGE_TITLE:(t,n)=>t.pageTitle=n,SET_MESHES:(t,n)=>t.meshes=n,SET_SELECTED_MESH:(t,n)=>t.selectedMesh=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_TOTAL_CLUSTER_COUNT:(t,n)=>t.totalClusters=n,SET_INTERNAL_SERVICE_SUMMARY:(t,{items:n=[]})=>{const r={online:0,partially_degraded:0,offline:0,not_available:0},{online:s,offline:i,partially_degraded:o}=n.reduce((l,{status:u="offline"})=>({...l,[u]:l[u]+1}),r),a=s+i+o;t.serviceSummary.internal={...t.serviceSummary.internal,total:a,online:s,partiallyDegraded:o,offline:i},t.serviceSummary.total=t.serviceSummary.external.total+a},SET_EXTERNAL_SERVICE_SUMMARY:(t,{total:n=0})=>{t.serviceSummary.external.total=n,t.serviceSummary.total=t.serviceSummary.internal.total+n},SET_MESH_INSIGHT:(t,n)=>t.meshInsight=tE(n),SET_MESH_INSIGHT_FROM_ALL_MESHES:(t,n)=>t.meshInsight=Ql(n.items),SET_ZONES_INSIGHTS_FETCHING:(t,n)=>t.zonesInsightsFetching=n,SET_MESH_INSIGHTS_FETCHING:(t,n)=>t.meshInsightsFetching=n,SET_SERVICE_INSIGHTS_FETCHING:(t,n)=>t.serviceInsightsFetching=n,SET_EXTERNAL_SERVICES_FETCHING:(t,n)=>t.externalServicesFetching=n,SET_OVERVIEW_CHART_DATA:(t,{chartName:n,data:r})=>{t.overviewCharts[n].data=r},SET_POLICY_TYPES:(t,n)=>{n.sort((r,s)=>r.name.localeCompare(s.name)),t.policyTypes=n},SET_POLICY_TYPES_BY_PATH:(t,n)=>t.policyTypesByPath=n,SET_POLICY_TYPES_BY_NAME:(t,n)=>t.policyTypesByName=n,SET_GLOBAL_KDS_ADDRESS:(t,n)=>t.globalKdsAddress=n},actions:{updateGlobalLoading({commit:t},n){t("SET_GLOBAL_LOADING",n)},async bootstrap({dispatch:t,getters:n,state:r}){if(await t("config/getStatus"),n["config/getStatus"]==="OK")if(await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")]),r.meshes.items.length>0){const s=lt.get("selectedMesh");let i;if(s!==null){const o=r.meshes.items.find(a=>a.name===s);o!==void 0&&(i=o)}i===void 0&&(i=r.meshes.items[0]),await t("updateSelectedMesh",i.name),await t("sidebar/getInsights")}else await t("updateSelectedMesh",null)},updatePageTitle({commit:t},n){t("SET_PAGE_TITLE",n)},async fetchMeshList({commit:t,state:n}){const r={size:Cs};try{const{total:s,items:i,next:o}=await e.getAllMeshes(r),a={items:i??[],total:s,next:o};a.items.sort((l,u)=>l.name==="default"?-1:u.name==="default"?1:l.name.localeCompare(u.name)),t("SET_MESHES",a)}catch(s){console.error(s)}},updateSelectedMesh({commit:t},n){n!==null?lt.set("selectedMesh",n):lt.remove("selectedMesh"),t("SET_SELECTED_MESH",n)},async fetchTotalClusterCount({commit:t}){const n=await e.getZones();t("SET_TOTAL_CLUSTER_COUNT",n.total)},async fetchDataplaneTotalCount({commit:t}){try{const n=await e.getAllDataplanes({size:1});t("SET_TOTAL_DATAPLANE_COUNT",n.total)}catch(n){console.error(n)}},async fetchGlobalInsights({commit:t}){var n,r;try{const s=await e.getGlobalInsights(),i=[{title:"Mesh",data:((n=s.resources.Mesh)==null?void 0:n.total)??0}];t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:i});const o=[{title:Jr,data:((r=s.resources.Zone)==null?void 0:r.total)??0,route:{name:"zone-cp-list-view"}}];t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:o})}catch(s){console.error(s)}},async fetchMeshInsights({commit:t,dispatch:n},r){t("SET_MESH_INSIGHTS_FETCHING",!0);try{if(r===void 0){const s=await er(e.getAllMeshInsights.bind(e));if(s.items.length>0){const i=[];i.push({title:"Mesh",data:s.items.length}),t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:i}),t("SET_MESH_INSIGHT_FROM_ALL_MESHES",s)}}else t("SET_MESH_INSIGHT",await e.getMeshInsights({name:r}))}catch{t("SET_OVERVIEW_CHART_DATA",{chartName:"meshes",data:[]}),t("SET_MESH_INSIGHT",Yl())}finally{n("setChartsFromMeshInsights")}t("SET_MESH_INSIGHTS_FETCHING",!1)},async fetchServiceInsights({commit:t},n){t("SET_SERVICE_INSIGHTS_FETCHING",!0);try{const r=n===void 0?e.getAllServiceInsights.bind(e):e.getAllServiceInsightsFromMesh.bind(e,{mesh:n});t("SET_INTERNAL_SERVICE_SUMMARY",await er(r))}catch{t("SET_INTERNAL_SERVICE_SUMMARY",{})}t("SET_SERVICE_INSIGHTS_FETCHING",!1)},async fetchExternalServices({commit:t},n){t("SET_EXTERNAL_SERVICES_FETCHING",!0);try{const r=n===void 0?e.getAllExternalServices.bind(e):e.getAllExternalServicesFromMesh.bind(e,{mesh:n});t("SET_EXTERNAL_SERVICE_SUMMARY",await er(r))}catch{t("SET_EXTERNAL_SERVICE_SUMMARY",{})}t("SET_EXTERNAL_SERVICES_FETCHING",!1)},async fetchServices({dispatch:t},n){const r=t("fetchExternalServices",n),s=t("fetchServiceInsights",n);await Promise.all([s,r]),await t("setOverviewServicesChartData")},async fetchZonesInsights({commit:t,dispatch:n,getters:r},s=!1){t("SET_ZONES_INSIGHTS_FETCHING",!0);try{if(s){const i=await er(e.getAllZoneOverviews.bind(e));i.items.length>0&&(n("setOverviewZonesChartData",i),n("setOverviewZonesCPVersionsChartData",i))}else{const i=[{title:"Zone",data:1,route:{name:"zone-cp-list-view"}}],o=[{title:r["config/getVersion"],data:1,route:{name:"zone-cp-list-view"}}];t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:i}),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:o})}}catch{t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:[]}),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:[]})}t("SET_ZONES_INSIGHTS_FETCHING",!1)},async fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((i,o)=>Object.assign(i,{[o.path]:o}),{}),s=n.reduce((i,o)=>Object.assign(i,{[o.name]:o}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",s)},setChartsFromMeshInsights({dispatch:t}){t("setOverviewDataplanesChartData"),t("setOverviewKumaDPVersionsChartData"),t("setOverviewEnvoyVersionsChartData")},setOverviewZonesChartData({commit:t},{items:n=[]}){const r=n.length;let s=0;n.forEach(o=>{Jl(o.zoneInsight)==="online"&&s++});const i=[];r&&(i.push({title:Jr,data:s,route:{name:"zone-cp-list-view"}}),s!==r&&i.push({title:jo,data:r-s,route:{name:"zone-cp-list-view"}})),t("SET_OVERVIEW_CHART_DATA",{chartName:"zones",data:i})},setOverviewServicesChartData({state:t,commit:n}){const{internal:r,external:s}=t.serviceSummary,i=[];r.total&&t.selectedMesh!==null&&i.push({title:"Internal",data:r.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),s.total&&t.selectedMesh!==null&&i.push({title:"External",data:s.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),n("SET_OVERVIEW_CHART_DATA",{chartName:"services",data:i})},setOverviewDataplanesChartData({state:t,commit:n}){const r=t.meshInsight.dataplanes.total,s=[];if(r>0){const i=t.meshInsight.dataplanes.online??0;s.push({title:Jr,data:i});const o=t.meshInsight.dataplanes.partiallyDegraded??0;o>0&&s.push({title:lE,data:o});const a=r-o-i;a>0&&s.push({title:jo,data:a})}n("SET_OVERVIEW_CHART_DATA",{chartName:"dataplanes",data:s})},setOverviewZonesCPVersionsChartData({commit:t},{items:n}){const r=n.reduce((s,i)=>{var u;const o=((u=i.zoneInsight)==null?void 0:u.subscriptions)??[];if(o.length===0)return s;const a=o.pop(),l=s.find(c=>{var f,h;return c.title===((h=(f=a.version)==null?void 0:f.kumaCp)==null?void 0:h.version)});return l?l.data++:s.push({title:a.version.kumaCp.version,data:1,route:{name:"zone-cp-list-view"}}),s},[]);r.sort((s,i)=>s.title==="unknown"?1:i.title==="unknown"?-1:Qr(s.title,i.title)),t("SET_OVERVIEW_CHART_DATA",{chartName:"zonesCPVersions",data:r})},setOverviewEnvoyVersionsChartData({state:t,commit:n}){const{envoy:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Qr(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"envoyVersions",data:s})},setOverviewKumaDPVersionsChartData({state:t,commit:n}){const{kumaDp:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Qr(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"kumaDPVersions",data:s})},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),fE={EnvVars:se("EnvVars"),Env:se("Env"),env:se("env"),i18n:se("i18n"),enUs:se("i18n.locale.enUs"),kumaEnUs:se("kuma.locale.enUs"),api:se("KumaApi"),storeConfig:se("storeOptions"),store:se("store"),router:se("router"),routes:se("vue.routes"),meshRoutes:se("kuma.mesh.routes"),dataplaneRoutes:se("kuma.dataplane.routes"),gatewayRoutes:se("kuma.gateway.routes"),serviceRoutes:se("kuma.service.routes"),policyRoutes:se("kuma.policy.routes"),zoneRoutes:se("kuma.zone.routes"),diagnosticsRoutes:se("kuma.diagnostics.routes"),onboardingRoutes:se("kuma.onboarding.routes"),wizardRoutes:se("kuma.wizard.routes"),nav:se("nav"),logger:se("logger"),app:se("app"),bootstrap:se("bootstrap")},hE=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",KUMA_FEEDBACK_URL:"https://github.com/kumahq/kuma/issues/new/choose",KUMA_CHAT_URL:"https://kuma-mesh.slack.com",KUMA_INSTALL_URL:"https://kuma.io/install/latest/",KUMA_VERSION_URL:"https://kuma.io/latest_version",KUMA_DOCS_URL:"https://kuma.io/docs",KUMA_MOCK_API_ENABLED:{}.VITE_MOCK_API_ENABLED,KUMA_ZONE_CREATION_FLOW:{}.VITE_ZONE_CREATION_FLOW}}],[e.Env,{service:Yp,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>$n(e.Env).var(...t)}],[e.i18n,{service:Im,arguments:[e.enUs]}],[e.kumaEnUs,{constant:Wp,labels:[e.enUs]}],[e.api,{service:Nm,arguments:[e.env]}],[e.logger,{service:ph}],[e.storeConfig,{service:uE,arguments:[e.api]}],[e.store,{service:fh,arguments:[e.storeConfig]}],[e.router,{service:ml,arguments:[e.routes,e.store]}],[e.routes,{service:Xp,arguments:[e.zoneRoutes,e.meshRoutes,e.wizardRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:Rp,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:Sp}],[e.gatewayRoutes,{service:Op}],[e.serviceRoutes,{service:Pp}],[e.policyRoutes,{service:Np,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:Dp,arguments:[mg([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?Mp():[]],{description:"kuma.zone.action.routes"})]}],[e.wizardRoutes,{service:Lp}],[e.onboardingRoutes,{service:Cp}],[e.diagnosticsRoutes,{service:Ap}],[e.nav,{service:()=>t=>wp(t)}],[e.app,{service:bp,arguments:[e.env,e.routes,e.store]}],[e.bootstrap,{service:Tp,arguments:[e.store]}]],tr=fE;async function pE(){const e=dg(hE(tr),[]);(await e(tr.app)((await V(()=>import("./App-cf5d1fdb.js"),["./RouteView-22a3f08a.css","./App-88efaca9.css"],import.meta.url)).default)).mount("#app");const n=e(tr.store);await n.dispatch("updateGlobalLoading",!0),await e(tr.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}pE();export{DE as $,ev as A,tv as B,iE as C,kE as D,sE as E,Pe as F,Ks as G,Hs as H,rv as I,NE as J,zE as K,VE as L,zs as M,Aa as N,Jl as O,KE as P,wE as Q,yE as R,ME as S,za as T,ZE as U,oE as V,aE as W,HE as X,lt as Y,FE as Z,WE as _,ka as a,UE as a0,er as a1,XE as a2,nv as a3,je as a4,ir as a5,$n as a6,tr as a7,jE as a8,Ft as a9,Js as aa,X as ab,V as ac,Ds as ad,Yc as ae,ff as af,q as ag,aa as ah,mg as ai,pn as aj,He as ak,St as al,Ju as am,RE as an,da as ao,xE as ap,BE as aq,LE as ar,_E as as,OE as at,rn as au,gE as av,Ys as aw,Sm as ax,GE as ay,Vl as az,uu as b,Le as c,Ia as d,Jt as e,CE as f,PE as g,Qu as h,Ae as i,TE as j,IE as k,Ga as l,SE as m,vE as n,Ua as o,EE as p,AE as q,bE as r,qc as s,mE as t,$E as u,YE as v,tn as w,qE as x,QE as y,JE as z}; diff --git a/app/kuma-ui/pkg/resources/data/assets/kongponents.es-db3f0bda.js b/app/kuma-ui/pkg/resources/data/assets/kongponents.es-605260c0.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/kongponents.es-db3f0bda.js rename to app/kuma-ui/pkg/resources/data/assets/kongponents.es-605260c0.js index 4933098073aa..d7c8d97f62ee 100644 --- a/app/kuma-ui/pkg/resources/data/assets/kongponents.es-db3f0bda.js +++ b/app/kuma-ui/pkg/resources/data/assets/kongponents.es-605260c0.js @@ -1,4 +1,4 @@ -import{aj as Bl,c as Z,d as oe,s as P,G as Ge,w as Me,M as Tn,ak as Bs,al as Ms,aa as Ra,r as hr,u as Ss,o as k,f as S,a as $,b as H,q as L,h as F,t as R,e as C,am as ge,j as On,H as Q,Q as Xe,an as Mt,l as O,m as ua,g as I,ao as Ot,i as V,ap as ct,aq as Fe,R as Qa,ad as mt,a0 as Ua,T as Ml,ar as Sl,F as xe,k as Ie,N as Al,as as Dl,at as Ga,p as gr,n as mr,au as As,av as Ds,aw as Es}from"./index-e7c4cb0f.js";var Ts=Object.defineProperty,Os=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Or=(e,t,n)=>(Os(e,typeof t!="symbol"?t+"":t,n),n);async function El(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="32px",t.style.height="32px",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.focus(),t.select();let n;try{n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const Zx=oe({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:El})}}),Tl=oe({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=P(e.toggled),o=()=>{r.value=!r.value,n("toggled",r.value)};try{if(!t.default)throw new Error("KToggle expects slot content");return()=>(t==null?void 0:t.default)&&t.default({isToggled:r,toggle:o})}catch{return console.error(`KToggle expects to have slot content. +import{aj as Bl,c as Z,d as oe,s as P,G as Ge,w as Me,M as Tn,ak as Bs,al as Ms,aa as Ra,r as hr,u as Ss,o as k,f as S,a as $,b as H,q as L,h as F,t as R,e as C,am as ge,j as On,H as Q,Q as Xe,an as Mt,l as O,m as ua,g as I,ao as Ot,i as V,ap as ct,aq as Fe,R as Qa,ad as mt,a0 as Ua,T as Ml,ar as Sl,F as xe,k as Ie,N as Al,as as Dl,at as Ga,p as gr,n as mr,au as As,av as Ds,aw as Es}from"./index-3e91d6ff.js";var Ts=Object.defineProperty,Os=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Or=(e,t,n)=>(Os(e,typeof t!="symbol"?t+"":t,n),n);async function El(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="32px",t.style.height="32px",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.focus(),t.select();let n;try{n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const Zx=oe({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:El})}}),Tl=oe({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=P(e.toggled),o=()=>{r.value=!r.value,n("toggled",r.value)};try{if(!t.default)throw new Error("KToggle expects slot content");return()=>(t==null?void 0:t.default)&&t.default({isToggled:r,toggle:o})}catch{return console.error(`KToggle expects to have slot content. Example usage: diff --git a/app/kuma-ui/pkg/resources/data/index.html b/app/kuma-ui/pkg/resources/data/index.html index 89b6e4140918..693f5cc1bf9c 100644 --- a/app/kuma-ui/pkg/resources/data/index.html +++ b/app/kuma-ui/pkg/resources/data/index.html @@ -1 +1 @@ -Manager
\ No newline at end of file +Manager
\ No newline at end of file