diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-c6b67078.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-bd1a5ea2.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServices-c6b67078.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServices-bd1a5ea2.js index a27e972421ee..1cc1a329fbd6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-c6b67078.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-bd1a5ea2.js @@ -1,4 +1,4 @@ -import{O as b,a as x,b as w}from"./OnboardingPage-587e62e3.js";import{d as m,o as u,e as S,z as h,n as y,c as k,a as B,w as t,h as s,b as _,g as o,q as e,p as A,m as C}from"./index-4f1a7619.js";import{f as v,e as N,g as $,A as I,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const z=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,M=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,q=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),S("div",{class:y(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[h(r.$slots,"default",{},void 0,!0)],2))}});const p=v(q,[["__scopeId","data-v-93fc7d1a"]]),f=a=>(A("data-v-8218f0d7"),a=a(),C(),a),L={class:"service-mode-list"},R=f(()=>e("div",{class:"service-box-content"},[e("img",{src:z}),o(),e("p",{class:"service-mode-title"},` +import{O as b,a as x,b as w}from"./OnboardingPage-4256e18b.js";import{d as m,o as u,e as S,z as h,n as y,c as k,a as B,w as t,h as s,b as _,g as o,q as e,p as A,m as C}from"./index-3a142bd5.js";import{f as v,e as N,g as $,A as I,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const z=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,M=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,q=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),S("div",{class:y(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[h(r.$slots,"default",{},void 0,!0)],2))}});const p=v(q,[["__scopeId","data-v-93fc7d1a"]]),f=a=>(A("data-v-8218f0d7"),a=a(),C(),a),L={class:"service-mode-list"},R=f(()=>e("div",{class:"service-box-content"},[e("img",{src:z}),o(),e("p",{class:"service-mode-title"},` Demo app `),o(),e("p",null,"Counter application")],-1)),U=f(()=>e("div",{class:"service-box-content"},[e("img",{src:M}),o(),e("p",{class:"service-mode-title"},` Manually diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-3e48daac.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c7c7a9cc.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-3e48daac.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c7c7a9cc.js index d333dca8a97c..d74ffafbd579 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-3e48daac.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-c7c7a9cc.js @@ -1,4 +1,4 @@ -import{L as k}from"./LoadingBox-e9931dad.js";import{O as w,a as x,b as y}from"./OnboardingPage-587e62e3.js";import{g as A,m as N,e as C,A as T,_ as I,f as P}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{d as E,j as p,c as L,y as O,o as n,a as S,w as s,h as t,b as R,g as e,e as c,F as V,q as o,f as B,p as $,m as q}from"./index-4f1a7619.js";const h=d=>($("data-v-159bee77"),d=d(),q(),d),G=h(()=>o("p",{class:"mb-4 text-center"},` +import{L as k}from"./LoadingBox-5888f819.js";import{O as w,a as x,b as y}from"./OnboardingPage-4256e18b.js";import{g as A,m as N,e as C,A as T,_ as I,f as P}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{d as E,j as p,c as L,y as O,o as n,a as S,w as s,h as t,b as R,g as e,e as c,F as V,q as o,f as B,p as $,m as q}from"./index-3a142bd5.js";const h=d=>($("data-v-159bee77"),d=d(),q(),d),G=h(()=>o("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)),K=h(()=>o("p",null,"To run execute the following command:",-1)),F={key:1},H={class:"status-box mt-4"},M={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(d){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:i}=await f.getAllDataplanes();a.value=i>0}catch(i){console.error(i)}finally{a.value||(u(),l.value=window.setTimeout(()=>r(),z))}}function u(){l.value!==null&&window.clearTimeout(l.value)}return(i,X)=>(n(),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-620c47a9.js b/app/kuma-ui/pkg/resources/data/assets/App-4250e301.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/App-620c47a9.js rename to app/kuma-ui/pkg/resources/data/assets/App-4250e301.js index 09442e709ca2..19d031bd2466 100644 --- a/app/kuma-ui/pkg/resources/data/assets/App-620c47a9.js +++ b/app/kuma-ui/pkg/resources/data/assets/App-4250e301.js @@ -1 +1 @@ -import{d as N,u as S,c as s,r as x,a as o,w as r,o as e,b as a,e as n,f as p,g as i,h as c,T as B,i as C,F as E}from"./index-4f1a7619.js";import{u as O,a as V,b as L,c as T,d as z,e as F,_ as H,A as M,f as W}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const j={key:1},q={key:2,class:"app-content-container"},D=N({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(_){const m=_,[f,v,A,g,y]=[O(),V(),L(),T(),z()],d=F(),t=S(),h=s(()=>t.path),u=s(()=>t.meta.isWizard===!0),b=s(()=>d.getters.shouldShowAppError),k=s(()=>d.getters.shouldShowOnboardingNotification);return(I,K)=>{const l=x("router-view");return e(),o(H,null,{default:r(()=>[a(d).state.globalLoading||a(t).name===void 0?(e(),o(a(A),{key:0})):(e(),n(E,{key:1},[u.value?p("",!0):(e(),o(a(v),{key:0})),i(),a(t).meta.onboardingProcess?(e(),n("div",j,[c(l)])):(e(),n("div",q,[u.value?p("",!0):(e(),o(a(f),{key:0})),i(),c(M,null,{default:r(()=>[b.value?(e(),o(a(g),{key:0,"data-testid":"app-error"})):p("",!0),i(),!u.value&&k.value?(e(),o(a(y),{key:1})):p("",!0),i(),(e(),o(l,{key:h.value},{default:r(({Component:w})=>[c(B,{mode:"out-in",name:"fade"},{default:r(()=>[(e(),n("div",{key:a(t).name,class:"transition-root"},[(e(),o(C(w),{data:m.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const $=W(D,[["__scopeId","data-v-682625b4"]]);export{$ as default}; +import{d as N,u as S,c as s,r as x,a as o,w as r,o as e,b as a,e as n,f as p,g as i,h as c,T as B,i as C,F as E}from"./index-3a142bd5.js";import{u as O,a as V,b as L,c as T,d as z,e as F,_ as H,A as M,f as W}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const j={key:1},q={key:2,class:"app-content-container"},D=N({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(_){const m=_,[f,v,A,g,y]=[O(),V(),L(),T(),z()],d=F(),t=S(),h=s(()=>t.path),u=s(()=>t.meta.isWizard===!0),b=s(()=>d.getters.shouldShowAppError),k=s(()=>d.getters.shouldShowOnboardingNotification);return(I,K)=>{const l=x("router-view");return e(),o(H,null,{default:r(()=>[a(d).state.globalLoading||a(t).name===void 0?(e(),o(a(A),{key:0})):(e(),n(E,{key:1},[u.value?p("",!0):(e(),o(a(v),{key:0})),i(),a(t).meta.onboardingProcess?(e(),n("div",j,[c(l)])):(e(),n("div",q,[u.value?p("",!0):(e(),o(a(f),{key:0})),i(),c(M,null,{default:r(()=>[b.value?(e(),o(a(g),{key:0,"data-testid":"app-error"})):p("",!0),i(),!u.value&&k.value?(e(),o(a(y),{key:1})):p("",!0),i(),(e(),o(l,{key:h.value},{default:r(({Component:w})=>[c(B,{mode:"out-in",name:"fade"},{default:r(()=>[(e(),n("div",{key:a(t).name,class:"transition-root"},[(e(),o(C(w),{data:m.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const $=W(D,[["__scopeId","data-v-682625b4"]]);export{$ as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/AppCollection-911959a1.js b/app/kuma-ui/pkg/resources/data/assets/AppCollection-7dd9601e.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/AppCollection-911959a1.js rename to app/kuma-ui/pkg/resources/data/assets/AppCollection-7dd9601e.js index 7e8b8ecd9012..9d155372218c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppCollection-911959a1.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppCollection-7dd9601e.js @@ -1 +1 @@ -import{d as y,C as v,j as r,c as C,I as k,o as i,a as S,B as b,s as $,w,e as z,z as p,b as u,a6 as A,W as B}from"./index-4f1a7619.js";import{f as x}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const I={key:0,class:"app-collection-toolbar"},d=5,W=y({__name:"AppCollection",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},headers:{},error:{}},emits:["change"],setup(m,{emit:h}){const t=m,_=v(),c=r(t.items),l=r(0),f=C(()=>{const a=t.headers.filter(o=>["warnings","actions"].includes(o.key));if(a.length>4)return"initial";const s=100-a.length*d,e=t.headers.length-a.length;return`calc(${s}% / ${e})`});k(()=>t.items,()=>{l.value++,c.value=t.items});const g=a=>{const s=a.target.closest("tr");if(s){const e=s.querySelector("a");e!==null&&e.click()}};return(a,s)=>(i(),S(u(B),{class:"app-collection",style:A(`--column-width: ${f.value}; --special-column-width: ${d}%;`),"has-error":typeof t.error<"u","pagination-total-items":t.total,"initial-fetcher-params":{page:t.pageNumber,pageSize:t.pageSize},headers:t.headers,"fetcher-cache-key":String(l.value),fetcher:({page:e,pageSize:o,query:n})=>(h("change",{page:e,size:o,s:n}),{data:c.value}),"cell-attrs":({headerKey:e})=>({class:`${e}-column`}),"empty-state-icon-size":"96","disable-sorting":"","hide-pagination-when-optional":"","onRow:click":g},b({_:2},[$(Object.keys(u(_)),e=>({name:e,fn:w(({row:o,rowValue:n})=>[e==="toolbar"?(i(),z("div",I,[p(a.$slots,"toolbar",{},void 0,!0)])):p(a.$slots,e,{key:1,row:o,rowValue:n},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"]))}});const O=x(W,[["__scopeId","data-v-dd44896a"]]);export{O as A}; +import{d as y,C as v,j as r,c as C,I as k,o as i,a as S,B as b,s as $,w,e as z,z as p,b as u,a6 as A,W as B}from"./index-3a142bd5.js";import{f as x}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const I={key:0,class:"app-collection-toolbar"},d=5,W=y({__name:"AppCollection",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},headers:{},error:{}},emits:["change"],setup(m,{emit:h}){const t=m,_=v(),c=r(t.items),l=r(0),f=C(()=>{const a=t.headers.filter(o=>["warnings","actions"].includes(o.key));if(a.length>4)return"initial";const s=100-a.length*d,e=t.headers.length-a.length;return`calc(${s}% / ${e})`});k(()=>t.items,()=>{l.value++,c.value=t.items});const g=a=>{const s=a.target.closest("tr");if(s){const e=s.querySelector("a");e!==null&&e.click()}};return(a,s)=>(i(),S(u(B),{class:"app-collection",style:A(`--column-width: ${f.value}; --special-column-width: ${d}%;`),"has-error":typeof t.error<"u","pagination-total-items":t.total,"initial-fetcher-params":{page:t.pageNumber,pageSize:t.pageSize},headers:t.headers,"fetcher-cache-key":String(l.value),fetcher:({page:e,pageSize:o,query:n})=>(h("change",{page:e,size:o,s:n}),{data:c.value}),"cell-attrs":({headerKey:e})=>({class:`${e}-column`}),"empty-state-icon-size":"96","disable-sorting":"","hide-pagination-when-optional":"","onRow:click":g},b({_:2},[$(Object.keys(u(_)),e=>({name:e,fn:w(({row:o,rowValue:n})=>[e==="toolbar"?(i(),z("div",I,[p(a.$slots,"toolbar",{},void 0,!0)])):p(a.$slots,e,{key:1,row:o,rowValue:n},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"]))}});const O=x(W,[["__scopeId","data-v-dd44896a"]]);export{O as A}; diff --git a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-f3630197.js b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-e831e0af.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-f3630197.js rename to app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-e831e0af.js index 22931283f882..c2cab946cc9b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-f3630197.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-e831e0af.js @@ -1,4 +1,4 @@ -import{d as s,o as n,e as r,h as o,w as e,b as a,v as c,g as t,D as l,E as i,q as d}from"./index-4f1a7619.js";const p={class:"overview"},_=d("p",null,"Page Not Found",-1),w=s({__name:"AppNotFoundView",setup(m){return(u,f)=>(n(),r("div",p,[o(a(i),null,{title:e(()=>[o(a(c),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),_]),message:e(()=>[t(` +import{d as s,o as n,e as r,h as o,w as e,b as a,v as c,g as t,D as l,E as i,q as d}from"./index-3a142bd5.js";const p={class:"overview"},_=d("p",null,"Page Not Found",-1),w=s({__name:"AppNotFoundView",setup(m){return(u,f)=>(n(),r("div",p,[o(a(i),null,{title:e(()=>[o(a(c),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),_]),message:e(()=>[t(` The page or entity you were looking for does not exist. `)]),cta:e(()=>[o(a(l),{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-b49a4fa6.js b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js rename to app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js index fcc725b08e96..bb4dbd6a9b75 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js +++ b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js @@ -1,4 +1,4 @@ -import{ak as Y,a8 as te,d as ae,j as ne,al as U,o as re,a as ie,w as se,z as oe,a6 as le,b as Z,am as ue}from"./index-4f1a7619.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{ak as Y,a8 as te,d as ae,j as ne,al as U,o as re,a as ie,w as se,z as oe,a6 as le,b as Z,am as ue}from"./index-3a142bd5.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-d1cc9391.js b/app/kuma-ui/pkg/resources/data/assets/CompletedView-0b7dc721.js similarity index 75% rename from app/kuma-ui/pkg/resources/data/assets/CompletedView-d1cc9391.js rename to app/kuma-ui/pkg/resources/data/assets/CompletedView-0b7dc721.js index ea5be8847d3e..0da3c304400e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CompletedView-d1cc9391.js +++ b/app/kuma-ui/pkg/resources/data/assets/CompletedView-0b7dc721.js @@ -1,3 +1,3 @@ -import{O as i,a as _,b as p}from"./OnboardingPage-587e62e3.js";import{g as r,A as d,_ as l,f as c}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{d as f,o as u,a as g,w as e,h as t,b as h,g as o,p as b,m as w,q as s}from"./index-4f1a7619.js";const v=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),w(),a),V=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:v})],-1)),C=f({__name:"CompletedView",setup(a){const{t:n}=r();return(I,k)=>(u(),g(l,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(d,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` +import{O as i,a as _,b as p}from"./OnboardingPage-4256e18b.js";import{g as r,A as d,_ as l,f as c}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{d as f,o as u,a as g,w as e,h as t,b as h,g as o,p as b,m as w,q as s}from"./index-3a142bd5.js";const v=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),w(),a),V=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:v})],-1)),C=f({__name:"CompletedView",setup(a){const{t:n}=r();return(I,k)=>(u(),g(l,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(d,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` Go to the dashboard `)]),_:1})]),content:e(()=>[V]),navigation:e(()=>[t(p,{"next-step":"home","next-step-title":"Complete","last-step":"","show-skip":!1})]),_:1})]),_:1})]),_:1}))}});const y=c(C,[["__scopeId","data-v-f50ef4b3"]]);export{y as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-4ab5df96.js b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-201baa90.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-4ab5df96.js rename to app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-201baa90.js index f1ae668689bb..07e1c588ec56 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-4ab5df96.js +++ b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-201baa90.js @@ -1,4 +1,4 @@ -import{d as y,j as V,k as h,c as i,o as d,a as p,w as e,h as o,b as r,g as a,q as m,i as x,x as l}from"./index-4f1a7619.js";import{O as C,a as G,b as k}from"./OnboardingPage-587e62e3.js";import{j as M,k as P,l as T,e as w,g as N,A as O,_ as B,f as K}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const U={class:"graph-list mb-6"},j={class:"radio-button-group"},q=y({__name:"ConfigurationTypes",setup(A){const c=M(),g=P(),_={postgres:T(),memory:g,kubernetes:c},u=w(),{t:f}=N(),t=V("kubernetes");h(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($,n)=>(d(),p(B,null,{default:e(()=>[o(S,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(O,null,{default:e(()=>[o(C,{"with-image":""},{header:e(()=>[o(G,null,{title:e(()=>[a(` +import{d as y,j as V,k as h,c as i,o as d,a as p,w as e,h as o,b as r,g as a,q as m,i as x,x as l}from"./index-3a142bd5.js";import{O as C,a as G,b as k}from"./OnboardingPage-4256e18b.js";import{j as M,k as P,l as T,e as w,g as N,A as O,_ as B,f as K}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const U={class:"graph-list mb-6"},j={class:"radio-button-group"},q=y({__name:"ConfigurationTypes",setup(A){const c=M(),g=P(),_={postgres:T(),memory:g,kubernetes:c},u=w(),{t:f}=N(),t=V("kubernetes");h(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($,n)=>(d(),p(B,null,{default:e(()=>[o(S,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(O,null,{default:e(()=>[o(C,{"with-image":""},{header:e(()=>[o(G,null,{title:e(()=>[a(` Learn about configuration storage `)]),_:1})]),content:e(()=>[m("div",U,[(d(),p(x(b.value)))]),a(),m("div",j,[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/CreateMesh-c7985dcf.js b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-fee1fb95.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/CreateMesh-c7985dcf.js rename to app/kuma-ui/pkg/resources/data/assets/CreateMesh-fee1fb95.js index 1b57c555de1c..16ec3b0076f3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-c7985dcf.js +++ b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-fee1fb95.js @@ -1,4 +1,4 @@ -import{d as u,j as _,c as m,o as h,a as f,w as e,h as t,b as n,g as a,q as o,t as b,W as g,p as v,m as y}from"./index-4f1a7619.js";import{O as x,a as S,b as A}from"./OnboardingPage-587e62e3.js";import{e as C,g as N,A as k,_ as B,f as I}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as w}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const i=s=>(v("data-v-94485eb5"),s=s(),y(),s),D={class:"mb-4 text-center"},M=i(()=>o("i",null,"default",-1)),O=i(()=>o("p",{class:"mt-4 text-center"},` +import{d as u,j as _,c as m,o as h,a as f,w as e,h as t,b as n,g as a,q as o,t as b,W as g,p as v,m as y}from"./index-3a142bd5.js";import{O as x,a as S,b as A}from"./OnboardingPage-4256e18b.js";import{e as C,g as N,A as k,_ as B,f as I}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as w}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const i=s=>(v("data-v-94485eb5"),s=s(),y(),s),D={class:"mb-4 text-center"},M=i(()=>o("i",null,"default",-1)),O=i(()=>o("p",{class:"mt-4 text-center"},` This mesh is empty. Next, you add services and their data plane proxies. `,-1)),V=u({__name:"CreateMesh",setup(s){const c=[{label:"Name",key:"name"},{label:"Services",key:"servicesAmount"},{label:"DPPs",key:"dppsAmount"}],l=C(),{t:r}=N(),d=_({total:1,data:[{name:"default",servicesAmount:0,dppsAmount:0}]}),p=m(()=>l.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-configuration-types");return(E,P)=>(h(),f(B,null,{default:e(()=>[t(w,{title:n(r)("onboarding.routes.create-mesh.title")},null,8,["title"]),a(),t(k,null,{default:e(()=>[t(x,null,{header:e(()=>[t(S,null,{title:e(()=>[a(` Create the mesh diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-0107fcc5.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-eebb64f3.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-0107fcc5.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-eebb64f3.js index a7b4df08f8f0..6b5d32e97e29 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-0107fcc5.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-eebb64f3.js @@ -1,4 +1,4 @@ -import{d as x,r as F,o as e,e as s,g as n,F as m,s as O,q as v,t as h,h as c,w as t,f as I,a as d,B as ke,b as U,R as Oe,p as me,m as he,c as M,v as Ee,z as Pe,W as ve,j as R,I as Qe,X as Ge,K as Ie}from"./index-4f1a7619.js";import{A as J,a as W,_ as Ue,S as ze}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js";import{f as _,e as te,m as ge,q as fe,g as we,r as Me,t as se,v as Le,w as Re,x as xe,C as _e,I as Se,y as Ye,A as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as Te}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{T as K}from"./TagList-3d64abd1.js";import{_ as De}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as Be}from"./ErrorBlock-de349e30.js";import{t as ne,_ as qe}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js";import{D as ie,a as q}from"./DefinitionListItem-61a9402d.js";import{E as ee}from"./EnvoyData-46015709.js";import{S as Ke}from"./StatusBadge-999ac91c.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";import{T as Fe}from"./TabsWidget-c7bce8f4.js";import{T as Je}from"./TextWithCopyButton-6da2ac1e.js";import{_ as We}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-67da292d.js";import{_ as Ve}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as Xe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const N=u=>(me("data-v-1a7d780a"),u=u(),he(),u),Ze={class:"mesh-gateway-policy-list"},$e=N(()=>v("h3",null,"Gateway policies",-1)),et={key:0,class:"policy-list"},tt=N(()=>v("h3",{class:"mt-6"},` +import{d as x,r as F,o as e,e as s,g as n,F as m,s as O,q as v,t as h,h as c,w as t,f as I,a as d,B as ke,b as U,R as Oe,p as me,m as he,c as M,v as Ee,z as Pe,W as ve,j as R,I as Qe,X as Ge,K as Ie}from"./index-3a142bd5.js";import{A as J,a as W,_ as Ue,S as ze}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js";import{f as _,e as te,m as ge,q as fe,g as we,r as Me,t as se,v as Le,w as Re,x as xe,C as _e,I as Se,y as Ye,A as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as Te}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{T as K}from"./TagList-5a70d5cd.js";import{_ as De}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as Be}from"./ErrorBlock-bfc4eea4.js";import{t as ne,_ as qe}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js";import{D as ie,a as q}from"./DefinitionListItem-e3979580.js";import{E as ee}from"./EnvoyData-2a616a29.js";import{S as Ke}from"./StatusBadge-c54fa150.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";import{T as Fe}from"./TabsWidget-47bb7647.js";import{T as Je}from"./TextWithCopyButton-5cda1463.js";import{_ as We}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-cf0c130d.js";import{_ as Ve}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as Xe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const N=u=>(me("data-v-1a7d780a"),u=u(),he(),u),Ze={class:"mesh-gateway-policy-list"},$e=N(()=>v("h3",null,"Gateway policies",-1)),et={key:0,class:"policy-list"},tt=N(()=>v("h3",{class:"mt-6"},` Listeners `,-1)),at=N(()=>v("b",null,"Host",-1)),st=N(()=>v("h4",{class:"mt-2"},` Routes diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-35e7067e.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-df74d9a1.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-35e7067e.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-df74d9a1.js index feb8812273a8..d1539bf11057 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-35e7067e.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-df74d9a1.js @@ -1 +1 @@ -import{d as u,o as _,a as d,w as t,h as s,q as f,b as o,g,G as h}from"./index-4f1a7619.js";import{D as y,K as b}from"./KFilterBar-b9d2d09c.js";import{g as z,A as q,_ as v,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as V}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import"./AppCollection-911959a1.js";import"./StatusBadge-999ac91c.js";import"./notEmpty-7f452b20.js";const x=u({__name:"DataPlaneListView",props:{page:{},size:{},search:{},query:{},mesh:{}},setup(n){const e=n,{t:l}=z();return(p,C)=>(_(),d(v,{name:"data-planes-list-view"},{default:t(({route:r})=>[s(V,{src:`/${e.mesh}/dataplanes?page=${e.page}&size=${p.size}&search=${e.search}`},{default:t(({data:a,error:c})=>[s(q,null,{title:t(()=>[f("h2",null,[s($,{title:o(l)("data-planes.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[g(),s(o(h),null,{body:t(()=>[s(y,{"data-testid":"data-plane-collection",class:"data-plane-collection","page-number":e.page,"page-size":e.size,total:a==null?void 0:a.total,items:a==null?void 0:a.items,error:c,onChange:({page:i,size:m})=>{r.update({page:String(i),size:String(m)})}},{toolbar:t(()=>[s(b,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:e.query,fields:{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"}},onFieldsChange:i=>r.update({query:i.query,s:i.query.length>0?JSON.stringify(i.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"])]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1}))}});const A=w(x,[["__scopeId","data-v-da7439f6"]]);export{A as default}; +import{d as u,o as _,a as d,w as t,h as s,q as f,b as o,g,G as h}from"./index-3a142bd5.js";import{D as y,K as b}from"./KFilterBar-b7134331.js";import{g as z,A as q,_ as v,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as V}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import"./AppCollection-7dd9601e.js";import"./StatusBadge-c54fa150.js";import"./notEmpty-7f452b20.js";const x=u({__name:"DataPlaneListView",props:{page:{},size:{},search:{},query:{},mesh:{}},setup(n){const e=n,{t:l}=z();return(p,C)=>(_(),d(v,{name:"data-planes-list-view"},{default:t(({route:r})=>[s(V,{src:`/${e.mesh}/dataplanes?page=${e.page}&size=${p.size}&search=${e.search}`},{default:t(({data:a,error:c})=>[s(q,null,{title:t(()=>[f("h2",null,[s($,{title:o(l)("data-planes.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[g(),s(o(h),null,{body:t(()=>[s(y,{"data-testid":"data-plane-collection",class:"data-plane-collection","page-number":e.page,"page-size":e.size,total:a==null?void 0:a.total,items:a==null?void 0:a.items,error:c,onChange:({page:i,size:m})=>{r.update({page:String(i),size:String(m)})}},{toolbar:t(()=>[s(b,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:e.query,fields:{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"}},onFieldsChange:i=>r.update({query:i.query,s:i.query.length>0?JSON.stringify(i.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"])]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1}))}});const A=w(x,[["__scopeId","data-v-da7439f6"]]);export{A as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js b/app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-69141f89.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js rename to app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-69141f89.js index b6ebaf18b446..a6e5cbe79ad2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataSource.vue_vue_type_script_setup_true_lang-69141f89.js @@ -1 +1 @@ -import{H as g}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as _,j as l,I as h,A as y,o as S,e as B,z as L,g as b,F as E,q as k}from"./index-4f1a7619.js";const q=k("span",{class:"visually-hidden"},null,-1),A=_({__name:"DataSource",props:{src:{type:String,required:!0}},emits:["change","error"],setup(m,{emit:c}){const u=m,i=g(),o=l(void 0),a=l(!1),s=l(void 0);let r={};const d=Symbol(""),v=async e=>{if(o.value=void 0,r=f(r),r.src=e,e==="")return;a.value=!0,r.controller=new AbortController;const n=i.source(e,d);n.addEventListener("message",t=>{o.value=t.data,s.value=void 0,a.value=!1,c("change",o.value)},{signal:r.controller.signal}),n.addEventListener("error",t=>{s.value=t.error,a.value=!1,c("error",s.value)},{signal:r.controller.signal})},f=e=>(typeof e.controller<"u"&&e.controller.abort(),typeof e.src<"u"&&i.close(e.src,d),{});h(()=>u.src,e=>v(e),{immediate:!0}),y(()=>{r=f(r)});const p=()=>{v(u.src)};return(e,n)=>(S(),B(E,null,[L(e.$slots,"default",{data:o.value,isLoading:a.value,error:s.value,refresh:p}),b(),q],64))}});export{A as _}; +import{H as g}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as _,j as l,I as h,A as y,o as S,e as B,z as L,g as b,F as E,q as k}from"./index-3a142bd5.js";const q=k("span",{class:"visually-hidden"},null,-1),A=_({__name:"DataSource",props:{src:{type:String,required:!0}},emits:["change","error"],setup(m,{emit:c}){const u=m,i=g(),o=l(void 0),a=l(!1),s=l(void 0);let r={};const d=Symbol(""),v=async e=>{if(o.value=void 0,r=f(r),r.src=e,e==="")return;a.value=!0,r.controller=new AbortController;const n=i.source(e,d);n.addEventListener("message",t=>{o.value=t.data,s.value=void 0,a.value=!1,c("change",o.value)},{signal:r.controller.signal}),n.addEventListener("error",t=>{s.value=t.error,a.value=!1,c("error",s.value)},{signal:r.controller.signal})},f=e=>(typeof e.controller<"u"&&e.controller.abort(),typeof e.src<"u"&&i.close(e.src,d),{});h(()=>u.src,e=>v(e),{immediate:!0}),y(()=>{r=f(r)});const p=()=>{v(u.src)};return(e,n)=>(S(),B(E,null,[L(e.$slots,"default",{data:o.value,isLoading:a.value,error:s.value,refresh:p}),b(),q],64))}});export{A as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-4134d454.js b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ff908f88.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-4134d454.js rename to app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ff908f88.js index 628d35bea533..5be05483740f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-4134d454.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ff908f88.js @@ -1,3 +1,3 @@ -import{d as P,j as b,c as w,A as S,o as n,a as y,w as a,h as s,b as k,g as u,B as T,q as o,t as c,e as d,W as F,F as I}from"./index-4f1a7619.js";import{L as N}from"./LoadingBox-e9931dad.js";import{O as E,a as L,b as V}from"./OnboardingPage-587e62e3.js";import{m as W,g as C,n as H,A as M,_ as R,f as $}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{S as q}from"./StatusBadge-999ac91c.js";const z={key:0,class:"status-loading-box mb-4"},K={key:1},U={class:"mb-4"},G=P({__name:"DataplanesOverview",setup(J){const p=W(),{t:x}=C(),D=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),A=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),m=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);S(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await p.getAllDataplanes({size:10});if(Array.isArray(t))for(const B of t){const{name:v,mesh:g}=B,O=await p.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=H(O.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(R,null,{default:a(()=>[s(j,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(M,null,{default:a(()=>[s(E,null,{header:a(()=>[s(L,null,T({title:a(()=>[o("p",null,c(A.value),1)]),_:2},[m.value!==null?{name:"description",fn:a(()=>[o("p",null,c(m.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",z,[s(N)])):(n(),d("div",K,[o("p",U,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(F),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(q,{key:0,status:t},null,8,["status"])):(n(),d(I,{key:1},[u(` +import{d as P,j as b,c as w,A as S,o as n,a as y,w as a,h as s,b as k,g as u,B as T,q as o,t as c,e as d,W as F,F as I}from"./index-3a142bd5.js";import{L as N}from"./LoadingBox-5888f819.js";import{O as E,a as L,b as V}from"./OnboardingPage-4256e18b.js";import{m as W,g as C,n as H,A as M,_ as R,f as $}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{S as q}from"./StatusBadge-c54fa150.js";const z={key:0,class:"status-loading-box mb-4"},K={key:1},U={class:"mb-4"},G=P({__name:"DataplanesOverview",setup(J){const p=W(),{t:x}=C(),D=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),A=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),m=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);S(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await p.getAllDataplanes({size:10});if(Array.isArray(t))for(const B of t){const{name:v,mesh:g}=B,O=await p.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=H(O.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(R,null,{default:a(()=>[s(j,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(M,null,{default:a(()=>[s(E,null,{header:a(()=>[s(L,null,T({title:a(()=>[o("p",null,c(A.value),1)]),_:2},[m.value!==null?{name:"description",fn:a(()=>[o("p",null,c(m.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",z,[s(N)])):(n(),d("div",K,[o("p",U,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(F),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(q,{key:0,status:t},null,8,["status"])):(n(),d(I,{key:1},[u(` — `)],64))]),_:1},8,["fetcher"])]))]),navigation:a(()=>[s(V,{"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 te=$(G,[["__scopeId","data-v-4588fbe4"]]);export{te as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-61a9402d.js b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-e3979580.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-61a9402d.js rename to app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-e3979580.js index dedbd79fb647..cf74e5fca1a4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-61a9402d.js +++ b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-e3979580.js @@ -1 +1 @@ -import{f as i}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{o as n,e as o,z as _,d,q as s,t as a,g as r}from"./index-4f1a7619.js";const f={},l={class:"definition-list"};function p(e,t){return n(),o("dl",l,[_(e.$slots,"default",{},void 0,!0)])}const x=i(f,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},v={class:"definition-list-item__details"},D=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,h)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",v,[_(c.$slots,"default",{},void 0,!0)])]))}});const I=i(D,[["__scopeId","data-v-74f2c619"]]);export{x as D,I as a}; +import{f as i}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{o as n,e as o,z as _,d,q as s,t as a,g as r}from"./index-3a142bd5.js";const f={},l={class:"definition-list"};function p(e,t){return n(),o("dl",l,[_(e.$slots,"default",{},void 0,!0)])}const x=i(f,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},v={class:"definition-list-item__details"},D=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,h)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",v,[_(c.$slots,"default",{},void 0,!0)])]))}});const I=i(D,[["__scopeId","data-v-74f2c619"]]);export{x as D,I as a}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-b3133c28.js b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-65444cfa.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-b3133c28.js rename to app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-65444cfa.js index 4c8bcd1ebd7a..c8f2f7d0d2fe 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-b3133c28.js +++ b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-65444cfa.js @@ -1,4 +1,4 @@ -import{d as f,j as v,c as y,k as b,o as u,a as r,w as e,h as t,b as s,g as n,q as d,t as h,i as V,x as p}from"./index-4f1a7619.js";import{O as x,a as z,b as S}from"./OnboardingPage-587e62e3.js";import{h as G,i as M,e as w,g as D,A as C,_ as N,f as O}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const k={class:"graph-list mb-6"},B={class:"radio-button-group"},q=f({__name:"DeploymentTypes",setup(A){const m=G(),c={standalone:M(),"multi-zone":m},_=w(),{t:i}=D(),a=v("standalone"),g=y(()=>c[a.value]);return b(function(){a.value=_.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(P,o)=>(u(),r(N,null,{default:e(()=>[t(T,{title:s(i)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),t(C,null,{default:e(()=>[t(x,{"with-image":""},{header:e(()=>[t(z,null,{title:e(()=>[n(` +import{d as f,j as v,c as y,k as b,o as u,a as r,w as e,h as t,b as s,g as n,q as d,t as h,i as V,x as p}from"./index-3a142bd5.js";import{O as x,a as z,b as S}from"./OnboardingPage-4256e18b.js";import{h as G,i as M,e as w,g as D,A as C,_ as N,f as O}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const k={class:"graph-list mb-6"},B={class:"radio-button-group"},q=f({__name:"DeploymentTypes",setup(A){const m=G(),c={standalone:M(),"multi-zone":m},_=w(),{t:i}=D(),a=v("standalone"),g=y(()=>c[a.value]);return b(function(){a.value=_.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(P,o)=>(u(),r(N,null,{default:e(()=>[t(T,{title:s(i)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),t(C,null,{default:e(()=>[t(x,{"with-image":""},{header:e(()=>[t(z,null,{title:e(()=>[n(` Learn about deployments `)]),description:e(()=>[d("p",null,h(s(i)("common.product.name"))+" can be deployed in standalone or multi-zone mode.",1)]),_:1})]),content:e(()=>[d("div",k,[(u(),r(V(g.value)))]),n(),d("div",B,[t(s(p),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),name:"mode","selected-value":"standalone","data-testid":"onboarding-standalone-radio-button"},{default:e(()=>[n(` Standalone deployment diff --git a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-81e1e8b6.js b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-0694d52c.js similarity index 69% rename from app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-81e1e8b6.js rename to app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-0694d52c.js index 4ae2802b5783..4d6dff4d5295 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-81e1e8b6.js +++ b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-0694d52c.js @@ -1 +1 @@ -import{d as n,o as s,a as t,w as e,h as a,b as o,q as d,g as l,G as m}from"./index-4f1a7619.js";import{g as _,A as u,q as f,_ as g}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as p}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as b}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{E as y}from"./ErrorBlock-de349e30.js";const C=n({__name:"DiagnosticsView",setup(h){const{t:i}=_();return(x,V)=>(s(),t(g,{name:"diagnostics"},{default:e(()=>[a(p,{src:"/config"},{default:e(({data:r,error:c})=>[a(u,{breadcrumbs:[{to:{name:"diagnostics"},text:o(i)("diagnostics.routes.item.breadcrumbs")}]},{title:e(()=>[d("h1",null,[a(b,{title:o(i)("diagnostics.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),a(o(m),null,{body:e(()=>[r===void 0?(s(),t(f,{key:0})):c?(s(),t(y,{key:1,error:c},null,8,["error"])):(s(),t(k,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(r,null,2),"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})]),_:1}))}});export{C as default}; +import{d as n,o as s,a as t,w as e,h as a,b as o,q as d,g as l,G as m}from"./index-3a142bd5.js";import{g as _,A as u,q as f,_ as g}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as p}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as b}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{E as y}from"./ErrorBlock-bfc4eea4.js";const C=n({__name:"DiagnosticsView",setup(h){const{t:i}=_();return(x,V)=>(s(),t(g,{name:"diagnostics"},{default:e(()=>[a(p,{src:"/config"},{default:e(({data:r,error:c})=>[a(u,{breadcrumbs:[{to:{name:"diagnostics"},text:o(i)("diagnostics.routes.item.breadcrumbs")}]},{title:e(()=>[d("h1",null,[a(b,{title:o(i)("diagnostics.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),a(o(m),null,{body:e(()=>[r===void 0?(s(),t(f,{key:0})):c?(s(),t(y,{key:1,error:c},null,8,["error"])):(s(),t(k,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(r,null,2),"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})]),_:1}))}});export{C as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js rename to app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js index a097ba6ebd0a..28c457c39bd4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js +++ b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js @@ -1 +1 @@ -import{d as o,o as r,a as l,B as n,w as a,z as s,h as c,b as t,v as d,g as i,E as m,q as p}from"./index-4f1a7619.js";const _=p("p",null,"There is no data to display.",-1),y=o({__name:"EmptyBlock",setup(u){return(e,f)=>(r(),l(t(m),{"data-testid":"empty-state","cta-is-hidden":""},n({title:a(()=>[s(e.$slots,"title",{},()=>[c(t(d),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),i(),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{d as o,o as r,a as l,B as n,w as a,z as s,h as c,b as t,v as d,g as i,E as m,q as p}from"./index-3a142bd5.js";const _=p("p",null,"There is no data to display.",-1),y=o({__name:"EmptyBlock",setup(u){return(e,f)=>(r(),l(t(m),{"data-testid":"empty-state","cta-is-hidden":""},n({title:a(()=>[s(e.$slots,"title",{},()=>[c(t(d),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),i(),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/EnvoyData-46015709.js b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-2a616a29.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/EnvoyData-46015709.js rename to app/kuma-ui/pkg/resources/data/assets/EnvoyData-2a616a29.js index a798bbf44782..8cd3b2ebafed 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-46015709.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-2a616a29.js @@ -1,3 +1,3 @@ -import{d as p,j as o,I as d,k as m,o as g,e as _,q as y,h as i,w as c,g as u,b as h,D as v}from"./index-4f1a7619.js";import{_ as N}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{_ as E}from"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";import{m as q,f as z}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const k={class:"envoy-data-actions"},P=p({__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=q(),s=o(!0),r=o(null),l=o("");d(()=>e.dppName,function(){t()}),d(()=>e.zoneIngressName,function(){t()}),d(()=>e.zoneEgressName,function(){t()}),m(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,D)=>(g(),_("div",null,[y("div",k,[i(h(v),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` +import{d as p,j as o,I as d,k as m,o as g,e as _,q as y,h as i,w as c,g as u,b as h,D as v}from"./index-3a142bd5.js";import{_ as N}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{_ as E}from"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";import{m as q,f as z}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const k={class:"envoy-data-actions"},P=p({__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=q(),s=o(!0),r=o(null),l=o("");d(()=>e.dppName,function(){t()}),d(()=>e.zoneIngressName,function(){t()}),d(()=>e.zoneEgressName,function(){t()}),m(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,D)=>(g(),_("div",null,[y("div",k,[i(h(v),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` Refresh `)]),_:1},8,["disabled"])]),u(),i(E,{"is-loading":s.value,error:r.value},{default:c(()=>[i(N,{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 x=z(P,[["__scopeId","data-v-afa8dc47"]]);export{x as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-de349e30.js b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-bfc4eea4.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ErrorBlock-de349e30.js rename to app/kuma-ui/pkg/resources/data/assets/ErrorBlock-bfc4eea4.js index 1ba678bbe703..eb3bd0e1e42d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-de349e30.js +++ b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-bfc4eea4.js @@ -1 +1 @@ -import{d as v,c as k,U as g,o as r,e as o,h as p,B as b,w as c,z as f,g as a,t,f as d,F as w,s as B,q as i,b as n,v as E,E as S,a as A,R as y,p as q,m as I}from"./index-4f1a7619.js";import{f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const _=e=>(q("data-v-42969d87"),e=e(),I(),e),V={"data-testid":"error-state",class:"error-block"},$=_(()=>i("p",null,"An error has occurred while trying to load this data.",-1)),C={key:1,class:"error-block-details"},x=_(()=>i("summary",null,"Details",-1)),z={key:0},D={key:1},F={key:0,class:"badge-list"},P=v({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null},icon:{type:String,required:!1,default:"warning"},badgeAppearance:{type:String,required:!1,default:"warning"}},setup(e){const s=e,u=k(()=>s.error instanceof g?s.error.invalidParameters:[]);return(l,R)=>(r(),o("div",V,[p(n(S),{"cta-is-hidden":""},b({title:c(()=>[p(n(E),{class:"mb-3",icon:s.icon,color:s.icon==="warning"?"var(--black-500)":void 0,"secondary-color":s.icon==="warning"?"var(--yellow-300)":void 0,size:"42"},null,8,["icon","color","secondary-color"]),a(),f(l.$slots,"default",{},()=>[$],!0)]),_:2},[l.$slots.message||e.error!==null||u.value.length>0?{name:"message",fn:c(()=>[l.$slots.message?f(l.$slots,"message",{key:0},void 0,!0):(r(),o("details",C,[x,a(),e.error!==null?(r(),o("p",z,t(e.error.message),1)):d("",!0),a(),u.value.length>0?(r(),o("ul",D,[(r(!0),o(w,null,B(u.value,(m,h)=>(r(),o("li",{key:h},[i("b",null,[i("code",null,t(m.field),1)]),a(": "+t(m.reason),1)]))),128))])):d("",!0)]))]),key:"0"}:void 0]),1024),a(),e.error instanceof n(g)?(r(),o("div",F,[e.error.type?(r(),A(n(y),{key:0,appearance:s.badgeAppearance},{default:c(()=>[a(t(e.error.type),1)]),_:1},8,["appearance"])):d("",!0),a(),p(n(y),{appearance:s.badgeAppearance},{default:c(()=>[a(t(e.error.status),1)]),_:1},8,["appearance"])])):d("",!0)]))}});const U=N(P,[["__scopeId","data-v-42969d87"]]);export{U as E}; +import{d as v,c as k,U as g,o as r,e as o,h as p,B as b,w as c,z as f,g as a,t,f as d,F as w,s as B,q as i,b as n,v as E,E as S,a as A,R as y,p as q,m as I}from"./index-3a142bd5.js";import{f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const _=e=>(q("data-v-42969d87"),e=e(),I(),e),V={"data-testid":"error-state",class:"error-block"},$=_(()=>i("p",null,"An error has occurred while trying to load this data.",-1)),C={key:1,class:"error-block-details"},x=_(()=>i("summary",null,"Details",-1)),z={key:0},D={key:1},F={key:0,class:"badge-list"},P=v({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null},icon:{type:String,required:!1,default:"warning"},badgeAppearance:{type:String,required:!1,default:"warning"}},setup(e){const s=e,u=k(()=>s.error instanceof g?s.error.invalidParameters:[]);return(l,R)=>(r(),o("div",V,[p(n(S),{"cta-is-hidden":""},b({title:c(()=>[p(n(E),{class:"mb-3",icon:s.icon,color:s.icon==="warning"?"var(--black-500)":void 0,"secondary-color":s.icon==="warning"?"var(--yellow-300)":void 0,size:"42"},null,8,["icon","color","secondary-color"]),a(),f(l.$slots,"default",{},()=>[$],!0)]),_:2},[l.$slots.message||e.error!==null||u.value.length>0?{name:"message",fn:c(()=>[l.$slots.message?f(l.$slots,"message",{key:0},void 0,!0):(r(),o("details",C,[x,a(),e.error!==null?(r(),o("p",z,t(e.error.message),1)):d("",!0),a(),u.value.length>0?(r(),o("ul",D,[(r(!0),o(w,null,B(u.value,(m,h)=>(r(),o("li",{key:h},[i("b",null,[i("code",null,t(m.field),1)]),a(": "+t(m.reason),1)]))),128))])):d("",!0)]))]),key:"0"}:void 0]),1024),a(),e.error instanceof n(g)?(r(),o("div",F,[e.error.type?(r(),A(n(y),{key:0,appearance:s.badgeAppearance},{default:c(()=>[a(t(e.error.type),1)]),_:1},8,["appearance"])):d("",!0),a(),p(n(y),{appearance:s.badgeAppearance},{default:c(()=>[a(t(e.error.status),1)]),_:1},8,["appearance"])])):d("",!0)]))}});const U=N(P,[["__scopeId","data-v-42969d87"]]);export{U as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/GatewayListView-42b02b49.js b/app/kuma-ui/pkg/resources/data/assets/GatewayListView-03fea372.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/GatewayListView-42b02b49.js rename to app/kuma-ui/pkg/resources/data/assets/GatewayListView-03fea372.js index c2e842460d16..4764719668e1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/GatewayListView-42b02b49.js +++ b/app/kuma-ui/pkg/resources/data/assets/GatewayListView-03fea372.js @@ -1 +1 @@ -import{d as m,o as y,a as _,w as t,h as s,q as d,b as r,g as o,G as f,L as w,t as h}from"./index-4f1a7619.js";import{g as b,A as v,_ as z,f as q}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as $}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as C}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{D as S,K as V}from"./KFilterBar-b9d2d09c.js";import"./AppCollection-911959a1.js";import"./StatusBadge-999ac91c.js";import"./notEmpty-7f452b20.js";const x=m({__name:"GatewayListView",props:{page:{},size:{},search:{},query:{},mesh:{},gatewayType:{}},setup(n){const a=n,{t:p}=b();return(c,T)=>(y(),_(z,{name:"gateways-list-view"},{default:t(({route:i})=>[s($,{src:`/${i.params.mesh}/gateways/of/${a.gatewayType}?page=${a.page}&size=${c.size}&search=${a.search}`},{default:t(({data:l,error:u})=>[s(v,null,{title:t(()=>[d("h2",null,[s(C,{title:r(p)("gateways.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[o(),s(r(f),null,{body:t(()=>[s(S,{"data-testid":"gateway-collection",class:"gateway-collection","page-number":a.page,"page-size":a.size,total:l==null?void 0:l.total,items:l==null?void 0:l.items,error:u,gateways:!0,onChange:({page:e,size:g})=>{i.update({page:String(e),size:String(g)})}},{toolbar:t(()=>[s(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:a.query,fields:{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"}},onFieldsChange:e=>i.update({query:e.query,s:e.query.length>0?JSON.stringify(e.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),o(),s(r(w),{label:"Type","overlay-label":!0,items:[{label:"All",value:"all"},{label:"Builtin",value:"builtin"},{label:"Delegated",value:"delegated"}].map(e=>({...e,selected:e.value===a.gatewayType})),appearance:"select",onSelected:e=>i.update({gatewayType:String(e.value)})},{"item-template":t(({item:e})=>[o(h(e.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1}))}});const I=q(x,[["__scopeId","data-v-213877cf"]]);export{I as default}; +import{d as m,o as y,a as _,w as t,h as s,q as d,b as r,g as o,G as f,L as w,t as h}from"./index-3a142bd5.js";import{g as b,A as v,_ as z,f as q}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as $}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as C}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{D as S,K as V}from"./KFilterBar-b7134331.js";import"./AppCollection-7dd9601e.js";import"./StatusBadge-c54fa150.js";import"./notEmpty-7f452b20.js";const x=m({__name:"GatewayListView",props:{page:{},size:{},search:{},query:{},mesh:{},gatewayType:{}},setup(n){const a=n,{t:p}=b();return(c,T)=>(y(),_(z,{name:"gateways-list-view"},{default:t(({route:i})=>[s($,{src:`/${i.params.mesh}/gateways/of/${a.gatewayType}?page=${a.page}&size=${c.size}&search=${a.search}`},{default:t(({data:l,error:u})=>[s(v,null,{title:t(()=>[d("h2",null,[s(C,{title:r(p)("gateways.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[o(),s(r(f),null,{body:t(()=>[s(S,{"data-testid":"gateway-collection",class:"gateway-collection","page-number":a.page,"page-size":a.size,total:l==null?void 0:l.total,items:l==null?void 0:l.items,error:u,gateways:!0,onChange:({page:e,size:g})=>{i.update({page:String(e),size:String(g)})}},{toolbar:t(()=>[s(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:a.query,fields:{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"}},onFieldsChange:e=>i.update({query:e.query,s:e.query.length>0?JSON.stringify(e.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),o(),s(r(w),{label:"Type","overlay-label":!0,items:[{label:"All",value:"all"},{label:"Builtin",value:"builtin"},{label:"Delegated",value:"delegated"}].map(e=>({...e,selected:e.value===a.gatewayType})),appearance:"select",onSelected:e=>i.update({gatewayType:String(e.value)})},{"item-template":t(({item:e})=>[o(h(e.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1}))}});const I=q(x,[["__scopeId","data-v-213877cf"]]);export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/KFilterBar-b9d2d09c.js b/app/kuma-ui/pkg/resources/data/assets/KFilterBar-b7134331.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/KFilterBar-b9d2d09c.js rename to app/kuma-ui/pkg/resources/data/assets/KFilterBar-b7134331.js index a8ee13b6ca22..adf6ba744ed7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/KFilterBar-b9d2d09c.js +++ b/app/kuma-ui/pkg/resources/data/assets/KFilterBar-b7134331.js @@ -1,4 +1,4 @@ -var ie=Object.defineProperty;var le=(s,i,o)=>i in s?ie(s,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[i]=o;var $=(s,i,o)=>(le(s,typeof i!="symbol"?i+"":i,o),o);import{d as oe,c as z,r as re,o as p,a as M,w as y,z as ae,h as w,g as d,t as _,e as k,F as E,b as v,M as ue,v as F,$ as ce,D as de,H as pe,K as me,j as D,I as X,q as T,N as fe,O as ge,n as ee,s as ve,f as G,k as ye,A as he,p as be,m as ke}from"./index-4f1a7619.js";import{A as _e}from"./AppCollection-911959a1.js";import{S as Se}from"./StatusBadge-999ac91c.js";import{e as Te,g as we,t as Ce,r as Ae,x as De,C as xe,y as Ne,f as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{n as Ie}from"./notEmpty-7f452b20.js";const Ue=oe({__name:"DataPlaneList",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},error:{},gateways:{type:Boolean,default:!1}},emits:["load-data","change"],setup(s,{emit:i}){const o=s,h=Te(),{t:a,formatIsoDate:u}=we(),c=z(()=>h.getters["config/getMulticlusterStatus"]);function b(m){return m.map(r=>{var R,I,A,q,t,l;const S=r.mesh,n=r.name,C=((R=r.dataplane.networking.gateway)==null?void 0:R.type)||"STANDARD",K={name:C==="STANDARD"?"data-plane-detail-view":"gateway-detail-view",params:{mesh:S,dataPlane:n}},V=["kuma.io/protocol","kuma.io/service","kuma.io/zone"],x=Ce(r.dataplane).filter(e=>V.includes(e.label)),U=(I=x.find(e=>e.label==="kuma.io/service"))==null?void 0:I.value,O=(A=x.find(e=>e.label==="kuma.io/protocol"))==null?void 0:A.value,N=(q=x.find(e=>e.label==="kuma.io/zone"))==null?void 0:q.value;let j;U!==void 0&&(j={name:"service-detail-view",params:{mesh:S,service:U}});let B;N!==void 0&&(B={name:"zone-cp-detail-view",params:{zone:N}});const{status:P}=Ae(r.dataplane,r.dataplaneInsight),Q=((t=r.dataplaneInsight)==null?void 0:t.subscriptions)??[],H={totalUpdates:0,totalRejectedUpdates:0,dpVersion:null,envoyVersion:null,selectedTime:NaN,selectedUpdateTime:NaN,version:null},f=Q.reduce((e,g)=>{var J,W;if(g.connectTime){const Y=Date.parse(g.connectTime);(!e.selectedTime||Y>e.selectedTime)&&(e.selectedTime=Y)}const Z=Date.parse(g.status.lastUpdateTime);return Z&&(!e.selectedUpdateTime||Z>e.selectedUpdateTime)&&(e.selectedUpdateTime=Z),{totalUpdates:e.totalUpdates+parseInt(g.status.total.responsesSent??"0",10),totalRejectedUpdates:e.totalRejectedUpdates+parseInt(g.status.total.responsesRejected??"0",10),dpVersion:((J=g.version)==null?void 0:J.kumaDp.version)||e.dpVersion,envoyVersion:((W=g.version)==null?void 0:W.envoy.version)||e.envoyVersion,selectedTime:e.selectedTime,selectedUpdateTime:e.selectedUpdateTime,version:g.version||e.version}},H),L={name:n,detailViewRoute:K,type:C,zone:{title:N??a("common.collection.none"),route:B},service:{title:U??a("common.collection.none"),route:j},protocol:O??a("common.collection.none"),status:P,totalUpdates:f.totalUpdates,totalRejectedUpdates:f.totalRejectedUpdates,envoyVersion:f.envoyVersion??a("common.collection.none"),warnings:[],lastUpdated:f.selectedUpdateTime?u(new Date(f.selectedUpdateTime).toUTCString()):a("common.collection.none"),lastConnected:f.selectedTime?u(new Date(f.selectedTime).toUTCString()):a("common.collection.none"),overview:r};if(f.version){const{kind:e}=De(f.version);e!==xe&&L.warnings.push(e)}return c.value&&f.dpVersion&&x.find(g=>g.label===me)&&typeof((l=f.version)==null?void 0:l.kumaDp.kumaCpCompatible)=="boolean"&&!f.version.kumaDp.kumaCpCompatible&&L.warnings.push(Ne),L})}return(m,r)=>{const S=re("RouterLink");return p(),M(_e,{"empty-state-title":v(a)("common.emptyState.title"),"empty-state-message":v(a)("common.emptyState.message",{type:o.gateways?"Gateways":"Data plane proxies"}),headers:[{label:"Name",key:"name"},o.gateways?{label:"Type",key:"type"}:void 0,{label:"Service",key:"service"},o.gateways?void 0:{label:"Protocol",key:"protocol"},c.value?{label:"Zone",key:"zone"}:void 0,{label:"Last Updated",key:"lastUpdated"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}].filter(v(Ie)),"page-number":o.pageNumber,"page-size":o.pageSize,total:o.total,items:o.items?b(o.items):void 0,error:o.error,onChange:r[0]||(r[0]=n=>i("change",n))},{toolbar:y(()=>[ae(m.$slots,"toolbar",{},void 0,!0)]),name:y(({row:n})=>[w(S,{to:{name:o.gateways?"gateway-detail-view":"data-plane-detail-view",params:{dataPlane:n.name}},"data-testid":"detail-view-link"},{default:y(()=>[d(_(n.name),1)]),_:2},1032,["to"])]),service:y(({rowValue:n})=>[n.route?(p(),M(S,{key:0,to:n.route},{default:y(()=>[d(_(n.title),1)]),_:2},1032,["to"])):(p(),k(E,{key:1},[d(_(n.title),1)],64))]),zone:y(({rowValue:n})=>[n.route?(p(),M(S,{key:0,to:n.route},{default:y(()=>[d(_(n.title),1)]),_:2},1032,["to"])):(p(),k(E,{key:1},[d(_(n.title),1)],64))]),status:y(({rowValue:n})=>[n?(p(),M(Se,{key:0,status:n},null,8,["status"])):(p(),k(E,{key:1},[d(_(v(a)("common.collection.none")),1)],64))]),warnings:y(({rowValue:n})=>[n.length>0?(p(),M(v(ue),{key:0,label:v(a)("data-planes.list.version_mismatch")},{default:y(()=>[w(v(F),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(p(),k(E,{key:1},[d(` +var ie=Object.defineProperty;var le=(s,i,o)=>i in s?ie(s,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[i]=o;var $=(s,i,o)=>(le(s,typeof i!="symbol"?i+"":i,o),o);import{d as oe,c as z,r as re,o as p,a as M,w as y,z as ae,h as w,g as d,t as _,e as k,F as E,b as v,M as ue,v as F,$ as ce,D as de,H as pe,K as me,j as D,I as X,q as T,N as fe,O as ge,n as ee,s as ve,f as G,k as ye,A as he,p as be,m as ke}from"./index-3a142bd5.js";import{A as _e}from"./AppCollection-7dd9601e.js";import{S as Se}from"./StatusBadge-c54fa150.js";import{e as Te,g as we,t as Ce,r as Ae,x as De,C as xe,y as Ne,f as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{n as Ie}from"./notEmpty-7f452b20.js";const Ue=oe({__name:"DataPlaneList",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},error:{},gateways:{type:Boolean,default:!1}},emits:["load-data","change"],setup(s,{emit:i}){const o=s,h=Te(),{t:a,formatIsoDate:u}=we(),c=z(()=>h.getters["config/getMulticlusterStatus"]);function b(m){return m.map(r=>{var R,I,A,q,t,l;const S=r.mesh,n=r.name,C=((R=r.dataplane.networking.gateway)==null?void 0:R.type)||"STANDARD",K={name:C==="STANDARD"?"data-plane-detail-view":"gateway-detail-view",params:{mesh:S,dataPlane:n}},V=["kuma.io/protocol","kuma.io/service","kuma.io/zone"],x=Ce(r.dataplane).filter(e=>V.includes(e.label)),U=(I=x.find(e=>e.label==="kuma.io/service"))==null?void 0:I.value,O=(A=x.find(e=>e.label==="kuma.io/protocol"))==null?void 0:A.value,N=(q=x.find(e=>e.label==="kuma.io/zone"))==null?void 0:q.value;let j;U!==void 0&&(j={name:"service-detail-view",params:{mesh:S,service:U}});let B;N!==void 0&&(B={name:"zone-cp-detail-view",params:{zone:N}});const{status:P}=Ae(r.dataplane,r.dataplaneInsight),Q=((t=r.dataplaneInsight)==null?void 0:t.subscriptions)??[],H={totalUpdates:0,totalRejectedUpdates:0,dpVersion:null,envoyVersion:null,selectedTime:NaN,selectedUpdateTime:NaN,version:null},f=Q.reduce((e,g)=>{var J,W;if(g.connectTime){const Y=Date.parse(g.connectTime);(!e.selectedTime||Y>e.selectedTime)&&(e.selectedTime=Y)}const Z=Date.parse(g.status.lastUpdateTime);return Z&&(!e.selectedUpdateTime||Z>e.selectedUpdateTime)&&(e.selectedUpdateTime=Z),{totalUpdates:e.totalUpdates+parseInt(g.status.total.responsesSent??"0",10),totalRejectedUpdates:e.totalRejectedUpdates+parseInt(g.status.total.responsesRejected??"0",10),dpVersion:((J=g.version)==null?void 0:J.kumaDp.version)||e.dpVersion,envoyVersion:((W=g.version)==null?void 0:W.envoy.version)||e.envoyVersion,selectedTime:e.selectedTime,selectedUpdateTime:e.selectedUpdateTime,version:g.version||e.version}},H),L={name:n,detailViewRoute:K,type:C,zone:{title:N??a("common.collection.none"),route:B},service:{title:U??a("common.collection.none"),route:j},protocol:O??a("common.collection.none"),status:P,totalUpdates:f.totalUpdates,totalRejectedUpdates:f.totalRejectedUpdates,envoyVersion:f.envoyVersion??a("common.collection.none"),warnings:[],lastUpdated:f.selectedUpdateTime?u(new Date(f.selectedUpdateTime).toUTCString()):a("common.collection.none"),lastConnected:f.selectedTime?u(new Date(f.selectedTime).toUTCString()):a("common.collection.none"),overview:r};if(f.version){const{kind:e}=De(f.version);e!==xe&&L.warnings.push(e)}return c.value&&f.dpVersion&&x.find(g=>g.label===me)&&typeof((l=f.version)==null?void 0:l.kumaDp.kumaCpCompatible)=="boolean"&&!f.version.kumaDp.kumaCpCompatible&&L.warnings.push(Ne),L})}return(m,r)=>{const S=re("RouterLink");return p(),M(_e,{"empty-state-title":v(a)("common.emptyState.title"),"empty-state-message":v(a)("common.emptyState.message",{type:o.gateways?"Gateways":"Data plane proxies"}),headers:[{label:"Name",key:"name"},o.gateways?{label:"Type",key:"type"}:void 0,{label:"Service",key:"service"},o.gateways?void 0:{label:"Protocol",key:"protocol"},c.value?{label:"Zone",key:"zone"}:void 0,{label:"Last Updated",key:"lastUpdated"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}].filter(v(Ie)),"page-number":o.pageNumber,"page-size":o.pageSize,total:o.total,items:o.items?b(o.items):void 0,error:o.error,onChange:r[0]||(r[0]=n=>i("change",n))},{toolbar:y(()=>[ae(m.$slots,"toolbar",{},void 0,!0)]),name:y(({row:n})=>[w(S,{to:{name:o.gateways?"gateway-detail-view":"data-plane-detail-view",params:{dataPlane:n.name}},"data-testid":"detail-view-link"},{default:y(()=>[d(_(n.name),1)]),_:2},1032,["to"])]),service:y(({rowValue:n})=>[n.route?(p(),M(S,{key:0,to:n.route},{default:y(()=>[d(_(n.title),1)]),_:2},1032,["to"])):(p(),k(E,{key:1},[d(_(n.title),1)],64))]),zone:y(({rowValue:n})=>[n.route?(p(),M(S,{key:0,to:n.route},{default:y(()=>[d(_(n.title),1)]),_:2},1032,["to"])):(p(),k(E,{key:1},[d(_(n.title),1)],64))]),status:y(({rowValue:n})=>[n?(p(),M(Se,{key:0,status:n},null,8,["status"])):(p(),k(E,{key:1},[d(_(v(a)("common.collection.none")),1)],64))]),warnings:y(({rowValue:n})=>[n.length>0?(p(),M(v(ue),{key:0,label:v(a)("data-planes.list.version_mismatch")},{default:y(()=>[w(v(F),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(p(),k(E,{key:1},[d(`   `)],64))]),actions:y(({row:n})=>[w(v(ce),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:y(()=>[w(v(de),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:y(()=>[w(v(F),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:y(()=>[w(v(pe),{item:{to:{name:o.gateways?"gateway-detail-view":"data-plane-detail-view",params:{dataPlane:n.name}},label:v(a)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:3},8,["empty-state-title","empty-state-message","headers","page-number","page-size","total","items","error"])}}});const at=ne(Ue,[["__scopeId","data-v-a9638b0f"]]);function Le(s,i,o){return Math.max(i,Math.min(s,o))}const Me=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class ze{constructor(i,o){$(this,"commands");$(this,"keyMap");$(this,"boundTriggerShortcuts");this.commands=o,this.keyMap=Object.fromEntries(Object.entries(i).map(([h,a])=>[h.toLowerCase(),a])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(i){Ee(i,this.keyMap,this.commands)}}function Ee(s,i,o){const h=Fe(s.code),a=[s.ctrlKey?"ctrl":"",s.shiftKey?"shift":"",s.altKey?"alt":"",h].filter(b=>b!=="").join("+"),u=i[a];if(!u)return;const c=o[u];c.isAllowedContext&&!c.isAllowedContext(s)||(c.shouldPreventDefaultAction&&s.preventDefault(),!(c.isDisabled&&c.isDisabled())&&c.trigger(s))}function Fe(s){return Me.includes(s)?"":s.replace(/^Key/,"").toLowerCase()}function je(s,i){const o=" "+s,h=o.matchAll(/ ([-\s\w]+):\s*/g),a=[];for(const u of Array.from(h)){if(u.index===void 0)continue;const c=Be(u[1]);if(i.length>0&&!i.includes(c))throw new Error(`Unknown field “${c}”. Known fields: ${i.join(", ")}`);const b=u.index+u[0].length,m=o.substring(b);let r;if(/^\s*["']/.test(m)){const n=m.match(/['"](.*?)['"]/);if(n!==null)r=n[1];else throw new Error(`Quote mismatch for field “${c}”.`)}else{const n=m.indexOf(" "),C=n===-1?m.length:n;r=m.substring(0,C)}r!==""&&a.push([c,r])}return a}function Be(s){return s.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(i,o)=>o===0?i:i.substring(1).toUpperCase())}let te=0;const Pe=(s="unique")=>(te++,`${s}-${te}`),se=s=>(be("data-v-121f7a4c"),s=s(),ke(),s),Re=se(()=>T("span",{class:"visually-hidden"},"Focus filter",-1)),qe=["for"],$e=["id","placeholder"],Ke={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},Ve={class:"k-suggestion-list"},Oe={key:0,class:"k-filter-bar-error"},Qe={key:0},He=["title","data-filter-field"],Ze={class:"visually-hidden"},Ge=se(()=>T("span",{class:"visually-hidden"},"Clear query",-1)),Je=oe({__name:"KFilterBar",props:{id:{type:String,required:!1,default:()=>Pe("k-filter-bar")},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(s,{emit:i}){const o=s,h=D(null),a=D(null),u=D(o.query),c=D([]),b=D(null),m=D(!1),r=D(-1),S=z(()=>Object.keys(o.fields)),n=z(()=>Object.entries(o.fields).slice(0,5).map(([t,l])=>({fieldName:t,...l}))),C=z(()=>S.value.length>0?`Filter by ${S.value.join(", ")}`:"Filter"),K=z(()=>o.placeholder??C.value);X(()=>c.value,function(t,l){q(t,l)||(b.value=null,i("fields-change",{fields:t,query:u.value}))}),X(()=>u.value,function(){u.value===""&&(b.value=null),m.value=!0});const V={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},x={submitQuery:{trigger:N,isAllowedContext(t){return a.value!==null&&t.composedPath().includes(a.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:j,isAllowedContext(t){return a.value!==null&&t.composedPath().includes(a.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:B,isAllowedContext(t){return a.value!==null&&t.composedPath().includes(a.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:I,isAllowedContext(t){return h.value!==null&&t.composedPath().includes(h.value)}}};function U(){const t=new ze(V,x);ye(function(){t.registerListener()}),he(function(){t.unRegisterListener()}),A(u.value)}U();function O(t){const l=t.target;A(l.value)}function N(){if(a.value instanceof HTMLInputElement)if(r.value===-1)A(a.value.value),m.value=!1;else{const t=n.value[r.value].fieldName;t&&f(a.value,t)}}function j(){P(1)}function B(){P(-1)}function P(t){r.value=Le(r.value+t,-1,n.value.length-1)}function Q(){a.value instanceof HTMLInputElement&&a.value.focus()}function H(t){const e=t.currentTarget.getAttribute("data-filter-field");e&&a.value instanceof HTMLInputElement&&f(a.value,e)}function f(t,l){const e=u.value===""||u.value.endsWith(" ")?"":" ";u.value+=e+l+":",t.focus(),r.value=-1}function L(){u.value="",a.value instanceof HTMLInputElement&&(a.value.value="",a.value.focus(),A(""))}function R(t){t.relatedTarget===null&&I(),h.value instanceof HTMLElement&&t.relatedTarget instanceof Node&&!h.value.contains(t.relatedTarget)&&I()}function I(){m.value=!1}function A(t){b.value=null;try{const l=je(t,S.value);l.sort((e,g)=>e[0].localeCompare(g[0])),c.value=l}catch(l){if(l instanceof Error)b.value=l,m.value=!0;else throw l}}function q(t,l){return JSON.stringify(t)===JSON.stringify(l)}return(t,l)=>(p(),k("div",{ref_key:"filterBar",ref:h,class:"k-filter-bar","data-testid":"k-filter-bar"},[T("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:Q},[Re,d(),w(v(F),{"aria-hidden":"true",class:"k-filter-icon",color:"var(--grey-400)","data-testid":"k-filter-bar-filter-icon","hide-title":"",icon:"filter",size:"20"})]),d(),T("label",{for:`${o.id}-filter-bar-input`,class:"visually-hidden"},[ae(t.$slots,"default",{},()=>[d(_(C.value),1)],!0)],8,qe),d(),fe(T("input",{id:`${o.id}-filter-bar-input`,ref_key:"filterInput",ref:a,"onUpdate:modelValue":l[0]||(l[0]=e=>u.value=e),class:"k-filter-bar-input",type:"text",placeholder:K.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=e=>m.value=!0),onBlur:R,onChange:O},null,40,$e),[[ge,u.value]]),d(),m.value?(p(),k("div",Ke,[T("div",Ve,[b.value!==null?(p(),k("p",Oe,_(b.value.message),1)):(p(),k("button",{key:1,class:ee(["k-submit-query-button",{"k-submit-query-button-is-selected":r.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:N},` Submit `+_(u.value),3)),d(),(p(!0),k(E,null,ve(n.value,(e,g)=>(p(),k("div",{key:`${o.id}-${g}`,class:ee(["k-suggestion-list-item",{"k-suggestion-list-item-is-selected":r.value===g}])},[T("b",null,_(e.fieldName),1),e.description!==""?(p(),k("span",Qe,": "+_(e.description),1)):G("",!0),d(),T("button",{class:"k-apply-suggestion-button",title:`Add ${e.fieldName}:`,type:"button","data-filter-field":e.fieldName,"data-testid":"k-filter-bar-apply-suggestion-button",onClick:H},[T("span",Ze,"Add "+_(e.fieldName)+":",1),d(),w(v(F),{"aria-hidden":"true",color:"currentColor","hide-title":"",icon:"chevronRight",size:"16"})],8,He)],2))),128))])])):G("",!0),d(),u.value!==""?(p(),k("button",{key:1,class:"k-clear-query-button",title:"Clear query",type:"button","data-testid":"k-filter-bar-clear-query-button",onClick:L},[Ge,d(),w(v(F),{"aria-hidden":"true",color:"currentColor",icon:"clear","hide-title":"",size:"20"})])):G("",!0)],512))}});const nt=ne(Je,[["__scopeId","data-v-121f7a4c"]]);export{at as D,nt as K}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-e9931dad.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-5888f819.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBox-e9931dad.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBox-5888f819.js index 03038495ce7d..e77300b1fbac 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-e9931dad.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-5888f819.js @@ -1 +1 @@ -import{f as d}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{o as n,e as _,g as s,p as c,m as l,q as o}from"./index-4f1a7619.js";const a={},e=t=>(c("data-v-67594d24"),t=t(),l(),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)),v=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1));function f(t,m){return n(),_("div",i,[p,s(),r,s(),u,s(),v,s(),h])}const B=d(a,[["render",f],["__scopeId","data-v-67594d24"]]);export{B as L}; +import{f as d}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{o as n,e as _,g as s,p as c,m as l,q as o}from"./index-3a142bd5.js";const a={},e=t=>(c("data-v-67594d24"),t=t(),l(),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)),v=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1));function f(t,m){return n(),_("div",i,[p,s(),r,s(),u,s(),v,s(),h])}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-4b253c04.js b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-de76e264.js similarity index 54% rename from app/kuma-ui/pkg/resources/data/assets/MainOverviewView-4b253c04.js rename to app/kuma-ui/pkg/resources/data/assets/MainOverviewView-de76e264.js index 82799b6932d1..f24eaa800bb8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-4b253c04.js +++ b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-de76e264.js @@ -1 +1 @@ -import{o as r,g as i,A as n,_ as c}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{d as l,o as m,a as u,w as t,h as e,b as a,g as f,q as p}from"./index-4f1a7619.js";const d={class:"stack"},k=l({__name:"MainOverviewView",setup(v){const s=r(),{t:o}=i();return(w,h)=>(m(),u(c,null,{default:t(()=>[e(_,{title:a(o)("main-overview.routes.item.title")},null,8,["title"]),f(),e(n,null,{default:t(()=>[p("div",d,[e(a(s))])]),_:1})]),_:1}))}});export{k as default}; +import{o as r,g as i,A as n,_ as c}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{d as l,o as m,a as u,w as t,h as e,b as a,g as f,q as p}from"./index-3a142bd5.js";const d={class:"stack"},k=l({__name:"MainOverviewView",setup(v){const s=r(),{t:o}=i();return(w,h)=>(m(),u(c,null,{default:t(()=>[e(_,{title:a(o)("main-overview.routes.item.title")},null,8,["title"]),f(),e(n,null,{default:t(()=>[p("div",d,[e(a(s))])]),_:1})]),_:1}))}});export{k as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-68ef96bd.js b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-68ef96bd.js deleted file mode 100644 index 63a8d15af4bb..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-68ef96bd.js +++ /dev/null @@ -1 +0,0 @@ -import{d as R,u as F,j as _,c as h,o as u,e as g,h as s,g as c,r as H,a as y,w as i,b as f,q as T,G as S,F as C,s as N,R as K,t as D,f as J}from"./index-4f1a7619.js";import{g as q,m as G,s as O,p as Q,D as V,f as W,e as U,A as X,_ as Y}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as Z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{D as j,a as A}from"./DefinitionListItem-61a9402d.js";import{_ as ee}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js";import{_ as te}from"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";import{T as ae}from"./TextWithCopyButton-6da2ac1e.js";import{n as ne}from"./notEmpty-7f452b20.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import"./ErrorBlock-de349e30.js";const le={class:"chart-box-list"},se=R({__name:"MeshCharts",setup(z){const o=q(),M=G(),b=F(),w=_(!1),x=_({total:0,online:0,partiallyDegraded:0,offline:0}),v=_({total:0,internal:0,external:0}),p=_({kumaDp:{},envoy:{}}),r=h(()=>{const n=[],{internal:t,external:e}=v.value;return t&&n.push({title:o.t("common.charts.services.internalLabel"),data:t}),e&&n.push({title:o.t("common.charts.services.externalLabel"),data:e}),{title:o.t("common.charts.services.title"),showTotal:!0,dataPoints:n}}),m=h(()=>{const n=[],{total:t,online:e,partiallyDegraded:l}=x.value;if(t>0){n.push({title:o.t("http.api.value.online"),statusKeyword:"online",data:e}),l>0&&n.push({title:o.t("http.api.value.partially_degraded"),statusKeyword:"partially_degraded",data:l});const a=t-l-e;a>0&&n.push({title:o.t("http.api.value.offline"),statusKeyword:"offline",data:a})}return{title:o.t("common.charts.dataPlaneProxies.title"),showTotal:!0,dataPoints:n}}),B=h(()=>{const n=Object.entries(p.value.kumaDp).map(([t,e])=>({title:t,data:e.total??0}));return n.sort((t,e)=>t.title==="unknown"?1:e.title==="unknown"?-1:O(t.title,e.title)),{title:o.t("common.charts.kumaDp.title"),subtitle:o.t("common.charts.kumaDp.subtitle"),dataPoints:n}}),P=h(()=>{const n=Object.entries(p.value.envoy).map(([t,e])=>({title:t,data:e.total??0}));return n.sort((t,e)=>t.title==="unknown"?1:e.title==="unknown"?-1:O(t.title,e.title)),{title:o.t("common.charts.envoy.title"),subtitle:o.t("common.charts.envoy.subtitle"),dataPoints:n}});I();async function I(){w.value=!0;const n=b.params.mesh;try{const t=await M.getMeshInsights({name:n}),e=Q([t]);$(e),L(e),k(e)}catch{x.value={total:0,online:0,partiallyDegraded:0,offline:0},v.value={total:0,internal:0,external:0},p.value={kumaDp:{},envoy:{}}}finally{w.value=!1}}function $(n){const{total:t,online:e,partiallyDegraded:l}=n.dataplanes;x.value={total:t,online:e,partiallyDegraded:l,offline:t-e-l}}function L(n){const{total:t,internal:e,external:l}=n.services;v.value={total:t,internal:e,external:l}}function k(n){p.value=n.dpVersions}return(n,t)=>(u(),g("div",le,[s(V,{data:r.value},null,8,["data"]),c(),s(V,{data:m.value},null,8,["data"]),c(),s(V,{data:B.value},null,8,["data"]),c(),s(V,{data:P.value},null,8,["data"])]))}});const oe=W(se,[["__scopeId","data-v-375c50a1"]]),re={class:"stack"},ie={class:"columns"},ue=R({__name:"MeshDetailView",setup(z){const{t:o,formatIsoDate:M}=q(),b=G(),w=F(),x=U(),v=_(!0),p=_(null),r=_(null),m=_(null),B=h(()=>{if(r.value===null||m.value===null)return null;const{name:t,creationTime:e,modificationTime:l}=r.value;return{name:t,created:M(e),modified:M(l),"Data Plane Proxies":m.value.dataplanes.total}}),P=h(()=>{var E;if(r.value===null)return null;const t=k(r.value,"mtls"),e=k(r.value,"logging"),l=k(r.value,"metrics"),a=k(r.value,"tracing"),d=!!((E=r.value.routing)!=null&&E.localityAwareLoadBalancing);return{mtls:t,logging:e,metrics:l,tracing:a,localityAwareLoadBalancing:d}}),I=h(()=>m.value===null?0:Object.values(m.value.policies??{}).reduce((t,e)=>t+e.total,0)),$=h(()=>m.value===null?[]:Object.entries(m.value.policies??{}).map(([t,e])=>{const l=x.state.policyTypesByName[t];return l&&e.total!==0?{name:l.name,path:l.path,total:e.total}:null}).filter(ne));L();async function L(){v.value=!0,p.value=null;const t=w.params.mesh;try{r.value=await b.getMesh({name:t}),m.value=await b.getMeshInsights({name:t})}catch(e){e instanceof Error?p.value=e:console.error(p),r.value=null,m.value=null}finally{v.value=!1}}function k(t,e){if(t===null||t[e]===void 0)return!1;const l=t[e].enabledBackend??t[e].defaultBackend??t[e].backends[0].name,a=t[e].backends.find(d=>d.name===l);return`${a.type} / ${a.name}`}async function n(t){const e=w.params.mesh;return await b.getMesh({name:e},t)}return(t,e)=>{const l=H("router-link");return u(),y(Y,null,{default:i(()=>[s(Z,{title:f(o)("meshes.routes.overview.title")},null,8,["title"]),c(),s(X,null,{default:i(()=>[T("div",re,[s(f(S),null,{body:i(()=>[s(oe)]),_:1}),c(),r.value!==null?(u(),y(f(S),{key:0},{body:i(()=>[T("div",ie,[s(te,{"is-loading":v.value,error:p.value,"is-empty":r.value===null||m.value===null},{default:i(()=>[s(j,null,{default:i(()=>[(u(!0),g(C,null,N(B.value,(a,d)=>(u(),y(A,{key:d,term:f(o)(`http.api.property.${d}`)},{default:i(()=>[typeof a=="boolean"?(u(),y(f(K),{key:0,appearance:a?"success":"danger"},{default:i(()=>[c(D(a?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):d==="name"&&typeof a=="string"?(u(),y(ae,{key:1,text:a},null,8,["text"])):(u(),g(C,{key:2},[c(D(a),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),_:1},8,["is-loading","error","is-empty"]),c(),s(j,null,{default:i(()=>[(u(!0),g(C,null,N(P.value,(a,d)=>(u(),y(A,{key:d,term:f(o)(`http.api.property.${d}`)},{default:i(()=>[typeof a=="boolean"?(u(),y(f(K),{key:0,appearance:a?"success":"danger"},{default:i(()=>[c(D(a?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):(u(),g(C,{key:1},[c(D(a),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),c(),s(j,null,{default:i(()=>[s(A,{term:`Policies (${I.value})`},{default:i(()=>[T("ul",null,[(u(!0),g(C,null,N($.value,(a,d)=>(u(),g("li",{key:d},[s(l,{to:{name:"policies-list-view",params:{policyPath:a.path}}},{default:i(()=>[c(D(a.name)+": "+D(a.total),1)]),_:2},1032,["to"])]))),128))])]),_:1},8,["term"])]),_:1})])]),_:1})):J("",!0),c(),s(f(S),null,{body:i(()=>{var a;return[s(ee,{id:"code-block-mesh","resource-fetcher":n,"resource-fetcher-watch-key":((a=r.value)==null?void 0:a.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1})])]),_:1})]),_:1})}}});const De=W(ue,[["__scopeId","data-v-9883e8a2"]]);export{De as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-88219ae2.css b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-88219ae2.css new file mode 100644 index 000000000000..5bedd5426b66 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-88219ae2.css @@ -0,0 +1 @@ +.chart-box-list[data-v-19ba3cca]{display:flex;flex-wrap:wrap;row-gap:var(--spacing-lg)}.chart-box-list>*[data-v-19ba3cca]{flex-basis:25%} diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-dbf2ba1e.js b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-dbf2ba1e.js new file mode 100644 index 000000000000..c074bd257675 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-dbf2ba1e.js @@ -0,0 +1,3 @@ +import{d as O,c as d,o as l,e as y,h as n,g as u,u as K,r as R,w as i,b as h,G as P,q as A,F as I,s as V,a as _,R as T,t as B}from"./index-3a142bd5.js";import{g as q,p as S,s as N,D as L,f as F,m as G,e as W,A as z,q as H,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{D as j,a as M}from"./DefinitionListItem-e3979580.js";import{_ as Q}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js";import{T as U}from"./TextWithCopyButton-5cda1463.js";import{n as X}from"./notEmpty-7f452b20.js";import{_ as E}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as Z}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as tt}from"./ErrorBlock-bfc4eea4.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";const et={class:"chart-box-list"},at=O({__name:"MeshCharts",props:{meshInsight:{type:Object,required:!0}},setup(k){const m=k,c=q(),g=d(()=>S([m.meshInsight])),b=d(()=>{const{total:e,online:t,partiallyDegraded:a}=g.value.dataplanes;return{total:e,online:t,partiallyDegraded:a,offline:e-t-a}}),w=d(()=>{const{total:e,internal:t,external:a}=g.value.services;return{total:e,internal:t,external:a}}),D=d(()=>g.value.dpVersions),x=d(()=>{const e=[],{internal:t,external:a}=w.value;return t&&e.push({title:c.t("common.charts.services.internalLabel"),data:t}),a&&e.push({title:c.t("common.charts.services.externalLabel"),data:a}),{title:c.t("common.charts.services.title"),showTotal:!0,dataPoints:e}}),v=d(()=>{const e=[],{total:t,online:a,partiallyDegraded:s}=b.value;if(t>0){e.push({title:c.t("http.api.value.online"),statusKeyword:"online",data:a}),s>0&&e.push({title:c.t("http.api.value.partially_degraded"),statusKeyword:"partially_degraded",data:s});const o=t-s-a;o>0&&e.push({title:c.t("http.api.value.offline"),statusKeyword:"offline",data:o})}return{title:c.t("common.charts.dataPlaneProxies.title"),showTotal:!0,dataPoints:e}}),C=d(()=>{const e=Object.entries(D.value.kumaDp).map(([t,a])=>({title:t,data:a.total??0}));return e.sort((t,a)=>t.title==="unknown"?1:a.title==="unknown"?-1:N(t.title,a.title)),{title:c.t("common.charts.kumaDp.title"),subtitle:c.t("common.charts.kumaDp.subtitle"),dataPoints:e}}),$=d(()=>{const e=Object.entries(D.value.envoy).map(([t,a])=>({title:t,data:a.total??0}));return e.sort((t,a)=>t.title==="unknown"?1:a.title==="unknown"?-1:N(t.title,a.title)),{title:c.t("common.charts.envoy.title"),subtitle:c.t("common.charts.envoy.subtitle"),dataPoints:e}});return(e,t)=>(l(),y("div",et,[n(L,{data:x.value},null,8,["data"]),u(),n(L,{data:v.value},null,8,["data"]),u(),n(L,{data:C.value},null,8,["data"]),u(),n(L,{data:$.value},null,8,["data"])]))}});const st=F(at,[["__scopeId","data-v-19ba3cca"]]),nt={class:"stack"},rt={class:"columns"},ot=O({__name:"MeshDetails",props:{mesh:{type:Object,required:!0},meshInsight:{type:Object,required:!0}},setup(k){const m=k,{t:c,formatIsoDate:g}=q(),b=G(),w=K(),D=W(),x=d(()=>{const{name:s,creationTime:o,modificationTime:f}=m.mesh;return{name:s,created:g(o),modified:g(f),"Data Plane Proxies":m.meshInsight.dataplanes.total}}),v=d(()=>{var s;return!!((s=m.mesh.routing)!=null&&s.localityAwareLoadBalancing)}),C=d(()=>({mtls:t(m.mesh,"mtls"),logging:t(m.mesh,"logging"),metrics:t(m.mesh,"metrics"),tracing:t(m.mesh,"tracing")})),$=d(()=>Object.values(m.meshInsight.policies??{}).reduce((s,o)=>s+o.total,0)),e=d(()=>Object.entries(m.meshInsight.policies??{}).map(([s,o])=>{const f=D.state.policyTypesByName[s];return f&&o.total!==0?{name:f.name,path:f.path,total:o.total}:null}).filter(X));function t(s,o){if(s[o]===void 0)return"";const f=s[o].enabledBackend??s[o].defaultBackend??s[o].backends[0].name,r=s[o].backends.find(p=>p.name===f);return`${r.type} / ${r.name}`}async function a(s){const o=w.params.mesh;return await b.getMesh({name:o},s)}return(s,o)=>{const f=R("router-link");return l(),y("div",nt,[n(h(P),null,{body:i(()=>[n(st,{"mesh-insight":k.meshInsight},null,8,["mesh-insight"])]),_:1}),u(),n(h(P),null,{body:i(()=>[A("div",rt,[n(j,null,{default:i(()=>[(l(!0),y(I,null,V(x.value,(r,p)=>(l(),_(M,{key:p,term:h(c)(`http.api.property.${p}`)},{default:i(()=>[typeof r=="boolean"?(l(),_(h(T),{key:0,appearance:r?"success":"danger"},{default:i(()=>[u(B(r?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):p==="name"&&typeof r=="string"?(l(),_(U,{key:1,text:r},null,8,["text"])):(l(),y(I,{key:2},[u(B(r),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),u(),n(j,null,{default:i(()=>[(l(!0),y(I,null,V(C.value,(r,p)=>(l(),_(M,{key:p,term:h(c)(`http.api.property.${p}`)},{default:i(()=>[r===""?(l(),_(h(T),{key:0,appearance:"danger"},{default:i(()=>[u(` + Disabled + `)]),_:1})):(l(),y(I,{key:1},[u(B(r),1)],64))]),_:2},1032,["term"]))),128)),u(),n(M,{term:h(c)("http.api.property.localityAwareLoadBalancing")},{default:i(()=>[n(h(T),{appearance:v.value?"success":"danger"},{default:i(()=>[u(B(v.value?"Enabled":"Disabled"),1)]),_:1},8,["appearance"])]),_:1},8,["term"])]),_:1}),u(),n(j,null,{default:i(()=>[n(M,{term:`Policies (${$.value})`},{default:i(()=>[A("ul",null,[(l(!0),y(I,null,V(e.value,(r,p)=>(l(),y("li",{key:p},[n(f,{to:{name:"policies-list-view",params:{policyPath:r.path}}},{default:i(()=>[u(B(r.name)+": "+B(r.total),1)]),_:2},1032,["to"])]))),128))])]),_:1},8,["term"])]),_:1})])]),_:1}),u(),n(h(P),null,{body:i(()=>{var r;return[n(Q,{id:"code-block-mesh","resource-fetcher":a,"resource-fetcher-watch-key":((r=k.mesh)==null?void 0:r.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1})])}}}),vt=O({__name:"MeshDetailView",setup(k){const{t:m}=q();return(c,g)=>(l(),_(J,{name:"mesh-overview-view"},{default:i(({route:b})=>[n(Y,{title:h(m)("meshes.routes.overview.title")},null,8,["title"]),u(),n(z,null,{default:i(()=>[n(E,{src:`/meshes/${b.params.mesh}`},{default:i(({data:w,isLoading:D,error:x})=>[n(E,{src:`/mesh-insights/${b.params.mesh}`},{default:i(({data:v,isLoading:C,error:$})=>[D||C?(l(),_(H,{key:0})):x??$?(l(),_(tt,{key:1,error:x??$},null,8,["error"])):w===void 0||v===void 0?(l(),_(Z,{key:2})):(l(),_(ot,{key:3,mesh:w,"mesh-insight":v,"data-testid":"detail-view-details"},null,8,["mesh","mesh-insight"]))]),_:2},1032,["src"])]),_:2},1032,["src"])]),_:2},1024)]),_:1}))}});export{vt as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-e0ad88f1.css b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-e0ad88f1.css deleted file mode 100644 index ab73ce5d4a15..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-e0ad88f1.css +++ /dev/null @@ -1 +0,0 @@ -.chart-box-list[data-v-375c50a1]{display:flex;flex-wrap:wrap;row-gap:var(--spacing-lg)}.chart-box-list>*[data-v-375c50a1]{flex-basis:25%}.policy-counts li li[data-v-9883e8a2]{margin:0} diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-9bbd82f2.js b/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-746113e6.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/MeshIndexView-9bbd82f2.js rename to app/kuma-ui/pkg/resources/data/assets/MeshIndexView-746113e6.js index d1f33327c61f..910989839ac7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-9bbd82f2.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-746113e6.js @@ -1 +1 @@ -import{d as p,u as _,I as d,r as h,o as i,a as u,w as a,h as o,b as e,q as f,g as w,i as b}from"./index-4f1a7619.js";import{g as x,e as V,A as v,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const R=p({__name:"MeshIndexView",setup(k){const{t:r}=x(),t=_(),c=V();return d(()=>t.params.mesh,(s,m)=>{s!==m&&s&&c.dispatch("fetchPolicyTypeTotals",s)},{immediate:!0}),(s,m)=>{const l=h("RouterView");return i(),u(C,null,{default:a(()=>[o(v,{breadcrumbs:[{to:{name:"mesh-list-view"},text:e(r)("meshes.routes.item.breadcrumbs")},...e(t).name!=="mesh-detail-view"?[{to:{name:"mesh-detail-view",params:{mesh:e(t).params.mesh}},text:e(t).params.mesh}]:[]]},{title:a(()=>[f("h1",null,[o(y,{title:e(r)("meshes.routes.item.title",{name:e(t).params.mesh}),render:!0},null,8,["title"])])]),default:a(()=>[w(),o(l,null,{default:a(n=>[(i(),u(b(n.Component),{key:n.route.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{R as default}; +import{d as p,u as _,I as d,r as h,o as i,a as u,w as a,h as o,b as e,q as f,g as w,i as b}from"./index-3a142bd5.js";import{g as x,e as V,A as v,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const R=p({__name:"MeshIndexView",setup(k){const{t:r}=x(),t=_(),c=V();return d(()=>t.params.mesh,(s,m)=>{s!==m&&s&&c.dispatch("fetchPolicyTypeTotals",s)},{immediate:!0}),(s,m)=>{const l=h("RouterView");return i(),u(C,null,{default:a(()=>[o(v,{breadcrumbs:[{to:{name:"mesh-list-view"},text:e(r)("meshes.routes.item.breadcrumbs")},...e(t).name!=="mesh-detail-view"?[{to:{name:"mesh-detail-view",params:{mesh:e(t).params.mesh}},text:e(t).params.mesh}]:[]]},{title:a(()=>[f("h1",null,[o(y,{title:e(r)("meshes.routes.item.title",{name:e(t).params.mesh}),render:!0},null,8,["title"])])]),default:a(()=>[w(),o(l,null,{default:a(n=>[(i(),u(b(n.Component),{key:n.route.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{R as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshListView-cd7bf48e.js b/app/kuma-ui/pkg/resources/data/assets/MeshListView-3420f9c0.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/MeshListView-cd7bf48e.js rename to app/kuma-ui/pkg/resources/data/assets/MeshListView-3420f9c0.js index 68b2cce366df..07fcc6333252 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshListView-cd7bf48e.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshListView-3420f9c0.js @@ -1 +1 @@ -import{d as u,r as d,o as f,a as h,w as e,h as s,q as m,b as t,g as l,G as g,t as v,$ as w,D as y,v as b,H as k}from"./index-4f1a7619.js";import{A as z}from"./AppCollection-911959a1.js";import{g as C,A as V,_ as $,f as x}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as A}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as L}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const M={class:"stack"},N=u({__name:"MeshListView",props:{page:{},size:{}},setup(r){const o=r,{t:n}=C();return(B,S)=>{const c=d("RouterLink");return f(),h($,{name:"mesh-list-view"},{default:e(({route:p})=>[s(A,{src:`/meshes?page=${o.page}&size=${o.size}`},{default:e(({data:a,error:_})=>[s(V,null,{title:e(()=>[m("h1",null,[s(L,{title:t(n)("meshes.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),m("div",M,[s(t(g),null,{body:e(()=>[s(z,{class:"mesh-collection","data-testid":"mesh-collection","empty-state-title":t(n)("common.emptyState.title"),"empty-state-message":t(n)("common.emptyState.message",{type:"Meshes"}),headers:[{label:"Name",key:"name"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":o.page,"page-size":o.size,total:a==null?void 0:a.total,items:a==null?void 0:a.items,error:_,onChange:p.update},{name:e(({row:i})=>[s(c,{to:{name:"mesh-detail-view",params:{mesh:i.name}}},{default:e(()=>[l(v(i.name),1)]),_:2},1032,["to"])]),actions:e(({row:i})=>[s(t(w),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[s(t(y),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[s(t(b),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[s(t(k),{item:{to:{name:"mesh-detail-view",params:{mesh:i.name}},label:t(n)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-title","empty-state-message","page-number","page-size","total","items","error","onChange"])]),_:2},1024)])]),_:2},1024)]),_:2},1032,["src"])]),_:1})}}});const E=x(N,[["__scopeId","data-v-daff90a5"]]);export{E as default}; +import{d as u,r as d,o as f,a as h,w as e,h as s,q as m,b as t,g as l,G as g,t as v,$ as w,D as y,v as b,H as k}from"./index-3a142bd5.js";import{A as z}from"./AppCollection-7dd9601e.js";import{g as C,A as V,_ as $,f as x}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as A}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as L}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const M={class:"stack"},N=u({__name:"MeshListView",props:{page:{},size:{}},setup(r){const o=r,{t:n}=C();return(B,S)=>{const c=d("RouterLink");return f(),h($,{name:"mesh-list-view"},{default:e(({route:p})=>[s(A,{src:`/meshes?page=${o.page}&size=${o.size}`},{default:e(({data:a,error:_})=>[s(V,null,{title:e(()=>[m("h1",null,[s(L,{title:t(n)("meshes.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),m("div",M,[s(t(g),null,{body:e(()=>[s(z,{class:"mesh-collection","data-testid":"mesh-collection","empty-state-title":t(n)("common.emptyState.title"),"empty-state-message":t(n)("common.emptyState.message",{type:"Meshes"}),headers:[{label:"Name",key:"name"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":o.page,"page-size":o.size,total:a==null?void 0:a.total,items:a==null?void 0:a.items,error:_,onChange:p.update},{name:e(({row:i})=>[s(c,{to:{name:"mesh-detail-view",params:{mesh:i.name}}},{default:e(()=>[l(v(i.name),1)]),_:2},1032,["to"])]),actions:e(({row:i})=>[s(t(w),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[s(t(y),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[s(t(b),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[s(t(k),{item:{to:{name:"mesh-detail-view",params:{mesh:i.name}},label:t(n)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-title","empty-state-message","page-number","page-size","total","items","error","onChange"])]),_:2},1024)])]),_:2},1024)]),_:2},1032,["src"])]),_:1})}}});const E=x(N,[["__scopeId","data-v-daff90a5"]]);export{E as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-28d4fa7e.js b/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-da49ff1a.js similarity index 78% rename from app/kuma-ui/pkg/resources/data/assets/MeshTabsView-28d4fa7e.js rename to app/kuma-ui/pkg/resources/data/assets/MeshTabsView-da49ff1a.js index 594c54373a6e..997c16a51a3d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-28d4fa7e.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-da49ff1a.js @@ -1 +1 @@ -import{d as _,J as f,r as d,o as c,a as i,w as n,h as a,b as h,g as b,i as w}from"./index-4f1a7619.js";import{g as R,A as v,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{N as C}from"./NavTabs-89b6e95b.js";const B=_({__name:"MeshTabsView",setup(N){var r;const l=R(),p=(((r=f().getRoutes().find(e=>e.name==="mesh-tabs-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const o=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=o.name,s=((u=o.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:s}});return(e,o)=>{const t=d("RouterView");return c(),i(V,null,{default:n(()=>[a(v,null,{default:n(()=>[a(C,{class:"route-mesh-view-tabs",tabs:h(p)},null,8,["tabs"]),b(),a(t,null,{default:n(s=>[(c(),i(w(s.Component),{key:s.route.path}))]),_:1})]),_:1})]),_:1})}}});export{B as default}; +import{d as _,J as f,r as d,o as c,a as i,w as n,h as a,b as h,g as b,i as w}from"./index-3a142bd5.js";import{g as R,A as v,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{N as C}from"./NavTabs-d4977a62.js";const B=_({__name:"MeshTabsView",setup(N){var r;const l=R(),p=(((r=f().getRoutes().find(e=>e.name==="mesh-tabs-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const o=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=o.name,s=((u=o.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:s}});return(e,o)=>{const t=d("RouterView");return c(),i(V,null,{default:n(()=>[a(v,null,{default:n(()=>[a(C,{class:"route-mesh-view-tabs",tabs:h(p)},null,8,["tabs"]),b(),a(t,null,{default:n(s=>[(c(),i(w(s.Component),{key:s.route.path}))]),_:1})]),_:1})]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-9f22b024.js b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-1aa8c5b5.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/MultiZoneView-9f22b024.js rename to app/kuma-ui/pkg/resources/data/assets/MultiZoneView-1aa8c5b5.js index 04e11f5dd4f0..df0a1d450371 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-9f22b024.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-1aa8c5b5.js @@ -1,4 +1,4 @@ -import{L as y}from"./LoadingBox-e9931dad.js";import{O as x,a as Z,b as I}from"./OnboardingPage-587e62e3.js";import{m as z,g as k,A as T,_ as O,f as V}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as A}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{d as N,j as r,y as L,o as a,a as B,w as i,h as c,b as w,g as e,q as n,e as l,f as C,p as S,m as M}from"./index-4f1a7619.js";const q=u=>(S("data-v-19e1de57"),u=u(),M(),u),D=q(()=>n("p",{class:"mb-4 text-center"},` +import{L as y}from"./LoadingBox-5888f819.js";import{O as x,a as Z,b as I}from"./OnboardingPage-4256e18b.js";import{m as z,g as k,A as T,_ as O,f as V}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as A}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{d as N,j as r,y as L,o as a,a as B,w as i,h as c,b as w,g as e,q as n,e as l,f as C,p as S,m as M}from"./index-3a142bd5.js";const q=u=>(S("data-v-19e1de57"),u=u(),M(),u),D=q(()=>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)),E={class:"mb-4 text-center"},G=["href"],K={class:"status-box mt-4"},P={key:0,class:"status--is-connected","data-testid":"zone-connected"},U={key:1,class:"status--is-disconnected","data-testid":"zone-disconnected"},$={class:"status-box mt-4"},j={key:0,class:"status--is-connected","data-testid":"zone-ingress-connected"},H={key:1,class:"status--is-disconnected","data-testid":"zone-ingress-disconnected"},R={key:0,class:"status-loading-box mt-4"},b=1e3,F=N({__name:"MultiZoneView",setup(u){const m=z(),{t:p}=k(),s=r(!1),o=r(!1),d=r(null),_=r(null);L(function(){h(),v()}),f(),g();async function f(){try{const{total:t}=await m.getZones();s.value=t>0}catch(t){s.value=!1,console.error(t)}finally{s.value||(h(),d.value=window.setTimeout(f,b))}}async function g(){try{const{total:t}=await m.getAllZoneIngressOverviews();o.value=t>0}catch(t){o.value=!1,console.error(t)}finally{o.value||(v(),_.value=window.setTimeout(g,b))}}function h(){d.value!==null&&window.clearTimeout(d.value)}function v(){_.value!==null&&window.clearTimeout(_.value)}return(t,J)=>(a(),B(O,null,{default:i(()=>[c(A,{title:w(p)("onboarding.routes.multizone.title")},null,8,["title"]),e(),c(T,null,{default:i(()=>[c(x,null,{header:i(()=>[c(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-6483f23f.js b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-f549a89c.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-6483f23f.js rename to app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-f549a89c.js index 3075bd681dd0..e4782bcb5681 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-6483f23f.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-f549a89c.js @@ -1,4 +1,4 @@ -import{d as r,o as c,a as i,w as n,h as s,b as e,v as l,g as a,q as t,t as u,D as m,E as p}from"./index-4f1a7619.js";import{g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const d=t("p",null,[a(` +import{d as r,o as c,a as i,w as n,h as s,b as e,v as l,g as a,q as t,t as u,D as m,E as p}from"./index-3a142bd5.js";import{g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const d=t("p",null,[a(` To access this page, you must be running in `),t("strong",null,"Multi-Zone"),a(` mode. `)],-1),k=r({__name:"MultizoneInfo",setup(g){const{t:o}=_();return(f,h)=>(c(),i(e(p),null,{title:n(()=>[s(e(l),{class:"mb-3",icon:"dangerCircleOutline",size:"42"}),a(),t("p",null,u(e(o)("common.product.name"))+" is running in Standalone mode.",1)]),message:n(()=>[d]),cta:n(()=>[s(e(m),{to:e(o)("zones.href.docs.cta"),target:"_blank",appearance:"primary"},{default:n(()=>[a(` Learn More diff --git a/app/kuma-ui/pkg/resources/data/assets/NavTabs-89b6e95b.js b/app/kuma-ui/pkg/resources/data/assets/NavTabs-d4977a62.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/NavTabs-89b6e95b.js rename to app/kuma-ui/pkg/resources/data/assets/NavTabs-d4977a62.js index cc76a436e9e3..00331a3bddf9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/NavTabs-89b6e95b.js +++ b/app/kuma-ui/pkg/resources/data/assets/NavTabs-d4977a62.js @@ -1 +1 @@ -import{d,u as _,c as n,r as p,o as i,a as f,B as N,s as v,w as u,h as b,g as h,t as x,b as k,V as y}from"./index-4f1a7619.js";import{f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const B=d({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(c){const a=c,r=_(),m=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=r.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===r.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const o=p("router-link");return i(),f(k(y),{tabs:m.value,"model-value":l.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},N({_:2},[v(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[b(o,{to:{name:e.routeName}},{default:u(()=>[h(x(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});const V=T(B,[["__scopeId","data-v-1c3c46ad"]]);export{V as N}; +import{d,u as _,c as n,r as p,o as i,a as f,B as N,s as v,w as u,h as b,g as h,t as x,b as k,V as y}from"./index-3a142bd5.js";import{f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const B=d({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(c){const a=c,r=_(),m=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=r.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===r.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const o=p("router-link");return i(),f(k(y),{tabs:m.value,"model-value":l.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},N({_:2},[v(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[b(o,{to:{name:e.routeName}},{default:u(()=>[h(x(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});const V=T(B,[["__scopeId","data-v-1c3c46ad"]]);export{V as N}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-587e62e3.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-4256e18b.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingPage-587e62e3.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingPage-4256e18b.js index 87f1e986391f..9997168660af 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-587e62e3.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-4256e18b.js @@ -1,4 +1,4 @@ -import{d as g,C as S,o as s,e as p,q as a,z as i,g as o,b as c,f as u,a as f,w as l,D as _,h as y,t as k,n as x,p as $,m as O}from"./index-4f1a7619.js";import{f as v,e as w}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const N={class:"onboarding-heading"},B={class:"onboarding-title"},q={key:0,class:"onboarding-description"},C=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",N,[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(C,[["__scopeId","data-v-166d4213"]]),I={class:"onboarding-actions"},T={class:"button-list"},V=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=w();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",I,[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,C as S,o as s,e as p,q as a,z as i,g as o,b as c,f as u,a as f,w as l,D as _,h as y,t as k,n as x,p as $,m as O}from"./index-3a142bd5.js";import{f as v,e as w}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const N={class:"onboarding-heading"},B={class:"onboarding-title"},q={key:0,class:"onboarding-description"},C=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",N,[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(C,[["__scopeId","data-v-166d4213"]]),I={class:"onboarding-actions"},T={class:"button-list"},V=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=w();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",I,[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-415d4ccc.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-2a483a7a.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingView-415d4ccc.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingView-2a483a7a.js index ece30b39f2b4..39973fa8d242 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-415d4ccc.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-2a483a7a.js @@ -1 +1 @@ -import{A as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as l,r as c,o,a,w as e,h as n,i}from"./index-4f1a7619.js";const w=l({__name:"OnboardingView",setup(p){return(m,u)=>{const t=c("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(i(r)))]),_:1})]),_:1})]),_:1})}}});export{w as default}; +import{A as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as l,r as c,o,a,w as e,h as n,i}from"./index-3a142bd5.js";const w=l({__name:"OnboardingView",setup(p){return(m,u)=>{const t=c("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(i(r)))]),_:1})]),_:1})]),_:1})}}});export{w as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-7e40c20f.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c1d33373.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-7e40c20f.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c1d33373.js index bcaf7f0c26bb..b35b40bea3b5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-7e40c20f.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c1d33373.js @@ -1,3 +1,3 @@ -import{d as f,j as x,r as g,o as a,e as y,g as l,N as $,O as q,q as v,h as s,w as r,a as d,F as k,s as S,t as _,c as P,b as w,f as N}from"./index-4f1a7619.js";import{_ as C}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as T}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as V}from"./ErrorBlock-de349e30.js";import{q as B,m as A,e as L,g as D,A as E,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as R}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js";import{T as I}from"./TabsWidget-c7bce8f4.js";import{T as O}from"./TextWithCopyButton-6da2ac1e.js";import{_ as W}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";const j=v("h2",null,"Dataplanes",-1),H=f({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(m){const e=m,o=x("");return(u,n)=>{const h=g("RouterLink");return a(),y(k,null,[j,l(),$(v("input",{id:"dataplane-search","onUpdate:modelValue":n[0]||(n[0]=t=>o.value=t),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[q,o.value]]),l(),s(C,{src:`/${e.mesh}/${e.policyPath}/${e.policyName}/dataplanes`},{default:r(({data:t,isLoading:i,error:p})=>[i?(a(),d(B,{key:0})):p?(a(),d(V,{key:1,error:p},null,8,["error"])):t===void 0||t.items.length===0?(a(),d(T,{key:2})):(a(!0),y(k,{key:3},S(t.items.filter(c=>c.dataplane.name.toLowerCase().includes(o.value.toLowerCase())),(c,b)=>(a(),y("p",{key:b,class:"mt-2","data-testid":"dataplane-name"},[s(h,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:r(()=>[l(_(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["src"])],64)}}}),K={class:"policy-details kcard-border"},M={class:"entity-heading","data-testid":"policy-single-entity"},U=f({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(m){const e=m,o=A(),u=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],n=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function h(t){const{name:i,mesh:p,path:c}=e;return await o.getSinglePolicyEntity({name:i,mesh:p,path:c},t)}return(t,i)=>{const p=g("router-link");return a(),y("div",K,[s(I,{tabs:u},{tabHeader:r(()=>[v("h1",M,[l(_(e.type)+`: +import{d as f,j as x,r as g,o as a,e as y,g as l,N as $,O as q,q as v,h as s,w as r,a as d,F as k,s as S,t as _,c as P,b as w,f as N}from"./index-3a142bd5.js";import{_ as C}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as T}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as V}from"./ErrorBlock-bfc4eea4.js";import{q as B,m as A,e as L,g as D,A as E,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as R}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js";import{T as I}from"./TabsWidget-47bb7647.js";import{T as O}from"./TextWithCopyButton-5cda1463.js";import{_ as W}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";const j=v("h2",null,"Dataplanes",-1),H=f({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(m){const e=m,o=x("");return(u,n)=>{const h=g("RouterLink");return a(),y(k,null,[j,l(),$(v("input",{id:"dataplane-search","onUpdate:modelValue":n[0]||(n[0]=t=>o.value=t),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[q,o.value]]),l(),s(C,{src:`/${e.mesh}/${e.policyPath}/${e.policyName}/dataplanes`},{default:r(({data:t,isLoading:i,error:p})=>[i?(a(),d(B,{key:0})):p?(a(),d(V,{key:1,error:p},null,8,["error"])):t===void 0||t.items.length===0?(a(),d(T,{key:2})):(a(!0),y(k,{key:3},S(t.items.filter(c=>c.dataplane.name.toLowerCase().includes(o.value.toLowerCase())),(c,b)=>(a(),y("p",{key:b,class:"mt-2","data-testid":"dataplane-name"},[s(h,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:r(()=>[l(_(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["src"])],64)}}}),K={class:"policy-details kcard-border"},M={class:"entity-heading","data-testid":"policy-single-entity"},U=f({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(m){const e=m,o=A(),u=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],n=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function h(t){const{name:i,mesh:p,path:c}=e;return await o.getSinglePolicyEntity({name:i,mesh:p,path:c},t)}return(t,i)=>{const p=g("router-link");return a(),y("div",K,[s(I,{tabs:u},{tabHeader:r(()=>[v("h1",M,[l(_(e.type)+`: `,1),s(O,{text:e.name},{default:r(()=>[s(p,{to:n.value},{default:r(()=>[l(_(e.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:r(()=>[s(R,{id:"code-block-policy","resource-fetcher":h,"resource-fetcher-watch-key":e.name,"is-searchable":""},null,8,["resource-fetcher-watch-key"])]),"affected-dpps":r(()=>[s(H,{mesh:e.mesh,"policy-name":e.name,"policy-path":e.path},null,8,["mesh","policy-name","policy-path"])]),_:1})])}}}),re=f({__name:"PolicyDetailView",props:{mesh:{},policyPath:{},policyName:{}},setup(m){const e=m,o=L(),{t:u}=D(),n=P(()=>o.state.policyTypesByPath[e.policyPath]);return(h,t)=>(a(),d(F,{name:"policy-detail-view"},{default:r(({route:i})=>[s(W,{title:w(u)("policies.routes.item.title",{name:i.params.policy})},null,8,["title"]),l(),s(E,{breadcrumbs:[{to:{name:"policies-list-view",params:{mesh:i.params.mesh,policyPath:i.params.policyPath}},text:w(u)("policies.routes.item.breadcrumbs")}]},{default:r(()=>[n.value?(a(),d(U,{key:0,name:e.policyName,mesh:e.mesh,path:e.policyPath,type:n.value.name},null,8,["name","mesh","path","type"])):N("",!0)]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{re as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-20f4a0c2.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-a879b0be.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/PolicyListView-20f4a0c2.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyListView-a879b0be.js index 00ed547df5ee..723b8cd316e4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-20f4a0c2.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-a879b0be.js @@ -1,4 +1,4 @@ -import{d as z,r as x,o as l,e as I,h as t,g as i,p as A,m as D,q as r,a as u,w as e,F as E,s as B,b as s,n as L,G as N,X as T,f as K,L as q,t as y,$ as F,D as R,v as M,H as U}from"./index-4f1a7619.js";import{A as X}from"./AppCollection-911959a1.js";import{f as P,g as G,z as H,q as W,A as j,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as h}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as Q}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as Y}from"./ErrorBlock-de349e30.js";const Z=o=>(A("data-v-f8f48ec6"),o=o(),D(),o),ee=["href"],ae=Z(()=>r("span",{class:"visually-hidden"},"Documentation",-1)),te=z({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(o){const p=o;return(f,v)=>{const b=x("KIcon");return l(),I("a",{class:"docs-link",href:p.href,target:"_blank"},[t(b,{icon:"book",color:"currentColor",size:"16","hide-title":""}),i(),ae],8,ee)}}});const oe=P(te,[["__scopeId","data-v-f8f48ec6"]]),se=o=>(A("data-v-0683f714"),o=o(),D(),o),ne={class:"stack"},le=se(()=>r("strong",null,"Warning",-1)),ie=["href"],re=z({__name:"PolicyListView",props:{page:{},size:{}},setup(o){const p=o,{t:f}=G(),v=H();return(b,ce)=>{const S=x("RouterLink");return l(),u(J,{name:"policies-list-view"},{default:e(({route:c})=>[t(h,{src:"/*/policy-types"},{default:e(({data:d,error:k})=>[k?(l(),u(Y,{key:0,error:k},null,8,["error"])):d===void 0?(l(),u(W,{key:1})):d.policies.length===0?(l(),u(Q,{key:2})):(l(!0),I(E,{key:3},B([d.policies.find(n=>n.path===c.params.policyPath)??d.policies[0]],n=>(l(),u(h,{key:n.path,src:`/${c.params.mesh}/${n.path}?page=${p.page}&size=${p.size}`},{default:e(({data:m,error:V})=>[t(j,null,{title:e(()=>[r("h2",null,[i(` +import{d as z,r as x,o as l,e as I,h as t,g as i,p as A,m as D,q as r,a as u,w as e,F as E,s as B,b as s,n as L,G as N,X as T,f as K,L as q,t as y,$ as F,D as R,v as M,H as U}from"./index-3a142bd5.js";import{A as X}from"./AppCollection-7dd9601e.js";import{f as P,g as G,z as H,q as W,A as j,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as h}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as Q}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as Y}from"./ErrorBlock-bfc4eea4.js";const Z=o=>(A("data-v-f8f48ec6"),o=o(),D(),o),ee=["href"],ae=Z(()=>r("span",{class:"visually-hidden"},"Documentation",-1)),te=z({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(o){const p=o;return(f,v)=>{const b=x("KIcon");return l(),I("a",{class:"docs-link",href:p.href,target:"_blank"},[t(b,{icon:"book",color:"currentColor",size:"16","hide-title":""}),i(),ae],8,ee)}}});const oe=P(te,[["__scopeId","data-v-f8f48ec6"]]),se=o=>(A("data-v-0683f714"),o=o(),D(),o),ne={class:"stack"},le=se(()=>r("strong",null,"Warning",-1)),ie=["href"],re=z({__name:"PolicyListView",props:{page:{},size:{}},setup(o){const p=o,{t:f}=G(),v=H();return(b,ce)=>{const S=x("RouterLink");return l(),u(J,{name:"policies-list-view"},{default:e(({route:c})=>[t(h,{src:"/*/policy-types"},{default:e(({data:d,error:k})=>[k?(l(),u(Y,{key:0,error:k},null,8,["error"])):d===void 0?(l(),u(W,{key:1})):d.policies.length===0?(l(),u(Q,{key:2})):(l(!0),I(E,{key:3},B([d.policies.find(n=>n.path===c.params.policyPath)??d.policies[0]],n=>(l(),u(h,{key:n.path,src:`/${c.params.mesh}/${n.path}?page=${p.page}&size=${p.size}`},{default:e(({data:m,error:V})=>[t(j,null,{title:e(()=>[r("h2",null,[i(` Policies: `),t(O,{title:s(f)("policies.routes.items.title",{name:n.name}),render:!0},null,8,["title"])])]),default:e(()=>[i(),r("div",{class:L(["relative",n.path])},[t(s(N),null,{body:e(()=>[r("div",ne,[n.isExperimental?(l(),u(s(T),{key:0,appearance:"warning"},{alertMessage:e(()=>[r("p",null,[le,i(` This policy is experimental. If you encountered any problem please open an `),r("a",{href:s(v)("KUMA_FEEDBACK_URL"),target:"_blank",rel:"noopener noreferrer"},"issue",8,ie)])]),_:1})):K("",!0),i(),t(h,{src:`/${c.params.mesh}/insights`},{default:e(({data:_})=>[t(X,{class:"policy-collection","data-testid":"policy-collection","empty-state-title":"No Data","empty-state-message":`There are no ${n.name} policies present.`,headers:[{label:"Name",key:"name"},{label:"Type",key:"type"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":p.page,"page-size":p.size,total:m==null?void 0:m.total,items:m==null?void 0:m.items,error:V,onChange:c.update},{toolbar:e(()=>[t(s(q),{label:"Policies",items:d.policies.map(a=>({label:a.name,value:a.path,selected:a.path===c.params.policyPath})),"label-attributes":{class:"visually-hidden"},appearance:"select","enable-filtering":!0,onSelected:a=>c.replace({name:"policies-list-view",params:{...c.params,policyPath:a.value}})},{"item-template":e(({item:a})=>{var w,g,$,C;return[r("span",{class:L({"policy-type-empty":!((g=(w=_==null?void 0:_.policies)==null?void 0:w[a.label])!=null&&g.total)})},y(a.label)+" ("+y(((C=($=_==null?void 0:_.policies)==null?void 0:$[a.label])==null?void 0:C.total)||"0")+`) `,3)]}),_:2},1032,["items","onSelected"]),i(),t(oe,{href:s(f)("policies.href.docs",{name:n.name.toLowerCase()}),"data-testid":"policy-documentation-link"},null,8,["href"])]),name:e(({row:a})=>[t(S,{to:{name:"policy-detail-view",params:{policy:a.name}}},{default:e(()=>[i(y(a.name),1)]),_:2},1032,["to"])]),type:e(({row:a})=>[i(y(a.type),1)]),actions:e(({row:a})=>[t(s(F),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(s(R),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s(M),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(U),{item:{to:{name:"policy-detail-view",params:{policy:a.name}},label:s(f)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-message","page-number","page-size","total","items","error","onChange"])]),_:2},1032,["src"])])]),_:2},1024)],2)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:2},1024)]),_:1})}}});const he=P(re,[["__scopeId","data-v-0683f714"]]);export{he as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js rename to app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js index 70c9f19c5945..7010ae602367 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js +++ b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js @@ -1,4 +1,4 @@ -import{_ as mn}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{C as xn}from"./TextWithCopyButton-6da2ac1e.js";import{_ as gn}from"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";import{g as An}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as vn,j as $,I as ae,o as yn,a as Cn,w as Q,h as te,B as _n,b as pe,g as wn,t as Sn}from"./index-4f1a7619.js";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Fe(e){return typeof e>"u"||e===null}function bn(e){return typeof e=="object"&&e!==null}function En(e){return Array.isArray(e)?e:Fe(e)?[]:[e]}function Fn(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;i"u"||e===null}function bn(e){return typeof e=="object"&&e!==null}function En(e){return Array.isArray(e)?e:Fe(e)?[]:[e]}function Fn(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;if&&(u=" ... ",n=l-f+u.length),i-l>f&&(o=" ...",i=l+f-o.length),{str:u+e.slice(n,i).replace(/\t/g,"→")+o,pos:l-n+u.length}}function X(e,n){return y.repeat(" ",n-e.length)+e}function Dn(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],r=[],u,o=-1;u=i.exec(e.buffer);)r.push(u.index),l.push(u.index+u[0].length),e.position<=u.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var f="",c,a,p=Math.min(e.line+n.linesAfter,r.length).toString().length,t=n.maxLength-(n.indent+p+3);for(c=1;c<=n.linesBefore&&!(o-c<0);c++)a=V(e.buffer,l[o-c],r[o-c],e.position-(l[o]-l[o-c]),t),f=y.repeat(" ",n.indent)+X((e.line-c+1).toString(),p)+" | "+a.str+` `+f;for(a=V(e.buffer,l[o],r[o],e.position,t),f+=y.repeat(" ",n.indent)+X((e.line+1).toString(),p)+" | "+a.str+` diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js rename to app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js index 8d281a572ab5..5adb1d0a0226 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js @@ -1 +1 @@ -import{R as n}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as s,ah as i,I as l,A as m,o as c,e as d,g as f,t as p,F as u,f as _}from"./index-4f1a7619.js";const h=s({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!1}},setup(a){const e=a,r=Symbol("route-title"),t=i(n);return typeof t<"u"&&(l(()=>e.title,o=>{o.length>0&&t.addTitle(o,r)},{immediate:!0}),m(()=>{t.removeTitle(r)})),(o,y)=>e.render?(c(),d(u,{key:0},[f(p(e.title),1)],64)):_("",!0)}});export{h as _}; +import{R as n}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as s,ah as i,I as l,A as m,o as c,e as d,g as f,t as p,F as u,f as _}from"./index-3a142bd5.js";const h=s({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!1}},setup(a){const e=a,r=Symbol("route-title"),t=i(n);return typeof t<"u"&&(l(()=>e.title,o=>{o.length>0&&t.addTitle(o,r)},{immediate:!0}),m(()=>{t.removeTitle(r)})),(o,y)=>e.render?(c(),d(u,{key:0},[f(p(e.title),1)],64)):_("",!0)}});export{h as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-6e394197.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js rename to app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-6e394197.js index 064aebc45710..6ec2cf7cc18e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-6e394197.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var ve=(i,t,e)=>t in i?Le(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var k=(i,t,e)=>(ve(i,typeof t!="symbol"?t+"":t,e),e);import{Z as Ve,_ as _1,d as q,o as E,a as g1,w as S,h as B,b,v as b2,g as C,z as w1,E as x7,q as u,a0 as b7,a1 as He,a2 as p2,a3 as we,a4 as Se,e as P,t as F,f as i1,j as c1,D as K2,X as y7,c as t1,r as L7,a5 as n1,H as J6,$ as ke,p as v7,m as V7,k as H7,y as Ae,a6 as w7,u as S7,n as q2,a7 as Oe,F as k7,s as A7,a8 as Ee,a9 as O7,aa as Ie,A as R6,I as P6,ab as w6,ac as E7,ad as tt,ae as Be,af as et,G as Ze,l as w2,ag as r1,C as De,ah as I7,ai as B7,aj as Re,J as Pe}from"./index-4f1a7619.js";const m1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e};function T6(){return Ve(_1.store)}const Te=u("p",null,"Loading data …",-1),Fe=q({__name:"LoadingBlock",setup(i){return(t,e)=>(E(),g1(b(x7),{"cta-is-hidden":"","data-testid":"loading-block"},{title:S(()=>[B(b(b2),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),C(),w1(t.$slots,"default",{},()=>[Te])]),_:3}))}}),[f6,$e,F6,Es,Is,Bs,k1,Ne,Zs]=b7(_1.env,_1.nav,_1.api,_1.store,_1.router,_1.bootstrap,_1.i18n,_1.logger,_1.dataSourcePool);function Ds(i){let t=[];i.networking.inbound&&(t=i.networking.inbound.filter(s=>"tags"in s).flatMap(s=>Object.entries(s.tags)).map(([s,n])=>`${s}=${n}`)),i.networking.gateway&&(t=Object.entries(i.networking.gateway.tags).map(([s,n])=>`${s}=${n}`));const e=Array.from(new Set(t));return e.sort((s,n)=>s.localeCompare(n)),e.map(s=>s.split("=")).map(([s,n])=>({label:s,value:n}))}function Z7(i={subscriptions:[]}){return(i.subscriptions??[]).some(e=>{var s;return((s=e.connectTime)==null?void 0:s.length)&&!e.disconnectTime})?"online":"offline"}function Rs(i,t={subscriptions:[]}){const e=i.networking.inbound??[],s=e.filter(o=>o.health&&!o.health.ready).map(o=>`Inbound on port ${o.port} is not ready (kuma.io/service: ${o.tags["kuma.io/service"]})`);let n;switch(!0){case e.length===0:n="online";break;case s.length===e.length:n="offline";break;case s.length>0:n="partially_degraded";break;default:n=Z7(t)}return{status:n,reason:s}}function Ps(i){if(i===void 0||i.subscriptions.length===0)return null;const t={},e=i.subscriptions[i.subscriptions.length-1];return e.version===void 0?null:(e.version.envoy&&(t.envoy=e.version.envoy.version),e.version.kumaDp&&(t.kumaDp=e.version.kumaDp.version),e.version.dependencies&&Object.entries(e.version.dependencies).forEach(([s,n])=>{t[s]=n}),t)}function Ts(i,t){if(i.dataplaneInsight===void 0||i.dataplaneInsight.mTLS===void 0)return null;const{mTLS:e}=i.dataplaneInsight,s=new Date(e.certificateExpirationTime),n=new Date(s.getTime()+s.getTimezoneOffset()*6e4);return{certificateExpirationTime:t(n.toISOString()),lastCertificateRegeneration:t(e.lastCertificateRegeneration),certificateRegenerations:e.certificateRegenerations}}function Fs(i){var s,n;return((s=i.kumaDp)==null?void 0:s.kumaCpCompatible)??!0?((n=i.envoy)==null?void 0:n.kumaDpCompatible)??!0?{kind:Ge}:{kind:Ue,payload:{envoy:i.envoy.version,kumaDp:i.kumaDp.version}}:{kind:ze,payload:{kumaDp:i.kumaDp.version}}}const Ge="COMPATIBLE",$s="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",Ns="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",ze="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",Ue="INCOMPATIBLE_UNSUPPORTED_ENVOY",Gs="INCOMPATIBLE_WRONG_FORMAT",je=q({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[He(t)]=this.$props[t];return p2("span",[we(this.$slots,"default")?p2("a",i,this.$slots.default()):p2("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;Se(()=>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=u("p",null,"Unable to reach the API",-1),Ye={key:0},Xe=q({__name:"AppErrorMessage",setup(i){const t=F6();return(e,s)=>(E(),g1(b(x7),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:S(()=>[B(b(b2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),We]),message:S(()=>[u("p",null,[C(` +var Le=Object.defineProperty;var ve=(i,t,e)=>t in i?Le(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var k=(i,t,e)=>(ve(i,typeof t!="symbol"?t+"":t,e),e);import{Z as Ve,_ as _1,d as q,o as E,a as g1,w as S,h as B,b,v as b2,g as C,z as w1,E as x7,q as u,a0 as b7,a1 as He,a2 as p2,a3 as we,a4 as Se,e as P,t as F,f as i1,j as c1,D as K2,X as y7,c as t1,r as L7,a5 as n1,H as J6,$ as ke,p as v7,m as V7,k as H7,y as Ae,a6 as w7,u as S7,n as q2,a7 as Oe,F as k7,s as A7,a8 as Ee,a9 as O7,aa as Ie,A as R6,I as P6,ab as w6,ac as E7,ad as tt,ae as Be,af as et,G as Ze,l as w2,ag as r1,C as De,ah as I7,ai as B7,aj as Re,J as Pe}from"./index-3a142bd5.js";const m1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e};function T6(){return Ve(_1.store)}const Te=u("p",null,"Loading data …",-1),Fe=q({__name:"LoadingBlock",setup(i){return(t,e)=>(E(),g1(b(x7),{"cta-is-hidden":"","data-testid":"loading-block"},{title:S(()=>[B(b(b2),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),C(),w1(t.$slots,"default",{},()=>[Te])]),_:3}))}}),[f6,$e,F6,Es,Is,Bs,k1,Ne,Zs]=b7(_1.env,_1.nav,_1.api,_1.store,_1.router,_1.bootstrap,_1.i18n,_1.logger,_1.dataSourcePool);function Ds(i){let t=[];i.networking.inbound&&(t=i.networking.inbound.filter(s=>"tags"in s).flatMap(s=>Object.entries(s.tags)).map(([s,n])=>`${s}=${n}`)),i.networking.gateway&&(t=Object.entries(i.networking.gateway.tags).map(([s,n])=>`${s}=${n}`));const e=Array.from(new Set(t));return e.sort((s,n)=>s.localeCompare(n)),e.map(s=>s.split("=")).map(([s,n])=>({label:s,value:n}))}function Z7(i={subscriptions:[]}){return(i.subscriptions??[]).some(e=>{var s;return((s=e.connectTime)==null?void 0:s.length)&&!e.disconnectTime})?"online":"offline"}function Rs(i,t={subscriptions:[]}){const e=i.networking.inbound??[],s=e.filter(o=>o.health&&!o.health.ready).map(o=>`Inbound on port ${o.port} is not ready (kuma.io/service: ${o.tags["kuma.io/service"]})`);let n;switch(!0){case e.length===0:n="online";break;case s.length===e.length:n="offline";break;case s.length>0:n="partially_degraded";break;default:n=Z7(t)}return{status:n,reason:s}}function Ps(i){if(i===void 0||i.subscriptions.length===0)return null;const t={},e=i.subscriptions[i.subscriptions.length-1];return e.version===void 0?null:(e.version.envoy&&(t.envoy=e.version.envoy.version),e.version.kumaDp&&(t.kumaDp=e.version.kumaDp.version),e.version.dependencies&&Object.entries(e.version.dependencies).forEach(([s,n])=>{t[s]=n}),t)}function Ts(i,t){if(i.dataplaneInsight===void 0||i.dataplaneInsight.mTLS===void 0)return null;const{mTLS:e}=i.dataplaneInsight,s=new Date(e.certificateExpirationTime),n=new Date(s.getTime()+s.getTimezoneOffset()*6e4);return{certificateExpirationTime:t(n.toISOString()),lastCertificateRegeneration:t(e.lastCertificateRegeneration),certificateRegenerations:e.certificateRegenerations}}function Fs(i){var s,n;return((s=i.kumaDp)==null?void 0:s.kumaCpCompatible)??!0?((n=i.envoy)==null?void 0:n.kumaDpCompatible)??!0?{kind:Ge}:{kind:Ue,payload:{envoy:i.envoy.version,kumaDp:i.kumaDp.version}}:{kind:ze,payload:{kumaDp:i.kumaDp.version}}}const Ge="COMPATIBLE",$s="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",Ns="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",ze="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",Ue="INCOMPATIBLE_UNSUPPORTED_ENVOY",Gs="INCOMPATIBLE_WRONG_FORMAT",je=q({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[He(t)]=this.$props[t];return p2("span",[we(this.$slots,"default")?p2("a",i,this.$slots.default()):p2("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;Se(()=>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=u("p",null,"Unable to reach the API",-1),Ye={key:0},Xe=q({__name:"AppErrorMessage",setup(i){const t=F6();return(e,s)=>(E(),g1(b(x7),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:S(()=>[B(b(b2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),We]),message:S(()=>[u("p",null,[C(` Please double check to make sure it is up and running `),b(t).baseUrl?(E(),P("span",Ye,[C(", and it is reachable at "),u("code",null,F(b(t).baseUrl),1)])):i1("",!0)])]),_:1}))}}),Ke={class:"upgrade-check"},qe={class:"alert-content"},Qe=q({__name:"UpgradeCheck",setup(i){const t=F6(),e=f6(),s=c1(""),n=c1(!1);r(e("KUMA_VERSION"));const o=(a,l)=>{const c=a.split("."),h=l.split(".");for(let d=0;d<3;d++){const f=Number(c[d]),p=Number(h[d]);if(f>p)return 1;if(p>f)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)=>(E(),P("div",Ke,[n.value?(E(),g1(b(y7),{key:0,class:"upgrade-check-alert",appearance:"warning",size:"small"},{alertMessage:S(()=>[u("div",qe,[u("div",null,F(b(e)("KUMA_PRODUCT_NAME"))+` update available `,1),C(),u("div",null,[B(b(K2),{class:"warning-button",appearance:"primary",size:"small",to:b(e)("KUMA_INSTALL_URL")},{default:S(()=>[C(` Update diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcdaffa2.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-ffcc3b00.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcdaffa2.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-ffcc3b00.js index de91517c727c..cb4f3eb36f4b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcdaffa2.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-ffcc3b00.js @@ -1,4 +1,4 @@ -import{d as V,c as v,r as F,o as s,a as c,w as i,q as x,g as t,h as l,t as f,f as p,e as k,F as q,b as y,G as L,s as I,L as N}from"./index-4f1a7619.js";import{D as E,a as b}from"./DefinitionListItem-61a9402d.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d17ca2da.js";import{S as O}from"./StatusBadge-999ac91c.js";import{T as G}from"./TagList-3d64abd1.js";import{T as J}from"./TextWithCopyButton-6da2ac1e.js";import{m as R,f as A,g as W,A as j,q as H,_ as M}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as C}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as Q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as U}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as X}from"./ErrorBlock-de349e30.js";import{D as Y,K as Z}from"./KFilterBar-b9d2d09c.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";import"./AppCollection-911959a1.js";import"./notEmpty-7f452b20.js";const D={class:"entity-section-list"},ee={class:"entity-title"},re=V({__name:"ServiceSummary",props:{service:{},externalService:{default:null}},setup(S){const e=S,_=R(),z=v(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),w=v(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),a=v(()=>{var o;return e.service.serviceType==="external"&&e.externalService!==null?(o=e.externalService.networking.tls)!=null&&o.enabled?"Enabled":"Disabled":null}),m=v(()=>{var o,u;if(e.service.serviceType==="external")return null;{const r=((o=e.service.dataplanes)==null?void 0:o.online)??0,T=((u=e.service.dataplanes)==null?void 0:u.total)??0;return`${r} online / ${T} total`}}),g=v(()=>e.service.serviceType==="external"?null:e.service.status??null),d=v(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function h(o){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:u,name:r}=e.externalService;return await _.getExternalService({mesh:u,name:r},o)}else{const{mesh:u,name:r}=e.service;return await _.getServiceInsight({mesh:u,name:r},o)}}return(o,u)=>{const r=F("router-link");return s(),c(y(L),null,{body:i(()=>[x("div",D,[x("section",null,[x("h1",ee,[x("span",null,[t(` +import{d as V,c as v,r as F,o as s,a as c,w as i,q as x,g as t,h as l,t as f,f as p,e as k,F as q,b as y,G as L,s as I,L as N}from"./index-3a142bd5.js";import{D as E,a as b}from"./DefinitionListItem-e3979580.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-e2c3b52a.js";import{S as O}from"./StatusBadge-c54fa150.js";import{T as G}from"./TagList-5a70d5cd.js";import{T as J}from"./TextWithCopyButton-5cda1463.js";import{m as R,f as A,g as W,A as j,q as H,_ as M}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as C}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as Q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as U}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as X}from"./ErrorBlock-bfc4eea4.js";import{D as Y,K as Z}from"./KFilterBar-b7134331.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";import"./AppCollection-7dd9601e.js";import"./notEmpty-7f452b20.js";const D={class:"entity-section-list"},ee={class:"entity-title"},re=V({__name:"ServiceSummary",props:{service:{},externalService:{default:null}},setup(S){const e=S,_=R(),z=v(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),w=v(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),a=v(()=>{var o;return e.service.serviceType==="external"&&e.externalService!==null?(o=e.externalService.networking.tls)!=null&&o.enabled?"Enabled":"Disabled":null}),m=v(()=>{var o,u;if(e.service.serviceType==="external")return null;{const r=((o=e.service.dataplanes)==null?void 0:o.online)??0,T=((u=e.service.dataplanes)==null?void 0:u.total)??0;return`${r} online / ${T} total`}}),g=v(()=>e.service.serviceType==="external"?null:e.service.status??null),d=v(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function h(o){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:u,name:r}=e.externalService;return await _.getExternalService({mesh:u,name:r},o)}else{const{mesh:u,name:r}=e.service;return await _.getServiceInsight({mesh:u,name:r},o)}}return(o,u)=>{const r=F("router-link");return s(),c(y(L),null,{body:i(()=>[x("div",D,[x("section",null,[x("h1",ee,[x("span",null,[t(` Service: `),l(J,{text:e.service.name},{default:i(()=>[l(r,{to:z.value},{default:i(()=>[t(f(e.service.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),t(),g.value?(s(),c(O,{key:0,status:g.value},null,8,["status"])):p("",!0)]),t(),l(E,{class:"mt-4"},{default:i(()=>[l(b,{term:"Address"},{default:i(()=>[w.value!==null?(s(),k(q,{key:0},[t(f(w.value),1)],64)):(s(),k(q,{key:1},[t(` diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-4ebd439a.js b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-52fdaf87.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/ServiceListView-4ebd439a.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceListView-52fdaf87.js index f07cc50bc2d0..009ad07fcc08 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-4ebd439a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-52fdaf87.js @@ -1 +1 @@ -import{d as f,r as g,o as c,a as u,w as t,h as a,q as b,b as s,g as i,G as k,t as l,e as m,F as p,$ as w,D as h,v as x,H as S}from"./index-4f1a7619.js";import{A as z}from"./AppCollection-911959a1.js";import{g as C,A as $,_ as A,f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as B}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as L}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{S as V}from"./StatusBadge-999ac91c.js";import{T as N}from"./TextWithCopyButton-6da2ac1e.js";const D=f({__name:"ServiceListView",props:{page:{},size:{},mesh:{}},setup(_){const r=_,{t:o}=C();return(P,E)=>{const d=g("RouterLink");return c(),u(A,{name:"services-list-view"},{default:t(({route:v})=>[a(B,{src:`/${r.mesh}/service-insights?page=${r.page}&size=${r.size}`},{default:t(({data:n,error:y})=>[a($,null,{title:t(()=>[b("h2",null,[a(L,{title:s(o)("services.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[i(),a(s(k),null,{body:t(()=>[a(z,{class:"service-collection","data-testid":"service-collection","empty-state-title":s(o)("common.emptyState.title"),"empty-state-message":s(o)("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"DP proxies (online / total)",key:"online"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":r.page,"page-size":r.size,total:n==null?void 0:n.total,items:n==null?void 0:n.items,error:y,onChange:v.update},{name:t(({row:e})=>[a(d,{to:{name:"service-detail-view",params:{service:e.name}}},{default:t(()=>[i(l(e.name),1)]),_:2},1032,["to"])]),serviceType:t(({rowValue:e})=>[i(l(e||s(o)("common.collection.none")),1)]),addressPort:t(({rowValue:e})=>[e?(c(),u(N,{key:0,text:e},null,8,["text"])):(c(),m(p,{key:1},[i(l(s(o)("common.collection.none")),1)],64))]),online:t(({row:e})=>[e.dataplanes?(c(),m(p,{key:0},[i(l(e.dataplanes.online||0)+" / "+l(e.dataplanes.total||0),1)],64)):(c(),m(p,{key:1},[i(l(s(o)("common.collection.none")),1)],64))]),status:t(({row:e})=>[a(V,{status:e.status||"not_available"},null,8,["status"])]),actions:t(({row:e})=>[a(s(w),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[a(s(h),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[a(s(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[a(s(S),{item:{to:{name:"service-detail-view",params:{service:e.name}},label:s(o)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-title","empty-state-message","headers","page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1})}}});const j=T(D,[["__scopeId","data-v-3f20e8ec"]]);export{j as default}; +import{d as f,r as g,o as c,a as u,w as t,h as a,q as b,b as s,g as i,G as k,t as l,e as m,F as p,$ as w,D as h,v as x,H as S}from"./index-3a142bd5.js";import{A as z}from"./AppCollection-7dd9601e.js";import{g as C,A as $,_ as A,f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as B}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as L}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{S as V}from"./StatusBadge-c54fa150.js";import{T as N}from"./TextWithCopyButton-5cda1463.js";const D=f({__name:"ServiceListView",props:{page:{},size:{},mesh:{}},setup(_){const r=_,{t:o}=C();return(P,E)=>{const d=g("RouterLink");return c(),u(A,{name:"services-list-view"},{default:t(({route:v})=>[a(B,{src:`/${r.mesh}/service-insights?page=${r.page}&size=${r.size}`},{default:t(({data:n,error:y})=>[a($,null,{title:t(()=>[b("h2",null,[a(L,{title:s(o)("services.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[i(),a(s(k),null,{body:t(()=>[a(z,{class:"service-collection","data-testid":"service-collection","empty-state-title":s(o)("common.emptyState.title"),"empty-state-message":s(o)("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"DP proxies (online / total)",key:"online"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":r.page,"page-size":r.size,total:n==null?void 0:n.total,items:n==null?void 0:n.items,error:y,onChange:v.update},{name:t(({row:e})=>[a(d,{to:{name:"service-detail-view",params:{service:e.name}}},{default:t(()=>[i(l(e.name),1)]),_:2},1032,["to"])]),serviceType:t(({rowValue:e})=>[i(l(e||s(o)("common.collection.none")),1)]),addressPort:t(({rowValue:e})=>[e?(c(),u(N,{key:0,text:e},null,8,["text"])):(c(),m(p,{key:1},[i(l(s(o)("common.collection.none")),1)],64))]),online:t(({row:e})=>[e.dataplanes?(c(),m(p,{key:0},[i(l(e.dataplanes.online||0)+" / "+l(e.dataplanes.total||0),1)],64)):(c(),m(p,{key:1},[i(l(s(o)("common.collection.none")),1)],64))]),status:t(({row:e})=>[a(V,{status:e.status||"not_available"},null,8,["status"])]),actions:t(({row:e})=>[a(s(w),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[a(s(h),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[a(s(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[a(s(S),{item:{to:{name:"service-detail-view",params:{service:e.name}},label:s(o)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-title","empty-state-message","headers","page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:1})}}});const j=T(D,[["__scopeId","data-v-3f20e8ec"]]);export{j as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-999ac91c.js b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-c54fa150.js similarity index 78% rename from app/kuma-ui/pkg/resources/data/assets/StatusBadge-999ac91c.js rename to app/kuma-ui/pkg/resources/data/assets/StatusBadge-c54fa150.js index 7cb31d9b5dad..c6cbf6ea5069 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-999ac91c.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-c54fa150.js @@ -1 +1 @@ -import{d as o,o as r,a as c,w as p,g as _,t as u,b as t,R as d}from"./index-4f1a7619.js";import{g as i,f as l}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const f=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(e){const a=e,s=i(),n={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral"};return(g,m)=>(r(),c(t(d),{class:"status",appearance:n[a.status],"data-testid":"status-badge"},{default:p(()=>[_(u(t(s).t(`http.api.value.${a.status}`)),1)]),_:1},8,["appearance"]))}});const S=l(f,[["__scopeId","data-v-f2a9bce6"]]);export{S}; +import{d as o,o as r,a as c,w as p,g as _,t as u,b as t,R as d}from"./index-3a142bd5.js";import{g as i,f as l}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const f=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(e){const a=e,s=i(),n={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral"};return(g,m)=>(r(),c(t(d),{class:"status",appearance:n[a.status],"data-testid":"status-badge"},{default:p(()=>[_(u(t(s).t(`http.api.value.${a.status}`)),1)]),_:1},8,["appearance"]))}});const S=l(f,[["__scopeId","data-v-f2a9bce6"]]);export{S}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js rename to app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js index acb9358d04cb..54959f6a36bd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js @@ -1 +1 @@ -import{_ as l}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as s}from"./ErrorBlock-de349e30.js";import{q as n}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as f,o as r,e as a,a as o,z as i}from"./index-4f1a7619.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-363ede6e.js";import{E as s}from"./ErrorBlock-bfc4eea4.js";import{q as n}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as f,o as r,e as a,a as o,z as i}from"./index-3a142bd5.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/SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js rename to app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js index 987a24de2e61..ce99e8f8f1f4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js +++ b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js @@ -1,4 +1,4 @@ -import{d as A,ah as C,j as $,c as B,o as n,e as r,q as y,z as x,g as s,h as g,w as d,f as p,T as E,n as j,ai as q,a as f,b as c,t as u,F as k,s as D,v as N,X as V,p as H,m as P}from"./index-4f1a7619.js";import{f as O,g as w}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{a as _,D as L}from"./DefinitionListItem-61a9402d.js";const M=["aria-expanded"],z={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},F=A({__name:"AccordionItem",setup(t){const e=C("parentAccordion"),a=$(null),l=B(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.includes(a.value):a.value===e.active.value);e!==void 0&&(a.value=e.count.value++);function m(){l.value?h():T()}function h(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.splice(e.active.value.indexOf(a.value),1):e.active.value=null)}function T(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.push(a.value):e.active.value=a.value)}function o(i){i instanceof HTMLElement&&(i.style.height=`${i.scrollHeight}px`)}function v(i){i instanceof HTMLElement&&(i.style.height="auto")}return(i,I)=>(n(),r("li",{class:j(["accordion-item",{active:l.value}])},[y("button",{class:"accordion-item-header",type:"button","aria-expanded":l.value?"true":"false","data-testid":"accordion-item-button",onClick:m},[x(i.$slots,"accordion-header",{},void 0,!0)],8,M),s(),g(E,{name:"accordion",onEnter:o,onAfterEnter:v,onBeforeLeave:o},{default:d(()=>[l.value?(n(),r("div",z,[x(i.$slots,"accordion-content",{},void 0,!0)])):p("",!0)]),_:3})],2))}});const se=O(F,[["__scopeId","data-v-dfd99690"]]),X={class:"accordion-list"},G=A({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,a=$(0),l=$(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return q("parentAccordion",{multipleOpen:e.multipleOpen,active:l,count:a}),(m,h)=>(n(),r("ul",X,[x(m.$slots,"default",{},void 0,!0)]))}});const oe=O(G,[["__scopeId","data-v-53d92d22"]]),U=t=>(H("data-v-ab525cda"),t=t(),P(),t),J={key:0},K=U(()=>y("h5",{class:"overview-tertiary-title"},` +import{d as A,ah as C,j as $,c as B,o as n,e as r,q as y,z as x,g as s,h as g,w as d,f as p,T as E,n as j,ai as q,a as f,b as c,t as u,F as k,s as D,v as N,X as V,p as H,m as P}from"./index-3a142bd5.js";import{f as O,g as w}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{a as _,D as L}from"./DefinitionListItem-e3979580.js";const M=["aria-expanded"],z={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},F=A({__name:"AccordionItem",setup(t){const e=C("parentAccordion"),a=$(null),l=B(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.includes(a.value):a.value===e.active.value);e!==void 0&&(a.value=e.count.value++);function m(){l.value?h():T()}function h(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.splice(e.active.value.indexOf(a.value),1):e.active.value=null)}function T(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&a.value!==null?e.active.value.push(a.value):e.active.value=a.value)}function o(i){i instanceof HTMLElement&&(i.style.height=`${i.scrollHeight}px`)}function v(i){i instanceof HTMLElement&&(i.style.height="auto")}return(i,I)=>(n(),r("li",{class:j(["accordion-item",{active:l.value}])},[y("button",{class:"accordion-item-header",type:"button","aria-expanded":l.value?"true":"false","data-testid":"accordion-item-button",onClick:m},[x(i.$slots,"accordion-header",{},void 0,!0)],8,M),s(),g(E,{name:"accordion",onEnter:o,onAfterEnter:v,onBeforeLeave:o},{default:d(()=>[l.value?(n(),r("div",z,[x(i.$slots,"accordion-content",{},void 0,!0)])):p("",!0)]),_:3})],2))}});const se=O(F,[["__scopeId","data-v-dfd99690"]]),X={class:"accordion-list"},G=A({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,a=$(0),l=$(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return q("parentAccordion",{multipleOpen:e.multipleOpen,active:l,count:a}),(m,h)=>(n(),r("ul",X,[x(m.$slots,"default",{},void 0,!0)]))}});const oe=O(G,[["__scopeId","data-v-53d92d22"]]),U=t=>(H("data-v-ab525cda"),t=t(),P(),t),J={key:0},K=U(()=>y("h5",{class:"overview-tertiary-title"},` General Information: `,-1)),Q={key:1,class:"columns mt-4",style:{"--columns":"4"}},R={key:0},W={class:"overview-tertiary-title"},Y=A({__name:"SubscriptionDetails",props:{details:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(t){const e=t,{t:a,formatIsoDate:l}=w(),m=B(()=>{var v,i;let o;if(e.isDiscoverySubscription){const{lastUpdateTime:I,total:S,...b}=e.details.status;o=b}return(v=e.details.status)!=null&&v.stat&&(o=(i=e.details.status)==null?void 0:i.stat),o});function h(o){return o?parseInt(o,10).toLocaleString("en").toString():"0"}function T(o){return o==="--"?"error calculating":o}return(o,v)=>(n(),r("div",null,[t.details.globalInstanceId||t.details.controlPlaneInstanceId||t.details.connectTime||t.details.disconnectTime?(n(),r("div",J,[K,s(),g(L,null,{default:d(()=>[t.details.globalInstanceId?(n(),f(_,{key:0,term:c(a)("http.api.property.globalInstanceId")},{default:d(()=>[s(u(t.details.globalInstanceId),1)]),_:1},8,["term"])):p("",!0),s(),t.details.controlPlaneInstanceId?(n(),f(_,{key:1,term:c(a)("http.api.property.controlPlaneInstanceId")},{default:d(()=>[s(u(t.details.controlPlaneInstanceId),1)]),_:1},8,["term"])):p("",!0),s(),t.details.connectTime?(n(),f(_,{key:2,term:c(a)("http.api.property.connectTime")},{default:d(()=>[s(u(c(l)(t.details.connectTime)),1)]),_:1},8,["term"])):p("",!0),s(),t.details.disconnectTime?(n(),f(_,{key:3,term:c(a)("http.api.property.disconnectTime")},{default:d(()=>[s(u(c(l)(t.details.disconnectTime)),1)]),_:1},8,["term"])):p("",!0)]),_:1})])):p("",!0),s(),m.value?(n(),r("div",Q,[(n(!0),r(k,null,D(m.value,(i,I)=>(n(),r(k,{key:I},[Object.keys(i).length>0?(n(),r("div",R,[y("h6",W,u(c(a)(`http.api.property.${I}`))+`: `,1),s(),g(L,null,{default:d(()=>[(n(!0),r(k,null,D(i,(S,b)=>(n(),f(_,{key:b,term:c(a)(`http.api.property.${b}`)},{default:d(()=>[s(u(T(h(S))),1)]),_:2},1032,["term"]))),128))]),_:2},1024)])):p("",!0)],64))),128))])):(n(),f(c(V),{key:2,appearance:"info",class:"mt-4"},{alertIcon:d(()=>[g(c(N),{icon:"portal"})]),alertMessage:d(()=>[s(` diff --git a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-c7bce8f4.js b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-47bb7647.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/TabsWidget-c7bce8f4.js rename to app/kuma-ui/pkg/resources/data/assets/TabsWidget-47bb7647.js index fc524d476ed5..cccf86b3aa01 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-c7bce8f4.js +++ b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-47bb7647.js @@ -1 +1 @@ -import{d as w,j as B,c as q,o as s,e as l,a as p,F as S,z as h,f as T,g as m,q as u,h as i,B as k,s as E,w as d,b as c,G as V,v as L,V as $,a7 as x,p as C,m as N}from"./index-4f1a7619.js";import{E as P}from"./ErrorBlock-de349e30.js";import{J as I,q as W,f as A}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const b={get(e){const a=new URL(window.location.href).searchParams.get(e);return a!==null?a.replaceAll("+"," "):null},set(e,r){const a=new URL(window.location.href);r!=null?a.searchParams.set(e,String(r).replace(/\s/g,"+")):a.searchParams.has(e)&&a.searchParams.delete(e),window.history.replaceState({path:a.href},"",a.href)}},O=e=>(C("data-v-4cf998d3"),e=e(),N(),e),U={class:"tab-container","data-testid":"tab-container"},z={key:0,class:"tab__header"},F={class:"tab__content-container"},G={class:"flex items-center with-warnings"},H=O(()=>u("span",null,"Warnings",-1)),J=w({__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(e,{emit:r}){const a=e,g=I(),o=B(""),_=q(()=>a.tabs.map(t=>t.hash.replace("#","")));function y(){const t=b.get("tab");t!==null?o.value=`#${t}`:a.initialTabOverride!==null&&(o.value=`#${a.initialTabOverride}`)}y();function v(t){b.set("tab",t.substring(1)),g.info(x.TABS_TAB_CHANGE,{data:{newActiveTabHash:t}}),r("on-tab-change",t)}return(t,f)=>(s(),l("div",U,[e.isLoading?(s(),p(W,{key:0})):e.error!==null?(s(),p(P,{key:1,error:e.error},null,8,["error"])):(s(),l(S,{key:2},[t.$slots.tabHeader?(s(),l("header",z,[h(t.$slots,"tabHeader",{},void 0,!0)])):T("",!0),m(),u("div",F,[i(c($),{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=n=>o.value=n),tabs:e.tabs,onChanged:v},k({"warnings-anchor":d(()=>[u("span",G,[i(c(L),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),m(),H])]),_:2},[E(_.value,(n,R)=>({name:n,fn:d(()=>[i(c(V),{"border-variant":"noBorder"},{body:d(()=>[h(t.$slots,n,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const K=A(J,[["__scopeId","data-v-4cf998d3"]]);export{K as T}; +import{d as w,j as B,c as q,o as s,e as l,a as p,F as S,z as h,f as T,g as m,q as u,h as i,B as k,s as E,w as d,b as c,G as V,v as L,V as $,a7 as x,p as C,m as N}from"./index-3a142bd5.js";import{E as P}from"./ErrorBlock-bfc4eea4.js";import{J as I,q as W,f as A}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const b={get(e){const a=new URL(window.location.href).searchParams.get(e);return a!==null?a.replaceAll("+"," "):null},set(e,r){const a=new URL(window.location.href);r!=null?a.searchParams.set(e,String(r).replace(/\s/g,"+")):a.searchParams.has(e)&&a.searchParams.delete(e),window.history.replaceState({path:a.href},"",a.href)}},O=e=>(C("data-v-4cf998d3"),e=e(),N(),e),U={class:"tab-container","data-testid":"tab-container"},z={key:0,class:"tab__header"},F={class:"tab__content-container"},G={class:"flex items-center with-warnings"},H=O(()=>u("span",null,"Warnings",-1)),J=w({__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(e,{emit:r}){const a=e,g=I(),o=B(""),_=q(()=>a.tabs.map(t=>t.hash.replace("#","")));function y(){const t=b.get("tab");t!==null?o.value=`#${t}`:a.initialTabOverride!==null&&(o.value=`#${a.initialTabOverride}`)}y();function v(t){b.set("tab",t.substring(1)),g.info(x.TABS_TAB_CHANGE,{data:{newActiveTabHash:t}}),r("on-tab-change",t)}return(t,f)=>(s(),l("div",U,[e.isLoading?(s(),p(W,{key:0})):e.error!==null?(s(),p(P,{key:1,error:e.error},null,8,["error"])):(s(),l(S,{key:2},[t.$slots.tabHeader?(s(),l("header",z,[h(t.$slots,"tabHeader",{},void 0,!0)])):T("",!0),m(),u("div",F,[i(c($),{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=n=>o.value=n),tabs:e.tabs,onChanged:v},k({"warnings-anchor":d(()=>[u("span",G,[i(c(L),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),m(),H])]),_:2},[E(_.value,(n,R)=>({name:n,fn:d(()=>[i(c(V),{"border-variant":"noBorder"},{body:d(()=>[h(t.$slots,n,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const K=A(J,[["__scopeId","data-v-4cf998d3"]]);export{K as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TagList-3d64abd1.js b/app/kuma-ui/pkg/resources/data/assets/TagList-5a70d5cd.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/TagList-3d64abd1.js rename to app/kuma-ui/pkg/resources/data/assets/TagList-5a70d5cd.js index 07878cb17ee2..39e305428df2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TagList-3d64abd1.js +++ b/app/kuma-ui/pkg/resources/data/assets/TagList-5a70d5cd.js @@ -1 +1 @@ -import{d as f,u as b,J as g,c as y,o as r,e as i,F as h,s as k,a as l,w as p,i as x,g as L,t as m,q as w,b as R,R as T}from"./index-4f1a7619.js";import{f as B}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},j=f({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=b(),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(),i("span",C,[(r(!0),i(h,null,k(_.value,(t,u)=>(r(),l(R(T),{key:u,class:"tag-badge"},{default:p(()=>[(r(),l(x(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[L(m(t.label)+":",1),w("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const D=B(j,[["__scopeId","data-v-2e356c8b"]]);export{D as T}; +import{d as f,u as b,J as g,c as y,o as r,e as i,F as h,s as k,a as l,w as p,i as x,g as L,t as m,q as w,b as R,R as T}from"./index-3a142bd5.js";import{f as B}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},j=f({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=b(),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(),i("span",C,[(r(!0),i(h,null,k(_.value,(t,u)=>(r(),l(R(T),{key:u,class:"tag-badge"},{default:p(()=>[(r(),l(x(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[L(m(t.label)+":",1),w("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const D=B(j,[["__scopeId","data-v-2e356c8b"]]);export{D as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6da2ac1e.js b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-5cda1463.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6da2ac1e.js rename to app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-5cda1463.js index 35a16e2b00df..7127d05414e1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-6da2ac1e.js +++ b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-5cda1463.js @@ -1 +1 @@ -import{d as y,o as u,a as _,w as p,h as r,b as a,D as m,v as g,g as d,z as f,q as C,t as x,an as S,e as h,i as v}from"./index-4f1a7619.js";import{f as T,g as B}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const b={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 n(s,i){const e=s.currentTarget;let o=!1;try{const c=t.getText?await t.getText():t.text;o=await i(c)}catch{o=!1}finally{const c=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",c),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(u(),_(a(S),null,{default:p(({copyToClipboard:e})=>[r(a(m),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>n(o,e)},{default:p(()=>[r(a(g),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[C("span",b,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const w=T(q,[["__scopeId","data-v-607973c1"]]),k={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,n=B();return(s,i)=>(u(),h("div",k,[f(s.$slots,"default",{},()=>[(u(),_(v(t.tag),null,{default:p(()=>[d(x(t.text),1)]),_:1}))],!0),d(),r(w,{text:t.text,"copy-text":a(n).t("common.copyText"),"tooltip-success-text":a(n).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const z=T(F,[["__scopeId","data-v-069e891c"]]);export{w as C,z as T}; +import{d as y,o as u,a as _,w as p,h as r,b as a,D as m,v as g,g as d,z as f,q as C,t as x,an as S,e as h,i as v}from"./index-3a142bd5.js";import{f as T,g as B}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const b={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 n(s,i){const e=s.currentTarget;let o=!1;try{const c=t.getText?await t.getText():t.text;o=await i(c)}catch{o=!1}finally{const c=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",c),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(u(),_(a(S),null,{default:p(({copyToClipboard:e})=>[r(a(m),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>n(o,e)},{default:p(()=>[r(a(g),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[C("span",b,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const w=T(q,[["__scopeId","data-v-607973c1"]]),k={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,n=B();return(s,i)=>(u(),h("div",k,[f(s.$slots,"default",{},()=>[(u(),_(v(t.tag),null,{default:p(()=>[d(x(t.text),1)]),_:1}))],!0),d(),r(w,{text:t.text,"copy-text":a(n).t("common.copyText"),"tooltip-success-text":a(n).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const z=T(F,[["__scopeId","data-v-069e891c"]]);export{w as C,z as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-67da292d.js b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-cf0c130d.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-67da292d.js rename to app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-cf0c130d.js index 5d0a97577093..71d3eac41a92 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-67da292d.js +++ b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-cf0c130d.js @@ -1,4 +1,4 @@ -import{d as l,o as a,e as r,t,g as n,q as o,F as _,s as d,h as m,w as y,a as g,i as P,b as f,X as h,f as C}from"./index-4f1a7619.js";import{E as D,y as N,F as O,G as b}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const E=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(s,u)=>(a(),r("span",null,t(e.payload),1))}}),I=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(s,u)=>(a(),r("span",null,[n(` +import{d as l,o as a,e as r,t,g as n,q as o,F as _,s as d,h as m,w as y,a as g,i as P,b as f,X as h,f as C}from"./index-3a142bd5.js";import{E as D,y as N,F as O,G as b}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const E=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(s,u)=>(a(),r("span",null,t(e.payload),1))}}),I=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(s,u)=>(a(),r("span",null,[n(` Envoy (`),o("strong",null,t(e.payload.envoy),1),n(") is unsupported by the current version of Kuma DP ("),o("strong",null,t(e.payload.kumaDp),1),n(") [Requirements: "),o("strong",null,t(e.payload.requirements),1),n(`]. `)]))}}),A=l({__name:"WarningUnsupportedKumaDPVersion",props:{payload:{type:Object,required:!0}},setup(e){return(s,u)=>(a(),r("span",null,[n(` Unsupported version of Kuma DP (`),o("strong",null,t(e.payload.kumaDp),1),n(`) diff --git a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-266547ff.js b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-c2e746ac.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/WelcomeView-266547ff.js rename to app/kuma-ui/pkg/resources/data/assets/WelcomeView-c2e746ac.js index b79e3bd80882..042872c41ff6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-266547ff.js +++ b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-c2e746ac.js @@ -1,4 +1,4 @@ -import{d as _,j as V,k as x,o as v,e as u,g as a,n as S,l as g,p as f,m as M,q as t,c as p,a as m,w as d,h as s,b as i,t as r,F as L,s as A,v as C,f as W}from"./index-4f1a7619.js";import{O as $,a as H,b as I}from"./OnboardingPage-587e62e3.js";import{f as y,e as N,g as O,A as B,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";const z=e=>(f("data-v-4b67edd8"),e=e(),M(),e),F=z(()=>t("defs",null,null,-1)),E=g(' ',1),T=g('
',1),q=_({__name:"WelcomeAnimationSvg",setup(e){const n=V(!1);return x(function(){window.setTimeout(()=>{n.value=!0},30)}),(o,b)=>(v(),u("svg",{class:S(["background svg",{active:n.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),E,a(),T],2))}});const D=y(q,[["__scopeId","data-v-4b67edd8"]]),w=e=>(f("data-v-9bb5c146"),e=e(),M(),e),P=w(()=>t("strong",null,"few minutes",-1)),R=w(()=>t("h2",{class:"text-center"},` +import{d as _,j as V,k as x,o as v,e as u,g as a,n as S,l as g,p as f,m as M,q as t,c as p,a as m,w as d,h as s,b as i,t as r,F as L,s as A,v as C,f as W}from"./index-3a142bd5.js";import{O as $,a as H,b as I}from"./OnboardingPage-4256e18b.js";import{f as y,e as N,g as O,A as B,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";const z=e=>(f("data-v-4b67edd8"),e=e(),M(),e),F=z(()=>t("defs",null,null,-1)),E=g(' ',1),T=g('
',1),q=_({__name:"WelcomeAnimationSvg",setup(e){const n=V(!1);return x(function(){window.setTimeout(()=>{n.value=!0},30)}),(o,b)=>(v(),u("svg",{class:S(["background svg",{active:n.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),E,a(),T],2))}});const D=y(q,[["__scopeId","data-v-4b67edd8"]]),w=e=>(f("data-v-9bb5c146"),e=e(),M(),e),P=w(()=>t("strong",null,"few minutes",-1)),R=w(()=>t("h2",{class:"text-center"},` Let’s get started: `,-1)),U={class:"item-status-list-wrapper"},Y={class:"item-status-list"},J={class:"circle mr-2"},K=_({__name:"WelcomeView",setup(e){const n=N(),{t:o}=O(),b=p(()=>{const l=n.getters["config/getEnvironment"];return l.charAt(0).toUpperCase()+l.slice(1)}),h=p(()=>n.getters["config/getMulticlusterStatus"]),k=p(()=>[{name:`Run ${o("common.product.name")} control plane`,status:!0},{name:"Learn about deployments",status:!1},{name:"Learn about configuration storage",status:!1},...h.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,Q)=>(v(),m(G,null,{default:d(()=>[s(j,{title:i(o)("onboarding.routes.welcome.title",{name:i(o)("common.product.name")})},null,8,["title"]),a(),s(B,null,{default:d(()=>[t("div",null,[s($,null,{header:d(()=>[s(H,null,{title:d(()=>[a(` Welcome to `+r(i(o)("common.product.name")),1)]),description:d(()=>[t("p",null,[a(` diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-2f5ca0d0.js b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-df6114e6.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-2f5ca0d0.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-df6114e6.js index 7c10d9b58d08..a665794f4cea 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-2f5ca0d0.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-df6114e6.js @@ -1,4 +1,4 @@ -import{d as V,j as m,k as R,A as j,o as z,e as Z,q as t,h as r,w as l,a as E,b as e,v as A,g as n,z as w,E as H,u as F,c as C,t as o,p as Q,m as G,D,P as J,Q as W,B as X,f as T,x as B,F as Y,S as U,U as ee}from"./index-4f1a7619.js";import{_ as y}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{z as ne,g as N,e as K,f as L,m as te,A as oe,_ as se,n as ae}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as re}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{E as le}from"./ErrorBlock-de349e30.js";const ue={class:"scanner"},ie={class:"scanner-content"},ce={class:"mb-2"},de=V({__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(p,{emit:s}){const u=p,a=m(0),i=m(!1),_=m(!1),k=m(null);R(function(){c()}),j(function(){v()});function c(){i.value=!0,_.value=!1,v(),k.value=window.setInterval(async()=>{a.value++,await u.loaderFunction(),(a.value===u.retries||u.canComplete===!0)&&(v(),i.value=!1,_.value=!0,s("hide-siblings",!0))},u.interval)}function v(){k.value!==null&&window.clearInterval(k.value)}return(g,f)=>(z(),Z("div",ue,[t("div",ie,[r(e(H),{"cta-is-hidden":""},{title:l(()=>[t("div",ce,[i.value?(z(),E(e(A),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):p.hasError?(z(),E(e(A),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(z(),E(e(A),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),n(),i.value?w(g.$slots,"loading-title",{key:0}):p.hasError?w(g.$slots,"error-title",{key:1}):w(g.$slots,"complete-title",{key:2})]),message:l(()=>[i.value?w(g.$slots,"loading-content",{key:0}):p.hasError?w(g.$slots,"error-content",{key:1}):w(g.$slots,"complete-content",{key:2})]),_:3})])]))}}),me=p=>(Q("data-v-293c555d"),p=p(),G(),p),pe={href:"https://helm.sh/docs/intro/install/"},ve=me(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),fe={class:"k-input-label mt-4"},be={class:"mt-4"},ze=V({__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(p){const s=p,u=ne(),a=N(),i=F(),_=K(),k=C(()=>a.t("zones.form.kubernetes.secret.createSecretCommand",{token:s.base64EncodedToken}).trim()),c=C(()=>{const v={zoneName:s.zoneName,globalKdsAddress:_.state.globalKdsAddress,zoneIngressEnabled:String(s.zoneIngressEnabled),zoneEgressEnabled:String(s.zoneEgressEnabled)};return typeof i.params.virtualControlPlaneId=="string"&&(v.controlPlaneId=i.params.virtualControlPlaneId),a.t("zones.form.kubernetes.connectZone.config",v).trim()});return(v,g)=>(z(),Z("div",null,[t("h3",null,"1. "+o(e(a).t("zones.form.kubernetes.prerequisites.title")),1),n(),t("ul",null,[t("li",null,[t("b",null,o(e(a).t("zones.form.kubernetes.prerequisites.step1Label"))+o(s.zoneIngressEnabled?" "+e(a).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: +import{d as V,j as m,k as R,A as j,o as z,e as Z,q as t,h as r,w as l,a as E,b as e,v as A,g as n,z as w,E as H,u as F,c as C,t as o,p as Q,m as G,D,P as J,Q as W,B as X,f as T,x as B,F as Y,S as U,U as ee}from"./index-3a142bd5.js";import{_ as y}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{z as ne,g as N,e as K,f as L,m as te,A as oe,_ as se,n as ae}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as re}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{E as le}from"./ErrorBlock-bfc4eea4.js";const ue={class:"scanner"},ie={class:"scanner-content"},ce={class:"mb-2"},de=V({__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(p,{emit:s}){const u=p,a=m(0),i=m(!1),_=m(!1),k=m(null);R(function(){c()}),j(function(){v()});function c(){i.value=!0,_.value=!1,v(),k.value=window.setInterval(async()=>{a.value++,await u.loaderFunction(),(a.value===u.retries||u.canComplete===!0)&&(v(),i.value=!1,_.value=!0,s("hide-siblings",!0))},u.interval)}function v(){k.value!==null&&window.clearInterval(k.value)}return(g,f)=>(z(),Z("div",ue,[t("div",ie,[r(e(H),{"cta-is-hidden":""},{title:l(()=>[t("div",ce,[i.value?(z(),E(e(A),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):p.hasError?(z(),E(e(A),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(z(),E(e(A),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),n(),i.value?w(g.$slots,"loading-title",{key:0}):p.hasError?w(g.$slots,"error-title",{key:1}):w(g.$slots,"complete-title",{key:2})]),message:l(()=>[i.value?w(g.$slots,"loading-content",{key:0}):p.hasError?w(g.$slots,"error-content",{key:1}):w(g.$slots,"complete-content",{key:2})]),_:3})])]))}}),me=p=>(Q("data-v-293c555d"),p=p(),G(),p),pe={href:"https://helm.sh/docs/intro/install/"},ve=me(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),fe={class:"k-input-label mt-4"},be={class:"mt-4"},ze=V({__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(p){const s=p,u=ne(),a=N(),i=F(),_=K(),k=C(()=>a.t("zones.form.kubernetes.secret.createSecretCommand",{token:s.base64EncodedToken}).trim()),c=C(()=>{const v={zoneName:s.zoneName,globalKdsAddress:_.state.globalKdsAddress,zoneIngressEnabled:String(s.zoneIngressEnabled),zoneEgressEnabled:String(s.zoneEgressEnabled)};return typeof i.params.virtualControlPlaneId=="string"&&(v.controlPlaneId=i.params.virtualControlPlaneId),a.t("zones.form.kubernetes.connectZone.config",v).trim()});return(v,g)=>(z(),Z("div",null,[t("h3",null,"1. "+o(e(a).t("zones.form.kubernetes.prerequisites.title")),1),n(),t("ul",null,[t("li",null,[t("b",null,o(e(a).t("zones.form.kubernetes.prerequisites.step1Label"))+o(s.zoneIngressEnabled?" "+e(a).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: `+o(e(a).t("zones.form.kubernetes.prerequisites.step1Description",{productName:e(u)("KUMA_PRODUCT_NAME")})),1)]),n(),t("li",null,[t("b",null,o(e(a).t("zones.form.kubernetes.prerequisites.step2Label")),1),n(`: `+o(e(a).t("zones.form.kubernetes.prerequisites.step2Description")),1)]),n(),t("li",null,[t("a",pe,o(e(a).t("zones.form.kubernetes.prerequisites.step3LinkTitle")),1),n(" "+o(e(a).t("zones.form.kubernetes.prerequisites.step3Tail")),1)])]),n(),t("h3",null,"2. "+o(e(a).t("zones.form.kubernetes.helm.title")),1),n(),ve,n(),t("ol",null,[t("li",null,[n(o(e(a).t("zones.form.kubernetes.helm.step1Description"))+" ",1),r(y,{id:"zone-kubernetes-create-namespace",class:"mt-4",code:e(a).t("zones.form.kubernetes.helm.step1Command"),language:"bash"},null,8,["code"])]),n(),t("li",null,[n(o(e(a).t("zones.form.kubernetes.helm.step2Description"))+" ",1),r(y,{id:"zone-kubernetes-add-charts-repo",class:"mt-4",code:e(a).t("zones.form.kubernetes.helm.step2Command"),language:"bash"},null,8,["code"])]),n(),t("li",null,[n(o(e(a).t("zones.form.kubernetes.helm.step3Description"))+" ",1),r(y,{id:"zone-kubernetes-repo-update",class:"mt-4",code:e(a).t("zones.form.kubernetes.helm.step3Command"),language:"bash"},null,8,["code"])])]),n(),t("h3",null,"3. "+o(e(a).t("zones.form.kubernetes.secret.title")),1),n(),t("p",null,o(e(a).t("zones.form.kubernetes.secret.createSecretDescription")),1),n(),r(y,{id:"zone-kubernetes-create-secret",class:"mt-4",code:k.value,language:"bash"},null,8,["code"]),n(),t("h3",null,"4. "+o(e(a).t("zones.form.kubernetes.connectZone.title")),1),n(),t("p",null,o(e(a).t("zones.form.kubernetes.connectZone.configDescription")),1),n(),t("span",fe,o(e(a).t("zones.form.kubernetes.connectZone.configFileName")),1),n(),r(y,{id:"zone-kubernetes-config-code-block",code:c.value,language:"yaml"},null,8,["code"]),n(),t("p",be,o(e(a).t("zones.form.kubernetes.connectZone.connectDescription")),1),n(),r(y,{id:"zone-kubernetes-command-code-block",class:"mt-4",code:e(a).t("zones.form.kubernetes.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const _e=L(ze,[["__scopeId","data-v-293c555d"]]),ge={class:"k-input-label mt-4"},ke={class:"mt-4"},he=V({__name:"ZoneCreateUniversalInstructions",props:{zoneName:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const s=p,u=N(),a=F(),i=K(),_=C(()=>u.t("zones.form.universal.saveToken.saveTokenCommand",{token:s.token}).trim()),k=C(()=>{const c={zoneName:s.zoneName,globalKdsAddress:i.state.globalKdsAddress};return typeof a.params.virtualControlPlaneId=="string"&&(c.controlPlaneId=a.params.virtualControlPlaneId),u.t("zones.form.universal.connectZone.config",c).trim()});return(c,v)=>(z(),Z("div",null,[t("h3",null,"1. "+o(e(u).t("zones.form.universal.saveToken.title")),1),n(),t("p",null,o(e(u).t("zones.form.universal.saveToken.saveTokenDescription")),1),n(),r(y,{id:"zone-kubernetes-token",class:"mt-4",code:_.value,language:"bash"},null,8,["code"]),n(),t("h3",null,"2. "+o(e(u).t("zones.form.universal.connectZone.title")),1),n(),t("p",null,o(e(u).t("zones.form.universal.connectZone.configDescription")),1),n(),t("span",ge,o(e(u).t("zones.form.universal.connectZone.configFileName")),1),n(),r(y,{id:"zone-universal-config-code-block",class:"mt-4",code:k.value,language:"yaml"},null,8,["code"]),n(),t("p",ke,o(e(u).t("zones.form.universal.connectZone.connectDescription")),1),n(),r(y,{id:"zone-universal-connect-command-code-block",class:"mt-4",code:e(u).t("zones.form.universal.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const ye=L(he,[["__scopeId","data-v-ea760a7e"]]),Ee={class:"form-content"},Ce={class:"form-wrapper mt-4"},Ie={key:1,class:"form-wrapper mt-4","data-testid":"connect-zone-instructions"},we={class:"k-input-label"},Ze={class:"radio-button-group"},Se={class:"k-input-label"},Ve={class:"radio-button-group"},$e={class:"k-input-label"},qe={class:"radio-button-group"},Ae={class:"mt-6"},De={class:"mt-2"},Te=V({__name:"ZoneCreateView",setup(p){const{t:s}=N(),u=te(),a=[400,409,500],i=m(null),_=m(!1),k=m(null),c=m({error:null,title:null,icon:"warning",badgeAppearance:"warning"}),v=m(!1),g=m(null),f=m(""),I=m("kubernetes"),$=m(!0),q=m(!0),S=C(()=>i.value!==null&&i.value.token?i.value.token:""),P=C(()=>S.value!==""?window.btoa(S.value):""),x=C(()=>f.value===""||_.value||i.value!==null);async function O(){_.value=!0,k.value=null;try{i.value=await u.createZone({name:f.value})}catch(d){d instanceof ee&&a.includes(d.status)?c.value={error:d,title:s(`zones.create.statusError.${d.status}.title`,{zoneName:f.value}),description:s(`zones.create.statusError.${d.status}.description`).trim(),icon:d.status===500?"warning":"errorFilled",badgeAppearance:d.status===500?"warning":"danger"}:d instanceof Error?c.value={error:d,title:s("zones.create.generalError.title"),icon:"warning",badgeAppearance:"danger"}:console.error(d)}finally{_.value=!1}}async function M(){v.value=!1,g.value=null;try{const d=await u.getZoneOverview({name:f.value}),b=ae(d.zoneInsight);v.value=b==="online"}catch(d){d instanceof Error?g.value=d:console.error(d)}}return(d,b)=>(z(),E(se,{attrs:{class:"is-fullscreen"}},{default:l(()=>[r(oe,{fullscreen:!0,breadcrumbs:[]},{title:l(()=>[t("h1",null,[r(re,{title:e(s)("zones.routes.create.title"),render:!0},null,8,["title"])])]),actions:l(()=>[r(e(D),{appearance:"outline",to:{name:"zone-cp-list-view"}},{default:l(()=>[n(o(e(s)("zones.form.exit")),1)]),_:1})]),default:l(()=>[n(),n(),t("div",Ee,[t("h1",null,o(e(s)("zones.routes.create.title")),1),n(),t("div",Ce,[t("div",null,[r(e(J),{for:"zone-name"},{default:l(()=>[n(o(e(s)("zones.form.nameLabel"))+` * `,1)]),_:1}),n(),r(e(W),{id:"zone-name",modelValue:f.value,"onUpdate:modelValue":b[0]||(b[0]=h=>f.value=h),type:"text",name:"zone-name","data-testid":"name-input",disabled:i.value!==null},null,8,["modelValue","disabled"])]),n(),r(e(D),{appearance:"creation",icon:_.value?"spinner":"plus",disabled:x.value,"data-testid":"create-zone-button",onClick:O},{default:l(()=>[n(o(e(s)("zones.form.createZoneButtonLabel")),1)]),_:1},8,["icon","disabled"])]),n(),c.value.error!==null?(z(),E(le,{key:0,class:"mt-4",error:c.value.error,"badge-appearance":c.value.badgeAppearance,icon:c.value.icon,"data-testid":"create-zone-error"},X({default:l(()=>[t("p",null,o(c.value.title),1),n()]),_:2},[c.value.description?{name:"message",fn:l(()=>[t("p",null,o(c.value.description),1)]),key:"0"}:void 0]),1032,["error","badge-appearance","icon"])):T("",!0),n(),i.value!==null?(z(),Z("div",Ie,[t("div",null,[t("span",we,o(e(s)("zones.form.environmentLabel"))+` * diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e79d1d0d.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-00ae1759.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e79d1d0d.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-00ae1759.js index d2bf902316be..1e2df2dd76fd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e79d1d0d.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-00ae1759.js @@ -1,4 +1,4 @@ -import{d as S,c as u,r as V,o as n,a as o,w as e,q as B,g as p,h as a,t as g,e as h,F as b,s as C,b as m,R as N,X as T}from"./index-4f1a7619.js";import{a as D,A as E,_ as L,S as Z}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js";import{_ as R}from"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import{D as q,a as F}from"./DefinitionListItem-61a9402d.js";import{T as M}from"./TabsWidget-c7bce8f4.js";import{T as I}from"./TextWithCopyButton-6da2ac1e.js";import{_ as P}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-67da292d.js";import{g as A,z as W,n as j,B as G,E as J,A as X,q as H,_ as K}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as U}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as Q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as Y}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as ee}from"./ErrorBlock-de349e30.js";const ne={class:"entity-heading"},te=S({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(z){const i=z,{t:w}=A(),k=W(),_=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],f=u(()=>({name:"zone-cp-detail-view",params:{zone:i.zoneOverview.name}})),d=u(()=>{const{type:t,name:s}=i.zoneOverview,c=j(i.zoneOverview.zoneInsight);return{type:t,name:s,status:c,"Authentication Type":G(i.zoneOverview)}}),v=u(()=>{var s;const t=((s=i.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];return Array.from(t).reverse()}),y=u(()=>{var c;const t=[],s=((c=i.zoneOverview.zoneInsight)==null?void 0:c.subscriptions)??[];if(s.length>0){const r=s[s.length-1],l=r.version.kumaCp.version||"-",{kumaCpGlobalCompatible:x=!0}=r.version.kumaCp;x||t.push({kind:J,payload:{zoneCpVersion:l,globalCpVersion:k("KUMA_VERSION")}})}return t}),O=u(()=>{var s;const t=((s=i.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];if(t.length>0){const c=t[t.length-1];if(c.config)return JSON.stringify(JSON.parse(c.config),null,2)}return null}),$=u(()=>y.value.length===0?_.filter(t=>t.hash!=="#warnings"):_);return(t,s)=>{const c=V("router-link");return n(),o(M,{tabs:$.value},{tabHeader:e(()=>[B("h1",ne,[p(` +import{d as S,c as u,r as V,o as n,a as o,w as e,q as B,g as p,h as a,t as g,e as h,F as b,s as C,b as m,R as N,X as T}from"./index-3a142bd5.js";import{a as D,A as E,_ as L,S as Z}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js";import{_ as R}from"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import{D as q,a as F}from"./DefinitionListItem-e3979580.js";import{T as M}from"./TabsWidget-47bb7647.js";import{T as I}from"./TextWithCopyButton-5cda1463.js";import{_ as P}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-cf0c130d.js";import{g as A,z as W,n as j,B as G,E as J,A as X,q as H,_ as K}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as U}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as Q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as Y}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as ee}from"./ErrorBlock-bfc4eea4.js";const ne={class:"entity-heading"},te=S({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(z){const i=z,{t:w}=A(),k=W(),_=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],f=u(()=>({name:"zone-cp-detail-view",params:{zone:i.zoneOverview.name}})),d=u(()=>{const{type:t,name:s}=i.zoneOverview,c=j(i.zoneOverview.zoneInsight);return{type:t,name:s,status:c,"Authentication Type":G(i.zoneOverview)}}),v=u(()=>{var s;const t=((s=i.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];return Array.from(t).reverse()}),y=u(()=>{var c;const t=[],s=((c=i.zoneOverview.zoneInsight)==null?void 0:c.subscriptions)??[];if(s.length>0){const r=s[s.length-1],l=r.version.kumaCp.version||"-",{kumaCpGlobalCompatible:x=!0}=r.version.kumaCp;x||t.push({kind:J,payload:{zoneCpVersion:l,globalCpVersion:k("KUMA_VERSION")}})}return t}),O=u(()=>{var s;const t=((s=i.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];if(t.length>0){const c=t[t.length-1];if(c.config)return JSON.stringify(JSON.parse(c.config),null,2)}return null}),$=u(()=>y.value.length===0?_.filter(t=>t.hash!=="#warnings"):_);return(t,s)=>{const c=V("router-link");return n(),o(M,{tabs:$.value},{tabHeader:e(()=>[B("h1",ne,[p(` Zone Control Plane: `),a(I,{text:d.value.name},{default:e(()=>[a(c,{to:f.value},{default:e(()=>[p(g(d.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[a(q,null,{default:e(()=>[(n(!0),h(b,null,C(d.value,(r,l)=>(n(),o(F,{key:l,term:m(w)(`http.api.property.${l}`)},{default:e(()=>[l==="status"?(n(),o(m(N),{key:0,appearance:r==="offline"?"danger":"success"},{default:e(()=>[p(g(r),1)]),_:2},1032,["appearance"])):l==="name"?(n(),o(I,{key:1,text:r},null,8,["text"])):(n(),h(b,{key:2},[p(g(r),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[a(D,{"initially-open":0},{default:e(()=>[(n(!0),h(b,null,C(v.value,(r,l)=>(n(),o(E,{key:l},{"accordion-header":e(()=>[a(L,{details:r},null,8,["details"])]),"accordion-content":e(()=>[a(Z,{details:r},null,8,["details"])]),_:2},1024))),128))]),_:1})]),config:e(()=>[O.value!==null?(n(),o(R,{key:0,id:"code-block-zone-config",language:"json",code:O.value,"is-searchable":"","query-key":"zone-config"},null,8,["code"])):(n(),o(m(T),{key:1,"data-testid":"warning-no-subscriptions",appearance:"warning"},{alertMessage:e(()=>[p(g(m(w)("zone-cps.routes.item.config.no-subscriptions")),1)]),_:1}))]),warnings:e(()=>[a(P,{warnings:y.value},null,8,["warnings"])]),_:1},8,["tabs"])}}}),se={key:3,class:"kcard-border","data-testid":"detail-view-details"},ve=S({__name:"ZoneDetailView",setup(z){const{t:i}=A();return(w,k)=>(n(),o(K,{name:"zone-cp-detail-view"},{default:e(({route:_})=>[a(Q,{title:m(i)("zone-cps.routes.item.title",{name:_.params.zone})},null,8,["title"]),p(),a(X,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:m(i)("zone-cps.routes.item.breadcrumbs")}]},{default:e(()=>[a(U,{src:`/zone-cps/${_.params.zone}`},{default:e(({data:f,isLoading:d,error:v})=>[d?(n(),o(H,{key:0})):v!==void 0?(n(),o(ee,{key:1,error:v},null,8,["error"])):f===void 0?(n(),o(Y,{key:2})):(n(),h("div",se,[a(te,{"zone-overview":f},null,8,["zone-overview"])]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{ve as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ab681c60.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-9e286f63.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ab681c60.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-9e286f63.js index b9c5c6efe4ce..38ab66d19be1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ab681c60.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-9e286f63.js @@ -1,4 +1,4 @@ -import{a as D,A,_ as B,S as O}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js";import{D as q,a as C}from"./DefinitionListItem-61a9402d.js";import{E as p}from"./EnvoyData-46015709.js";import{T as S}from"./TabsWidget-c7bce8f4.js";import{T as w}from"./TextWithCopyButton-6da2ac1e.js";import{g as k,A as T,q as V,_ as I}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as x,c as v,r as Z,o as t,a as r,w as e,q as L,g as u,h as s,t as E,e as d,F as g,s as b,b as f}from"./index-4f1a7619.js";import{_ as N}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as W}from"./ErrorBlock-de349e30.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";const j={class:"entity-heading"},H=x({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(h){const o=h,{t:y}=k(),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"}],c=v(()=>({name:"zone-egress-detail-view",params:{zoneEgress:o.zoneEgressOverview.name}})),a=v(()=>{const{type:n,name:i}=o.zoneEgressOverview;return{type:n,name:i}}),_=v(()=>{var i;const n=((i=o.zoneEgressOverview.zoneEgressInsight)==null?void 0:i.subscriptions)??[];return Array.from(n).reverse()});return(n,i)=>{const $=Z("router-link");return t(),r(S,{tabs:z},{tabHeader:e(()=>[L("h1",j,[u(` +import{a as D,A,_ as B,S as O}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js";import{D as q,a as C}from"./DefinitionListItem-e3979580.js";import{E as p}from"./EnvoyData-2a616a29.js";import{T as S}from"./TabsWidget-47bb7647.js";import{T as w}from"./TextWithCopyButton-5cda1463.js";import{g as k,A as T,q as V,_ as I}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as x,c as v,r as Z,o as t,a as r,w as e,q as L,g as u,h as s,t as E,e as d,F as g,s as b,b as f}from"./index-3a142bd5.js";import{_ as N}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as W}from"./ErrorBlock-bfc4eea4.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";const j={class:"entity-heading"},H=x({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(h){const o=h,{t:y}=k(),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"}],c=v(()=>({name:"zone-egress-detail-view",params:{zoneEgress:o.zoneEgressOverview.name}})),a=v(()=>{const{type:n,name:i}=o.zoneEgressOverview;return{type:n,name:i}}),_=v(()=>{var i;const n=((i=o.zoneEgressOverview.zoneEgressInsight)==null?void 0:i.subscriptions)??[];return Array.from(n).reverse()});return(n,i)=>{const $=Z("router-link");return t(),r(S,{tabs:z},{tabHeader:e(()=>[L("h1",j,[u(` Zone Egress: `),s(w,{text:a.value.name},{default:e(()=>[s($,{to:c.value},{default:e(()=>[u(E(a.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(q,null,{default:e(()=>[(t(!0),d(g,null,b(a.value,(l,m)=>(t(),r(C,{key:m,term:f(y)(`http.api.property.${m}`)},{default:e(()=>[m==="name"?(t(),r(w,{key:0,text:l},null,8,["text"])):(t(),d(g,{key:1},[u(E(l),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),d(g,null,b(_.value,(l,m)=>(t(),r(A,{key:m},{"accordion-header":e(()=>[s(B,{details:l},null,8,["details"])]),"accordion-content":e(()=>[s(O,{details:l,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(p,{"data-path":"xds","zone-egress-name":a.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-stats":e(()=>[s(p,{"data-path":"stats","zone-egress-name":a.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-clusters":e(()=>[s(p,{"data-path":"clusters","zone-egress-name":a.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})}}}),X={key:3,class:"kcard-border","data-testid":"detail-view-details"},ne=x({__name:"ZoneEgressDetailView",setup(h){const{t:o}=k();return(y,z)=>(t(),r(I,{name:"zone-egress-detail-view"},{default:e(({route:c})=>[s(F,{title:f(o)("zone-egresses.routes.item.title",{name:c.params.zoneEgress})},null,8,["title"]),u(),s(T,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:f(o)("zone-egresses.routes.item.breadcrumbs")}]},{default:e(()=>[s(N,{src:`/zone-egresses/${c.params.zoneEgress}`},{default:e(({data:a,isLoading:_,error:n})=>[_?(t(),r(V,{key:0})):n!==void 0?(t(),r(W,{key:1,error:n},null,8,["error"])):a===void 0?(t(),r(R,{key:2})):(t(),d("div",X,[s(H,{"zone-egress-overview":a},null,8,["zone-egress-overview"])]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{ne as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-739a5945.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-26929cd7.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-739a5945.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-26929cd7.js index b4a64e0ce100..13d50509c73e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-739a5945.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-26929cd7.js @@ -1 +1 @@ -import{d as w,r as v,o as m,a as _,w as e,h as t,q as k,b as s,g as u,G as h,t as d,e as y,F as V,$ as C,D as E,v as $,H as x}from"./index-4f1a7619.js";import{A}from"./AppCollection-911959a1.js";import{g as L,A as N,_ as B,n as I,f as R}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as S}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{S as q}from"./StatusBadge-999ac91c.js";const D=w({__name:"ZoneEgressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const n=g,{t:r}=L();function f(p){return p.map(l=>{const{name:i}=l,c={name:"zone-egress-detail-view",params:{zoneEgress:i}},o=I(l.zoneEgressInsight??{});return{detailViewRoute:c,name:i,status:o}})}return(p,l)=>{const i=v("RouterLink");return m(),_(B,{name:"zone-egress-list-view"},{default:e(({route:c})=>[t(N,null,{title:e(()=>[k("h2",null,[t(T,{title:s(r)("zone-egresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[u(),t(S,{src:`/zone-egresses?size=${n.size}&page=${n.page}`},{default:e(({data:o,error:b})=>[t(s(h),null,{body:e(()=>[t(A,{class:"zone-egress-collection","data-testid":"zone-egress-collection",headers:[{label:"Name",key:"name"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":n.page,"page-size":n.size,total:o==null?void 0:o.total,items:o?f(o.items):void 0,error:b,onChange:c.update},{name:e(({row:a,rowValue:z})=>[t(i,{to:a.detailViewRoute,"data-testid":"detail-view-link"},{default:e(()=>[u(d(z),1)]),_:2},1032,["to"])]),status:e(({rowValue:a})=>[a?(m(),_(q,{key:0,status:a},null,8,["status"])):(m(),y(V,{key:1},[u(d(s(r)("common.collection.none")),1)],64))]),actions:e(({row:a})=>[t(s(C),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(s(E),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s($),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(x),{item:{to:a.detailViewRoute,label:s(r)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const K=R(D,[["__scopeId","data-v-0850253b"]]);export{K as default}; +import{d as w,r as v,o as m,a as _,w as e,h as t,q as k,b as s,g as u,G as h,t as d,e as y,F as V,$ as C,D as E,v as $,H as x}from"./index-3a142bd5.js";import{A}from"./AppCollection-7dd9601e.js";import{g as L,A as N,_ as B,n as I,f as R}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as S}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{S as q}from"./StatusBadge-c54fa150.js";const D=w({__name:"ZoneEgressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const n=g,{t:r}=L();function f(p){return p.map(l=>{const{name:i}=l,c={name:"zone-egress-detail-view",params:{zoneEgress:i}},o=I(l.zoneEgressInsight??{});return{detailViewRoute:c,name:i,status:o}})}return(p,l)=>{const i=v("RouterLink");return m(),_(B,{name:"zone-egress-list-view"},{default:e(({route:c})=>[t(N,null,{title:e(()=>[k("h2",null,[t(T,{title:s(r)("zone-egresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[u(),t(S,{src:`/zone-egresses?size=${n.size}&page=${n.page}`},{default:e(({data:o,error:b})=>[t(s(h),null,{body:e(()=>[t(A,{class:"zone-egress-collection","data-testid":"zone-egress-collection",headers:[{label:"Name",key:"name"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":n.page,"page-size":n.size,total:o==null?void 0:o.total,items:o?f(o.items):void 0,error:b,onChange:c.update},{name:e(({row:a,rowValue:z})=>[t(i,{to:a.detailViewRoute,"data-testid":"detail-view-link"},{default:e(()=>[u(d(z),1)]),_:2},1032,["to"])]),status:e(({rowValue:a})=>[a?(m(),_(q,{key:0,status:a},null,8,["status"])):(m(),y(V,{key:1},[u(d(s(r)("common.collection.none")),1)],64))]),actions:e(({row:a})=>[t(s(C),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(s(E),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s($),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(x),{item:{to:a.detailViewRoute,label:s(r)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const K=R(D,[["__scopeId","data-v-0850253b"]]);export{K as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-faee0b2c.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-71955f87.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-faee0b2c.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-71955f87.js index 22f5c0de6737..1a96864166fc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-faee0b2c.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-71955f87.js @@ -1 +1 @@ -import{d as m,r as d,o,a as r,w as e,h as a,B as f,q as w,t as c,b as t,g as s,i as V,D as g}from"./index-4f1a7619.js";import{z as v,g as x,e as h,A as C,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";const S=m({__name:"ZoneIndexView",setup(k){const i=v(),{t:n}=x(),l=h();return(y,z)=>{const u=d("RouterView");return o(),r(N,null,{default:e(()=>[a(C,null,f({title:e(()=>[w("h1",null,c(t(n)("zones.routes.items.title")),1)]),default:e(()=>[s(),s(),a(u,null,{default:e(({Component:_,route:p})=>[(o(),r(V(_),{key:p.path}))]),_:1})]),_:2},[t(i)("KUMA_ZONE_CREATION_FLOW")==="enabled"&&t(l).getters["config/getMulticlusterStatus"]?{name:"actions",fn:e(()=>[a(t(g),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:e(()=>[s(c(t(n)("zones.index.create")),1)]),_:1})]),key:"0"}:void 0]),1024)]),_:1})}}});export{S as default}; +import{d as m,r as d,o,a as r,w as e,h as a,B as f,q as w,t as c,b as t,g as s,i as V,D as g}from"./index-3a142bd5.js";import{z as v,g as x,e as h,A as C,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";const S=m({__name:"ZoneIndexView",setup(k){const i=v(),{t:n}=x(),l=h();return(y,z)=>{const u=d("RouterView");return o(),r(N,null,{default:e(()=>[a(C,null,f({title:e(()=>[w("h1",null,c(t(n)("zones.routes.items.title")),1)]),default:e(()=>[s(),s(),a(u,null,{default:e(({Component:_,route:p})=>[(o(),r(V(_),{key:p.path}))]),_:1})]),_:2},[t(i)("KUMA_ZONE_CREATION_FLOW")==="enabled"&&t(l).getters["config/getMulticlusterStatus"]?{name:"actions",fn:e(()=>[a(t(g),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:e(()=>[s(c(t(n)("zones.index.create")),1)]),_:1})]),key:"0"}:void 0]),1024)]),_:1})}}});export{S as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-e0c8bc96.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-7b1c3297.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-e0c8bc96.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-7b1c3297.js index a6cd92c2e10c..f3b6351d1c66 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-e0c8bc96.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-7b1c3297.js @@ -1,4 +1,4 @@ -import{a as D,A,_ as B,S as O}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-f386c9b4.js";import{D as q,a as C}from"./DefinitionListItem-61a9402d.js";import{E as p}from"./EnvoyData-46015709.js";import{T as S}from"./TabsWidget-c7bce8f4.js";import{T as w}from"./TextWithCopyButton-6da2ac1e.js";import{g as k,A as T,q as V,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{d as x,c as v,r as Z,o as t,a,w as e,q as L,g as u,h as s,t as I,e as d,F as g,s as b,b as f}from"./index-4f1a7619.js";import{_ as N}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-18149a64.js";import{E as W}from"./ErrorBlock-de349e30.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-b49a4fa6.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-ac7fbb4c.js";const j={class:"entity-heading"},H=x({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(h){const o=h,{t:y}=k(),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"}],c=v(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:o.zoneIngressOverview.name}})),n=v(()=>{const{type:r,name:i}=o.zoneIngressOverview;return{type:r,name:i}}),_=v(()=>{var i;const r=((i=o.zoneIngressOverview.zoneIngressInsight)==null?void 0:i.subscriptions)??[];return Array.from(r).reverse()});return(r,i)=>{const $=Z("router-link");return t(),a(S,{tabs:z},{tabHeader:e(()=>[L("h1",j,[u(` +import{a as D,A,_ as B,S as O}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-630b24fd.js";import{D as q,a as C}from"./DefinitionListItem-e3979580.js";import{E as p}from"./EnvoyData-2a616a29.js";import{T as S}from"./TabsWidget-47bb7647.js";import{T as w}from"./TextWithCopyButton-5cda1463.js";import{g as k,A as T,q as V,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{d as x,c as v,r as Z,o as t,a,w as e,q as L,g as u,h as s,t as I,e as d,F as g,s as b,b as f}from"./index-3a142bd5.js";import{_ as N}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-363ede6e.js";import{E as W}from"./ErrorBlock-bfc4eea4.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6a962fb5.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-23750b8a.js";const j={class:"entity-heading"},H=x({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(h){const o=h,{t:y}=k(),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"}],c=v(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:o.zoneIngressOverview.name}})),n=v(()=>{const{type:r,name:i}=o.zoneIngressOverview;return{type:r,name:i}}),_=v(()=>{var i;const r=((i=o.zoneIngressOverview.zoneIngressInsight)==null?void 0:i.subscriptions)??[];return Array.from(r).reverse()});return(r,i)=>{const $=Z("router-link");return t(),a(S,{tabs:z},{tabHeader:e(()=>[L("h1",j,[u(` Zone Ingress: `),s(w,{text:n.value.name},{default:e(()=>[s($,{to:c.value},{default:e(()=>[u(I(n.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(q,null,{default:e(()=>[(t(!0),d(g,null,b(n.value,(l,m)=>(t(),a(C,{key:m,term:f(y)(`http.api.property.${m}`)},{default:e(()=>[m==="name"?(t(),a(w,{key:0,text:l},null,8,["text"])):(t(),d(g,{key:1},[u(I(l),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),d(g,null,b(_.value,(l,m)=>(t(),a(A,{key:m},{"accordion-header":e(()=>[s(B,{details:l},null,8,["details"])]),"accordion-content":e(()=>[s(O,{details:l,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(p,{"data-path":"xds","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-stats":e(()=>[s(p,{"data-path":"stats","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-clusters":e(()=>[s(p,{"data-path":"clusters","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})}}}),X={key:3,class:"kcard-border","data-testid":"detail-view-details"},re=x({__name:"ZoneIngressDetailView",setup(h){const{t:o}=k();return(y,z)=>(t(),a(E,{name:"zone-ingress-detail-view"},{default:e(({route:c})=>[s(F,{title:f(o)("zone-ingresses.routes.item.title",{name:c.params.zoneIngress})},null,8,["title"]),u(),s(T,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:f(o)("zone-ingresses.routes.item.breadcrumbs")}]},{default:e(()=>[s(N,{src:`/zone-ingresses/${c.params.zoneIngress}`},{default:e(({data:n,isLoading:_,error:r})=>[_?(t(),a(V,{key:0})):r!==void 0?(t(),a(W,{key:1,error:r},null,8,["error"])):n===void 0?(t(),a(R,{key:2})):(t(),d("div",X,[s(H,{"zone-ingress-overview":n},null,8,["zone-ingress-overview"])]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{re as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-abf59c86.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-648be878.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-abf59c86.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-648be878.js index ac5e31a4af28..fec6e5e3fb87 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-abf59c86.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-648be878.js @@ -1 +1 @@ -import{d as w,r as v,o as n,a as l,w as e,h as t,q as y,b as s,g as p,G as h,t as d,e as I,F as V,$,D as C,v as S,H as x}from"./index-4f1a7619.js";import{_ as A}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-6483f23f.js";import{A as L}from"./AppCollection-911959a1.js";import{g as N,e as B,A as R,_ as T,n as q,f as D}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as F}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as Z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{S as E}from"./StatusBadge-999ac91c.js";const G=w({__name:"ZoneIngressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const i=g,{t:c}=N(),f=B();function b(_){return _.map(m=>{const{name:r}=m,u={name:"zone-ingress-detail-view",params:{zoneIngress:r}},o=q(m.zoneIngressInsight??{});return{detailViewRoute:u,name:r,status:o}})}return(_,m)=>{const r=v("RouterLink");return n(),l(T,{name:"zone-ingress-list-view"},{default:e(({route:u})=>[t(R,null,{title:e(()=>[y("h2",null,[t(Z,{title:s(c)("zone-ingresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[p(),s(f).getters["config/getMulticlusterStatus"]===!1?(n(),l(A,{key:0})):(n(),l(F,{key:1,src:`/zone-ingresses?size=${i.size}&page=${i.page}`},{default:e(({data:o,error:z})=>[t(s(h),null,{body:e(()=>[t(L,{class:"zone-ingress-collection","data-testid":"zone-ingress-collection",headers:[{label:"Name",key:"name"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":i.page,"page-size":i.size,total:o==null?void 0:o.total,items:o?b(o.items):void 0,error:z,onChange:u.update},{name:e(({row:a,rowValue:k})=>[t(r,{to:a.detailViewRoute,"data-testid":"detail-view-link"},{default:e(()=>[p(d(k),1)]),_:2},1032,["to"])]),status:e(({rowValue:a})=>[a?(n(),l(E,{key:0,status:a},null,8,["status"])):(n(),I(V,{key:1},[p(d(s(c)("common.collection.none")),1)],64))]),actions:e(({row:a})=>[t(s($),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(s(C),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s(S),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(x),{item:{to:a.detailViewRoute,label:s(c)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1032,["src"]))]),_:2},1024)]),_:1})}}});const Q=D(G,[["__scopeId","data-v-fee36c84"]]);export{Q as default}; +import{d as w,r as v,o as n,a as l,w as e,h as t,q as y,b as s,g as p,G as h,t as d,e as I,F as V,$,D as C,v as S,H as x}from"./index-3a142bd5.js";import{_ as A}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-f549a89c.js";import{A as L}from"./AppCollection-7dd9601e.js";import{g as N,e as B,A as R,_ as T,n as q,f as D}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as F}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as Z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{S as E}from"./StatusBadge-c54fa150.js";const G=w({__name:"ZoneIngressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const i=g,{t:c}=N(),f=B();function b(_){return _.map(m=>{const{name:r}=m,u={name:"zone-ingress-detail-view",params:{zoneIngress:r}},o=q(m.zoneIngressInsight??{});return{detailViewRoute:u,name:r,status:o}})}return(_,m)=>{const r=v("RouterLink");return n(),l(T,{name:"zone-ingress-list-view"},{default:e(({route:u})=>[t(R,null,{title:e(()=>[y("h2",null,[t(Z,{title:s(c)("zone-ingresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[p(),s(f).getters["config/getMulticlusterStatus"]===!1?(n(),l(A,{key:0})):(n(),l(F,{key:1,src:`/zone-ingresses?size=${i.size}&page=${i.page}`},{default:e(({data:o,error:z})=>[t(s(h),null,{body:e(()=>[t(L,{class:"zone-ingress-collection","data-testid":"zone-ingress-collection",headers:[{label:"Name",key:"name"},{label:"Status",key:"status"},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":i.page,"page-size":i.size,total:o==null?void 0:o.total,items:o?b(o.items):void 0,error:z,onChange:u.update},{name:e(({row:a,rowValue:k})=>[t(r,{to:a.detailViewRoute,"data-testid":"detail-view-link"},{default:e(()=>[p(d(k),1)]),_:2},1032,["to"])]),status:e(({rowValue:a})=>[a?(n(),l(E,{key:0,status:a},null,8,["status"])):(n(),I(V,{key:1},[p(d(s(c)("common.collection.none")),1)],64))]),actions:e(({row:a})=>[t(s($),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(s(C),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s(S),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(x),{item:{to:a.detailViewRoute,label:s(c)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024)]),_:2},1032,["src"]))]),_:2},1024)]),_:1})}}});const Q=D(G,[["__scopeId","data-v-fee36c84"]]);export{Q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-a3326a79.js b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-bc8d9426.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ZoneListView-a3326a79.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneListView-bc8d9426.js index 9adf22675843..b93a393cd450 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-a3326a79.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-bc8d9426.js @@ -1 +1 @@ -import{d as I,j as N,o as s,a as r,w as t,z as M,g as a,b as e,X as E,f as S,Y as F,r as K,h as i,q as V,G as P,t as l,e as T,F as A,M as G,v as D,$ as O,D as W,H as q}from"./index-4f1a7619.js";import{_ as X}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-6483f23f.js";import{A as Y}from"./AppCollection-911959a1.js";import{z as j,g as H,m as J,e as U,A as Q,_ as ee,n as te,f as oe}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{_ as ne}from"./DataSource.vue_vue_type_script_setup_true_lang-9e49146d.js";import{_ as ae}from"./RouteTitle.vue_vue_type_script_setup_true_lang-270151a5.js";import{S as se}from"./StatusBadge-999ac91c.js";const ie=I({__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(C,{emit:d}){const c=C,o=N(!1);async function x(){o.value=!1;try{await c.deleteFunction(),d("delete")}catch{o.value=!0}}return(f,m)=>(s(),r(e(F),{"action-button-text":c.actionButtonText,"confirmation-text":c.confirmationText,"is-visible":c.isVisible,"modal-id":c.modalId,title:c.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:m[0]||(m[0]=_=>d("cancel")),onProceed:x},{"body-content":t(()=>[M(f.$slots,"body-content"),a(),o.value?(s(),r(e(E),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:t(()=>[M(f.$slots,"error")]),_:3})):S("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),le=I({__name:"ZoneListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(C){const d=C,c=j(),{t:o}=H(),x=J(),f=U(),m=N(!1),_=N("");function Z(b){return b.map(y=>{var $;const{name:g}=y,h={name:"zone-cp-detail-view",params:{zone:g}};let u="",v="kubernetes",k=!0;((($=y.zoneInsight)==null?void 0:$.subscriptions)??[]).forEach(p=>{if(p.version&&p.version.kumaCp){u=p.version.kumaCp.version;const{kumaCpGlobalCompatible:R=!0}=p.version.kumaCp;k=R}p.config&&(v=JSON.parse(p.config).environment)});const z=te(y.zoneInsight);return{detailViewRoute:h,name:g,status:z,zoneCpVersion:u,type:v,warnings:!k}})}async function B(){await x.deleteZone({name:_.value})}function w(){m.value=!m.value}function L(b){w(),_.value=b}return(b,y)=>{const g=K("RouterLink");return s(),r(ee,{name:"zone-cp-list-view"},{default:t(({route:h})=>[i(Q,null,{title:t(()=>[V("h2",null,[i(ae,{title:e(o)("zone-cps.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[a(),e(f).getters["config/getMulticlusterStatus"]===!1?(s(),r(X,{key:0})):(s(),r(ne,{key:1,src:`/zone-cps?size=${d.size}&page=${d.page}`},{default:t(({data:u,error:v,refresh:k})=>[i(e(P),null,{body:t(()=>[i(Y,{class:"zone-cp-collection","data-testid":"zone-cp-collection",headers:[{label:"Name",key:"name"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Type",key:"type"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":d.page,"page-size":d.size,total:u==null?void 0:u.total,items:u?Z(u.items):void 0,error:v,onChange:h.update},{name:t(({row:n,rowValue:z})=>[i(g,{to:n.detailViewRoute,"data-testid":"detail-view-link"},{default:t(()=>[a(l(z),1)]),_:2},1032,["to"])]),zoneCpVersion:t(({rowValue:n})=>[a(l(n||e(o)("common.collection.none")),1)]),type:t(({rowValue:n})=>[a(l(n||e(o)("common.collection.none")),1)]),status:t(({rowValue:n})=>[n?(s(),r(se,{key:0,status:n},null,8,["status"])):(s(),T(A,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),warnings:t(({rowValue:n})=>[n?(s(),r(e(G),{key:0,label:e(o)("zone-cps.list.version_mismatch")},{default:t(()=>[i(e(D),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(s(),T(A,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),actions:t(({row:n})=>[i(e(O),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[i(e(W),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[i(e(D),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[i(e(q),{item:{to:n.detailViewRoute,label:e(o)("common.collection.actions.view")}},null,8,["item"]),a(),e(c)("KUMA_ZONE_CREATION_FLOW")==="enabled"?(s(),r(e(q),{key:0,"has-divider":"","is-dangerous":"","data-testid":"dropdown-delete-item",onClick:z=>L(n.name)},{default:t(()=>[a(l(e(o)("common.collection.actions.delete")),1)]),_:2},1032,["onClick"])):S("",!0)]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024),a(),m.value?(s(),r(ie,{key:0,"confirmation-text":_.value,"delete-function":B,"is-visible":m.value,"modal-id":"delete-zone-modal","action-button-text":e(o)("zones.delete.confirmModal.proceedText"),title:e(o)("zones.delete.confirmModal.title"),onCancel:w,onDelete:()=>{w(),k()}},{"body-content":t(()=>[V("p",null,l(e(o)("zones.delete.confirmModal.text1",{zoneName:_.value})),1),a(),V("p",null,l(e(o)("zones.delete.confirmModal.text2")),1)]),error:t(()=>[a(l(e(o)("zones.delete.confirmModal.errorText")),1)]),_:2},1032,["confirmation-text","is-visible","action-button-text","title","onDelete"])):S("",!0)]),_:2},1032,["src"]))]),_:2},1024)]),_:1})}}});const _e=oe(le,[["__scopeId","data-v-8f37be0f"]]);export{_e as default}; +import{d as I,j as N,o as s,a as r,w as t,z as M,g as a,b as e,X as E,f as S,Y as F,r as K,h as i,q as V,G as P,t as l,e as T,F as A,M as G,v as D,$ as O,D as W,H as q}from"./index-3a142bd5.js";import{_ as X}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-f549a89c.js";import{A as Y}from"./AppCollection-7dd9601e.js";import{z as j,g as H,m as J,e as U,A as Q,_ as ee,n as te,f as oe}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{_ as ne}from"./DataSource.vue_vue_type_script_setup_true_lang-69141f89.js";import{_ as ae}from"./RouteTitle.vue_vue_type_script_setup_true_lang-727c485b.js";import{S as se}from"./StatusBadge-c54fa150.js";const ie=I({__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(C,{emit:d}){const c=C,o=N(!1);async function x(){o.value=!1;try{await c.deleteFunction(),d("delete")}catch{o.value=!0}}return(f,m)=>(s(),r(e(F),{"action-button-text":c.actionButtonText,"confirmation-text":c.confirmationText,"is-visible":c.isVisible,"modal-id":c.modalId,title:c.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:m[0]||(m[0]=_=>d("cancel")),onProceed:x},{"body-content":t(()=>[M(f.$slots,"body-content"),a(),o.value?(s(),r(e(E),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:t(()=>[M(f.$slots,"error")]),_:3})):S("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),le=I({__name:"ZoneListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(C){const d=C,c=j(),{t:o}=H(),x=J(),f=U(),m=N(!1),_=N("");function Z(b){return b.map(y=>{var $;const{name:g}=y,h={name:"zone-cp-detail-view",params:{zone:g}};let u="",v="kubernetes",k=!0;((($=y.zoneInsight)==null?void 0:$.subscriptions)??[]).forEach(p=>{if(p.version&&p.version.kumaCp){u=p.version.kumaCp.version;const{kumaCpGlobalCompatible:R=!0}=p.version.kumaCp;k=R}p.config&&(v=JSON.parse(p.config).environment)});const z=te(y.zoneInsight);return{detailViewRoute:h,name:g,status:z,zoneCpVersion:u,type:v,warnings:!k}})}async function B(){await x.deleteZone({name:_.value})}function w(){m.value=!m.value}function L(b){w(),_.value=b}return(b,y)=>{const g=K("RouterLink");return s(),r(ee,{name:"zone-cp-list-view"},{default:t(({route:h})=>[i(Q,null,{title:t(()=>[V("h2",null,[i(ae,{title:e(o)("zone-cps.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[a(),e(f).getters["config/getMulticlusterStatus"]===!1?(s(),r(X,{key:0})):(s(),r(ne,{key:1,src:`/zone-cps?size=${d.size}&page=${d.page}`},{default:t(({data:u,error:v,refresh:k})=>[i(e(P),null,{body:t(()=>[i(Y,{class:"zone-cp-collection","data-testid":"zone-cp-collection",headers:[{label:"Name",key:"name"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Type",key:"type"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":d.page,"page-size":d.size,total:u==null?void 0:u.total,items:u?Z(u.items):void 0,error:v,onChange:h.update},{name:t(({row:n,rowValue:z})=>[i(g,{to:n.detailViewRoute,"data-testid":"detail-view-link"},{default:t(()=>[a(l(z),1)]),_:2},1032,["to"])]),zoneCpVersion:t(({rowValue:n})=>[a(l(n||e(o)("common.collection.none")),1)]),type:t(({rowValue:n})=>[a(l(n||e(o)("common.collection.none")),1)]),status:t(({rowValue:n})=>[n?(s(),r(se,{key:0,status:n},null,8,["status"])):(s(),T(A,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),warnings:t(({rowValue:n})=>[n?(s(),r(e(G),{key:0,label:e(o)("zone-cps.list.version_mismatch")},{default:t(()=>[i(e(D),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(s(),T(A,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),actions:t(({row:n})=>[i(e(O),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[i(e(W),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[i(e(D),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[i(e(q),{item:{to:n.detailViewRoute,label:e(o)("common.collection.actions.view")}},null,8,["item"]),a(),e(c)("KUMA_ZONE_CREATION_FLOW")==="enabled"?(s(),r(e(q),{key:0,"has-divider":"","is-dangerous":"","data-testid":"dropdown-delete-item",onClick:z=>L(n.name)},{default:t(()=>[a(l(e(o)("common.collection.actions.delete")),1)]),_:2},1032,["onClick"])):S("",!0)]),_:2},1024)]),_:2},1032,["page-number","page-size","total","items","error","onChange"])]),_:2},1024),a(),m.value?(s(),r(ie,{key:0,"confirmation-text":_.value,"delete-function":B,"is-visible":m.value,"modal-id":"delete-zone-modal","action-button-text":e(o)("zones.delete.confirmModal.proceedText"),title:e(o)("zones.delete.confirmModal.title"),onCancel:w,onDelete:()=>{w(),k()}},{"body-content":t(()=>[V("p",null,l(e(o)("zones.delete.confirmModal.text1",{zoneName:_.value})),1),a(),V("p",null,l(e(o)("zones.delete.confirmModal.text2")),1)]),error:t(()=>[a(l(e(o)("zones.delete.confirmModal.errorText")),1)]),_:2},1032,["confirmation-text","is-visible","action-button-text","title","onDelete"])):S("",!0)]),_:2},1032,["src"]))]),_:2},1024)]),_:1})}}});const _e=oe(le,[["__scopeId","data-v-8f37be0f"]]);export{_e as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-96e03dc2.js b/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-eb9762ec.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-96e03dc2.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-eb9762ec.js index c12097e0f952..85ab8fb5ecfd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-96e03dc2.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-eb9762ec.js @@ -1 +1 @@ -import{g as m,e as c,A as p,_}from"./RouteView.vue_vue_type_script_setup_true_lang-c12a3166.js";import{N as g}from"./NavTabs-89b6e95b.js";import{d as f,r as d,o as t,a as s,w as o,h as n,b as v,f as w,g as z,i as N}from"./index-4f1a7619.js";const y=f({__name:"ZoneTabsView",setup(V){const{t:e}=m(),a=c(),i=[{title:e("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(C,b)=>{const r=d("RouterView");return t(),s(_,null,{default:o(()=>[n(p,null,{default:o(()=>[v(a).getters["config/getMulticlusterStatus"]?(t(),s(g,{key:0,tabs:i})):w("",!0),z(),n(r,null,{default:o(({Component:l,route:u})=>[(t(),s(N(l),{key:u.path}))]),_:1})]),_:1})]),_:1})}}});export{y as default}; +import{g as m,e as c,A as p,_}from"./RouteView.vue_vue_type_script_setup_true_lang-6e394197.js";import{N as g}from"./NavTabs-d4977a62.js";import{d as f,r as d,o as t,a as s,w as o,h as n,b as v,f as w,g as z,i as N}from"./index-3a142bd5.js";const y=f({__name:"ZoneTabsView",setup(V){const{t:e}=m(),a=c(),i=[{title:e("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(C,b)=>{const r=d("RouterView");return t(),s(_,null,{default:o(()=>[n(p,null,{default:o(()=>[v(a).getters["config/getMulticlusterStatus"]?(t(),s(g,{key:0,tabs:i})):w("",!0),z(),n(r,null,{default:o(({Component:l,route:u})=>[(t(),s(N(l),{key:u.path}))]),_:1})]),_:1})]),_:1})}}});export{y as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/index-4f1a7619.js b/app/kuma-ui/pkg/resources/data/assets/index-3a142bd5.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/index-4f1a7619.js rename to app/kuma-ui/pkg/resources/data/assets/index-3a142bd5.js index 219d68250612..52aa3b20572a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/index-4f1a7619.js +++ b/app/kuma-ui/pkg/resources/data/assets/index-3a142bd5.js @@ -1,12 +1,12 @@ -var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ct=(e,t,n)=>(sb(e,typeof t!="symbol"?t+"":t,n),n),tc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var re=(e,t,n)=>(tc(e,t,"read from private field"),n?n.call(e):t.get(e)),Qe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},$t=(e,t,n,r)=>(tc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ve=(e,t,n)=>(tc(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();const lb="modulepreload",ub=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},mf={},qe=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=ub(o,r),o in mf)return;mf[o]=!0;const i=o.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===o&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":lb,i||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};function W0(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a!!n[a.toLowerCase()]:a=>!!n[a]}const yt={},ko=[],Vn=()=>{},cb=()=>!1,db=/^on[^a-z]/,gu=e=>db.test(e),q0=e=>e.startsWith("onUpdate:"),Ot=Object.assign,Q0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hb=Object.prototype.hasOwnProperty,at=(e,t)=>hb.call(e,t),Ie=Array.isArray,Co=e=>yu(e)==="[object Map]",Vm=e=>yu(e)==="[object Set]",Ve=e=>typeof e=="function",Pt=e=>typeof e=="string",X0=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",Km=e=>bt(e)&&Ve(e.then)&&Ve(e.catch),Gm=Object.prototype.toString,yu=e=>Gm.call(e),fb=e=>yu(e).slice(8,-1),Wm=e=>yu(e)==="[object Object]",J0=e=>Pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ol=W0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pb=/-(\w)/g,fr=bu(e=>e.replace(pb,(t,n)=>n?n.toUpperCase():"")),mb=/\B([A-Z])/g,Ga=bu(e=>e.replace(mb,"-$1").toLowerCase()),wu=bu(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=bu(e=>e?`on${wu(e)}`:""),Xi=(e,t)=>!Object.is(e,t),sl=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Jc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vb=e=>{const t=Pt(e)?Number(e):NaN;return isNaN(t)?e:t};let vf;const ed=()=>vf||(vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(Ie(e)){const t={};for(let n=0;n{if(n){const r=n.split(yb);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Pt(e))t=e;else if(Ie(e))for(let n=0;nPt(e)?e:e==null?"":Ie(e)||bt(e)&&(e.toString===Gm||!Ve(e.toString))?JSON.stringify(e,Qm,2):String(e),Qm=(e,t)=>t&&t.__v_isRef?Qm(e,t.value):Co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Vm(t)?{[`Set(${t.size})`]:[...t.values()]}:bt(t)&&!Ie(t)&&!Wm(t)?String(t):t;let Un;class Xm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Un,!t&&Un&&(this.index=(Un.scopes||(Un.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Un;try{return Un=this,t()}finally{Un=n}}}on(){Un=this}off(){Un=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},Jm=e=>(e.w&fa)>0,ev=e=>(e.n&fa)>0,_b=({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)&&s.push(u)})}else switch(n!==void 0&&s.push(i.get(n)),t){case"add":Ie(e)?J0(n)&&s.push(i.get("length")):(s.push(i.get(Ha)),Co(e)&&s.push(i.get(nd)));break;case"delete":Ie(e)||(s.push(i.get(Ha)),Co(e)&&s.push(i.get(nd)));break;case"set":Co(e)&&s.push(i.get(Ha));break}if(s.length===1)s[0]&&rd(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);rd(eh(l))}}function rd(e,t){const n=Ie(e)?e:[...e];for(const r of n)r.computed&&yf(r);for(const r of n)r.computed||yf(r)}function yf(e,t){(e!==Zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Db(e,t){var n;return(n=_l.get(e))==null?void 0:n.get(t)}const Mb=W0("__proto__,__v_isRef,__isVue"),rv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(X0)),Ab=nh(),Ob=nh(!1,!0),Pb=nh(!0),bf=Bb();function Bb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=tt(this);for(let o=0,i=this.length;o{e[t]=function(...n){Wo();const r=tt(this)[t].apply(this,n);return qo(),r}}),e}function Ib(e){const t=tt(this);return fn(t,"has",e),t.hasOwnProperty(e)}function nh(e=!1,t=!1){return function(r,a,o){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&o===(e?t?qb:lv:t?sv:iv).get(r))return r;const i=Ie(r);if(!e){if(i&&at(bf,a))return Reflect.get(bf,a,o);if(a==="hasOwnProperty")return Ib}const s=Reflect.get(r,a,o);return(X0(a)?rv.has(a):Mb(a))||(e||fn(r,"get",a),t)?s:Vt(s)?i&&J0(a)?s:s.value:bt(s)?e?cv(s):Fr(s):s}}const Nb=av(),Lb=av(!0);function av(e=!1){return function(n,r,a,o){let i=n[r];if(Fa(i)&&Vt(i)&&!Vt(a))return!1;if(!e&&(!Tl(a)&&!Fa(a)&&(i=tt(i),a=tt(a)),!Ie(n)&&Vt(i)&&!Vt(a)))return i.value=a,!0;const s=Ie(n)&&J0(r)?Number(r)e,ku=e=>Reflect.getPrototypeOf(e);function Ls(e,t,n=!1,r=!1){e=e.__v_raw;const a=tt(e),o=tt(t);n||(t!==o&&fn(a,"get",t),fn(a,"get",o));const{has:i}=ku(a),s=r?rh:n?ih:Ji;if(i.call(a,t))return s(e.get(t));if(i.call(a,o))return s(e.get(o));e!==a&&e.get(t)}function Rs(e,t=!1){const n=this.__v_raw,r=tt(n),a=tt(e);return t||(e!==a&&fn(r,"has",e),fn(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function $s(e,t=!1){return e=e.__v_raw,!t&&fn(tt(e),"iterate",Ha),Reflect.get(e,"size",e)}function wf(e){e=tt(e);const t=tt(this);return ku(t).has.call(t,e)||(t.add(e),Rr(t,"add",e,e)),this}function kf(e,t){t=tt(t);const n=tt(this),{has:r,get:a}=ku(n);let o=r.call(n,e);o||(e=tt(e),o=r.call(n,e));const i=a.call(n,e);return n.set(e,t),o?Xi(t,i)&&Rr(n,"set",e,t):Rr(n,"add",e,t),this}function Cf(e){const t=tt(this),{has:n,get:r}=ku(t);let a=n.call(t,e);a||(e=tt(e),a=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return a&&Rr(t,"delete",e,void 0),o}function Ef(){const e=tt(this),t=e.size!==0,n=e.clear();return t&&Rr(e,"clear",void 0,void 0),n}function Hs(e,t){return function(r,a){const o=this,i=o.__v_raw,s=tt(i),l=t?rh:e?ih:Ji;return!e&&fn(s,"iterate",Ha),i.forEach((u,c)=>r.call(a,l(u),l(c),o))}}function zs(e,t,n){return function(...r){const a=this.__v_raw,o=tt(a),i=Co(o),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=a[e](...r),c=n?rh:t?ih:Ji;return!t&&fn(o,"iterate",l?nd:Ha),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:s?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function Kr(e){return function(...t){return e==="delete"?!1:this}}function jb(){const e={get(o){return Ls(this,o)},get size(){return $s(this)},has:Rs,add:wf,set:kf,delete:Cf,clear:Ef,forEach:Hs(!1,!1)},t={get(o){return Ls(this,o,!1,!0)},get size(){return $s(this)},has:Rs,add:wf,set:kf,delete:Cf,clear:Ef,forEach:Hs(!1,!0)},n={get(o){return Ls(this,o,!0)},get size(){return $s(this,!0)},has(o){return Rs.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Hs(!0,!1)},r={get(o){return Ls(this,o,!0,!0)},get size(){return $s(this,!0)},has(o){return Rs.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Hs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=zs(o,!1,!1),n[o]=zs(o,!0,!1),t[o]=zs(o,!1,!0),r[o]=zs(o,!0,!0)}),[e,n,t,r]}const[Ub,Zb,Yb,Vb]=jb();function ah(e,t){const n=t?e?Vb:Yb:e?Zb:Ub;return(r,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(at(n,a)&&a in r?n:r,a,o)}const Kb={get:ah(!1,!1)},Gb={get:ah(!1,!0)},Wb={get:ah(!0,!1)},iv=new WeakMap,sv=new WeakMap,lv=new WeakMap,qb=new WeakMap;function Qb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xb(e){return e.__v_skip||!Object.isExtensible(e)?0:Qb(fb(e))}function Fr(e){return Fa(e)?e:oh(e,!1,ov,Kb,iv)}function uv(e){return oh(e,!1,Fb,Gb,sv)}function cv(e){return oh(e,!0,zb,Wb,lv)}function oh(e,t,n,r,a){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=a.get(e);if(o)return o;const i=Xb(e);if(i===0)return e;const s=new Proxy(e,i===2?r:n);return a.set(e,s),s}function Eo(e){return Fa(e)?Eo(e.__v_raw):!!(e&&e.__v_isReactive)}function Fa(e){return!!(e&&e.__v_isReadonly)}function Tl(e){return!!(e&&e.__v_isShallow)}function dv(e){return Eo(e)||Fa(e)}function tt(e){const t=e&&e.__v_raw;return t?tt(t):e}function hv(e){return Sl(e,"__v_skip",!0),e}const Ji=e=>bt(e)?Fr(e):e,ih=e=>bt(e)?cv(e):e;function fv(e){ua&&Zn&&(e=tt(e),nv(e.dep||(e.dep=eh())))}function pv(e,t){e=tt(e);const n=e.dep;n&&rd(n)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function j(e){return mv(e,!1)}function Jb(e){return mv(e,!0)}function mv(e,t){return Vt(e)?e:new e3(e,t)}class e3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:tt(t),this._value=n?t:Ji(t)}get value(){return fv(this),this._value}set value(t){const n=this.__v_isShallow||Tl(t)||Fa(t);t=n?t:tt(t),Xi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ji(t),pv(this))}}function pe(e){return Vt(e)?e.value:e}const t3={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Vt(a)&&!Vt(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function vv(e){return Eo(e)?e:new Proxy(e,t3)}function n3(e){const t=Ie(e)?new Array(e.length):{};for(const n in e)t[n]=a3(e,n);return t}class r3{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 Db(tt(this._object),this._key)}}function a3(e,t,n){const r=e[t];return Vt(r)?r:new r3(e,t,n)}class o3{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new th(t,()=>{this._dirty||(this._dirty=!0,pv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tt(this);return fv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function i3(e,t,n=!1){let r,a;const o=Ve(e);return o?(r=e,a=Vn):(r=e.get,a=e.set),new o3(r,a,o||!a,n)}function ca(e,t,n,r){let a;try{a=r?e(...r):e()}catch(o){Cu(o,t,n)}return a}function On(e,t,n,r){if(Ve(e)){const o=ca(e,t,n,r);return o&&Km(o)&&o.catch(i=>{Cu(i,t,n)}),o}const a=[];for(let o=0;o>>1;ts(Wt[r])cr&&Wt.splice(t,1)}function c3(e){Ie(e)?xo.push(...e):(!Tr||!Tr.includes(e,e.allowRecurse?Aa+1:Aa))&&xo.push(e),yv()}function xf(e,t=es?cr+1:0){for(;tts(n)-ts(r)),Aa=0;Aae.id==null?1/0:e.id,d3=(e,t)=>{const n=ts(e)-ts(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wv(e){ad=!1,es=!0,Wt.sort(d3);const t=Vn;try{for(cr=0;crPt(f)?f.trim():f)),d&&(a=n.map(Jc))}let s,l=r[s=il(t)]||r[s=il(fr(t))];!l&&o&&(l=r[s=il(Ga(t))]),l&&On(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,On(u,e,6,a)}}function kv(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const o=e.emits;let i={},s=!1;if(!Ve(e)){const l=u=>{const c=kv(u,t,!0);c&&(s=!0,Ot(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(bt(e)&&r.set(e,null),null):(Ie(o)?o.forEach(l=>i[l]=null):Ot(i,o),bt(e)&&r.set(e,i),i)}function Eu(e,t){return!e||!gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,Ga(t))||at(e,t))}let Kt=null,xu=null;function Dl(e){const t=Kt;return Kt=e,xu=e&&e.type.__scopeId||null,t}function Ln(e){xu=e}function Rn(){xu=null}function z(e,t=Kt,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&Lf(-1);const o=Dl(t);let i;try{i=e(...a)}finally{Dl(o),r._d&&Lf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function nc(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:o,propsOptions:[i],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:h,setupState:f,ctx:g,inheritAttrs:y}=e;let v,p;const b=Dl(e);try{if(n.shapeFlag&4){const w=a||r;v=lr(c.call(w,w,d,o,f,h,g)),p=l}else{const w=t;v=lr(w.length>1?w(o,{attrs:l,slots:s,emit:u}):w(o,null)),p=t.props?l:f3(l)}}catch(w){Ri.length=0,Cu(w,e,1),v=G(wn)}let m=v;if(p&&y!==!1){const w=Object.keys(p),{shapeFlag:D}=m;w.length&&D&7&&(i&&w.some(q0)&&(p=p3(p,i)),m=$r(m,p))}return n.dirs&&(m=$r(m),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),v=m,Dl(b),v}const f3=e=>{let t;for(const n in e)(n==="class"||n==="style"||gu(n))&&((t||(t={}))[n]=e[n]);return t},p3=(e,t)=>{const n={};for(const r in e)(!q0(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function m3(e,t,n){const{props:r,children:a,component:o}=e,{props:i,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Sf(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function y3(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):c3(e)}function Cv(e,t){return Su(e,null,t)}function b3(e,t){return Su(e,null,{flush:"post"})}const Fs={};function Le(e,t,n){return Su(e,t,n)}function Su(e,t,{immediate:n,deep:r,flush:a,onTrack:o,onTrigger:i}=yt){var s;const l=Sb()===((s=Ft)==null?void 0:s.scope)?Ft:null;let u,c=!1,d=!1;if(Vt(e)?(u=()=>e.value,c=Tl(e)):Eo(e)?(u=()=>e,r=!0):Ie(e)?(d=!0,c=e.some(w=>Eo(w)||Tl(w)),u=()=>e.map(w=>{if(Vt(w))return w.value;if(Eo(w))return Ia(w);if(Ve(w))return ca(w,l,2)})):Ve(e)?t?u=()=>ca(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),On(e,l,3,[f])}:u=Vn,t&&r){const w=u;u=()=>Ia(w())}let h,f=w=>{h=b.onStop=()=>{ca(w,l,4)}},g;if(os)if(f=Vn,t?n&&On(t,l,3,[u(),d?[]:void 0,f]):u(),a==="sync"){const w=s4();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Vn;let y=d?new Array(e.length).fill(Fs):Fs;const v=()=>{if(b.active)if(t){const w=b.run();(r||c||(d?w.some((D,I)=>Xi(D,y[I])):Xi(w,y)))&&(h&&h(),On(t,l,3,[w,y===Fs?void 0:d&&y[0]===Fs?[]:y,f]),y=w)}else b.run()};v.allowRecurse=!!t;let p;a==="sync"?p=v:a==="post"?p=()=>cn(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),p=()=>lh(v));const b=new th(u,p);t?n?v():y=b.run():a==="post"?cn(b.run.bind(b),l&&l.suspense):b.run();const m=()=>{b.stop(),l&&l.scope&&Q0(l.scope.effects,b)};return g&&g.push(m),m}function w3(e,t,n){const r=this.proxy,a=Pt(e)?e.includes(".")?Ev(r,e):()=>r[e]:e.bind(r,r);let o;Ve(t)?o=t:(o=t.handler,n=t);const i=Ft;Lo(this);const s=Su(a,o.bind(r),n);return i?Lo(i):za(),s}function Ev(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{Ia(n,t)});else if(Wm(e))for(const n in e)Ia(e[n],t);return e}function Ml(e,t){const n=Kt;if(n===null)return e;const r=Au(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const xn=[Function,Array],Sv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xn,onEnter:xn,onAfterEnter:xn,onEnterCancelled:xn,onBeforeLeave:xn,onLeave:xn,onAfterLeave:xn,onLeaveCancelled:xn,onBeforeAppear:xn,onAppear:xn,onAfterAppear:xn,onAppearCancelled:xn},k3={name:"BaseTransition",props:Sv,setup(e,{slots:t}){const n=ys(),r=xv();let a;return()=>{const o=t.default&&uh(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const y of o)if(y.type!==wn){i=y;break}}const s=tt(e),{mode:l}=s;if(r.isLeaving)return rc(i);const u=_f(i);if(!u)return rc(i);const c=ns(u,s,r,n);rs(u,c);const d=n.subTree,h=d&&_f(d);let f=!1;const{getTransitionKey:g}=u.type;if(g){const y=g();a===void 0?a=y:y!==a&&(a=y,f=!0)}if(h&&h.type!==wn&&(!Oa(u,h)||f)){const y=ns(h,s,r,n);if(rs(h,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},rc(i);l==="in-out"&&u.type!==wn&&(y.delayLeave=(v,p,b)=>{const m=_v(r,h);m[String(h.key)]=h,v._leaveCb=()=>{p(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return i}}},C3=k3;function _v(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 ns(e,t,n,r){const{appear:a,mode:o,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:y,onAppear:v,onAfterAppear:p,onAppearCancelled:b}=t,m=String(e.key),w=_v(n,e),D=(T,x)=>{T&&On(T,r,9,x)},I=(T,x)=>{const k=x[1];D(T,x),Ie(T)?T.every(A=>A.length<=1)&&k():T.length<=1&&k()},L={mode:o,persisted:i,beforeEnter(T){let x=s;if(!n.isMounted)if(a)x=y||s;else return;T._leaveCb&&T._leaveCb(!0);const k=w[m];k&&Oa(e,k)&&k.el._leaveCb&&k.el._leaveCb(),D(x,[T])},enter(T){let x=l,k=u,A=c;if(!n.isMounted)if(a)x=v||l,k=p||u,A=b||c;else return;let M=!1;const N=T._enterCb=ee=>{M||(M=!0,ee?D(A,[T]):D(k,[T]),L.delayedLeave&&L.delayedLeave(),T._enterCb=void 0)};x?I(x,[T,N]):N()},leave(T,x){const k=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return x();D(d,[T]);let A=!1;const M=T._leaveCb=N=>{A||(A=!0,x(),N?D(g,[T]):D(f,[T]),T._leaveCb=void 0,w[k]===e&&delete w[k])};w[k]=e,h?I(h,[T,M]):M()},clone(T){return ns(T,t,n,r)}};return L}function rc(e){if(_u(e))return e=$r(e),e.children=null,e}function _f(e){return _u(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(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 uh(e,t=!1,n){let r=[],a=0;for(let o=0;o1)for(let o=0;oOt({name:e.name},t,{setup:e}))():e}const Ii=e=>!!e.type.__asyncLoader,_u=e=>e.type.__isKeepAlive;function E3(e,t){Tv(e,"a",t)}function x3(e,t){Tv(e,"da",t)}function Tv(e,t,n=Ft){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Tu(t,r,n),n){let a=n.parent;for(;a&&a.parent;)_u(a.parent.vnode)&&S3(r,t,n,a),a=a.parent}}function S3(e,t,n,r){const a=Tu(t,e,r,!0);gr(()=>{Q0(r[t],a)},n)}function Tu(e,t,n=Ft,r=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wo(),Lo(n);const s=On(t,n,e,i);return za(),qo(),s});return r?a.unshift(o):a.push(o),o}}const jr=e=>(t,n=Ft)=>(!os||e==="sp")&&Tu(e,(...r)=>t(...r),n),_3=jr("bm"),ft=jr("m"),T3=jr("bu"),Dv=jr("u"),Wa=jr("bum"),gr=jr("um"),D3=jr("sp"),M3=jr("rtg"),A3=jr("rtc");function O3(e,t=Ft){Tu("ec",e,t)}const ch="components";function Gn(e,t){return Av(ch,e,!0,t)||e}const Mv=Symbol.for("v-ndc");function va(e){return Pt(e)?Av(ch,e,!1)||e:e||Mv}function Av(e,t,n=!0,r=!1){const a=Kt||Ft;if(a){const o=a.type;if(e===ch){const s=a4(o,!1);if(s&&(s===t||s===fr(t)||s===wu(fr(t))))return o}const i=Tf(a[e]||o[e],t)||Tf(a.appContext[e],t);return!i&&r?o:i}}function Tf(e,t){return e&&(e[t]||e[fr(t)]||e[wu(fr(t))])}function ot(e,t,n,r){let a;const o=n&&n[r];if(Ie(e)||Pt(e)){a=new Array(e.length);for(let i=0,s=e.length;it(i,s,void 0,o&&o[s]));else{const i=Object.keys(e);a=new Array(i.length);for(let s=0,l=i.length;s{const o=r.fn(...a);return o&&(o.key=r.key),o}:r.fn)}return e}function F(e,t,n={},r,a){if(Kt.isCE||Kt.parent&&Ii(Kt.parent)&&Kt.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),C();const i=o&&Ov(o(n)),s=se(Me,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function Ov(e){return e.some(t=>Pl(t)?!(t.type===wn||t.type===Me&&!Ov(t.children)):!0)?e:null}function od(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:il(r)]=e[r];return n}const id=e=>e?Uv(e)?Au(e)||e.proxy:id(e.parent):null,Ni=Ot(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=>id(e.parent),$root:e=>id(e.root),$emit:e=>e.emit,$options:e=>dh(e),$forceUpdate:e=>e.f||(e.f=()=>lh(e.update)),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>w3.bind(e)}),ac=(e,t)=>e!==yt&&!e.__isScriptSetup&&at(e,t),P3={get({_:e},t){const{ctx:n,setupState:r,data:a,props:o,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(ac(r,t))return i[t]=1,r[t];if(a!==yt&&at(a,t))return i[t]=2,a[t];if((u=e.propsOptions[0])&&at(u,t))return i[t]=3,o[t];if(n!==yt&&at(n,t))return i[t]=4,n[t];sd&&(i[t]=0)}}const c=Ni[t];let d,h;if(c)return t==="$attrs"&&fn(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==yt&&at(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,at(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:o}=e;return ac(a,t)?(a[t]=n,!0):r!==yt&&at(r,t)?(r[t]=n,!0):at(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:o}},i){let s;return!!n[i]||e!==yt&&at(e,i)||ac(t,i)||(s=o[0])&&at(s,i)||at(r,i)||at(Ni,i)||at(a.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:at(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function It(){return Pv().slots}function Xn(){return Pv().attrs}function Pv(){const e=ys();return e.setupContext||(e.setupContext=Yv(e))}function Df(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let sd=!0;function B3(e){const t=dh(e),n=e.proxy,r=e.ctx;sd=!1,t.beforeCreate&&Mf(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:g,activated:y,deactivated:v,beforeDestroy:p,beforeUnmount:b,destroyed:m,unmounted:w,render:D,renderTracked:I,renderTriggered:L,errorCaptured:T,serverPrefetch:x,expose:k,inheritAttrs:A,components:M,directives:N,filters:ee}=t;if(u&&I3(u,r,null),i)for(const Q in i){const ye=i[Q];Ve(ye)&&(r[Q]=ye.bind(n))}if(a){const Q=a.call(n,n);bt(Q)&&(e.data=Fr(Q))}if(sd=!0,o)for(const Q in o){const ye=o[Q],_e=Ve(ye)?ye.bind(n,n):Ve(ye.get)?ye.get.bind(n,n):Vn,Re=!Ve(ye)&&Ve(ye.set)?ye.set.bind(n):Vn,Ue=B({get:_e,set:Re});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Fe=>Ue.value=Fe})}if(s)for(const Q in s)Bv(s[Q],r,n,Q);if(l){const Q=Ve(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(ye=>{ll(ye,Q[ye])})}c&&Mf(c,e,"c");function oe(Q,ye){Ie(ye)?ye.forEach(_e=>Q(_e.bind(n))):ye&&Q(ye.bind(n))}if(oe(_3,d),oe(ft,h),oe(T3,f),oe(Dv,g),oe(E3,y),oe(x3,v),oe(O3,T),oe(A3,I),oe(M3,L),oe(Wa,b),oe(gr,w),oe(D3,x),Ie(k))if(k.length){const Q=e.exposed||(e.exposed={});k.forEach(ye=>{Object.defineProperty(Q,ye,{get:()=>n[ye],set:_e=>n[ye]=_e})})}else e.exposed||(e.exposed={});D&&e.render===Vn&&(e.render=D),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),N&&(e.directives=N)}function I3(e,t,n=Vn){Ie(e)&&(e=ld(e));for(const r in e){const a=e[r];let o;bt(a)?"default"in a?o=Kn(a.from||r,a.default,!0):o=Kn(a.from||r):o=Kn(a),Vt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Mf(e,t,n){On(Ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bv(e,t,n,r){const a=r.includes(".")?Ev(n,r):()=>n[r];if(Pt(e)){const o=t[e];Ve(o)&&Le(a,o)}else if(Ve(e))Le(a,e.bind(n));else if(bt(e))if(Ie(e))e.forEach(o=>Bv(o,t,n,r));else{const o=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(o)&&Le(a,o,e)}}function dh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,s=o.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>Al(l,u,i,!0)),Al(l,t,i)),bt(t)&&o.set(t,l),l}function Al(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&Al(e,o,n,!0),a&&a.forEach(i=>Al(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const s=N3[i]||n&&n[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const N3={data:Af,props:Of,emits:Of,methods:Si,computed:Si,beforeCreate:Xt,created:Xt,beforeMount:Xt,mounted:Xt,beforeUpdate:Xt,updated:Xt,beforeDestroy:Xt,beforeUnmount:Xt,destroyed:Xt,unmounted:Xt,activated:Xt,deactivated:Xt,errorCaptured:Xt,serverPrefetch:Xt,components:Si,directives:Si,watch:R3,provide:Af,inject:L3};function Af(e,t){return t?e?function(){return Ot(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function L3(e,t){return Si(ld(e),ld(t))}function ld(e){if(Ie(e)){const t={};for(let n=0;n1)return n&&Ve(t)?t.call(r&&r.proxy):t}}function z3(e,t,n,r=!1){const a={},o={};Sl(o,Mu,1),e.propsDefaults=Object.create(null),Nv(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:uv(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function F3(e,t,n,r){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,s=tt(a),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,f]=Lv(d,t,!0);Ot(i,h),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return bt(e)&&r.set(e,ko),ko;if(Ie(o))for(let c=0;c-1,f[1]=y<0||g-1||at(f,"default"))&&s.push(d)}}}const u=[i,s];return bt(e)&&r.set(e,u),u}function Pf(e){return e[0]!=="$"}function Bf(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function If(e,t){return Bf(e)===Bf(t)}function Nf(e,t){return Ie(t)?t.findIndex(n=>If(n,e)):Ve(t)&&If(t,e)?0:-1}const Rv=e=>e[0]==="_"||e==="$stable",hh=e=>Ie(e)?e.map(lr):[lr(e)],j3=(e,t,n)=>{if(t._n)return t;const r=z((...a)=>hh(t(...a)),n);return r._c=!1,r},$v=(e,t,n)=>{const r=e._ctx;for(const a in e){if(Rv(a))continue;const o=e[a];if(Ve(o))t[a]=j3(a,o,r);else if(o!=null){const i=hh(o);t[a]=()=>i}}},Hv=(e,t)=>{const n=hh(t);e.slots.default=()=>n},U3=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tt(t),Sl(t,"_",n)):$v(t,e.slots={})}else e.slots={},t&&Hv(e,t);Sl(e.slots,Mu,1)},Z3=(e,t,n)=>{const{vnode:r,slots:a}=e;let o=!0,i=yt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:(Ot(a,t),!n&&s===1&&delete a._):(o=!t.$stable,$v(t,a)),i=t}else t&&(Hv(e,t),i={default:1});if(o)for(const s in a)!Rv(s)&&!(s in i)&&delete a[s]};function cd(e,t,n,r,a=!1){if(Ie(e)){e.forEach((h,f)=>cd(h,t&&(Ie(t)?t[f]:t),n,r,a));return}if(Ii(r)&&!a)return;const o=r.shapeFlag&4?Au(r.component)||r.component.proxy:r.el,i=a?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===yt?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Pt(u)?(c[u]=null,at(d,u)&&(d[u]=null)):Vt(u)&&(u.value=null)),Ve(l))ca(l,s,12,[i,c]);else{const h=Pt(l),f=Vt(l);if(h||f){const g=()=>{if(e.f){const y=h?at(d,l)?d[l]:c[l]:l.value;a?Ie(y)&&Q0(y,o):Ie(y)?y.includes(o)||y.push(o):h?(c[l]=[o],at(d,l)&&(d[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else h?(c[l]=i,at(d,l)&&(d[l]=i)):f&&(l.value=i,e.k&&(c[e.k]=i))};i?(g.id=-1,cn(g,n)):g()}}}const cn=y3;function Y3(e){return V3(e)}function V3(e,t){const n=ed();n.__VUE__=!0;const{insert:r,remove:a,patchProp:o,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=Vn,insertStaticContent:g}=e,y=(E,_,P,Z=null,Y=null,W=null,ce=!1,le=null,de=!!_.dynamicChildren)=>{if(E===_)return;E&&!Oa(E,_)&&(Z=U(E),Fe(E,Y,W,!0),E=null),_.patchFlag===-2&&(de=!1,_.dynamicChildren=null);const{type:ie,ref:xe,shapeFlag:be}=_;switch(ie){case Du:v(E,_,P,Z);break;case wn:p(E,_,P,Z);break;case Li:E==null&&b(_,P,Z,ce);break;case Me:M(E,_,P,Z,Y,W,ce,le,de);break;default:be&1?D(E,_,P,Z,Y,W,ce,le,de):be&6?N(E,_,P,Z,Y,W,ce,le,de):(be&64||be&128)&&ie.process(E,_,P,Z,Y,W,ce,le,de,K)}xe!=null&&Y&&cd(xe,E&&E.ref,W,_||E,!_)},v=(E,_,P,Z)=>{if(E==null)r(_.el=s(_.children),P,Z);else{const Y=_.el=E.el;_.children!==E.children&&u(Y,_.children)}},p=(E,_,P,Z)=>{E==null?r(_.el=l(_.children||""),P,Z):_.el=E.el},b=(E,_,P,Z)=>{[E.el,E.anchor]=g(E.children,_,P,Z,E.el,E.anchor)},m=({el:E,anchor:_},P,Z)=>{let Y;for(;E&&E!==_;)Y=h(E),r(E,P,Z),E=Y;r(_,P,Z)},w=({el:E,anchor:_})=>{let P;for(;E&&E!==_;)P=h(E),a(E),E=P;a(_)},D=(E,_,P,Z,Y,W,ce,le,de)=>{ce=ce||_.type==="svg",E==null?I(_,P,Z,Y,W,ce,le,de):x(E,_,Y,W,ce,le,de)},I=(E,_,P,Z,Y,W,ce,le)=>{let de,ie;const{type:xe,props:be,shapeFlag:Se,transition:Pe,dirs:ne}=E;if(de=E.el=i(E.type,W,be&&be.is,be),Se&8?c(de,E.children):Se&16&&T(E.children,de,null,Z,Y,W&&xe!=="foreignObject",ce,le),ne&&ba(E,null,Z,"created"),L(de,E,E.scopeId,ce,Z),be){for(const me in be)me!=="value"&&!ol(me)&&o(de,me,null,be[me],W,E.children,Z,Y,je);"value"in be&&o(de,"value",null,be.value),(ie=be.onVnodeBeforeMount)&&tr(ie,Z,E)}ne&&ba(E,null,Z,"beforeMount");const ke=(!Y||Y&&!Y.pendingBranch)&&Pe&&!Pe.persisted;ke&&Pe.beforeEnter(de),r(de,_,P),((ie=be&&be.onVnodeMounted)||ke||ne)&&cn(()=>{ie&&tr(ie,Z,E),ke&&Pe.enter(de),ne&&ba(E,null,Z,"mounted")},Y)},L=(E,_,P,Z,Y)=>{if(P&&f(E,P),Z)for(let W=0;W{for(let ie=de;ie{const le=_.el=E.el;let{patchFlag:de,dynamicChildren:ie,dirs:xe}=_;de|=E.patchFlag&16;const be=E.props||yt,Se=_.props||yt;let Pe;P&&wa(P,!1),(Pe=Se.onVnodeBeforeUpdate)&&tr(Pe,P,_,E),xe&&ba(_,E,P,"beforeUpdate"),P&&wa(P,!0);const ne=Y&&_.type!=="foreignObject";if(ie?k(E.dynamicChildren,ie,le,P,Z,ne,W):ce||ye(E,_,le,null,P,Z,ne,W,!1),de>0){if(de&16)A(le,_,be,Se,P,Z,Y);else if(de&2&&be.class!==Se.class&&o(le,"class",null,Se.class,Y),de&4&&o(le,"style",be.style,Se.style,Y),de&8){const ke=_.dynamicProps;for(let me=0;me{Pe&&tr(Pe,P,_,E),xe&&ba(_,E,P,"updated")},Z)},k=(E,_,P,Z,Y,W,ce)=>{for(let le=0;le<_.length;le++){const de=E[le],ie=_[le],xe=de.el&&(de.type===Me||!Oa(de,ie)||de.shapeFlag&70)?d(de.el):P;y(de,ie,xe,null,Z,Y,W,ce,!0)}},A=(E,_,P,Z,Y,W,ce)=>{if(P!==Z){if(P!==yt)for(const le in P)!ol(le)&&!(le in Z)&&o(E,le,P[le],null,ce,_.children,Y,W,je);for(const le in Z){if(ol(le))continue;const de=Z[le],ie=P[le];de!==ie&&le!=="value"&&o(E,le,ie,de,ce,_.children,Y,W,je)}"value"in Z&&o(E,"value",P.value,Z.value)}},M=(E,_,P,Z,Y,W,ce,le,de)=>{const ie=_.el=E?E.el:s(""),xe=_.anchor=E?E.anchor:s("");let{patchFlag:be,dynamicChildren:Se,slotScopeIds:Pe}=_;Pe&&(le=le?le.concat(Pe):Pe),E==null?(r(ie,P,Z),r(xe,P,Z),T(_.children,P,xe,Y,W,ce,le,de)):be>0&&be&64&&Se&&E.dynamicChildren?(k(E.dynamicChildren,Se,P,Y,W,ce,le),(_.key!=null||Y&&_===Y.subTree)&&zv(E,_,!0)):ye(E,_,P,xe,Y,W,ce,le,de)},N=(E,_,P,Z,Y,W,ce,le,de)=>{_.slotScopeIds=le,E==null?_.shapeFlag&512?Y.ctx.activate(_,P,Z,ce,de):ee(_,P,Z,Y,W,ce,de):ae(E,_,de)},ee=(E,_,P,Z,Y,W,ce)=>{const le=E.component=e4(E,Z,Y);if(_u(E)&&(le.ctx.renderer=K),t4(le),le.asyncDep){if(Y&&Y.registerDep(le,oe),!E.el){const de=le.subTree=G(wn);p(null,de,_,P)}return}oe(le,E,_,P,Y,W,ce)},ae=(E,_,P)=>{const Z=_.component=E.component;if(m3(E,_,P))if(Z.asyncDep&&!Z.asyncResolved){Q(Z,_,P);return}else Z.next=_,u3(Z.update),Z.update();else _.el=E.el,Z.vnode=_},oe=(E,_,P,Z,Y,W,ce)=>{const le=()=>{if(E.isMounted){let{next:xe,bu:be,u:Se,parent:Pe,vnode:ne}=E,ke=xe,me;wa(E,!1),xe?(xe.el=ne.el,Q(E,xe,ce)):xe=ne,be&&sl(be),(me=xe.props&&xe.props.onVnodeBeforeUpdate)&&tr(me,Pe,xe,ne),wa(E,!0);const Oe=nc(E),X=E.subTree;E.subTree=Oe,y(X,Oe,d(X.el),U(X),E,Y,W),xe.el=Oe.el,ke===null&&v3(E,Oe.el),Se&&cn(Se,Y),(me=xe.props&&xe.props.onVnodeUpdated)&&cn(()=>tr(me,Pe,xe,ne),Y)}else{let xe;const{el:be,props:Se}=_,{bm:Pe,m:ne,parent:ke}=E,me=Ii(_);if(wa(E,!1),Pe&&sl(Pe),!me&&(xe=Se&&Se.onVnodeBeforeMount)&&tr(xe,ke,_),wa(E,!0),be&&te){const Oe=()=>{E.subTree=nc(E),te(be,E.subTree,E,Y,null)};me?_.type.__asyncLoader().then(()=>!E.isUnmounted&&Oe()):Oe()}else{const Oe=E.subTree=nc(E);y(null,Oe,P,Z,E,Y,W),_.el=Oe.el}if(ne&&cn(ne,Y),!me&&(xe=Se&&Se.onVnodeMounted)){const Oe=_;cn(()=>tr(xe,ke,Oe),Y)}(_.shapeFlag&256||ke&&Ii(ke.vnode)&&ke.vnode.shapeFlag&256)&&E.a&&cn(E.a,Y),E.isMounted=!0,_=P=Z=null}},de=E.effect=new th(le,()=>lh(ie),E.scope),ie=E.update=()=>de.run();ie.id=E.uid,wa(E,!0),ie()},Q=(E,_,P)=>{_.component=E;const Z=E.vnode.props;E.vnode=_,E.next=null,F3(E,_.props,Z,P),Z3(E,_.children,P),Wo(),xf(),qo()},ye=(E,_,P,Z,Y,W,ce,le,de=!1)=>{const ie=E&&E.children,xe=E?E.shapeFlag:0,be=_.children,{patchFlag:Se,shapeFlag:Pe}=_;if(Se>0){if(Se&128){Re(ie,be,P,Z,Y,W,ce,le,de);return}else if(Se&256){_e(ie,be,P,Z,Y,W,ce,le,de);return}}Pe&8?(xe&16&&je(ie,Y,W),be!==ie&&c(P,be)):xe&16?Pe&16?Re(ie,be,P,Z,Y,W,ce,le,de):je(ie,Y,W,!0):(xe&8&&c(P,""),Pe&16&&T(be,P,Z,Y,W,ce,le,de))},_e=(E,_,P,Z,Y,W,ce,le,de)=>{E=E||ko,_=_||ko;const ie=E.length,xe=_.length,be=Math.min(ie,xe);let Se;for(Se=0;Sexe?je(E,Y,W,!0,!1,be):T(_,P,Z,Y,W,ce,le,de,be)},Re=(E,_,P,Z,Y,W,ce,le,de)=>{let ie=0;const xe=_.length;let be=E.length-1,Se=xe-1;for(;ie<=be&&ie<=Se;){const Pe=E[ie],ne=_[ie]=de?na(_[ie]):lr(_[ie]);if(Oa(Pe,ne))y(Pe,ne,P,null,Y,W,ce,le,de);else break;ie++}for(;ie<=be&&ie<=Se;){const Pe=E[be],ne=_[Se]=de?na(_[Se]):lr(_[Se]);if(Oa(Pe,ne))y(Pe,ne,P,null,Y,W,ce,le,de);else break;be--,Se--}if(ie>be){if(ie<=Se){const Pe=Se+1,ne=PeSe)for(;ie<=be;)Fe(E[ie],Y,W,!0),ie++;else{const Pe=ie,ne=ie,ke=new Map;for(ie=ne;ie<=Se;ie++){const Ne=_[ie]=de?na(_[ie]):lr(_[ie]);Ne.key!=null&&ke.set(Ne.key,ie)}let me,Oe=0;const X=Se-ne+1;let ue=!1,Ce=0;const ut=new Array(X);for(ie=0;ie=X){Fe(Ne,Y,W,!0);continue}let wt;if(Ne.key!=null)wt=ke.get(Ne.key);else for(me=ne;me<=Se;me++)if(ut[me-ne]===0&&Oa(Ne,_[me])){wt=me;break}wt===void 0?Fe(Ne,Y,W,!0):(ut[wt-ne]=ie+1,wt>=Ce?Ce=wt:ue=!0,y(Ne,_[wt],P,null,Y,W,ce,le,de),Oe++)}const Ze=ue?K3(ut):ko;for(me=Ze.length-1,ie=X-1;ie>=0;ie--){const Ne=ne+ie,wt=_[Ne],pt=Ne+1{const{el:W,type:ce,transition:le,children:de,shapeFlag:ie}=E;if(ie&6){Ue(E.component.subTree,_,P,Z);return}if(ie&128){E.suspense.move(_,P,Z);return}if(ie&64){ce.move(E,_,P,K);return}if(ce===Me){r(W,_,P);for(let be=0;bele.enter(W),Y);else{const{leave:be,delayLeave:Se,afterLeave:Pe}=le,ne=()=>r(W,_,P),ke=()=>{be(W,()=>{ne(),Pe&&Pe()})};Se?Se(W,ne,ke):ke()}else r(W,_,P)},Fe=(E,_,P,Z=!1,Y=!1)=>{const{type:W,props:ce,ref:le,children:de,dynamicChildren:ie,shapeFlag:xe,patchFlag:be,dirs:Se}=E;if(le!=null&&cd(le,null,P,E,!0),xe&256){_.ctx.deactivate(E);return}const Pe=xe&1&&Se,ne=!Ii(E);let ke;if(ne&&(ke=ce&&ce.onVnodeBeforeUnmount)&&tr(ke,_,E),xe&6)Ae(E.component,P,Z);else{if(xe&128){E.suspense.unmount(P,Z);return}Pe&&ba(E,null,_,"beforeUnmount"),xe&64?E.type.remove(E,_,P,Y,K,Z):ie&&(W!==Me||be>0&&be&64)?je(ie,_,P,!1,!0):(W===Me&&be&384||!Y&&xe&16)&&je(de,_,P),Z&&fe(E)}(ne&&(ke=ce&&ce.onVnodeUnmounted)||Pe)&&cn(()=>{ke&&tr(ke,_,E),Pe&&ba(E,null,_,"unmounted")},P)},fe=E=>{const{type:_,el:P,anchor:Z,transition:Y}=E;if(_===Me){$e(P,Z);return}if(_===Li){w(E);return}const W=()=>{a(P),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(E.shapeFlag&1&&Y&&!Y.persisted){const{leave:ce,delayLeave:le}=Y,de=()=>ce(P,W);le?le(E.el,W,de):de()}else W()},$e=(E,_)=>{let P;for(;E!==_;)P=h(E),a(E),E=P;a(_)},Ae=(E,_,P)=>{const{bum:Z,scope:Y,update:W,subTree:ce,um:le}=E;Z&&sl(Z),Y.stop(),W&&(W.active=!1,Fe(ce,E,_,P)),le&&cn(le,_),cn(()=>{E.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},je=(E,_,P,Z=!1,Y=!1,W=0)=>{for(let ce=W;ceE.shapeFlag&6?U(E.component.subTree):E.shapeFlag&128?E.suspense.next():h(E.anchor||E.el),R=(E,_,P)=>{E==null?_._vnode&&Fe(_._vnode,null,null,!0):y(_._vnode||null,E,_,null,null,null,P),xf(),bv(),_._vnode=E},K={p:y,um:Fe,m:Ue,r:fe,mt:ee,mc:T,pc:ye,pbc:k,n:U,o:e};let H,te;return t&&([H,te]=t(K)),{render:R,hydrate:H,createApp:H3(R,H)}}function wa({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zv(e,t,n=!1){const r=e.children,a=t.children;if(Ie(r)&&Ie(a))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const G3=e=>e.__isTeleport,Me=Symbol.for("v-fgt"),Du=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),Li=Symbol.for("v-stc"),Ri=[];let Yn=null;function C(e=!1){Ri.push(Yn=e?null:[])}function W3(){Ri.pop(),Yn=Ri[Ri.length-1]||null}let as=1;function Lf(e){as+=e}function Fv(e){return e.dynamicChildren=as>0?Yn||ko:null,W3(),as>0&&Yn&&Yn.push(e),e}function S(e,t,n,r,a,o){return Fv(O(e,t,n,r,a,o,!0))}function se(e,t,n,r,a){return Fv(G(e,t,n,r,a,!0))}function Pl(e){return e?e.__v_isVNode===!0:!1}function Oa(e,t){return e.type===t.type&&e.key===t.key}const Mu="__vInternal",jv=({key:e})=>e??null,ul=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pt(e)||Vt(e)||Ve(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,a=null,o=e===Me?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jv(t),ref:t&&ul(t),scopeId:xu,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:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Kt};return s?(fh(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Pt(n)?8:16),as>0&&!i&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const G=q3;function q3(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===Mv)&&(e=wn),Pl(e)){const s=$r(e,t,!0);return n&&fh(s,n),as>0&&!o&&Yn&&(s.shapeFlag&6?Yn[Yn.indexOf(e)]=s:Yn.push(s)),s.patchFlag|=-2,s}if(o4(e)&&(e=e.__vccOpts),t){t=Q3(t);let{class:s,style:l}=t;s&&!Pt(s)&&(t.class=q(s)),bt(l)&&(dv(l)&&!Ie(l)&&(l=Ot({},l)),t.style=Et(l))}const i=Pt(e)?1:g3(e)?128:G3(e)?64:bt(e)?4:Ve(e)?2:0;return O(e,t,n,r,a,i,o,!0)}function Q3(e){return e?dv(e)||Mu in e?Ot({},e):e:null}function $r(e,t,n=!1){const{props:r,ref:a,patchFlag:o,children:i}=e,s=t?Ke(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&jv(s),ref:t&&t.ref?n&&a?Ie(a)?a.concat(ul(t)):[a,ul(t)]:ul(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$r(e.ssContent),ssFallback:e.ssFallback&&$r(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function J(e=" ",t=0){return G(Du,null,e,t)}function bte(e,t){const n=G(Li,null,e);return n.staticCount=t,n}function $(e="",t=!1){return t?(C(),se(wn,null,e)):G(wn,null,e)}function lr(e){return e==null||typeof e=="boolean"?G(wn):Ie(e)?G(Me,null,e.slice()):typeof e=="object"?na(e):G(Du,null,String(e))}function na(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function fh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),fh(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Mu in t)?t._ctx=Kt:a===3&&Kt&&(Kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),r&64?(n=16,t=[J(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ke(...e){const t={};for(let n=0;nFt||Kt;let ph,oo,Rf="__VUE_INSTANCE_SETTERS__";(oo=ed()[Rf])||(oo=ed()[Rf]=[]),oo.push(e=>Ft=e),ph=e=>{oo.length>1?oo.forEach(t=>t(e)):oo[0](e)};const Lo=e=>{ph(e),e.scope.on()},za=()=>{Ft&&Ft.scope.off(),ph(null)};function Uv(e){return e.vnode.shapeFlag&4}let os=!1;function t4(e,t=!1){os=t;const{props:n,children:r}=e.vnode,a=Uv(e);z3(e,n,a,t),U3(e,r);const o=a?n4(e,t):void 0;return os=!1,o}function n4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=hv(new Proxy(e.ctx,P3));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?Yv(e):null;Lo(e),Wo();const o=ca(r,e,0,[e.props,a]);if(qo(),za(),Km(o)){if(o.then(za,za),t)return o.then(i=>{$f(e,i,t)}).catch(i=>{Cu(i,e,0)});e.asyncDep=o}else $f(e,o,t)}else Zv(e,t)}function $f(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=vv(t)),Zv(e,n)}let Hf;function Zv(e,t,n){const r=e.type;if(!e.render){if(!t&&Hf&&!r.render){const a=r.template||dh(e).template;if(a){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ot(Ot({isCustomElement:o,delimiters:s},i),l);r.render=Hf(a,u)}}e.render=r.render||Vn}Lo(e),Wo(),B3(e),qo(),za()}function r4(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fn(e,"get","$attrs"),t[n]}}))}function Yv(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return r4(e)},slots:e.slots,emit:e.emit,expose:t}}function Au(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vv(hv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ni)return Ni[n](e)},has(t,n){return n in t||n in Ni}}))}function a4(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function o4(e){return Ve(e)&&"__vccOpts"in e}const B=(e,t)=>i3(e,t,os);function De(e,t,n){const r=arguments.length;return r===2?bt(t)&&!Ie(t)?Pl(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Pl(n)&&(n=[n]),G(e,t,n))}const i4=Symbol.for("v-scx"),s4=()=>Kn(i4),l4="3.3.4",u4="http://www.w3.org/2000/svg",Pa=typeof document<"u"?document:null,zf=Pa&&Pa.createElement("template"),c4={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 a=t?Pa.createElementNS(u4,e):Pa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Pa.createTextNode(e),createComment:e=>Pa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,o){const i=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{zf.innerHTML=r?`${e}`:e;const s=zf.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function d4(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 h4(e,t,n){const r=e.style,a=Pt(n);if(n&&!a){if(t&&!Pt(t))for(const o in t)n[o]==null&&dd(r,o,"");for(const o in n)dd(r,o,n[o])}else{const o=r.display;a?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Ff=/\s*!important$/;function dd(e,t,n){if(Ie(n))n.forEach(r=>dd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=f4(e,t);Ff.test(n)?e.setProperty(Ga(r),n.replace(Ff,""),"important"):e[r]=n}}const jf=["Webkit","Moz","ms"],oc={};function f4(e,t){const n=oc[t];if(n)return n;let r=fr(t);if(r!=="filter"&&r in e)return oc[t]=r;r=wu(r);for(let a=0;aic||(b4.then(()=>ic=0),ic=Date.now());function k4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;On(C4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function C4(e,t){if(Ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const Yf=/^on[a-z]/,E4=(e,t,n,r,a=!1,o,i,s,l)=>{t==="class"?d4(e,r,a):t==="style"?h4(e,n,r):gu(t)?q0(t)||g4(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):x4(e,t,r,a))?m4(e,t,r,o,i,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),p4(e,t,r,a))};function x4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Yf.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Yf.test(t)&&Pt(n)?!1:t in e}function bs(e){const t=ys();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>fd(o,a))},r=()=>{const a=e(t.proxy);hd(t.subTree,a),n(a)};b3(r),ft(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),gr(()=>a.disconnect())})}function hd(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hd(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fd(e.el,t);else if(e.type===Me)e.children.forEach(n=>hd(n,t));else if(e.type===Li){let{el:n,anchor:r}=e;for(;n&&(fd(n,t),n!==r);)n=n.nextSibling}}function fd(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Gr="transition",pi="animation",ja=(e,{slots:t})=>De(C3,Kv(e),t);ja.displayName="Transition";const Vv={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},S4=ja.props=Ot({},Sv,Vv),ka=(e,t=[])=>{Ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vf=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function Kv(e){const t={};for(const M in e)M in Vv||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=_4(a),y=g&&g[0],v=g&&g[1],{onBeforeEnter:p,onEnter:b,onEnterCancelled:m,onLeave:w,onLeaveCancelled:D,onBeforeAppear:I=p,onAppear:L=b,onAppearCancelled:T=m}=t,x=(M,N,ee)=>{ea(M,N?c:s),ea(M,N?u:i),ee&&ee()},k=(M,N)=>{M._isLeaving=!1,ea(M,d),ea(M,f),ea(M,h),N&&N()},A=M=>(N,ee)=>{const ae=M?L:b,oe=()=>x(N,M,ee);ka(ae,[N,oe]),Kf(()=>{ea(N,M?l:o),_r(N,M?c:s),Vf(ae)||Gf(N,r,y,oe)})};return Ot(t,{onBeforeEnter(M){ka(p,[M]),_r(M,o),_r(M,i)},onBeforeAppear(M){ka(I,[M]),_r(M,l),_r(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,N){M._isLeaving=!0;const ee=()=>k(M,N);_r(M,d),Wv(),_r(M,h),Kf(()=>{M._isLeaving&&(ea(M,d),_r(M,f),Vf(w)||Gf(M,r,v,ee))}),ka(w,[M,ee])},onEnterCancelled(M){x(M,!1),ka(m,[M])},onAppearCancelled(M){x(M,!0),ka(T,[M])},onLeaveCancelled(M){k(M),ka(D,[M])}})}function _4(e){if(e==null)return null;if(bt(e))return[sc(e.enter),sc(e.leave)];{const t=sc(e);return[t,t]}}function sc(e){return vb(e)}function _r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ea(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 Kf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let T4=0;function Gf(e,t,n,r){const a=e._endId=++T4,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=Gv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=f=>{f.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[g]||"").split(", "),a=r(`${Gr}Delay`),o=r(`${Gr}Duration`),i=Wf(a,o),s=r(`${pi}Delay`),l=r(`${pi}Duration`),u=Wf(s,l);let c=null,d=0,h=0;t===Gr?i>0&&(c=Gr,d=i,h=o.length):t===pi?u>0&&(c=pi,d=u,h=l.length):(d=Math.max(i,u),c=d>0?i>u?Gr:pi:null,h=c?c===Gr?o.length:l.length:0);const f=c===Gr&&/\b(transform|all)(,|$)/.test(r(`${Gr}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function Wf(e,t){for(;e.lengthqf(n)+qf(e[r])))}function qf(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Wv(){return document.body.offsetHeight}const qv=new WeakMap,Qv=new WeakMap,Xv={name:"TransitionGroup",props:Ot({},S4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ys(),r=xv();let a,o;return Dv(()=>{if(!a.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!B4(a[0].el,n.vnode.el,i))return;a.forEach(A4),a.forEach(O4);const s=a.filter(P4);Wv(),s.forEach(l=>{const u=l.el,c=u.style;_r(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,ea(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=tt(e),s=Kv(i);let l=i.tag||Me;a=o,o=t.default?uh(t.default()):[];for(let u=0;udelete e.mode;Xv.props;const M4=Xv;function A4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function O4(e){Qv.set(e,e.el.getBoundingClientRect())}function P4(e){const t=qv.get(e),n=Qv.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${a}px)`,o.transitionDuration="0s",e}}function B4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=Gv(r);return a.removeChild(r),o}const Qf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>sl(t,n):t};function I4(e){e.target.composing=!0}function Xf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const N4={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Qf(a);const o=r||a.props&&a.props.type==="number";fo(e,t?"change":"input",i=>{if(i.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Jc(s)),e._assign(s)}),n&&fo(e,"change",()=>{e.value=e.value.trim()}),t||(fo(e,"compositionstart",I4),fo(e,"compositionend",Xf),fo(e,"change",Xf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},o){if(e._assign=Qf(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&Jc(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},L4=["ctrl","shift","alt","meta"],R4={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)=>L4.some(n=>e[`${n}Key`]&&!t.includes(n))},Mt=(e,t)=>(n,...r)=>{for(let a=0;an=>{if(!("key"in n))return;const r=Ga(n.key);if(t.some(a=>a===r||$4[a]===r))return e(n)},pd={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mi(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),mi(e,!0),r.enter(e)):r.leave(e,()=>{mi(e,!1)}):mi(e,t))},beforeUnmount(e,{value:t}){mi(e,t)}};function mi(e,t){e.style.display=t?e._vod:"none"}const H4=Ot({patchProp:E4},c4);let Jf;function z4(){return Jf||(Jf=Y3(H4))}const Jv=(...e)=>{const t=z4().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=F4(r);if(!a)return;const o=t._component;!Ve(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const i=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t};function F4(e){return Pt(e)?document.querySelector(e):e}function j4(){return eg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function eg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const U4=typeof Proxy=="function",Z4="devtools-plugin:setup",Y4="plugin:settings:set";let io,md;function V4(){var e;return io!==void 0||(typeof window<"u"&&window.performance?(io=!0,md=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(io=!0,md=global.perf_hooks.performance):io=!1),io}function K4(){return V4()?md.now():Date.now()}class G4{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const s=t.settings[i];r[i]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(a),s=JSON.parse(i);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}o=i},now(){return K4()}},n&&n.on(Y4,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,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 W4(e,t){const n=e,r=eg(),a=j4(),o=U4&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(Z4,e,t);else{const i=o?new G4(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*! +var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ct=(e,t,n)=>(sb(e,typeof t!="symbol"?t+"":t,n),n),tc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var re=(e,t,n)=>(tc(e,t,"read from private field"),n?n.call(e):t.get(e)),Qe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},$t=(e,t,n,r)=>(tc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ve=(e,t,n)=>(tc(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();const lb="modulepreload",ub=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},mf={},qe=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=ub(o,r),o in mf)return;mf[o]=!0;const i=o.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===o&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":lb,i||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};function W0(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a!!n[a.toLowerCase()]:a=>!!n[a]}const yt={},ko=[],Vn=()=>{},cb=()=>!1,db=/^on[^a-z]/,gu=e=>db.test(e),q0=e=>e.startsWith("onUpdate:"),Ot=Object.assign,Q0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hb=Object.prototype.hasOwnProperty,at=(e,t)=>hb.call(e,t),Ie=Array.isArray,Co=e=>yu(e)==="[object Map]",Vm=e=>yu(e)==="[object Set]",Ve=e=>typeof e=="function",Pt=e=>typeof e=="string",X0=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",Km=e=>bt(e)&&Ve(e.then)&&Ve(e.catch),Gm=Object.prototype.toString,yu=e=>Gm.call(e),fb=e=>yu(e).slice(8,-1),Wm=e=>yu(e)==="[object Object]",J0=e=>Pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ol=W0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pb=/-(\w)/g,fr=bu(e=>e.replace(pb,(t,n)=>n?n.toUpperCase():"")),mb=/\B([A-Z])/g,Ga=bu(e=>e.replace(mb,"-$1").toLowerCase()),wu=bu(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=bu(e=>e?`on${wu(e)}`:""),Xi=(e,t)=>!Object.is(e,t),sl=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Jc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vb=e=>{const t=Pt(e)?Number(e):NaN;return isNaN(t)?e:t};let vf;const ed=()=>vf||(vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(Ie(e)){const t={};for(let n=0;n{if(n){const r=n.split(yb);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Pt(e))t=e;else if(Ie(e))for(let n=0;nPt(e)?e:e==null?"":Ie(e)||bt(e)&&(e.toString===Gm||!Ve(e.toString))?JSON.stringify(e,Qm,2):String(e),Qm=(e,t)=>t&&t.__v_isRef?Qm(e,t.value):Co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Vm(t)?{[`Set(${t.size})`]:[...t.values()]}:bt(t)&&!Ie(t)&&!Wm(t)?String(t):t;let Un;class Xm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Un,!t&&Un&&(this.index=(Un.scopes||(Un.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Un;try{return Un=this,t()}finally{Un=n}}}on(){Un=this}off(){Un=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},Jm=e=>(e.w&fa)>0,ev=e=>(e.n&fa)>0,_b=({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)&&s.push(u)})}else switch(n!==void 0&&s.push(i.get(n)),t){case"add":Ie(e)?J0(n)&&s.push(i.get("length")):(s.push(i.get(Ha)),Co(e)&&s.push(i.get(nd)));break;case"delete":Ie(e)||(s.push(i.get(Ha)),Co(e)&&s.push(i.get(nd)));break;case"set":Co(e)&&s.push(i.get(Ha));break}if(s.length===1)s[0]&&rd(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);rd(eh(l))}}function rd(e,t){const n=Ie(e)?e:[...e];for(const r of n)r.computed&&yf(r);for(const r of n)r.computed||yf(r)}function yf(e,t){(e!==Zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Db(e,t){var n;return(n=_l.get(e))==null?void 0:n.get(t)}const Mb=W0("__proto__,__v_isRef,__isVue"),rv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(X0)),Ab=nh(),Ob=nh(!1,!0),Pb=nh(!0),bf=Bb();function Bb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=tt(this);for(let o=0,i=this.length;o{e[t]=function(...n){Wo();const r=tt(this)[t].apply(this,n);return qo(),r}}),e}function Ib(e){const t=tt(this);return fn(t,"has",e),t.hasOwnProperty(e)}function nh(e=!1,t=!1){return function(r,a,o){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&o===(e?t?qb:lv:t?sv:iv).get(r))return r;const i=Ie(r);if(!e){if(i&&at(bf,a))return Reflect.get(bf,a,o);if(a==="hasOwnProperty")return Ib}const s=Reflect.get(r,a,o);return(X0(a)?rv.has(a):Mb(a))||(e||fn(r,"get",a),t)?s:Vt(s)?i&&J0(a)?s:s.value:bt(s)?e?cv(s):zr(s):s}}const Nb=av(),Lb=av(!0);function av(e=!1){return function(n,r,a,o){let i=n[r];if(za(i)&&Vt(i)&&!Vt(a))return!1;if(!e&&(!Tl(a)&&!za(a)&&(i=tt(i),a=tt(a)),!Ie(n)&&Vt(i)&&!Vt(a)))return i.value=a,!0;const s=Ie(n)&&J0(r)?Number(r)e,ku=e=>Reflect.getPrototypeOf(e);function Ls(e,t,n=!1,r=!1){e=e.__v_raw;const a=tt(e),o=tt(t);n||(t!==o&&fn(a,"get",t),fn(a,"get",o));const{has:i}=ku(a),s=r?rh:n?ih:Ji;if(i.call(a,t))return s(e.get(t));if(i.call(a,o))return s(e.get(o));e!==a&&e.get(t)}function Rs(e,t=!1){const n=this.__v_raw,r=tt(n),a=tt(e);return t||(e!==a&&fn(r,"has",e),fn(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function $s(e,t=!1){return e=e.__v_raw,!t&&fn(tt(e),"iterate",Ha),Reflect.get(e,"size",e)}function wf(e){e=tt(e);const t=tt(this);return ku(t).has.call(t,e)||(t.add(e),Rr(t,"add",e,e)),this}function kf(e,t){t=tt(t);const n=tt(this),{has:r,get:a}=ku(n);let o=r.call(n,e);o||(e=tt(e),o=r.call(n,e));const i=a.call(n,e);return n.set(e,t),o?Xi(t,i)&&Rr(n,"set",e,t):Rr(n,"add",e,t),this}function Cf(e){const t=tt(this),{has:n,get:r}=ku(t);let a=n.call(t,e);a||(e=tt(e),a=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return a&&Rr(t,"delete",e,void 0),o}function Ef(){const e=tt(this),t=e.size!==0,n=e.clear();return t&&Rr(e,"clear",void 0,void 0),n}function Hs(e,t){return function(r,a){const o=this,i=o.__v_raw,s=tt(i),l=t?rh:e?ih:Ji;return!e&&fn(s,"iterate",Ha),i.forEach((u,c)=>r.call(a,l(u),l(c),o))}}function Fs(e,t,n){return function(...r){const a=this.__v_raw,o=tt(a),i=Co(o),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=a[e](...r),c=n?rh:t?ih:Ji;return!t&&fn(o,"iterate",l?nd:Ha),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:s?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function Kr(e){return function(...t){return e==="delete"?!1:this}}function jb(){const e={get(o){return Ls(this,o)},get size(){return $s(this)},has:Rs,add:wf,set:kf,delete:Cf,clear:Ef,forEach:Hs(!1,!1)},t={get(o){return Ls(this,o,!1,!0)},get size(){return $s(this)},has:Rs,add:wf,set:kf,delete:Cf,clear:Ef,forEach:Hs(!1,!0)},n={get(o){return Ls(this,o,!0)},get size(){return $s(this,!0)},has(o){return Rs.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Hs(!0,!1)},r={get(o){return Ls(this,o,!0,!0)},get size(){return $s(this,!0)},has(o){return Rs.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Hs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Fs(o,!1,!1),n[o]=Fs(o,!0,!1),t[o]=Fs(o,!1,!0),r[o]=Fs(o,!0,!0)}),[e,n,t,r]}const[Ub,Zb,Yb,Vb]=jb();function ah(e,t){const n=t?e?Vb:Yb:e?Zb:Ub;return(r,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(at(n,a)&&a in r?n:r,a,o)}const Kb={get:ah(!1,!1)},Gb={get:ah(!1,!0)},Wb={get:ah(!0,!1)},iv=new WeakMap,sv=new WeakMap,lv=new WeakMap,qb=new WeakMap;function Qb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xb(e){return e.__v_skip||!Object.isExtensible(e)?0:Qb(fb(e))}function zr(e){return za(e)?e:oh(e,!1,ov,Kb,iv)}function uv(e){return oh(e,!1,zb,Gb,sv)}function cv(e){return oh(e,!0,Fb,Wb,lv)}function oh(e,t,n,r,a){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=a.get(e);if(o)return o;const i=Xb(e);if(i===0)return e;const s=new Proxy(e,i===2?r:n);return a.set(e,s),s}function Eo(e){return za(e)?Eo(e.__v_raw):!!(e&&e.__v_isReactive)}function za(e){return!!(e&&e.__v_isReadonly)}function Tl(e){return!!(e&&e.__v_isShallow)}function dv(e){return Eo(e)||za(e)}function tt(e){const t=e&&e.__v_raw;return t?tt(t):e}function hv(e){return Sl(e,"__v_skip",!0),e}const Ji=e=>bt(e)?zr(e):e,ih=e=>bt(e)?cv(e):e;function fv(e){ua&&Zn&&(e=tt(e),nv(e.dep||(e.dep=eh())))}function pv(e,t){e=tt(e);const n=e.dep;n&&rd(n)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function j(e){return mv(e,!1)}function Jb(e){return mv(e,!0)}function mv(e,t){return Vt(e)?e:new e3(e,t)}class e3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:tt(t),this._value=n?t:Ji(t)}get value(){return fv(this),this._value}set value(t){const n=this.__v_isShallow||Tl(t)||za(t);t=n?t:tt(t),Xi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ji(t),pv(this))}}function pe(e){return Vt(e)?e.value:e}const t3={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Vt(a)&&!Vt(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function vv(e){return Eo(e)?e:new Proxy(e,t3)}function n3(e){const t=Ie(e)?new Array(e.length):{};for(const n in e)t[n]=a3(e,n);return t}class r3{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 Db(tt(this._object),this._key)}}function a3(e,t,n){const r=e[t];return Vt(r)?r:new r3(e,t,n)}class o3{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new th(t,()=>{this._dirty||(this._dirty=!0,pv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tt(this);return fv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function i3(e,t,n=!1){let r,a;const o=Ve(e);return o?(r=e,a=Vn):(r=e.get,a=e.set),new o3(r,a,o||!a,n)}function ca(e,t,n,r){let a;try{a=r?e(...r):e()}catch(o){Cu(o,t,n)}return a}function On(e,t,n,r){if(Ve(e)){const o=ca(e,t,n,r);return o&&Km(o)&&o.catch(i=>{Cu(i,t,n)}),o}const a=[];for(let o=0;o>>1;ts(Wt[r])cr&&Wt.splice(t,1)}function c3(e){Ie(e)?xo.push(...e):(!Tr||!Tr.includes(e,e.allowRecurse?Aa+1:Aa))&&xo.push(e),yv()}function xf(e,t=es?cr+1:0){for(;tts(n)-ts(r)),Aa=0;Aae.id==null?1/0:e.id,d3=(e,t)=>{const n=ts(e)-ts(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wv(e){ad=!1,es=!0,Wt.sort(d3);const t=Vn;try{for(cr=0;crPt(f)?f.trim():f)),d&&(a=n.map(Jc))}let s,l=r[s=il(t)]||r[s=il(fr(t))];!l&&o&&(l=r[s=il(Ga(t))]),l&&On(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,On(u,e,6,a)}}function kv(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const o=e.emits;let i={},s=!1;if(!Ve(e)){const l=u=>{const c=kv(u,t,!0);c&&(s=!0,Ot(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(bt(e)&&r.set(e,null),null):(Ie(o)?o.forEach(l=>i[l]=null):Ot(i,o),bt(e)&&r.set(e,i),i)}function Eu(e,t){return!e||!gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,Ga(t))||at(e,t))}let Kt=null,xu=null;function Dl(e){const t=Kt;return Kt=e,xu=e&&e.type.__scopeId||null,t}function Ln(e){xu=e}function Rn(){xu=null}function F(e,t=Kt,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&Lf(-1);const o=Dl(t);let i;try{i=e(...a)}finally{Dl(o),r._d&&Lf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function nc(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:o,propsOptions:[i],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:h,setupState:f,ctx:g,inheritAttrs:y}=e;let v,p;const b=Dl(e);try{if(n.shapeFlag&4){const w=a||r;v=lr(c.call(w,w,d,o,f,h,g)),p=l}else{const w=t;v=lr(w.length>1?w(o,{attrs:l,slots:s,emit:u}):w(o,null)),p=t.props?l:f3(l)}}catch(w){Ri.length=0,Cu(w,e,1),v=G(wn)}let m=v;if(p&&y!==!1){const w=Object.keys(p),{shapeFlag:D}=m;w.length&&D&7&&(i&&w.some(q0)&&(p=p3(p,i)),m=$r(m,p))}return n.dirs&&(m=$r(m),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),v=m,Dl(b),v}const f3=e=>{let t;for(const n in e)(n==="class"||n==="style"||gu(n))&&((t||(t={}))[n]=e[n]);return t},p3=(e,t)=>{const n={};for(const r in e)(!q0(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function m3(e,t,n){const{props:r,children:a,component:o}=e,{props:i,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Sf(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function y3(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):c3(e)}function Cv(e,t){return Su(e,null,t)}function b3(e,t){return Su(e,null,{flush:"post"})}const zs={};function Le(e,t,n){return Su(e,t,n)}function Su(e,t,{immediate:n,deep:r,flush:a,onTrack:o,onTrigger:i}=yt){var s;const l=Sb()===((s=zt)==null?void 0:s.scope)?zt:null;let u,c=!1,d=!1;if(Vt(e)?(u=()=>e.value,c=Tl(e)):Eo(e)?(u=()=>e,r=!0):Ie(e)?(d=!0,c=e.some(w=>Eo(w)||Tl(w)),u=()=>e.map(w=>{if(Vt(w))return w.value;if(Eo(w))return Ia(w);if(Ve(w))return ca(w,l,2)})):Ve(e)?t?u=()=>ca(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),On(e,l,3,[f])}:u=Vn,t&&r){const w=u;u=()=>Ia(w())}let h,f=w=>{h=b.onStop=()=>{ca(w,l,4)}},g;if(os)if(f=Vn,t?n&&On(t,l,3,[u(),d?[]:void 0,f]):u(),a==="sync"){const w=s4();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Vn;let y=d?new Array(e.length).fill(zs):zs;const v=()=>{if(b.active)if(t){const w=b.run();(r||c||(d?w.some((D,I)=>Xi(D,y[I])):Xi(w,y)))&&(h&&h(),On(t,l,3,[w,y===zs?void 0:d&&y[0]===zs?[]:y,f]),y=w)}else b.run()};v.allowRecurse=!!t;let p;a==="sync"?p=v:a==="post"?p=()=>cn(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),p=()=>lh(v));const b=new th(u,p);t?n?v():y=b.run():a==="post"?cn(b.run.bind(b),l&&l.suspense):b.run();const m=()=>{b.stop(),l&&l.scope&&Q0(l.scope.effects,b)};return g&&g.push(m),m}function w3(e,t,n){const r=this.proxy,a=Pt(e)?e.includes(".")?Ev(r,e):()=>r[e]:e.bind(r,r);let o;Ve(t)?o=t:(o=t.handler,n=t);const i=zt;Lo(this);const s=Su(a,o.bind(r),n);return i?Lo(i):Fa(),s}function Ev(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{Ia(n,t)});else if(Wm(e))for(const n in e)Ia(e[n],t);return e}function Ml(e,t){const n=Kt;if(n===null)return e;const r=Au(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const xn=[Function,Array],Sv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xn,onEnter:xn,onAfterEnter:xn,onEnterCancelled:xn,onBeforeLeave:xn,onLeave:xn,onAfterLeave:xn,onLeaveCancelled:xn,onBeforeAppear:xn,onAppear:xn,onAfterAppear:xn,onAppearCancelled:xn},k3={name:"BaseTransition",props:Sv,setup(e,{slots:t}){const n=ys(),r=xv();let a;return()=>{const o=t.default&&uh(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const y of o)if(y.type!==wn){i=y;break}}const s=tt(e),{mode:l}=s;if(r.isLeaving)return rc(i);const u=_f(i);if(!u)return rc(i);const c=ns(u,s,r,n);rs(u,c);const d=n.subTree,h=d&&_f(d);let f=!1;const{getTransitionKey:g}=u.type;if(g){const y=g();a===void 0?a=y:y!==a&&(a=y,f=!0)}if(h&&h.type!==wn&&(!Oa(u,h)||f)){const y=ns(h,s,r,n);if(rs(h,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},rc(i);l==="in-out"&&u.type!==wn&&(y.delayLeave=(v,p,b)=>{const m=_v(r,h);m[String(h.key)]=h,v._leaveCb=()=>{p(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return i}}},C3=k3;function _v(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 ns(e,t,n,r){const{appear:a,mode:o,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:y,onAppear:v,onAfterAppear:p,onAppearCancelled:b}=t,m=String(e.key),w=_v(n,e),D=(T,x)=>{T&&On(T,r,9,x)},I=(T,x)=>{const k=x[1];D(T,x),Ie(T)?T.every(A=>A.length<=1)&&k():T.length<=1&&k()},L={mode:o,persisted:i,beforeEnter(T){let x=s;if(!n.isMounted)if(a)x=y||s;else return;T._leaveCb&&T._leaveCb(!0);const k=w[m];k&&Oa(e,k)&&k.el._leaveCb&&k.el._leaveCb(),D(x,[T])},enter(T){let x=l,k=u,A=c;if(!n.isMounted)if(a)x=v||l,k=p||u,A=b||c;else return;let M=!1;const N=T._enterCb=ee=>{M||(M=!0,ee?D(A,[T]):D(k,[T]),L.delayedLeave&&L.delayedLeave(),T._enterCb=void 0)};x?I(x,[T,N]):N()},leave(T,x){const k=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return x();D(d,[T]);let A=!1;const M=T._leaveCb=N=>{A||(A=!0,x(),N?D(g,[T]):D(f,[T]),T._leaveCb=void 0,w[k]===e&&delete w[k])};w[k]=e,h?I(h,[T,M]):M()},clone(T){return ns(T,t,n,r)}};return L}function rc(e){if(_u(e))return e=$r(e),e.children=null,e}function _f(e){return _u(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(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 uh(e,t=!1,n){let r=[],a=0;for(let o=0;o1)for(let o=0;oOt({name:e.name},t,{setup:e}))():e}const Ii=e=>!!e.type.__asyncLoader,_u=e=>e.type.__isKeepAlive;function E3(e,t){Tv(e,"a",t)}function x3(e,t){Tv(e,"da",t)}function Tv(e,t,n=zt){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Tu(t,r,n),n){let a=n.parent;for(;a&&a.parent;)_u(a.parent.vnode)&&S3(r,t,n,a),a=a.parent}}function S3(e,t,n,r){const a=Tu(t,e,r,!0);gr(()=>{Q0(r[t],a)},n)}function Tu(e,t,n=zt,r=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wo(),Lo(n);const s=On(t,n,e,i);return Fa(),qo(),s});return r?a.unshift(o):a.push(o),o}}const jr=e=>(t,n=zt)=>(!os||e==="sp")&&Tu(e,(...r)=>t(...r),n),_3=jr("bm"),ft=jr("m"),T3=jr("bu"),Dv=jr("u"),Wa=jr("bum"),gr=jr("um"),D3=jr("sp"),M3=jr("rtg"),A3=jr("rtc");function O3(e,t=zt){Tu("ec",e,t)}const ch="components";function Gn(e,t){return Av(ch,e,!0,t)||e}const Mv=Symbol.for("v-ndc");function va(e){return Pt(e)?Av(ch,e,!1)||e:e||Mv}function Av(e,t,n=!0,r=!1){const a=Kt||zt;if(a){const o=a.type;if(e===ch){const s=a4(o,!1);if(s&&(s===t||s===fr(t)||s===wu(fr(t))))return o}const i=Tf(a[e]||o[e],t)||Tf(a.appContext[e],t);return!i&&r?o:i}}function Tf(e,t){return e&&(e[t]||e[fr(t)]||e[wu(fr(t))])}function ot(e,t,n,r){let a;const o=n&&n[r];if(Ie(e)||Pt(e)){a=new Array(e.length);for(let i=0,s=e.length;it(i,s,void 0,o&&o[s]));else{const i=Object.keys(e);a=new Array(i.length);for(let s=0,l=i.length;s{const o=r.fn(...a);return o&&(o.key=r.key),o}:r.fn)}return e}function z(e,t,n={},r,a){if(Kt.isCE||Kt.parent&&Ii(Kt.parent)&&Kt.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),C();const i=o&&Ov(o(n)),s=se(Me,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function Ov(e){return e.some(t=>Pl(t)?!(t.type===wn||t.type===Me&&!Ov(t.children)):!0)?e:null}function od(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:il(r)]=e[r];return n}const id=e=>e?Uv(e)?Au(e)||e.proxy:id(e.parent):null,Ni=Ot(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=>id(e.parent),$root:e=>id(e.root),$emit:e=>e.emit,$options:e=>dh(e),$forceUpdate:e=>e.f||(e.f=()=>lh(e.update)),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>w3.bind(e)}),ac=(e,t)=>e!==yt&&!e.__isScriptSetup&&at(e,t),P3={get({_:e},t){const{ctx:n,setupState:r,data:a,props:o,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(ac(r,t))return i[t]=1,r[t];if(a!==yt&&at(a,t))return i[t]=2,a[t];if((u=e.propsOptions[0])&&at(u,t))return i[t]=3,o[t];if(n!==yt&&at(n,t))return i[t]=4,n[t];sd&&(i[t]=0)}}const c=Ni[t];let d,h;if(c)return t==="$attrs"&&fn(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==yt&&at(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,at(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:o}=e;return ac(a,t)?(a[t]=n,!0):r!==yt&&at(r,t)?(r[t]=n,!0):at(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:o}},i){let s;return!!n[i]||e!==yt&&at(e,i)||ac(t,i)||(s=o[0])&&at(s,i)||at(r,i)||at(Ni,i)||at(a.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:at(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function It(){return Pv().slots}function Xn(){return Pv().attrs}function Pv(){const e=ys();return e.setupContext||(e.setupContext=Yv(e))}function Df(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let sd=!0;function B3(e){const t=dh(e),n=e.proxy,r=e.ctx;sd=!1,t.beforeCreate&&Mf(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:g,activated:y,deactivated:v,beforeDestroy:p,beforeUnmount:b,destroyed:m,unmounted:w,render:D,renderTracked:I,renderTriggered:L,errorCaptured:T,serverPrefetch:x,expose:k,inheritAttrs:A,components:M,directives:N,filters:ee}=t;if(u&&I3(u,r,null),i)for(const Q in i){const ye=i[Q];Ve(ye)&&(r[Q]=ye.bind(n))}if(a){const Q=a.call(n,n);bt(Q)&&(e.data=zr(Q))}if(sd=!0,o)for(const Q in o){const ye=o[Q],_e=Ve(ye)?ye.bind(n,n):Ve(ye.get)?ye.get.bind(n,n):Vn,Re=!Ve(ye)&&Ve(ye.set)?ye.set.bind(n):Vn,Ue=B({get:_e,set:Re});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:ze=>Ue.value=ze})}if(s)for(const Q in s)Bv(s[Q],r,n,Q);if(l){const Q=Ve(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(ye=>{ll(ye,Q[ye])})}c&&Mf(c,e,"c");function oe(Q,ye){Ie(ye)?ye.forEach(_e=>Q(_e.bind(n))):ye&&Q(ye.bind(n))}if(oe(_3,d),oe(ft,h),oe(T3,f),oe(Dv,g),oe(E3,y),oe(x3,v),oe(O3,T),oe(A3,I),oe(M3,L),oe(Wa,b),oe(gr,w),oe(D3,x),Ie(k))if(k.length){const Q=e.exposed||(e.exposed={});k.forEach(ye=>{Object.defineProperty(Q,ye,{get:()=>n[ye],set:_e=>n[ye]=_e})})}else e.exposed||(e.exposed={});D&&e.render===Vn&&(e.render=D),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),N&&(e.directives=N)}function I3(e,t,n=Vn){Ie(e)&&(e=ld(e));for(const r in e){const a=e[r];let o;bt(a)?"default"in a?o=Kn(a.from||r,a.default,!0):o=Kn(a.from||r):o=Kn(a),Vt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Mf(e,t,n){On(Ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bv(e,t,n,r){const a=r.includes(".")?Ev(n,r):()=>n[r];if(Pt(e)){const o=t[e];Ve(o)&&Le(a,o)}else if(Ve(e))Le(a,e.bind(n));else if(bt(e))if(Ie(e))e.forEach(o=>Bv(o,t,n,r));else{const o=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(o)&&Le(a,o,e)}}function dh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,s=o.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>Al(l,u,i,!0)),Al(l,t,i)),bt(t)&&o.set(t,l),l}function Al(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&Al(e,o,n,!0),a&&a.forEach(i=>Al(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const s=N3[i]||n&&n[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const N3={data:Af,props:Of,emits:Of,methods:Si,computed:Si,beforeCreate:Xt,created:Xt,beforeMount:Xt,mounted:Xt,beforeUpdate:Xt,updated:Xt,beforeDestroy:Xt,beforeUnmount:Xt,destroyed:Xt,unmounted:Xt,activated:Xt,deactivated:Xt,errorCaptured:Xt,serverPrefetch:Xt,components:Si,directives:Si,watch:R3,provide:Af,inject:L3};function Af(e,t){return t?e?function(){return Ot(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function L3(e,t){return Si(ld(e),ld(t))}function ld(e){if(Ie(e)){const t={};for(let n=0;n1)return n&&Ve(t)?t.call(r&&r.proxy):t}}function F3(e,t,n,r=!1){const a={},o={};Sl(o,Mu,1),e.propsDefaults=Object.create(null),Nv(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:uv(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function z3(e,t,n,r){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,s=tt(a),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,f]=Lv(d,t,!0);Ot(i,h),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return bt(e)&&r.set(e,ko),ko;if(Ie(o))for(let c=0;c-1,f[1]=y<0||g-1||at(f,"default"))&&s.push(d)}}}const u=[i,s];return bt(e)&&r.set(e,u),u}function Pf(e){return e[0]!=="$"}function Bf(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function If(e,t){return Bf(e)===Bf(t)}function Nf(e,t){return Ie(t)?t.findIndex(n=>If(n,e)):Ve(t)&&If(t,e)?0:-1}const Rv=e=>e[0]==="_"||e==="$stable",hh=e=>Ie(e)?e.map(lr):[lr(e)],j3=(e,t,n)=>{if(t._n)return t;const r=F((...a)=>hh(t(...a)),n);return r._c=!1,r},$v=(e,t,n)=>{const r=e._ctx;for(const a in e){if(Rv(a))continue;const o=e[a];if(Ve(o))t[a]=j3(a,o,r);else if(o!=null){const i=hh(o);t[a]=()=>i}}},Hv=(e,t)=>{const n=hh(t);e.slots.default=()=>n},U3=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tt(t),Sl(t,"_",n)):$v(t,e.slots={})}else e.slots={},t&&Hv(e,t);Sl(e.slots,Mu,1)},Z3=(e,t,n)=>{const{vnode:r,slots:a}=e;let o=!0,i=yt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:(Ot(a,t),!n&&s===1&&delete a._):(o=!t.$stable,$v(t,a)),i=t}else t&&(Hv(e,t),i={default:1});if(o)for(const s in a)!Rv(s)&&!(s in i)&&delete a[s]};function cd(e,t,n,r,a=!1){if(Ie(e)){e.forEach((h,f)=>cd(h,t&&(Ie(t)?t[f]:t),n,r,a));return}if(Ii(r)&&!a)return;const o=r.shapeFlag&4?Au(r.component)||r.component.proxy:r.el,i=a?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===yt?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Pt(u)?(c[u]=null,at(d,u)&&(d[u]=null)):Vt(u)&&(u.value=null)),Ve(l))ca(l,s,12,[i,c]);else{const h=Pt(l),f=Vt(l);if(h||f){const g=()=>{if(e.f){const y=h?at(d,l)?d[l]:c[l]:l.value;a?Ie(y)&&Q0(y,o):Ie(y)?y.includes(o)||y.push(o):h?(c[l]=[o],at(d,l)&&(d[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else h?(c[l]=i,at(d,l)&&(d[l]=i)):f&&(l.value=i,e.k&&(c[e.k]=i))};i?(g.id=-1,cn(g,n)):g()}}}const cn=y3;function Y3(e){return V3(e)}function V3(e,t){const n=ed();n.__VUE__=!0;const{insert:r,remove:a,patchProp:o,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=Vn,insertStaticContent:g}=e,y=(E,_,P,Z=null,Y=null,W=null,ce=!1,le=null,de=!!_.dynamicChildren)=>{if(E===_)return;E&&!Oa(E,_)&&(Z=U(E),ze(E,Y,W,!0),E=null),_.patchFlag===-2&&(de=!1,_.dynamicChildren=null);const{type:ie,ref:xe,shapeFlag:be}=_;switch(ie){case Du:v(E,_,P,Z);break;case wn:p(E,_,P,Z);break;case Li:E==null&&b(_,P,Z,ce);break;case Me:M(E,_,P,Z,Y,W,ce,le,de);break;default:be&1?D(E,_,P,Z,Y,W,ce,le,de):be&6?N(E,_,P,Z,Y,W,ce,le,de):(be&64||be&128)&&ie.process(E,_,P,Z,Y,W,ce,le,de,K)}xe!=null&&Y&&cd(xe,E&&E.ref,W,_||E,!_)},v=(E,_,P,Z)=>{if(E==null)r(_.el=s(_.children),P,Z);else{const Y=_.el=E.el;_.children!==E.children&&u(Y,_.children)}},p=(E,_,P,Z)=>{E==null?r(_.el=l(_.children||""),P,Z):_.el=E.el},b=(E,_,P,Z)=>{[E.el,E.anchor]=g(E.children,_,P,Z,E.el,E.anchor)},m=({el:E,anchor:_},P,Z)=>{let Y;for(;E&&E!==_;)Y=h(E),r(E,P,Z),E=Y;r(_,P,Z)},w=({el:E,anchor:_})=>{let P;for(;E&&E!==_;)P=h(E),a(E),E=P;a(_)},D=(E,_,P,Z,Y,W,ce,le,de)=>{ce=ce||_.type==="svg",E==null?I(_,P,Z,Y,W,ce,le,de):x(E,_,Y,W,ce,le,de)},I=(E,_,P,Z,Y,W,ce,le)=>{let de,ie;const{type:xe,props:be,shapeFlag:Se,transition:Pe,dirs:ne}=E;if(de=E.el=i(E.type,W,be&&be.is,be),Se&8?c(de,E.children):Se&16&&T(E.children,de,null,Z,Y,W&&xe!=="foreignObject",ce,le),ne&&ba(E,null,Z,"created"),L(de,E,E.scopeId,ce,Z),be){for(const me in be)me!=="value"&&!ol(me)&&o(de,me,null,be[me],W,E.children,Z,Y,je);"value"in be&&o(de,"value",null,be.value),(ie=be.onVnodeBeforeMount)&&tr(ie,Z,E)}ne&&ba(E,null,Z,"beforeMount");const ke=(!Y||Y&&!Y.pendingBranch)&&Pe&&!Pe.persisted;ke&&Pe.beforeEnter(de),r(de,_,P),((ie=be&&be.onVnodeMounted)||ke||ne)&&cn(()=>{ie&&tr(ie,Z,E),ke&&Pe.enter(de),ne&&ba(E,null,Z,"mounted")},Y)},L=(E,_,P,Z,Y)=>{if(P&&f(E,P),Z)for(let W=0;W{for(let ie=de;ie{const le=_.el=E.el;let{patchFlag:de,dynamicChildren:ie,dirs:xe}=_;de|=E.patchFlag&16;const be=E.props||yt,Se=_.props||yt;let Pe;P&&wa(P,!1),(Pe=Se.onVnodeBeforeUpdate)&&tr(Pe,P,_,E),xe&&ba(_,E,P,"beforeUpdate"),P&&wa(P,!0);const ne=Y&&_.type!=="foreignObject";if(ie?k(E.dynamicChildren,ie,le,P,Z,ne,W):ce||ye(E,_,le,null,P,Z,ne,W,!1),de>0){if(de&16)A(le,_,be,Se,P,Z,Y);else if(de&2&&be.class!==Se.class&&o(le,"class",null,Se.class,Y),de&4&&o(le,"style",be.style,Se.style,Y),de&8){const ke=_.dynamicProps;for(let me=0;me{Pe&&tr(Pe,P,_,E),xe&&ba(_,E,P,"updated")},Z)},k=(E,_,P,Z,Y,W,ce)=>{for(let le=0;le<_.length;le++){const de=E[le],ie=_[le],xe=de.el&&(de.type===Me||!Oa(de,ie)||de.shapeFlag&70)?d(de.el):P;y(de,ie,xe,null,Z,Y,W,ce,!0)}},A=(E,_,P,Z,Y,W,ce)=>{if(P!==Z){if(P!==yt)for(const le in P)!ol(le)&&!(le in Z)&&o(E,le,P[le],null,ce,_.children,Y,W,je);for(const le in Z){if(ol(le))continue;const de=Z[le],ie=P[le];de!==ie&&le!=="value"&&o(E,le,ie,de,ce,_.children,Y,W,je)}"value"in Z&&o(E,"value",P.value,Z.value)}},M=(E,_,P,Z,Y,W,ce,le,de)=>{const ie=_.el=E?E.el:s(""),xe=_.anchor=E?E.anchor:s("");let{patchFlag:be,dynamicChildren:Se,slotScopeIds:Pe}=_;Pe&&(le=le?le.concat(Pe):Pe),E==null?(r(ie,P,Z),r(xe,P,Z),T(_.children,P,xe,Y,W,ce,le,de)):be>0&&be&64&&Se&&E.dynamicChildren?(k(E.dynamicChildren,Se,P,Y,W,ce,le),(_.key!=null||Y&&_===Y.subTree)&&Fv(E,_,!0)):ye(E,_,P,xe,Y,W,ce,le,de)},N=(E,_,P,Z,Y,W,ce,le,de)=>{_.slotScopeIds=le,E==null?_.shapeFlag&512?Y.ctx.activate(_,P,Z,ce,de):ee(_,P,Z,Y,W,ce,de):ae(E,_,de)},ee=(E,_,P,Z,Y,W,ce)=>{const le=E.component=e4(E,Z,Y);if(_u(E)&&(le.ctx.renderer=K),t4(le),le.asyncDep){if(Y&&Y.registerDep(le,oe),!E.el){const de=le.subTree=G(wn);p(null,de,_,P)}return}oe(le,E,_,P,Y,W,ce)},ae=(E,_,P)=>{const Z=_.component=E.component;if(m3(E,_,P))if(Z.asyncDep&&!Z.asyncResolved){Q(Z,_,P);return}else Z.next=_,u3(Z.update),Z.update();else _.el=E.el,Z.vnode=_},oe=(E,_,P,Z,Y,W,ce)=>{const le=()=>{if(E.isMounted){let{next:xe,bu:be,u:Se,parent:Pe,vnode:ne}=E,ke=xe,me;wa(E,!1),xe?(xe.el=ne.el,Q(E,xe,ce)):xe=ne,be&&sl(be),(me=xe.props&&xe.props.onVnodeBeforeUpdate)&&tr(me,Pe,xe,ne),wa(E,!0);const Oe=nc(E),X=E.subTree;E.subTree=Oe,y(X,Oe,d(X.el),U(X),E,Y,W),xe.el=Oe.el,ke===null&&v3(E,Oe.el),Se&&cn(Se,Y),(me=xe.props&&xe.props.onVnodeUpdated)&&cn(()=>tr(me,Pe,xe,ne),Y)}else{let xe;const{el:be,props:Se}=_,{bm:Pe,m:ne,parent:ke}=E,me=Ii(_);if(wa(E,!1),Pe&&sl(Pe),!me&&(xe=Se&&Se.onVnodeBeforeMount)&&tr(xe,ke,_),wa(E,!0),be&&te){const Oe=()=>{E.subTree=nc(E),te(be,E.subTree,E,Y,null)};me?_.type.__asyncLoader().then(()=>!E.isUnmounted&&Oe()):Oe()}else{const Oe=E.subTree=nc(E);y(null,Oe,P,Z,E,Y,W),_.el=Oe.el}if(ne&&cn(ne,Y),!me&&(xe=Se&&Se.onVnodeMounted)){const Oe=_;cn(()=>tr(xe,ke,Oe),Y)}(_.shapeFlag&256||ke&&Ii(ke.vnode)&&ke.vnode.shapeFlag&256)&&E.a&&cn(E.a,Y),E.isMounted=!0,_=P=Z=null}},de=E.effect=new th(le,()=>lh(ie),E.scope),ie=E.update=()=>de.run();ie.id=E.uid,wa(E,!0),ie()},Q=(E,_,P)=>{_.component=E;const Z=E.vnode.props;E.vnode=_,E.next=null,z3(E,_.props,Z,P),Z3(E,_.children,P),Wo(),xf(),qo()},ye=(E,_,P,Z,Y,W,ce,le,de=!1)=>{const ie=E&&E.children,xe=E?E.shapeFlag:0,be=_.children,{patchFlag:Se,shapeFlag:Pe}=_;if(Se>0){if(Se&128){Re(ie,be,P,Z,Y,W,ce,le,de);return}else if(Se&256){_e(ie,be,P,Z,Y,W,ce,le,de);return}}Pe&8?(xe&16&&je(ie,Y,W),be!==ie&&c(P,be)):xe&16?Pe&16?Re(ie,be,P,Z,Y,W,ce,le,de):je(ie,Y,W,!0):(xe&8&&c(P,""),Pe&16&&T(be,P,Z,Y,W,ce,le,de))},_e=(E,_,P,Z,Y,W,ce,le,de)=>{E=E||ko,_=_||ko;const ie=E.length,xe=_.length,be=Math.min(ie,xe);let Se;for(Se=0;Sexe?je(E,Y,W,!0,!1,be):T(_,P,Z,Y,W,ce,le,de,be)},Re=(E,_,P,Z,Y,W,ce,le,de)=>{let ie=0;const xe=_.length;let be=E.length-1,Se=xe-1;for(;ie<=be&&ie<=Se;){const Pe=E[ie],ne=_[ie]=de?na(_[ie]):lr(_[ie]);if(Oa(Pe,ne))y(Pe,ne,P,null,Y,W,ce,le,de);else break;ie++}for(;ie<=be&&ie<=Se;){const Pe=E[be],ne=_[Se]=de?na(_[Se]):lr(_[Se]);if(Oa(Pe,ne))y(Pe,ne,P,null,Y,W,ce,le,de);else break;be--,Se--}if(ie>be){if(ie<=Se){const Pe=Se+1,ne=PeSe)for(;ie<=be;)ze(E[ie],Y,W,!0),ie++;else{const Pe=ie,ne=ie,ke=new Map;for(ie=ne;ie<=Se;ie++){const Ne=_[ie]=de?na(_[ie]):lr(_[ie]);Ne.key!=null&&ke.set(Ne.key,ie)}let me,Oe=0;const X=Se-ne+1;let ue=!1,Ce=0;const ut=new Array(X);for(ie=0;ie=X){ze(Ne,Y,W,!0);continue}let wt;if(Ne.key!=null)wt=ke.get(Ne.key);else for(me=ne;me<=Se;me++)if(ut[me-ne]===0&&Oa(Ne,_[me])){wt=me;break}wt===void 0?ze(Ne,Y,W,!0):(ut[wt-ne]=ie+1,wt>=Ce?Ce=wt:ue=!0,y(Ne,_[wt],P,null,Y,W,ce,le,de),Oe++)}const Ze=ue?K3(ut):ko;for(me=Ze.length-1,ie=X-1;ie>=0;ie--){const Ne=ne+ie,wt=_[Ne],pt=Ne+1{const{el:W,type:ce,transition:le,children:de,shapeFlag:ie}=E;if(ie&6){Ue(E.component.subTree,_,P,Z);return}if(ie&128){E.suspense.move(_,P,Z);return}if(ie&64){ce.move(E,_,P,K);return}if(ce===Me){r(W,_,P);for(let be=0;bele.enter(W),Y);else{const{leave:be,delayLeave:Se,afterLeave:Pe}=le,ne=()=>r(W,_,P),ke=()=>{be(W,()=>{ne(),Pe&&Pe()})};Se?Se(W,ne,ke):ke()}else r(W,_,P)},ze=(E,_,P,Z=!1,Y=!1)=>{const{type:W,props:ce,ref:le,children:de,dynamicChildren:ie,shapeFlag:xe,patchFlag:be,dirs:Se}=E;if(le!=null&&cd(le,null,P,E,!0),xe&256){_.ctx.deactivate(E);return}const Pe=xe&1&&Se,ne=!Ii(E);let ke;if(ne&&(ke=ce&&ce.onVnodeBeforeUnmount)&&tr(ke,_,E),xe&6)Ae(E.component,P,Z);else{if(xe&128){E.suspense.unmount(P,Z);return}Pe&&ba(E,null,_,"beforeUnmount"),xe&64?E.type.remove(E,_,P,Y,K,Z):ie&&(W!==Me||be>0&&be&64)?je(ie,_,P,!1,!0):(W===Me&&be&384||!Y&&xe&16)&&je(de,_,P),Z&&fe(E)}(ne&&(ke=ce&&ce.onVnodeUnmounted)||Pe)&&cn(()=>{ke&&tr(ke,_,E),Pe&&ba(E,null,_,"unmounted")},P)},fe=E=>{const{type:_,el:P,anchor:Z,transition:Y}=E;if(_===Me){$e(P,Z);return}if(_===Li){w(E);return}const W=()=>{a(P),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(E.shapeFlag&1&&Y&&!Y.persisted){const{leave:ce,delayLeave:le}=Y,de=()=>ce(P,W);le?le(E.el,W,de):de()}else W()},$e=(E,_)=>{let P;for(;E!==_;)P=h(E),a(E),E=P;a(_)},Ae=(E,_,P)=>{const{bum:Z,scope:Y,update:W,subTree:ce,um:le}=E;Z&&sl(Z),Y.stop(),W&&(W.active=!1,ze(ce,E,_,P)),le&&cn(le,_),cn(()=>{E.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},je=(E,_,P,Z=!1,Y=!1,W=0)=>{for(let ce=W;ceE.shapeFlag&6?U(E.component.subTree):E.shapeFlag&128?E.suspense.next():h(E.anchor||E.el),R=(E,_,P)=>{E==null?_._vnode&&ze(_._vnode,null,null,!0):y(_._vnode||null,E,_,null,null,null,P),xf(),bv(),_._vnode=E},K={p:y,um:ze,m:Ue,r:fe,mt:ee,mc:T,pc:ye,pbc:k,n:U,o:e};let H,te;return t&&([H,te]=t(K)),{render:R,hydrate:H,createApp:H3(R,H)}}function wa({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fv(e,t,n=!1){const r=e.children,a=t.children;if(Ie(r)&&Ie(a))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const G3=e=>e.__isTeleport,Me=Symbol.for("v-fgt"),Du=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),Li=Symbol.for("v-stc"),Ri=[];let Yn=null;function C(e=!1){Ri.push(Yn=e?null:[])}function W3(){Ri.pop(),Yn=Ri[Ri.length-1]||null}let as=1;function Lf(e){as+=e}function zv(e){return e.dynamicChildren=as>0?Yn||ko:null,W3(),as>0&&Yn&&Yn.push(e),e}function S(e,t,n,r,a,o){return zv(O(e,t,n,r,a,o,!0))}function se(e,t,n,r,a){return zv(G(e,t,n,r,a,!0))}function Pl(e){return e?e.__v_isVNode===!0:!1}function Oa(e,t){return e.type===t.type&&e.key===t.key}const Mu="__vInternal",jv=({key:e})=>e??null,ul=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pt(e)||Vt(e)||Ve(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,a=null,o=e===Me?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jv(t),ref:t&&ul(t),scopeId:xu,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:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Kt};return s?(fh(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Pt(n)?8:16),as>0&&!i&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const G=q3;function q3(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===Mv)&&(e=wn),Pl(e)){const s=$r(e,t,!0);return n&&fh(s,n),as>0&&!o&&Yn&&(s.shapeFlag&6?Yn[Yn.indexOf(e)]=s:Yn.push(s)),s.patchFlag|=-2,s}if(o4(e)&&(e=e.__vccOpts),t){t=Q3(t);let{class:s,style:l}=t;s&&!Pt(s)&&(t.class=q(s)),bt(l)&&(dv(l)&&!Ie(l)&&(l=Ot({},l)),t.style=Et(l))}const i=Pt(e)?1:g3(e)?128:G3(e)?64:bt(e)?4:Ve(e)?2:0;return O(e,t,n,r,a,i,o,!0)}function Q3(e){return e?dv(e)||Mu in e?Ot({},e):e:null}function $r(e,t,n=!1){const{props:r,ref:a,patchFlag:o,children:i}=e,s=t?Ke(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&jv(s),ref:t&&t.ref?n&&a?Ie(a)?a.concat(ul(t)):[a,ul(t)]:ul(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$r(e.ssContent),ssFallback:e.ssFallback&&$r(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function J(e=" ",t=0){return G(Du,null,e,t)}function bte(e,t){const n=G(Li,null,e);return n.staticCount=t,n}function $(e="",t=!1){return t?(C(),se(wn,null,e)):G(wn,null,e)}function lr(e){return e==null||typeof e=="boolean"?G(wn):Ie(e)?G(Me,null,e.slice()):typeof e=="object"?na(e):G(Du,null,String(e))}function na(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function fh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),fh(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Mu in t)?t._ctx=Kt:a===3&&Kt&&(Kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),r&64?(n=16,t=[J(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ke(...e){const t={};for(let n=0;nzt||Kt;let ph,oo,Rf="__VUE_INSTANCE_SETTERS__";(oo=ed()[Rf])||(oo=ed()[Rf]=[]),oo.push(e=>zt=e),ph=e=>{oo.length>1?oo.forEach(t=>t(e)):oo[0](e)};const Lo=e=>{ph(e),e.scope.on()},Fa=()=>{zt&&zt.scope.off(),ph(null)};function Uv(e){return e.vnode.shapeFlag&4}let os=!1;function t4(e,t=!1){os=t;const{props:n,children:r}=e.vnode,a=Uv(e);F3(e,n,a,t),U3(e,r);const o=a?n4(e,t):void 0;return os=!1,o}function n4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=hv(new Proxy(e.ctx,P3));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?Yv(e):null;Lo(e),Wo();const o=ca(r,e,0,[e.props,a]);if(qo(),Fa(),Km(o)){if(o.then(Fa,Fa),t)return o.then(i=>{$f(e,i,t)}).catch(i=>{Cu(i,e,0)});e.asyncDep=o}else $f(e,o,t)}else Zv(e,t)}function $f(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=vv(t)),Zv(e,n)}let Hf;function Zv(e,t,n){const r=e.type;if(!e.render){if(!t&&Hf&&!r.render){const a=r.template||dh(e).template;if(a){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ot(Ot({isCustomElement:o,delimiters:s},i),l);r.render=Hf(a,u)}}e.render=r.render||Vn}Lo(e),Wo(),B3(e),qo(),Fa()}function r4(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fn(e,"get","$attrs"),t[n]}}))}function Yv(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return r4(e)},slots:e.slots,emit:e.emit,expose:t}}function Au(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vv(hv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ni)return Ni[n](e)},has(t,n){return n in t||n in Ni}}))}function a4(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function o4(e){return Ve(e)&&"__vccOpts"in e}const B=(e,t)=>i3(e,t,os);function De(e,t,n){const r=arguments.length;return r===2?bt(t)&&!Ie(t)?Pl(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Pl(n)&&(n=[n]),G(e,t,n))}const i4=Symbol.for("v-scx"),s4=()=>Kn(i4),l4="3.3.4",u4="http://www.w3.org/2000/svg",Pa=typeof document<"u"?document:null,Ff=Pa&&Pa.createElement("template"),c4={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 a=t?Pa.createElementNS(u4,e):Pa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Pa.createTextNode(e),createComment:e=>Pa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,o){const i=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{Ff.innerHTML=r?`${e}`:e;const s=Ff.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function d4(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 h4(e,t,n){const r=e.style,a=Pt(n);if(n&&!a){if(t&&!Pt(t))for(const o in t)n[o]==null&&dd(r,o,"");for(const o in n)dd(r,o,n[o])}else{const o=r.display;a?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const zf=/\s*!important$/;function dd(e,t,n){if(Ie(n))n.forEach(r=>dd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=f4(e,t);zf.test(n)?e.setProperty(Ga(r),n.replace(zf,""),"important"):e[r]=n}}const jf=["Webkit","Moz","ms"],oc={};function f4(e,t){const n=oc[t];if(n)return n;let r=fr(t);if(r!=="filter"&&r in e)return oc[t]=r;r=wu(r);for(let a=0;aic||(b4.then(()=>ic=0),ic=Date.now());function k4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;On(C4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function C4(e,t){if(Ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const Yf=/^on[a-z]/,E4=(e,t,n,r,a=!1,o,i,s,l)=>{t==="class"?d4(e,r,a):t==="style"?h4(e,n,r):gu(t)?q0(t)||g4(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):x4(e,t,r,a))?m4(e,t,r,o,i,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),p4(e,t,r,a))};function x4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Yf.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Yf.test(t)&&Pt(n)?!1:t in e}function bs(e){const t=ys();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>fd(o,a))},r=()=>{const a=e(t.proxy);hd(t.subTree,a),n(a)};b3(r),ft(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),gr(()=>a.disconnect())})}function hd(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hd(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fd(e.el,t);else if(e.type===Me)e.children.forEach(n=>hd(n,t));else if(e.type===Li){let{el:n,anchor:r}=e;for(;n&&(fd(n,t),n!==r);)n=n.nextSibling}}function fd(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Gr="transition",pi="animation",ja=(e,{slots:t})=>De(C3,Kv(e),t);ja.displayName="Transition";const Vv={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},S4=ja.props=Ot({},Sv,Vv),ka=(e,t=[])=>{Ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vf=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function Kv(e){const t={};for(const M in e)M in Vv||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=_4(a),y=g&&g[0],v=g&&g[1],{onBeforeEnter:p,onEnter:b,onEnterCancelled:m,onLeave:w,onLeaveCancelled:D,onBeforeAppear:I=p,onAppear:L=b,onAppearCancelled:T=m}=t,x=(M,N,ee)=>{ea(M,N?c:s),ea(M,N?u:i),ee&&ee()},k=(M,N)=>{M._isLeaving=!1,ea(M,d),ea(M,f),ea(M,h),N&&N()},A=M=>(N,ee)=>{const ae=M?L:b,oe=()=>x(N,M,ee);ka(ae,[N,oe]),Kf(()=>{ea(N,M?l:o),_r(N,M?c:s),Vf(ae)||Gf(N,r,y,oe)})};return Ot(t,{onBeforeEnter(M){ka(p,[M]),_r(M,o),_r(M,i)},onBeforeAppear(M){ka(I,[M]),_r(M,l),_r(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,N){M._isLeaving=!0;const ee=()=>k(M,N);_r(M,d),Wv(),_r(M,h),Kf(()=>{M._isLeaving&&(ea(M,d),_r(M,f),Vf(w)||Gf(M,r,v,ee))}),ka(w,[M,ee])},onEnterCancelled(M){x(M,!1),ka(m,[M])},onAppearCancelled(M){x(M,!0),ka(T,[M])},onLeaveCancelled(M){k(M),ka(D,[M])}})}function _4(e){if(e==null)return null;if(bt(e))return[sc(e.enter),sc(e.leave)];{const t=sc(e);return[t,t]}}function sc(e){return vb(e)}function _r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ea(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 Kf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let T4=0;function Gf(e,t,n,r){const a=e._endId=++T4,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=Gv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=f=>{f.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[g]||"").split(", "),a=r(`${Gr}Delay`),o=r(`${Gr}Duration`),i=Wf(a,o),s=r(`${pi}Delay`),l=r(`${pi}Duration`),u=Wf(s,l);let c=null,d=0,h=0;t===Gr?i>0&&(c=Gr,d=i,h=o.length):t===pi?u>0&&(c=pi,d=u,h=l.length):(d=Math.max(i,u),c=d>0?i>u?Gr:pi:null,h=c?c===Gr?o.length:l.length:0);const f=c===Gr&&/\b(transform|all)(,|$)/.test(r(`${Gr}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function Wf(e,t){for(;e.lengthqf(n)+qf(e[r])))}function qf(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Wv(){return document.body.offsetHeight}const qv=new WeakMap,Qv=new WeakMap,Xv={name:"TransitionGroup",props:Ot({},S4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ys(),r=xv();let a,o;return Dv(()=>{if(!a.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!B4(a[0].el,n.vnode.el,i))return;a.forEach(A4),a.forEach(O4);const s=a.filter(P4);Wv(),s.forEach(l=>{const u=l.el,c=u.style;_r(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,ea(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=tt(e),s=Kv(i);let l=i.tag||Me;a=o,o=t.default?uh(t.default()):[];for(let u=0;udelete e.mode;Xv.props;const M4=Xv;function A4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function O4(e){Qv.set(e,e.el.getBoundingClientRect())}function P4(e){const t=qv.get(e),n=Qv.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${a}px)`,o.transitionDuration="0s",e}}function B4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=Gv(r);return a.removeChild(r),o}const Qf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>sl(t,n):t};function I4(e){e.target.composing=!0}function Xf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const N4={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Qf(a);const o=r||a.props&&a.props.type==="number";fo(e,t?"change":"input",i=>{if(i.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Jc(s)),e._assign(s)}),n&&fo(e,"change",()=>{e.value=e.value.trim()}),t||(fo(e,"compositionstart",I4),fo(e,"compositionend",Xf),fo(e,"change",Xf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},o){if(e._assign=Qf(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&Jc(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},L4=["ctrl","shift","alt","meta"],R4={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)=>L4.some(n=>e[`${n}Key`]&&!t.includes(n))},Mt=(e,t)=>(n,...r)=>{for(let a=0;an=>{if(!("key"in n))return;const r=Ga(n.key);if(t.some(a=>a===r||$4[a]===r))return e(n)},pd={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mi(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),mi(e,!0),r.enter(e)):r.leave(e,()=>{mi(e,!1)}):mi(e,t))},beforeUnmount(e,{value:t}){mi(e,t)}};function mi(e,t){e.style.display=t?e._vod:"none"}const H4=Ot({patchProp:E4},c4);let Jf;function F4(){return Jf||(Jf=Y3(H4))}const Jv=(...e)=>{const t=F4().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=z4(r);if(!a)return;const o=t._component;!Ve(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const i=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t};function z4(e){return Pt(e)?document.querySelector(e):e}function j4(){return eg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function eg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const U4=typeof Proxy=="function",Z4="devtools-plugin:setup",Y4="plugin:settings:set";let io,md;function V4(){var e;return io!==void 0||(typeof window<"u"&&window.performance?(io=!0,md=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(io=!0,md=global.perf_hooks.performance):io=!1),io}function K4(){return V4()?md.now():Date.now()}class G4{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const s=t.settings[i];r[i]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(a),s=JSON.parse(i);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}o=i},now(){return K4()}},n&&n.on(Y4,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,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 W4(e,t){const n=e,r=eg(),a=j4(),o=U4&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(Z4,e,t);else{const i=o?new G4(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT - */var tg="store";function Qo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function q4(e){return e!==null&&typeof e=="object"}function Q4(e){return e&&typeof e.then=="function"}function X4(e,t){return function(){return e(t)}}function ng(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 rg(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;Ou(e,n,[],e._modules.root,!0),mh(e,n,t)}function mh(e,t,n){var r=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},s={},l=Eb(!0);l.run(function(){Qo(o,function(u,c){i[c]=X4(u,e),s[c]=B(function(){return i[c]()}),Object.defineProperty(e.getters,c,{get:function(){return s[c].value},enumerable:!0})})}),e._state=Fr({data:t}),e._scope=l,e.strict&&r8(e),r&&n&&e._withCommit(function(){r.data=null}),a&&a.stop()}function Ou(e,t,n,r,a){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!a){var s=vh(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var u=r.context=J4(e,i,n);r.forEachMutation(function(c,d){var h=i+d;e8(e,h,c,u)}),r.forEachAction(function(c,d){var h=c.root?d:i+d,f=c.handler||c;t8(e,h,f,u)}),r.forEachGetter(function(c,d){var h=i+d;n8(e,h,c,u)}),r.forEachChild(function(c,d){Ou(e,t,n.concat(d),c,a)})}function J4(e,t,n){var r=t==="",a={dispatch:r?e.dispatch:function(o,i,s){var l=Bl(o,i,s),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(o,i,s){var l=Bl(o,i,s),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return ag(e,t)}},state:{get:function(){return vh(e.state,n)}}}),a}function ag(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function e8(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(i){n.call(e,r.state,i)})}function t8(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(i){var s=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},i);return Q4(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function n8(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function r8(e){Le(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function vh(e,t){return t.reduce(function(n,r){return n[r]},e)}function Bl(e,t,n){return q4(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var a8="vuex bindings",ep="vuex:mutations",lc="vuex:actions",so="vuex",o8=0;function i8(e,t){W4({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:[a8]},function(n){n.addTimelineLayer({id:ep,label:"Vuex Mutations",color:tp}),n.addTimelineLayer({id:lc,label:"Vuex Actions",color:tp}),n.addInspector({id:so,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===so)if(r.filter){var a=[];lg(a,t._modules.root,r.filter,""),r.rootNodes=a}else r.rootNodes=[sg(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===so){var a=r.nodeId;ag(t,a),r.state=u8(d8(t._modules,a),a==="root"?t.getters:t._makeLocalGettersCache,a)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===so){var a=r.nodeId,o=r.path;a!=="root"&&(o=a.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,a){var o={};r.payload&&(o.payload=r.payload),o.state=a,n.notifyComponentUpdate(),n.sendInspectorTree(so),n.sendInspectorState(so),n.addTimelineEvent({layerId:ep,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,a){var o={};r.payload&&(o.payload=r.payload),r._id=o8++,r._time=Date.now(),o.state=a,n.addTimelineEvent({layerId:lc,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,a){var o={},i=Date.now()-r._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},r.payload&&(o.payload=r.payload),o.state=a,n.addTimelineEvent({layerId:lc,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var tp=8702998,s8=6710886,l8=16777215,og={label:"namespaced",textColor:l8,backgroundColor:s8};function ig(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function sg(e,t){return{id:t||"root",label:ig(t),tags:e.namespaced?[og]:[],children:Object.keys(e._children).map(function(n){return sg(e._children[n],t+n+"/")})}}function lg(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?[og]:[]}),Object.keys(t._children).forEach(function(a){lg(e,t._children[a],n,r+a+"/")})}function u8(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),a={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(r.length){var o=c8(t);a.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?ig(i):i,editable:!1,value:vd(function(){return o[i]})}})}return a}function c8(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var a=t,o=r.pop();r.forEach(function(i){a[i]||(a[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),a=a[i]._custom.value}),a[o]=vd(function(){return e[n]})}else t[n]=vd(function(){return e[n]})}),t}function d8(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,a,o){var i=r[a];if(!i)throw new Error('Missing module "'+a+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function vd(e){try{return e()}catch(t){return t}}var Jn=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)||{}},ug={namespaced:{configurable:!0}};ug.namespaced.get=function(){return!!this._rawModule.namespaced};Jn.prototype.addChild=function(t,n){this._children[t]=n};Jn.prototype.removeChild=function(t){delete this._children[t]};Jn.prototype.getChild=function(t){return this._children[t]};Jn.prototype.hasChild=function(t){return t in this._children};Jn.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)};Jn.prototype.forEachChild=function(t){Qo(this._children,t)};Jn.prototype.forEachGetter=function(t){this._rawModule.getters&&Qo(this._rawModule.getters,t)};Jn.prototype.forEachAction=function(t){this._rawModule.actions&&Qo(this._rawModule.actions,t)};Jn.prototype.forEachMutation=function(t){this._rawModule.mutations&&Qo(this._rawModule.mutations,t)};Object.defineProperties(Jn.prototype,ug);var Qa=function(t){this.register([],t,!1)};Qa.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Qa.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,a){return n=n.getChild(a),r+(n.namespaced?a+"/":"")},"")};Qa.prototype.update=function(t){cg([],this.root,t)};Qa.prototype.register=function(t,n,r){var a=this;r===void 0&&(r=!0);var o=new Jn(n,r);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&Qo(n.modules,function(s,l){a.register(t.concat(l),s,r)})};Qa.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],a=n.getChild(r);a&&a.runtime&&n.removeChild(r)};Qa.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function cg(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;cg(e.concat(r),t.getChild(r),n.modules[r])}}function h8(e){return new pn(e)}var pn=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var a=t.strict;a===void 0&&(a=!1);var o=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 Qa(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,s=this,l=s.dispatch,u=s.commit;this.dispatch=function(h,f){return l.call(i,h,f)},this.commit=function(h,f,g){return u.call(i,h,f,g)},this.strict=a;var c=this._modules.root.state;Ou(this,c,[],this._modules.root),mh(this,c),r.forEach(function(d){return d(n)})},gh={state:{configurable:!0}};pn.prototype.install=function(t,n){t.provide(n||tg,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&i8(t,this)};gh.state.get=function(){return this._state.data};gh.state.set=function(e){};pn.prototype.commit=function(t,n,r){var a=this,o=Bl(t,n,r),i=o.type,s=o.payload,l={type:i,payload:s},u=this._mutations[i];u&&(this._withCommit(function(){u.forEach(function(d){d(s)})}),this._subscribers.slice().forEach(function(c){return c(l,a.state)}))};pn.prototype.dispatch=function(t,n){var r=this,a=Bl(t,n),o=a.type,i=a.payload,s={type:o,payload:i},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(s,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(i)})):l[0](i);return new Promise(function(c,d){u.then(function(h){try{r._actionSubscribers.filter(function(f){return f.after}).forEach(function(f){return f.after(s,r.state)})}catch{}c(h)},function(h){try{r._actionSubscribers.filter(function(f){return f.error}).forEach(function(f){return f.error(s,r.state,h)})}catch{}d(h)})})}};pn.prototype.subscribe=function(t,n){return ng(t,this._subscribers,n)};pn.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return ng(r,this._actionSubscribers,n)};pn.prototype.watch=function(t,n,r){var a=this;return Le(function(){return t(a.state,a.getters)},n,Object.assign({},r))};pn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};pn.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Ou(this,this.state,t,this._modules.get(t),r.preserveState),mh(this,this.state)};pn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=vh(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),rg(this)};pn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};pn.prototype.hotUpdate=function(t){this._modules.update(t),rg(this,!0)};pn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(pn.prototype,gh);const wte={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"};class f8{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 p8=()=>{class e extends f8{setup(){console.warn("Logging is disabled")}_log(){}}return new e};/*! + */var tg="store";function Qo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function q4(e){return e!==null&&typeof e=="object"}function Q4(e){return e&&typeof e.then=="function"}function X4(e,t){return function(){return e(t)}}function ng(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 rg(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;Ou(e,n,[],e._modules.root,!0),mh(e,n,t)}function mh(e,t,n){var r=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},s={},l=Eb(!0);l.run(function(){Qo(o,function(u,c){i[c]=X4(u,e),s[c]=B(function(){return i[c]()}),Object.defineProperty(e.getters,c,{get:function(){return s[c].value},enumerable:!0})})}),e._state=zr({data:t}),e._scope=l,e.strict&&r8(e),r&&n&&e._withCommit(function(){r.data=null}),a&&a.stop()}function Ou(e,t,n,r,a){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!a){var s=vh(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var u=r.context=J4(e,i,n);r.forEachMutation(function(c,d){var h=i+d;e8(e,h,c,u)}),r.forEachAction(function(c,d){var h=c.root?d:i+d,f=c.handler||c;t8(e,h,f,u)}),r.forEachGetter(function(c,d){var h=i+d;n8(e,h,c,u)}),r.forEachChild(function(c,d){Ou(e,t,n.concat(d),c,a)})}function J4(e,t,n){var r=t==="",a={dispatch:r?e.dispatch:function(o,i,s){var l=Bl(o,i,s),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(o,i,s){var l=Bl(o,i,s),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return ag(e,t)}},state:{get:function(){return vh(e.state,n)}}}),a}function ag(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function e8(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(i){n.call(e,r.state,i)})}function t8(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(i){var s=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},i);return Q4(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function n8(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function r8(e){Le(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function vh(e,t){return t.reduce(function(n,r){return n[r]},e)}function Bl(e,t,n){return q4(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var a8="vuex bindings",ep="vuex:mutations",lc="vuex:actions",so="vuex",o8=0;function i8(e,t){W4({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:[a8]},function(n){n.addTimelineLayer({id:ep,label:"Vuex Mutations",color:tp}),n.addTimelineLayer({id:lc,label:"Vuex Actions",color:tp}),n.addInspector({id:so,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===so)if(r.filter){var a=[];lg(a,t._modules.root,r.filter,""),r.rootNodes=a}else r.rootNodes=[sg(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===so){var a=r.nodeId;ag(t,a),r.state=u8(d8(t._modules,a),a==="root"?t.getters:t._makeLocalGettersCache,a)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===so){var a=r.nodeId,o=r.path;a!=="root"&&(o=a.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,a){var o={};r.payload&&(o.payload=r.payload),o.state=a,n.notifyComponentUpdate(),n.sendInspectorTree(so),n.sendInspectorState(so),n.addTimelineEvent({layerId:ep,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,a){var o={};r.payload&&(o.payload=r.payload),r._id=o8++,r._time=Date.now(),o.state=a,n.addTimelineEvent({layerId:lc,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,a){var o={},i=Date.now()-r._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},r.payload&&(o.payload=r.payload),o.state=a,n.addTimelineEvent({layerId:lc,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var tp=8702998,s8=6710886,l8=16777215,og={label:"namespaced",textColor:l8,backgroundColor:s8};function ig(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function sg(e,t){return{id:t||"root",label:ig(t),tags:e.namespaced?[og]:[],children:Object.keys(e._children).map(function(n){return sg(e._children[n],t+n+"/")})}}function lg(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?[og]:[]}),Object.keys(t._children).forEach(function(a){lg(e,t._children[a],n,r+a+"/")})}function u8(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),a={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(r.length){var o=c8(t);a.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?ig(i):i,editable:!1,value:vd(function(){return o[i]})}})}return a}function c8(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var a=t,o=r.pop();r.forEach(function(i){a[i]||(a[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),a=a[i]._custom.value}),a[o]=vd(function(){return e[n]})}else t[n]=vd(function(){return e[n]})}),t}function d8(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,a,o){var i=r[a];if(!i)throw new Error('Missing module "'+a+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function vd(e){try{return e()}catch(t){return t}}var Jn=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)||{}},ug={namespaced:{configurable:!0}};ug.namespaced.get=function(){return!!this._rawModule.namespaced};Jn.prototype.addChild=function(t,n){this._children[t]=n};Jn.prototype.removeChild=function(t){delete this._children[t]};Jn.prototype.getChild=function(t){return this._children[t]};Jn.prototype.hasChild=function(t){return t in this._children};Jn.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)};Jn.prototype.forEachChild=function(t){Qo(this._children,t)};Jn.prototype.forEachGetter=function(t){this._rawModule.getters&&Qo(this._rawModule.getters,t)};Jn.prototype.forEachAction=function(t){this._rawModule.actions&&Qo(this._rawModule.actions,t)};Jn.prototype.forEachMutation=function(t){this._rawModule.mutations&&Qo(this._rawModule.mutations,t)};Object.defineProperties(Jn.prototype,ug);var Qa=function(t){this.register([],t,!1)};Qa.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Qa.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,a){return n=n.getChild(a),r+(n.namespaced?a+"/":"")},"")};Qa.prototype.update=function(t){cg([],this.root,t)};Qa.prototype.register=function(t,n,r){var a=this;r===void 0&&(r=!0);var o=new Jn(n,r);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&Qo(n.modules,function(s,l){a.register(t.concat(l),s,r)})};Qa.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],a=n.getChild(r);a&&a.runtime&&n.removeChild(r)};Qa.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function cg(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;cg(e.concat(r),t.getChild(r),n.modules[r])}}function h8(e){return new pn(e)}var pn=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var a=t.strict;a===void 0&&(a=!1);var o=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 Qa(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,s=this,l=s.dispatch,u=s.commit;this.dispatch=function(h,f){return l.call(i,h,f)},this.commit=function(h,f,g){return u.call(i,h,f,g)},this.strict=a;var c=this._modules.root.state;Ou(this,c,[],this._modules.root),mh(this,c),r.forEach(function(d){return d(n)})},gh={state:{configurable:!0}};pn.prototype.install=function(t,n){t.provide(n||tg,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&i8(t,this)};gh.state.get=function(){return this._state.data};gh.state.set=function(e){};pn.prototype.commit=function(t,n,r){var a=this,o=Bl(t,n,r),i=o.type,s=o.payload,l={type:i,payload:s},u=this._mutations[i];u&&(this._withCommit(function(){u.forEach(function(d){d(s)})}),this._subscribers.slice().forEach(function(c){return c(l,a.state)}))};pn.prototype.dispatch=function(t,n){var r=this,a=Bl(t,n),o=a.type,i=a.payload,s={type:o,payload:i},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(s,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(i)})):l[0](i);return new Promise(function(c,d){u.then(function(h){try{r._actionSubscribers.filter(function(f){return f.after}).forEach(function(f){return f.after(s,r.state)})}catch{}c(h)},function(h){try{r._actionSubscribers.filter(function(f){return f.error}).forEach(function(f){return f.error(s,r.state,h)})}catch{}d(h)})})}};pn.prototype.subscribe=function(t,n){return ng(t,this._subscribers,n)};pn.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return ng(r,this._actionSubscribers,n)};pn.prototype.watch=function(t,n,r){var a=this;return Le(function(){return t(a.state,a.getters)},n,Object.assign({},r))};pn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};pn.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Ou(this,this.state,t,this._modules.get(t),r.preserveState),mh(this,this.state)};pn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=vh(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),rg(this)};pn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};pn.prototype.hotUpdate=function(t){this._modules.update(t),rg(this,!0)};pn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(pn.prototype,gh);const wte={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"};class f8{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 p8=()=>{class e extends f8{setup(){console.warn("Logging is disabled")}_log(){}}return new e};/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const po=typeof window<"u";function m8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function uc(e,t){const n={};for(const r in t){const a=t[r];n[r]=Wn(a)?a.map(e):e(a)}return n}const $i=()=>{},Wn=Array.isArray,v8=/\/$/,g8=e=>e.replace(v8,"");function cc(e,t,n="/"){let r,a={},o="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),a=e(o)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=k8(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:a,hash:i}}function y8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function np(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function b8(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Ro(t.matched[r],n.matched[a])&&dg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ro(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function dg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!w8(e[n],t[n]))return!1;return!0}function w8(e,t){return Wn(e)?rp(e,t):Wn(t)?rp(t,e):e===t}function rp(e,t){return Wn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function k8(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let o=n.length-1,i,s;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var is;(function(e){e.pop="pop",e.push="push"})(is||(is={}));var Hi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hi||(Hi={}));function C8(e){if(!e)if(po){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),g8(e)}const E8=/^[^#]+#/;function x8(e,t){return e.replace(E8,"#")+t}function S8(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 Pu=()=>({left:window.pageXOffset,top:window.pageYOffset});function _8(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=S8(a,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 ap(e,t){return(history.state?history.state.position-t:-1)+e}const gd=new Map;function T8(e,t){gd.set(e,t)}function D8(e){const t=gd.get(e);return gd.delete(e),t}let M8=()=>location.protocol+"//"+location.host;function hg(e,t){const{pathname:n,search:r,hash:a}=t,o=e.indexOf("#");if(o>-1){let s=a.includes(e.slice(o))?e.slice(o).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),np(l,"")}return np(n,e)+r+a}function A8(e,t,n,r){let a=[],o=[],i=null;const s=({state:h})=>{const f=hg(e,location),g=n.value,y=t.value;let v=0;if(h){if(n.value=f,t.value=h,i&&i===g){i=null;return}v=y?h.position-y.position:0}else r(f);a.forEach(p=>{p(n.value,g,{delta:v,type:is.pop,direction:v?v>0?Hi.forward:Hi.back:Hi.unknown})})};function l(){i=n.value}function u(h){a.push(h);const f=()=>{const g=a.indexOf(h);g>-1&&a.splice(g,1)};return o.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(lt({},h.state,{scroll:Pu()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function op(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Pu():null}}function O8(e){const{history:t,location:n}=window,r={value:hg(e,n)},a={value:t.state};a.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:M8()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),a.value=u}catch(f){console.error(f),n[c?"replace":"assign"](h)}}function i(l,u){const c=lt({},t.state,op(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=lt({},a.value,t.state,{forward:l,scroll:Pu()});o(c.current,c,!0);const d=lt({},op(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:a,push:s,replace:i}}function P8(e){e=C8(e);const t=O8(e),n=A8(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const a=lt({location:"",base:e,go:r,createHref:x8.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function B8(e){return typeof e=="string"||e&&typeof e=="object"}function fg(e){return typeof e=="string"||typeof e=="symbol"}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pg=Symbol("");var ip;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ip||(ip={}));function $o(e,t){return lt(new Error,{type:e,[pg]:!0},t)}function Er(e,t){return e instanceof Error&&pg in e&&(t==null||!!(e.type&t))}const sp="[^/]+?",I8={sensitive:!1,strict:!1,start:!0,end:!0},N8=/[.+*?^${}()[\]/\\]/g;function L8(e,t){const n=lt({},I8,t),r=[];let a=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $8(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const H8={type:0,value:""},z8=/[a-zA-Z0-9_]/;function F8(e){if(!e)return[[]];if(e==="/")return[[H8]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${u}": ${f}`)}let n=0,r=n;const a=[];let o;function i(){o&&a.push(o),o=[]}let s=0,l,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.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(;s{i(b)}:$i}function i(c){if(fg(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function s(){return n}function l(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!mg(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!cp(c)&&r.set(c.record.name,c)}function u(c,d){let h,f={},g,y;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw $o(1,{location:c});y=h.record.name,f=lt(up(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&up(c.params,h.keys.map(b=>b.name))),g=h.stringify(f)}else if("path"in c)g=c.path,h=n.find(b=>b.re.test(g)),h&&(f=h.parse(g),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw $o(1,{location:c,currentLocation:d});y=h.record.name,f=lt({},d.params,c.params),g=h.stringify(f)}const v=[];let p=h;for(;p;)v.unshift(p.record),p=p.parent;return{name:y,path:g,params:f,matched:v,meta:V8(v)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:s,getRecordMatcher:a}}function up(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Z8(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Y8(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 Y8(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=="object"?n[r]:n;return t}function cp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function V8(e){return e.reduce((t,n)=>lt(t,n.meta),{})}function dp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function mg(e,t){return t.children.some(n=>n===e||mg(e,n))}const vg=/#/g,K8=/&/g,G8=/\//g,W8=/=/g,q8=/\?/g,gg=/\+/g,Q8=/%5B/g,X8=/%5D/g,yg=/%5E/g,J8=/%60/g,bg=/%7B/g,e6=/%7C/g,wg=/%7D/g,t6=/%20/g;function yh(e){return encodeURI(""+e).replace(e6,"|").replace(Q8,"[").replace(X8,"]")}function n6(e){return yh(e).replace(bg,"{").replace(wg,"}").replace(yg,"^")}function yd(e){return yh(e).replace(gg,"%2B").replace(t6,"+").replace(vg,"%23").replace(K8,"%26").replace(J8,"`").replace(bg,"{").replace(wg,"}").replace(yg,"^")}function r6(e){return yd(e).replace(W8,"%3D")}function a6(e){return yh(e).replace(vg,"%23").replace(q8,"%3F")}function o6(e){return e==null?"":a6(e).replace(G8,"%2F")}function Il(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function i6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&yd(o)):[r&&yd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function s6(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Wn(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const l6=Symbol(""),fp=Symbol(""),Bu=Symbol(""),bh=Symbol(""),bd=Symbol("");function vi(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ra(e,t,n,r,a){const o=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((i,s)=>{const l=d=>{d===!1?s($o(4,{from:n,to:t})):d instanceof Error?s(d):B8(d)?s($o(2,{from:t,to:d})):(o&&r.enterCallbacks[a]===o&&typeof d=="function"&&o.push(d),i())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(d=>s(d))})}function dc(e,t,n,r){const a=[];for(const o of e)for(const i in o.components){let s=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(u6(s)){const u=(s.__vccOpts||s)[t];u&&a.push(ra(u,n,r,o,i))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const c=m8(u)?u.default:u;o.components[i]=c;const h=(c.__vccOpts||c)[t];return h&&ra(h,n,r,o,i)()}))}}return a}function u6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pp(e){const t=Kn(Bu),n=Kn(bh),r=B(()=>t.resolve(pe(e.to))),a=B(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const h=d.findIndex(Ro.bind(null,c));if(h>-1)return h;const f=mp(l[u-2]);return u>1&&mp(c)===f&&d[d.length-1].path!==f?d.findIndex(Ro.bind(null,l[u-2])):h}),o=B(()=>a.value>-1&&f6(n.params,r.value.params)),i=B(()=>a.value>-1&&a.value===n.matched.length-1&&dg(n.params,r.value.params));function s(l={}){return h6(l)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch($i):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:o,isExactActive:i,navigate:s}}const c6=ge({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:pp,setup(e,{slots:t}){const n=Fr(pp(e)),{options:r}=Kn(Bu),a=B(()=>({[vp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[vp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:De("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),d6=c6;function h6(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 f6(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Wn(a)||a.length!==r.length||r.some((o,i)=>o!==a[i]))return!1}return!0}function mp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vp=(e,t,n)=>e??t??n,p6=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Kn(bd),a=B(()=>e.route||r.value),o=Kn(fp,0),i=B(()=>{let u=pe(o);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=B(()=>a.value.matched[i.value]);ll(fp,B(()=>i.value+1)),ll(l6,s),ll(bd,a);const l=j();return Le(()=>[l.value,s.value,e.name],([u,c,d],[h,f,g])=>{c&&(c.instances[d]=u,f&&f!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),u&&c&&(!f||!Ro(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,d=s.value,h=d&&d.components[c];if(!h)return gp(n.default,{Component:h,route:u});const f=d.props[c],g=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=De(h,lt({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return gp(n.default,{Component:v,route:u})||v}}});function gp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const m6=p6;function v6(e){const t=U8(e.routes,e),n=e.parseQuery||i6,r=e.stringifyQuery||hp,a=e.history,o=vi(),i=vi(),s=vi(),l=Jb(Wr);let u=Wr;po&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=uc.bind(null,U=>""+U),d=uc.bind(null,o6),h=uc.bind(null,Il);function f(U,R){let K,H;return fg(U)?(K=t.getRecordMatcher(U),H=R):H=U,t.addRoute(H,K)}function g(U){const R=t.getRecordMatcher(U);R&&t.removeRoute(R)}function y(){return t.getRoutes().map(U=>U.record)}function v(U){return!!t.getRecordMatcher(U)}function p(U,R){if(R=lt({},R||l.value),typeof U=="string"){const P=cc(n,U,R.path),Z=t.resolve({path:P.path},R),Y=a.createHref(P.fullPath);return lt(P,Z,{params:h(Z.params),hash:Il(P.hash),redirectedFrom:void 0,href:Y})}let K;if("path"in U)K=lt({},U,{path:cc(n,U.path,R.path).path});else{const P=lt({},U.params);for(const Z in P)P[Z]==null&&delete P[Z];K=lt({},U,{params:d(P)}),R.params=d(R.params)}const H=t.resolve(K,R),te=U.hash||"";H.params=c(h(H.params));const E=y8(r,lt({},U,{hash:n6(te),path:H.path})),_=a.createHref(E);return lt({fullPath:E,hash:te,query:r===hp?s6(U.query):U.query||{}},H,{redirectedFrom:void 0,href:_})}function b(U){return typeof U=="string"?cc(n,U,l.value.path):lt({},U)}function m(U,R){if(u!==U)return $o(8,{from:R,to:U})}function w(U){return L(U)}function D(U){return w(lt(b(U),{replace:!0}))}function I(U){const R=U.matched[U.matched.length-1];if(R&&R.redirect){const{redirect:K}=R;let H=typeof K=="function"?K(U):K;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=b(H):{path:H},H.params={}),lt({query:U.query,hash:U.hash,params:"path"in H?{}:U.params},H)}}function L(U,R){const K=u=p(U),H=l.value,te=U.state,E=U.force,_=U.replace===!0,P=I(K);if(P)return L(lt(b(P),{state:typeof P=="object"?lt({},te,P.state):te,force:E,replace:_}),R||K);const Z=K;Z.redirectedFrom=R;let Y;return!E&&b8(r,H,K)&&(Y=$o(16,{to:Z,from:H}),Ue(H,H,!0,!1)),(Y?Promise.resolve(Y):k(Z,H)).catch(W=>Er(W)?Er(W,2)?W:Re(W):ye(W,Z,H)).then(W=>{if(W){if(Er(W,2))return L(lt({replace:_},b(W.to),{state:typeof W.to=="object"?lt({},te,W.to.state):te,force:E}),R||Z)}else W=M(Z,H,!0,_,te);return A(Z,H,W),W})}function T(U,R){const K=m(U,R);return K?Promise.reject(K):Promise.resolve()}function x(U){const R=$e.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(U):U()}function k(U,R){let K;const[H,te,E]=g6(U,R);K=dc(H.reverse(),"beforeRouteLeave",U,R);for(const P of H)P.leaveGuards.forEach(Z=>{K.push(ra(Z,U,R))});const _=T.bind(null,U,R);return K.push(_),je(K).then(()=>{K=[];for(const P of o.list())K.push(ra(P,U,R));return K.push(_),je(K)}).then(()=>{K=dc(te,"beforeRouteUpdate",U,R);for(const P of te)P.updateGuards.forEach(Z=>{K.push(ra(Z,U,R))});return K.push(_),je(K)}).then(()=>{K=[];for(const P of E)if(P.beforeEnter)if(Wn(P.beforeEnter))for(const Z of P.beforeEnter)K.push(ra(Z,U,R));else K.push(ra(P.beforeEnter,U,R));return K.push(_),je(K)}).then(()=>(U.matched.forEach(P=>P.enterCallbacks={}),K=dc(E,"beforeRouteEnter",U,R),K.push(_),je(K))).then(()=>{K=[];for(const P of i.list())K.push(ra(P,U,R));return K.push(_),je(K)}).catch(P=>Er(P,8)?P:Promise.reject(P))}function A(U,R,K){s.list().forEach(H=>x(()=>H(U,R,K)))}function M(U,R,K,H,te){const E=m(U,R);if(E)return E;const _=R===Wr,P=po?history.state:{};K&&(H||_?a.replace(U.fullPath,lt({scroll:_&&P&&P.scroll},te)):a.push(U.fullPath,te)),l.value=U,Ue(U,R,K,_),Re()}let N;function ee(){N||(N=a.listen((U,R,K)=>{if(!Ae.listening)return;const H=p(U),te=I(H);if(te){L(lt(te,{replace:!0}),H).catch($i);return}u=H;const E=l.value;po&&T8(ap(E.fullPath,K.delta),Pu()),k(H,E).catch(_=>Er(_,12)?_:Er(_,2)?(L(_.to,H).then(P=>{Er(P,20)&&!K.delta&&K.type===is.pop&&a.go(-1,!1)}).catch($i),Promise.reject()):(K.delta&&a.go(-K.delta,!1),ye(_,H,E))).then(_=>{_=_||M(H,E,!1),_&&(K.delta&&!Er(_,8)?a.go(-K.delta,!1):K.type===is.pop&&Er(_,20)&&a.go(-1,!1)),A(H,E,_)}).catch($i)}))}let ae=vi(),oe=vi(),Q;function ye(U,R,K){Re(U);const H=oe.list();return H.length?H.forEach(te=>te(U,R,K)):console.error(U),Promise.reject(U)}function _e(){return Q&&l.value!==Wr?Promise.resolve():new Promise((U,R)=>{ae.add([U,R])})}function Re(U){return Q||(Q=!U,ee(),ae.list().forEach(([R,K])=>U?K(U):R()),ae.reset()),U}function Ue(U,R,K,H){const{scrollBehavior:te}=e;if(!po||!te)return Promise.resolve();const E=!K&&D8(ap(U.fullPath,0))||(H||!K)&&history.state&&history.state.scroll||null;return on().then(()=>te(U,R,E)).then(_=>_&&_8(_)).catch(_=>ye(_,U,R))}const Fe=U=>a.go(U);let fe;const $e=new Set,Ae={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,hasRoute:v,getRoutes:y,resolve:p,options:e,push:w,replace:D,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:s.add,onError:oe.add,isReady:_e,install(U){const R=this;U.component("RouterLink",d6),U.component("RouterView",m6),U.config.globalProperties.$router=R,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(l)}),po&&!fe&&l.value===Wr&&(fe=!0,w(a.location).catch(te=>{}));const K={};for(const te in Wr)Object.defineProperty(K,te,{get:()=>l.value[te],enumerable:!0});U.provide(Bu,R),U.provide(bh,uv(K)),U.provide(bd,l);const H=U.unmount;$e.add(U),U.unmount=function(){$e.delete(U),$e.size<1&&(u=Wr,N&&N(),N=null,l.value=Wr,fe=!1,Q=!1),H()}}};function je(U){return U.reduce((R,K)=>R.then(()=>x(K)),Promise.resolve())}return Ae}function g6(e,t){const n=[],r=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iRo(u,s))?r.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find(u=>Ro(u,l))||a.push(l))}return[n,r,a]}function kte(){return Kn(Bu)}function y6(){return Kn(bh)}var b6=Object.defineProperty,w6=(e,t,n)=>t in e?b6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t,n)=>(w6(e,typeof t!="symbol"?t+"":t,n),n);async function kg(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 k6=ge({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:kg})}}),yp=ge({name:"KComponent",props:{data:{type:Object,default:{},required:!0}},setup(e,{slots:t}){const n=Fr(e.data);return()=>(t==null?void 0:t.default)&&t.default({data:n})}}),Iu=ge({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=j(e.toggled),a=()=>{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:a})}catch{return console.error(`KToggle expects to have slot content. + */const po=typeof window<"u";function m8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function uc(e,t){const n={};for(const r in t){const a=t[r];n[r]=Wn(a)?a.map(e):e(a)}return n}const $i=()=>{},Wn=Array.isArray,v8=/\/$/,g8=e=>e.replace(v8,"");function cc(e,t,n="/"){let r,a={},o="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),a=e(o)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=k8(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:a,hash:i}}function y8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function np(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function b8(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Ro(t.matched[r],n.matched[a])&&dg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ro(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function dg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!w8(e[n],t[n]))return!1;return!0}function w8(e,t){return Wn(e)?rp(e,t):Wn(t)?rp(t,e):e===t}function rp(e,t){return Wn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function k8(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let o=n.length-1,i,s;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var is;(function(e){e.pop="pop",e.push="push"})(is||(is={}));var Hi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hi||(Hi={}));function C8(e){if(!e)if(po){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),g8(e)}const E8=/^[^#]+#/;function x8(e,t){return e.replace(E8,"#")+t}function S8(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 Pu=()=>({left:window.pageXOffset,top:window.pageYOffset});function _8(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=S8(a,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 ap(e,t){return(history.state?history.state.position-t:-1)+e}const gd=new Map;function T8(e,t){gd.set(e,t)}function D8(e){const t=gd.get(e);return gd.delete(e),t}let M8=()=>location.protocol+"//"+location.host;function hg(e,t){const{pathname:n,search:r,hash:a}=t,o=e.indexOf("#");if(o>-1){let s=a.includes(e.slice(o))?e.slice(o).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),np(l,"")}return np(n,e)+r+a}function A8(e,t,n,r){let a=[],o=[],i=null;const s=({state:h})=>{const f=hg(e,location),g=n.value,y=t.value;let v=0;if(h){if(n.value=f,t.value=h,i&&i===g){i=null;return}v=y?h.position-y.position:0}else r(f);a.forEach(p=>{p(n.value,g,{delta:v,type:is.pop,direction:v?v>0?Hi.forward:Hi.back:Hi.unknown})})};function l(){i=n.value}function u(h){a.push(h);const f=()=>{const g=a.indexOf(h);g>-1&&a.splice(g,1)};return o.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(lt({},h.state,{scroll:Pu()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function op(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Pu():null}}function O8(e){const{history:t,location:n}=window,r={value:hg(e,n)},a={value:t.state};a.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:M8()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),a.value=u}catch(f){console.error(f),n[c?"replace":"assign"](h)}}function i(l,u){const c=lt({},t.state,op(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=lt({},a.value,t.state,{forward:l,scroll:Pu()});o(c.current,c,!0);const d=lt({},op(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:a,push:s,replace:i}}function P8(e){e=C8(e);const t=O8(e),n=A8(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const a=lt({location:"",base:e,go:r,createHref:x8.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function B8(e){return typeof e=="string"||e&&typeof e=="object"}function fg(e){return typeof e=="string"||typeof e=="symbol"}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pg=Symbol("");var ip;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ip||(ip={}));function $o(e,t){return lt(new Error,{type:e,[pg]:!0},t)}function Er(e,t){return e instanceof Error&&pg in e&&(t==null||!!(e.type&t))}const sp="[^/]+?",I8={sensitive:!1,strict:!1,start:!0,end:!0},N8=/[.+*?^${}()[\]/\\]/g;function L8(e,t){const n=lt({},I8,t),r=[];let a=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $8(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const H8={type:0,value:""},F8=/[a-zA-Z0-9_]/;function z8(e){if(!e)return[[]];if(e==="/")return[[H8]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${u}": ${f}`)}let n=0,r=n;const a=[];let o;function i(){o&&a.push(o),o=[]}let s=0,l,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.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(;s{i(b)}:$i}function i(c){if(fg(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function s(){return n}function l(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!mg(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!cp(c)&&r.set(c.record.name,c)}function u(c,d){let h,f={},g,y;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw $o(1,{location:c});y=h.record.name,f=lt(up(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&up(c.params,h.keys.map(b=>b.name))),g=h.stringify(f)}else if("path"in c)g=c.path,h=n.find(b=>b.re.test(g)),h&&(f=h.parse(g),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw $o(1,{location:c,currentLocation:d});y=h.record.name,f=lt({},d.params,c.params),g=h.stringify(f)}const v=[];let p=h;for(;p;)v.unshift(p.record),p=p.parent;return{name:y,path:g,params:f,matched:v,meta:V8(v)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:s,getRecordMatcher:a}}function up(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Z8(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Y8(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 Y8(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=="object"?n[r]:n;return t}function cp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function V8(e){return e.reduce((t,n)=>lt(t,n.meta),{})}function dp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function mg(e,t){return t.children.some(n=>n===e||mg(e,n))}const vg=/#/g,K8=/&/g,G8=/\//g,W8=/=/g,q8=/\?/g,gg=/\+/g,Q8=/%5B/g,X8=/%5D/g,yg=/%5E/g,J8=/%60/g,bg=/%7B/g,e6=/%7C/g,wg=/%7D/g,t6=/%20/g;function yh(e){return encodeURI(""+e).replace(e6,"|").replace(Q8,"[").replace(X8,"]")}function n6(e){return yh(e).replace(bg,"{").replace(wg,"}").replace(yg,"^")}function yd(e){return yh(e).replace(gg,"%2B").replace(t6,"+").replace(vg,"%23").replace(K8,"%26").replace(J8,"`").replace(bg,"{").replace(wg,"}").replace(yg,"^")}function r6(e){return yd(e).replace(W8,"%3D")}function a6(e){return yh(e).replace(vg,"%23").replace(q8,"%3F")}function o6(e){return e==null?"":a6(e).replace(G8,"%2F")}function Il(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function i6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&yd(o)):[r&&yd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function s6(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Wn(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const l6=Symbol(""),fp=Symbol(""),Bu=Symbol(""),bh=Symbol(""),bd=Symbol("");function vi(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ra(e,t,n,r,a){const o=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((i,s)=>{const l=d=>{d===!1?s($o(4,{from:n,to:t})):d instanceof Error?s(d):B8(d)?s($o(2,{from:t,to:d})):(o&&r.enterCallbacks[a]===o&&typeof d=="function"&&o.push(d),i())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(d=>s(d))})}function dc(e,t,n,r){const a=[];for(const o of e)for(const i in o.components){let s=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(u6(s)){const u=(s.__vccOpts||s)[t];u&&a.push(ra(u,n,r,o,i))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const c=m8(u)?u.default:u;o.components[i]=c;const h=(c.__vccOpts||c)[t];return h&&ra(h,n,r,o,i)()}))}}return a}function u6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pp(e){const t=Kn(Bu),n=Kn(bh),r=B(()=>t.resolve(pe(e.to))),a=B(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const h=d.findIndex(Ro.bind(null,c));if(h>-1)return h;const f=mp(l[u-2]);return u>1&&mp(c)===f&&d[d.length-1].path!==f?d.findIndex(Ro.bind(null,l[u-2])):h}),o=B(()=>a.value>-1&&f6(n.params,r.value.params)),i=B(()=>a.value>-1&&a.value===n.matched.length-1&&dg(n.params,r.value.params));function s(l={}){return h6(l)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch($i):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:o,isExactActive:i,navigate:s}}const c6=ge({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:pp,setup(e,{slots:t}){const n=zr(pp(e)),{options:r}=Kn(Bu),a=B(()=>({[vp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[vp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:De("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),d6=c6;function h6(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 f6(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Wn(a)||a.length!==r.length||r.some((o,i)=>o!==a[i]))return!1}return!0}function mp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vp=(e,t,n)=>e??t??n,p6=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Kn(bd),a=B(()=>e.route||r.value),o=Kn(fp,0),i=B(()=>{let u=pe(o);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=B(()=>a.value.matched[i.value]);ll(fp,B(()=>i.value+1)),ll(l6,s),ll(bd,a);const l=j();return Le(()=>[l.value,s.value,e.name],([u,c,d],[h,f,g])=>{c&&(c.instances[d]=u,f&&f!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),u&&c&&(!f||!Ro(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,d=s.value,h=d&&d.components[c];if(!h)return gp(n.default,{Component:h,route:u});const f=d.props[c],g=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=De(h,lt({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return gp(n.default,{Component:v,route:u})||v}}});function gp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const m6=p6;function v6(e){const t=U8(e.routes,e),n=e.parseQuery||i6,r=e.stringifyQuery||hp,a=e.history,o=vi(),i=vi(),s=vi(),l=Jb(Wr);let u=Wr;po&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=uc.bind(null,U=>""+U),d=uc.bind(null,o6),h=uc.bind(null,Il);function f(U,R){let K,H;return fg(U)?(K=t.getRecordMatcher(U),H=R):H=U,t.addRoute(H,K)}function g(U){const R=t.getRecordMatcher(U);R&&t.removeRoute(R)}function y(){return t.getRoutes().map(U=>U.record)}function v(U){return!!t.getRecordMatcher(U)}function p(U,R){if(R=lt({},R||l.value),typeof U=="string"){const P=cc(n,U,R.path),Z=t.resolve({path:P.path},R),Y=a.createHref(P.fullPath);return lt(P,Z,{params:h(Z.params),hash:Il(P.hash),redirectedFrom:void 0,href:Y})}let K;if("path"in U)K=lt({},U,{path:cc(n,U.path,R.path).path});else{const P=lt({},U.params);for(const Z in P)P[Z]==null&&delete P[Z];K=lt({},U,{params:d(P)}),R.params=d(R.params)}const H=t.resolve(K,R),te=U.hash||"";H.params=c(h(H.params));const E=y8(r,lt({},U,{hash:n6(te),path:H.path})),_=a.createHref(E);return lt({fullPath:E,hash:te,query:r===hp?s6(U.query):U.query||{}},H,{redirectedFrom:void 0,href:_})}function b(U){return typeof U=="string"?cc(n,U,l.value.path):lt({},U)}function m(U,R){if(u!==U)return $o(8,{from:R,to:U})}function w(U){return L(U)}function D(U){return w(lt(b(U),{replace:!0}))}function I(U){const R=U.matched[U.matched.length-1];if(R&&R.redirect){const{redirect:K}=R;let H=typeof K=="function"?K(U):K;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=b(H):{path:H},H.params={}),lt({query:U.query,hash:U.hash,params:"path"in H?{}:U.params},H)}}function L(U,R){const K=u=p(U),H=l.value,te=U.state,E=U.force,_=U.replace===!0,P=I(K);if(P)return L(lt(b(P),{state:typeof P=="object"?lt({},te,P.state):te,force:E,replace:_}),R||K);const Z=K;Z.redirectedFrom=R;let Y;return!E&&b8(r,H,K)&&(Y=$o(16,{to:Z,from:H}),Ue(H,H,!0,!1)),(Y?Promise.resolve(Y):k(Z,H)).catch(W=>Er(W)?Er(W,2)?W:Re(W):ye(W,Z,H)).then(W=>{if(W){if(Er(W,2))return L(lt({replace:_},b(W.to),{state:typeof W.to=="object"?lt({},te,W.to.state):te,force:E}),R||Z)}else W=M(Z,H,!0,_,te);return A(Z,H,W),W})}function T(U,R){const K=m(U,R);return K?Promise.reject(K):Promise.resolve()}function x(U){const R=$e.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(U):U()}function k(U,R){let K;const[H,te,E]=g6(U,R);K=dc(H.reverse(),"beforeRouteLeave",U,R);for(const P of H)P.leaveGuards.forEach(Z=>{K.push(ra(Z,U,R))});const _=T.bind(null,U,R);return K.push(_),je(K).then(()=>{K=[];for(const P of o.list())K.push(ra(P,U,R));return K.push(_),je(K)}).then(()=>{K=dc(te,"beforeRouteUpdate",U,R);for(const P of te)P.updateGuards.forEach(Z=>{K.push(ra(Z,U,R))});return K.push(_),je(K)}).then(()=>{K=[];for(const P of E)if(P.beforeEnter)if(Wn(P.beforeEnter))for(const Z of P.beforeEnter)K.push(ra(Z,U,R));else K.push(ra(P.beforeEnter,U,R));return K.push(_),je(K)}).then(()=>(U.matched.forEach(P=>P.enterCallbacks={}),K=dc(E,"beforeRouteEnter",U,R),K.push(_),je(K))).then(()=>{K=[];for(const P of i.list())K.push(ra(P,U,R));return K.push(_),je(K)}).catch(P=>Er(P,8)?P:Promise.reject(P))}function A(U,R,K){s.list().forEach(H=>x(()=>H(U,R,K)))}function M(U,R,K,H,te){const E=m(U,R);if(E)return E;const _=R===Wr,P=po?history.state:{};K&&(H||_?a.replace(U.fullPath,lt({scroll:_&&P&&P.scroll},te)):a.push(U.fullPath,te)),l.value=U,Ue(U,R,K,_),Re()}let N;function ee(){N||(N=a.listen((U,R,K)=>{if(!Ae.listening)return;const H=p(U),te=I(H);if(te){L(lt(te,{replace:!0}),H).catch($i);return}u=H;const E=l.value;po&&T8(ap(E.fullPath,K.delta),Pu()),k(H,E).catch(_=>Er(_,12)?_:Er(_,2)?(L(_.to,H).then(P=>{Er(P,20)&&!K.delta&&K.type===is.pop&&a.go(-1,!1)}).catch($i),Promise.reject()):(K.delta&&a.go(-K.delta,!1),ye(_,H,E))).then(_=>{_=_||M(H,E,!1),_&&(K.delta&&!Er(_,8)?a.go(-K.delta,!1):K.type===is.pop&&Er(_,20)&&a.go(-1,!1)),A(H,E,_)}).catch($i)}))}let ae=vi(),oe=vi(),Q;function ye(U,R,K){Re(U);const H=oe.list();return H.length?H.forEach(te=>te(U,R,K)):console.error(U),Promise.reject(U)}function _e(){return Q&&l.value!==Wr?Promise.resolve():new Promise((U,R)=>{ae.add([U,R])})}function Re(U){return Q||(Q=!U,ee(),ae.list().forEach(([R,K])=>U?K(U):R()),ae.reset()),U}function Ue(U,R,K,H){const{scrollBehavior:te}=e;if(!po||!te)return Promise.resolve();const E=!K&&D8(ap(U.fullPath,0))||(H||!K)&&history.state&&history.state.scroll||null;return on().then(()=>te(U,R,E)).then(_=>_&&_8(_)).catch(_=>ye(_,U,R))}const ze=U=>a.go(U);let fe;const $e=new Set,Ae={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,hasRoute:v,getRoutes:y,resolve:p,options:e,push:w,replace:D,go:ze,back:()=>ze(-1),forward:()=>ze(1),beforeEach:o.add,beforeResolve:i.add,afterEach:s.add,onError:oe.add,isReady:_e,install(U){const R=this;U.component("RouterLink",d6),U.component("RouterView",m6),U.config.globalProperties.$router=R,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(l)}),po&&!fe&&l.value===Wr&&(fe=!0,w(a.location).catch(te=>{}));const K={};for(const te in Wr)Object.defineProperty(K,te,{get:()=>l.value[te],enumerable:!0});U.provide(Bu,R),U.provide(bh,uv(K)),U.provide(bd,l);const H=U.unmount;$e.add(U),U.unmount=function(){$e.delete(U),$e.size<1&&(u=Wr,N&&N(),N=null,l.value=Wr,fe=!1,Q=!1),H()}}};function je(U){return U.reduce((R,K)=>R.then(()=>x(K)),Promise.resolve())}return Ae}function g6(e,t){const n=[],r=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iRo(u,s))?r.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find(u=>Ro(u,l))||a.push(l))}return[n,r,a]}function kte(){return Kn(Bu)}function y6(){return Kn(bh)}var b6=Object.defineProperty,w6=(e,t,n)=>t in e?b6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t,n)=>(w6(e,typeof t!="symbol"?t+"":t,n),n);async function kg(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 k6=ge({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:kg})}}),yp=ge({name:"KComponent",props:{data:{type:Object,default:{},required:!0}},setup(e,{slots:t}){const n=zr(e.data);return()=>(t==null?void 0:t.default)&&t.default({data:n})}}),Iu=ge({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=j(e.toggled),a=()=>{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:a})}catch{return console.error(`KToggle expects to have slot content. Example usage: @@ -86,10 +86,10 @@ var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,config Close -`,z6=` +`,F6=` Cloud Hybrid -`,F6=` +`,z6=` Settings @@ -313,11 +313,11 @@ var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,config Edit -`,z7=` +`,F7=` Organization -`,F7=` +`,z7=` Dev Portal @@ -444,7 +444,7 @@ var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,config `,pw=` -`,bp=Object.freeze(Object.defineProperty({__proto__:null,arrowDown:C6,arrowLeft:E6,arrowRight:x6,arrowUp:S6,back:_6,book:T6,bot:D6,brain:M6,calendar:A6,check:O6,chevronDown:P6,chevronLeft:B6,chevronRight:I6,chevronUp:N6,circleCheck:L6,clear:R6,clipboard:$6,close:H6,cloudHybrid:z6,cogwheel:F6,collapseExpand:j6,connections:Z6,contactSupport:U6,copy:Y6,dangerCircle:V6,dangerCircleOutline:K6,dashboard:G6,decrease:W6,devPortal:q6,disabled:Q6,document:X6,documentList:J6,drag:e7,errorFilled:t7,expand:n7,externalLink:r7,featureRequest:a7,fileEmpty:o7,fileJson:i7,fileMd:s7,fileYaml:l7,filter:u7,flag:c7,forbidden:d7,forward:h7,gateway:f7,gear:p7,gearFilled:m7,graduationHat:v7,grid:g7,handClock:y7,help:b7,image:w7,immunity:k7,increase:C7,info:E7,infoFilled:x7,insights:S7,kong:_7,list:D7,lock:T7,mesh:M7,more:A7,moreHorizontal:O7,noData:P7,notificationBell:B7,notificationInbox:I7,organization:N7,organizations:$7,pencil:H7,people:z7,plug:L7,plus:R7,portal:F7,presentation:j7,profile:U7,redo:Z7,runtimes:Y7,search:V7,security:K7,serviceDocument:G7,serviceHub:W7,services:q7,sharedConfig:Q7,spinner:X7,stackedCards:J7,stateConfigure:ew,stateGruceo:tw,stateNoData:nw,stateNoSearchResults:rw,stateUpload:aw,support:ow,table:iw,team:sw,teamMember:lw,trash:uw,vitals:cw,vitalsChart:dw,warning:hw,workspaces:fw,workspacesCollapsed:pw},Symbol.toStringTag,{value:"Module"})),mw="#52596e",Cg="#e0e4ea",vw="#000933",gw="#d60027",yw="#00abd2",Nu="#ffffff",Ho="#6c7489",bw="#3a3f51",ww="#232633",Xa="#afb7c5",Nl="#0044f4",kw="#0030cc",Cw="#002099",Eg="10px",ws="12px",xt="16px",Ll="20px",Lu="24px",Ew="32px",xw="48px",Sw="#f1f0ff",_w="#ffe5e5",Tw="#eefaff",Dw="#6c7489",Mw="#f9fafb",Aw="#ecfcff",Ow="#ecfffb",Pw="#fffce0",Bw="#fff0f7",Iw="#6f28ff",Nw="#d60027",Lw="#0044f4",Rw="#f9fafb",$w="#6c7489",Hw="#00819d",zw="#007d60",Fw="#995c00",jw="#d60067",Uw="8px",Zw=["innerHTML"],Yw={class:"slot-content"},Vw=["innerHTML"],Kw={inheritAttrs:!1},Gw=ge({...Kw,__name:"KIcon",props:{icon:{type:String,validator:e=>Object.keys(bp).includes(e),required:!0},size:{type:String,default:""},color:{type:String,default:null},secondaryColor:{type:String,default:null},viewBox:{type:String,default:""},title:{type:String,default:""},hideTitle:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=bp,r={size:Lu,viewBox:"0 0 24 24"},a=Xn(),o=It(),i=j(),s=j(),l=j(!0),u=B(()=>{if(t.title)return t.title;if(t.testMode)return t.icon;const m=s.value&&s.value.getElementsByTagName("title");if(m&&m.length)return m[0].innerHTML;const w=t.icon.split(/(?=[A-Z])/).join(" ");return g(w)}),c=B(()=>s.value?s.value.getAttribute("width"):null),d=B(()=>s.value?s.value.getAttribute("height"):null),h=B(()=>s.value&&(t.size||s.value&&s.value.getAttribute("width"))||r.size),f=B(()=>s.value&&(t.viewBox||s.value&&s.value.getAttribute("viewBox"))||r.viewBox),g=m=>m.split("-").map(w=>w.charAt(0).toUpperCase()+w.substring(1)).join(" "),y=()=>{var m,w,D,I;const L=(w=(m=i==null?void 0:i.value)==null?void 0:m.querySelector(".slot-content"))==null?void 0:w.innerHTML;(I=i.value)==null||I.removeChild((D=i==null?void 0:i.value)==null?void 0:D.querySelector(".slot-content")),s.value.innerHTML+=L,l.value=!1},v=()=>{let m=s.value.querySelector("title");if(m&&t.hideTitle)s.value.removeChild(m);else if(!t.hideTitle)if(m)m.textContent=u.value;else{m=document.createElement("title");const w=document.createTextNode(u.value);m.appendChild(w),s.value.append(m)}},p=m=>{if(!m)return;const w=m.hasAttribute("fill"),D=m.getAttribute("stroke")&&m.getAttribute("stroke")!=="none"?m.getAttribute("stroke"):null,I=m.attributes.id&&m.attributes.id.value==="preserveColor",L=m.attributes.type&&m.attributes.type.value==="secondary";!I&&w&&L&&t.secondaryColor?m.setAttribute("fill",t.secondaryColor):!I&&D&&L&&t.secondaryColor?m.setAttribute("stroke",t.secondaryColor):!I&&!L&&w&&!D&&t.color?m.setAttribute("fill",t.color):D&&t.color&&m.setAttribute("stroke",t.color);for(const T of m.children)p(T)};Le(()=>[t.icon,t.size,t.color,t.secondaryColor,t.viewBox,t.hideTitle],async()=>{await on(),b()},{deep:!0});const b=()=>{if(s.value=null,s.value=i.value?i.value.querySelector("svg:not(.slot-content)"):null,s.value){o.svgElements&&y();for(const[m,w]of Object.entries(a))["class","id","style"].includes(m)||s.value.setAttribute(m,w);s.value.setAttribute("role","img"),s.value.setAttribute("width",h.value||c.value),s.value.setAttribute("height",h.value||d.value),s.value.setAttribute("viewBox",f.value),v(),p(s.value)}};return ft(async()=>{await on(),b()}),(m,w)=>m.$slots.svgElements?(C(),S("span",Ke({key:1},m.$attrs,{ref_key:"svgWrapper",ref:i,class:["kong-icon",`kong-icon-${e.icon}`]}),[(C(),S("svg",Yw,[F(m.$slots,"svgElements",{},void 0,!0)])),O("span",{class:q({"svg-with-slot-is-hidden":l.value}),innerHTML:pe(n)[e.icon]},null,10,Vw)],16)):(C(),S("span",Ke({key:0},m.$attrs,{ref_key:"svgWrapper",ref:i,class:["kong-icon",`kong-icon-${e.icon}`],innerHTML:pe(n)[e.icon]}),null,16,Zw))}}),Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Be=Ee(Gw,[["__scopeId","data-v-32539fc3"]]),Ww=["disabled","href","type"],qw={primary:"primary",secondary:"secondary",danger:"danger",creation:"creation",outline:"outline",btnLink:"btn-link",btnLinkDanger:"btn-link-danger",actionActive:"action-active"},Qw={small:"small",medium:"medium",large:"large"},Xw={inheritAttrs:!1},Jw=ge({...Xw,__name:"KButton",props:{appearance:{type:String,default:"outline",validator:e=>Object.values(qw).indexOf(e)!==-1},size:{type:String,default:"medium",validator:e=>Object.values(Qw).indexOf(e)!==-1},to:{type:[Object,String],default:null},type:{type:String,default:"button"},showCaret:{type:Boolean,default:!1},caretColor:{type:String,default:void 0},isRounded:{type:Boolean,default:!0},icon:{type:String,default:""},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=It(),r=Xn(),a=B(()=>!!n.icon),o=B(()=>!!n.default),i=B(()=>t.to?"router-link":"button"),s=B(()=>t.disabled?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:["primary","danger","creation"].includes(t.appearance)?`var(--kui-color-text-inverse, ${Nu})`:t.appearance==="secondary"?`var(--KButtonSecondaryColor, var(--blue-600, var(--kui-color-text-primary-stronger, ${Cw})))`:t.appearance==="outline"?`var(--KButtonOutlineColor, var(--blue-500, var(--kui-color-text-primary, ${Nl})))`:t.appearance==="btn-link"?`var(--KButtonLink, var(--blue-500, var(--kui-color-text-primary, ${Nl})))`:t.appearance==="btn-link-danger"?`var(--KButtonLinkDanger, var(--red-500, var(--kui-color-text-danger, ${gw})))`:""),l=B(()=>{if(t.disabled!==void 0&&t.disabled!==!1)return r;const u=Object.assign({},r);return delete u.disabled,u});return(u,c)=>typeof e.to=="string"?(C(),S("a",Ke({key:0,class:["k-button",[e.size,{"icon-btn":!o.value&&a.value,rounded:e.isRounded},e.appearance]],disabled:e.disabled?e.disabled:void 0,href:e.to,type:e.type},l.value),[F(u.$slots,"icon",{},()=>[e.icon?(C(),se(Be,{key:0,class:"k-button-icon",color:s.value,icon:e.icon,size:pe(xt)},null,8,["color","icon","size"])):$("",!0)],!0),F(u.$slots,"default",{},void 0,!0),e.showCaret?(C(),se(Be,{key:0,color:s.value,icon:"chevronDown",size:pe(xt),"view-box":"2 2 15 15"},null,8,["color","size"])):$("",!0)],16,Ww)):(C(),se(va(i.value),Ke({key:1,class:["k-button",[e.size,{"icon-btn":!o.value&&a.value,rounded:e.isRounded},e.appearance]],disabled:e.disabled?e.disabled:void 0,to:e.to,type:e.type},l.value),{default:z(()=>[F(u.$slots,"icon",{},()=>[e.icon?(C(),se(Be,{key:0,class:"k-button-icon",color:s.value,icon:e.icon,size:pe(xt)},null,8,["color","icon","size"])):$("",!0)],!0),F(u.$slots,"default",{},void 0,!0),e.showCaret?(C(),se(Be,{key:0,class:q(["caret"]),color:e.caretColor||s.value,icon:"chevronDown",size:pe(xt),"view-box":"2 2 15 15"},null,8,["color","size"])):$("",!0)]),_:3},16,["class","disabled","to","type"]))}}),We=Ee(Jw,[["__scopeId","data-v-9a758cf3"]]),e9={key:0,class:"k-alert-title"},t9={key:1,class:"k-alert-description-text"},xg={info:"info",success:"success",danger:"danger",warning:"warning"},n9=ge({__name:"KAlert",props:{alertMessage:{type:String,default:""},isShowing:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},hasLeftBorder:{type:Boolean,default:!1},hasRightBorder:{type:Boolean,default:!1},hasTopBorder:{type:Boolean,default:!1},hasBottomBorder:{type:Boolean,default:!1},isCentered:{type:Boolean,default:!1},iconSize:{type:String,default:Ew},icon:{type:String,default:""},iconColor:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},appearance:{type:String,default:"info",validator:e=>Object.values(xg).includes(e)},size:{type:String,default:"",validator:e=>["","small","large"].includes(e)},dismissType:{type:String,default:"none",validator:e=>["none","icon","button"].includes(e)},type:{type:String,default:"alert",validator:e=>["alert","banner"].includes(e)}},emits:["closed","proceed"],setup(e,{emit:t}){const n=It(),r=B(()=>!!n.actionButtons),a=()=>{t("closed")},o=()=>{t("proceed")};return(i,s)=>e.isShowing?(C(),S("div",{key:0,class:q(["k-alert",[e.appearance,e.size,e.dismissType,{"is-bordered":e.isBordered},{"has-left-border":e.hasLeftBorder},{"has-right-border":e.hasRightBorder},{"has-top-border":e.hasTopBorder},{"has-bottom-border":e.hasBottomBorder},{"is-centered":e.isCentered},{"is-fixed":e.isFixed},{"is-alert":e.type==="alert"},{"is-banner":e.type==="banner"}]]),role:"alert",onClick:s[0]||(s[0]=Mt(()=>{},["stop"]))},[e.type==="banner"&&e.size!=="large"?(C(),S("span",{key:0,class:q(["k-alert-ellipse",e.appearance])},null,2)):$("",!0),e.icon||i.$slots.icon?(C(),S("span",{key:1,class:q(["k-alert-icon-container",{"k-alert-icon-container-large":e.size==="large"}])},[F(i.$slots,"icon",{},()=>[G(Be,{class:"k-alert-icon",color:e.iconColor,icon:e.icon,size:e.iconSize},null,8,["color","icon","size"])],!0)],2)):$("",!0),O("div",{class:q(["k-alert-msg-text",{"has-dismiss-icon":e.dismissType==="icon"},{"has-dismiss-button":e.dismissType==="button"}])},[e.title||i.$slots.title?(C(),S("div",e9,[F(i.$slots,"title",{},()=>[J(V(e.title),1)],!0)])):$("",!0),O("div",{class:q(["k-alert-msg",{"k-alert-text":e.size==="large","k-alert-subtext":e.title||i.$slots.title}])},[F(i.$slots,"alertMessage",{},()=>[J(V(e.alertMessage),1)],!0)],2),e.size==="large"&&(e.description||i.$slots.description)?(C(),S("div",t9,[F(i.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2),e.dismissType==="icon"?(C(),S("button",{key:2,"aria-label":"Close",class:"close",type:"button",onClick:a},[G(Be,{class:q(e.appearance),color:e.appearance,icon:"close",size:pe(ws)},null,8,["class","color","size"])])):$("",!0),r.value||e.dismissType!=="none"?(C(),S("div",{key:3,class:q(["k-alert-action",e.appearance])},[r.value?F(i.$slots,"actionButtons",{key:0},()=>[G(We,{size:"small",onClick:o,onKeyup:jt(o,["enter"])},null,8,["onKeyup"])],!0):$("",!0),e.dismissType==="button"?(C(),se(We,{key:1,size:"small",onClick:a},{default:z(()=>[J(" Dismiss ")]),_:1})):$("",!0)],2)):$("",!0)],2)):$("",!0)}}),Sg=Ee(n9,[["__scopeId","data-v-0da964c0"]]);var js,r9=new Uint8Array(16);function _g(){if(!js&&(js=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!js))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return js(r9)}const a9=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function o9(e){return typeof e=="string"&&a9.test(e)}var Ut=[];for(var hc=0;hc<256;++hc)Ut.push((hc+256).toString(16).substr(1));function Tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ut[e[t+0]]+Ut[e[t+1]]+Ut[e[t+2]]+Ut[e[t+3]]+"-"+Ut[e[t+4]]+Ut[e[t+5]]+"-"+Ut[e[t+6]]+Ut[e[t+7]]+"-"+Ut[e[t+8]]+Ut[e[t+9]]+"-"+Ut[e[t+10]]+Ut[e[t+11]]+Ut[e[t+12]]+Ut[e[t+13]]+Ut[e[t+14]]+Ut[e[t+15]]).toLowerCase();if(!o9(n))throw TypeError("Stringified UUID is invalid");return n}var wp,fc,pc=0,mc=0;function pa(e,t,n){var r=t&&n||0,a=t||new Array(16);e=e||{};var o=e.node||wp,i=e.clockseq!==void 0?e.clockseq:fc;if(o==null||i==null){var s=e.random||(e.rng||_g)();o==null&&(o=wp=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),i==null&&(i=fc=(s[6]<<8|s[7])&16383)}var l=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:mc+1,c=l-pc+(u-mc)/1e4;if(c<0&&e.clockseq===void 0&&(i=i+1&16383),(c<0||l>pc)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pc=l,mc=u,fc=i,l+=122192928e5;var d=((l&268435455)*1e4+u)%4294967296;a[r++]=d>>>24&255,a[r++]=d>>>16&255,a[r++]=d>>>8&255,a[r++]=d&255;var h=l/4294967296*1e4&268435455;a[r++]=h>>>8&255,a[r++]=h&255,a[r++]=h>>>24&15|16,a[r++]=h>>>16&255,a[r++]=i>>>8|128,a[r++]=i&255;for(var f=0;f<6;++f)a[r+f]=o[f];return t||Tg(a)}function an(e,t,n){e=e||{};var r=e.random||(e.rng||_g)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return Tg(r)}/**! +`,bp=Object.freeze(Object.defineProperty({__proto__:null,arrowDown:C6,arrowLeft:E6,arrowRight:x6,arrowUp:S6,back:_6,book:T6,bot:D6,brain:M6,calendar:A6,check:O6,chevronDown:P6,chevronLeft:B6,chevronRight:I6,chevronUp:N6,circleCheck:L6,clear:R6,clipboard:$6,close:H6,cloudHybrid:F6,cogwheel:z6,collapseExpand:j6,connections:Z6,contactSupport:U6,copy:Y6,dangerCircle:V6,dangerCircleOutline:K6,dashboard:G6,decrease:W6,devPortal:q6,disabled:Q6,document:X6,documentList:J6,drag:e7,errorFilled:t7,expand:n7,externalLink:r7,featureRequest:a7,fileEmpty:o7,fileJson:i7,fileMd:s7,fileYaml:l7,filter:u7,flag:c7,forbidden:d7,forward:h7,gateway:f7,gear:p7,gearFilled:m7,graduationHat:v7,grid:g7,handClock:y7,help:b7,image:w7,immunity:k7,increase:C7,info:E7,infoFilled:x7,insights:S7,kong:_7,list:D7,lock:T7,mesh:M7,more:A7,moreHorizontal:O7,noData:P7,notificationBell:B7,notificationInbox:I7,organization:N7,organizations:$7,pencil:H7,people:F7,plug:L7,plus:R7,portal:z7,presentation:j7,profile:U7,redo:Z7,runtimes:Y7,search:V7,security:K7,serviceDocument:G7,serviceHub:W7,services:q7,sharedConfig:Q7,spinner:X7,stackedCards:J7,stateConfigure:ew,stateGruceo:tw,stateNoData:nw,stateNoSearchResults:rw,stateUpload:aw,support:ow,table:iw,team:sw,teamMember:lw,trash:uw,vitals:cw,vitalsChart:dw,warning:hw,workspaces:fw,workspacesCollapsed:pw},Symbol.toStringTag,{value:"Module"})),mw="#52596e",Cg="#e0e4ea",vw="#000933",gw="#d60027",yw="#00abd2",Nu="#ffffff",Ho="#6c7489",bw="#3a3f51",ww="#232633",Xa="#afb7c5",Nl="#0044f4",kw="#0030cc",Cw="#002099",Eg="10px",ws="12px",xt="16px",Ll="20px",Lu="24px",Ew="32px",xw="48px",Sw="#f1f0ff",_w="#ffe5e5",Tw="#eefaff",Dw="#6c7489",Mw="#f9fafb",Aw="#ecfcff",Ow="#ecfffb",Pw="#fffce0",Bw="#fff0f7",Iw="#6f28ff",Nw="#d60027",Lw="#0044f4",Rw="#f9fafb",$w="#6c7489",Hw="#00819d",Fw="#007d60",zw="#995c00",jw="#d60067",Uw="8px",Zw=["innerHTML"],Yw={class:"slot-content"},Vw=["innerHTML"],Kw={inheritAttrs:!1},Gw=ge({...Kw,__name:"KIcon",props:{icon:{type:String,validator:e=>Object.keys(bp).includes(e),required:!0},size:{type:String,default:""},color:{type:String,default:null},secondaryColor:{type:String,default:null},viewBox:{type:String,default:""},title:{type:String,default:""},hideTitle:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=bp,r={size:Lu,viewBox:"0 0 24 24"},a=Xn(),o=It(),i=j(),s=j(),l=j(!0),u=B(()=>{if(t.title)return t.title;if(t.testMode)return t.icon;const m=s.value&&s.value.getElementsByTagName("title");if(m&&m.length)return m[0].innerHTML;const w=t.icon.split(/(?=[A-Z])/).join(" ");return g(w)}),c=B(()=>s.value?s.value.getAttribute("width"):null),d=B(()=>s.value?s.value.getAttribute("height"):null),h=B(()=>s.value&&(t.size||s.value&&s.value.getAttribute("width"))||r.size),f=B(()=>s.value&&(t.viewBox||s.value&&s.value.getAttribute("viewBox"))||r.viewBox),g=m=>m.split("-").map(w=>w.charAt(0).toUpperCase()+w.substring(1)).join(" "),y=()=>{var m,w,D,I;const L=(w=(m=i==null?void 0:i.value)==null?void 0:m.querySelector(".slot-content"))==null?void 0:w.innerHTML;(I=i.value)==null||I.removeChild((D=i==null?void 0:i.value)==null?void 0:D.querySelector(".slot-content")),s.value.innerHTML+=L,l.value=!1},v=()=>{let m=s.value.querySelector("title");if(m&&t.hideTitle)s.value.removeChild(m);else if(!t.hideTitle)if(m)m.textContent=u.value;else{m=document.createElement("title");const w=document.createTextNode(u.value);m.appendChild(w),s.value.append(m)}},p=m=>{if(!m)return;const w=m.hasAttribute("fill"),D=m.getAttribute("stroke")&&m.getAttribute("stroke")!=="none"?m.getAttribute("stroke"):null,I=m.attributes.id&&m.attributes.id.value==="preserveColor",L=m.attributes.type&&m.attributes.type.value==="secondary";!I&&w&&L&&t.secondaryColor?m.setAttribute("fill",t.secondaryColor):!I&&D&&L&&t.secondaryColor?m.setAttribute("stroke",t.secondaryColor):!I&&!L&&w&&!D&&t.color?m.setAttribute("fill",t.color):D&&t.color&&m.setAttribute("stroke",t.color);for(const T of m.children)p(T)};Le(()=>[t.icon,t.size,t.color,t.secondaryColor,t.viewBox,t.hideTitle],async()=>{await on(),b()},{deep:!0});const b=()=>{if(s.value=null,s.value=i.value?i.value.querySelector("svg:not(.slot-content)"):null,s.value){o.svgElements&&y();for(const[m,w]of Object.entries(a))["class","id","style"].includes(m)||s.value.setAttribute(m,w);s.value.setAttribute("role","img"),s.value.setAttribute("width",h.value||c.value),s.value.setAttribute("height",h.value||d.value),s.value.setAttribute("viewBox",f.value),v(),p(s.value)}};return ft(async()=>{await on(),b()}),(m,w)=>m.$slots.svgElements?(C(),S("span",Ke({key:1},m.$attrs,{ref_key:"svgWrapper",ref:i,class:["kong-icon",`kong-icon-${e.icon}`]}),[(C(),S("svg",Yw,[z(m.$slots,"svgElements",{},void 0,!0)])),O("span",{class:q({"svg-with-slot-is-hidden":l.value}),innerHTML:pe(n)[e.icon]},null,10,Vw)],16)):(C(),S("span",Ke({key:0},m.$attrs,{ref_key:"svgWrapper",ref:i,class:["kong-icon",`kong-icon-${e.icon}`],innerHTML:pe(n)[e.icon]}),null,16,Zw))}}),Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Be=Ee(Gw,[["__scopeId","data-v-32539fc3"]]),Ww=["disabled","href","type"],qw={primary:"primary",secondary:"secondary",danger:"danger",creation:"creation",outline:"outline",btnLink:"btn-link",btnLinkDanger:"btn-link-danger",actionActive:"action-active"},Qw={small:"small",medium:"medium",large:"large"},Xw={inheritAttrs:!1},Jw=ge({...Xw,__name:"KButton",props:{appearance:{type:String,default:"outline",validator:e=>Object.values(qw).indexOf(e)!==-1},size:{type:String,default:"medium",validator:e=>Object.values(Qw).indexOf(e)!==-1},to:{type:[Object,String],default:null},type:{type:String,default:"button"},showCaret:{type:Boolean,default:!1},caretColor:{type:String,default:void 0},isRounded:{type:Boolean,default:!0},icon:{type:String,default:""},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=It(),r=Xn(),a=B(()=>!!n.icon),o=B(()=>!!n.default),i=B(()=>t.to?"router-link":"button"),s=B(()=>t.disabled?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:["primary","danger","creation"].includes(t.appearance)?`var(--kui-color-text-inverse, ${Nu})`:t.appearance==="secondary"?`var(--KButtonSecondaryColor, var(--blue-600, var(--kui-color-text-primary-stronger, ${Cw})))`:t.appearance==="outline"?`var(--KButtonOutlineColor, var(--blue-500, var(--kui-color-text-primary, ${Nl})))`:t.appearance==="btn-link"?`var(--KButtonLink, var(--blue-500, var(--kui-color-text-primary, ${Nl})))`:t.appearance==="btn-link-danger"?`var(--KButtonLinkDanger, var(--red-500, var(--kui-color-text-danger, ${gw})))`:""),l=B(()=>{if(t.disabled!==void 0&&t.disabled!==!1)return r;const u=Object.assign({},r);return delete u.disabled,u});return(u,c)=>typeof e.to=="string"?(C(),S("a",Ke({key:0,class:["k-button",[e.size,{"icon-btn":!o.value&&a.value,rounded:e.isRounded},e.appearance]],disabled:e.disabled?e.disabled:void 0,href:e.to,type:e.type},l.value),[z(u.$slots,"icon",{},()=>[e.icon?(C(),se(Be,{key:0,class:"k-button-icon",color:s.value,icon:e.icon,size:pe(xt)},null,8,["color","icon","size"])):$("",!0)],!0),z(u.$slots,"default",{},void 0,!0),e.showCaret?(C(),se(Be,{key:0,color:s.value,icon:"chevronDown",size:pe(xt),"view-box":"2 2 15 15"},null,8,["color","size"])):$("",!0)],16,Ww)):(C(),se(va(i.value),Ke({key:1,class:["k-button",[e.size,{"icon-btn":!o.value&&a.value,rounded:e.isRounded},e.appearance]],disabled:e.disabled?e.disabled:void 0,to:e.to,type:e.type},l.value),{default:F(()=>[z(u.$slots,"icon",{},()=>[e.icon?(C(),se(Be,{key:0,class:"k-button-icon",color:s.value,icon:e.icon,size:pe(xt)},null,8,["color","icon","size"])):$("",!0)],!0),z(u.$slots,"default",{},void 0,!0),e.showCaret?(C(),se(Be,{key:0,class:q(["caret"]),color:e.caretColor||s.value,icon:"chevronDown",size:pe(xt),"view-box":"2 2 15 15"},null,8,["color","size"])):$("",!0)]),_:3},16,["class","disabled","to","type"]))}}),We=Ee(Jw,[["__scopeId","data-v-9a758cf3"]]),e9={key:0,class:"k-alert-title"},t9={key:1,class:"k-alert-description-text"},xg={info:"info",success:"success",danger:"danger",warning:"warning"},n9=ge({__name:"KAlert",props:{alertMessage:{type:String,default:""},isShowing:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},hasLeftBorder:{type:Boolean,default:!1},hasRightBorder:{type:Boolean,default:!1},hasTopBorder:{type:Boolean,default:!1},hasBottomBorder:{type:Boolean,default:!1},isCentered:{type:Boolean,default:!1},iconSize:{type:String,default:Ew},icon:{type:String,default:""},iconColor:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},appearance:{type:String,default:"info",validator:e=>Object.values(xg).includes(e)},size:{type:String,default:"",validator:e=>["","small","large"].includes(e)},dismissType:{type:String,default:"none",validator:e=>["none","icon","button"].includes(e)},type:{type:String,default:"alert",validator:e=>["alert","banner"].includes(e)}},emits:["closed","proceed"],setup(e,{emit:t}){const n=It(),r=B(()=>!!n.actionButtons),a=()=>{t("closed")},o=()=>{t("proceed")};return(i,s)=>e.isShowing?(C(),S("div",{key:0,class:q(["k-alert",[e.appearance,e.size,e.dismissType,{"is-bordered":e.isBordered},{"has-left-border":e.hasLeftBorder},{"has-right-border":e.hasRightBorder},{"has-top-border":e.hasTopBorder},{"has-bottom-border":e.hasBottomBorder},{"is-centered":e.isCentered},{"is-fixed":e.isFixed},{"is-alert":e.type==="alert"},{"is-banner":e.type==="banner"}]]),role:"alert",onClick:s[0]||(s[0]=Mt(()=>{},["stop"]))},[e.type==="banner"&&e.size!=="large"?(C(),S("span",{key:0,class:q(["k-alert-ellipse",e.appearance])},null,2)):$("",!0),e.icon||i.$slots.icon?(C(),S("span",{key:1,class:q(["k-alert-icon-container",{"k-alert-icon-container-large":e.size==="large"}])},[z(i.$slots,"icon",{},()=>[G(Be,{class:"k-alert-icon",color:e.iconColor,icon:e.icon,size:e.iconSize},null,8,["color","icon","size"])],!0)],2)):$("",!0),O("div",{class:q(["k-alert-msg-text",{"has-dismiss-icon":e.dismissType==="icon"},{"has-dismiss-button":e.dismissType==="button"}])},[e.title||i.$slots.title?(C(),S("div",e9,[z(i.$slots,"title",{},()=>[J(V(e.title),1)],!0)])):$("",!0),O("div",{class:q(["k-alert-msg",{"k-alert-text":e.size==="large","k-alert-subtext":e.title||i.$slots.title}])},[z(i.$slots,"alertMessage",{},()=>[J(V(e.alertMessage),1)],!0)],2),e.size==="large"&&(e.description||i.$slots.description)?(C(),S("div",t9,[z(i.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2),e.dismissType==="icon"?(C(),S("button",{key:2,"aria-label":"Close",class:"close",type:"button",onClick:a},[G(Be,{class:q(e.appearance),color:e.appearance,icon:"close",size:pe(ws)},null,8,["class","color","size"])])):$("",!0),r.value||e.dismissType!=="none"?(C(),S("div",{key:3,class:q(["k-alert-action",e.appearance])},[r.value?z(i.$slots,"actionButtons",{key:0},()=>[G(We,{size:"small",onClick:o,onKeyup:jt(o,["enter"])},null,8,["onKeyup"])],!0):$("",!0),e.dismissType==="button"?(C(),se(We,{key:1,size:"small",onClick:a},{default:F(()=>[J(" Dismiss ")]),_:1})):$("",!0)],2)):$("",!0)],2)):$("",!0)}}),Sg=Ee(n9,[["__scopeId","data-v-0da964c0"]]);var js,r9=new Uint8Array(16);function _g(){if(!js&&(js=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!js))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return js(r9)}const a9=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function o9(e){return typeof e=="string"&&a9.test(e)}var Ut=[];for(var hc=0;hc<256;++hc)Ut.push((hc+256).toString(16).substr(1));function Tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ut[e[t+0]]+Ut[e[t+1]]+Ut[e[t+2]]+Ut[e[t+3]]+"-"+Ut[e[t+4]]+Ut[e[t+5]]+"-"+Ut[e[t+6]]+Ut[e[t+7]]+"-"+Ut[e[t+8]]+Ut[e[t+9]]+"-"+Ut[e[t+10]]+Ut[e[t+11]]+Ut[e[t+12]]+Ut[e[t+13]]+Ut[e[t+14]]+Ut[e[t+15]]).toLowerCase();if(!o9(n))throw TypeError("Stringified UUID is invalid");return n}var wp,fc,pc=0,mc=0;function pa(e,t,n){var r=t&&n||0,a=t||new Array(16);e=e||{};var o=e.node||wp,i=e.clockseq!==void 0?e.clockseq:fc;if(o==null||i==null){var s=e.random||(e.rng||_g)();o==null&&(o=wp=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),i==null&&(i=fc=(s[6]<<8|s[7])&16383)}var l=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:mc+1,c=l-pc+(u-mc)/1e4;if(c<0&&e.clockseq===void 0&&(i=i+1&16383),(c<0||l>pc)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pc=l,mc=u,fc=i,l+=122192928e5;var d=((l&268435455)*1e4+u)%4294967296;a[r++]=d>>>24&255,a[r++]=d>>>16&255,a[r++]=d>>>8&255,a[r++]=d&255;var h=l/4294967296*1e4&268435455;a[r++]=h>>>8&255,a[r++]=h&255,a[r++]=h>>>24&15|16,a[r++]=h>>>16&255,a[r++]=i>>>8|128,a[r++]=i&255;for(var f=0;f<6;++f)a[r+f]=o[f];return t||Tg(a)}function an(e,t,n){e=e||{};var r=e.random||(e.rng||_g)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return Tg(r)}/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license @@ -467,15 +467,15 @@ var ib=Object.defineProperty;var sb=(e,t,n)=>t in e?ib(e,t,{enumerable:!0,config * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - */var ks=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",i9=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function s9(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function l9(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i9))}}var u9=ks&&window.Promise,c9=u9?s9:l9;function Dg(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ja(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function wh(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Cs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ja(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:Cs(wh(e))}function Mg(e){return e&&e.referenceNode?e.referenceNode:e}var kp=ks&&!!(window.MSInputMethodContext&&document.documentMode),Cp=ks&&/MSIE 10/.test(navigator.userAgent);function Xo(e){return e===11?kp:e===10?Cp:kp||Cp}function zo(e){if(!e)return document.documentElement;for(var t=Xo(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ja(n,"position")==="static"?zo(n):n}function d9(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||zo(e.firstElementChild)===e}function wd(e){return e.parentNode!==null?wd(e.parentNode):e}function Rl(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var i=o.commonAncestorContainer;if(e!==i&&t!==i||r.contains(a))return d9(i)?i:zo(i);var s=wd(e);return s.host?Rl(s.host,t):Rl(e,wd(t).host)}function Fo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var a=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||a;return o[n]}return e[n]}function h9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Fo(t,"top"),a=Fo(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=a*o,e.right+=a*o,e}function Ep(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function xp(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Xo(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Ag(e){var t=e.body,n=e.documentElement,r=Xo(10)&&getComputedStyle(n);return{height:xp("Height",t,n,r),width:xp("Width",t,n,r)}}var f9=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},p9=function(){function e(t,n){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=Xo(10),a=t.nodeName==="HTML",o=kd(e),i=kd(t),s=Cs(e),l=Ja(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&a&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=ma({top:o.top-i.top-u,left:o.left-i.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&a){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=c-f,d.right-=c-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=h9(d,t)),d}function m9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=kh(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:Fo(n),s=t?0:Fo(n,"left"),l={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:o};return ma(l)}function Og(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ja(e,"position")==="fixed")return!0;var n=wh(e);return n?Og(n):!1}function Pg(e){if(!e||!e.parentElement||Xo())return document.documentElement;for(var t=e.parentElement;t&&Ja(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Ch(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},i=a?Pg(e):Rl(e,Mg(t));if(r==="viewport")o=m9(i,a);else{var s=void 0;r==="scrollParent"?(s=Cs(wh(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=kh(s,i,a);if(s.nodeName==="HTML"&&!Og(i)){var u=Ag(e.ownerDocument),c=u.height,d=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var h=typeof n=="number";return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function v9(e){var t=e.width,n=e.height;return t*n}function Bg(e,t,n,r,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var i=Ch(n,r,o,a),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(h){return An({key:h},s[h],{area:v9(s[h])})}).sort(function(h,f){return f.area-h.area}),u=l.filter(function(h){var f=h.width,g=h.height;return f>=n.clientWidth&&g>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function Ig(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=r?Pg(t):Rl(t,Mg(n));return kh(n,a,r)}function Ng(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+a,height:e.offsetHeight+r};return o}function $l(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function Lg(e,t,n){n=n.split("-")[0];var r=Ng(e),a={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,i=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return a[i]=t[i]+t[l]/2-r[l]/2,n===s?a[s]=t[s]-r[u]:a[s]=t[$l(s)],a}function Es(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function g9(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===n});var r=Es(e,function(a){return a[t]===n});return e.indexOf(r)}function Rg(e,t,n){var r=n===void 0?e:e.slice(0,g9(e,"name",n));return r.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=a.function||a.fn;a.enabled&&Dg(o)&&(t.offsets.popper=ma(t.offsets.popper),t.offsets.reference=ma(t.offsets.reference),t=o(t,a))}),t}function y9(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ig(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Bg(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Lg(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Rg(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $g(e,t){return e.some(function(n){var r=n.name,a=n.enabled;return a&&r===t})}function Eh(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;ri[f]&&(e.offsets.popper[d]+=s[d]+g-i[f]),e.offsets.popper=ma(e.offsets.popper);var y=s[d]+s[u]/2-g/2,v=Ja(e.instance.popper),p=parseFloat(v["margin"+c]),b=parseFloat(v["border"+c+"Width"]),m=y-e.offsets.popper[d]-p-b;return m=Math.max(Math.min(i[u]-g,m),0),e.arrowElement=r,e.offsets.arrow=(n={},jo(n,d,Math.round(m)),jo(n,h,""),n),e}function O9(e){return e==="end"?"start":e==="start"?"end":e}var jg=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vc=jg.slice(3);function Sp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=vc.indexOf(e),r=vc.slice(n+1).concat(vc.slice(0,n));return t?r.reverse():r}var gc={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function P9(e,t){if($g(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Ch(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=$l(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case gc.FLIP:i=[r,a];break;case gc.CLOCKWISE:i=Sp(r);break;case gc.COUNTERCLOCKWISE:i=Sp(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],a=$l(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,h=r==="left"&&d(u.right)>d(c.left)||r==="right"&&d(u.left)d(c.top)||r==="bottom"&&d(u.top)d(n.right),y=d(u.top)d(n.bottom),p=r==="left"&&f||r==="right"&&g||r==="top"&&y||r==="bottom"&&v,b=["top","bottom"].indexOf(r)!==-1,m=!!t.flipVariations&&(b&&o==="start"&&f||b&&o==="end"&&g||!b&&o==="start"&&y||!b&&o==="end"&&v),w=!!t.flipVariationsByContent&&(b&&o==="start"&&g||b&&o==="end"&&f||!b&&o==="start"&&v||!b&&o==="end"&&y),D=m||w;(h||p||D)&&(e.flipped=!0,(h||p)&&(r=i[l+1]),D&&(o=O9(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=An({},e.offsets.popper,Lg(e.instance.popper,e.offsets.reference,e.placement)),e=Rg(e.instance.modifiers,e,"flip"))}),e}function B9(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],o=Math.floor,i=["top","bottom"].indexOf(a)!==-1,s=i?"right":"bottom",l=i?"left":"top",u=i?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function I9(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],i=a[2];if(!o)return e;if(i.indexOf("%")===0){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=ma(s);return l[t]/100*o}else if(i==="vh"||i==="vw"){var u=void 0;return i==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*o}else return o}function N9(e,t,n,r){var a=[0,0],o=["right","left"].indexOf(r)!==-1,i=e.split(/(\+|\-)/).map(function(c){return c.trim()}),s=i.indexOf(Es(i,function(c){return c.search(/,|\s/)!==-1}));i[s]&&i[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return u=u.map(function(c,d){var h=(d===1?!o:o)?"height":"width",f=!1;return c.reduce(function(g,y){return g[g.length-1]===""&&["+","-"].indexOf(y)!==-1?(g[g.length-1]=y,f=!0,g):f?(g[g.length-1]+=y,f=!1,g):g.concat(y)},[]).map(function(g){return I9(g,h,t,n)})}),u.forEach(function(c,d){c.forEach(function(h,f){xh(h)&&(a[d]+=h*(c[f-1]==="-"?-1:1))})}),a}function L9(e,t){var n=t.offset,r=e.placement,a=e.offsets,o=a.popper,i=a.reference,s=r.split("-")[0],l=void 0;return xh(+n)?l=[+n,0]:l=N9(n,o,i,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function R9(e,t){var n=t.boundariesElement||zo(e.instance.popper);e.instance.reference===n&&(n=zo(n));var r=Eh("transform"),a=e.instance.popper.style,o=a.top,i=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=Ch(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=o,a.left=i,a[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(h){var f=c[h];return c[h]l[h]&&!t.escapeWithReference&&(g=Math.min(c[f],l[h]-(h==="right"?c.width:c.height))),jo({},f,g)}};return u.forEach(function(h){var f=["left","top"].indexOf(h)!==-1?"primary":"secondary";c=An({},c,d[f](h))}),e.offsets.popper=c,e}function $9(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,o=a.reference,i=a.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:jo({},l,o[l]),end:jo({},l,o[l]+o[u]-i[u])};e.offsets.popper=An({},i,c[r])}return e}function H9(e){if(!Fg(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Es(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==void 0?arguments[2]:{};f9(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=c9(this.update.bind(this)),this.options=An({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(An({},e.Defaults.modifiers,a.modifiers)).forEach(function(i){r.options.modifiers[i]=An({},e.Defaults.modifiers[i]||{},a.modifiers?a.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return An({name:i},r.options.modifiers[i])}).sort(function(i,s){return i.order-s.order}),this.modifiers.forEach(function(i){i.enabled&&Dg(i.onLoad)&&i.onLoad(r.reference,r.popper,r.options,i,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return p9(e,[{key:"update",value:function(){return y9.call(this)}},{key:"destroy",value:function(){return b9.call(this)}},{key:"enableEventListeners",value:function(){return k9.call(this)}},{key:"disableEventListeners",value:function(){return E9.call(this)}}]),e}();Ru.Utils=(typeof window<"u"?window:global).PopperUtils;Ru.placements=jg;Ru.Defaults=j9;const U9=Ru;var yc=new WeakMap,_p=0;function Z9(e){if(!e.length)return"";for(var t="arg",n=0;n=n.expiresAt;i&&a.delete(r)},t)},e.prototype.delete=function(t){this.items.delete(t)},e}();function V9(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function K9(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var G9=function(e){return fetch(e).then(function(t){return t.json()})};const bc={isOnline:V9,isDocumentVisible:K9,fetcher:G9};var Dr=globalThis&&globalThis.__assign||function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o},q9=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r0?n+a:n)}}function X9(e,t,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&t>n.errorRetryCount)){var r=Math.min(t||0,n.errorRetryCount),a=r*n.errorRetryInterval;setTimeout(function(){e(null,{errorRetryCount:r+1,shouldRetryOnError:!0})},a)}}var Tp=function(e,t,n,r){return n===void 0&&(n=Ug),r===void 0&&(r=Zg.ttl),mo(void 0,void 0,void 0,function(){var a,o,i,s,l,u,c;return vo(this,function(d){switch(d.label){case 0:if(!J9(t))return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,t];case 2:return a=d.sent(),[3,4];case 3:return s=d.sent(),o=s,[3,4];case 4:return[3,6];case 5:a=t,d.label=6;case 6:if(i=!1,l={data:a,error:o,isValidating:i},typeof a<"u")try{n.set(e,l,r)}catch(h){console.error("swrv(mutate): failed to set cache",h)}return u=Hl.get(e),u&&u.data.length&&(c=u.data.filter(function(h){return h.key===e}),c.forEach(function(h,f){typeof l.data<"u"&&(h.data=l.data),h.error=l.error,h.isValidating=l.isValidating;var g=f===c.length-1;g||delete c[f]}),c=c.filter(Boolean)),[2,l]}})})};function Dp(){for(var e=this,t=[],n=0;n=1&&(r=t[0]),t.length>=2&&(a=t[1]),t.length>2&&(o=Dr(Dr({},o),t[2]));var d=c?o.serverTTL:o.ttl,h=typeof r=="function"?r:j(r);typeof a>"u"&&(a=o.fetcher);var f=null;f||(f=Fr({data:void 0,error:void 0,isValidating:!0,key:null}));var g=function(b,m){return mo(e,void 0,void 0,function(){var w,D,I,L,T,x,k,A=this;return vo(this,function(M){switch(M.label){case 0:return w=f.data===void 0,D=h.value,D?(I=o.cache.get(D),L=I&&I.data,f.isValidating=!0,L&&(f.data=L.data,f.error=L.error),T=b||a,!T||!o.isDocumentVisible()&&!w||(m==null?void 0:m.forceRevalidate)!==void 0&&!(m!=null&&m.forceRevalidate)?(f.isValidating=!1,[2]):I&&(x=!!(Date.now()-I.createdAt>=o.dedupingInterval||m!=null&&m.forceRevalidate),!x)?(f.isValidating=!1,[2]):(k=function(){return mo(A,void 0,void 0,function(){var N,ee,ae,oe;return vo(this,function(Q){switch(Q.label){case 0:return N=wc.get(D),N?[3,2]:(ee=Array.isArray(D)?D:[D],ae=T.apply(void 0,q9([],W9(ee),!1)),wc.set(D,ae,o.dedupingInterval),[4,Tp(D,ae,o.cache,d)]);case 1:return Q.sent(),[3,4];case 2:return[4,Tp(D,N.data,o.cache,d)];case 3:Q.sent(),Q.label=4;case 4:return f.isValidating=!1,wc.delete(D),f.error!==void 0&&(oe=!i&&o.shouldRetryOnError&&(m?m.shouldRetryOnError:!0),oe&&X9(g,m?m.errorRetryCount:1,o)),[2]}})})},L&&o.revalidateDebounce?(setTimeout(function(){return mo(A,void 0,void 0,function(){return vo(this,function(N){switch(N.label){case 0:return i?[3,2]:[4,k()];case 1:N.sent(),N.label=2;case 2:return[2]}})})},o.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,k()];case 2:M.sent(),M.label=3;case 3:return[2]}})})},y=function(){return mo(e,void 0,void 0,function(){return vo(this,function(b){return[2,g(null,{shouldRetryOnError:!1})]})})},v=null;ft(function(){var b=function(){return mo(e,void 0,void 0,function(){return vo(this,function(m){switch(m.label){case 0:return!f.error&&o.isOnline()?[4,g()]:[3,2];case 1:return m.sent(),[3,3];case 2:v&&clearTimeout(v),m.label=3;case 3:return o.refreshInterval&&!i&&(v=setTimeout(b,o.refreshInterval)),[2]}})})};o.refreshInterval&&(v=setTimeout(b,o.refreshInterval)),o.revalidateOnFocus&&(document.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1))}),gr(function(){i=!0,v&&clearTimeout(v),o.revalidateOnFocus&&(document.removeEventListener("visibilitychange",y,!1),window.removeEventListener("focus",y,!1));var b=Hl.get(h.value);b&&(b.data=b.data.filter(function(m){return m!==f}))});try{Le(h,function(b){Fa(h)||(h.value=b),f.key=b,f.isValidating=!!b,Q9(h.value,f,d),!c&&!s&&h.value&&g(),s=!1},{immediate:!0})}catch{}var p=Dr(Dr({},n3(f)),{mutate:function(b,m){return g(b,Dr(Dr({},m),{forceRevalidate:!0}))}});return p}function J9(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}const xr={VALIDATING:"VALIDATING",VALIDATING_HAS_DATA:"VALIDATING_HAS_DATA",PENDING:"PENDING",SUCCESS:"SUCCESS",SUCCESS_HAS_DATA:"SUCCESS_HAS_DATA",ERROR:"ERROR",STALE_IF_ERROR:"STALE_IF_ERROR"};function kn(){return{useRequest:(e,t,n)=>{const r=typeof Dp=="function"?Dp:()=>({data:j({}),error:j(),isValidating:j(!1),mutate:()=>({})}),{data:a,error:o,isValidating:i,mutate:s}=r(e,t,{revalidateDebounce:500,dedupingInterval:100,...n});return{data:B(()=>{var l;return(l=a.value)==null?void 0:l.data}),response:a,error:o,isValidating:i,revalidate:s}},useDebounce:(e,t=300)=>{let n;const r=a=>async(...o)=>{clearTimeout(n),a>0?await new Promise(i=>{n=setTimeout(async()=>{await e(...o),i()},a)}):await e(...o)};return{debouncedFn:r(t),generateDebouncedFn:r}},clientSideSorter:(e,t,n,r)=>{let a=null;const o=(s,l)=>typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)?s-l:0,i=(s,l)=>s.localeCompare(l);return e!==t?(a=(s,l)=>{const u=h=>h==null?"":typeof h=="number"?h:Array.isArray(h)&&h.length&&typeof h[0]=="number"?h[0]:String(h),c=u(s[e]),d=u(l[e]);switch(typeof c){case"number":return o(c,d);default:return i(c,d)}},r.sort(a),t=e,n="ascending"):(r.reverse(),n==="descending"||n==="desc"?n="ascending":n="descending"),{previousKey:t,sortOrder:n}},useSwrvState:(e,t,n)=>{const r=j(xr.PENDING),a=j(!1);return Cv(()=>{var o,i,s,l,u,c;if(a.value=e.value&&!!((o=Object.keys(e.value))!=null&&o.length||(i=e.value.data)!=null&&i.length||(l=(s=e.value.data)==null?void 0:s.data)!=null&&l.length||!((u=e.value.data)!=null&&u.data)&&typeof e.value.data=="object"&&Object.keys((c=e.value)==null?void 0:c.data).length),e.value&&a.value&&n.value){r.value=xr.VALIDATING_HAS_DATA;return}if(e.value&&n.value){r.value=xr.VALIDATING;return}if(e.value&&t.value){r.value=xr.STALE_IF_ERROR;return}if(e.value===void 0&&!t.value){r.value=xr.PENDING;return}if(e.value&&!t.value&&a.value){r.value=xr.SUCCESS_HAS_DATA;return}if(e.value&&!t.value){r.value=xr.SUCCESS;return}e.value===void 0&&t&&(r.value=xr.ERROR)}),{hasData:a,state:r,swrvState:xr}},getSizeFromString:e=>e==="auto"||e.endsWith("%")||e.endsWith("vw")||e.endsWith("vh")||e.endsWith("px")?e:e+"px",cloneDeep:e=>{if(e)return JSON.parse(JSON.stringify(e))},stripRequiredLabel:(e,t)=>!t||!e?e||"":/( )?\*$/gi.test(e)?e.replace(/\*$/gi,"").trim():e}}const ek={default:"default",success:"success",danger:"danger",info:"info",warning:"warning",custom:"custom",neutral:"neutral"},tk={rounded:"rounded",rectangular:"rectangular"},nk=["borderTop","noBorder","border"],rk=["large","medium","small"],ak=["leading","trailing"],ok=["date","time","dateTime","relative","relativeDate","relativeDateTime"],ik=["menu","selectionMenu"],sk=["light","dark"],lk=["left","center","right"],uk=["small","medium","large"],ck=["start","end"],dk=["left","right"],hk=["string","number","divider"],Yg=["active","default","pending","completed","error"],fk=["radio","card"],pk=["info","warning","danger"],mk=["click","hover"],Vg=["auto","top","topStart","topEnd","left","leftStart","leftEnd","right","rightStart","rightEnd","bottom","bottomStart","bottomEnd"],vk=["table","card","form","spinner","fullscreen-kong","fullscreen-generic",""],gk=["1","2","5","6","10","25","50","75","100"],yk=["1","2"],bk=["dropdown","select","button"],Kg=xg,wk=["get","post","put","patch","delete","head","options","trace","connect","custom"];var Ed=(e=>(e.fontSize="font-size",e.fontWeight="font-weight",e.fontFamily="font-family",e.color="color",e.margin="margin",e.padding="padding",e))(Ed||{});const kk=["table","grid"],{getSizeFromString:kc}=kn(),Ck=ge({name:"KPop",components:{KButton:We},expose:["updatePopper"],props:{target:{type:String,default:""},tag:{type:String,default:"div"},buttonText:{type:String,default:"OK"},title:{type:String,default:""},placement:{type:String,validator:e=>Vg.includes(e),default:"auto"},trigger:{type:String,default:"click",validator:e=>mk.includes(e)},width:{type:String,default:"200"},maxWidth:{type:String,default:"auto"},maxHeight:{type:String,default:"auto"},popoverClasses:{type:String,default:""},popoverTransitions:{type:String,default:"fade"},popoverTimeout:{type:Number,default:300},hidePopover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isSvg:{type:Boolean,default:!1},hideCaret:{type:Boolean,default:!1},onPopoverClick:{type:Function,default:null},positionFixed:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["opened","closed"],data(){return{popper:null,reference:null,isOpen:!1,popoverId:this.testMode?"test-popover-id-1234":pa(),targetId:this.testMode?"test-target-id-1234":pa()}},computed:{popoverStyle:function(){return{width:kc(this.width),maxWidth:kc(this.maxWidth),maxHeight:kc(this.maxHeight)}},popoverClassObj:function(){return[this.popoverClasses,{"hide-caret":this.hideCaret},{"has-actions":this.$slots.actions}]}},watch:{hidePopover:function(){this.isOpen&&this.hidePopper()},disabled:{handler(){this.isOpen&&this.hidePopper()},immediate:!0}},mounted(){this.$el.children?this.reference=this.$el.children[0]:this.reference=this.$el,this.bindEvents()},beforeUnmount(){const e=this.$refs.popper;document.documentElement.removeEventListener("click",this.handleClick),e&&e.removeEventListener("click",this.showPopper),this.reference&&(this.reference.removeEventListener("click",this.handleClick),this.reference.removeEventListener("mouseenter",this.createInstance),this.reference.removeEventListener("mouseleave",this.toggle),this.reference.removeEventListener("focus",this.createInstance),this.reference.removeEventListener("blur",this.toggle)),this.destroy()},methods:{hidePopper(){this.trigger!=="hover"&&(this.isOpen=!1),this.timer=setTimeout(()=>{this.$emit("closed"),this.destroy()},this.popoverTimeout)},showPopper(){this.disabled||(this.isOpen=!0,this.timer&&clearTimeout(this.timer),this.popperTimer&&clearTimeout(this.popperTimer),this.$emit("opened"))},updatePopper(){this.popper&&typeof this.popper.update=="function"&&this.popper.update()},async createInstance(){this.destroy(),this.showPopper();const e=(this.placement||"auto").replace(/[A-Z]/g,"-$&").toLowerCase(),t=this.$refs.popper,n=this.target&&!this.isSvg&&document.querySelector(this.target)?document.querySelector(this.target):document.getElementById(this.targetId);n&&(n.appendChild(t),n.style.overflow="auto"),await this.$nextTick(),this.popper=new U9(this.reference,t,{placement:e,positionFixed:this.positionFixed,modifiers:{preventOverflow:{enabled:!0,boundariesElement:"viewport"}}}),await this.$nextTick(),n&&n.style.removeProperty("overflow"),this.updatePopper()},handleClick(e){const t=()=>{e.stopPropagation(),this.hidePopper()};if(this.reference&&this.reference.contains(e.target))this.isOpen?t():this.createInstance();else if(this.$refs.popper&&this.$refs.popper.contains(e.target)&&this.onPopoverClick){const n=this.onPopoverClick();n!==void 0&&(n?this.showPopper():t())}else this.$refs.popper&&this.$refs.popper.contains(e.target)?this.showPopper():this.isOpen&&t()},bindEvents(){const e=this.$refs.popper;e&&(this.trigger==="hover"&&(this.reference.addEventListener("mouseenter",this.createInstance),this.reference.addEventListener("focus",this.createInstance),this.reference.addEventListener("mouseleave",this.hidePopper),this.reference.addEventListener("blur",this.hidePopper),e.addEventListener("mouseenter",this.showPopper),e.addEventListener("focus",this.showPopper),e.addEventListener("mouseleave",this.hidePopper),e.addEventListener("blur",this.hidePopper)),e.addEventListener("click",this.showPopper),document.documentElement.addEventListener("click",this.handleClick))},destroy(){this.popper&&(this.isOpen=!1,this.popper.disableEventListeners(),this.popper=null)}}}),Ek={key:0},xk=["id"],Sk={key:0,class:"k-popover-header"},_k={key:0,class:"k-popover-title"},Tk={key:1,class:"k-popover-actions"},Dk={class:"k-popover-content"},Mk={key:1,class:"k-popover-footer"},Ak=["id"],Ok={key:0,class:"k-popover-header"},Pk={key:0,class:"k-popover-title"},Bk={key:1,class:"k-popover-actions"},Ik={class:"k-popover-content"},Nk={key:1,class:"k-popover-footer"};function Lk(e,t,n,r,a,o){const i=Gn("KButton");return C(),se(va(e.tag),{id:e.$slots.default?e.targetId:null,ref:"root","aria-controls":e.$slots.default?e.popoverId:void 0,"aria-expanded":e.$slots.default&&!!e.isOpen||void 0,role:e.$slots.default?"button":null,onKeyup:[jt(Mt(e.showPopper,["stop","prevent"]),["enter"]),jt(e.hidePopper,["esc"])]},{default:z(()=>[F(e.$slots,"default",{},()=>[G(i,{id:e.targetId,"aria-controls":e.popoverId||void 0,"aria-expanded":!!e.isOpen||void 0,"data-testid":"kpop-button"},{default:z(()=>[J(V(e.buttonText),1)]),_:1},8,["id","aria-controls","aria-expanded"])]),e.isSvg?(C(),S("div",Ek,[(C(),S("foreignObject",null,[Ml(O("div",{id:e.popoverId,ref:"popper",class:q(["k-popover",e.popoverClassObj]),role:"region",style:Et(e.popoverStyle)},[e.$slots.title||e.title||e.$slots.actions?(C(),S("div",Sk,[e.$slots.title||e.title?(C(),S("div",_k,[F(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(C(),S("div",Tk,[F(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",Dk,[F(e.$slots,"content")]),e.$slots.footer?(C(),S("div",Mk,[F(e.$slots,"footer")])):$("",!0)],14,xk),[[pd,e.isOpen]])]))])):(C(),se(ja,{key:1,name:"fade"},{default:z(()=>[Ml(O("div",{id:e.popoverId,ref:"popper",class:q(["k-popover",e.popoverClassObj]),role:"region",style:Et(e.popoverStyle)},[e.$slots.title||e.title||e.$slots.actions?(C(),S("div",Ok,[e.$slots.title||e.title?(C(),S("div",Pk,[F(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(C(),S("div",Bk,[F(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",Ik,[F(e.$slots,"content")]),e.$slots.footer?(C(),S("div",Nk,[F(e.$slots,"footer")])):$("",!0)],14,Ak),[[pd,e.isOpen]])]),_:3}))]),_:3},40,["id","aria-controls","aria-expanded","role","onKeyup"])}const Jo=Ee(Ck,[["render",Lk]]),Rk={role:"tooltip"},ei=ge({__name:"KTooltip",props:{label:{type:String,required:!1,default:""},placement:{type:String,default:"bottom",validator:e=>Vg.includes(e)},positionFixed:{type:Boolean,default:!1},maxWidth:{type:String,default:"auto"},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=j(""),r=B(()=>{let a="";switch(t.placement){case"top":a="k-tooltip-top";break;case"right":a="k-tooltip-right";break;case"bottom":a="k-tooltip-bottom";break;case"left":a="k-tooltip-left";break}return a});return(a,o)=>(C(),se(Jo,Ke(a.$attrs,{"hide-caret":"","max-width":e.maxWidth,placement:e.placement,"popover-classes":`k-tooltip ${r.value} ${n.value}`,"popover-timeout":0,"position-fixed":e.positionFixed,"test-mode":!!e.testMode||void 0,trigger:"hover",width:"auto"}),{content:z(()=>[O("div",Rk,[F(a.$slots,"content",{label:e.label},()=>[J(V(e.label),1)])])]),default:z(()=>[F(a.$slots,"default")]),_:3},16,["max-width","placement","popover-classes","position-fixed","test-mode"]))}}),$k=["aria-hidden","tabindex"],{getSizeFromString:Hk}=kn(),zk={name:"KBadge",components:{KButton:We,KIcon:Be,KTooltip:ei}},Fk=ge({...zk,props:{appearance:{type:String,required:!1,validator:e=>Object.keys({...ek}).includes(e),default:"default"},truncationTooltip:{type:String,default:""},forceTooltip:{type:Boolean,default:!1},dismissable:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},shape:{type:String,required:!1,validator:e=>Object.keys({...tk}).includes(e),default:"rounded"},color:{type:String,required:!1,default:""},backgroundColor:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},isBordered:{type:Boolean,default:!1},hoverColor:{type:String,required:!1,default:""},maxWidth:{type:String,default:"200px"}},emits:["dismissed"],setup(e,{emit:t}){const n=e;bs(g=>({d0a5fbaa:f.value,"6641fc5c":g.$props.backgroundColor,"0dd530c4":g.$props.borderColor,"454a21aa":g.$props.color,"9bc984c0":g.$props.hoverColor,f57b025a:g.$props.hoverColor||g.$props.backgroundColor}));const r=Xn(),a=B(()=>!!r.onClick),o=j(null),i=j(!1),s=()=>{i.value=!0,t("dismissed")},l=j(0),u=j(0),c=j(!1),d=B(()=>l.value{const g={};return n.backgroundColor&&(g.backgroundColor=n.backgroundColor),n.borderColor&&(g.borderColor=n.borderColor),n.color&&(g.color=n.color),n.isBordered&&!n.borderColor&&n.color&&(g.borderColor=n.color),g}),f=B(()=>Hk(n.maxWidth));return Le(o,()=>{var g,y;o.value&&!c.value&&(l.value=(g=o.value)==null?void 0:g.offsetWidth,u.value=(y=o.value)==null?void 0:y.scrollWidth,c.value=!0)}),(g,y)=>i.value?$("",!0):(C(),S("div",{key:0,"aria-hidden":e.hidden?!0:void 0,class:q(["k-badge",[`k-badge-${e.appearance}`,`k-badge-${e.shape}`,{"is-bordered":e.isBordered,clickable:a.value}]]),style:Et(h.value),tabindex:e.hidden?-1:0},[(C(),se(va(e.truncationTooltip&&(e.forceTooltip||d.value)?"KTooltip":"div"),{class:"k-badge-text","position-fixed":e.truncationTooltip&&(e.forceTooltip||d.value)?!0:void 0},{content:z(()=>[J(V(e.truncationTooltip),1)]),default:z(()=>[O("div",{ref_key:"badgeText",ref:o,class:"k-badge-text"},[F(g.$slots,"default",{},void 0,!0)],512)]),_:3},8,["position-fixed"])),e.dismissable?(C(),se(We,{key:0,"aria-hidden":e.hidden?!0:void 0,class:"k-badge-dismiss-button","data-testid":"k-badge-dismiss-button","is-rounded":e.shape==="rounded",tabindex:e.hidden?-1:0,onClick:[s,y[0]||(y[0]=Mt(()=>{},["stop"]))]},{default:z(()=>[G(Be,{color:e.color,icon:"close",size:pe(Eg),title:"Remove"},null,8,["color","size"])]),_:1},8,["aria-hidden","is-rounded","tabindex"])):$("",!0)],14,$k))}}),_i=Ee(Fk,[["__scopeId","data-v-67fa49a3"]]),jk={class:"k-breadcrumb-icon-wrapper"},Uk={key:0,class:"k-breadcrumb-divider"},Zk={inheritAttrs:!1},Yk=ge({...Zk,__name:"KBreadcrumbs",props:{items:{type:Array,default:[],required:!0,validator:e=>e&&e.length>0},itemMaxWidth:{type:String,required:!1,default:"38ch"},emphasis:{type:Boolean,default:!1}},setup(e){const t=r=>r.to?typeof r.to=="object"?{type:"router-link",attrs:{title:r.title,to:r.to}}:{type:"a",attrs:{href:r.to,target:"_blank",title:r.title}}:{type:"div",attrs:{}},n=(r,a)=>r.key||`breadcrumb-${a}`;return(r,a)=>(C(),S("ul",Ke({class:"k-breadcrumbs"},r.$attrs),[(C(!0),S(Me,null,ot(e.items,(o,i)=>(C(),S("li",{key:n(o,i),class:"k-breadcrumbs-item"},[(C(),se(va(t(o).type),Ke(t(o).attrs,{class:"no-underline"}),{default:z(()=>[O("div",jk,[F(r.$slots,`icon-${n(o,i)}`,{},()=>[o.icon?(C(),se(Be,{key:0,class:q(["k-breadcrumb-icon",{"has-no-text":!o.text}]),color:`var(--kui-color-text-decorative, ${pe(yw)})`,"hide-title":"",icon:o.icon,size:pe(xt)},null,8,["class","color","icon","size"])):$("",!0)],!0)]),o.text?(C(),S("span",{key:0,class:q(["k-breadcrumb-text",{"non-link":!o.to,emphasis:e.emphasis}]),style:Et({maxWidth:o.maxWidth||e.itemMaxWidth})},V(o.text),7)):$("",!0)]),_:2},1040)),o.to||i[G(Be,{color:`var(--grey-500, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:"chevronRight",size:pe(xt)},null,8,["color","size"])],!0)])):$("",!0)]))),128))],16))}}),Gg=Ee(Yk,[["__scopeId","data-v-cca12c6d"]]),Vk=ge({name:"Krumbs",setup(e,{attrs:t,slots:n,emit:r}){return ft(()=>console.warn(`The Kongponents 'Krumbs' component is deprecated and will be removed in a future release. + */var ks=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",i9=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function s9(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function l9(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i9))}}var u9=ks&&window.Promise,c9=u9?s9:l9;function Dg(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ja(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function wh(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Cs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ja(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:Cs(wh(e))}function Mg(e){return e&&e.referenceNode?e.referenceNode:e}var kp=ks&&!!(window.MSInputMethodContext&&document.documentMode),Cp=ks&&/MSIE 10/.test(navigator.userAgent);function Xo(e){return e===11?kp:e===10?Cp:kp||Cp}function Fo(e){if(!e)return document.documentElement;for(var t=Xo(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ja(n,"position")==="static"?Fo(n):n}function d9(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Fo(e.firstElementChild)===e}function wd(e){return e.parentNode!==null?wd(e.parentNode):e}function Rl(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var i=o.commonAncestorContainer;if(e!==i&&t!==i||r.contains(a))return d9(i)?i:Fo(i);var s=wd(e);return s.host?Rl(s.host,t):Rl(e,wd(t).host)}function zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var a=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||a;return o[n]}return e[n]}function h9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=zo(t,"top"),a=zo(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=a*o,e.right+=a*o,e}function Ep(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function xp(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Xo(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Ag(e){var t=e.body,n=e.documentElement,r=Xo(10)&&getComputedStyle(n);return{height:xp("Height",t,n,r),width:xp("Width",t,n,r)}}var f9=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},p9=function(){function e(t,n){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=Xo(10),a=t.nodeName==="HTML",o=kd(e),i=kd(t),s=Cs(e),l=Ja(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&a&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=ma({top:o.top-i.top-u,left:o.left-i.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&a){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=c-f,d.right-=c-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=h9(d,t)),d}function m9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=kh(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:zo(n),s=t?0:zo(n,"left"),l={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:o};return ma(l)}function Og(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ja(e,"position")==="fixed")return!0;var n=wh(e);return n?Og(n):!1}function Pg(e){if(!e||!e.parentElement||Xo())return document.documentElement;for(var t=e.parentElement;t&&Ja(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Ch(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},i=a?Pg(e):Rl(e,Mg(t));if(r==="viewport")o=m9(i,a);else{var s=void 0;r==="scrollParent"?(s=Cs(wh(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=kh(s,i,a);if(s.nodeName==="HTML"&&!Og(i)){var u=Ag(e.ownerDocument),c=u.height,d=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var h=typeof n=="number";return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function v9(e){var t=e.width,n=e.height;return t*n}function Bg(e,t,n,r,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var i=Ch(n,r,o,a),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(h){return An({key:h},s[h],{area:v9(s[h])})}).sort(function(h,f){return f.area-h.area}),u=l.filter(function(h){var f=h.width,g=h.height;return f>=n.clientWidth&&g>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function Ig(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=r?Pg(t):Rl(t,Mg(n));return kh(n,a,r)}function Ng(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+a,height:e.offsetHeight+r};return o}function $l(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function Lg(e,t,n){n=n.split("-")[0];var r=Ng(e),a={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,i=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return a[i]=t[i]+t[l]/2-r[l]/2,n===s?a[s]=t[s]-r[u]:a[s]=t[$l(s)],a}function Es(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function g9(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===n});var r=Es(e,function(a){return a[t]===n});return e.indexOf(r)}function Rg(e,t,n){var r=n===void 0?e:e.slice(0,g9(e,"name",n));return r.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=a.function||a.fn;a.enabled&&Dg(o)&&(t.offsets.popper=ma(t.offsets.popper),t.offsets.reference=ma(t.offsets.reference),t=o(t,a))}),t}function y9(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ig(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Bg(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Lg(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Rg(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $g(e,t){return e.some(function(n){var r=n.name,a=n.enabled;return a&&r===t})}function Eh(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;ri[f]&&(e.offsets.popper[d]+=s[d]+g-i[f]),e.offsets.popper=ma(e.offsets.popper);var y=s[d]+s[u]/2-g/2,v=Ja(e.instance.popper),p=parseFloat(v["margin"+c]),b=parseFloat(v["border"+c+"Width"]),m=y-e.offsets.popper[d]-p-b;return m=Math.max(Math.min(i[u]-g,m),0),e.arrowElement=r,e.offsets.arrow=(n={},jo(n,d,Math.round(m)),jo(n,h,""),n),e}function O9(e){return e==="end"?"start":e==="start"?"end":e}var jg=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vc=jg.slice(3);function Sp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=vc.indexOf(e),r=vc.slice(n+1).concat(vc.slice(0,n));return t?r.reverse():r}var gc={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function P9(e,t){if($g(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Ch(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=$l(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case gc.FLIP:i=[r,a];break;case gc.CLOCKWISE:i=Sp(r);break;case gc.COUNTERCLOCKWISE:i=Sp(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],a=$l(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,h=r==="left"&&d(u.right)>d(c.left)||r==="right"&&d(u.left)d(c.top)||r==="bottom"&&d(u.top)d(n.right),y=d(u.top)d(n.bottom),p=r==="left"&&f||r==="right"&&g||r==="top"&&y||r==="bottom"&&v,b=["top","bottom"].indexOf(r)!==-1,m=!!t.flipVariations&&(b&&o==="start"&&f||b&&o==="end"&&g||!b&&o==="start"&&y||!b&&o==="end"&&v),w=!!t.flipVariationsByContent&&(b&&o==="start"&&g||b&&o==="end"&&f||!b&&o==="start"&&v||!b&&o==="end"&&y),D=m||w;(h||p||D)&&(e.flipped=!0,(h||p)&&(r=i[l+1]),D&&(o=O9(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=An({},e.offsets.popper,Lg(e.instance.popper,e.offsets.reference,e.placement)),e=Rg(e.instance.modifiers,e,"flip"))}),e}function B9(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],o=Math.floor,i=["top","bottom"].indexOf(a)!==-1,s=i?"right":"bottom",l=i?"left":"top",u=i?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function I9(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],i=a[2];if(!o)return e;if(i.indexOf("%")===0){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=ma(s);return l[t]/100*o}else if(i==="vh"||i==="vw"){var u=void 0;return i==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*o}else return o}function N9(e,t,n,r){var a=[0,0],o=["right","left"].indexOf(r)!==-1,i=e.split(/(\+|\-)/).map(function(c){return c.trim()}),s=i.indexOf(Es(i,function(c){return c.search(/,|\s/)!==-1}));i[s]&&i[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return u=u.map(function(c,d){var h=(d===1?!o:o)?"height":"width",f=!1;return c.reduce(function(g,y){return g[g.length-1]===""&&["+","-"].indexOf(y)!==-1?(g[g.length-1]=y,f=!0,g):f?(g[g.length-1]+=y,f=!1,g):g.concat(y)},[]).map(function(g){return I9(g,h,t,n)})}),u.forEach(function(c,d){c.forEach(function(h,f){xh(h)&&(a[d]+=h*(c[f-1]==="-"?-1:1))})}),a}function L9(e,t){var n=t.offset,r=e.placement,a=e.offsets,o=a.popper,i=a.reference,s=r.split("-")[0],l=void 0;return xh(+n)?l=[+n,0]:l=N9(n,o,i,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function R9(e,t){var n=t.boundariesElement||Fo(e.instance.popper);e.instance.reference===n&&(n=Fo(n));var r=Eh("transform"),a=e.instance.popper.style,o=a.top,i=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=Ch(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=o,a.left=i,a[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(h){var f=c[h];return c[h]l[h]&&!t.escapeWithReference&&(g=Math.min(c[f],l[h]-(h==="right"?c.width:c.height))),jo({},f,g)}};return u.forEach(function(h){var f=["left","top"].indexOf(h)!==-1?"primary":"secondary";c=An({},c,d[f](h))}),e.offsets.popper=c,e}function $9(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,o=a.reference,i=a.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:jo({},l,o[l]),end:jo({},l,o[l]+o[u]-i[u])};e.offsets.popper=An({},i,c[r])}return e}function H9(e){if(!zg(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Es(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==void 0?arguments[2]:{};f9(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=c9(this.update.bind(this)),this.options=An({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(An({},e.Defaults.modifiers,a.modifiers)).forEach(function(i){r.options.modifiers[i]=An({},e.Defaults.modifiers[i]||{},a.modifiers?a.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return An({name:i},r.options.modifiers[i])}).sort(function(i,s){return i.order-s.order}),this.modifiers.forEach(function(i){i.enabled&&Dg(i.onLoad)&&i.onLoad(r.reference,r.popper,r.options,i,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return p9(e,[{key:"update",value:function(){return y9.call(this)}},{key:"destroy",value:function(){return b9.call(this)}},{key:"enableEventListeners",value:function(){return k9.call(this)}},{key:"disableEventListeners",value:function(){return E9.call(this)}}]),e}();Ru.Utils=(typeof window<"u"?window:global).PopperUtils;Ru.placements=jg;Ru.Defaults=j9;const U9=Ru;var yc=new WeakMap,_p=0;function Z9(e){if(!e.length)return"";for(var t="arg",n=0;n=n.expiresAt;i&&a.delete(r)},t)},e.prototype.delete=function(t){this.items.delete(t)},e}();function V9(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function K9(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var G9=function(e){return fetch(e).then(function(t){return t.json()})};const bc={isOnline:V9,isDocumentVisible:K9,fetcher:G9};var Dr=globalThis&&globalThis.__assign||function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o},q9=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r0?n+a:n)}}function X9(e,t,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&t>n.errorRetryCount)){var r=Math.min(t||0,n.errorRetryCount),a=r*n.errorRetryInterval;setTimeout(function(){e(null,{errorRetryCount:r+1,shouldRetryOnError:!0})},a)}}var Tp=function(e,t,n,r){return n===void 0&&(n=Ug),r===void 0&&(r=Zg.ttl),mo(void 0,void 0,void 0,function(){var a,o,i,s,l,u,c;return vo(this,function(d){switch(d.label){case 0:if(!J9(t))return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,t];case 2:return a=d.sent(),[3,4];case 3:return s=d.sent(),o=s,[3,4];case 4:return[3,6];case 5:a=t,d.label=6;case 6:if(i=!1,l={data:a,error:o,isValidating:i},typeof a<"u")try{n.set(e,l,r)}catch(h){console.error("swrv(mutate): failed to set cache",h)}return u=Hl.get(e),u&&u.data.length&&(c=u.data.filter(function(h){return h.key===e}),c.forEach(function(h,f){typeof l.data<"u"&&(h.data=l.data),h.error=l.error,h.isValidating=l.isValidating;var g=f===c.length-1;g||delete c[f]}),c=c.filter(Boolean)),[2,l]}})})};function Dp(){for(var e=this,t=[],n=0;n=1&&(r=t[0]),t.length>=2&&(a=t[1]),t.length>2&&(o=Dr(Dr({},o),t[2]));var d=c?o.serverTTL:o.ttl,h=typeof r=="function"?r:j(r);typeof a>"u"&&(a=o.fetcher);var f=null;f||(f=zr({data:void 0,error:void 0,isValidating:!0,key:null}));var g=function(b,m){return mo(e,void 0,void 0,function(){var w,D,I,L,T,x,k,A=this;return vo(this,function(M){switch(M.label){case 0:return w=f.data===void 0,D=h.value,D?(I=o.cache.get(D),L=I&&I.data,f.isValidating=!0,L&&(f.data=L.data,f.error=L.error),T=b||a,!T||!o.isDocumentVisible()&&!w||(m==null?void 0:m.forceRevalidate)!==void 0&&!(m!=null&&m.forceRevalidate)?(f.isValidating=!1,[2]):I&&(x=!!(Date.now()-I.createdAt>=o.dedupingInterval||m!=null&&m.forceRevalidate),!x)?(f.isValidating=!1,[2]):(k=function(){return mo(A,void 0,void 0,function(){var N,ee,ae,oe;return vo(this,function(Q){switch(Q.label){case 0:return N=wc.get(D),N?[3,2]:(ee=Array.isArray(D)?D:[D],ae=T.apply(void 0,q9([],W9(ee),!1)),wc.set(D,ae,o.dedupingInterval),[4,Tp(D,ae,o.cache,d)]);case 1:return Q.sent(),[3,4];case 2:return[4,Tp(D,N.data,o.cache,d)];case 3:Q.sent(),Q.label=4;case 4:return f.isValidating=!1,wc.delete(D),f.error!==void 0&&(oe=!i&&o.shouldRetryOnError&&(m?m.shouldRetryOnError:!0),oe&&X9(g,m?m.errorRetryCount:1,o)),[2]}})})},L&&o.revalidateDebounce?(setTimeout(function(){return mo(A,void 0,void 0,function(){return vo(this,function(N){switch(N.label){case 0:return i?[3,2]:[4,k()];case 1:N.sent(),N.label=2;case 2:return[2]}})})},o.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,k()];case 2:M.sent(),M.label=3;case 3:return[2]}})})},y=function(){return mo(e,void 0,void 0,function(){return vo(this,function(b){return[2,g(null,{shouldRetryOnError:!1})]})})},v=null;ft(function(){var b=function(){return mo(e,void 0,void 0,function(){return vo(this,function(m){switch(m.label){case 0:return!f.error&&o.isOnline()?[4,g()]:[3,2];case 1:return m.sent(),[3,3];case 2:v&&clearTimeout(v),m.label=3;case 3:return o.refreshInterval&&!i&&(v=setTimeout(b,o.refreshInterval)),[2]}})})};o.refreshInterval&&(v=setTimeout(b,o.refreshInterval)),o.revalidateOnFocus&&(document.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1))}),gr(function(){i=!0,v&&clearTimeout(v),o.revalidateOnFocus&&(document.removeEventListener("visibilitychange",y,!1),window.removeEventListener("focus",y,!1));var b=Hl.get(h.value);b&&(b.data=b.data.filter(function(m){return m!==f}))});try{Le(h,function(b){za(h)||(h.value=b),f.key=b,f.isValidating=!!b,Q9(h.value,f,d),!c&&!s&&h.value&&g(),s=!1},{immediate:!0})}catch{}var p=Dr(Dr({},n3(f)),{mutate:function(b,m){return g(b,Dr(Dr({},m),{forceRevalidate:!0}))}});return p}function J9(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}const xr={VALIDATING:"VALIDATING",VALIDATING_HAS_DATA:"VALIDATING_HAS_DATA",PENDING:"PENDING",SUCCESS:"SUCCESS",SUCCESS_HAS_DATA:"SUCCESS_HAS_DATA",ERROR:"ERROR",STALE_IF_ERROR:"STALE_IF_ERROR"};function kn(){return{useRequest:(e,t,n)=>{const r=typeof Dp=="function"?Dp:()=>({data:j({}),error:j(),isValidating:j(!1),mutate:()=>({})}),{data:a,error:o,isValidating:i,mutate:s}=r(e,t,{revalidateDebounce:500,dedupingInterval:100,...n});return{data:B(()=>{var l;return(l=a.value)==null?void 0:l.data}),response:a,error:o,isValidating:i,revalidate:s}},useDebounce:(e,t=300)=>{let n;const r=a=>async(...o)=>{clearTimeout(n),a>0?await new Promise(i=>{n=setTimeout(async()=>{await e(...o),i()},a)}):await e(...o)};return{debouncedFn:r(t),generateDebouncedFn:r}},clientSideSorter:(e,t,n,r)=>{let a=null;const o=(s,l)=>typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)?s-l:0,i=(s,l)=>s.localeCompare(l);return e!==t?(a=(s,l)=>{const u=h=>h==null?"":typeof h=="number"?h:Array.isArray(h)&&h.length&&typeof h[0]=="number"?h[0]:String(h),c=u(s[e]),d=u(l[e]);switch(typeof c){case"number":return o(c,d);default:return i(c,d)}},r.sort(a),t=e,n="ascending"):(r.reverse(),n==="descending"||n==="desc"?n="ascending":n="descending"),{previousKey:t,sortOrder:n}},useSwrvState:(e,t,n)=>{const r=j(xr.PENDING),a=j(!1);return Cv(()=>{var o,i,s,l,u,c;if(a.value=e.value&&!!((o=Object.keys(e.value))!=null&&o.length||(i=e.value.data)!=null&&i.length||(l=(s=e.value.data)==null?void 0:s.data)!=null&&l.length||!((u=e.value.data)!=null&&u.data)&&typeof e.value.data=="object"&&Object.keys((c=e.value)==null?void 0:c.data).length),e.value&&a.value&&n.value){r.value=xr.VALIDATING_HAS_DATA;return}if(e.value&&n.value){r.value=xr.VALIDATING;return}if(e.value&&t.value){r.value=xr.STALE_IF_ERROR;return}if(e.value===void 0&&!t.value){r.value=xr.PENDING;return}if(e.value&&!t.value&&a.value){r.value=xr.SUCCESS_HAS_DATA;return}if(e.value&&!t.value){r.value=xr.SUCCESS;return}e.value===void 0&&t&&(r.value=xr.ERROR)}),{hasData:a,state:r,swrvState:xr}},getSizeFromString:e=>e==="auto"||e.endsWith("%")||e.endsWith("vw")||e.endsWith("vh")||e.endsWith("px")?e:e+"px",cloneDeep:e=>{if(e)return JSON.parse(JSON.stringify(e))},stripRequiredLabel:(e,t)=>!t||!e?e||"":/( )?\*$/gi.test(e)?e.replace(/\*$/gi,"").trim():e}}const ek={default:"default",success:"success",danger:"danger",info:"info",warning:"warning",custom:"custom",neutral:"neutral"},tk={rounded:"rounded",rectangular:"rectangular"},nk=["borderTop","noBorder","border"],rk=["large","medium","small"],ak=["leading","trailing"],ok=["date","time","dateTime","relative","relativeDate","relativeDateTime"],ik=["menu","selectionMenu"],sk=["light","dark"],lk=["left","center","right"],uk=["small","medium","large"],ck=["start","end"],dk=["left","right"],hk=["string","number","divider"],Yg=["active","default","pending","completed","error"],fk=["radio","card"],pk=["info","warning","danger"],mk=["click","hover"],Vg=["auto","top","topStart","topEnd","left","leftStart","leftEnd","right","rightStart","rightEnd","bottom","bottomStart","bottomEnd"],vk=["table","card","form","spinner","fullscreen-kong","fullscreen-generic",""],gk=["1","2","5","6","10","25","50","75","100"],yk=["1","2"],bk=["dropdown","select","button"],Kg=xg,wk=["get","post","put","patch","delete","head","options","trace","connect","custom"];var Ed=(e=>(e.fontSize="font-size",e.fontWeight="font-weight",e.fontFamily="font-family",e.color="color",e.margin="margin",e.padding="padding",e))(Ed||{});const kk=["table","grid"],{getSizeFromString:kc}=kn(),Ck=ge({name:"KPop",components:{KButton:We},expose:["updatePopper"],props:{target:{type:String,default:""},tag:{type:String,default:"div"},buttonText:{type:String,default:"OK"},title:{type:String,default:""},placement:{type:String,validator:e=>Vg.includes(e),default:"auto"},trigger:{type:String,default:"click",validator:e=>mk.includes(e)},width:{type:String,default:"200"},maxWidth:{type:String,default:"auto"},maxHeight:{type:String,default:"auto"},popoverClasses:{type:String,default:""},popoverTransitions:{type:String,default:"fade"},popoverTimeout:{type:Number,default:300},hidePopover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isSvg:{type:Boolean,default:!1},hideCaret:{type:Boolean,default:!1},onPopoverClick:{type:Function,default:null},positionFixed:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["opened","closed"],data(){return{popper:null,reference:null,isOpen:!1,popoverId:this.testMode?"test-popover-id-1234":pa(),targetId:this.testMode?"test-target-id-1234":pa()}},computed:{popoverStyle:function(){return{width:kc(this.width),maxWidth:kc(this.maxWidth),maxHeight:kc(this.maxHeight)}},popoverClassObj:function(){return[this.popoverClasses,{"hide-caret":this.hideCaret},{"has-actions":this.$slots.actions}]}},watch:{hidePopover:function(){this.isOpen&&this.hidePopper()},disabled:{handler(){this.isOpen&&this.hidePopper()},immediate:!0}},mounted(){this.$el.children?this.reference=this.$el.children[0]:this.reference=this.$el,this.bindEvents()},beforeUnmount(){const e=this.$refs.popper;document.documentElement.removeEventListener("click",this.handleClick),e&&e.removeEventListener("click",this.showPopper),this.reference&&(this.reference.removeEventListener("click",this.handleClick),this.reference.removeEventListener("mouseenter",this.createInstance),this.reference.removeEventListener("mouseleave",this.toggle),this.reference.removeEventListener("focus",this.createInstance),this.reference.removeEventListener("blur",this.toggle)),this.destroy()},methods:{hidePopper(){this.trigger!=="hover"&&(this.isOpen=!1),this.timer=setTimeout(()=>{this.$emit("closed"),this.destroy()},this.popoverTimeout)},showPopper(){this.disabled||(this.isOpen=!0,this.timer&&clearTimeout(this.timer),this.popperTimer&&clearTimeout(this.popperTimer),this.$emit("opened"))},updatePopper(){this.popper&&typeof this.popper.update=="function"&&this.popper.update()},async createInstance(){this.destroy(),this.showPopper();const e=(this.placement||"auto").replace(/[A-Z]/g,"-$&").toLowerCase(),t=this.$refs.popper,n=this.target&&!this.isSvg&&document.querySelector(this.target)?document.querySelector(this.target):document.getElementById(this.targetId);n&&(n.appendChild(t),n.style.overflow="auto"),await this.$nextTick(),this.popper=new U9(this.reference,t,{placement:e,positionFixed:this.positionFixed,modifiers:{preventOverflow:{enabled:!0,boundariesElement:"viewport"}}}),await this.$nextTick(),n&&n.style.removeProperty("overflow"),this.updatePopper()},handleClick(e){const t=()=>{e.stopPropagation(),this.hidePopper()};if(this.reference&&this.reference.contains(e.target))this.isOpen?t():this.createInstance();else if(this.$refs.popper&&this.$refs.popper.contains(e.target)&&this.onPopoverClick){const n=this.onPopoverClick();n!==void 0&&(n?this.showPopper():t())}else this.$refs.popper&&this.$refs.popper.contains(e.target)?this.showPopper():this.isOpen&&t()},bindEvents(){const e=this.$refs.popper;e&&(this.trigger==="hover"&&(this.reference.addEventListener("mouseenter",this.createInstance),this.reference.addEventListener("focus",this.createInstance),this.reference.addEventListener("mouseleave",this.hidePopper),this.reference.addEventListener("blur",this.hidePopper),e.addEventListener("mouseenter",this.showPopper),e.addEventListener("focus",this.showPopper),e.addEventListener("mouseleave",this.hidePopper),e.addEventListener("blur",this.hidePopper)),e.addEventListener("click",this.showPopper),document.documentElement.addEventListener("click",this.handleClick))},destroy(){this.popper&&(this.isOpen=!1,this.popper.disableEventListeners(),this.popper=null)}}}),Ek={key:0},xk=["id"],Sk={key:0,class:"k-popover-header"},_k={key:0,class:"k-popover-title"},Tk={key:1,class:"k-popover-actions"},Dk={class:"k-popover-content"},Mk={key:1,class:"k-popover-footer"},Ak=["id"],Ok={key:0,class:"k-popover-header"},Pk={key:0,class:"k-popover-title"},Bk={key:1,class:"k-popover-actions"},Ik={class:"k-popover-content"},Nk={key:1,class:"k-popover-footer"};function Lk(e,t,n,r,a,o){const i=Gn("KButton");return C(),se(va(e.tag),{id:e.$slots.default?e.targetId:null,ref:"root","aria-controls":e.$slots.default?e.popoverId:void 0,"aria-expanded":e.$slots.default&&!!e.isOpen||void 0,role:e.$slots.default?"button":null,onKeyup:[jt(Mt(e.showPopper,["stop","prevent"]),["enter"]),jt(e.hidePopper,["esc"])]},{default:F(()=>[z(e.$slots,"default",{},()=>[G(i,{id:e.targetId,"aria-controls":e.popoverId||void 0,"aria-expanded":!!e.isOpen||void 0,"data-testid":"kpop-button"},{default:F(()=>[J(V(e.buttonText),1)]),_:1},8,["id","aria-controls","aria-expanded"])]),e.isSvg?(C(),S("div",Ek,[(C(),S("foreignObject",null,[Ml(O("div",{id:e.popoverId,ref:"popper",class:q(["k-popover",e.popoverClassObj]),role:"region",style:Et(e.popoverStyle)},[e.$slots.title||e.title||e.$slots.actions?(C(),S("div",Sk,[e.$slots.title||e.title?(C(),S("div",_k,[z(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(C(),S("div",Tk,[z(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",Dk,[z(e.$slots,"content")]),e.$slots.footer?(C(),S("div",Mk,[z(e.$slots,"footer")])):$("",!0)],14,xk),[[pd,e.isOpen]])]))])):(C(),se(ja,{key:1,name:"fade"},{default:F(()=>[Ml(O("div",{id:e.popoverId,ref:"popper",class:q(["k-popover",e.popoverClassObj]),role:"region",style:Et(e.popoverStyle)},[e.$slots.title||e.title||e.$slots.actions?(C(),S("div",Ok,[e.$slots.title||e.title?(C(),S("div",Pk,[z(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(C(),S("div",Bk,[z(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",Ik,[z(e.$slots,"content")]),e.$slots.footer?(C(),S("div",Nk,[z(e.$slots,"footer")])):$("",!0)],14,Ak),[[pd,e.isOpen]])]),_:3}))]),_:3},40,["id","aria-controls","aria-expanded","role","onKeyup"])}const Jo=Ee(Ck,[["render",Lk]]),Rk={role:"tooltip"},ei=ge({__name:"KTooltip",props:{label:{type:String,required:!1,default:""},placement:{type:String,default:"bottom",validator:e=>Vg.includes(e)},positionFixed:{type:Boolean,default:!1},maxWidth:{type:String,default:"auto"},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=j(""),r=B(()=>{let a="";switch(t.placement){case"top":a="k-tooltip-top";break;case"right":a="k-tooltip-right";break;case"bottom":a="k-tooltip-bottom";break;case"left":a="k-tooltip-left";break}return a});return(a,o)=>(C(),se(Jo,Ke(a.$attrs,{"hide-caret":"","max-width":e.maxWidth,placement:e.placement,"popover-classes":`k-tooltip ${r.value} ${n.value}`,"popover-timeout":0,"position-fixed":e.positionFixed,"test-mode":!!e.testMode||void 0,trigger:"hover",width:"auto"}),{content:F(()=>[O("div",Rk,[z(a.$slots,"content",{label:e.label},()=>[J(V(e.label),1)])])]),default:F(()=>[z(a.$slots,"default")]),_:3},16,["max-width","placement","popover-classes","position-fixed","test-mode"]))}}),$k=["aria-hidden","tabindex"],{getSizeFromString:Hk}=kn(),Fk={name:"KBadge",components:{KButton:We,KIcon:Be,KTooltip:ei}},zk=ge({...Fk,props:{appearance:{type:String,required:!1,validator:e=>Object.keys({...ek}).includes(e),default:"default"},truncationTooltip:{type:String,default:""},forceTooltip:{type:Boolean,default:!1},dismissable:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},shape:{type:String,required:!1,validator:e=>Object.keys({...tk}).includes(e),default:"rounded"},color:{type:String,required:!1,default:""},backgroundColor:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},isBordered:{type:Boolean,default:!1},hoverColor:{type:String,required:!1,default:""},maxWidth:{type:String,default:"200px"}},emits:["dismissed"],setup(e,{emit:t}){const n=e;bs(g=>({d0a5fbaa:f.value,"6641fc5c":g.$props.backgroundColor,"0dd530c4":g.$props.borderColor,"454a21aa":g.$props.color,"9bc984c0":g.$props.hoverColor,f57b025a:g.$props.hoverColor||g.$props.backgroundColor}));const r=Xn(),a=B(()=>!!r.onClick),o=j(null),i=j(!1),s=()=>{i.value=!0,t("dismissed")},l=j(0),u=j(0),c=j(!1),d=B(()=>l.value{const g={};return n.backgroundColor&&(g.backgroundColor=n.backgroundColor),n.borderColor&&(g.borderColor=n.borderColor),n.color&&(g.color=n.color),n.isBordered&&!n.borderColor&&n.color&&(g.borderColor=n.color),g}),f=B(()=>Hk(n.maxWidth));return Le(o,()=>{var g,y;o.value&&!c.value&&(l.value=(g=o.value)==null?void 0:g.offsetWidth,u.value=(y=o.value)==null?void 0:y.scrollWidth,c.value=!0)}),(g,y)=>i.value?$("",!0):(C(),S("div",{key:0,"aria-hidden":e.hidden?!0:void 0,class:q(["k-badge",[`k-badge-${e.appearance}`,`k-badge-${e.shape}`,{"is-bordered":e.isBordered,clickable:a.value}]]),style:Et(h.value),tabindex:e.hidden?-1:0},[(C(),se(va(e.truncationTooltip&&(e.forceTooltip||d.value)?"KTooltip":"div"),{class:"k-badge-text","position-fixed":e.truncationTooltip&&(e.forceTooltip||d.value)?!0:void 0},{content:F(()=>[J(V(e.truncationTooltip),1)]),default:F(()=>[O("div",{ref_key:"badgeText",ref:o,class:"k-badge-text"},[z(g.$slots,"default",{},void 0,!0)],512)]),_:3},8,["position-fixed"])),e.dismissable?(C(),se(We,{key:0,"aria-hidden":e.hidden?!0:void 0,class:"k-badge-dismiss-button","data-testid":"k-badge-dismiss-button","is-rounded":e.shape==="rounded",tabindex:e.hidden?-1:0,onClick:[s,y[0]||(y[0]=Mt(()=>{},["stop"]))]},{default:F(()=>[G(Be,{color:e.color,icon:"close",size:pe(Eg),title:"Remove"},null,8,["color","size"])]),_:1},8,["aria-hidden","is-rounded","tabindex"])):$("",!0)],14,$k))}}),_i=Ee(zk,[["__scopeId","data-v-67fa49a3"]]),jk={class:"k-breadcrumb-icon-wrapper"},Uk={key:0,class:"k-breadcrumb-divider"},Zk={inheritAttrs:!1},Yk=ge({...Zk,__name:"KBreadcrumbs",props:{items:{type:Array,default:[],required:!0,validator:e=>e&&e.length>0},itemMaxWidth:{type:String,required:!1,default:"38ch"},emphasis:{type:Boolean,default:!1}},setup(e){const t=r=>r.to?typeof r.to=="object"?{type:"router-link",attrs:{title:r.title,to:r.to}}:{type:"a",attrs:{href:r.to,target:"_blank",title:r.title}}:{type:"div",attrs:{}},n=(r,a)=>r.key||`breadcrumb-${a}`;return(r,a)=>(C(),S("ul",Ke({class:"k-breadcrumbs"},r.$attrs),[(C(!0),S(Me,null,ot(e.items,(o,i)=>(C(),S("li",{key:n(o,i),class:"k-breadcrumbs-item"},[(C(),se(va(t(o).type),Ke(t(o).attrs,{class:"no-underline"}),{default:F(()=>[O("div",jk,[z(r.$slots,`icon-${n(o,i)}`,{},()=>[o.icon?(C(),se(Be,{key:0,class:q(["k-breadcrumb-icon",{"has-no-text":!o.text}]),color:`var(--kui-color-text-decorative, ${pe(yw)})`,"hide-title":"",icon:o.icon,size:pe(xt)},null,8,["class","color","icon","size"])):$("",!0)],!0)]),o.text?(C(),S("span",{key:0,class:q(["k-breadcrumb-text",{"non-link":!o.to,emphasis:e.emphasis}]),style:Et({maxWidth:o.maxWidth||e.itemMaxWidth})},V(o.text),7)):$("",!0)]),_:2},1040)),o.to||i[G(Be,{color:`var(--grey-500, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:"chevronRight",size:pe(xt)},null,8,["color","size"])],!0)])):$("",!0)]))),128))],16))}}),Gg=Ee(Yk,[["__scopeId","data-v-cca12c6d"]]),Vk=ge({name:"Krumbs",setup(e,{attrs:t,slots:n,emit:r}){return ft(()=>console.warn(`The Kongponents 'Krumbs' component is deprecated and will be removed in a future release. Update all references of 'Krumbs' to 'KBreadcrumbs'. -Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),()=>De(Gg,{...e,...t,...r},n)}}),Kk=["aria-describedby","aria-label","aria-labelledby"],Gk={key:0,class:"k-card-status-hat"},Wk=["id"],qk={class:"k-card-actions"},Qk=["id"],Xk={class:"k-card-content"},Jk=["id"],eC={key:0,class:"k-card-notifications"},tC=ge({__name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border",validator:e=>nk.includes(e)},hasHover:{type:Boolean,default:!1},hasShadow:{type:Boolean,default:!1},status:{type:String,default:""},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=B(()=>t.testMode?"test-title-id-1234":pa()),r=B(()=>t.testMode?"test-content-id-1234":pa()),a=It(),o=B(()=>!!(t.status||a.statusHat)),i=B(()=>!!a.actions||o.value||!o.value&&(!!t.title||!!a.title)),s=B(()=>!o.value&&(!!t.title||!!a.title)),l=B(()=>o.value&&(!!t.title||!!a.title));return(u,c)=>(C(),S("section",{"aria-describedby":r.value||void 0,"aria-label":e.title?e.title:void 0,"aria-labelledby":!e.title&&pe(a).title?n.value:void 0,class:q(["kong-card",[e.borderVariant,{hover:e.hasHover,"kcard-shadow":e.hasShadow}]])},[i.value?(C(),S("div",{key:0,class:q(["k-card-header",{"has-status":e.status||pe(a).statusHat}])},[e.status||pe(a).statusHat?(C(),S("div",Gk,[F(u.$slots,"statusHat",{},()=>[J(V(e.status),1)],!0)])):$("",!0),s.value?(C(),S("div",{key:1,id:e.title?void 0:n.value,class:"k-card-title"},[O("h4",null,[F(u.$slots,"title",{},()=>[J(V(e.title),1)],!0)])],8,Wk)):$("",!0),O("div",qk,[F(u.$slots,"actions",{},void 0,!0)])],2)):$("",!0),l.value?(C(),S("div",{key:1,id:e.title?void 0:n.value,class:"k-card-title"},[O("h4",null,[F(u.$slots,"title",{},()=>[J(V(e.title),1)],!0)])],8,Qk)):$("",!0),O("div",Xk,[O("div",{id:r.value,class:"k-card-body"},[F(u.$slots,"body",{},()=>[J(V(e.body),1)],!0)],8,Jk),pe(a).notifications?(C(),S("div",eC,[F(u.$slots,"notifications",{},void 0,!0)])):$("",!0)])],10,Kk))}}),_h=Ee(tC,[["__scopeId","data-v-22c99869"]]),nC=ge({__name:"KSkeletonBox",props:{width:{type:String,default:"1",validator:e=>gk.includes(e)},height:{type:String,default:"1",validator:e=>yk.includes(e)}},setup(e){return(t,n)=>(C(),S("div",{class:q(["box",{[`width-${e.width}`]:!0,[`height-${e.height}`]:!0}])},null,2))}}),Dt=Ee(nC,[["__scopeId","data-v-3c50a4ad"]]),rC={class:"skeleton-loader"},aC=ge({__name:"SkeletonBase",setup(e){return(t,n)=>(C(),S("div",rC,[F(t.$slots,"default",{},()=>[G(Dt,{height:"1",width:"100"}),G(Dt,{height:"1",width:"100"}),G(Dt,{height:"1",width:"75"})],!0)]))}}),oC=Ee(aC,[["__scopeId","data-v-28ddd291"]]),iC=e=>(Ln("data-v-6be641ec"),e=e(),Rn(),e),sC={class:"skeleton-card-wrapper"},lC={class:"skeleton-card"},uC={class:"skeleton-card-header"},cC=iC(()=>O("hr",null,null,-1)),dC={class:"skeleton-card-content"},hC={class:"skeleton-card-footer"},fC=ge({__name:"CardSkeleton",props:{cardCount:{type:Number,default:1}},setup(e){return(t,n)=>(C(),S("div",sC,[(C(!0),S(Me,null,ot(e.cardCount,r=>(C(),S("div",{key:r,class:"skeleton-card-column"},[O("div",lC,[O("div",uC,[F(t.$slots,"card-header",{},()=>[G(Dt,{class:"card-header-content-1",height:"2",width:"25"}),G(Dt,{class:"card-header-content-2",height:"2",width:"75"}),cC],!0)]),O("div",dC,[F(t.$slots,"card-content",{},()=>[G(Dt,{width:"10"})],!0)]),O("div",hC,[F(t.$slots,"card-footer",{},()=>[G(Dt,{width:"5"}),G(Dt,{width:"5"})],!0)])])]))),128))]))}}),pC=Ee(fC,[["__scopeId","data-v-6be641ec"]]),mC={class:"skeleton-table-wrapper"},vC=ge({__name:"TableSkeleton",props:{rows:{type:Number,default:6},columns:{type:Number,default:6}},setup(e){const t=(n,r)=>[3,4].indexOf(n)===-1&&n!==r?"10":[3,4].indexOf(n)>-1||n===r?"6":"1";return(n,r)=>(C(),S("div",mC,[(C(!0),S(Me,null,ot(e.rows,a=>(C(),S("div",{key:a,class:"skeleton-table-row"},[F(n.$slots,"default",{},()=>[(C(!0),S(Me,null,ot(e.columns,o=>(C(),se(Dt,{key:o,class:"skeleton-cell",width:t(o,e.columns||6)},null,8,["width"]))),128))],!0)]))),128))]))}}),gC=Ee(vC,[["__scopeId","data-v-3e795fea"]]),yC={class:"skeleton-form-wrapper"},bC={class:"skeleton-form-row"},wC={class:"skeleton-form-row"},kC={class:"skeleton-form-row"},CC={class:"skeleton-form-row"},EC=ge({__name:"FormSkeleton",setup(e){return(t,n)=>(C(),S("div",yC,[O("div",bC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",wC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",kC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",CC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})])]))}}),xC=Ee(EC,[["__scopeId","data-v-27fab520"]]),SC="data:image/gif;base64,R0lGODlhtwC3APf+AB9Uef7+/k94lQVAafn6+/z9/QM+aAI+Z9/n7Pv8/fX3+fb4+gtEbQQ/aF+Fn/L19whCa/f5+v39/uzw9A5HbgE9ZwdBahtRdhdOdOnu8jVlhkBtjHWVrLbH0y9ggluCnd3l6x5TeAxFbRBIcPP2+HuasDBhgxNLcSVYfOrv8vH098PR2+ft8ejt8RFJcEVxj2OIoeXr76G3x4aitlqBnNni6A9Hb+bs8G+Rqe/z9drj6YKftO3x9NHc4xhOdPj6+9Xf5sXT3Km9y6u/zRlPdWGGoDFhg0hzkfr7/AZBamuOpoWitlmAmyZZfbvL1jloiCFVeglDa9jh6KK4x9Ld5L/O2b3N18/a4nmZr0NvjlR8mBZNcyJWeiNXexxRd6/Cz8jV3p61xbXG0zdmh6W6yaS5yIejt8zY4ERwj2aKo0dykWiMpMfU3SdafShbfj5ri87a4gpEbODn7Jmxwn+dsg1GbuLp7kFujY6puxRLchJKcdPd5ZOsvsbT3fD09ipcf42ou+Tq74Ces2eLpJGrvaO5yOPq7m2Pp9vj6XGSqlN7mMrW3ylbf1Z+mrrK1qi8y1B5ltTe5cDP2RVMc97m65evwa3AzjtpiSxegLPF0YOgtXiYrlJ7l520xM3Z4YumuZ+2xX2csbHD0Fh/mzhniMnW3013lDJihLzM12mMpdfg567BzrLE0R1Sdz9sjOvw8+Ho7TZlhi5fgiBUeY+pvEx2lKe8yrDD0Kq+zEt1k4mluEJujjpoiVd/mpWuvytdgKC2xpqywl2DnlF6l3qZr6zAzVyCnT1ri26QqMvX4PT3+IqmuZavwKa7yjxqitzk6tbg5neXrSRYfJiwwbnJ1TRkhTNjhWqNpnKTqrfI1JKsvnaWrZStv2WJo7TG0oGfs8LQ2lV9mYShtS1egb7N2Juzw3SVrLjJ1NDb44ikuGSIomyPp3OUq0p1kkl0kkZykMHQ2nybsH6cspyzxO7y9WCFoBpQdpCqvIynusTS3HCSqWKHoQA8Zv///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQwIDc5LjE2MDQ1MSwgMjAxNy8wNS8wNi0wMTowODoyMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3ZjIxZWJkYy04MzJhLTQwZjEtYWZlMy1lMjZhNzM4ZGY5YTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjNGMkExNzA5QzQ2MTFFOThCRTFFOEI2M0M2NTQ0NUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjNGMkExNkY5QzQ2MTFFOThCRTFFOEI2M0M2NTQ0NUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyN2YyODg3Yi1jY2Y3LTQxODItYjE3YS0xMTY4NjU4MjI5ZDgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6N2YyMWViZGMtODMyYS00MGYxLWFmZTMtZTI2YTczOGRmOWEzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoA/gAsAAAAALcAtwAACP8A+wkcSLCgwYMIEypcyLChw4cQI0qcSLGixYsYM2rcyLGjx48gQ4ocSbKkyZMoU6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1atYs2rdyrWr169gw4odS7as0zB/zDpNxI+f2qZt3fbjUOBtUVUC4+bNMsGu0A428rYVDMAv0E8H5Ortt9hwz8WQB/fDkcDxzRuCFUuG/KaFZZrJ7GUezXgzPy+fZZKBoLk16capXUZ2XZr2GgKxU6p4bZo2ZFKYc5d8xoi3796CfQgnicrF8efGl480gLx2dOvYi0SQ7nH2de/Y+VX/s8OdI/jz1SNPKr8RPfTw1dljdP89vWQaCuRXpA//PWQPCOg3EX8E2ueCgBIV6J99cgWA4EILRlifXIqQ8GBCEvY34Wu/6HDhQRkqWJ8zHxpUWD8ApChQiieKqGF4XaRQYoIMbogdF4bMKFFiIdbYDyI6SqSNjy4GOdEaPb63nZEQJZCFjfwhUyILDjggUJVW9oOlQN3kUBA9UBLZwYdFEJlFZQa5eJ4PMj5YAZH8rHFQA3AuWMuFRRJUSZ02IpgnQTgkeZ18P4QpVyQFFXCEoYOytwyjKGZQkB+QgsdeBhRUykuhafL5IntpCFraBwcN4Kml3PWQWKWSFRTGqfFx/4cGrLQZxIGosEmnZnXJJHrni/yVtyttPuRIkIXA+igsra8ZoQyIzErXV7I9QnKQBbBiwd01rL5XUBmeQkAGd5EY0G2jBGGR4SLlHYGrj/AUFAAnfXLXQbT8nfBMQfklS4N8buBLpBtedkrbAWboN2yYLxwURXWsCLgwtaQV9EisCgucoUGCaLYBnhrbOCZBAYyS1xpIXGjquxlSAERBCwjETInAhEwxY7O0yaRA0bAc5iVBriCvtTdPnKuAdfVzAiX8nlt0qwgqIEBef1BqsNP8FSPgDadotqhBD/t8cxRn6BcCxgINYTOBRAQiH6oELSF2gUZwF8x1TshrDNae5v8WwDbvjSBFQZwa3XdsWhCJAg/Qzu2jDLEVeMdBdazt4wBCG4bX03IV1MGqnFe6tF/kjACpQYQ4vqAbdgFjKqTeGCRn6LQfPdbEdexREJqGbzwWbrVvBoCkVwefITdiTUCi8YLxcpAelr93wDlg6YCC6gdJ8jrzRVMAzVcnRI9QJ9gnO0tVVaQvUPpV8E3bKra6X29UvdsYhScFSSD/zVPVX/QFMWjc/sCTMKdQYYBwssZBfCA+YMGPKTnoAgJ9N5BSPGyCr7nfUgJQi/L9aSAXwyB8RKOUHTTQReMqyA5ECDej8IiFPrIAG+QFQ9o46Cj+M9oW5CBA7vFHW0SJmQ//LSeLgwDghOmZAlGylEObFYQKIvBgejAnlD3V8HQF8cYBrliaPAQFDNtrotjmYRA8cNF2OrkAEsU2AEkgRIzXSRpP4DhExehhX8Wj42LW4RM9Wo51BmnCGl/jC53g4oxOJIgOnHNGA1ADJ0AQASLf9QuEkGMAiAyMTR7QBil68AClSMjd6jg/mQxjkKRkDDsa4kfaAE8mrdyfNPoFIVQuJkuwtKXNyOEQWehSMQV0CXlSGUuIwAIDnnxNBR7Ikh9oYJJOgwgbIIDIOLhEHckkJtQe0gxosoR82Wziv/bzS4HQ8iTYCufa8qCzAZWzH1q44UmKmcNuWmQM7+QHMVJC/0/JsGhFKkJRQP8p0BON0yIsOBsiC4GSfnZOJuiQpDaPk4SG6lKBNYnYRNE1Enq6gGk4cahAdkMSesYuJyLtxxHkGJJi7lMnG8jnIUqKSpb2wxtT64cAdiqQnebUpz3lqU6FmhEeXO+MdaBpNguiAxuIrZ0VkYLpNhoeNCgVgQ04yC9stgE0XcQKZ3ypSPxoxjziCwfmsaVGx3pCRciTIE1Uokbo6ZmONhAFD3ij5aipkXag8kR2Ld8B9Vq+jDwAE9nsRUnoqBA6etUictiCCMsa2P0pxBgNRGtG+iDCICzWctVgSArCN0C5zrWBQqysD10QIIbIwIMQKNtpC/vZudOJ4SHvQGAINtKIBprEf/GACEgZixEFaIC2V+WeTR1CXIzcoBWWrW003Vk+014EDtFN7q6yWhHqlC+2aRXbbwVGC4sAzoMhgKpF/DdeXGnhIgrgghQ/phFkile6tGtCXi+CWQR6cbbT1a6nBnuRWEiRA+0RmATnGS2NjECKQAJw8JhgUVFlZAIn3EV4WaWNCofJAxthwwmHsOHggcHD3cNjRqbQQAykLMG4SgKndkbjGtv4xjjOsY53zOMe+/jHQA6ykIdM5CIb+chITrKSl8xkqgQEACH5BAUKAP4ALA4AHACTAIYAAAj/APsJHEiwoMGDCBMqXMiwocOHECNKnEix4sIXPCxq3Mixo8VXAvlB6eGxpMmTHa8ACMkvDsqXMGMmFBKHH0ub/QrI3MmzJL+fNwXuStGzqNGHKoL2+4mTX4gzR6NKJVijjVKmLCFM3WpUjI2mQJeGxdoPCdezMA+MXQsW55sWaONyVHCV7dULYOTqnSjHSN22dZPsHexQ0iTAYhGTJUuAsOODA+wm/quU1I3HmClP3rx4rI8+mQcP0dxZ8doBofWqIEJacmmlP1KfVWK6dmucGuzInrqogm3Orl1vkbQ7qpHgv18Db1D8qPLnyDUvaM4TevLom0/JoS7T+u3vS0+g/+J+0hJ478BNHyBfUsWF89jRk1XGfiObXPCv6xe4o75HMkpokN+Am+nk30mfhPNeegQqd+BOHDgTRYPBvfBgUXQxqOFzFkxwYUUOABJERPLFx08qH1JE1iFkgMBQiful+FBjGi6BygMHwQiejAwVoEVr6xkkjIkxBsCjQofE6AhBMTAQI3rcHInQEkQKhEkCBInzJHYQACGlQTouxQxBC6y0YZVLeUDjlw3mkQNBj1BoGgJslkIhDgQZeeaWdEqpQx4UMgcmmtD1ySMLUGyJWEFhFiqlCYRKVpAIkc4pZaOSYTnQDJXWZeiFemKKGB8ERTCLop7KqI+cSrmQ0UC4oP8K3KcHfiLrc4cU5AqrSy2h54NldLqhAdAQdAWvq8gY2a3BHZGjsDyKuiNBmAp4pLR7PvvkKNNdKyx6BXGBJh2/Rvstdh4O9AWabPbjG7O/XVPQHdex1m4/MJz7mwGRENRDkM8ZYci9/dzgJK/PWUhQGpopkiHBO8DbmigEZaBZuTx2MOZACiyILXQoaMuSBQSLcMKbA8mAMHaMjoUBGwT/xA5BEqz8W8s4tQFLu0mJhdqgEmtYEBphIdJuICYohbPNSpE0EBUG4NTuFV4sStCyTG92R0FrSM0mpYiVi4y+pH1B0ASaxCwZGQTxMELQz3WxZrsSmKMZAN0KhAfcwS3/Q7ACnCQ3A0EEdJF1Z3UQHEt8dVg8UDGHS8pmiYOInO3lZElpBXwGWP6x5DKC8nOYS2OOpnkpxgMtQRCQrSEUEaSIrYECleD6c4MfmC62cxD0AAZ8KyYCC/7pELLpiGGA40BzBF9XEfWtcALcJRBUACaRg1VBfUncDoFuA1GTvdK7JUBJ5B94fntYmKnCyj0CSdOA85uV/jlieQ92/7QD7a+hOI/xH7gIUof1IYYBMdhLzZDHq7lxin6LccBeKMbACpIFD2QCAATHUgE7yeUS49PQCF4lEDJsECxPkEsQTkgaZOQpFiHM3FmGwcINDaAGBFlBDNnHFSn4ZoemgYT6/+h3lm4YkED2O2I/BrYVCyiRdNR6YlhowBUBrm4gepBiU2A2FSvK6mH90IYWQzIGjBXFiwTqz0AS0IQa/qQMR9EUGivIgMsMRBRu5MeCigJHCz4RBgXZABCP4oFBYq4CThMIHAzZE2rkcUtZGGLWekI0Q0Kxf2Psx4hkAodMYiuJ9NOAGU3CBE9eUSBE8CQoZBK1RyKRIGHwJBFIEJM5+q8gEvBAHolRS1NuiQEIsUIetQITW56LFgmpBSNL0i1j3ooUCzyIFJbpkd75sYZJKNaLMhlNjhxvjgAIp0DCaSZyjlOc/TBnP3ThEGcKpBM+CaFR3NkP5XmkhkZJlBs3cf9PeRYlVm60wPk4gs+iBIAXeeRERzYYpKOAIY/AJGjk3EAQkPRDABgVCEYFoNGMXtSjG3XIKHZ4jIVGjgkEWdI1HdInY9pNoisFjt8G8glePcSYcYKpFVUqkPTF9KZSdJFO12dRK/EKLg2xJaBMGtPFeIEgP+hcTMPgkD880VlMFaApCOKJoAmxIWJ4Yij62dSxjHUgseQVA2LXkBdA0BtkFWCyBjI2hInBIVQA2O2QOlS4feoNcEORQ9SRtVbEs6w4GUFBvoKwpzqEeIgVyI/i6rqtDQQB6zsWRPyXjsP6LxEEucX6BEEi122OskGbAkEEsb5qlDZoy8uq6/ZAEBp0EtEh1nCdSeinKYGI67YNgYduPTtcTAK3IZAI2m4nGcXjMmRINiWucpvL3IYEAHjRRW12/dmQTk5Xu37kgiR/6hAzFFe2t7KAJwiSjMjtIiIbOG9fGzQNmsEwsmIRQkSwRl7whskYBekABCcxt6SeSwQbCQgAIfkEBQoA/gAsFQAdAHkAhQAACP8A+wkcSLCgwYMIEypcyPDgA4EJGkqcSLGixYsEY5gQuCEDxo8gQ4okGKkVP4H8vCwaybKly4MU+J3sJ9PCy5s4Q8qcuVMggZxAgyLUhFJm0ZmkAgldCjQBDJ5GaUblh2EF06su1UzdCrUB1q8ie0qFSlbgArBoJUY6ynZs21MI0spFaIVCW7F4p+pxMrevwCkDyrodnPeA3755BSduS+Iw2sWEubb9VcMxU4+RFUsmbIOVZaEf7m6GDPkzTieaU4sWnMO0ywVdVGde3VbaHtcssYzeLRsvAyG4RTbgTXu28eAfSRM3DnkC8ovKey8XG+LMc4ksikfXPhoCqOsMHXD/l06+LfiEP/u1izm+PfOo5xkWuCJw0vT7suNTVBXM/fbIa+j3kRyFpOHfdDQUIGBBKWRXER/4FYdBegsO5AE/XQhUWUOGRMjcEhUShNcWigikIEJIeEhaAyuFaBwDL+yA0BblvYdChd+4N8YzBI1T43/6AfNjJgRpdWB+51kRmH/TEFTEj8sZcl5MPwpC0CZQyrbLef/hNQhBEB6p3XMPvaeYKQQNkeWYwSWghpg0aUBQEGsyh9xTcPJzAUEg1ElacJqoOFUDAQwUgZ+jBdflbi0QNEKeieK2qGY9EOQGpIqZBgSmRWVDUBacEvbZDSGEKlMnBNFgalRzWEaCEYhC/zUDQRysOtNnRwiqmRIEAbKqLK5Nyl2JA9li6jCNmSbse08QVEWooRQarK6iQUGQFKEit6xyNg2U7Lb8lPocuEgOtC0vjY5L7XEielgEhdquW1q7NcZHbnEFLfqofveya+50bWyInLQCMSDvZvku94Qf4G06UBMHC5awbLeB5whBx0RsHr34PjeFQIUQ1IjGg03cMW4B0DGTLgThQLJYJvvr2gdRYUOQGS/Dx3FkG6k70ygEyZDzrTvnZRVuG4q1AUHnDH0QaUwEB44ebbVBEBVOGwRZHEq5VsiSg9k1UAZZxyxWI4qOdtZAw9n69GZ/mJYeaSAQdEGsG/8rWAVlHv/GwxvaBUGQBniXXPRUqDiGCMTaDUFQLYXDfDhPsx52wnS+EJRG5DrrfZcAjnWJBUHycD7TDwQZMJoPcwUgo5kowUBQJaYLFNdAROxmR1oECPPjEQTdUns/fQy+Gy5pbaCiEQSBMbwlBOWyW62Pqcj6QLAMn/lAm2sGOFMFfIFGngec2A8Bw48+kMqaxXGVSYg6KNAJbvcj+0C0l/tSPqrC/h4cBGFE/YA3EFEsBycX4lwHCPKC+nmAIKU44E36lZd5ECQ0/vsPBggSCAm+hIJbAdFAtlG/CkREICnSX0tACJVr9Kp+/IgBQWh0MpewsChaIEgzYNgigchChSy5oVT/mjWQZ2VwOkQaiJFkJpITClEmXCCIKmDYpIE8qYYi8QQM+QEBgqgAhlYaiG6K07WRVGKLRPPcERXzpYGEyTjFaEkR0Pi2yKFpIGoqTjRaErc1usds8pLTQPogm6WN5AEVoKPWXrangfSpOCIwH0jIMTzJqZGChDJUbyoWknRUsnNbTJdAXKCdcoyEE59M4xYrNZBLMacbI7mbIgGJKE8NBFTMAVZIYpA1S24RVQPBIGkMoIyQfKGXoPTjeyonEOopBxwh0U0q67gqXg3EV+9ZRkiygExVKlM5xBKIsd6TQ5BQaZaTgxQRBSIJ7nhBJ92k5je3Yq2BYMt/yYnnIjnX/y2BfMuDFnkiwtI5T28CCSNCBIBCBaJQAMhTiLTMW0BJNhGBGhSgFYGoRCz60IFCh6IbLRtBfZlRkDaEo/vEIkU02hAbiPSSHp1o4dYmECUIAHT9qNtA2vDSPyKUZIggiCuicg6CKG94ETXcRwt3NIEwISoyIMgoeorPnxbuEbSKihkIgo2cGaCjErNqqGhBEFpEBQcE0UXOTkEQSvh0qaEi4UCEEBW0DaQMOUuFDt8q01BhUCCEnMkxCOKInAGjZXwtaeEaOBAERKUJBAFCzu4pkDEkliKBKZwAB4K+mTCAIBN42QgIRoAkXHYilyAZKWfIEwUQJAmRe9NAnMedr/+CpAQviwBBTMATHRAkBJGjA0EIIZ2efQQ1kdOpQNzBk6b2YwyRW+BAnsqdNn5EAWCjoOC4xxPgDEQAkXPOQLggnTCIJLWm8q5ABMETQhBkDYW70UBScB+H3TZy7h1IMHiyCYJ8o3DGIEgmpkMBCYgENabq70A6wJN6EGQOheMGQXDbm/GJBLumEs9A0MET2QpkwKFKBkHQMB1isOQSpnoHQeiLEg0LhMGhQgJBzskcz4ykBKa6gxd58rGB4DZbI50KZg4cKgasZSCJ4IkMBwJdIMNUMLNoiWsLKpAyEGQPqhNIHwXihwMULqli6cUE11WQoc7kEAQ55peDPBM8jLkcTjG7BUHWYVL3FO+DglptzBg2EEbU2X+6pUhAAAAh+QQFCgD+ACwYABwAeQCGAAAI/wD7CRxIsKDBgwgTKlzIcKCvcQ0jSpxIsaJFg9348bvIsaPHjwg1buwXTwLIkyhTFlwkUGRLd/RUypxpUYaFlhpxdqHJs2dCHDn7uRQa1KdRn0OTBuVQ4KjTkz1wjlQ6NcuEp1gvDokjtSvRqfwAZB0rsURQql6Hkl2bEO3XtEFxJGBLVwpcsHjTvmlBl2wmG3cDvyXqpW9WQgfyDnbr1rBTA2cjK2YcdA0Bx0glC6Y8ldQNzDw5b9ZM1AdolZ8XkxateuTpk+FGT15NukiE1x3FzN4tO201O7gtKgDAu3Vv1VuCV+RAuzjrxsojQnbe/PjQDwqiM3xe3bh3fh4QaP9XCGMS9fPW+Zkar7BAlfTov8fyw74hm2g7v3dnjelqfYqY7CegYin8Z5EOZsB3nIEInRGRNm8coKB3SDBoED8hYBNRBgINMKBgm1gokBheDeJEhQut8qF3B0hiYScGwOWCQLchRMiKjHmRg4HfdMdAL7YclAiOtPViIHcj6UCQAEQWp112+ilWCkEeNClYdBPwMuErBNVhpXfKyeFGfGoRhOSCwRHxZUFnRqldm2UOBGd3rz0yYZx30gkaHmSSxuaX0Dk2ZJ+K/UnolZjNWaiZgPrZF31uRmponovSBQqlXk0aKWMG8IEZHZgOpqmiArmACmgOhIrnpt0hctoxqhb/xeihop7WSqyuzZqnObghISGrTuoKrEBJyBAcCLQGGiobyjmRrKNzDVtrcOU8C9YFBIGQZyPjmRXrJQRZcecOAYz3gbU4CUNQOROuUt8T6BIVCkElTPifmrFeOhAT6Q1g4A+NgvXeQE+kV4iBNQSMkxwEmbbpvAZmo7BQDTRFY3x6WPxfJRPzwwVBQJCZzXjBEBRNx1kQpJt1Aoxn7ECNdKwOQXyQaQBwuNEiEDwEadDxEgSx0yeopxVwzUg4C2RevPyQQRAnfRLxWi5BmSRnx8wOZAStoK1K6mJ8DTQC131dkamwX0dBUA5r0tWBCGdfHe8fBMHR9lrMJBY3rgLl/0KQJV/+wJay0rqlBEGAfHlwVlAS/vVQgBCkxJfOZMVCNYjKHaolBFGdLBVPAUFc5nz3Y/ZAjAB6uFMU6Kl54UHtOFAUgNahjFOsjXp3rHP4xKWkaO8OO1hG+JQGmq9/rTvZMnlSAfKlL2+vTAGQEp/00mLf5kwyrKi998Ezn5IPAjJAEA/Rhz9huSpx9wtBDg6/t/yDDZwSd7UQNET6yX/JbfsCOgRBPsG/0g2AQyC5RXoiN5DVPU5W/UsW0D4SgVmkh3MDaUcB6ZeUWVitIzvoExwIwogNPhAsJOoILGiXHtkJRG0chGDpNLKejoQDR4AZSAaYJsMYguVXHIGTB/8IAgYexuhCHevhROAECYLYgodiQSIPc2UROCWCIGbg4R0OcsL5NQSBcCIEQQbBwyIcxARJpKJEYHAnURDkBTzUxEEekUaBKGkiKLgT6AaCAh4uriASaMIUBaKhiVTiTiQYSACSwMMgICQMg+yHHmoUkctI6wQEiUESY4AQAtzKhy15GUXaZA2CrKBjFmDfQcQISqEUrCJt0gJBCtGxNihkATPkBzpguSIOEEQTHXNHQ7pIlFRUJA8r8gVBYNAxY24niXCjSBbjk0KB3KFjBHxmJCdCghPEBxoEgULH9scQ2m1zIiE8DiX70YCOxW8hQDmnRHKQw9ypr3DoYwgsPLT/wYYQzZ4RnBAFJLKPSOZTIv4BaOmGGBEdPK+VeLiIQlvZRIkYqZVNUOUSXVe6K0rkdMTkh7h4GayASgsXVeyYLBuiUQhwtJUqSCnTGsAChcS0H18gyDpeSkyJJlGOCeFXP0ygyn2WtJ8RCSmGEkKNqeR0IGQkXSsvYo06HqQA45gKUQeCgCM6bmIXAZw8B1ItsDxVIKkC0z23ZxEJpK6fGIiMCQjiKrWalK01GatUv/qsGQ3kdhRJQBSJaUmTYu971KEBQVzUD40yhBmlE8Jhg3dEgQguhkEaiC4EIlmJ4LKVGxBI/NyiUaWMgSA1UFUDXNgPTgjEDdHaaLxy6Aqp/8YhMvggyMseV1uC2KMl+pJtqIx0i6OqRlsDqeHjcjsQQ0wlBIVN6sTKgARB7vUspyAICSCgqtQOZAhg8dREGDAxemiDp2eZoECeGKo8EoQ5OHGYRAYVKkmidyqqIMgNQ+VLgqDRiwlJBlgnOhRMEGQB5A0VAgVSxEoxZAYDvq9AICaQYoCVIA5wVEN+EeHZ+EuKAtmjQBbQg2IIxBnInN5ALBAZIEo3XvrprR0BXBBIyYMG2QVe/94xyg7DRRwE4QaNGQKOMERDIC4Fi2JBTBRg9PhZkxgIAKYskClHccrv7IczrYySAMjhVP3IxThSUxAu9wMA0njAk/NUj4EEBAAh+QQFCgD+ACwYABwAeQCGAAAI/wD7CRxIsKDBgwgTKlzIsKHDhxAjSpzY8IHABBQzatzI0WAMEwI3ZOhIsqRJhJFa8RPIz8uikzBjbqTAb2W/mhZk6tzpsKZNnwIJ8Bw6VBPLmkdtkgpEtOnJBDB+Ir05lR+GFU6zclRTtavUBlrDUgRKVapZgQvEqlUYKanbsm9PIVhLl6AVCm/J6q2qx0ldulMGnIVLeO+Bv2v3Dlb8lgRirYwLe337q8bjoSMlL55c2Aaryzs/5OUcOTJomE42qx49OMfpkgu6rNbM+q20Pa87YiHNe7ZeBkJyb2zQuzbt48LHFj9emvOE5BKb+15ONsQZ6A1ZGJe+nTQEUNgXOv/oPr382/AIhfZrR5O8e+ZT0S8scEXgJOr4Z8t/qCrYe+6SrbEfRXIUksZ/1NFQwIAEpaBdRHzkZxwG6jEokAf8dCGQZQ0ZIiFzS1g4kF5bKCLQgggh8WFpDbwkYmQMvLADQluYBx8KDH7z3hjPEDSOjQDKBwyQmRDEFYL6hWeFYP9NQ1ARQC5nSHg0ASkIQZtEOdsu4QGo1yAERYjkdslZBN9iphA0hJZk5paAGmPepAFBQbDJnHBRxcnPBQSBYGdpuWmyYlUNBDBQBH+SlpuXvLVA0Ah6Kvoao5v1QJAbkS4GGhCZHpUNQVl0WthlN4Qgak2dEETDqVPN8RgJRiT/KtUMBHHAqk2XHTHoZkoQBAirspxGaXcmDmTLqcM4Btqw8D1BUBWihmKosLuOBgVBUogqHLPN5TSQstzyY2py4SY54oq8OEputcgRxGwRFW7LrmnufoheucYVxCik8uHb7rm+tcGhcNMKxMC8nOm73BN+YMfpQE0gPJjCs+GGnSMEHSPxefWam9sUAhVCUCMbE0ZxvrkFQIdNuhCEQ8lknfzvaR9MhQ1BZsAcX8ejgbSuTaMQJIPOuPIsGVavcUjWBgSdQ/RBpTGRGzh6vNUGQVQ8bVBkcTB1WiFMEobXQBloLTNZjSxKWloDEXcr1Jz9AZp6pYFA0AWycgzwWxWY//kXD29sFwRBGuRtstF6oYIYIhFvNwRBtRgeM+JV0frXCdT5QlAaku+8d2ECIOYlFgTJ07lNPxBkAGk+rBXAjGeyBANBlZwu0FwDEcGbHWIRIAyQRxB0i+399EE4b7iItcGKRhAEBvGWEJQLb7aGxW3rA8FCvOYDcb5Z4EQV8AUaeh6AYj8EEE/6QCtvFkdTKiX6oEAnvN3P7APV7rFJ+awaO3xwIAgj7Be8gYhiOTHBUOc6QJAX2M8DBCkFAmHir73MgyCi+R+AMECQQEzwJBXsSogGsg37VQAjAlHR/kgSQqlcw1f240cMCFIjlIFQZ1ogSDNi6CKByGKFHWnhUf+cNRBoaZA6RRrIkWbGERQKkSpcIIgqYuikgUDJhh3xRAz5AQGCqCCGVxrIbozjtY5UYotF+1wFwTQQMR2nGCUpAhrhJrk0DWRNxolGSeR2RBudbV5zGkgfZsO0jjygAnPcGsz4NBA/GUcE59MIOYg3OTXOq1CH8o3FNpIOSnpui+oSiAu2U46OcMKTadyipQaCKeZ0oyN4S+QfE/WpgYSKOcHaSAy0VsktpmogGSyNAZSxkS/w8pN97I7lBFK95oBjI7tBJR1Z1auB/Ao+y9hIFo6ZymTCp1gCORZ8cqiRKsmScokiokAk0R0vbOSJ9LJkoq41kGz9LyPwTBg6I+X/LYGA64PR4eY0vRnP9+CzZABIqEASCoCBPnGWeguo4R6Sz24GSTkT7YnZ9nm4iTxUo8SDaEclqi2Q2k+kvYzIRxtig43KM6IqLRnbBKIEAYSuH3YbSBtcalCMigoRBHHFVM5BkOWFlKMphcgTkSYQJkxFBgQZBU/v6VOCTuURtZqKGQiCDZ0ZwKH69GjJaEEQWkwFBwTRhc5OQRBK9FSshivhQIQwlbQNpAw6S4UO30pSq9okgwIZpE2OQRBH6AwYLuNrTA3nwIEgYCpNIAgQdGZPgYxBsRARjOEGOJD02YQBBJkAzEZQMAIkAbMPuUTJRknDnyiAIEmQHJwG8rzu/3xVIyWAWQQIYoKf6IAgIZAcHQhCiOn4LCOpkVxOBeKOnzC1H2OQHAMH4tTusDEjCghbBQfXvZ8EZyACkNxzBsKF6YSBI6o91XcFIoifEIIgazAcjgaSAvw8DLeSe+9AgvGTTRDkG4YzBkEyQR0KSIAjqTmVfwfSgZ/UgyBzMBw3CJJb35CPI9k91XgGgo6fzFYgBBZVMgiCBuoQgySXONU7GvSTDQukwaJCAkHMyZzPdKQEp7qDF38CsoHktqQvLUxmECwqBrRlIIn4yQwHEl0gv2cWJXmtXwVSBoLsYXUC4aNA/HCAjAaZLL2gILsKIlSbHIIgxvTye/AgZjvJ7BwWBFlHyVA6FePdMEqslVnDBsKIOSN1KrudSEAAACH5BAUKAP4ALBUAHQB5AIUAAAj/APsJHEiwoMGDCBMqXMhQ4QseDSNKnEixokWCrwTyg9LjosePIEMSvAJAI784IlOqXHlQSBx+JmH2K8Cyps2L/HLGFLgrxc2fQA+q2Nkvp0x+Ic4EXfqzRhuiRk1CYEp1pRgbR3UW1Rq1H5KqYD0e4Eo2q8w3LcKqbagAalmoF8CsnXtQjhG3Zt0moctXoKRJebcG7tqVQN+1A94KxkuU1I3DYQkrljzYRx/IS4cwXsyZsskBmIGqILLZc2fFP0LXVDJ4suvAGuyoVrmoQuvbpblukTRbpJHXuXFvbdA7pOnjwE/LXFAcZ3LkwruektO8IvTg2IueQFW9oaXs15W7/z3QfaGKC+Cfq5eprPxBNrnSR18vcId7hWSUaJDPnzPN+w19Eg564hUYXlcAWsSBM1H0h9wLCX7UloH0FWXBBBES5AAgQVB0oHqpZDhQV4eQAQJDH84nU4KGFbgEKg8clGJ2ABagRW7kGSRMheEFcN8hKgrkCEExMBAkhTJx494SFWKSAEHiHBkeBECUN2NRzBC0QElIgudBi81dyU8eORD0iIOuIVBcKWjiQJCPXcaZk5qz6ZAHmsQZJGaas7EAhZSKFbRna3SGZgKPgRIkAqKEzjYoUU8ONAOjbhXaF5yPcsYHQRHMAmijkOmDZmAuQDQQLp9WCtknqRp4SEGujP+q0RJw8lUGpQYaAM1IsvazCmaJtYrcETLiGlqm4QmK6H6qIZucslKOwlyzuCZLEBcV0lHrsdUmh+FAX1TYnG3CJndNQXfMR1p1MHQrnAGRENRDjscZYUh3NxjZ63EQEpTGZopM2N0O5c4nCkEZbLZtaB1kOZACBDrbGgrFZmVBdyKcUOZAMuz7LEGEYcBGdzmxQ5AEHgsHrUBtwNLcUFuBpqe7mxWEhlaINBeICUStLGeFHQ1EhQErFneFF4EVFGzKRN1R0BpF97ZoYNsiQ7OBXxA0gSYkK0YGQTyMUHBpXYDZnATmbAbAtALhMTaFy3SnACfRzUAQAV0wfVod3cX/8lwdCQ9UjN6mhaneIBUTrtVsVqRnQOI/H6kaKDJf6bPERH0HWTzGEgTB1aZBEQFkmf4nUAmgT2Y3Xd9mOgdBD2Dw9nEisDCXDhRHThQGMQ40x+yuFbHWCifMXgJBBWCieFYVrJUE6BDINhA1y/e8VAKUKP4B5JhzZpMqrNwjkDQNAJ80yKkHxrZK3Vs7YvpEiVNT+x8PVAf8nDEQQ0oo6+5/YQSZlPmg4oCUHOx/uMKDlgAwwM5UgE0huUT1CjQCUwmEDA2UzBNCEoQMPgcZb4rFBBHkkWF4MDoDqAFBVjDCxV1ECrZpYWsgwT38eaQb+LMc+k4okHtZxAI5FNcO/ydIA+fwME4F0UMQjzIy6ywxOwLrhzaeWJQxLKwh9GuVfQaSgCYcMSdlkEikstgfBjxmIKL4Ij8I1JAwIjCDMCjIBmQoEQ/QUU4VCJpA4HBHhlBDjYDKQg0byJCb3VGH7ztihxICBypm6nL408AVB8IER3ZuIERwJCgSQjRA9qcgYXAkEUiAEDK+0XoDkYAH1EiMUloSUAxAiBXUOJVBHtI1tEhILfookGmZElmk6N9BpMDLfrzulMg0TRJ2hSIq9i93pgSANAUiTS5Vk5rT7Mc1+6GLiPxSK53QyATB8k2Z8K4o46zKn764CXQmM1FUQdUXLUCJI4IlALxQI90Ul/+jsIBBjfp6Z1bcgBGBCOCgBkVoPw4qgIQ2dKEKZcgoWngMDzKBIENCJkPo9E1zeDBuA/lEryTyzUd4MKMC2Z5GvRlEEHgwIwNRHjLTgsUc3imDXiDIDx6HzDBE5A85JFYGTUEQT7yNhg0RQw5D4c72MXUgoewVA0bXkBdk0BtNBd2vBmK1fYkhIlSgF+jSkkFLvWF2IYqIOvTWCnEKVCAjKAhW9pXTiNjurf24UVbf5rSBICB1V/DQ1dLh1u4lgiC3SJ0gBPu2xu21V1MgiCBSVw3G9qp3DdwDQUxIyIhY42oj0lukBIKtzjYEHqAtbGoTqbeJQOJtocUrJGErkR1MjVS1tGWtbCMSANnd9rEr1W33JNLI3AKPC7YMLkPMsNrZWcATBEmG4nZBkQ00d1/TOJkI8ZoTIVBkacF9mzEK0oEMTsJsNS2XCAoSEAA7",_C={class:"fullscreen-loading-container","data-testid":"full-screen-loader"},TC=["src"],DC={key:0,class:"progress"},MC=ge({__name:"FullScreenKongSkeleton",props:{progress:{type:Number,default:null},hideProgress:{type:Boolean,default:!1}},setup(e){const t=e,n=j(0),r=j(0),a=B(()=>t.progress!==null?t.progress:r.value);return ft(()=>{t.progress||(n.value=setInterval(()=>{r.value>=100&&(clearInterval(n.value),r.value=100),r.value=Math.min(r.value+Math.ceil(Math.random()*10*30),100)},200))}),gr(()=>{clearInterval(n.value)}),(o,i)=>(C(),S("div",_C,[O("div",null,[O("img",{alt:"Loading",src:pe(SC)},null,8,TC),e.hideProgress?$("",!0):(C(),S("div",DC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),AC=Ee(MC,[["__scopeId","data-v-5c71d015"]]),OC=e=>(Ln("data-v-5a15970d"),e=e(),Rn(),e),PC={class:"fullscreen-loading-container","data-testid":"full-screen-spinner-loader"},BC=OC(()=>O("div",{class:"spinner-loader"},null,-1)),IC={key:0,class:"progress"},NC=ge({__name:"FullScreenGenericSpinner",props:{progress:{type:Number,default:null},hideProgress:{type:Boolean,default:!1}},setup(e){const t=e,n=j(0),r=j(0),a=B(()=>t.progress!==null?t.progress:r.value);return ft(()=>{t.progress||(n.value=setInterval(()=>{r.value>=100&&(clearInterval(n.value),r.value=100),r.value=Math.min(r.value+Math.ceil(Math.random()*10*30),100)},200))}),gr(()=>{clearInterval(n.value)}),(o,i)=>(C(),S("div",PC,[O("div",null,[BC,e.hideProgress?$("",!0):(C(),S("div",IC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),LC=Ee(NC,[["__scopeId","data-v-5a15970d"]]),Th=ge({__name:"KSkeleton",props:{delayMilliseconds:{type:Number,required:!1,default:0},type:{type:String,default:"",validator:e=>vk.includes(e)},progress:{type:Number,required:!1,default:null},hideProgress:{type:Boolean,default:!1},cardCount:{type:Number,default:1},tableColumns:{type:Number,required:!1,default:6},tableRows:{type:Number,required:!1,default:6}},setup(e){const t=e,n=j(!1);return ft(()=>{setTimeout(()=>{n.value=!0},t.delayMilliseconds)}),(r,a)=>n.value?(C(),S("div",{key:0,class:q(["k-skeleton-container",{"is-spinner":e.type!=="spinner"}])},[e.type==="card"?(C(),se(pC,{key:0,"card-count":e.cardCount},{"card-header":z(()=>[F(r.$slots,"card-header")]),"card-content":z(()=>[F(r.$slots,"card-content")]),"card-footer":z(()=>[F(r.$slots,"card-footer")]),_:3},8,["card-count"])):e.type==="table"?(C(),se(gC,{key:1,columns:e.tableColumns,rows:e.tableRows},{default:z(()=>[F(r.$slots,"default")]),_:3},8,["columns","rows"])):e.type==="form"?(C(),se(xC,{key:2})):e.type==="fullscreen-kong"?(C(),se(AC,{key:3,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="fullscreen-generic"?(C(),se(LC,{key:4,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="spinner"?(C(),se(Be,{key:5,color:"#000",icon:"spinner",size:"18"})):(C(),se(oC,{key:6}))],2)):$("",!0)}}),RC={class:"empty-state-title"},$C={key:1,class:"k-empty-state-title-header"},HC={class:"empty-state-content"},zC={key:0,class:"k-empty-state-message"},FC={class:"k-empty-state-cta"},jC=ge({__name:"KEmptyState",props:{isError:{type:Boolean,default:!1},iconSize:{type:String,default:xw},icon:{type:String,default:""},ctaIsHidden:{type:Boolean,default:!1},ctaText:{type:String,default:""},handleClick:{type:Function,default:null},iconColor:{type:String,default:""},iconSecondaryColor:{type:String,default:""}},setup(e){return(t,n)=>(C(),S("section",{class:q(["empty-state-wrapper",{"is-error":e.isError}])},[O("div",RC,[e.isError||e.icon?(C(),S("div",{key:0,class:q(["k-empty-state-icon card-icon",{"warning-icon":e.isError}])},[G(Be,{color:e.isError?e.iconColor||`var(--black-70, var(--kui-color-text-neutral-strongest, ${pe(ww)}))`:e.iconColor,icon:e.icon?e.icon:"warning","secondary-color":e.isError?e.iconSecondaryColor||"currentColor":e.iconSecondaryColor,size:e.iconSize},null,8,["color","icon","secondary-color","size"])],2)):$("",!0),t.$slots.title?(C(),S("div",$C,[F(t.$slots,"title",{},void 0,!0)])):$("",!0)]),O("div",HC,[t.$slots.message?(C(),S("div",zC,[F(t.$slots,"message",{},void 0,!0)])):$("",!0),O("div",FC,[F(t.$slots,"cta",{},()=>[!e.ctaIsHidden&&e.ctaText?(C(),se(We,{key:0,appearance:"primary",size:"small",onClick:n[0]||(n[0]=Mt(()=>e.handleClick&&e.handleClick(),["prevent"]))},{default:z(()=>[J(V(e.ctaText),1)]),_:1})):$("",!0)],!0)])])],2))}}),ss=Ee(jC,[["__scopeId","data-v-147e1e00"]]),UC={class:"k-input-label"},ZC={key:0,class:"is-required"},YC=ge({__name:"KLabel",props:{help:{type:String,default:""},info:{type:String,default:""},required:{type:Boolean,default:!1},tooltipAttributes:{type:Object,default:()=>({})},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=It(),r=B(()=>!!(t.info||t.help||n.tooltip));return(a,o)=>(C(),S("label",UC,[F(a.$slots,"default",{},void 0,!0),e.required?(C(),S("span",ZC,"*")):$("",!0),r.value?(C(),se(ei,Ke({key:1},e.tooltipAttributes,{class:"label-tooltip","position-fixed":"","test-mode":!!e.testMode||void 0}),{content:z(()=>[F(a.$slots,"tooltip",{},()=>[J(V(e.help||e.info),1)],!0)]),default:z(()=>[G(Be,{color:`var(--black-25, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:e.help?"help":"infoFilled",size:pe(xt)},null,8,["color","icon","size"])]),_:3},16,["test-mode"])):$("",!0)]))}}),Ur=Ee(YC,[["__scopeId","data-v-5367d32d"]]),VC={class:"text-on-input"},KC=["for"],GC={key:0,class:"is-required"},WC=["id","aria-invalid","value"],qC=["id","aria-invalid","value"],QC=["aria-invalid","value"],XC={key:4,class:"help"},JC=["tabindex","onKeyup"],eE={inheritAttrs:!1},tE=ge({...eE,__name:"KInput",props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},help:{type:String,default:""},size:{type:String,default:"medium",validator:e=>uk.includes(e)},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:""},characterLimit:{type:Number,default:null,validator:e=>e>0},iconPosition:{type:String,default:"start",validator:e=>ck.includes(e)},testMode:{type:Boolean,default:!1}},emits:["input","update:modelValue","char-limit-exceeded"],setup(e,{emit:t}){const n=e,r=j(""),a=j(!1),o=j(!1),i=j(!1),s=j(null),{stripRequiredLabel:l}=kn(),u=It(),c=Xn(),d=B(()=>(c==null?void 0:c.disabled)!==void 0&&String(c==null?void 0:c.disabled)!=="false"),h=B(()=>(c==null?void 0:c.readonly)!==void 0&&String(c==null?void 0:c.readonly)!=="false"),f=B(()=>(c==null?void 0:c.required)!==void 0&&String(c==null?void 0:c.required)!=="false"),g=B(()=>c.id?String(c.id):n.testMode?"test-input-id-1234":an()),y=B(()=>l(n.label,f.value)),v=B(()=>{var k,A;return!!((k=n.labelAttributes)!=null&&k.help||(A=n.labelAttributes)!=null&&A.info||u["label-tooltip"])}),p=B({get(){return n.modelValue},set(k){I({target:{value:k}})}}),b=B(()=>{const k={...c};return delete k.class,delete k.input,delete k.onInput,k}),m=B(()=>{var k,A;const M=((k=r.value)==null?void 0:k.toString().length)||0,N=((A=n.modelValue)==null?void 0:A.toString().length)||0;let ee=M;return!a.value&&N&&(ee=N),!!n.characterLimit&&ee>n.characterLimit}),w=B(()=>m.value?a.value?`${r.value.toString().length} / ${n.characterLimit}`:`${n.modelValue.toString().length} / ${n.characterLimit}`:""),D=B(()=>!!c["onIcon:click"]);Le(m,(k,A)=>{k!==A&&t("char-limit-exceeded",{value:r.value,length:r.value.length,characterLimit:n.characterLimit,limitExceeded:k})}),Le(p,(k,A)=>{k!==A&&I({target:{value:k}})});const I=k=>{var A;const M=JSON.parse(JSON.stringify((A=k==null?void 0:k.target)==null?void 0:A.value));L(M)},L=k=>{r.value=k,a.value=!0,t("input",k),t("update:modelValue",k)},T=()=>r.value||a.value?r.value:n.modelValue,x=k=>{if(D.value){const A=c["onIcon:click"];typeof A=="function"&&A(k)}};return ft(()=>{s.value&&D.value&&(s.value.role="button")}),(k,A)=>(C(),S("div",{class:q(["k-input-wrapper",[k.$attrs.class,{"input-error":m.value||e.hasError||String(k.$attrs.class||"").includes("input-error")}]])},[e.label&&e.overlayLabel?(C(),S("div",{key:0,class:q(`k-input-label-wrapper-${e.size}`)},[O("div",VC,[O("label",Ke(e.labelAttributes,{class:{focused:o.value,hovered:i.value,disabled:d.value,readonly:h.value},for:g.value}),[O("span",null,V(y.value),1),f.value?(C(),S("span",GC,"*")):$("",!0)],16,KC),O("input",Ke(b.value,{id:g.value,"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onBlur:A[0]||(A[0]=()=>o.value=!1),onFocus:A[1]||(A[1]=()=>o.value=!0),onInput:I,onMouseenter:A[2]||(A[2]=()=>i.value=!0),onMouseleave:A[3]||(A[3]=()=>i.value=!1)}),null,16,WC)]),m.value||e.hasError?(C(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):e.label?(C(),S("div",{key:1,class:q(`k-input-label-wrapper-${e.size}`)},[G(Ur,Ke({for:g.value},e.labelAttributes,{required:f.value}),qa({default:z(()=>[J(V(y.value)+" ",1)]),_:2},[v.value?{name:"tooltip",fn:z(()=>[F(k.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("input",Ke(b.value,{id:g.value,"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onInput:I}),null,16,qC),m.value||e.hasError?(C(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):(C(),S("input",Ke({key:2},b.value,{"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onInput:I}),null,16,QC)),(m.value||e.hasError)&&!e.label?(C(),S("p",{key:3,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0),e.help?(C(),S("p",XC,V(e.help),1)):$("",!0),k.$slots.icon?(C(),S("div",{key:5,ref_key:"icon",ref:s,class:q(["input-icon",{clickable:D.value}]),tabindex:D.value?0:-1,onClick:x,onKeyup:jt(x,["enter"])},[F(k.$slots,"icon",{},void 0,!0)],42,JC)):$("",!0)],2))}}),xs=Ee(tE,[["__scopeId","data-v-b216eb8a"]]),nE=["data-testid"],rE={class:"k-select-item-container",role:"option"},aE=["disabled","value"],oE={class:"k-select-item-label"},iE={class:"k-select-selected-icon-container"},sE=ge({__name:"KSelectItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0&&e.value!==void 0}},emits:["selected"],setup(e,{emit:t}){const n=e,r=a=>{if(n.item.disabled){a.stopPropagation();return}t("selected",n.item)};return(a,o)=>(C(),S("div",{key:e.item.key,class:"k-select-item","data-testid":`k-select-item-${e.item.value}`,onClick:r},[O("div",rE,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value},[O("span",oE,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",iE,[e.item.selected?(C(),se(Be,{key:0,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,aE)])],8,nE))}}),zl=Ee(sE,[["__scopeId","data-v-58de5b07"]]),lE={class:"k-select-group-title"},uE=ge({__name:"KSelectItems",props:{items:{type:Array,required:!1,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)}},emits:["selected"],setup(e,{emit:t}){const n=e,r=s=>t("selected",s),a=B(()=>n.items.filter(s=>!s.group)),o=B(()=>[...new Set(n.items.filter(s=>s.group).map(s=>s.group))].sort((s,l)=>s.toLowerCase().localeCompare(l.toLowerCase()))),i=s=>n.items.filter(l=>l.group===s);return(s,l)=>(C(),S(Me,null,[(C(!0),S(Me,null,ot(a.value,u=>(C(),se(zl,{key:u.key,item:u,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(C(!0),S(Me,null,ot(o.value,u=>(C(),S("div",{key:`${u}-group`,class:"k-select-group"},[O("span",lE,V(u),1),(C(!0),S(Me,null,ot(i(u),c=>(C(),se(zl,{key:c.key,item:c,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:c},void 0,!0)]),_:2},1032,["item"]))),128))]))),128))],64))}}),cE=Ee(uE,[["__scopeId","data-v-39329325"]]),dE=e=>(Ln("data-v-c60e46e1"),e=e(),Rn(),e),hE=["id"],fE={class:"k-select-selected-item-label"},pE=["onKeyup"],mE=["id"],vE=["id"],gE={key:0,class:"custom-selected-item"},yE={key:1,class:"k-select-list"},bE={class:"select-item-description"},wE=dE(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),kE={inheritAttrs:!1},CE=ge({...kE,__name:"KSelect",props:{modelValue:{type:[String,Number],default:""},kpopAttributes:{type:Object,default:()=>({popoverClasses:""})},dropdownMaxHeight:{type:String,default:"300"},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},width:{type:String,default:""},placeholder:{type:String,default:""},appearance:{type:String,default:"dropdown",validator:e=>bk.includes(e)},buttonText:{type:String,default:""},items:{type:Array,required:!1,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)},positionFixed:{type:Boolean,default:!0},filterFunc:{type:Function,default:e=>e.items.filter(t=>{var n,r;return(r=t.label)==null?void 0:r.toLowerCase().includes((n=e.query)==null?void 0:n.toLowerCase())})},enableFiltering:{type:Boolean,default:null},autosuggest:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},dropdownFooterText:{type:String,default:""},dropdownFooterTextPosition:{type:String,default:"sticky"},reuseItemTemplate:{type:Boolean,default:!1},enableItemCreation:{type:Boolean,default:!1}},emits:["selected","input","change","update:modelValue","query-change","item:added","item:removed"],setup(e,{emit:t}){const n=e;bs(R=>({"4076af2a":A.value}));const{getSizeFromString:r,stripRequiredLabel:a}=kn(),o={popoverClasses:"k-select-popover",popoverTimeout:0,placement:"bottomStart",hideCaret:!0},i=Xn(),s=It(),l=B(()=>i.required!==void 0&&String(i.required)!=="false"),u=B(()=>a(n.label,l.value)),c=B(()=>{var R,K;return!!((R=n.labelAttributes)!=null&&R.help||(K=n.labelAttributes)!=null&&K.info||s["label-tooltip"])}),d=j(""),h=B(()=>{var R,K;return!(!d.value||(K=(R=p.value)==null?void 0:R.filter(H=>H.label===d.value))!=null&&K.length)}),f=j(null),g=B(()=>n.testMode?"test-select-id-1234":an()),y=B(()=>n.testMode?"test-select-input-id-1234":an()),v=B(()=>n.testMode?"test-select-text-id-1234":an()),p=j([]),b=j(!1),m=j(!1),w=j(null),D=B({get(){return n.modelValue},set(R){var K;const H=(K=p.value)==null?void 0:K.filter(te=>te.value===R);H!=null&&H.length?Re(H[0]):R||Ue()}}),I=B(()=>n.autosuggest?!0:n.enableFiltering!==null?n.appearance==="button"?!1:n.enableFiltering:n.appearance==="dropdown"),L=B(()=>{let R="";return n.width?R=n.width:(R="205",n.appearance==="button"&&(R="230")),r(R)}),T=B(()=>({width:L.value})),x=B(()=>{const R={...i};return delete R.class,R}),k=B(()=>({...o,...n.kpopAttributes,popoverClasses:`${o.popoverClasses} ${n.kpopAttributes.popoverClasses} k-select-pop-${n.appearance}`,width:String(je.value),maxWidth:String(je.value),disabled:i.disabled!==void 0&&String(i.disabled)!=="false"||i.readonly!==void 0&&String(i.readonly)!=="false"})),A=B(()=>r(n.dropdownMaxHeight)),M=B(()=>({...k.value})),N=B(()=>n.autosuggest?p.value:n.filterFunc({items:p.value,query:d.value})),ee=B(()=>n.placeholder?n.placeholder:i.placeholder?i.placeholder:n.appearance==="button"||!I.value?"Select an item":"Filter..."),ae=B(()=>n.buttonText&&f.value?n.buttonText:f.value?f.value.label:ee.value),oe=B(()=>n.appearance==="select"&&n.clearable&&!!f.value),Q=B(()=>!!(f.value&&n.appearance==="select"&&(s["selected-item-template"]||n.reuseItemTemplate&&s["item-template"]))),ye=R=>{if(!I.value)return R.preventDefault(),!1},_e=()=>{var R,K;if(!n.enableItemCreation||!d.value||!h.value)return;const H=(((R=p.value)==null?void 0:R.length)||0)+1,te={label:d.value+"",value:n.testMode?`test-multiselect-added-item-${H}`:an(),key:`${(K=d.value.replace(/ /gi,"-"))==null?void 0:K.replace(/[^a-z0-9-_]/gi,"")}-${H}`,custom:!0};t("item:added",te),Re(te,!0),d.value=""},Re=(R,K)=>{var H,te;K&&((H=p.value)==null||H.push(R)),(te=p.value)==null||te.forEach((E,_)=>{var P,Z,Y;E.key===R.key?(E.selected=!0,E.key=(P=E==null?void 0:E.key)!=null&&P.includes("-selected")?E.key:`${E.key}-selected`,f.value=E):E.selected?(E.selected=!1,E.key=(Z=E==null?void 0:E.key)==null?void 0:Z.replace(/-selected/gi,""),E.custom&&((Y=p.value)==null||Y.splice(_,1),t("item:removed",E))):E.selected=!1}),d.value=n.appearance==="dropdown"?"":R.label,t("selected",R),t("input",R.value),t("change",R),t("update:modelValue",R.value)},Ue=()=>{var R;(R=p.value)==null||R.forEach((K,H)=>{var te,E;K.selected=!1,K.key=(te=K==null?void 0:K.key)==null?void 0:te.replace(/-selected/gi,""),K.custom&&((E=p.value)==null||E.splice(H,1),t("item:removed",K))}),f.value=null,n.appearance==="select"&&(d.value=""),t("input",null),t("change",null),t("update:modelValue",null)},Fe=(R,K)=>{if(R.keyCode===27){K.value=!1;return}const H=document.getElementById(v.value);!K.value&&H&&H.click()},fe=R=>{d.value=R,t("query-change",R)},$e=()=>{m.value=!0,b.value||(b.value=!0,t("query-change",""))},Ae=()=>{m.value=!1};Le(D,(R,K)=>{var H;if(R!==K){const te=(H=p.value)==null?void 0:H.filter(E=>E.value===R);te!=null&&te.length?Re(te[0]):R||Ue()}}),Le(()=>n.items,(R,K)=>{var H,te,E,_;if(JSON.stringify(R)!==JSON.stringify(K)){p.value=JSON.parse(JSON.stringify(n.items));for(let P=0;P<((H=p.value)==null?void 0:H.length);P++)p.value[P].selected===void 0&&(p.value[P].selected=!1),p.value[P].key=`${(E=(te=p.value[P].label)==null?void 0:te.replace(/ /gi,"-"))==null?void 0:E.replace(/[^a-z0-9-_]/gi,"")}-${P}`||`k-select-item-label-${P}`,(p.value[P].value===n.modelValue||p.value[P].selected)&&(p.value[P].selected=!0,f.value=p.value[P],p.value[P].key+="-selected",n.appearance==="select"&&!m.value&&(d.value=f.value.label)),((_=f.value)==null?void 0:_.value)===p.value[P].value&&(p.value[P].selected=!0);w.value&&typeof w.value.updatePopper=="function"&&on(()=>{w.value.updatePopper()})}},{deep:!0,immediate:!0});const je=j(0),U=()=>{const R=document.getElementById(y.value);R&&(je.value=R.offsetWidth)};return(R,K)=>(C(),S("div",{class:q(["k-select",[R.$attrs.class]]),style:Et(T.value)},[e.label&&!e.overlayLabel?(C(),se(Ur,Ke({key:0},e.labelAttributes,{"data-testid":"k-select-label",for:g.value,required:l.value}),qa({default:z(()=>[J(V(u.value)+" ",1)]),_:2},[c.value?{name:"tooltip",fn:z(()=>[F(R.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):$("",!0),O("div",{id:g.value,"data-testid":"k-select-selected-item"},[f.value&&e.appearance==="dropdown"?(C(),S("div",{key:0,class:q(["k-select-item-selection",{"overlay-label-item-selection":e.overlayLabel}])},[F(R.$slots,"selected-item-template",{item:f.value},()=>[O("div",fE,V(f.value.label),1)],!0),O("button",{class:"clear-selection-icon",onClick:Ue,onKeyup:jt(Ue,["enter"])},[G(Be,{color:"currentColor",icon:"clear"})],40,pE)],2)):$("",!0),G(pe(Iu),null,{default:z(({toggle:H,isToggled:te})=>[G(Jo,Ke({ref_key:"popper",ref:w},M.value,{"on-popover-click":()=>(H(),te.value),"position-fixed":e.positionFixed,target:`[id='${y.value}']`,"test-mode":!!e.testMode||void 0,onClosed:()=>{f.value&&e.appearance==="select"&&(d.value=f.value.label),te.value&&H()},onOpened:()=>{d.value="",H(),U()}}),{content:z(()=>[e.autosuggest&&e.loading?F(R.$slots,"loading",{key:0},()=>[G(Be,{class:"k-select-loading","data-testid":"k-select-loading",icon:"spinner"})],!0):(C(),S("div",yE,[G(cE,{items:N.value,onSelected:Re},{content:z(({item:E})=>[F(R.$slots,"item-template",{class:"select-item-label select-item-desc",item:E},void 0,!0)]),_:3},8,["items"]),!N.value.length&&!R.$slots.empty&&!e.enableItemCreation?(C(),se(zl,{key:"k-select-empty-state",class:"k-select-empty-item",item:{label:"No results",value:"no_results"}})):$("",!0),!N.value.length&&h.value&&!R.$slots.empty&&e.enableItemCreation?(C(),se(zl,{key:"k-select-new-item",class:"k-select-new-item","data-testid":"k-select-add-item",item:{label:`${d.value} (Add new value)`,value:"add_item"},onSelected:_e},{content:z(()=>[O("div",bE,[J(V(d.value)+" ",1),wE])]),_:1},8,["item"])):$("",!0)])),!e.loading&&!N.value.length?F(R.$slots,"empty",{key:2},void 0,!0):$("",!0),R.$slots["dropdown-footer-text"]||e.dropdownFooterText?(C(),S("div",{key:3,class:q(["k-select-dropdown-footer-text",`k-select-dropdown-footer-${e.dropdownFooterTextPosition}`])},[F(R.$slots,"dropdown-footer-text",{},()=>[J(V(e.dropdownFooterText),1)],!0)],2)):$("",!0)]),default:z(()=>[e.appearance==="button"?(C(),S("div",{key:0,id:y.value,class:"k-select-button","data-testid":"k-select-input",role:"listbox",style:{position:"relative"}},[G(We,Ke({id:v.value},x.value,{appearance:"btn-link","is-rounded":!1,"show-caret":"",style:T.value,onKeyup:E=>Fe(E,te)}),{default:z(()=>[F(R.$slots,"selected-item-template",{item:f.value},()=>[J(V(ae.value),1)],!0)]),_:2},1040,["id","style","onKeyup"])],8,mE)):(C(),S("div",{key:1,id:y.value,class:q(["select-input-container",{"k-select-input":e.appearance==="select","no-filter":!I.value,"is-readonly":R.$attrs.readonly!==void 0&&String(R.$attrs.readonly)!=="false",disabled:R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false","is-open":te.value}]),"data-testid":"k-select-input",role:"listbox",style:{position:"relative"},onClick:K[0]||(K[0]=E=>{R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false"&&E.stopPropagation()})},[oe.value?(C(),se(We,{key:0,class:"clear-selection-icon",onClick:Ue,onKeyup:jt(Ue,["enter"])},{default:z(()=>[G(Be,{color:`var(--grey-500, ${pe(Ho)})`,icon:"clear",size:pe(xt)},null,8,["color","size"])]),_:1},8,["onKeyup"])):$("",!0),e.appearance==="select"?(C(),se(Be,{key:1,class:q({"overlay-label-chevron":e.overlayLabel}),color:`var(--grey-500, ${pe(Ho)})`,icon:"chevronDown",size:pe(xt)},null,8,["class","color","size"])):$("",!0),G(xs,Ke({id:v.value},x.value,{autocapitalize:"off",autocomplete:"off",class:["k-select-input",{"no-filter":!I.value,"input-placeholder-dark has-chevron":e.appearance==="select","input-placeholder-transparent":Q.value&&(!I.value||!te.value),"has-clear":oe.value,"is-readonly":R.$attrs.readonly!==void 0&&String(R.$attrs.readonly)!=="false",disabled:R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false"}],label:e.label&&e.overlayLabel?u.value:void 0,"model-value":d.value,"overlay-label":e.overlayLabel,placeholder:f.value&&e.appearance==="select"&&!I.value?f.value.label:ee.value,onBlur:Ae,onFocus:$e,onKeypress:ye,onKeyup:E=>Fe(E,te),"onUpdate:modelValue":fe}),null,16,["id","class","label","model-value","overlay-label","placeholder","onKeyup"]),G(ja,{name:"fade"},{default:z(()=>[Q.value&&(!I.value||!te.value)?(C(),S("div",gE,[F(R.$slots,"selected-item-template",{item:f.value},()=>[F(R.$slots,"item-template",{item:f.value},void 0,!0)],!0)])):$("",!0)]),_:2},1024)],10,vE))]),_:2},1040,["on-popover-click","position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,hE)],6))}}),Wg=Ee(CE,[["__scopeId","data-v-c60e46e1"]]),EE={class:"pagination-offset-button-container"},xE=ge({__name:"PaginationOffset",props:{prevButtonDisabled:{type:Boolean,default:!1},nextButtonDisabled:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["getPrevOffset","getNextOffset"],setup(e,{emit:t}){const n=e,r=()=>{n.nextButtonDisabled||t("getNextOffset")},a=()=>{n.prevButtonDisabled||t("getPrevOffset")};return(o,i)=>{const s=Gn("KButton");return C(),S("div",EE,[G(s,{"aria-label":"Go to the previous page",class:q(["pagination-button",{disabled:e.prevButtonDisabled}]),"data-testid":"prev-btn",onClick:Mt(a,["prevent"])},{icon:z(()=>[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.prevButtonDisabled}]),color:"currentColor",icon:"arrowLeft",size:pe(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"]),G(s,{"aria-label":"Go to the next page",class:q(["pagination-button",{disabled:e.nextButtonDisabled}]),"data-testid":"next-btn",onClick:Mt(r,["prevent"])},{icon:z(()=>[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.nextButtonDisabled}]),color:"currentColor",icon:"arrowRight",size:pe(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"])])}}}),SE=Ee(xE,[["__scopeId","data-v-b4a207f3"]]),_E={"aria-label":"Pagination Navigation","data-testid":"k-pagination-container"},TE={class:"card-pagination-bar"},DE={class:"pagination-text","data-testid":"visible-items"},ME={class:"pagination-text-pages"},AE={class:"pagination-button-container"},OE=["onClick"],PE={key:0,class:"pagination-button","data-testid":"page-1-btn"},BE={key:1,class:"pagination-button placeholder"},IE=["data-testid"],NE=["aria-current","aria-label","onClick"],LE={key:2,class:"pagination-button placeholder"},RE={key:3,class:"pagination-button"},$E=["onClick"],HE={class:"page-size-select","data-testid":"page-size-dropdown"},zE=ge({__name:"KPagination",props:{items:{type:Array,default:()=>[]},totalCount:{type:Number,default:0},pageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},initialPageSize:{type:Number,default:null},neighbors:{type:Number,default:1},searchTriggered:{type:Boolean,default:!1},currentPage:{type:Number,default:null},disablePageJump:{type:Boolean,default:!1},paginationType:{type:String,default:"default",validator:e=>["default","offset"].includes(e)},offsetPrevButtonDisabled:{type:Boolean,default:!1},offsetNextButtonDisabled:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["pageChanged","pageSizeChanged","getNextOffset","getPrevOffset"],setup(e,{emit:t}){const n=e,r={placement:"top"},a=j(n.currentPage?n.currentPage:1),o=j(n.initialPageSize?n.initialPageSize:n.pageSizes[0]),i=B(()=>Math.ceil(n.totalCount/o.value)),s=n.pageSizes.map((A,M)=>({label:`${A}`,key:`size-${M}`,value:A})),l=j(""),u=(A,M,N,ee)=>{if(n.disablePageJump)return[];let ae=[...Array(M).keys()].map(Q=>Q+1);const oe=5+2*n.neighbors;return ae.length<=oe||(N?N&&ee?ae=ae.filter(Q=>Q>A-n.neighbors-1&&QQ>M-n.neighbors*2-3)):ae=ae.filter(Q=>Q<=n.neighbors*2+3)),ae},c=j(a.value===1),d=j(a.value===i.value),h=B(()=>(a.value-1)*o.value+1),f=B(()=>{const A=h.value-1+o.value;return A>n.totalCount?n.totalCount:A}),g=B(()=>`${h.value} to ${f.value}`),y=B(()=>` of ${n.totalCount}`),v=B(()=>n.currentPage?n.currentPage:a.value),p=j(!1),b=j(i.value>5+2*n.neighbors),m=j(u(v.value,i.value,!1,i.value>5+2*n.neighbors)),w=()=>{d.value||(a.value++,L())},D=()=>{c.value||(a.value--,L())},I=A=>{a.value=A,L()},L=()=>{const A=(a.value-1)*o.value+o.value;d.value=A>=n.totalCount,c.value=a.value===1;const M=5+2*n.neighbors;i.value<=M?(p.value=!1,b.value=!1):(p.value=a.value>=n.neighbors+4,b.value=a.value<=i.value-n.neighbors-3),m.value=u(a.value,i.value,p.value,b.value),t("pageChanged",{page:a.value,pageCount:i.value,firstItem:h.value,lastItem:f.value,visibleItems:n.items.slice(h.value-1,f.value)})},T=A=>{o.value=A.value,l.value=o.value+" items per page",t("pageSizeChanged",{pageSize:o.value,pageCount:i.value}),n.currentPage!==1&&I(1)},x=()=>{t("getNextOffset")},k=()=>{t("getPrevOffset")};return Le(()=>n.currentPage,(A,M)=>{A!==M&&I(A)}),Le(i,(A,M)=>{A!==M&&(m.value=u(v.value,A,!1,A>5+2*n.neighbors),d.value=a.value===A,b.value=A>5+2*n.neighbors)}),(A,M)=>(C(),S("nav",_E,[O("div",TE,[e.paginationType==="default"?(C(),S(Me,{key:0},[O("span",DE,[O("span",ME,V(g.value),1),J(" "+V(y.value),1)]),O("ul",AE,[O("li",{class:q(["pagination-button square",{disabled:c.value}]),"data-testid":"prev-btn"},[O("a",{"aria-label":"Go to the previous page",href:"#",onClick:Mt(D,["prevent"])},[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":c.value}]),color:"currentColor",icon:"arrowLeft",size:pe(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,OE)],2),!e.disablePageJump&&p.value?(C(),S("li",PE,[O("a",{"aria-label":"Go to the first page",href:"#",onClick:M[0]||(M[0]=Mt(N=>I(1),["prevent"]))},"1")])):$("",!0),!e.disablePageJump&&p.value?(C(),S("li",BE," ... ")):$("",!0),(C(!0),S(Me,null,ot(m.value,N=>(C(),S("li",{key:N,class:q(["pagination-button",{active:N==v.value}]),"data-testid":`page-${N}-btn`},[O("a",{"aria-current":N==v.value&&"page"||void 0,"aria-label":`Go to page ${N}`,href:"#",onClick:Mt(ee=>I(N),["prevent"])},V(N),9,NE)],10,IE))),128)),!e.disablePageJump&&b.value?(C(),S("li",LE," ... ")):$("",!0),!e.disablePageJump&&b.value?(C(),S("li",RE,[O("a",{"aria-label":"Go to the last page","data-testid":"last-btn",href:"#",onClick:M[1]||(M[1]=Mt(N=>I(i.value),["prevent"]))},V(i.value),1)])):$("",!0),O("li",{class:q(["pagination-button square",{disabled:d.value}]),"data-testid":"next-btn"},[O("a",{"aria-label":"Go to the next page",href:"#",onClick:Mt(w,["prevent"])},[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":d.value}]),color:"currentColor",icon:"arrowRight",size:pe(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,$E)],2)])],64)):(C(),se(SE,{key:1,"next-button-disabled":e.offsetNextButtonDisabled,"prev-button-disabled":e.offsetPrevButtonDisabled,onGetNextOffset:x,onGetPrevOffset:k},null,8,["next-button-disabled","prev-button-disabled"])),O("span",HE,[G(Wg,{appearance:"button","button-text":l.value,items:pe(s),"kpop-attributes":r,placeholder:`${o.value} items per page`,"position-fixed":"","test-mode":!!e.testMode||void 0,width:"205",onSelected:T},null,8,["button-text","items","placeholder","test-mode"])])])]))}}),Dh=Ee(zE,[["__scopeId","data-v-cb4f4c10"]]),FE=ge({__name:"KCatalogItem",props:{item:{type:Object,default:()=>({})},truncate:{type:Boolean,default:!0},testMode:{type:Boolean,default:!1}},emits:["clicked"],setup(e,{emit:t}){const n=(r,a)=>{t("clicked",{evt:r,item:a})};return(r,a)=>(C(),se(_h,{class:"k-card-catalog-item","data-testid":e.item&&e.item.title?`${e.item.title.replace(/[^0-9a-z]/gi,"-")}-catalog-item`:"catalog-item","has-hover":"",role:"button",tabindex:"0","test-mode":!!e.testMode||void 0,onClick:a[0]||(a[0]=o=>n(o,e.item))},{title:z(()=>[F(r.$slots,"cardTitle",{},()=>[J(V(e.item?e.item.title:""),1)],!0)]),actions:z(()=>[F(r.$slots,"cardActions",{},void 0,!0)]),body:z(()=>[O("div",{class:q({"multi-line-truncate":e.truncate})},[F(r.$slots,"cardBody",{},()=>[J(V(e.item?e.item.description:""),1)],!0)],2)]),_:3},8,["data-testid","test-mode"]))}}),qg=Ee(FE,[["__scopeId","data-v-6e0fea39"]]),jE={class:"k-card-catalog"},UE={key:0,class:"k-card-catalog-title","data-testid":"k-catalog-title"},ZE={key:1,class:"k-catalog-toolbar","data-testid":"k-catalog-toolbar"},YE={class:"k-catalog-skeleton-footer-container"},VE={key:3,class:"k-catalog-error-state","data-testid":"k-card-catalog-error-state"},KE={key:4,class:"k-catalog-empty-state","data-testid":"k-card-catalog-empty-state"},GE=["data-tableid"],WE={key:0,class:"card-pagination","data-testid":"k-catalog-pagination"},qE=ge({__name:"KCatalog",props:{isLoading:{type:Boolean,default:!1},cardSize:{type:String,default:"medium",validator:e=>rk.includes(e)},title:{type:String,default:""},noTruncation:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateActionButtonIcon:{type:String,default:""},emptyStateIcon:{type:String,default:""},emptyStateIconColor:{type:String,default:""},emptyStateIconSize:{type:String,default:"50"},hasError:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},errorStateIcon:{type:String,default:""},errorStateIconColor:{type:String,default:""},errorStateIconSize:{type:String,default:"50"},fetcher:{type:Function,required:!0},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:String,default:""},searchInput:{type:String,default:""},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:[String,Boolean],default:!1}},emits:["kcatalog-error-cta-clicked","kcatalog-empty-state-cta-clicked","update:catalog-preferences","state"],setup(e,{emit:t}){const n=e,{useRequest:r,useDebounce:a,useSwrvState:o}=kn(),i=It(),s=B(()=>n.testMode?"test-catalog-id-1234":an()),l={page:1,pageSize:15,query:""},u=j([]),c=j(0),d=j(""),h=j(1),f=j(15),g=j(!1),y=B(()=>!!i.toolbar),v=B(()=>({pageSize:f.value})),p=j(!0),b=async()=>{var fe;const $e=n.searchInput,Ae=await n.fetcher({query:$e||d.value,pageSize:f.value,page:h.value});return u.value=Ae.data,c.value=n.paginationTotalItems||Ae.total||((fe=Ae.data)==null?void 0:fe.length),p.value=!1,Ae},m=()=>{const fe={...l,...n.initialFetcherParams};h.value=fe.page??l.page,f.value=fe.pageSize??l.pageSize,d.value=fe.query??l.query,g.value=!0},w=B(()=>{if(!n.fetcher||!g.value)return"";let fe=s.value;return n.cacheIdentifier&&(fe=n.cacheIdentifier),n.fetcherCacheKey&&(fe+=`-${n.fetcherCacheKey}`),`k-catalog_${fe}`}),D=j(""),{debouncedFn:I,generateDebouncedFn:L}=a(fe=>{D.value=fe},350),T=L(0),{data:x,error:k,revalidate:A,isValidating:M}=r(()=>w.value,()=>b(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:N,hasData:ee,swrvState:ae}=o(x,k,M),oe=j(!0),Q=B(()=>({hasData:ee.value,state:N.value})),ye=B(()=>oe.value?"loading":k.value?"error":"success"),_e=({page:fe})=>{h.value=fe},Re=({pageSize:fe})=>{f.value=fe,h.value=1},Ue=fe=>fe.toLowerCase().replace(/[^[a-z0-9]/gi,"-");Le(x,fe=>{fe!=null&&fe.length&&!u.value.length&&(u.value=fe)},{deep:!0,immediate:!0}),Le(N,()=>{switch(N.value){case ae.PENDING:oe.value=!0;break;case ae.VALIDATING_HAS_DATA:oe.value=Fe.value;break;default:oe.value=!1;break}},{immediate:!0}),Le([Q,ye],fe=>{var $e;t("state",{state:fe==null?void 0:fe[1],hasData:($e=fe==null?void 0:fe[0])==null?void 0:$e.hasData})}),Le(()=>n.searchInput,fe=>{h.value!==1&&(h.value=1),fe===""?T(fe):I(fe)},{immediate:!0});const Fe=j(!1);return Le([D,h,f],async(fe,$e)=>{const Ae=$e==null?void 0:$e[0],je=fe[0],U=fe[1];je!==Ae&&U!==1&&(h.value=1),g.value&&!p.value&&(Fe.value=!0,await A(),Fe.value=!1)},{deep:!0,immediate:!0}),Le(v,fe=>{t("update:catalog-preferences",fe)}),ft(()=>{m()}),(fe,$e)=>(C(),S("div",jE,[e.title?(C(),S("div",UE,[O("h3",null,V(e.title),1)])):$("",!0),y.value?(C(),S("div",ZE,[F(fe.$slots,"toolbar",{state:Q.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(oe.value||e.isLoading||Fe.value)&&!e.hasError?(C(),se(Th,{key:2,"card-count":4,class:"k-skeleton-grid","data-testid":"k-catalog-skeleton",type:"card"},{"card-header":z(()=>[G(Dt,{class:"k-catalog-skeleton-header",width:"6"})]),"card-content":z(()=>[G(Dt,{width:"75"})]),"card-footer":z(()=>[O("div",YE,[G(Dt,{width:"2"}),G(Dt,{width:"5"})])]),_:1})):e.hasError?(C(),S("div",VE,[F(fe.$slots,"error-state",{},()=>[G(ss,{"cta-is-hidden":!e.errorStateActionMessage||!e.errorStateActionRoute,icon:e.errorStateIcon||"","icon-color":e.errorStateIconColor,"icon-size":e.errorStateIconSize,"is-error":""},{title:z(()=>[J(V(e.errorStateTitle),1)]),message:z(()=>[J(V(e.errorStateMessage),1)]),cta:z(()=>[e.errorStateActionMessage?(C(),se(We,{key:0,appearance:"primary","data-testid":Ue(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:$e[0]||($e[0]=Ae=>fe.$emit("kcatalog-error-cta-clicked"))},{default:z(()=>[J(V(e.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):!e.hasError&&!oe.value&&!e.isLoading&&!Fe.value&&u.value&&!u.value.length?(C(),S("div",KE,[F(fe.$slots,"empty-state",{},()=>[G(ss,{"cta-is-hidden":!e.emptyStateActionMessage||!e.emptyStateActionRoute,icon:e.emptyStateIcon||"","icon-color":e.emptyStateIconColor,"icon-size":e.emptyStateIconSize},{title:z(()=>[J(V(e.emptyStateTitle),1)]),message:z(()=>[J(V(e.emptyStateMessage),1)]),cta:z(()=>[e.emptyStateActionMessage?(C(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Ue(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:$e[1]||($e[1]=Ae=>fe.$emit("kcatalog-empty-state-cta-clicked"))},{default:z(()=>[J(V(e.emptyStateActionMessage),1)]),_:1},8,["appearance","data-testid","icon","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):(C(),S("div",{key:5,class:q(["k-catalog-page",`k-card-${e.cardSize}`]),"data-tableid":s.value},[F(fe.$slots,"body",{data:u.value},()=>[(C(!0),S(Me,null,ot(u.value,(Ae,je)=>(C(),se(qg,{key:Ae.key?Ae.key:`k-catalog-item-${je}`,class:"catalog-item","data-testid":Ae.id?Ae.id:`k-catalog-item-${je}`,item:Ae,"test-mode":!!e.testMode||void 0,truncate:!e.noTruncation},{cardTitle:z(()=>[F(fe.$slots,"cardTitle",{item:Ae},()=>[J(V(Ae.title),1)],!0)]),cardActions:z(()=>[F(fe.$slots,"cardActions",{item:Ae},void 0,!0)]),cardBody:z(()=>[F(fe.$slots,"cardBody",{item:Ae},()=>[J(V(Ae.description),1)],!0)]),_:2},1032,["data-testid","item","test-mode","truncate"]))),128))],!0),!e.disablePagination&&e.fetcher&&!(e.hidePaginationWhenOptional&&c.value<=e.paginationPageSizes[0])?(C(),S("div",WE,[G(Dh,{class:"k-catalog-pagination","current-page":h.value,"disable-page-jump":e.disablePaginationPageJump,"initial-page-size":f.value,neighbors:e.paginationNeighbors,"page-sizes":e.paginationPageSizes,"test-mode":!!e.testMode||void 0,"total-count":c.value,onPageChanged:_e,onPageSizeChanged:Re},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","page-sizes","test-mode","total-count"])])):$("",!0)],10,GE))]))}}),QE=Ee(qE,[["__scopeId","data-v-b1313874"]]),XE=["id","checked"],JE={key:1,class:"k-checkbox-description"},ex={inheritAttrs:!1},tx=ge({...ex,__name:"KCheckbox",props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},description:{type:String,default:""},testMode:{type:Boolean,default:!1}},emits:["change","input","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=Xn(),o=B(()=>a.id?String(a.id):n.testMode?"test-radio-input-id-1234":an()),i=B(()=>!!(n.label||r.default)),s=B(()=>(a==null?void 0:a.disabled)!==void 0&&String(a==null?void 0:a.disabled)!=="false"),l=B(()=>i.value&&(!!n.description||!!r.description)),u=B(()=>!!r.tooltip),c=B(()=>{const h={...a};return delete h.class,h}),d=h=>{t("change",h.target.checked),t("input",h.target.checked),t("update:modelValue",h.target.checked)};return(h,f)=>(C(),S("div",{class:q(["k-checkbox",[h.$attrs.class,{disabled:s.value}]])},[O("input",Ke({id:o.value,checked:e.modelValue},c.value,{class:"k-input",type:"checkbox",onChange:d}),null,16,XE),i.value?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:["k-checkbox-label",{"has-desc":l.value}],for:o.value}),qa({default:z(()=>[F(h.$slots,"default",{},()=>[J(V(e.label),1)],!0)]),_:2},[u.value?{name:"tooltip",fn:z(()=>[F(h.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["class","for"])):$("",!0),l.value?(C(),S("div",JE,[F(h.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2))}}),nx=Ee(tx,[["__scopeId","data-v-60490fce"]]);function rx(e,t){let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},t)}}const ax=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class ox{constructor(t,n){Na(this,"commands"),Na(this,"keyMap"),Na(this,"boundTriggerShortcuts"),this.commands=n,this.keyMap=Object.fromEntries(Object.entries(t).map(([r,a])=>[r.toLowerCase(),a])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(t){ix(t,this.keyMap,this.commands)}}function ix(e,t,n){const r=sx(e.code),a=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",r].filter(s=>s!=="").join("+"),o=t[a];if(!o)return;const i=n[o];i.isAllowedContext&&!i.isAllowedContext(e)||(i.shouldPreventDefaultAction&&e.preventDefault(),!(i.isDisabled&&i.isDisabled())&&i.trigger(e))}function sx(e){return ax.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}const eo=e=>(Ln("data-v-dad3afd6"),e=e(),Rn(),e),lx=["id"],ux={key:0,class:"k-code-block-actions"},cx={class:"k-search-container"},dx=["for"],hx=eo(()=>O("span",{class:"visually-hidden"},"Search",-1)),fx=[hx],px=["id"],mx={key:0,class:"k-code-block-search-error"},vx=eo(()=>O("span",{class:"visually-hidden"},"Clear query",-1)),gx={class:"k-search-actions"},yx=eo(()=>O("span",{class:"visually-hidden"},"RegExp mode enabled",-1)),bx=eo(()=>O("span",{class:"visually-hidden"},"Filter mode enabled",-1)),wx=eo(()=>O("span",{class:"visually-hidden"},"Previous match",-1)),kx=eo(()=>O("span",{class:"visually-hidden"},"Next match",-1)),Cx={class:"k-code-block-content"},Ex={key:0,class:"k-filtered-code-block","data-testid":"k-code-block-filtered-code-block"},xx={key:0,class:"k-line-number-rows"},Sx=["id","href"],_x=["innerHTML"],Tx={key:0,class:"k-line-number-rows"},Dx=["id","href"],Mx=["innerHTML"],Ax={key:2,class:"k-code-block-secondary-actions"},Ox=eo(()=>O("span",{class:"visually-hidden"},"Copy",-1)),Px=ge({__name:"KCodeBlock",props:{id:{type:String,required:!0},code:{type:String,required:!0},language:{type:String,required:!0},isSearchable:{type:Boolean,required:!1,default:!1},isProcessing:{type:Boolean,required:!1,default:!1},query:{type:String,required:!1,default:""},showCopyButton:{type:Boolean,required:!1,default:!0},showLineNumberLinks:{type:Boolean,required:!1,default:!1},theme:{type:String,required:!1,default:"light"},isSingleLine:{type:Boolean,required:!1,default:!1}},emits:["code-block-render","matching-lines-change","query-change"],setup(e,{emit:t}){var n,r;const a=e,o=(r=(n=window==null?void 0:window.navigator)==null?void 0:n.platform)!=null&&r.toLowerCase().includes("mac")?"Options":"Alt",i=rx(ye,150),s=It(),l=j(a.query),u=j(!1),c=j(!1),d=j(!1),h=j(null),f=j(null),g=j(null),y=j(null),v=j(0),p=j([]),b=j(null),m=B(()=>Array.from({length:a.code.split(` +Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),()=>De(Gg,{...e,...t,...r},n)}}),Kk=["aria-describedby","aria-label","aria-labelledby"],Gk={key:0,class:"k-card-status-hat"},Wk=["id"],qk={class:"k-card-actions"},Qk=["id"],Xk={class:"k-card-content"},Jk=["id"],eC={key:0,class:"k-card-notifications"},tC=ge({__name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border",validator:e=>nk.includes(e)},hasHover:{type:Boolean,default:!1},hasShadow:{type:Boolean,default:!1},status:{type:String,default:""},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=B(()=>t.testMode?"test-title-id-1234":pa()),r=B(()=>t.testMode?"test-content-id-1234":pa()),a=It(),o=B(()=>!!(t.status||a.statusHat)),i=B(()=>!!a.actions||o.value||!o.value&&(!!t.title||!!a.title)),s=B(()=>!o.value&&(!!t.title||!!a.title)),l=B(()=>o.value&&(!!t.title||!!a.title));return(u,c)=>(C(),S("section",{"aria-describedby":r.value||void 0,"aria-label":e.title?e.title:void 0,"aria-labelledby":!e.title&&pe(a).title?n.value:void 0,class:q(["kong-card",[e.borderVariant,{hover:e.hasHover,"kcard-shadow":e.hasShadow}]])},[i.value?(C(),S("div",{key:0,class:q(["k-card-header",{"has-status":e.status||pe(a).statusHat}])},[e.status||pe(a).statusHat?(C(),S("div",Gk,[z(u.$slots,"statusHat",{},()=>[J(V(e.status),1)],!0)])):$("",!0),s.value?(C(),S("div",{key:1,id:e.title?void 0:n.value,class:"k-card-title"},[O("h4",null,[z(u.$slots,"title",{},()=>[J(V(e.title),1)],!0)])],8,Wk)):$("",!0),O("div",qk,[z(u.$slots,"actions",{},void 0,!0)])],2)):$("",!0),l.value?(C(),S("div",{key:1,id:e.title?void 0:n.value,class:"k-card-title"},[O("h4",null,[z(u.$slots,"title",{},()=>[J(V(e.title),1)],!0)])],8,Qk)):$("",!0),O("div",Xk,[O("div",{id:r.value,class:"k-card-body"},[z(u.$slots,"body",{},()=>[J(V(e.body),1)],!0)],8,Jk),pe(a).notifications?(C(),S("div",eC,[z(u.$slots,"notifications",{},void 0,!0)])):$("",!0)])],10,Kk))}}),_h=Ee(tC,[["__scopeId","data-v-22c99869"]]),nC=ge({__name:"KSkeletonBox",props:{width:{type:String,default:"1",validator:e=>gk.includes(e)},height:{type:String,default:"1",validator:e=>yk.includes(e)}},setup(e){return(t,n)=>(C(),S("div",{class:q(["box",{[`width-${e.width}`]:!0,[`height-${e.height}`]:!0}])},null,2))}}),Dt=Ee(nC,[["__scopeId","data-v-3c50a4ad"]]),rC={class:"skeleton-loader"},aC=ge({__name:"SkeletonBase",setup(e){return(t,n)=>(C(),S("div",rC,[z(t.$slots,"default",{},()=>[G(Dt,{height:"1",width:"100"}),G(Dt,{height:"1",width:"100"}),G(Dt,{height:"1",width:"75"})],!0)]))}}),oC=Ee(aC,[["__scopeId","data-v-28ddd291"]]),iC=e=>(Ln("data-v-6be641ec"),e=e(),Rn(),e),sC={class:"skeleton-card-wrapper"},lC={class:"skeleton-card"},uC={class:"skeleton-card-header"},cC=iC(()=>O("hr",null,null,-1)),dC={class:"skeleton-card-content"},hC={class:"skeleton-card-footer"},fC=ge({__name:"CardSkeleton",props:{cardCount:{type:Number,default:1}},setup(e){return(t,n)=>(C(),S("div",sC,[(C(!0),S(Me,null,ot(e.cardCount,r=>(C(),S("div",{key:r,class:"skeleton-card-column"},[O("div",lC,[O("div",uC,[z(t.$slots,"card-header",{},()=>[G(Dt,{class:"card-header-content-1",height:"2",width:"25"}),G(Dt,{class:"card-header-content-2",height:"2",width:"75"}),cC],!0)]),O("div",dC,[z(t.$slots,"card-content",{},()=>[G(Dt,{width:"10"})],!0)]),O("div",hC,[z(t.$slots,"card-footer",{},()=>[G(Dt,{width:"5"}),G(Dt,{width:"5"})],!0)])])]))),128))]))}}),pC=Ee(fC,[["__scopeId","data-v-6be641ec"]]),mC={class:"skeleton-table-wrapper"},vC=ge({__name:"TableSkeleton",props:{rows:{type:Number,default:6},columns:{type:Number,default:6}},setup(e){const t=(n,r)=>[3,4].indexOf(n)===-1&&n!==r?"10":[3,4].indexOf(n)>-1||n===r?"6":"1";return(n,r)=>(C(),S("div",mC,[(C(!0),S(Me,null,ot(e.rows,a=>(C(),S("div",{key:a,class:"skeleton-table-row"},[z(n.$slots,"default",{},()=>[(C(!0),S(Me,null,ot(e.columns,o=>(C(),se(Dt,{key:o,class:"skeleton-cell",width:t(o,e.columns||6)},null,8,["width"]))),128))],!0)]))),128))]))}}),gC=Ee(vC,[["__scopeId","data-v-3e795fea"]]),yC={class:"skeleton-form-wrapper"},bC={class:"skeleton-form-row"},wC={class:"skeleton-form-row"},kC={class:"skeleton-form-row"},CC={class:"skeleton-form-row"},EC=ge({__name:"FormSkeleton",setup(e){return(t,n)=>(C(),S("div",yC,[O("div",bC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",wC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",kC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})]),O("div",CC,[G(Dt,{height:"1",width:"10"}),G(Dt,{height:"2",width:"100"})])]))}}),xC=Ee(EC,[["__scopeId","data-v-27fab520"]]),SC="data:image/gif;base64,R0lGODlhtwC3APf+AB9Uef7+/k94lQVAafn6+/z9/QM+aAI+Z9/n7Pv8/fX3+fb4+gtEbQQ/aF+Fn/L19whCa/f5+v39/uzw9A5HbgE9ZwdBahtRdhdOdOnu8jVlhkBtjHWVrLbH0y9ggluCnd3l6x5TeAxFbRBIcPP2+HuasDBhgxNLcSVYfOrv8vH098PR2+ft8ejt8RFJcEVxj2OIoeXr76G3x4aitlqBnNni6A9Hb+bs8G+Rqe/z9drj6YKftO3x9NHc4xhOdPj6+9Xf5sXT3Km9y6u/zRlPdWGGoDFhg0hzkfr7/AZBamuOpoWitlmAmyZZfbvL1jloiCFVeglDa9jh6KK4x9Ld5L/O2b3N18/a4nmZr0NvjlR8mBZNcyJWeiNXexxRd6/Cz8jV3p61xbXG0zdmh6W6yaS5yIejt8zY4ERwj2aKo0dykWiMpMfU3SdafShbfj5ri87a4gpEbODn7Jmxwn+dsg1GbuLp7kFujY6puxRLchJKcdPd5ZOsvsbT3fD09ipcf42ou+Tq74Ces2eLpJGrvaO5yOPq7m2Pp9vj6XGSqlN7mMrW3ylbf1Z+mrrK1qi8y1B5ltTe5cDP2RVMc97m65evwa3AzjtpiSxegLPF0YOgtXiYrlJ7l520xM3Z4YumuZ+2xX2csbHD0Fh/mzhniMnW3013lDJihLzM12mMpdfg567BzrLE0R1Sdz9sjOvw8+Ho7TZlhi5fgiBUeY+pvEx2lKe8yrDD0Kq+zEt1k4mluEJujjpoiVd/mpWuvytdgKC2xpqywl2DnlF6l3qZr6zAzVyCnT1ri26QqMvX4PT3+IqmuZavwKa7yjxqitzk6tbg5neXrSRYfJiwwbnJ1TRkhTNjhWqNpnKTqrfI1JKsvnaWrZStv2WJo7TG0oGfs8LQ2lV9mYShtS1egb7N2Juzw3SVrLjJ1NDb44ikuGSIomyPp3OUq0p1kkl0kkZykMHQ2nybsH6cspyzxO7y9WCFoBpQdpCqvIynusTS3HCSqWKHoQA8Zv///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQwIDc5LjE2MDQ1MSwgMjAxNy8wNS8wNi0wMTowODoyMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3ZjIxZWJkYy04MzJhLTQwZjEtYWZlMy1lMjZhNzM4ZGY5YTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjNGMkExNzA5QzQ2MTFFOThCRTFFOEI2M0M2NTQ0NUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjNGMkExNkY5QzQ2MTFFOThCRTFFOEI2M0M2NTQ0NUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyN2YyODg3Yi1jY2Y3LTQxODItYjE3YS0xMTY4NjU4MjI5ZDgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6N2YyMWViZGMtODMyYS00MGYxLWFmZTMtZTI2YTczOGRmOWEzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoA/gAsAAAAALcAtwAACP8A+wkcSLCgwYMIEypcyLChw4cQI0qcSLGixYsYM2rcyLGjx48gQ4ocSbKkyZMoU6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1atYs2rdyrWr169gw4odS7as0zB/zDpNxI+f2qZt3fbjUOBtUVUC4+bNMsGu0A428rYVDMAv0E8H5Ortt9hwz8WQB/fDkcDxzRuCFUuG/KaFZZrJ7GUezXgzPy+fZZKBoLk16capXUZ2XZr2GgKxU6p4bZo2ZFKYc5d8xoi3796CfQgnicrF8efGl480gLx2dOvYi0SQ7nH2de/Y+VX/s8OdI/jz1SNPKr8RPfTw1dljdP89vWQaCuRXpA//PWQPCOg3EX8E2ueCgBIV6J99cgWA4EILRlifXIqQ8GBCEvY34Wu/6HDhQRkqWJ8zHxpUWD8ApChQiieKqGF4XaRQYoIMbogdF4bMKFFiIdbYDyI6SqSNjy4GOdEaPb63nZEQJZCFjfwhUyILDjggUJVW9oOlQN3kUBA9UBLZwYdFEJlFZQa5eJ4PMj5YAZH8rHFQA3AuWMuFRRJUSZ02IpgnQTgkeZ18P4QpVyQFFXCEoYOytwyjKGZQkB+QgsdeBhRUykuhafL5IntpCFraBwcN4Kml3PWQWKWSFRTGqfFx/4cGrLQZxIGosEmnZnXJJHrni/yVtyttPuRIkIXA+igsra8ZoQyIzErXV7I9QnKQBbBiwd01rL5XUBmeQkAGd5EY0G2jBGGR4SLlHYGrj/AUFAAnfXLXQbT8nfBMQfklS4N8buBLpBtedkrbAWboN2yYLxwURXWsCLgwtaQV9EisCgucoUGCaLYBnhrbOCZBAYyS1xpIXGjquxlSAERBCwjETInAhEwxY7O0yaRA0bAc5iVBriCvtTdPnKuAdfVzAiX8nlt0qwgqIEBef1BqsNP8FSPgDadotqhBD/t8cxRn6BcCxgINYTOBRAQiH6oELSF2gUZwF8x1TshrDNae5v8WwDbvjSBFQZwa3XdsWhCJAg/Qzu2jDLEVeMdBdazt4wBCG4bX03IV1MGqnFe6tF/kjACpQYQ4vqAbdgFjKqTeGCRn6LQfPdbEdexREJqGbzwWbrVvBoCkVwefITdiTUCi8YLxcpAelr93wDlg6YCC6gdJ8jrzRVMAzVcnRI9QJ9gnO0tVVaQvUPpV8E3bKra6X29UvdsYhScFSSD/zVPVX/QFMWjc/sCTMKdQYYBwssZBfCA+YMGPKTnoAgJ9N5BSPGyCr7nfUgJQi/L9aSAXwyB8RKOUHTTQReMqyA5ECDej8IiFPrIAG+QFQ9o46Cj+M9oW5CBA7vFHW0SJmQ//LSeLgwDghOmZAlGylEObFYQKIvBgejAnlD3V8HQF8cYBrliaPAQFDNtrotjmYRA8cNF2OrkAEsU2AEkgRIzXSRpP4DhExehhX8Wj42LW4RM9Wo51BmnCGl/jC53g4oxOJIgOnHNGA1ADJ0AQASLf9QuEkGMAiAyMTR7QBil68AClSMjd6jg/mQxjkKRkDDsa4kfaAE8mrdyfNPoFIVQuJkuwtKXNyOEQWehSMQV0CXlSGUuIwAIDnnxNBR7Ikh9oYJJOgwgbIIDIOLhEHckkJtQe0gxosoR82Wziv/bzS4HQ8iTYCufa8qCzAZWzH1q44UmKmcNuWmQM7+QHMVJC/0/JsGhFKkJRQP8p0BON0yIsOBsiC4GSfnZOJuiQpDaPk4SG6lKBNYnYRNE1Enq6gGk4cahAdkMSesYuJyLtxxHkGJJi7lMnG8jnIUqKSpb2wxtT64cAdiqQnebUpz3lqU6FmhEeXO+MdaBpNguiAxuIrZ0VkYLpNhoeNCgVgQ04yC9stgE0XcQKZ3ypSPxoxjziCwfmsaVGx3pCRciTIE1Uokbo6ZmONhAFD3ij5aipkXag8kR2Ld8B9Vq+jDwAE9nsRUnoqBA6etUictiCCMsa2P0pxBgNRGtG+iDCICzWctVgSArCN0C5zrWBQqysD10QIIbIwIMQKNtpC/vZudOJ4SHvQGAINtKIBprEf/GACEgZixEFaIC2V+WeTR1CXIzcoBWWrW003Vk+014EDtFN7q6yWhHqlC+2aRXbbwVGC4sAzoMhgKpF/DdeXGnhIgrgghQ/phFkile6tGtCXi+CWQR6cbbT1a6nBnuRWEiRA+0RmATnGS2NjECKQAJw8JhgUVFlZAIn3EV4WaWNCofJAxthwwmHsOHggcHD3cNjRqbQQAykLMG4SgKndkbjGtv4xjjOsY53zOMe+/jHQA6ykIdM5CIb+chITrKSl8xkqgQEACH5BAUKAP4ALA4AHACTAIYAAAj/APsJHEiwoMGDCBMqXMiwocOHECNKnEix4sIXPCxq3Mixo8VXAvlB6eGxpMmTHa8ACMkvDsqXMGMmFBKHH0ub/QrI3MmzJL+fNwXuStGzqNGHKoL2+4mTX4gzR6NKJVijjVKmLCFM3WpUjI2mQJeGxdoPCdezMA+MXQsW55sWaONyVHCV7dULYOTqnSjHSN22dZPsHexQ0iTAYhGTJUuAsOODA+wm/quU1I3HmClP3rx4rI8+mQcP0dxZ8doBofWqIEJacmmlP1KfVWK6dmucGuzInrqogm3Orl1vkbQ7qpHgv18Db1D8qPLnyDUvaM4TevLom0/JoS7T+u3vS0+g/+J+0hJ478BNHyBfUsWF89jRk1XGfiObXPCv6xe4o75HMkpokN+Am+nk30mfhPNeegQqd+BOHDgTRYPBvfBgUXQxqOFzFkxwYUUOABJERPLFx08qH1JE1iFkgMBQiful+FBjGi6BygMHwQiejAwVoEVr6xkkjIkxBsCjQofE6AhBMTAQI3rcHInQEkQKhEkCBInzJHYQACGlQTouxQxBC6y0YZVLeUDjlw3mkQNBj1BoGgJslkIhDgQZeeaWdEqpQx4UMgcmmtD1ySMLUGyJWEFhFiqlCYRKVpAIkc4pZaOSYTnQDJXWZeiFemKKGB8ERTCLop7KqI+cSrmQ0UC4oP8K3KcHfiLrc4cU5AqrSy2h54NldLqhAdAQdAWvq8gY2a3BHZGjsDyKuiNBmAp4pLR7PvvkKNNdKyx6BXGBJh2/Rvstdh4O9AWabPbjG7O/XVPQHdex1m4/MJz7mwGRENRDkM8ZYci9/dzgJK/PWUhQGpopkiHBO8DbmigEZaBZuTx2MOZACiyILXQoaMuSBQSLcMKbA8mAMHaMjoUBGwT/xA5BEqz8W8s4tQFLu0mJhdqgEmtYEBphIdJuICYohbPNSpE0EBUG4NTuFV4sStCyTG92R0FrSM0mpYiVi4y+pH1B0ASaxCwZGQTxMELQz3WxZrsSmKMZAN0KhAfcwS3/Q7ACnCQ3A0EEdJF1Z3UQHEt8dVg8UDGHS8pmiYOInO3lZElpBXwGWP6x5DKC8nOYS2OOpnkpxgMtQRCQrSEUEaSIrYECleD6c4MfmC62cxD0AAZ8KyYCC/7pELLpiGGA40BzBF9XEfWtcALcJRBUACaRg1VBfUncDoFuA1GTvdK7JUBJ5B94fntYmKnCyj0CSdOA85uV/jlieQ92/7QD7a+hOI/xH7gIUof1IYYBMdhLzZDHq7lxin6LccBeKMbACpIFD2QCAATHUgE7yeUS49PQCF4lEDJsECxPkEsQTkgaZOQpFiHM3FmGwcINDaAGBFlBDNnHFSn4ZoemgYT6/+h3lm4YkED2O2I/BrYVCyiRdNR6YlhowBUBrm4gepBiU2A2FSvK6mH90IYWQzIGjBXFiwTqz0AS0IQa/qQMR9EUGivIgMsMRBRu5MeCigJHCz4RBgXZABCP4oFBYq4CThMIHAzZE2rkcUtZGGLWekI0Q0Kxf2Psx4hkAodMYiuJ9NOAGU3CBE9eUSBE8CQoZBK1RyKRIGHwJBFIEJM5+q8gEvBAHolRS1NuiQEIsUIetQITW56LFgmpBSNL0i1j3ooUCzyIFJbpkd75sYZJKNaLMhlNjhxvjgAIp0DCaSZyjlOc/TBnP3ThEGcKpBM+CaFR3NkP5XmkhkZJlBs3cf9PeRYlVm60wPk4gs+iBIAXeeRERzYYpKOAIY/AJGjk3EAQkPRDABgVCEYFoNGMXtSjG3XIKHZ4jIVGjgkEWdI1HdInY9pNoisFjt8G8glePcSYcYKpFVUqkPTF9KZSdJFO12dRK/EKLg2xJaBMGtPFeIEgP+hcTMPgkD880VlMFaApCOKJoAmxIWJ4Yij62dSxjHUgseQVA2LXkBdA0BtkFWCyBjI2hInBIVQA2O2QOlS4feoNcEORQ9SRtVbEs6w4GUFBvoKwpzqEeIgVyI/i6rqtDQQB6zsWRPyXjsP6LxEEucX6BEEi122OskGbAkEEsb5qlDZoy8uq6/ZAEBp0EtEh1nCdSeinKYGI67YNgYduPTtcTAK3IZAI2m4nGcXjMmRINiWucpvL3IYEAHjRRW12/dmQTk5Xu37kgiR/6hAzFFe2t7KAJwiSjMjtIiIbOG9fGzQNmsEwsmIRQkSwRl7whskYBekABCcxt6SeSwQbCQgAIfkEBQoA/gAsFQAdAHkAhQAACP8A+wkcSLCgwYMIEypcyPDgA4EJGkqcSLGixYsEY5gQuCEDxo8gQ4okGKkVP4H8vCwaybKly4MU+J3sJ9PCy5s4Q8qcuVMggZxAgyLUhFJm0ZmkAgldCjQBDJ5GaUblh2EF06su1UzdCrUB1q8ie0qFSlbgArBoJUY6ynZs21MI0spFaIVCW7F4p+pxMrevwCkDyrodnPeA3755BSduS+Iw2sWEubb9VcMxU4+RFUsmbIOVZaEf7m6GDPkzTieaU4sWnMO0ywVdVGde3VbaHtcssYzeLRsvAyG4RTbgTXu28eAfSRM3DnkC8ovKey8XG+LMc4ksikfXPhoCqOsMHXD/l06+LfiEP/u1izm+PfOo5xkWuCJw0vT7suNTVBXM/fbIa+j3kRyFpOHfdDQUIGBBKWRXER/4FYdBegsO5AE/XQhUWUOGRMjcEhUShNcWigikIEJIeEhaAyuFaBwDL+yA0BblvYdChd+4N8YzBI1T43/6AfNjJgRpdWB+51kRmH/TEFTEj8sZcl5MPwpC0CZQyrbLef/hNQhBEB6p3XMPvaeYKQQNkeWYwSWghpg0aUBQEGsyh9xTcPJzAUEg1ElacJqoOFUDAQwUgZ+jBdflbi0QNEKeieK2qGY9EOQGpIqZBgSmRWVDUBacEvbZDSGEKlMnBNFgalRzWEaCEYhC/zUDQRysOtNnRwiqmRIEAbKqLK5Nyl2JA9li6jCNmSbse08QVEWooRQarK6iQUGQFKEit6xyNg2U7Lb8lPocuEgOtC0vjY5L7XEielgEhdquW1q7NcZHbnEFLfqofveya+50bWyInLQCMSDvZvku94Qf4G06UBMHC5awbLeB5whBx0RsHr34PjeFQIUQ1IjGg03cMW4B0DGTLgThQLJYJvvr2gdRYUOQGS/Dx3FkG6k70ygEyZDzrTvnZRVuG4q1AUHnDH0QaUwEB44ebbVBEBVOGwRZHEq5VsiSg9k1UAZZxyxWI4qOdtZAw9n69GZ/mJYeaSAQdEGsG/8rWAVlHv/GwxvaBUGQBniXXPRUqDiGCMTaDUFQLYXDfDhPsx52wnS+EJRG5DrrfZcAjnWJBUHycD7TDwQZMJoPcwUgo5kowUBQJaYLFNdAROxmR1oECPPjEQTdUns/fQy+Gy5pbaCiEQSBMbwlBOWyW62Pqcj6QLAMn/lAm2sGOFMFfIFGngec2A8Bw48+kMqaxXGVSYg6KNAJbvcj+0C0l/tSPqrC/h4cBGFE/YA3EFEsBycX4lwHCPKC+nmAIKU44E36lZd5ECQ0/vsPBggSCAm+hIJbAdFAtlG/CkREICnSX0tACJVr9Kp+/IgBQWh0MpewsChaIEgzYNgigchChSy5oVT/mjWQZ2VwOkQaiJFkJpITClEmXCCIKmDYpIE8qYYi8QQM+QEBgqgAhlYaiG6K07WRVGKLRPPcERXzpYGEyTjFaEkR0Pi2yKFpIGoqTjRaErc1usds8pLTQPogm6WN5AEVoKPWXrangfSpOCIwH0jIMTzJqZGChDJUbyoWknRUsnNbTJdAXKCdcoyEE59M4xYrNZBLMacbI7mbIgGJKE8NBFTMAVZIYpA1S24RVQPBIGkMoIyQfKGXoPTjeyonEOopBxwh0U0q67gqXg3EV+9ZRkiygExVKlM5xBKIsd6TQ5BQaZaTgxQRBSIJ7nhBJ92k5je3Yq2BYMt/yYnnIjnX/y2BfMuDFnkiwtI5T28CCSNCBIBCBaJQAMhTiLTMW0BJNhGBGhSgFYGoRCz60IFCh6IbLRtBfZlRkDaEo/vEIkU02hAbiPSSHp1o4dYmECUIAHT9qNtA2vDSPyKUZIggiCuicg6CKG94ETXcRwt3NIEwISoyIMgoeorPnxbuEbSKihkIgo2cGaCjErNqqGhBEFpEBQcE0UXOTkEQSvh0qaEi4UCEEBW0DaQMOUuFDt8q01BhUCCEnMkxCOKInAGjZXwtaeEaOBAERKUJBAFCzu4pkDEkliKBKZwAB4K+mTCAIBN42QgIRoAkXHYilyAZKWfIEwUQJAmRe9NAnMedr/+CpAQviwBBTMATHRAkBJGjA0EIIZ2efQQ1kdOpQNzBk6b2YwyRW+BAnsqdNn5EAWCjoOC4xxPgDEQAkXPOQLggnTCIJLWm8q5ABMETQhBkDYW70UBScB+H3TZy7h1IMHiyCYJ8o3DGIEgmpkMBCYgENabq70A6wJN6EGQOheMGQXDbm/GJBLumEs9A0MET2QpkwKFKBkHQMB1isOQSpnoHQeiLEg0LhMGhQgJBzskcz4ykBKa6gxd58rGB4DZbI50KZg4cKgasZSCJ4IkMBwJdIMNUMLNoiWsLKpAyEGQPqhNIHwXihwMULqli6cUE11WQoc7kEAQ55peDPBM8jLkcTjG7BUHWYVL3FO+DglptzBg2EEbU2X+6pUhAAAAh+QQFCgD+ACwYABwAeQCGAAAI/wD7CRxIsKDBgwgTKlzIcKCvcQ0jSpxIsaJFg9348bvIsaPHjwg1buwXTwLIkyhTFlwkUGRLd/RUypxpUYaFlhpxdqHJs2dCHDn7uRQa1KdRn0OTBuVQ4KjTkz1wjlQ6NcuEp1gvDokjtSvRqfwAZB0rsURQql6Hkl2bEO3XtEFxJGBLVwpcsHjTvmlBl2wmG3cDvyXqpW9WQgfyDnbr1rBTA2cjK2YcdA0Bx0glC6Y8ldQNzDw5b9ZM1AdolZ8XkxateuTpk+FGT15NukiE1x3FzN4tO201O7gtKgDAu3Vv1VuCV+RAuzjrxsojQnbe/PjQDwqiM3xe3bh3fh4QaP9XCGMS9fPW+Zkar7BAlfTov8fyw74hm2g7v3dnjelqfYqY7CegYin8Z5EOZsB3nIEInRGRNm8coKB3SDBoED8hYBNRBgINMKBgm1gokBheDeJEhQut8qF3B0hiYScGwOWCQLchRMiKjHmRg4HfdMdAL7YclAiOtPViIHcj6UCQAEQWp112+ilWCkEeNClYdBPwMuErBNVhpXfKyeFGfGoRhOSCwRHxZUFnRqldm2UOBGd3rz0yYZx30gkaHmSSxuaX0Dk2ZJ+K/UnolZjNWaiZgPrZF31uRmponovSBQqlXk0aKWMG8IEZHZgOpqmiArmACmgOhIrnpt0hctoxqhb/xeihop7WSqyuzZqnObghISGrTuoKrEBJyBAcCLQGGiobyjmRrKNzDVtrcOU8C9YFBIGQZyPjmRXrJQRZcecOAYz3gbU4CUNQOROuUt8T6BIVCkElTPifmrFeOhAT6Q1g4A+NgvXeQE+kV4iBNQSMkxwEmbbpvAZmo7BQDTRFY3x6WPxfJRPzwwVBQJCZzXjBEBRNx1kQpJt1Aoxn7ECNdKwOQXyQaQBwuNEiEDwEadDxEgSx0yeopxVwzUg4C2RevPyQQRAnfRLxWi5BmSRnx8wOZAStoK1K6mJ8DTQC131dkamwX0dBUA5r0tWBCGdfHe8fBMHR9lrMJBY3rgLl/0KQJV/+wJay0rqlBEGAfHlwVlAS/vVQgBCkxJfOZMVCNYjKHaolBFGdLBVPAUFc5nz3Y/ZAjAB6uFMU6Kl54UHtOFAUgNahjFOsjXp3rHP4xKWkaO8OO1hG+JQGmq9/rTvZMnlSAfKlL2+vTAGQEp/00mLf5kwyrKi998Ezn5IPAjJAEA/Rhz9huSpx9wtBDg6/t/yDDZwSd7UQNET6yX/JbfsCOgRBPsG/0g2AQyC5RXoiN5DVPU5W/UsW0D4SgVmkh3MDaUcB6ZeUWVitIzvoExwIwogNPhAsJOoILGiXHtkJRG0chGDpNLKejoQDR4AZSAaYJsMYguVXHIGTB/8IAgYexuhCHevhROAECYLYgodiQSIPc2UROCWCIGbg4R0OcsL5NQSBcCIEQQbBwyIcxARJpKJEYHAnURDkBTzUxEEekUaBKGkiKLgT6AaCAh4uriASaMIUBaKhiVTiTiQYSACSwMMgICQMg+yHHmoUkctI6wQEiUESY4AQAtzKhy15GUXaZA2CrKBjFmDfQcQISqEUrCJt0gJBCtGxNihkATPkBzpguSIOEEQTHXNHQ7pIlFRUJA8r8gVBYNAxY24niXCjSBbjk0KB3KFjBHxmJCdCghPEBxoEgULH9scQ2m1zIiE8DiX70YCOxW8hQDmnRHKQw9ypr3DoYwgsPLT/wYYQzZ4RnBAFJLKPSOZTIv4BaOmGGBEdPK+VeLiIQlvZRIkYqZVNUOUSXVe6K0rkdMTkh7h4GayASgsXVeyYLBuiUQhwtJUqSCnTGsAChcS0H18gyDpeSkyJJlGOCeFXP0ygyn2WtJ8RCSmGEkKNqeR0IGQkXSsvYo06HqQA45gKUQeCgCM6bmIXAZw8B1ItsDxVIKkC0z23ZxEJpK6fGIiMCQjiKrWalK01GatUv/qsGQ3kdhRJQBSJaUmTYu971KEBQVzUD40yhBmlE8Jhg3dEgQguhkEaiC4EIlmJ4LKVGxBI/NyiUaWMgSA1UFUDXNgPTgjEDdHaaLxy6Aqp/8YhMvggyMseV1uC2KMl+pJtqIx0i6OqRlsDqeHjcjsQQ0wlBIVN6sTKgARB7vUspyAICSCgqtQOZAhg8dREGDAxemiDp2eZoECeGKo8EoQ5OHGYRAYVKkmidyqqIMgNQ+VLgqDRiwlJBlgnOhRMEGQB5A0VAgVSxEoxZAYDvq9AICaQYoCVIA5wVEN+EeHZ+EuKAtmjQBbQg2IIxBnInN5ALBAZIEo3XvrprR0BXBBIyYMG2QVe/94xyg7DRRwE4QaNGQKOMERDIC4Fi2JBTBRg9PhZkxgIAKYskClHccrv7IczrYySAMjhVP3IxThSUxAu9wMA0njAk/NUj4EEBAAh+QQFCgD+ACwYABwAeQCGAAAI/wD7CRxIsKDBgwgTKlzIsKHDhxAjSpzY8IHABBQzatzI0WAMEwI3ZOhIsqRJhJFa8RPIz8uikzBjbqTAb2W/mhZk6tzpsKZNnwIJ8Bw6VBPLmkdtkgpEtOnJBDB+Ir05lR+GFU6zclRTtavUBlrDUgRKVapZgQvEqlUYKanbsm9PIVhLl6AVCm/J6q2qx0ldulMGnIVLeO+Bv2v3Dlb8lgRirYwLe337q8bjoSMlL55c2Aaryzs/5OUcOTJomE42qx49OMfpkgu6rNbM+q20Pa87YiHNe7ZeBkJyb2zQuzbt48LHFj9emvOE5BKb+15ONsQZ6A1ZGJe+nTQEUNgXOv/oPr382/AIhfZrR5O8e+ZT0S8scEXgJOr4Z8t/qCrYe+6SrbEfRXIUksZ/1NFQwIAEpaBdRHzkZxwG6jEokAf8dCGQZQ0ZIiFzS1g4kF5bKCLQgggh8WFpDbwkYmQMvLADQluYBx8KDH7z3hjPEDSOjQDKBwyQmRDEFYL6hWeFYP9NQ1ARQC5nSHg0ASkIQZtEOdsu4QGo1yAERYjkdslZBN9iphA0hJZk5paAGmPepAFBQbDJnHBRxcnPBQSBYGdpuWmyYlUNBDBQBH+SlpuXvLVA0Ah6Kvoao5v1QJAbkS4GGhCZHpUNQVl0WthlN4Qgak2dEETDqVPN8RgJRiT/KtUMBHHAqk2XHTHoZkoQBAirspxGaXcmDmTLqcM4Btqw8D1BUBWihmKosLuOBgVBUogqHLPN5TSQstzyY2py4SY54oq8OEputcgRxGwRFW7LrmnufoheucYVxCik8uHb7rm+tcGhcNMKxMC8nOm73BN+YMfpQE0gPJjCs+GGnSMEHSPxefWam9sUAhVCUCMbE0ZxvrkFQIdNuhCEQ8lknfzvaR9MhQ1BZsAcX8ejgbSuTaMQJIPOuPIsGVavcUjWBgSdQ/RBpTGRGzh6vNUGQVQ8bVBkcTB1WiFMEobXQBloLTNZjSxKWloDEXcr1Jz9AZp6pYFA0AWycgzwWxWY//kXD29sFwRBGuRtstF6oYIYIhFvNwRBtRgeM+JV0frXCdT5QlAaku+8d2ECIOYlFgTJ07lNPxBkAGk+rBXAjGeyBANBlZwu0FwDEcGbHWIRIAyQRxB0i+399EE4b7iItcGKRhAEBvGWEJQLb7aGxW3rA8FCvOYDcb5Z4EQV8AUaeh6AYj8EEE/6QCtvFkdTKiX6oEAnvN3P7APV7rFJ+awaO3xwIAgj7Be8gYhiOTHBUOc6QJAX2M8DBCkFAmHir73MgyCi+R+AMECQQEzwJBXsSogGsg37VQAjAlHR/kgSQqlcw1f240cMCFIjlIFQZ1ogSDNi6CKByGKFHWnhUf+cNRBoaZA6RRrIkWbGERQKkSpcIIgqYuikgUDJhh3xRAz5AQGCqCCGVxrIbozjtY5UYotF+1wFwTQQMR2nGCUpAhrhJrk0DWRNxolGSeR2RBudbV5zGkgfZsO0jjygAnPcGsz4NBA/GUcE59MIOYg3OTXOq1CH8o3FNpIOSnpui+oSiAu2U46OcMKTadyipQaCKeZ0oyN4S+QfE/WpgYSKOcHaSAy0VsktpmogGSyNAZSxkS/w8pN97I7lBFK95oBjI7tBJR1Z1auB/Ao+y9hIFo6ZymTCp1gCORZ8cqiRKsmScokiokAk0R0vbOSJ9LJkoq41kGz9LyPwTBg6I+X/LYGA64PR4eY0vRnP9+CzZABIqEASCoCBPnGWeguo4R6Sz24GSTkT7YnZ9nm4iTxUo8SDaEclqi2Q2k+kvYzIRxtig43KM6IqLRnbBKIEAYSuH3YbSBtcalCMigoRBHHFVM5BkOWFlKMphcgTkSYQJkxFBgQZBU/v6VOCTuURtZqKGQiCDZ0ZwKH69GjJaEEQWkwFBwTRhc5OQRBK9FSshivhQIQwlbQNpAw6S4UO30pSq9okgwIZpE2OQRBH6AwYLuNrTA3nwIEgYCpNIAgQdGZPgYxBsRARjOEGOJD02YQBBJkAzEZQMAIkAbMPuUTJRknDnyiAIEmQHJwG8rzu/3xVIyWAWQQIYoKf6IAgIZAcHQhCiOn4LCOpkVxOBeKOnzC1H2OQHAMH4tTusDEjCghbBQfXvZ8EZyACkNxzBsKF6YSBI6o91XcFIoifEIIgazAcjgaSAvw8DLeSe+9AgvGTTRDkG4YzBkEyQR0KSIAjqTmVfwfSgZ/UgyBzMBw3CJJb35CPI9k91XgGgo6fzFYgBBZVMgiCBuoQgySXONU7GvSTDQukwaJCAkHMyZzPdKQEp7qDF38CsoHktqQvLUxmECwqBrRlIIn4yQwHEl0gv2cWJXmtXwVSBoLsYXUC4aNA/HCAjAaZLL2gILsKIlSbHIIgxvTye/AgZjvJ7BwWBFlHyVA6FePdMEqslVnDBsKIOSN1KrudSEAAACH5BAUKAP4ALBUAHQB5AIUAAAj/APsJHEiwoMGDCBMqXMhQ4QseDSNKnEixokWCrwTyg9LjosePIEMSvAJAI784IlOqXHlQSBx+JmH2K8Cyps2L/HLGFLgrxc2fQA+q2Nkvp0x+Ic4EXfqzRhuiRk1CYEp1pRgbR3UW1Rq1H5KqYD0e4Eo2q8w3LcKqbagAalmoF8CsnXtQjhG3Zt0moctXoKRJebcG7tqVQN+1A94KxkuU1I3DYQkrljzYRx/IS4cwXsyZsskBmIGqILLZc2fFP0LXVDJ4suvAGuyoVrmoQuvbpblukTRbpJHXuXFvbdA7pOnjwE/LXFAcZ3LkwruektO8IvTg2IueQFW9oaXs15W7/z3QfaGKC+Cfq5eprPxBNrnSR18vcId7hWSUaJDPnzPN+w19Eg564hUYXlcAWsSBM1H0h9wLCX7UloH0FWXBBBES5AAgQVB0oHqpZDhQV4eQAQJDH84nU4KGFbgEKg8clGJ2ABagRW7kGSRMheEFcN8hKgrkCEExMBAkhTJx494SFWKSAEHiHBkeBECUN2NRzBC0QElIgudBi81dyU8eORD0iIOuIVBcKWjiQJCPXcaZk5qz6ZAHmsQZJGaas7EAhZSKFbRna3SGZgKPgRIkAqKEzjYoUU8ONAOjbhXaF5yPcsYHQRHMAmijkOmDZmAuQDQQLp9WCtknqRp4SEGujP+q0RJw8lUGpQYaAM1IsvazCmaJtYrcETLiGlqm4QmK6H6qIZucslKOwlyzuCZLEBcV0lHrsdUmh+FAX1TYnG3CJndNQXfMR1p1MHQrnAGRENRDjscZYUh3NxjZ63EQEpTGZopM2N0O5c4nCkEZbLZtaB1kOZACBDrbGgrFZmVBdyKcUOZAMuz7LEGEYcBGdzmxQ5AEHgsHrUBtwNLcUFuBpqe7mxWEhlaINBeICUStLGeFHQ1EhQErFneFF4EVFGzKRN1R0BpF97ZoYNsiQ7OBXxA0gSYkK0YGQTyMUHBpXYDZnATmbAbAtALhMTaFy3SnACfRzUAQAV0wfVod3cX/8lwdCQ9UjN6mhaneIBUTrtVsVqRnQOI/H6kaKDJf6bPERH0HWTzGEgTB1aZBEQFkmf4nUAmgT2Y3Xd9mOgdBD2Dw9nEisDCXDhRHThQGMQ40x+yuFbHWCifMXgJBBWCieFYVrJUE6BDINhA1y/e8VAKUKP4B5JhzZpMqrNwjkDQNAJ80yKkHxrZK3Vs7YvpEiVNT+x8PVAf8nDEQQ0oo6+5/YQSZlPmg4oCUHOx/uMKDlgAwwM5UgE0huUT1CjQCUwmEDA2UzBNCEoQMPgcZb4rFBBHkkWF4MDoDqAFBVjDCxV1ECrZpYWsgwT38eaQb+LMc+k4okHtZxAI5FNcO/ydIA+fwME4F0UMQjzIy6ywxOwLrhzaeWJQxLKwh9GuVfQaSgCYcMSdlkEikstgfBjxmIKL4Ij8I1JAwIjCDMCjIBmQoEQ/QUU4VCJpA4HBHhlBDjYDKQg0byJCb3VGH7ztihxICBypm6nL408AVB8IER3ZuIERwJCgSQjRA9qcgYXAkEUiAEDK+0XoDkYAH1EiMUloSUAxAiBXUOJVBHtI1tEhILfookGmZElmk6N9BpMDLfrzulMg0TRJ2hSIq9i93pgSANAUiTS5Vk5rT7Mc1+6GLiPxSK53QyATB8k2Z8K4o46zKn764CXQmM1FUQdUXLUCJI4IlALxQI90Ul/+jsIBBjfp6Z1bcgBGBCOCgBkVoPw4qgIQ2dKEKZcgoWngMDzKBIENCJkPo9E1zeDBuA/lEryTyzUd4MKMC2Z5GvRlEEHgwIwNRHjLTgsUc3imDXiDIDx6HzDBE5A85JFYGTUEQT7yNhg0RQw5D4c72MXUgoewVA0bXkBdk0BtNBd2vBmK1fYkhIlSgF+jSkkFLvWF2IYqIOvTWCnEKVCAjKAhW9pXTiNjurf24UVbf5rSBICB1V/DQ1dLh1u4lgiC3SJ0gBPu2xu21V1MgiCBSVw3G9qp3DdwDQUxIyIhY42oj0lukBIKtzjYEHqAtbGoTqbeJQOJtocUrJGErkR1MjVS1tGWtbCMSANnd9rEr1W33JNLI3AKPC7YMLkPMsNrZWcATBEmG4nZBkQ00d1/TOJkI8ZoTIVBkacF9mzEK0oEMTsJsNS2XCAoSEAA7",_C={class:"fullscreen-loading-container","data-testid":"full-screen-loader"},TC=["src"],DC={key:0,class:"progress"},MC=ge({__name:"FullScreenKongSkeleton",props:{progress:{type:Number,default:null},hideProgress:{type:Boolean,default:!1}},setup(e){const t=e,n=j(0),r=j(0),a=B(()=>t.progress!==null?t.progress:r.value);return ft(()=>{t.progress||(n.value=setInterval(()=>{r.value>=100&&(clearInterval(n.value),r.value=100),r.value=Math.min(r.value+Math.ceil(Math.random()*10*30),100)},200))}),gr(()=>{clearInterval(n.value)}),(o,i)=>(C(),S("div",_C,[O("div",null,[O("img",{alt:"Loading",src:pe(SC)},null,8,TC),e.hideProgress?$("",!0):(C(),S("div",DC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),AC=Ee(MC,[["__scopeId","data-v-5c71d015"]]),OC=e=>(Ln("data-v-5a15970d"),e=e(),Rn(),e),PC={class:"fullscreen-loading-container","data-testid":"full-screen-spinner-loader"},BC=OC(()=>O("div",{class:"spinner-loader"},null,-1)),IC={key:0,class:"progress"},NC=ge({__name:"FullScreenGenericSpinner",props:{progress:{type:Number,default:null},hideProgress:{type:Boolean,default:!1}},setup(e){const t=e,n=j(0),r=j(0),a=B(()=>t.progress!==null?t.progress:r.value);return ft(()=>{t.progress||(n.value=setInterval(()=>{r.value>=100&&(clearInterval(n.value),r.value=100),r.value=Math.min(r.value+Math.ceil(Math.random()*10*30),100)},200))}),gr(()=>{clearInterval(n.value)}),(o,i)=>(C(),S("div",PC,[O("div",null,[BC,e.hideProgress?$("",!0):(C(),S("div",IC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),LC=Ee(NC,[["__scopeId","data-v-5a15970d"]]),Th=ge({__name:"KSkeleton",props:{delayMilliseconds:{type:Number,required:!1,default:0},type:{type:String,default:"",validator:e=>vk.includes(e)},progress:{type:Number,required:!1,default:null},hideProgress:{type:Boolean,default:!1},cardCount:{type:Number,default:1},tableColumns:{type:Number,required:!1,default:6},tableRows:{type:Number,required:!1,default:6}},setup(e){const t=e,n=j(!1);return ft(()=>{setTimeout(()=>{n.value=!0},t.delayMilliseconds)}),(r,a)=>n.value?(C(),S("div",{key:0,class:q(["k-skeleton-container",{"is-spinner":e.type!=="spinner"}])},[e.type==="card"?(C(),se(pC,{key:0,"card-count":e.cardCount},{"card-header":F(()=>[z(r.$slots,"card-header")]),"card-content":F(()=>[z(r.$slots,"card-content")]),"card-footer":F(()=>[z(r.$slots,"card-footer")]),_:3},8,["card-count"])):e.type==="table"?(C(),se(gC,{key:1,columns:e.tableColumns,rows:e.tableRows},{default:F(()=>[z(r.$slots,"default")]),_:3},8,["columns","rows"])):e.type==="form"?(C(),se(xC,{key:2})):e.type==="fullscreen-kong"?(C(),se(AC,{key:3,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="fullscreen-generic"?(C(),se(LC,{key:4,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="spinner"?(C(),se(Be,{key:5,color:"#000",icon:"spinner",size:"18"})):(C(),se(oC,{key:6}))],2)):$("",!0)}}),RC={class:"empty-state-title"},$C={key:1,class:"k-empty-state-title-header"},HC={class:"empty-state-content"},FC={key:0,class:"k-empty-state-message"},zC={class:"k-empty-state-cta"},jC=ge({__name:"KEmptyState",props:{isError:{type:Boolean,default:!1},iconSize:{type:String,default:xw},icon:{type:String,default:""},ctaIsHidden:{type:Boolean,default:!1},ctaText:{type:String,default:""},handleClick:{type:Function,default:null},iconColor:{type:String,default:""},iconSecondaryColor:{type:String,default:""}},setup(e){return(t,n)=>(C(),S("section",{class:q(["empty-state-wrapper",{"is-error":e.isError}])},[O("div",RC,[e.isError||e.icon?(C(),S("div",{key:0,class:q(["k-empty-state-icon card-icon",{"warning-icon":e.isError}])},[G(Be,{color:e.isError?e.iconColor||`var(--black-70, var(--kui-color-text-neutral-strongest, ${pe(ww)}))`:e.iconColor,icon:e.icon?e.icon:"warning","secondary-color":e.isError?e.iconSecondaryColor||"currentColor":e.iconSecondaryColor,size:e.iconSize},null,8,["color","icon","secondary-color","size"])],2)):$("",!0),t.$slots.title?(C(),S("div",$C,[z(t.$slots,"title",{},void 0,!0)])):$("",!0)]),O("div",HC,[t.$slots.message?(C(),S("div",FC,[z(t.$slots,"message",{},void 0,!0)])):$("",!0),O("div",zC,[z(t.$slots,"cta",{},()=>[!e.ctaIsHidden&&e.ctaText?(C(),se(We,{key:0,appearance:"primary",size:"small",onClick:n[0]||(n[0]=Mt(()=>e.handleClick&&e.handleClick(),["prevent"]))},{default:F(()=>[J(V(e.ctaText),1)]),_:1})):$("",!0)],!0)])])],2))}}),ss=Ee(jC,[["__scopeId","data-v-147e1e00"]]),UC={class:"k-input-label"},ZC={key:0,class:"is-required"},YC=ge({__name:"KLabel",props:{help:{type:String,default:""},info:{type:String,default:""},required:{type:Boolean,default:!1},tooltipAttributes:{type:Object,default:()=>({})},testMode:{type:Boolean,default:!1}},setup(e){const t=e,n=It(),r=B(()=>!!(t.info||t.help||n.tooltip));return(a,o)=>(C(),S("label",UC,[z(a.$slots,"default",{},void 0,!0),e.required?(C(),S("span",ZC,"*")):$("",!0),r.value?(C(),se(ei,Ke({key:1},e.tooltipAttributes,{class:"label-tooltip","position-fixed":"","test-mode":!!e.testMode||void 0}),{content:F(()=>[z(a.$slots,"tooltip",{},()=>[J(V(e.help||e.info),1)],!0)]),default:F(()=>[G(Be,{color:`var(--black-25, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:e.help?"help":"infoFilled",size:pe(xt)},null,8,["color","icon","size"])]),_:3},16,["test-mode"])):$("",!0)]))}}),Ur=Ee(YC,[["__scopeId","data-v-5367d32d"]]),VC={class:"text-on-input"},KC=["for"],GC={key:0,class:"is-required"},WC=["id","aria-invalid","value"],qC=["id","aria-invalid","value"],QC=["aria-invalid","value"],XC={key:4,class:"help"},JC=["tabindex","onKeyup"],eE={inheritAttrs:!1},tE=ge({...eE,__name:"KInput",props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},help:{type:String,default:""},size:{type:String,default:"medium",validator:e=>uk.includes(e)},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:""},characterLimit:{type:Number,default:null,validator:e=>e>0},iconPosition:{type:String,default:"start",validator:e=>ck.includes(e)},testMode:{type:Boolean,default:!1}},emits:["input","update:modelValue","char-limit-exceeded"],setup(e,{emit:t}){const n=e,r=j(""),a=j(!1),o=j(!1),i=j(!1),s=j(null),{stripRequiredLabel:l}=kn(),u=It(),c=Xn(),d=B(()=>(c==null?void 0:c.disabled)!==void 0&&String(c==null?void 0:c.disabled)!=="false"),h=B(()=>(c==null?void 0:c.readonly)!==void 0&&String(c==null?void 0:c.readonly)!=="false"),f=B(()=>(c==null?void 0:c.required)!==void 0&&String(c==null?void 0:c.required)!=="false"),g=B(()=>c.id?String(c.id):n.testMode?"test-input-id-1234":an()),y=B(()=>l(n.label,f.value)),v=B(()=>{var k,A;return!!((k=n.labelAttributes)!=null&&k.help||(A=n.labelAttributes)!=null&&A.info||u["label-tooltip"])}),p=B({get(){return n.modelValue},set(k){I({target:{value:k}})}}),b=B(()=>{const k={...c};return delete k.class,delete k.input,delete k.onInput,k}),m=B(()=>{var k,A;const M=((k=r.value)==null?void 0:k.toString().length)||0,N=((A=n.modelValue)==null?void 0:A.toString().length)||0;let ee=M;return!a.value&&N&&(ee=N),!!n.characterLimit&&ee>n.characterLimit}),w=B(()=>m.value?a.value?`${r.value.toString().length} / ${n.characterLimit}`:`${n.modelValue.toString().length} / ${n.characterLimit}`:""),D=B(()=>!!c["onIcon:click"]);Le(m,(k,A)=>{k!==A&&t("char-limit-exceeded",{value:r.value,length:r.value.length,characterLimit:n.characterLimit,limitExceeded:k})}),Le(p,(k,A)=>{k!==A&&I({target:{value:k}})});const I=k=>{var A;const M=JSON.parse(JSON.stringify((A=k==null?void 0:k.target)==null?void 0:A.value));L(M)},L=k=>{r.value=k,a.value=!0,t("input",k),t("update:modelValue",k)},T=()=>r.value||a.value?r.value:n.modelValue,x=k=>{if(D.value){const A=c["onIcon:click"];typeof A=="function"&&A(k)}};return ft(()=>{s.value&&D.value&&(s.value.role="button")}),(k,A)=>(C(),S("div",{class:q(["k-input-wrapper",[k.$attrs.class,{"input-error":m.value||e.hasError||String(k.$attrs.class||"").includes("input-error")}]])},[e.label&&e.overlayLabel?(C(),S("div",{key:0,class:q(`k-input-label-wrapper-${e.size}`)},[O("div",VC,[O("label",Ke(e.labelAttributes,{class:{focused:o.value,hovered:i.value,disabled:d.value,readonly:h.value},for:g.value}),[O("span",null,V(y.value),1),f.value?(C(),S("span",GC,"*")):$("",!0)],16,KC),O("input",Ke(b.value,{id:g.value,"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onBlur:A[0]||(A[0]=()=>o.value=!1),onFocus:A[1]||(A[1]=()=>o.value=!0),onInput:I,onMouseenter:A[2]||(A[2]=()=>i.value=!0),onMouseleave:A[3]||(A[3]=()=>i.value=!1)}),null,16,WC)]),m.value||e.hasError?(C(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):e.label?(C(),S("div",{key:1,class:q(`k-input-label-wrapper-${e.size}`)},[G(Ur,Ke({for:g.value},e.labelAttributes,{required:f.value}),qa({default:F(()=>[J(V(y.value)+" ",1)]),_:2},[v.value?{name:"tooltip",fn:F(()=>[z(k.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("input",Ke(b.value,{id:g.value,"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onInput:I}),null,16,qC),m.value||e.hasError?(C(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):(C(),S("input",Ke({key:2},b.value,{"aria-invalid":e.hasError||m.value?"true":void 0,class:["form-control k-input",{[`k-input-${e.size}`]:e.size,[`has-icon icon-${e.iconPosition}`]:k.$slots.icon}],value:T(),onInput:I}),null,16,QC)),(m.value||e.hasError)&&!e.label?(C(),S("p",{key:3,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0),e.help?(C(),S("p",XC,V(e.help),1)):$("",!0),k.$slots.icon?(C(),S("div",{key:5,ref_key:"icon",ref:s,class:q(["input-icon",{clickable:D.value}]),tabindex:D.value?0:-1,onClick:x,onKeyup:jt(x,["enter"])},[z(k.$slots,"icon",{},void 0,!0)],42,JC)):$("",!0)],2))}}),xs=Ee(tE,[["__scopeId","data-v-b216eb8a"]]),nE=["data-testid"],rE={class:"k-select-item-container",role:"option"},aE=["disabled","value"],oE={class:"k-select-item-label"},iE={class:"k-select-selected-icon-container"},sE=ge({__name:"KSelectItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0&&e.value!==void 0}},emits:["selected"],setup(e,{emit:t}){const n=e,r=a=>{if(n.item.disabled){a.stopPropagation();return}t("selected",n.item)};return(a,o)=>(C(),S("div",{key:e.item.key,class:"k-select-item","data-testid":`k-select-item-${e.item.value}`,onClick:r},[O("div",rE,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value},[O("span",oE,[z(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",iE,[e.item.selected?(C(),se(Be,{key:0,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,aE)])],8,nE))}}),Fl=Ee(sE,[["__scopeId","data-v-58de5b07"]]),lE={class:"k-select-group-title"},uE=ge({__name:"KSelectItems",props:{items:{type:Array,required:!1,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)}},emits:["selected"],setup(e,{emit:t}){const n=e,r=s=>t("selected",s),a=B(()=>n.items.filter(s=>!s.group)),o=B(()=>[...new Set(n.items.filter(s=>s.group).map(s=>s.group))].sort((s,l)=>s.toLowerCase().localeCompare(l.toLowerCase()))),i=s=>n.items.filter(l=>l.group===s);return(s,l)=>(C(),S(Me,null,[(C(!0),S(Me,null,ot(a.value,u=>(C(),se(Fl,{key:u.key,item:u,onSelected:r},{content:F(()=>[z(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(C(!0),S(Me,null,ot(o.value,u=>(C(),S("div",{key:`${u}-group`,class:"k-select-group"},[O("span",lE,V(u),1),(C(!0),S(Me,null,ot(i(u),c=>(C(),se(Fl,{key:c.key,item:c,onSelected:r},{content:F(()=>[z(s.$slots,"content",{item:c},void 0,!0)]),_:2},1032,["item"]))),128))]))),128))],64))}}),cE=Ee(uE,[["__scopeId","data-v-39329325"]]),dE=e=>(Ln("data-v-c60e46e1"),e=e(),Rn(),e),hE=["id"],fE={class:"k-select-selected-item-label"},pE=["onKeyup"],mE=["id"],vE=["id"],gE={key:0,class:"custom-selected-item"},yE={key:1,class:"k-select-list"},bE={class:"select-item-description"},wE=dE(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),kE={inheritAttrs:!1},CE=ge({...kE,__name:"KSelect",props:{modelValue:{type:[String,Number],default:""},kpopAttributes:{type:Object,default:()=>({popoverClasses:""})},dropdownMaxHeight:{type:String,default:"300"},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},width:{type:String,default:""},placeholder:{type:String,default:""},appearance:{type:String,default:"dropdown",validator:e=>bk.includes(e)},buttonText:{type:String,default:""},items:{type:Array,required:!1,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)},positionFixed:{type:Boolean,default:!0},filterFunc:{type:Function,default:e=>e.items.filter(t=>{var n,r;return(r=t.label)==null?void 0:r.toLowerCase().includes((n=e.query)==null?void 0:n.toLowerCase())})},enableFiltering:{type:Boolean,default:null},autosuggest:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},dropdownFooterText:{type:String,default:""},dropdownFooterTextPosition:{type:String,default:"sticky"},reuseItemTemplate:{type:Boolean,default:!1},enableItemCreation:{type:Boolean,default:!1}},emits:["selected","input","change","update:modelValue","query-change","item:added","item:removed"],setup(e,{emit:t}){const n=e;bs(R=>({"4076af2a":A.value}));const{getSizeFromString:r,stripRequiredLabel:a}=kn(),o={popoverClasses:"k-select-popover",popoverTimeout:0,placement:"bottomStart",hideCaret:!0},i=Xn(),s=It(),l=B(()=>i.required!==void 0&&String(i.required)!=="false"),u=B(()=>a(n.label,l.value)),c=B(()=>{var R,K;return!!((R=n.labelAttributes)!=null&&R.help||(K=n.labelAttributes)!=null&&K.info||s["label-tooltip"])}),d=j(""),h=B(()=>{var R,K;return!(!d.value||(K=(R=p.value)==null?void 0:R.filter(H=>H.label===d.value))!=null&&K.length)}),f=j(null),g=B(()=>n.testMode?"test-select-id-1234":an()),y=B(()=>n.testMode?"test-select-input-id-1234":an()),v=B(()=>n.testMode?"test-select-text-id-1234":an()),p=j([]),b=j(!1),m=j(!1),w=j(null),D=B({get(){return n.modelValue},set(R){var K;const H=(K=p.value)==null?void 0:K.filter(te=>te.value===R);H!=null&&H.length?Re(H[0]):R||Ue()}}),I=B(()=>n.autosuggest?!0:n.enableFiltering!==null?n.appearance==="button"?!1:n.enableFiltering:n.appearance==="dropdown"),L=B(()=>{let R="";return n.width?R=n.width:(R="205",n.appearance==="button"&&(R="230")),r(R)}),T=B(()=>({width:L.value})),x=B(()=>{const R={...i};return delete R.class,R}),k=B(()=>({...o,...n.kpopAttributes,popoverClasses:`${o.popoverClasses} ${n.kpopAttributes.popoverClasses} k-select-pop-${n.appearance}`,width:String(je.value),maxWidth:String(je.value),disabled:i.disabled!==void 0&&String(i.disabled)!=="false"||i.readonly!==void 0&&String(i.readonly)!=="false"})),A=B(()=>r(n.dropdownMaxHeight)),M=B(()=>({...k.value})),N=B(()=>n.autosuggest?p.value:n.filterFunc({items:p.value,query:d.value})),ee=B(()=>n.placeholder?n.placeholder:i.placeholder?i.placeholder:n.appearance==="button"||!I.value?"Select an item":"Filter..."),ae=B(()=>n.buttonText&&f.value?n.buttonText:f.value?f.value.label:ee.value),oe=B(()=>n.appearance==="select"&&n.clearable&&!!f.value),Q=B(()=>!!(f.value&&n.appearance==="select"&&(s["selected-item-template"]||n.reuseItemTemplate&&s["item-template"]))),ye=R=>{if(!I.value)return R.preventDefault(),!1},_e=()=>{var R,K;if(!n.enableItemCreation||!d.value||!h.value)return;const H=(((R=p.value)==null?void 0:R.length)||0)+1,te={label:d.value+"",value:n.testMode?`test-multiselect-added-item-${H}`:an(),key:`${(K=d.value.replace(/ /gi,"-"))==null?void 0:K.replace(/[^a-z0-9-_]/gi,"")}-${H}`,custom:!0};t("item:added",te),Re(te,!0),d.value=""},Re=(R,K)=>{var H,te;K&&((H=p.value)==null||H.push(R)),(te=p.value)==null||te.forEach((E,_)=>{var P,Z,Y;E.key===R.key?(E.selected=!0,E.key=(P=E==null?void 0:E.key)!=null&&P.includes("-selected")?E.key:`${E.key}-selected`,f.value=E):E.selected?(E.selected=!1,E.key=(Z=E==null?void 0:E.key)==null?void 0:Z.replace(/-selected/gi,""),E.custom&&((Y=p.value)==null||Y.splice(_,1),t("item:removed",E))):E.selected=!1}),d.value=n.appearance==="dropdown"?"":R.label,t("selected",R),t("input",R.value),t("change",R),t("update:modelValue",R.value)},Ue=()=>{var R;(R=p.value)==null||R.forEach((K,H)=>{var te,E;K.selected=!1,K.key=(te=K==null?void 0:K.key)==null?void 0:te.replace(/-selected/gi,""),K.custom&&((E=p.value)==null||E.splice(H,1),t("item:removed",K))}),f.value=null,n.appearance==="select"&&(d.value=""),t("input",null),t("change",null),t("update:modelValue",null)},ze=(R,K)=>{if(R.keyCode===27){K.value=!1;return}const H=document.getElementById(v.value);!K.value&&H&&H.click()},fe=R=>{d.value=R,t("query-change",R)},$e=()=>{m.value=!0,b.value||(b.value=!0,t("query-change",""))},Ae=()=>{m.value=!1};Le(D,(R,K)=>{var H;if(R!==K){const te=(H=p.value)==null?void 0:H.filter(E=>E.value===R);te!=null&&te.length?Re(te[0]):R||Ue()}}),Le(()=>n.items,(R,K)=>{var H,te,E,_;if(JSON.stringify(R)!==JSON.stringify(K)){p.value=JSON.parse(JSON.stringify(n.items));for(let P=0;P<((H=p.value)==null?void 0:H.length);P++)p.value[P].selected===void 0&&(p.value[P].selected=!1),p.value[P].key=`${(E=(te=p.value[P].label)==null?void 0:te.replace(/ /gi,"-"))==null?void 0:E.replace(/[^a-z0-9-_]/gi,"")}-${P}`||`k-select-item-label-${P}`,(p.value[P].value===n.modelValue||p.value[P].selected)&&(p.value[P].selected=!0,f.value=p.value[P],p.value[P].key+="-selected",n.appearance==="select"&&!m.value&&(d.value=f.value.label)),((_=f.value)==null?void 0:_.value)===p.value[P].value&&(p.value[P].selected=!0);w.value&&typeof w.value.updatePopper=="function"&&on(()=>{w.value.updatePopper()})}},{deep:!0,immediate:!0});const je=j(0),U=()=>{const R=document.getElementById(y.value);R&&(je.value=R.offsetWidth)};return(R,K)=>(C(),S("div",{class:q(["k-select",[R.$attrs.class]]),style:Et(T.value)},[e.label&&!e.overlayLabel?(C(),se(Ur,Ke({key:0},e.labelAttributes,{"data-testid":"k-select-label",for:g.value,required:l.value}),qa({default:F(()=>[J(V(u.value)+" ",1)]),_:2},[c.value?{name:"tooltip",fn:F(()=>[z(R.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):$("",!0),O("div",{id:g.value,"data-testid":"k-select-selected-item"},[f.value&&e.appearance==="dropdown"?(C(),S("div",{key:0,class:q(["k-select-item-selection",{"overlay-label-item-selection":e.overlayLabel}])},[z(R.$slots,"selected-item-template",{item:f.value},()=>[O("div",fE,V(f.value.label),1)],!0),O("button",{class:"clear-selection-icon",onClick:Ue,onKeyup:jt(Ue,["enter"])},[G(Be,{color:"currentColor",icon:"clear"})],40,pE)],2)):$("",!0),G(pe(Iu),null,{default:F(({toggle:H,isToggled:te})=>[G(Jo,Ke({ref_key:"popper",ref:w},M.value,{"on-popover-click":()=>(H(),te.value),"position-fixed":e.positionFixed,target:`[id='${y.value}']`,"test-mode":!!e.testMode||void 0,onClosed:()=>{f.value&&e.appearance==="select"&&(d.value=f.value.label),te.value&&H()},onOpened:()=>{d.value="",H(),U()}}),{content:F(()=>[e.autosuggest&&e.loading?z(R.$slots,"loading",{key:0},()=>[G(Be,{class:"k-select-loading","data-testid":"k-select-loading",icon:"spinner"})],!0):(C(),S("div",yE,[G(cE,{items:N.value,onSelected:Re},{content:F(({item:E})=>[z(R.$slots,"item-template",{class:"select-item-label select-item-desc",item:E},void 0,!0)]),_:3},8,["items"]),!N.value.length&&!R.$slots.empty&&!e.enableItemCreation?(C(),se(Fl,{key:"k-select-empty-state",class:"k-select-empty-item",item:{label:"No results",value:"no_results"}})):$("",!0),!N.value.length&&h.value&&!R.$slots.empty&&e.enableItemCreation?(C(),se(Fl,{key:"k-select-new-item",class:"k-select-new-item","data-testid":"k-select-add-item",item:{label:`${d.value} (Add new value)`,value:"add_item"},onSelected:_e},{content:F(()=>[O("div",bE,[J(V(d.value)+" ",1),wE])]),_:1},8,["item"])):$("",!0)])),!e.loading&&!N.value.length?z(R.$slots,"empty",{key:2},void 0,!0):$("",!0),R.$slots["dropdown-footer-text"]||e.dropdownFooterText?(C(),S("div",{key:3,class:q(["k-select-dropdown-footer-text",`k-select-dropdown-footer-${e.dropdownFooterTextPosition}`])},[z(R.$slots,"dropdown-footer-text",{},()=>[J(V(e.dropdownFooterText),1)],!0)],2)):$("",!0)]),default:F(()=>[e.appearance==="button"?(C(),S("div",{key:0,id:y.value,class:"k-select-button","data-testid":"k-select-input",role:"listbox",style:{position:"relative"}},[G(We,Ke({id:v.value},x.value,{appearance:"btn-link","is-rounded":!1,"show-caret":"",style:T.value,onKeyup:E=>ze(E,te)}),{default:F(()=>[z(R.$slots,"selected-item-template",{item:f.value},()=>[J(V(ae.value),1)],!0)]),_:2},1040,["id","style","onKeyup"])],8,mE)):(C(),S("div",{key:1,id:y.value,class:q(["select-input-container",{"k-select-input":e.appearance==="select","no-filter":!I.value,"is-readonly":R.$attrs.readonly!==void 0&&String(R.$attrs.readonly)!=="false",disabled:R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false","is-open":te.value}]),"data-testid":"k-select-input",role:"listbox",style:{position:"relative"},onClick:K[0]||(K[0]=E=>{R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false"&&E.stopPropagation()})},[oe.value?(C(),se(We,{key:0,class:"clear-selection-icon",onClick:Ue,onKeyup:jt(Ue,["enter"])},{default:F(()=>[G(Be,{color:`var(--grey-500, ${pe(Ho)})`,icon:"clear",size:pe(xt)},null,8,["color","size"])]),_:1},8,["onKeyup"])):$("",!0),e.appearance==="select"?(C(),se(Be,{key:1,class:q({"overlay-label-chevron":e.overlayLabel}),color:`var(--grey-500, ${pe(Ho)})`,icon:"chevronDown",size:pe(xt)},null,8,["class","color","size"])):$("",!0),G(xs,Ke({id:v.value},x.value,{autocapitalize:"off",autocomplete:"off",class:["k-select-input",{"no-filter":!I.value,"input-placeholder-dark has-chevron":e.appearance==="select","input-placeholder-transparent":Q.value&&(!I.value||!te.value),"has-clear":oe.value,"is-readonly":R.$attrs.readonly!==void 0&&String(R.$attrs.readonly)!=="false",disabled:R.$attrs.disabled!==void 0&&String(R.$attrs.disabled)!=="false"}],label:e.label&&e.overlayLabel?u.value:void 0,"model-value":d.value,"overlay-label":e.overlayLabel,placeholder:f.value&&e.appearance==="select"&&!I.value?f.value.label:ee.value,onBlur:Ae,onFocus:$e,onKeypress:ye,onKeyup:E=>ze(E,te),"onUpdate:modelValue":fe}),null,16,["id","class","label","model-value","overlay-label","placeholder","onKeyup"]),G(ja,{name:"fade"},{default:F(()=>[Q.value&&(!I.value||!te.value)?(C(),S("div",gE,[z(R.$slots,"selected-item-template",{item:f.value},()=>[z(R.$slots,"item-template",{item:f.value},void 0,!0)],!0)])):$("",!0)]),_:2},1024)],10,vE))]),_:2},1040,["on-popover-click","position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,hE)],6))}}),Wg=Ee(CE,[["__scopeId","data-v-c60e46e1"]]),EE={class:"pagination-offset-button-container"},xE=ge({__name:"PaginationOffset",props:{prevButtonDisabled:{type:Boolean,default:!1},nextButtonDisabled:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["getPrevOffset","getNextOffset"],setup(e,{emit:t}){const n=e,r=()=>{n.nextButtonDisabled||t("getNextOffset")},a=()=>{n.prevButtonDisabled||t("getPrevOffset")};return(o,i)=>{const s=Gn("KButton");return C(),S("div",EE,[G(s,{"aria-label":"Go to the previous page",class:q(["pagination-button",{disabled:e.prevButtonDisabled}]),"data-testid":"prev-btn",onClick:Mt(a,["prevent"])},{icon:F(()=>[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.prevButtonDisabled}]),color:"currentColor",icon:"arrowLeft",size:pe(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"]),G(s,{"aria-label":"Go to the next page",class:q(["pagination-button",{disabled:e.nextButtonDisabled}]),"data-testid":"next-btn",onClick:Mt(r,["prevent"])},{icon:F(()=>[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.nextButtonDisabled}]),color:"currentColor",icon:"arrowRight",size:pe(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"])])}}}),SE=Ee(xE,[["__scopeId","data-v-b4a207f3"]]),_E={"aria-label":"Pagination Navigation","data-testid":"k-pagination-container"},TE={class:"card-pagination-bar"},DE={class:"pagination-text","data-testid":"visible-items"},ME={class:"pagination-text-pages"},AE={class:"pagination-button-container"},OE=["onClick"],PE={key:0,class:"pagination-button","data-testid":"page-1-btn"},BE={key:1,class:"pagination-button placeholder"},IE=["data-testid"],NE=["aria-current","aria-label","onClick"],LE={key:2,class:"pagination-button placeholder"},RE={key:3,class:"pagination-button"},$E=["onClick"],HE={class:"page-size-select","data-testid":"page-size-dropdown"},FE=ge({__name:"KPagination",props:{items:{type:Array,default:()=>[]},totalCount:{type:Number,default:0},pageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},initialPageSize:{type:Number,default:null},neighbors:{type:Number,default:1},searchTriggered:{type:Boolean,default:!1},currentPage:{type:Number,default:null},disablePageJump:{type:Boolean,default:!1},paginationType:{type:String,default:"default",validator:e=>["default","offset"].includes(e)},offsetPrevButtonDisabled:{type:Boolean,default:!1},offsetNextButtonDisabled:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["pageChanged","pageSizeChanged","getNextOffset","getPrevOffset"],setup(e,{emit:t}){const n=e,r={placement:"top"},a=j(n.currentPage?n.currentPage:1),o=j(n.initialPageSize?n.initialPageSize:n.pageSizes[0]),i=B(()=>Math.ceil(n.totalCount/o.value)),s=n.pageSizes.map((A,M)=>({label:`${A}`,key:`size-${M}`,value:A})),l=j(""),u=(A,M,N,ee)=>{if(n.disablePageJump)return[];let ae=[...Array(M).keys()].map(Q=>Q+1);const oe=5+2*n.neighbors;return ae.length<=oe||(N?N&&ee?ae=ae.filter(Q=>Q>A-n.neighbors-1&&QQ>M-n.neighbors*2-3)):ae=ae.filter(Q=>Q<=n.neighbors*2+3)),ae},c=j(a.value===1),d=j(a.value===i.value),h=B(()=>(a.value-1)*o.value+1),f=B(()=>{const A=h.value-1+o.value;return A>n.totalCount?n.totalCount:A}),g=B(()=>`${h.value} to ${f.value}`),y=B(()=>` of ${n.totalCount}`),v=B(()=>n.currentPage?n.currentPage:a.value),p=j(!1),b=j(i.value>5+2*n.neighbors),m=j(u(v.value,i.value,!1,i.value>5+2*n.neighbors)),w=()=>{d.value||(a.value++,L())},D=()=>{c.value||(a.value--,L())},I=A=>{a.value=A,L()},L=()=>{const A=(a.value-1)*o.value+o.value;d.value=A>=n.totalCount,c.value=a.value===1;const M=5+2*n.neighbors;i.value<=M?(p.value=!1,b.value=!1):(p.value=a.value>=n.neighbors+4,b.value=a.value<=i.value-n.neighbors-3),m.value=u(a.value,i.value,p.value,b.value),t("pageChanged",{page:a.value,pageCount:i.value,firstItem:h.value,lastItem:f.value,visibleItems:n.items.slice(h.value-1,f.value)})},T=A=>{o.value=A.value,l.value=o.value+" items per page",t("pageSizeChanged",{pageSize:o.value,pageCount:i.value}),n.currentPage!==1&&I(1)},x=()=>{t("getNextOffset")},k=()=>{t("getPrevOffset")};return Le(()=>n.currentPage,(A,M)=>{A!==M&&I(A)}),Le(i,(A,M)=>{A!==M&&(m.value=u(v.value,A,!1,A>5+2*n.neighbors),d.value=a.value===A,b.value=A>5+2*n.neighbors)}),(A,M)=>(C(),S("nav",_E,[O("div",TE,[e.paginationType==="default"?(C(),S(Me,{key:0},[O("span",DE,[O("span",ME,V(g.value),1),J(" "+V(y.value),1)]),O("ul",AE,[O("li",{class:q(["pagination-button square",{disabled:c.value}]),"data-testid":"prev-btn"},[O("a",{"aria-label":"Go to the previous page",href:"#",onClick:Mt(D,["prevent"])},[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":c.value}]),color:"currentColor",icon:"arrowLeft",size:pe(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,OE)],2),!e.disablePageJump&&p.value?(C(),S("li",PE,[O("a",{"aria-label":"Go to the first page",href:"#",onClick:M[0]||(M[0]=Mt(N=>I(1),["prevent"]))},"1")])):$("",!0),!e.disablePageJump&&p.value?(C(),S("li",BE," ... ")):$("",!0),(C(!0),S(Me,null,ot(m.value,N=>(C(),S("li",{key:N,class:q(["pagination-button",{active:N==v.value}]),"data-testid":`page-${N}-btn`},[O("a",{"aria-current":N==v.value&&"page"||void 0,"aria-label":`Go to page ${N}`,href:"#",onClick:Mt(ee=>I(N),["prevent"])},V(N),9,NE)],10,IE))),128)),!e.disablePageJump&&b.value?(C(),S("li",LE," ... ")):$("",!0),!e.disablePageJump&&b.value?(C(),S("li",RE,[O("a",{"aria-label":"Go to the last page","data-testid":"last-btn",href:"#",onClick:M[1]||(M[1]=Mt(N=>I(i.value),["prevent"]))},V(i.value),1)])):$("",!0),O("li",{class:q(["pagination-button square",{disabled:d.value}]),"data-testid":"next-btn"},[O("a",{"aria-label":"Go to the next page",href:"#",onClick:Mt(w,["prevent"])},[G(Be,{class:q(["pagination-arrow-icon",{"is-direction-disabled":d.value}]),color:"currentColor",icon:"arrowRight",size:pe(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,$E)],2)])],64)):(C(),se(SE,{key:1,"next-button-disabled":e.offsetNextButtonDisabled,"prev-button-disabled":e.offsetPrevButtonDisabled,onGetNextOffset:x,onGetPrevOffset:k},null,8,["next-button-disabled","prev-button-disabled"])),O("span",HE,[G(Wg,{appearance:"button","button-text":l.value,items:pe(s),"kpop-attributes":r,placeholder:`${o.value} items per page`,"position-fixed":"","test-mode":!!e.testMode||void 0,width:"205",onSelected:T},null,8,["button-text","items","placeholder","test-mode"])])])]))}}),Dh=Ee(FE,[["__scopeId","data-v-cb4f4c10"]]),zE=ge({__name:"KCatalogItem",props:{item:{type:Object,default:()=>({})},truncate:{type:Boolean,default:!0},testMode:{type:Boolean,default:!1}},emits:["clicked"],setup(e,{emit:t}){const n=(r,a)=>{t("clicked",{evt:r,item:a})};return(r,a)=>(C(),se(_h,{class:"k-card-catalog-item","data-testid":e.item&&e.item.title?`${e.item.title.replace(/[^0-9a-z]/gi,"-")}-catalog-item`:"catalog-item","has-hover":"",role:"button",tabindex:"0","test-mode":!!e.testMode||void 0,onClick:a[0]||(a[0]=o=>n(o,e.item))},{title:F(()=>[z(r.$slots,"cardTitle",{},()=>[J(V(e.item?e.item.title:""),1)],!0)]),actions:F(()=>[z(r.$slots,"cardActions",{},void 0,!0)]),body:F(()=>[O("div",{class:q({"multi-line-truncate":e.truncate})},[z(r.$slots,"cardBody",{},()=>[J(V(e.item?e.item.description:""),1)],!0)],2)]),_:3},8,["data-testid","test-mode"]))}}),qg=Ee(zE,[["__scopeId","data-v-6e0fea39"]]),jE={class:"k-card-catalog"},UE={key:0,class:"k-card-catalog-title","data-testid":"k-catalog-title"},ZE={key:1,class:"k-catalog-toolbar","data-testid":"k-catalog-toolbar"},YE={class:"k-catalog-skeleton-footer-container"},VE={key:3,class:"k-catalog-error-state","data-testid":"k-card-catalog-error-state"},KE={key:4,class:"k-catalog-empty-state","data-testid":"k-card-catalog-empty-state"},GE=["data-tableid"],WE={key:0,class:"card-pagination","data-testid":"k-catalog-pagination"},qE=ge({__name:"KCatalog",props:{isLoading:{type:Boolean,default:!1},cardSize:{type:String,default:"medium",validator:e=>rk.includes(e)},title:{type:String,default:""},noTruncation:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateActionButtonIcon:{type:String,default:""},emptyStateIcon:{type:String,default:""},emptyStateIconColor:{type:String,default:""},emptyStateIconSize:{type:String,default:"50"},hasError:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},errorStateIcon:{type:String,default:""},errorStateIconColor:{type:String,default:""},errorStateIconSize:{type:String,default:"50"},fetcher:{type:Function,required:!0},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:String,default:""},searchInput:{type:String,default:""},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:[String,Boolean],default:!1}},emits:["kcatalog-error-cta-clicked","kcatalog-empty-state-cta-clicked","update:catalog-preferences","state"],setup(e,{emit:t}){const n=e,{useRequest:r,useDebounce:a,useSwrvState:o}=kn(),i=It(),s=B(()=>n.testMode?"test-catalog-id-1234":an()),l={page:1,pageSize:15,query:""},u=j([]),c=j(0),d=j(""),h=j(1),f=j(15),g=j(!1),y=B(()=>!!i.toolbar),v=B(()=>({pageSize:f.value})),p=j(!0),b=async()=>{var fe;const $e=n.searchInput,Ae=await n.fetcher({query:$e||d.value,pageSize:f.value,page:h.value});return u.value=Ae.data,c.value=n.paginationTotalItems||Ae.total||((fe=Ae.data)==null?void 0:fe.length),p.value=!1,Ae},m=()=>{const fe={...l,...n.initialFetcherParams};h.value=fe.page??l.page,f.value=fe.pageSize??l.pageSize,d.value=fe.query??l.query,g.value=!0},w=B(()=>{if(!n.fetcher||!g.value)return"";let fe=s.value;return n.cacheIdentifier&&(fe=n.cacheIdentifier),n.fetcherCacheKey&&(fe+=`-${n.fetcherCacheKey}`),`k-catalog_${fe}`}),D=j(""),{debouncedFn:I,generateDebouncedFn:L}=a(fe=>{D.value=fe},350),T=L(0),{data:x,error:k,revalidate:A,isValidating:M}=r(()=>w.value,()=>b(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:N,hasData:ee,swrvState:ae}=o(x,k,M),oe=j(!0),Q=B(()=>({hasData:ee.value,state:N.value})),ye=B(()=>oe.value?"loading":k.value?"error":"success"),_e=({page:fe})=>{h.value=fe},Re=({pageSize:fe})=>{f.value=fe,h.value=1},Ue=fe=>fe.toLowerCase().replace(/[^[a-z0-9]/gi,"-");Le(x,fe=>{fe!=null&&fe.length&&!u.value.length&&(u.value=fe)},{deep:!0,immediate:!0}),Le(N,()=>{switch(N.value){case ae.PENDING:oe.value=!0;break;case ae.VALIDATING_HAS_DATA:oe.value=ze.value;break;default:oe.value=!1;break}},{immediate:!0}),Le([Q,ye],fe=>{var $e;t("state",{state:fe==null?void 0:fe[1],hasData:($e=fe==null?void 0:fe[0])==null?void 0:$e.hasData})}),Le(()=>n.searchInput,fe=>{h.value!==1&&(h.value=1),fe===""?T(fe):I(fe)},{immediate:!0});const ze=j(!1);return Le([D,h,f],async(fe,$e)=>{const Ae=$e==null?void 0:$e[0],je=fe[0],U=fe[1];je!==Ae&&U!==1&&(h.value=1),g.value&&!p.value&&(ze.value=!0,await A(),ze.value=!1)},{deep:!0,immediate:!0}),Le(v,fe=>{t("update:catalog-preferences",fe)}),ft(()=>{m()}),(fe,$e)=>(C(),S("div",jE,[e.title?(C(),S("div",UE,[O("h3",null,V(e.title),1)])):$("",!0),y.value?(C(),S("div",ZE,[z(fe.$slots,"toolbar",{state:Q.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(oe.value||e.isLoading||ze.value)&&!e.hasError?(C(),se(Th,{key:2,"card-count":4,class:"k-skeleton-grid","data-testid":"k-catalog-skeleton",type:"card"},{"card-header":F(()=>[G(Dt,{class:"k-catalog-skeleton-header",width:"6"})]),"card-content":F(()=>[G(Dt,{width:"75"})]),"card-footer":F(()=>[O("div",YE,[G(Dt,{width:"2"}),G(Dt,{width:"5"})])]),_:1})):e.hasError?(C(),S("div",VE,[z(fe.$slots,"error-state",{},()=>[G(ss,{"cta-is-hidden":!e.errorStateActionMessage||!e.errorStateActionRoute,icon:e.errorStateIcon||"","icon-color":e.errorStateIconColor,"icon-size":e.errorStateIconSize,"is-error":""},{title:F(()=>[J(V(e.errorStateTitle),1)]),message:F(()=>[J(V(e.errorStateMessage),1)]),cta:F(()=>[e.errorStateActionMessage?(C(),se(We,{key:0,appearance:"primary","data-testid":Ue(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:$e[0]||($e[0]=Ae=>fe.$emit("kcatalog-error-cta-clicked"))},{default:F(()=>[J(V(e.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):!e.hasError&&!oe.value&&!e.isLoading&&!ze.value&&u.value&&!u.value.length?(C(),S("div",KE,[z(fe.$slots,"empty-state",{},()=>[G(ss,{"cta-is-hidden":!e.emptyStateActionMessage||!e.emptyStateActionRoute,icon:e.emptyStateIcon||"","icon-color":e.emptyStateIconColor,"icon-size":e.emptyStateIconSize},{title:F(()=>[J(V(e.emptyStateTitle),1)]),message:F(()=>[J(V(e.emptyStateMessage),1)]),cta:F(()=>[e.emptyStateActionMessage?(C(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Ue(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:$e[1]||($e[1]=Ae=>fe.$emit("kcatalog-empty-state-cta-clicked"))},{default:F(()=>[J(V(e.emptyStateActionMessage),1)]),_:1},8,["appearance","data-testid","icon","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):(C(),S("div",{key:5,class:q(["k-catalog-page",`k-card-${e.cardSize}`]),"data-tableid":s.value},[z(fe.$slots,"body",{data:u.value},()=>[(C(!0),S(Me,null,ot(u.value,(Ae,je)=>(C(),se(qg,{key:Ae.key?Ae.key:`k-catalog-item-${je}`,class:"catalog-item","data-testid":Ae.id?Ae.id:`k-catalog-item-${je}`,item:Ae,"test-mode":!!e.testMode||void 0,truncate:!e.noTruncation},{cardTitle:F(()=>[z(fe.$slots,"cardTitle",{item:Ae},()=>[J(V(Ae.title),1)],!0)]),cardActions:F(()=>[z(fe.$slots,"cardActions",{item:Ae},void 0,!0)]),cardBody:F(()=>[z(fe.$slots,"cardBody",{item:Ae},()=>[J(V(Ae.description),1)],!0)]),_:2},1032,["data-testid","item","test-mode","truncate"]))),128))],!0),!e.disablePagination&&e.fetcher&&!(e.hidePaginationWhenOptional&&c.value<=e.paginationPageSizes[0])?(C(),S("div",WE,[G(Dh,{class:"k-catalog-pagination","current-page":h.value,"disable-page-jump":e.disablePaginationPageJump,"initial-page-size":f.value,neighbors:e.paginationNeighbors,"page-sizes":e.paginationPageSizes,"test-mode":!!e.testMode||void 0,"total-count":c.value,onPageChanged:_e,onPageSizeChanged:Re},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","page-sizes","test-mode","total-count"])])):$("",!0)],10,GE))]))}}),QE=Ee(qE,[["__scopeId","data-v-b1313874"]]),XE=["id","checked"],JE={key:1,class:"k-checkbox-description"},ex={inheritAttrs:!1},tx=ge({...ex,__name:"KCheckbox",props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},description:{type:String,default:""},testMode:{type:Boolean,default:!1}},emits:["change","input","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=Xn(),o=B(()=>a.id?String(a.id):n.testMode?"test-radio-input-id-1234":an()),i=B(()=>!!(n.label||r.default)),s=B(()=>(a==null?void 0:a.disabled)!==void 0&&String(a==null?void 0:a.disabled)!=="false"),l=B(()=>i.value&&(!!n.description||!!r.description)),u=B(()=>!!r.tooltip),c=B(()=>{const h={...a};return delete h.class,h}),d=h=>{t("change",h.target.checked),t("input",h.target.checked),t("update:modelValue",h.target.checked)};return(h,f)=>(C(),S("div",{class:q(["k-checkbox",[h.$attrs.class,{disabled:s.value}]])},[O("input",Ke({id:o.value,checked:e.modelValue},c.value,{class:"k-input",type:"checkbox",onChange:d}),null,16,XE),i.value?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:["k-checkbox-label",{"has-desc":l.value}],for:o.value}),qa({default:F(()=>[z(h.$slots,"default",{},()=>[J(V(e.label),1)],!0)]),_:2},[u.value?{name:"tooltip",fn:F(()=>[z(h.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["class","for"])):$("",!0),l.value?(C(),S("div",JE,[z(h.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2))}}),nx=Ee(tx,[["__scopeId","data-v-60490fce"]]);function rx(e,t){let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},t)}}const ax=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class ox{constructor(t,n){Na(this,"commands"),Na(this,"keyMap"),Na(this,"boundTriggerShortcuts"),this.commands=n,this.keyMap=Object.fromEntries(Object.entries(t).map(([r,a])=>[r.toLowerCase(),a])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(t){ix(t,this.keyMap,this.commands)}}function ix(e,t,n){const r=sx(e.code),a=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",r].filter(s=>s!=="").join("+"),o=t[a];if(!o)return;const i=n[o];i.isAllowedContext&&!i.isAllowedContext(e)||(i.shouldPreventDefaultAction&&e.preventDefault(),!(i.isDisabled&&i.isDisabled())&&i.trigger(e))}function sx(e){return ax.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}const eo=e=>(Ln("data-v-dad3afd6"),e=e(),Rn(),e),lx=["id"],ux={key:0,class:"k-code-block-actions"},cx={class:"k-search-container"},dx=["for"],hx=eo(()=>O("span",{class:"visually-hidden"},"Search",-1)),fx=[hx],px=["id"],mx={key:0,class:"k-code-block-search-error"},vx=eo(()=>O("span",{class:"visually-hidden"},"Clear query",-1)),gx={class:"k-search-actions"},yx=eo(()=>O("span",{class:"visually-hidden"},"RegExp mode enabled",-1)),bx=eo(()=>O("span",{class:"visually-hidden"},"Filter mode enabled",-1)),wx=eo(()=>O("span",{class:"visually-hidden"},"Previous match",-1)),kx=eo(()=>O("span",{class:"visually-hidden"},"Next match",-1)),Cx={class:"k-code-block-content"},Ex={key:0,class:"k-filtered-code-block","data-testid":"k-code-block-filtered-code-block"},xx={key:0,class:"k-line-number-rows"},Sx=["id","href"],_x=["innerHTML"],Tx={key:0,class:"k-line-number-rows"},Dx=["id","href"],Mx=["innerHTML"],Ax={key:2,class:"k-code-block-secondary-actions"},Ox=eo(()=>O("span",{class:"visually-hidden"},"Copy",-1)),Px=ge({__name:"KCodeBlock",props:{id:{type:String,required:!0},code:{type:String,required:!0},language:{type:String,required:!0},isSearchable:{type:Boolean,required:!1,default:!1},isProcessing:{type:Boolean,required:!1,default:!1},query:{type:String,required:!1,default:""},showCopyButton:{type:Boolean,required:!1,default:!0},showLineNumberLinks:{type:Boolean,required:!1,default:!1},theme:{type:String,required:!1,default:"light"},isSingleLine:{type:Boolean,required:!1,default:!1}},emits:["code-block-render","matching-lines-change","query-change"],setup(e,{emit:t}){var n,r;const a=e,o=(r=(n=window==null?void 0:window.navigator)==null?void 0:n.platform)!=null&&r.toLowerCase().includes("mac")?"Options":"Alt",i=rx(ye,150),s=It(),l=j(a.query),u=j(!1),c=j(!1),d=j(!1),h=j(null),f=j(null),g=j(null),y=j(null),v=j(0),p=j([]),b=j(null),m=B(()=>Array.from({length:a.code.split(` `).length},(H,te)=>te+1)),w=B(()=>m.value[m.value.length-1].toString().length+"ch"),D=B(()=>a.id.toLowerCase().replace(/\s+/g,"-")),I=B(()=>a.isProcessing||u.value),L=B(()=>d.value&&T.value!==""),T=B(()=>l.value===""?"":a.code.split(` `).filter((H,te)=>p.value.includes(te+1)).map(H=>{try{const te=new RegExp(l.value,"gi");return H.replace(te,E=>`${E}`)}catch{return H}}).join(` `)),x=H=>H.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),k=B(()=>a.isSingleLine?x(a.code).replaceAll(` -`,""):x(a.code));Le(()=>a.code,async function(){await on(),ee(),_e()}),Le(()=>c.value,function(){_e()}),Le(()=>L.value,async function(){var H,te;((H=document==null?void 0:document.activeElement)==null?void 0:H.tagName)==="PRE"&&((te=f.value)==null||te.focus({preventScroll:!0})),L.value||(await on(),ee(),_e())});const A={"alt+c":"copyCode","alt+f":"toggleFilterMode","alt+g":"toggleFilterMode","alt+r":"toggleRegExpMode",f3:"jumpToNextMatch","shift+f3":"jumpToPreviousMatch"},M={toggleFilterMode:{trigger:Ae,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0},toggleRegExpMode:{trigger:$e,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0},jumpToNextMatch:{trigger:je,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},isDisabled:()=>p.value.length===0||d.value,shouldPreventDefaultAction:!0},jumpToPreviousMatch:{trigger:U,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},isDisabled:()=>p.value.length===0||d.value,shouldPreventDefaultAction:!0},copyCode:{trigger:K,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0}},N=new ox(A,M);ft(function(){N.registerListener(),g.value instanceof HTMLInputElement&&a.query!==""&&(g.value.value=a.query),ee(),_e()}),Wa(function(){N.unRegisterListener()});function ee(){var H;const te=(H=f.value)==null?void 0:H.querySelector(".k-highlighted-code-block"),E=te==null?void 0:te.querySelector("code");te instanceof HTMLElement&&E instanceof HTMLElement&&t("code-block-render",oe(te,E))}function ae(){var H;const te=(H=f.value)==null?void 0:H.querySelector(".k-highlighted-code-block"),E=te==null?void 0:te.querySelector("code");te instanceof HTMLElement&&E instanceof HTMLElement&&t("matching-lines-change",oe(te,E))}function oe(H,te){return{preElement:H,codeElement:te,code:a.code,language:a.language,query:l.value,matchingLineNumbers:p.value}}function Q(H){const te=H.target;te.value!==l.value&&(u.value=!0,i(te.value))}function ye(H){l.value=H,t("query-change",H),_e()}function _e(){u.value=!0,h.value=null;const H=l.value.length>=3||a.code.length<1e3,te=l.value.length>0&&(c.value||!c.value&&H);let E=[];if(te)try{E=Re(a.code.toLowerCase(),l.value.toLowerCase(),c.value)}catch(_){if(_ instanceof Error)h.value=_;else throw _}v.value=E.length,p.value=Array.from(new Set(E)),ae(),u.value=!1}function Re(H,te,E){return E?Fe(H,te):Ue(H,te)}function Ue(H,te){const E=[];let _=0;for(;_(C(),S("div",{id:e.id,ref_key:"codeBlock",ref:f,class:q(["k-code-block",[`theme-${e.theme}`]]),"data-testid":"k-code-block",style:Et(`--maxLineNumberWidth: ${w.value}`),tabindex:"0"},[e.isSearchable&&!e.isSingleLine?(C(),S("div",ux,[O("p",{class:q(["k-code-block-search-results",{"k-code-block-search-results-has-query":l.value!==""}])},[l.value===""&&p.value.length===0?(C(),S(Me,{key:0},[J("   ")],64)):p.value.length===0?(C(),S(Me,{key:1},[J(" No results ")],64)):typeof b.value=="number"&&!L.value?(C(),S(Me,{key:2},[J(V(b.value+1)+" of "+V(p.value.length),1)],64)):(C(),S(Me,{key:3},[J(V(p.value.length)+" "+V(p.value.length===1?"result":"results"),1)],64))],2),O("div",cx,[G(Be,{class:q(["k-search-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-search-icon",icon:"search",size:pe(Ll)},null,8,["class","size"]),O("label",{class:"k-code-block-search-label",for:`${e.id}-search-input`},fx,8,dx),O("input",{id:`${e.id}-search-input`,ref_key:"codeBlockSearchInput",ref:g,class:"k-code-block-search-input","data-testid":"k-code-block-search-input",type:"text",onInput:Q},null,40,px),h.value!==null?(C(),S("p",mx,V(h.value.message),1)):$("",!0),G(Be,{class:q(["k-is-processing-icon",[`theme-${e.theme}`,{"k-is-processing-icon-is-visible":I.value}]]),color:"currentColor","data-testid":"k-code-block-is-processing-icon",icon:"spinner"},null,8,["class"]),l.value!==""?(C(),S("button",{key:1,appearance:"outline",class:"k-clear-query-button","data-testid":"k-code-block-clear-query-button",title:"Clear query",type:"button",onClick:fe},[vx,G(Be,{class:q(["k-clear-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-clear-icon",icon:"clear",size:pe(Ll)},null,8,["class","size"])])):$("",!0)]),O("div",gx,[G(We,{appearance:c.value?"action-active":"outline","aria-pressed":c.value,class:"k-regexp-mode-button","data-testid":"k-code-block-regexp-mode-button","is-rounded":!1,size:"small",title:`Use regular expression (${pe(o)}+R)`,type:"button",onClick:$e},{default:z(()=>[yx,J(" .* ")]),_:1},8,["appearance","aria-pressed","title"]),G(We,{appearance:d.value?"action-active":"outline","aria-pressed":d.value,class:"k-filter-mode-button","data-testid":"k-code-block-filter-mode-button",icon:"filter","is-rounded":!1,size:"small",title:`Filter results (${pe(o)}+F)`,type:"button",onClick:Ae},{icon:z(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"filter",size:pe(xt),title:`Filter results (${pe(o)}+F)`},null,8,["size","title"])]),default:z(()=>[bx]),_:1},8,["appearance","aria-pressed","title"]),G(We,{class:"k-previous-match-button","data-testid":"k-code-block-previous-match-button",disabled:p.value.length===0||d.value,"is-rounded":!1,size:"small",title:"Previous match (Shift+F3)",type:"button",onClick:U},{icon:z(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"chevronUp",size:pe(xt),title:"Previous match (Shift+F3)"},null,8,["size"])]),default:z(()=>[wx]),_:1},8,["disabled"]),G(We,{class:"k-next-match-button","data-testid":"k-code-block-next-match-button",disabled:p.value.length===0||d.value,"is-rounded":!1,size:"small",title:"Next match (F3)",type:"button",onClick:je},{icon:z(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"chevronDown",size:pe(xt),title:"Next match (F3)"},null,8,["size"])]),default:z(()=>[kx]),_:1},8,["disabled"])])])):$("",!0),O("div",Cx,[L.value?(C(),S("pre",Ex,[J(" "),e.isSingleLine?$("",!0):(C(),S("span",xx,[J(` +`,""):x(a.code));Le(()=>a.code,async function(){await on(),ee(),_e()}),Le(()=>c.value,function(){_e()}),Le(()=>L.value,async function(){var H,te;((H=document==null?void 0:document.activeElement)==null?void 0:H.tagName)==="PRE"&&((te=f.value)==null||te.focus({preventScroll:!0})),L.value||(await on(),ee(),_e())});const A={"alt+c":"copyCode","alt+f":"toggleFilterMode","alt+g":"toggleFilterMode","alt+r":"toggleRegExpMode",f3:"jumpToNextMatch","shift+f3":"jumpToPreviousMatch"},M={toggleFilterMode:{trigger:Ae,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0},toggleRegExpMode:{trigger:$e,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0},jumpToNextMatch:{trigger:je,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},isDisabled:()=>p.value.length===0||d.value,shouldPreventDefaultAction:!0},jumpToPreviousMatch:{trigger:U,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},isDisabled:()=>p.value.length===0||d.value,shouldPreventDefaultAction:!0},copyCode:{trigger:K,isAllowedContext(H){return f.value!==null&&H.composedPath().includes(f.value)},shouldPreventDefaultAction:!0}},N=new ox(A,M);ft(function(){N.registerListener(),g.value instanceof HTMLInputElement&&a.query!==""&&(g.value.value=a.query),ee(),_e()}),Wa(function(){N.unRegisterListener()});function ee(){var H;const te=(H=f.value)==null?void 0:H.querySelector(".k-highlighted-code-block"),E=te==null?void 0:te.querySelector("code");te instanceof HTMLElement&&E instanceof HTMLElement&&t("code-block-render",oe(te,E))}function ae(){var H;const te=(H=f.value)==null?void 0:H.querySelector(".k-highlighted-code-block"),E=te==null?void 0:te.querySelector("code");te instanceof HTMLElement&&E instanceof HTMLElement&&t("matching-lines-change",oe(te,E))}function oe(H,te){return{preElement:H,codeElement:te,code:a.code,language:a.language,query:l.value,matchingLineNumbers:p.value}}function Q(H){const te=H.target;te.value!==l.value&&(u.value=!0,i(te.value))}function ye(H){l.value=H,t("query-change",H),_e()}function _e(){u.value=!0,h.value=null;const H=l.value.length>=3||a.code.length<1e3,te=l.value.length>0&&(c.value||!c.value&&H);let E=[];if(te)try{E=Re(a.code.toLowerCase(),l.value.toLowerCase(),c.value)}catch(_){if(_ instanceof Error)h.value=_;else throw _}v.value=E.length,p.value=Array.from(new Set(E)),ae(),u.value=!1}function Re(H,te,E){return E?ze(H,te):Ue(H,te)}function Ue(H,te){const E=[];let _=0;for(;_(C(),S("div",{id:e.id,ref_key:"codeBlock",ref:f,class:q(["k-code-block",[`theme-${e.theme}`]]),"data-testid":"k-code-block",style:Et(`--maxLineNumberWidth: ${w.value}`),tabindex:"0"},[e.isSearchable&&!e.isSingleLine?(C(),S("div",ux,[O("p",{class:q(["k-code-block-search-results",{"k-code-block-search-results-has-query":l.value!==""}])},[l.value===""&&p.value.length===0?(C(),S(Me,{key:0},[J("   ")],64)):p.value.length===0?(C(),S(Me,{key:1},[J(" No results ")],64)):typeof b.value=="number"&&!L.value?(C(),S(Me,{key:2},[J(V(b.value+1)+" of "+V(p.value.length),1)],64)):(C(),S(Me,{key:3},[J(V(p.value.length)+" "+V(p.value.length===1?"result":"results"),1)],64))],2),O("div",cx,[G(Be,{class:q(["k-search-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-search-icon",icon:"search",size:pe(Ll)},null,8,["class","size"]),O("label",{class:"k-code-block-search-label",for:`${e.id}-search-input`},fx,8,dx),O("input",{id:`${e.id}-search-input`,ref_key:"codeBlockSearchInput",ref:g,class:"k-code-block-search-input","data-testid":"k-code-block-search-input",type:"text",onInput:Q},null,40,px),h.value!==null?(C(),S("p",mx,V(h.value.message),1)):$("",!0),G(Be,{class:q(["k-is-processing-icon",[`theme-${e.theme}`,{"k-is-processing-icon-is-visible":I.value}]]),color:"currentColor","data-testid":"k-code-block-is-processing-icon",icon:"spinner"},null,8,["class"]),l.value!==""?(C(),S("button",{key:1,appearance:"outline",class:"k-clear-query-button","data-testid":"k-code-block-clear-query-button",title:"Clear query",type:"button",onClick:fe},[vx,G(Be,{class:q(["k-clear-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-clear-icon",icon:"clear",size:pe(Ll)},null,8,["class","size"])])):$("",!0)]),O("div",gx,[G(We,{appearance:c.value?"action-active":"outline","aria-pressed":c.value,class:"k-regexp-mode-button","data-testid":"k-code-block-regexp-mode-button","is-rounded":!1,size:"small",title:`Use regular expression (${pe(o)}+R)`,type:"button",onClick:$e},{default:F(()=>[yx,J(" .* ")]),_:1},8,["appearance","aria-pressed","title"]),G(We,{appearance:d.value?"action-active":"outline","aria-pressed":d.value,class:"k-filter-mode-button","data-testid":"k-code-block-filter-mode-button",icon:"filter","is-rounded":!1,size:"small",title:`Filter results (${pe(o)}+F)`,type:"button",onClick:Ae},{icon:F(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"filter",size:pe(xt),title:`Filter results (${pe(o)}+F)`},null,8,["size","title"])]),default:F(()=>[bx]),_:1},8,["appearance","aria-pressed","title"]),G(We,{class:"k-previous-match-button","data-testid":"k-code-block-previous-match-button",disabled:p.value.length===0||d.value,"is-rounded":!1,size:"small",title:"Previous match (Shift+F3)",type:"button",onClick:U},{icon:F(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"chevronUp",size:pe(xt),title:"Previous match (Shift+F3)"},null,8,["size"])]),default:F(()=>[wx]),_:1},8,["disabled"]),G(We,{class:"k-next-match-button","data-testid":"k-code-block-next-match-button",disabled:p.value.length===0||d.value,"is-rounded":!1,size:"small",title:"Next match (F3)",type:"button",onClick:je},{icon:F(()=>[G(Be,{class:"k-button-icon",color:"currentColor",icon:"chevronDown",size:pe(xt),title:"Next match (F3)"},null,8,["size"])]),default:F(()=>[kx]),_:1},8,["disabled"])])])):$("",!0),O("div",Cx,[L.value?(C(),S("pre",Ex,[J(" "),e.isSingleLine?$("",!0):(C(),S("span",xx,[J(` `),(C(!0),S(Me,null,ot(p.value,E=>(C(),S("span",{key:E,class:"k-line"},[J(` `),O("a",{id:`${D.value}-L${E}`,class:"k-line-anchor",href:e.showLineNumberLinks?`#${D.value}-L${E}`:void 0},V(E),9,Sx),J(` `)]))),128)),J(` @@ -487,7 +487,7 @@ Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),( `)],2))),128)),J(` `)])),J(` `),O("code",{innerHTML:k.value},null,8,Mx),J(` - `)],2)),e.showCopyButton||pe(s)["secondary-actions"]?(C(),S("div",Ax,[e.showCopyButton?(C(),se(We,{key:0,ref_key:"codeBlockCopyButton",ref:y,appearance:"outline",class:"k-code-block-copy-button","data-testid":"k-code-block-copy-button","is-rounded":!1,size:"small",title:`Copy (${pe(o)}+C)`,type:"button",onClick:K},{default:z(()=>[G(Be,{color:"currentColor",icon:"copy",size:pe(xt),title:`Copy (${pe(o)}+C)`},null,8,["size","title"]),Ox]),_:1},8,["title"])):$("",!0),F(H.$slots,"secondary-actions",{},void 0,!0)])):$("",!0)])],14,lx))}}),Bx=Ee(Px,[["__scopeId","data-v-dad3afd6"]]),Ix={class:"k-collapse"},Nx={key:0,class:"k-collapse-trigger-label","data-testid":"k-collapse-trigger-label"},Lx={key:0,class:"k-collapse-visible-content","data-testid":"k-collapse-visible-content"},Rx={class:"k-collapse-hidden-content","data-testid":"k-collapse-hidden-content"},$x=ge({__name:"KCollapse",props:{modelValue:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},triggerLabel:{type:String,required:!1,default:""},triggerAlignment:{type:String,required:!1,default:"trailing",validator:e=>ak.includes(e)}},emits:["toggled","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(!0),a=j(!1),o=It(),i=B(()=>n.triggerAlignment==="trailing"),s=B(()=>!!o["visible-content"]),l=B({get(){return n.modelValue},set(h){d(h)}}),u=B(()=>a.value?r.value:n.modelValue),c=B(()=>u.value?"chevronRight":"chevronDown"),d=h=>{a.value||(r.value=n.modelValue),r.value=h!==void 0?h:!r.value,a.value=!0,t("toggled",r.value),t("update:modelValue",r.value)};return Le(l,(h,f)=>{h!==f&&d(h)}),(h,f)=>(C(),S("div",Ix,[O("div",{class:q(["k-collapse-heading",{"has-trailing-trigger":i.value}])},[e.title?(C(),S("div",{key:0,class:q(["k-collapse-title",{"has-trailing-trigger":i.value}]),"data-testid":"k-collapse-title"},V(e.title),3)):$("",!0),O("div",{class:q(["k-collapse-trigger",{"has-trailing-trigger":i.value}])},[F(h.$slots,"trigger",{isCollapsed:u.value,toggle:d},()=>[O("a",{class:"k-collapse-trigger-content","data-testid":"k-collapse-trigger-content",href:"#",role:"button",onClick:f[0]||(f[0]=Mt(g=>d(),["prevent","stop"]))},[F(h.$slots,"trigger-content",{},()=>[e.triggerLabel?(C(),S("span",Nx,[G(Be,{class:"k-collapse-trigger-chevron",icon:c.value,size:pe(ws)},null,8,["icon","size"]),O("span",null,V(e.triggerLabel),1)])):(C(),se(Be,{key:1,class:"k-collapse-trigger-icon k-collapse-trigger-chevron","data-testid":"k-collapse-trigger-icon",icon:c.value},null,8,["icon"]))],!0)])],!0)],2)],2),s.value?(C(),S("div",Lx,[F(h.$slots,"visible-content",{},void 0,!0)])):$("",!0),Ml(O("div",Rx,[F(h.$slots,"default",{},void 0,!0)],512),[[pd,!u.value]])]))}}),Hx=Ee($x,[["__scopeId","data-v-1929b49b"]]);function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function Ua(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function sn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function yr(e){sn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Fl(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function zx(e,t){sn(2,arguments);var n=yr(e).getTime(),r=Ua(t);return new Date(n+r)}var Fx={};function $u(){return Fx}function jx(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ux(e){return sn(1,arguments),e instanceof Date||Fl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zx(e){if(sn(1,arguments),!Ux(e)&&typeof e!="number")return!1;var t=yr(e);return!isNaN(Number(t))}function Yx(e,t){sn(2,arguments);var n=Ua(t);return zx(e,-n)}var Vx=864e5;function Kx(e){sn(1,arguments);var t=yr(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/Vx)+1}function jl(e){sn(1,arguments);var t=1,n=yr(e),r=n.getUTCDay(),a=(r=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Gx(e){sn(1,arguments);var t=Qg(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=jl(n);return r}var Wx=6048e5;function qx(e){sn(1,arguments);var t=yr(e),n=jl(t).getTime()-Gx(t).getTime();return Math.round(n/Wx)+1}function Ul(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=$u(),d=Ua((n=(r=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yr(e),f=h.getUTCDay(),g=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,f),g.setUTCHours(0,0,0,0);var y=Ul(g,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var p=Ul(v,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function Qx(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=$u(),d=Ua((n=(r=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Xg(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var g=Ul(f,t);return g}var Xx=6048e5;function Jx(e,t){sn(1,arguments);var n=yr(e),r=Ul(n,t).getTime()-Qx(n,t).getTime();return Math.round(r/Xx)+1}function st(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return st(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):st(n+1,2)},d:function(e,t){return st(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return st(e.getUTCHours()%12||12,t.length)},H:function(e,t){return st(e.getUTCHours(),t.length)},m:function(e,t){return st(e.getUTCMinutes(),t.length)},s:function(e,t){return st(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),a=Math.floor(r*Math.pow(10,n-3));return st(a,t.length)}};const qr=eS;var lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},tS={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return qr.y(e,t)},Y:function(e,t,n,r){var a=Xg(e,r),o=a>0?a:1-a;if(t==="YY"){var i=o%100;return st(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):st(o,t.length)},R:function(e,t){var n=Qg(e);return st(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return st(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return st(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return st(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return qr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return st(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=Jx(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):st(a,t.length)},I:function(e,t,n){var r=qx(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):st(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):qr.d(e,t)},D:function(e,t,n){var r=Kx(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):st(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return st(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return st(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return st(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),a=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),a;switch(r===12?a=lo.noon:r===0?a=lo.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),a;switch(r>=17?a=lo.evening:r>=12?a=lo.afternoon:r>=4?a=lo.morning:a=lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return qr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qr.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):qr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):qr.s(e,t)},S:function(e,t){return qr.S(e,t)},X:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Ap(o);case"XXXX":case"XX":return Sa(o);case"XXXXX":case"XXX":default:return Sa(o,":")}},x:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"x":return Ap(o);case"xxxx":case"xx":return Sa(o);case"xxxxx":case"xxx":default:return Sa(o,":")}},O:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mp(o,":");case"OOOO":default:return"GMT"+Sa(o,":")}},z:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mp(o,":");case"zzzz":default:return"GMT"+Sa(o,":")}},t:function(e,t,n,r){var a=r._originalDate||e,o=Math.floor(a.getTime()/1e3);return st(o,t.length)},T:function(e,t,n,r){var a=r._originalDate||e,o=a.getTime();return st(o,t.length)}};function Mp(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(o===0)return n+String(a);var i=t||"";return n+String(a)+i+st(o,2)}function Ap(e,t){if(e%60===0){var n=e>0?"-":"+";return n+st(Math.abs(e)/60,2)}return Sa(e,t)}function Sa(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),o=st(Math.floor(a/60),2),i=st(a%60,2);return r+o+n+i}const nS=tS;var Op=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jg=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},rS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Op(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Op(r,t)).replace("{{time}}",Jg(a,t))},aS={p:Jg,P:rS};const oS=aS;var iS=["D","DD"],sS=["YY","YYYY"];function lS(e){return iS.indexOf(e)!==-1}function uS(e){return sS.indexOf(e)!==-1}function Pp(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var cS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dS=function(e,t,n){var r,a=cS[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const hS=dS;function Cc(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var fS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vS={date:Cc({formats:fS,defaultWidth:"full"}),time:Cc({formats:pS,defaultWidth:"full"}),dateTime:Cc({formats:mS,defaultWidth:"full"})};const gS=vS;var yS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bS=function(e,t,n,r){return yS[e]};const wS=bS;function gi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var kS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},CS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ES={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},SS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_S={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},TS=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},DS={ordinalNumber:TS,era:gi({values:kS,defaultWidth:"wide"}),quarter:gi({values:CS,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:gi({values:ES,defaultWidth:"wide"}),day:gi({values:xS,defaultWidth:"wide"}),dayPeriod:gi({values:SS,defaultWidth:"wide",formattingValues:_S,defaultFormattingWidth:"wide"})};const MS=DS;function yi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?OS(s,function(d){return d.test(i)}):AS(s,function(d){return d.test(i)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(i.length);return{value:u,rest:c}}}function AS(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function OS(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var BS=/^(\d+)(th|st|nd|rd)?/i,IS=/\d+/i,NS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LS={any:[/^b/i,/^(a|c)/i]},RS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$S={any:[/1/i,/2/i,/3/i,/4/i]},HS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},FS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},US={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ZS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},YS={ordinalNumber:PS({matchPattern:BS,parsePattern:IS,valueCallback:function(e){return parseInt(e,10)}}),era:yi({matchPatterns:NS,defaultMatchWidth:"wide",parsePatterns:LS,defaultParseWidth:"any"}),quarter:yi({matchPatterns:RS,defaultMatchWidth:"wide",parsePatterns:$S,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yi({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:zS,defaultParseWidth:"any"}),day:yi({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:jS,defaultParseWidth:"any"}),dayPeriod:yi({matchPatterns:US,defaultMatchWidth:"any",parsePatterns:ZS,defaultParseWidth:"any"})};const VS=YS;var KS={code:"en-US",formatDistance:hS,formatLong:gS,formatRelative:wS,localize:MS,match:VS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const GS=KS;var WS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QS=/^'([^]*?)'?$/,XS=/''/g,JS=/[a-zA-Z]/;function Ec(e,t,n){var r,a,o,i,s,l,u,c,d,h,f,g,y,v,p,b,m,w;sn(2,arguments);var D=String(t),I=$u(),L=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:I.locale)!==null&&r!==void 0?r:GS,T=Ua((o=(i=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:I.firstWeekContainsDate)!==null&&i!==void 0?i:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=Ua((f=(g=(y=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(p=n.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:I.weekStartsOn)!==null&&g!==void 0?g:(m=I.locale)===null||m===void 0||(w=m.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&f!==void 0?f:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw new RangeError("locale must contain localize property");if(!L.formatLong)throw new RangeError("locale must contain formatLong property");var k=yr(e);if(!Zx(k))throw new RangeError("Invalid time value");var A=jx(k),M=Yx(k,A),N={firstWeekContainsDate:T,weekStartsOn:x,locale:L,_originalDate:k},ee=D.match(qS).map(function(ae){var oe=ae[0];if(oe==="p"||oe==="P"){var Q=oS[oe];return Q(ae,L.formatLong)}return ae}).join("").match(WS).map(function(ae){if(ae==="''")return"'";var oe=ae[0];if(oe==="'")return e_(ae);var Q=nS[oe];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&uS(ae)&&Pp(ae,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&lS(ae)&&Pp(ae,t,String(e)),Q(M,ae,L.localize,N);if(oe.match(JS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return ae}).join("");return ee}function e_(e){var t=e.match(QS);return t?t[1].replace(XS,"'"):e}var xd={exports:{}},Sd={exports:{}},e2={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e2);var St=e2.exports,_d={exports:{}},Td={exports:{}},t2={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(t2);var n2=t2.exports,Dd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(Dd,Dd.exports);var ln=Dd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(n2),a=n(ln);function o(i){return(0,a.default)(1,arguments),i instanceof Date||(0,r.default)(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}e.exports=t.default})(Td,Td.exports);var t_=Td.exports,Md={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(n2),a=n(ln);function o(i){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(i);return i instanceof Date||(0,r.default)(i)==="object"&&s==="[object Date]"?new Date(i.getTime()):typeof i=="number"||s==="[object Number]"?new Date(i):((typeof i=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Md,Md.exports);var br=Md.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(t_),a=n(br),o=n(ln);function i(s){if((0,o.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}e.exports=t.default})(_d,_d.exports);var n_=_d.exports,Ad={exports:{}},Od={exports:{}},Pd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(Pd,Pd.exports);var to=Pd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(to),a=n(br),o=n(ln);function i(s,l){(0,o.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}e.exports=t.default})(Od,Od.exports);var r_=Od.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(r_),a=n(ln),o=n(to);function i(s,l){(0,a.default)(2,arguments);var u=(0,o.default)(l);return(0,r.default)(s,-u)}e.exports=t.default})(Ad,Ad.exports);var a_=Ad.exports,Bd={exports:{}},Id={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(br),a=n(ln),o=864e5;function i(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/o)+1}e.exports=t.default})(Id,Id.exports);var o_=Id.exports,Nd={exports:{}},Ld={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(br),a=n(ln);function o(i){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(i),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=f.getTime()?u:u-1}e.exports=t.default})($d,$d.exports);var r2=$d.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(r2),a=n(Mh),o=n(ln);function i(s){(0,o.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}e.exports=t.default})(Rd,Rd.exports);var i_=Rd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Mh),o=n(i_),i=n(ln),s=6048e5;function l(u){(0,i.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,o.default)(c).getTime();return Math.round(d/s)+1}e.exports=t.default})(Nd,Nd.exports);var s_=Nd.exports,Hd={exports:{}},zd={exports:{}},no={};Object.defineProperty(no,"__esModule",{value:!0});no.getDefaultOptions=l_;no.setDefaultOptions=u_;var a2={};function l_(){return a2}function u_(e){a2=e}(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(br),a=n(ln),o=n(to),i=no;function s(l,u){var c,d,h,f,g,y,v,p;(0,a.default)(1,arguments);var b=(0,i.getDefaultOptions)(),m=(0,o.default)((c=(d=(h=(f=u==null?void 0:u.weekStartsOn)!==null&&f!==void 0?f:u==null||(g=u.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:b.weekStartsOn)!==null&&d!==void 0?d:(v=b.locale)===null||v===void 0||(p=v.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&c!==void 0?c:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,r.default)(l),D=w.getUTCDay(),I=(D=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=new Date(0);L.setUTCFullYear(w+1,0,I),L.setUTCHours(0,0,0,0);var T=(0,o.default)(L,c),x=new Date(0);x.setUTCFullYear(w,0,I),x.setUTCHours(0,0,0,0);var k=(0,o.default)(x,c);return m.getTime()>=T.getTime()?w+1:m.getTime()>=k.getTime()?w:w-1}e.exports=t.default})(jd,jd.exports);var o2=jd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(o2),a=n(ln),o=n(Ah),i=n(to),s=no;function l(u,c){var d,h,f,g,y,v,p,b;(0,a.default)(1,arguments);var m=(0,s.getDefaultOptions)(),w=(0,i.default)((d=(h=(f=(g=c==null?void 0:c.firstWeekContainsDate)!==null&&g!==void 0?g:c==null||(y=c.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&f!==void 0?f:m.firstWeekContainsDate)!==null&&h!==void 0?h:(p=m.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),D=(0,r.default)(u,c),I=new Date(0);I.setUTCFullYear(D,0,w),I.setUTCHours(0,0,0,0);var L=(0,o.default)(I,c);return L}e.exports=t.default})(Fd,Fd.exports);var c_=Fd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Ah),o=n(c_),i=n(ln),s=6048e5;function l(u,c){(0,i.default)(1,arguments);var d=(0,r.default)(u),h=(0,a.default)(d,c).getTime()-(0,o.default)(d,c).getTime();return Math.round(h/s)+1}e.exports=t.default})(Hd,Hd.exports);var d_=Hd.exports,Ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){for(var o=r<0?"-":"",i=Math.abs(r).toString();i.length0?l:1-l;return(0,r.default)(s==="yy"?u%100:u,s.length)},M:function(i,s){var l=i.getUTCMonth();return s==="M"?String(l+1):(0,r.default)(l+1,2)},d:function(i,s){return(0,r.default)(i.getUTCDate(),s.length)},a:function(i,s){var l=i.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h:function(i,s){return(0,r.default)(i.getUTCHours()%12||12,s.length)},H:function(i,s){return(0,r.default)(i.getUTCHours(),s.length)},m:function(i,s){return(0,r.default)(i.getUTCMinutes(),s.length)},s:function(i,s){return(0,r.default)(i.getUTCSeconds(),s.length)},S:function(i,s){var l=s.length,u=i.getUTCMilliseconds(),c=Math.floor(u*Math.pow(10,l-3));return(0,r.default)(c,s.length)}},o=a;t.default=o,e.exports=t.default})(Zd,Zd.exports);var h_=Zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o_),a=n(s_),o=n(r2),i=n(d_),s=n(o2),l=n(i2),u=n(h_),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(v,p,b){var m=v.getUTCFullYear()>0?1:0;switch(p){case"G":case"GG":case"GGG":return b.era(m,{width:"abbreviated"});case"GGGGG":return b.era(m,{width:"narrow"});case"GGGG":default:return b.era(m,{width:"wide"})}},y:function(v,p,b){if(p==="yo"){var m=v.getUTCFullYear(),w=m>0?m:1-m;return b.ordinalNumber(w,{unit:"year"})}return u.default.y(v,p)},Y:function(v,p,b,m){var w=(0,s.default)(v,m),D=w>0?w:1-w;if(p==="YY"){var I=D%100;return(0,l.default)(I,2)}return p==="Yo"?b.ordinalNumber(D,{unit:"year"}):(0,l.default)(D,p.length)},R:function(v,p){var b=(0,o.default)(v);return(0,l.default)(b,p.length)},u:function(v,p){var b=v.getUTCFullYear();return(0,l.default)(b,p.length)},Q:function(v,p,b){var m=Math.ceil((v.getUTCMonth()+1)/3);switch(p){case"Q":return String(m);case"QQ":return(0,l.default)(m,2);case"Qo":return b.ordinalNumber(m,{unit:"quarter"});case"QQQ":return b.quarter(m,{width:"abbreviated",context:"formatting"});case"QQQQQ":return b.quarter(m,{width:"narrow",context:"formatting"});case"QQQQ":default:return b.quarter(m,{width:"wide",context:"formatting"})}},q:function(v,p,b){var m=Math.ceil((v.getUTCMonth()+1)/3);switch(p){case"q":return String(m);case"qq":return(0,l.default)(m,2);case"qo":return b.ordinalNumber(m,{unit:"quarter"});case"qqq":return b.quarter(m,{width:"abbreviated",context:"standalone"});case"qqqqq":return b.quarter(m,{width:"narrow",context:"standalone"});case"qqqq":default:return b.quarter(m,{width:"wide",context:"standalone"})}},M:function(v,p,b){var m=v.getUTCMonth();switch(p){case"M":case"MM":return u.default.M(v,p);case"Mo":return b.ordinalNumber(m+1,{unit:"month"});case"MMM":return b.month(m,{width:"abbreviated",context:"formatting"});case"MMMMM":return b.month(m,{width:"narrow",context:"formatting"});case"MMMM":default:return b.month(m,{width:"wide",context:"formatting"})}},L:function(v,p,b){var m=v.getUTCMonth();switch(p){case"L":return String(m+1);case"LL":return(0,l.default)(m+1,2);case"Lo":return b.ordinalNumber(m+1,{unit:"month"});case"LLL":return b.month(m,{width:"abbreviated",context:"standalone"});case"LLLLL":return b.month(m,{width:"narrow",context:"standalone"});case"LLLL":default:return b.month(m,{width:"wide",context:"standalone"})}},w:function(v,p,b,m){var w=(0,i.default)(v,m);return p==="wo"?b.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,p.length)},I:function(v,p,b){var m=(0,a.default)(v);return p==="Io"?b.ordinalNumber(m,{unit:"week"}):(0,l.default)(m,p.length)},d:function(v,p,b){return p==="do"?b.ordinalNumber(v.getUTCDate(),{unit:"date"}):u.default.d(v,p)},D:function(v,p,b){var m=(0,r.default)(v);return p==="Do"?b.ordinalNumber(m,{unit:"dayOfYear"}):(0,l.default)(m,p.length)},E:function(v,p,b){var m=v.getUTCDay();switch(p){case"E":case"EE":case"EEE":return b.day(m,{width:"abbreviated",context:"formatting"});case"EEEEE":return b.day(m,{width:"narrow",context:"formatting"});case"EEEEEE":return b.day(m,{width:"short",context:"formatting"});case"EEEE":default:return b.day(m,{width:"wide",context:"formatting"})}},e:function(v,p,b,m){var w=v.getUTCDay(),D=(w-m.weekStartsOn+8)%7||7;switch(p){case"e":return String(D);case"ee":return(0,l.default)(D,2);case"eo":return b.ordinalNumber(D,{unit:"day"});case"eee":return b.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return b.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return b.day(w,{width:"short",context:"formatting"});case"eeee":default:return b.day(w,{width:"wide",context:"formatting"})}},c:function(v,p,b,m){var w=v.getUTCDay(),D=(w-m.weekStartsOn+8)%7||7;switch(p){case"c":return String(D);case"cc":return(0,l.default)(D,p.length);case"co":return b.ordinalNumber(D,{unit:"day"});case"ccc":return b.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return b.day(w,{width:"narrow",context:"standalone"});case"cccccc":return b.day(w,{width:"short",context:"standalone"});case"cccc":default:return b.day(w,{width:"wide",context:"standalone"})}},i:function(v,p,b){var m=v.getUTCDay(),w=m===0?7:m;switch(p){case"i":return String(w);case"ii":return(0,l.default)(w,p.length);case"io":return b.ordinalNumber(w,{unit:"day"});case"iii":return b.day(m,{width:"abbreviated",context:"formatting"});case"iiiii":return b.day(m,{width:"narrow",context:"formatting"});case"iiiiii":return b.day(m,{width:"short",context:"formatting"});case"iiii":default:return b.day(m,{width:"wide",context:"formatting"})}},a:function(v,p,b){var m=v.getUTCHours(),w=m/12>=1?"pm":"am";switch(p){case"a":case"aa":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(v,p,b){var m=v.getUTCHours(),w;switch(m===12?w=c.noon:m===0?w=c.midnight:w=m/12>=1?"pm":"am",p){case"b":case"bb":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(v,p,b){var m=v.getUTCHours(),w;switch(m>=17?w=c.evening:m>=12?w=c.afternoon:m>=4?w=c.morning:w=c.night,p){case"B":case"BB":case"BBB":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(v,p,b){if(p==="ho"){var m=v.getUTCHours()%12;return m===0&&(m=12),b.ordinalNumber(m,{unit:"hour"})}return u.default.h(v,p)},H:function(v,p,b){return p==="Ho"?b.ordinalNumber(v.getUTCHours(),{unit:"hour"}):u.default.H(v,p)},K:function(v,p,b){var m=v.getUTCHours()%12;return p==="Ko"?b.ordinalNumber(m,{unit:"hour"}):(0,l.default)(m,p.length)},k:function(v,p,b){var m=v.getUTCHours();return m===0&&(m=24),p==="ko"?b.ordinalNumber(m,{unit:"hour"}):(0,l.default)(m,p.length)},m:function(v,p,b){return p==="mo"?b.ordinalNumber(v.getUTCMinutes(),{unit:"minute"}):u.default.m(v,p)},s:function(v,p,b){return p==="so"?b.ordinalNumber(v.getUTCSeconds(),{unit:"second"}):u.default.s(v,p)},S:function(v,p){return u.default.S(v,p)},X:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();if(D===0)return"Z";switch(p){case"X":return f(D);case"XXXX":case"XX":return g(D);case"XXXXX":case"XXX":default:return g(D,":")}},x:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"x":return f(D);case"xxxx":case"xx":return g(D);case"xxxxx":case"xxx":default:return g(D,":")}},O:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"O":case"OO":case"OOO":return"GMT"+h(D,":");case"OOOO":default:return"GMT"+g(D,":")}},z:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"z":case"zz":case"zzz":return"GMT"+h(D,":");case"zzzz":default:return"GMT"+g(D,":")}},t:function(v,p,b,m){var w=m._originalDate||v,D=Math.floor(w.getTime()/1e3);return(0,l.default)(D,p.length)},T:function(v,p,b,m){var w=m._originalDate||v,D=w.getTime();return(0,l.default)(D,p.length)}};function h(v,p){var b=v>0?"-":"+",m=Math.abs(v),w=Math.floor(m/60),D=m%60;if(D===0)return b+String(w);var I=p||"";return b+String(w)+I+(0,l.default)(D,2)}function f(v,p){if(v%60===0){var b=v>0?"-":"+";return b+(0,l.default)(Math.abs(v)/60,2)}return g(v,p)}function g(v,p){var b=p||"",m=v>0?"-":"+",w=Math.abs(v),D=(0,l.default)(Math.floor(w/60),2),I=(0,l.default)(w%60,2);return m+D+b+I}var y=d;t.default=y,e.exports=t.default})(Bd,Bd.exports);var f_=Bd.exports,Yd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},r=function(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},a=function(s,l){var u=s.match(/(P+)(p+)?/)||[],c=u[1],d=u[2];if(!d)return n(s,l);var h;switch(c){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",n(c,l)).replace("{{time}}",r(d,l))},o={p:r,P:a},i=o;t.default=i,e.exports=t.default})(Yd,Yd.exports);var p_=Yd.exports,Vd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(Vd,Vd.exports);var s2=Vd.exports,Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isProtectedDayOfYearToken=g_;Ss.isProtectedWeekYearToken=y_;Ss.throwProtectedError=b_;var m_=["D","DD"],v_=["YY","YYYY"];function g_(e){return m_.indexOf(e)!==-1}function y_(e){return v_.indexOf(e)!==-1}function b_(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Kd={exports:{}},Gd={exports:{}},Wd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,i,s){var l,u=n[o];return typeof u=="string"?l=u:i===1?l=u.one:l=u.other.replace("{{count}}",i.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+l:l+" ago":l},a=r;t.default=a,e.exports=t.default})(Wd,Wd.exports);var w_=Wd.exports,qd={exports:{}},Qd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.width?String(a.width):r.defaultWidth,i=r.formats[o]||r.formats[r.defaultWidth];return i}}e.exports=t.default})(Qd,Qd.exports);var k_=Qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(k_),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:o,defaultWidth:"full"}),dateTime:(0,r.default)({formats:i,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(qd,qd.exports);var C_=qd.exports,Xd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,i,s,l){return n[o]},a=r;t.default=a,e.exports=t.default})(Xd,Xd.exports);var E_=Xd.exports,Jd={exports:{}},e0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(a,o){var i=o!=null&&o.context?String(o.context):"standalone",s;if(i==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=o!=null&&o.width?String(o.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=o!=null&&o.width?String(o.width):r.defaultWidth;s=r.values[d]||r.values[c]}var h=r.argumentCallback?r.argumentCallback(a):a;return s[h]}}e.exports=t.default})(e0,e0.exports);var x_=e0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(x_),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(f,g){var y=Number(f),v=y%100;if(v>20||v<10)switch(v%10){case 1:return y+"st";case 2:return y+"nd";case 3:return y+"rd"}return y+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:o,defaultWidth:"wide",argumentCallback:function(f){return f-1}}),month:(0,r.default)({values:i,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},h=d;t.default=h,e.exports=t.default})(Jd,Jd.exports);var S_=Jd.exports,t0={exports:{}},n0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(o){return function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&o.matchPatterns[l]||o.matchPatterns[o.defaultMatchWidth],c=i.match(u);if(!c)return null;var d=c[0],h=l&&o.parsePatterns[l]||o.parsePatterns[o.defaultParseWidth],f=Array.isArray(h)?a(h,function(v){return v.test(d)}):r(h,function(v){return v.test(d)}),g;g=o.valueCallback?o.valueCallback(f):f,g=s.valueCallback?s.valueCallback(g):g;var y=i.slice(d.length);return{value:g,rest:y}}}function r(o,i){for(var s in o)if(o.hasOwnProperty(s)&&i(o[s]))return s}function a(o,i){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},i=a.match(r.matchPattern);if(!i)return null;var s=i[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=o.valueCallback?o.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}e.exports=t.default})(r0,r0.exports);var T_=r0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(__),a=n(T_),o=/^(\d+)(th|st|nd|rd)?/i,i=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p={ordinalNumber:(0,a.default)({matchPattern:o,parsePattern:i,valueCallback:function(m){return parseInt(m,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(m){return m+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:g,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:v,defaultParseWidth:"any"})},b=p;t.default=b,e.exports=t.default})(t0,t0.exports);var D_=t0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(w_),a=n(C_),o=n(E_),i=n(S_),s=n(D_),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:o.default,localize:i.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(Gd,Gd.exports);var M_=Gd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(M_),a=r.default;t.default=a,e.exports=t.default})(Kd,Kd.exports);var A_=Kd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(n_),a=n(a_),o=n(br),i=n(f_),s=n(p_),l=n(s2),u=Ss,c=n(to),d=n(ln),h=no,f=n(A_),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,b=/[a-zA-Z]/;function m(D,I,L){var T,x,k,A,M,N,ee,ae,oe,Q,ye,_e,Re,Ue,Fe,fe,$e,Ae;(0,d.default)(2,arguments);var je=String(I),U=(0,h.getDefaultOptions)(),R=(T=(x=L==null?void 0:L.locale)!==null&&x!==void 0?x:U.locale)!==null&&T!==void 0?T:f.default,K=(0,c.default)((k=(A=(M=(N=L==null?void 0:L.firstWeekContainsDate)!==null&&N!==void 0?N:L==null||(ee=L.locale)===null||ee===void 0||(ae=ee.options)===null||ae===void 0?void 0:ae.firstWeekContainsDate)!==null&&M!==void 0?M:U.firstWeekContainsDate)!==null&&A!==void 0?A:(oe=U.locale)===null||oe===void 0||(Q=oe.options)===null||Q===void 0?void 0:Q.firstWeekContainsDate)!==null&&k!==void 0?k:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=(0,c.default)((ye=(_e=(Re=(Ue=L==null?void 0:L.weekStartsOn)!==null&&Ue!==void 0?Ue:L==null||(Fe=L.locale)===null||Fe===void 0||(fe=Fe.options)===null||fe===void 0?void 0:fe.weekStartsOn)!==null&&Re!==void 0?Re:U.weekStartsOn)!==null&&_e!==void 0?_e:($e=U.locale)===null||$e===void 0||(Ae=$e.options)===null||Ae===void 0?void 0:Ae.weekStartsOn)!==null&&ye!==void 0?ye:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var te=(0,o.default)(D);if(!(0,r.default)(te))throw new RangeError("Invalid time value");var E=(0,l.default)(te),_=(0,a.default)(te,E),P={firstWeekContainsDate:K,weekStartsOn:H,locale:R,_originalDate:te},Z=je.match(y).map(function(Y){var W=Y[0];if(W==="p"||W==="P"){var ce=s.default[W];return ce(Y,R.formatLong)}return Y}).join("").match(g).map(function(Y){if(Y==="''")return"'";var W=Y[0];if(W==="'")return w(Y);var ce=i.default[W];if(ce)return!(L!=null&&L.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Y)&&(0,u.throwProtectedError)(Y,I,String(D)),!(L!=null&&L.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Y)&&(0,u.throwProtectedError)(Y,I,String(D)),ce(_,Y,R.localize,P);if(W.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return Y}).join("");return Z}function w(D){var I=D.match(v);return I?I[1].replace(p,"'"):D}e.exports=t.default})(Sd,Sd.exports);var O_=Sd.exports,a0={exports:{}},o0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i,s,l){var u=o(i,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(i,s){for(var l=i.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(i,s){var l=i.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function o(i,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:i})}e.exports=t.default})(o0,o0.exports);var P_=o0.exports,i0={exports:{}},s0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(l,u){var c=s(u);return c.formatToParts?a(c,l):o(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],h=0;h=0&&(d[f]=parseInt(c[h].value,10))}return d}catch(g){if(g instanceof RangeError)return[NaN];throw g}}function o(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var i={};function s(l){if(!i[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";i[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[l]}e.exports=t.default})(s0,s0.exports);var B_=s0.exports,l0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a,o,i,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,o),c.setUTCHours(i,s,l,u),c}e.exports=t.default})(l0,l0.exports);var l2=l0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(B_),r=a(l2);function a(y){return y&&y.__esModule?y:{default:y}}var o=36e5,i=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(y,v,p){var b,m;if(!y||(b=s.timezoneZ.exec(y),b))return 0;var w;if(b=s.timezoneHH.exec(y),b)return w=parseInt(b[1],10),h(w)?-(w*o):NaN;if(b=s.timezoneHHMM.exec(y),b){w=parseInt(b[1],10);var D=parseInt(b[2],10);return h(w,D)?(m=Math.abs(w)*o+D*i,w>0?-m:m):NaN}if(g(y)){v=new Date(v||Date.now());var I=p?v:u(v),L=c(I,y),T=p?L:d(v,L,y);return-T}return NaN}function u(y){return(0,r.default)(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds(),y.getMilliseconds())}function c(y,v){var p=(0,n.default)(y,v),b=(0,r.default)(p[0],p[1]-1,p[2],p[3]%24,p[4],p[5],0).getTime(),m=y.getTime(),w=m%1e3;return m-=w>=0?w:1e3+w,b-m}function d(y,v,p){var b=y.getTime(),m=b-v,w=c(new Date(m),p);if(v===w)return v;m-=w-v;var D=c(new Date(m),p);return w===D?w:Math.max(w,D)}function h(y,v){return-23<=y&&y<=23&&(v==null||0<=v&&v<=59)}var f={};function g(y){if(f[y])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:y}),f[y]=!0,!0}catch{return!1}}e.exports=t.default})(i0,i0.exports);var _s=i0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P_),r=a(_s);function a(f){return f&&f.__esModule?f:{default:f}}var o=60*1e3,i={X:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);if(p===0)return"Z";switch(g){case"X":return c(p);case"XXXX":case"XX":return u(p);case"XXXXX":case"XXX":default:return u(p,":")}},x:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);switch(g){case"x":return c(p);case"xxxx":case"xx":return u(p);case"xxxxx":case"xxx":default:return u(p,":")}},O:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);switch(g){case"O":case"OO":case"OOO":return"GMT"+d(p,":");case"OOOO":default:return"GMT"+u(p,":")}},z:function(f,g,y,v){var p=v._originalDate||f;switch(g){case"z":case"zz":case"zzz":return(0,n.default)("short",p,v);case"zzzz":default:return(0,n.default)("long",p,v)}}};function s(f,g){var y=f?(0,r.default)(f,g,!0)/o:g.getTimezoneOffset();if(Number.isNaN(y))throw new RangeError("Invalid time zone specified: "+f);return y}function l(f,g){for(var y=f<0?"-":"",v=Math.abs(f).toString();v.length0?"-":"+",p=Math.abs(f),b=l(Math.floor(p/60),2),m=l(Math.floor(p%60),2);return v+b+y+m}function c(f,g){if(f%60===0){var y=f>0?"-":"+";return y+l(Math.abs(f)/60,2)}return u(f,g)}function d(f,g){var y=f>0?"-":"+",v=Math.abs(f),p=Math.floor(v/60),b=v%60;if(b===0)return y+String(p);var m=g||"";return y+String(p)+m+l(b,2)}var h=i;t.default=h,e.exports=t.default})(a0,a0.exports);var I_=a0.exports,u0={exports:{}},c0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=n;t.default=r,e.exports=t.default})(c0,c0.exports);var u2=c0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=i(to),r=i(s2),a=i(_s),o=i(u2);function i(T){return T&&T.__esModule?T:{default:T}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function d(T,x){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(T===null)return new Date(NaN);var k=x||{},A=k.additionalDigits==null?u:(0,n.default)(k.additionalDigits);if(A!==2&&A!==1&&A!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(T instanceof Date||typeof T=="object"&&Object.prototype.toString.call(T)==="[object Date]")return new Date(T.getTime());if(typeof T=="number"||Object.prototype.toString.call(T)==="[object Number]")return new Date(T);if(!(typeof T=="string"||Object.prototype.toString.call(T)==="[object String]"))return new Date(NaN);var M=h(T),N=f(M.date,A),ee=N.year,ae=N.restDateString,oe=g(ae,ee);if(isNaN(oe))return new Date(NaN);if(oe){var Q=oe.getTime(),ye=0,_e;if(M.time&&(ye=y(M.time),isNaN(ye)))return new Date(NaN);if(M.timeZone||k.timeZone){if(_e=(0,a.default)(M.timeZone||k.timeZone,new Date(Q+ye)),isNaN(_e))return new Date(NaN)}else _e=(0,r.default)(new Date(Q+ye)),_e=(0,r.default)(new Date(Q+ye+_e));return new Date(Q+ye+_e)}else return new Date(NaN)}function h(T){var x={},k=c.dateTimePattern.exec(T),A;if(k?(x.date=k[1],A=k[3]):(k=c.datePattern.exec(T),k?(x.date=k[1],A=k[2]):(x.date=null,A=T)),A){var M=c.timeZone.exec(A);M?(x.time=A.replace(M[1],""),x.timeZone=M[1].trim()):x.time=A}return x}function f(T,x){var k=c.YYY[x],A=c.YYYYY[x],M;if(M=c.YYYY.exec(T)||A.exec(T),M){var N=M[1];return{year:parseInt(N,10),restDateString:T.slice(N.length)}}if(M=c.YY.exec(T)||k.exec(T),M){var ee=M[1];return{year:parseInt(ee,10)*100,restDateString:T.slice(ee.length)}}return{year:null}}function g(T,x){if(x===null)return null;var k,A,M,N;if(T.length===0)return A=new Date(0),A.setUTCFullYear(x),A;if(k=c.MM.exec(T),k)return A=new Date(0),M=parseInt(k[1],10)-1,w(x,M)?(A.setUTCFullYear(x,M),A):new Date(NaN);if(k=c.DDD.exec(T),k){A=new Date(0);var ee=parseInt(k[1],10);return D(x,ee)?(A.setUTCFullYear(x,0,ee),A):new Date(NaN)}if(k=c.MMDD.exec(T),k){A=new Date(0),M=parseInt(k[1],10)-1;var ae=parseInt(k[2],10);return w(x,M,ae)?(A.setUTCFullYear(x,M,ae),A):new Date(NaN)}if(k=c.Www.exec(T),k)return N=parseInt(k[1],10)-1,I(x,N)?v(x,N):new Date(NaN);if(k=c.WwwD.exec(T),k){N=parseInt(k[1],10)-1;var oe=parseInt(k[2],10)-1;return I(x,N,oe)?v(x,N,oe):new Date(NaN)}return null}function y(T){var x,k,A;if(x=c.HH.exec(T),x)return k=parseFloat(x[1].replace(",",".")),L(k)?k%24*s:NaN;if(x=c.HHMM.exec(T),x)return k=parseInt(x[1],10),A=parseFloat(x[2].replace(",",".")),L(k,A)?k%24*s+A*l:NaN;if(x=c.HHMMSS.exec(T),x){k=parseInt(x[1],10),A=parseInt(x[2],10);var M=parseFloat(x[3].replace(",","."));return L(k,A,M)?k%24*s+A*l+M*1e3:NaN}return null}function v(T,x,k){x=x||0,k=k||0;var A=new Date(0);A.setUTCFullYear(T,0,4);var M=A.getUTCDay()||7,N=x*7+k+1-M;return A.setUTCDate(A.getUTCDate()+N),A}var p=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function m(T){return T%400===0||T%4===0&&T%100!==0}function w(T,x,k){if(x<0||x>11)return!1;if(k!=null){if(k<1)return!1;var A=m(T);if(A&&k>b[x]||!A&&k>p[x])return!1}return!0}function D(T,x){if(x<1)return!1;var k=m(T);return!(k&&x>366||!k&&x>365)}function I(T,x,k){return!(x<0||x>52||k!=null&&(k<0||k>6))}function L(T,x,k){return!(T!=null&&(T<0||T>=25)||x!=null&&(x<0||x>=60)||k!=null&&(k<0||k>=60))}e.exports=t.default})(u0,u0.exports);var Hu=u0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=o(O_),r=o(I_),a=o(Hu);function o(l){return l&&l.__esModule?l:{default:l}}var i=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),h=c||{},f=d.match(i);if(f){var g=(0,a.default)(l,h);d=f.reduce(function(y,v){if(v[0]==="'")return y;var p=y.indexOf(v),b=y[p-1]==="'",m=y.replace(v,"'"+r.default[v[0]](g,v,null,h)+"'");return b?m.substring(0,p-1)+m.substring(p+1):m},d)}return(0,n.default)(l,d,h)}e.exports=t.default})(xd,xd.exports);var c2=xd.exports,d0={exports:{}},h0={exports:{}},f0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o]);return r}e.exports=t.default})(f0,f0.exports);var N_=f0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(N_);function a(o){return(0,r.default)({},o)}e.exports=t.default})(h0,h0.exports);var d2=h0.exports,p0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(_s),r=a(Hu);function a(i){return i&&i.__esModule?i:{default:i}}function o(i,s,l){var u=(0,r.default)(i,l),c=(0,n.default)(s,u,!0),d=new Date(u.getTime()-c),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}e.exports=t.default})(p0,p0.exports);var h2=p0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(d2),r=o(c2),a=o(h2);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,l,u,c){var d=(0,n.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}e.exports=t.default})(d0,d0.exports);var L_=d0.exports,m0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(_s);function r(o){return o&&o.__esModule?o:{default:o}}function a(o,i){return-(0,n.default)(o,i)}e.exports=t.default})(m0,m0.exports);var R_=m0.exports,v0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(d2),r=s(Hu),a=s(u2),o=s(_s),i=s(l2);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var h=(0,n.default)(d);return h.timeZone=c,(0,r.default)(u,h)}var f=(0,r.default)(u,d),g=(0,i.default)(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()).getTime(),y=(0,o.default)(c,new Date(g));return new Date(g+y)}e.exports=t.default})(v0,v0.exports);var $_=v0.exports,xc={format:c2,formatInTimeZone:L_,getTimezoneOffset:R_,toDate:Hu,utcToZonedTime:h2,zonedTimeToUtc:$_};function ls(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function $n(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView:window}return e}function Oh(e){var t=$n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function us(e){var t=$n(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=$n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function H_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function z_(e){return e===$n(e)||!wr(e)?Oh(e):H_(e)}function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function ga(e){return(us(e)?e.ownerDocument:e.document).documentElement}function f2(e){return ls(ga(e)).left+Oh(e).scrollLeft}function Ts(e){return $n(e).getComputedStyle(e)}function Ph(e){var t=Ts(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function p2(e,t,n){n===void 0&&(n=!1);var r=ga(t),a=ls(e),o={scrollLeft:0,scrollTop:0},i={x:0,y:0};return n||((Zr(t)!=="body"||Ph(r))&&(o=z_(t)),wr(t)?(i=ls(t),i.x+=t.clientLeft,i.y+=t.clientTop):r&&(i.x=f2(r))),{x:a.left+o.scrollLeft-i.x,y:a.top+o.scrollTop-i.y,width:a.width,height:a.height}}function Bh(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function m2(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ga(e)}function v2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:wr(e)&&Ph(e)?e:v2(m2(e))}function zi(e,t){t===void 0&&(t=[]);var n=v2(e),r=Zr(n)==="body",a=$n(n),o=r?[a].concat(a.visualViewport||[],Ph(n)?n:[]):n,i=t.concat(o);return r?i:i.concat(zi(m2(o)))}function F_(e){return["table","td","th"].indexOf(Zr(e))>=0}function Bp(e){return!wr(e)||Ts(e).position==="fixed"?null:e.offsetParent}function Ds(e){for(var t=$n(e),n=Bp(e);n&&F_(n);)n=Bp(n);return n&&Zr(n)==="body"&&Ts(n).position==="static"?t:n||t}var Bn="top",qn="bottom",Qn="right",In="left",Ih="auto",Ms=[Bn,qn,Qn,In],Uo="start",Nh="end",j_="clippingParents",g2="viewport",bi="popper",U_="reference",Ip=Ms.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Nh])},[]),y2=[].concat(Ms,[Ih]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Nh])},[]),Z_="beforeRead",Y_="read",V_="afterRead",K_="beforeMain",G_="main",W_="afterMain",q_="beforeWrite",Q_="write",X_="afterWrite",J_=[Z_,Y_,V_,K_,G_,W_,q_,Q_,X_];function eT(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function tT(e){var t=eT(e);return J_.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function nT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dr(e){return e.split("-")[0]}function rT(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,{},r,{options:Object.assign({},a.options,{},r.options),data:Object.assign({},a.data,{},r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Np={placement:"bottom",modifiers:[],strategy:"absolute"};function Lp(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function b2(e){var t=e.reference,n=e.element,r=e.placement,a=r?dr(r):null,o=r?cs(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Bn:l={x:i,y:t.y-n.height};break;case qn:l={x:i,y:t.y+t.height};break;case Qn:l={x:t.x+t.width,y:s};break;case In:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?Lh(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Uo:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Nh:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function sT(e){var t=e.state,n=e.name;t.modifiersData[n]=b2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lT={name:"popperOffsets",enabled:!0,phase:"read",fn:sT,data:{}};var uT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cT(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Math.round(t*a)/a||0,y:Math.round(n*a)/a||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,u=cT(o),c=u.x,d=u.y,h=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),g=In,y=Bn,v=window;if(l){var p=Ds(n);p===$n(n)&&(p=ga(n)),a===Bn&&(y=qn,d-=p.clientHeight-r.height,d*=s?1:-1),a===In&&(g=Qn,c-=p.clientWidth-r.width,c*=s?1:-1)}var b=Object.assign({position:i},l&&uT);if(s){var m;return Object.assign({},b,(m={},m[y]=f?"0":"",m[g]=h?"0":"",m.transform=(v.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign({},b,(t={},t[y]=f?d+"px":"",t[g]=h?c+"px":"",t.transform="",t))}function dT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,s={placement:dr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,{},Rp(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},Rp(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dT,data:{}};function fT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!wr(o)||!Zr(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function pT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,u){return l[u]="",l},{});!wr(a)||!Zr(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const mT={name:"applyStyles",enabled:!0,phase:"write",fn:fT,effect:pT,requires:["computeStyles"]};function vT(e,t,n){var r=dr(e),a=[In,Bn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[In,Qn].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function gT(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=y2.reduce(function(c,d){return c[d]=vT(d,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const yT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gT};var bT={left:"right",right:"left",bottom:"top",top:"bottom"};function cl(e){return e.replace(/left|right|bottom|top/g,function(t){return bT[t]})}var wT={start:"end",end:"start"};function $p(e){return e.replace(/start|end/g,function(t){return wT[t]})}function kT(e){var t=$n(e),n=t.visualViewport,r=t.innerWidth,a=t.innerHeight;return n&&/iPhone|iPod|iPad/.test(navigator.platform)&&(r=n.width,a=n.height),{width:r,height:a,x:0,y:0}}function CT(e){var t=$n(e),n=Oh(e),r=p2(ga(e),t);return r.height=Math.max(r.height,t.innerHeight),r.width=Math.max(r.width,t.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}function Zs(e){return parseFloat(e)||0}function ET(e){var t=wr(e)?Ts(e):{};return{top:Zs(t.borderTopWidth),right:Zs(t.borderRightWidth),bottom:Zs(t.borderBottomWidth),left:Zs(t.borderLeftWidth)}}function xT(e){var t=$n(e),n=ET(e),r=Zr(e)==="html",a=f2(e),o=e.clientWidth+n.right,i=e.clientHeight+n.bottom;return r&&t.innerHeight-e.clientHeight>50&&(i=t.innerHeight-n.bottom),{top:r?0:e.clientTop,right:e.clientLeft>n.left?n.right:r?t.innerWidth-o-a:e.offsetWidth-o,bottom:r?t.innerHeight-i:e.offsetHeight-i,left:r?a:e.clientLeft}}function w2(e,t){var n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function g0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hp(e,t){return t===g2?g0(kT(e)):wr(t)?ls(t):g0(CT(ga(e)))}function ST(e){var t=zi(e),n=["absolute","fixed"].indexOf(Ts(e).position)>=0,r=n&&wr(e)?Ds(e):e;return us(r)?t.filter(function(a){return us(a)&&w2(a,r)}):[]}function _T(e,t,n){var r=t==="clippingParents"?ST(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(s,l){var u=Hp(e,l),c=xT(wr(l)?l:ga(e));return s.top=Math.max(u.top+c.top,s.top),s.right=Math.min(u.right-c.right,s.right),s.bottom=Math.min(u.bottom-c.bottom,s.bottom),s.left=Math.max(u.left+c.left,s.left),s},Hp(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function k2(){return{top:0,right:0,bottom:0,left:0}}function C2(e){return Object.assign({},k2(),{},e)}function E2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ds(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,i=o===void 0?j_:o,s=n.rootBoundary,l=s===void 0?g2:s,u=n.elementContext,c=u===void 0?bi:u,d=n.altBoundary,h=d===void 0?!1:d,f=n.padding,g=f===void 0?0:f,y=C2(typeof g!="number"?g:E2(g,Ms)),v=c===bi?U_:bi,p=e.elements.reference,b=e.rects.popper,m=e.elements[h?v:c],w=_T(us(m)?m:m.contextElement||ga(e.elements.popper),i,l),D=ls(p),I=b2({reference:D,element:b,strategy:"absolute",placement:a}),L=g0(Object.assign({},b,{},I)),T=c===bi?L:D,x={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},k=e.modifiersData.offset;if(c===bi&&k){var A=k[a];Object.keys(x).forEach(function(M){var N=[Qn,qn].indexOf(M)>=0?1:-1,ee=[Bn,qn].indexOf(M)>=0?"y":"x";x[M]+=A[ee]*N})}return x}function TT(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?y2:l,c=cs(r),d=(c?s?Ip:Ip.filter(function(f){return cs(f)===c}):Ms).filter(function(f){return u.indexOf(f)>=0}),h=d.reduce(function(f,g){return f[g]=ds(e,{placement:g,boundary:a,rootBoundary:o,padding:i})[dr(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function DT(e){if(dr(e)===Ih)return[];var t=cl(e);return[$p(e),t,$p(t)]}function MT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,y=n.allowedAutoPlacements,v=t.options.placement,p=dr(v),b=p===v,m=l||(b||!g?[cl(v)]:DT(v)),w=[v].concat(m).reduce(function($e,Ae){return $e.concat(dr(Ae)===Ih?TT(t,{placement:Ae,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):Ae)},[]),D=t.rects.reference,I=t.rects.popper,L=new Map,T=!0,x=w[0],k=0;k=0,ae=ee?"width":"height",oe=ds(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),Q=ee?N?Qn:In:N?qn:Bn;D[ae]>I[ae]&&(Q=cl(Q));var ye=cl(Q),_e=[];if(o&&_e.push(oe[M]<=0),s&&_e.push(oe[Q]<=0,oe[ye]<=0),_e.every(function($e){return $e})){x=A,T=!1;break}L.set(A,_e)}if(T)for(var Re=g?3:1,Ue=function($e){var Ae=w.find(function(je){var U=L.get(je);if(U)return U.slice(0,$e).every(function(R){return R})});if(Ae)return x=Ae,"break"},Fe=Re;Fe>0;Fe--){var fe=Ue(Fe);if(fe==="break")break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}const AT={name:"flip",enabled:!0,phase:"main",fn:MT,requiresIfExists:["offset"],data:{_skip:!1}};function OT(e){return e==="x"?"y":"x"}function dl(e,t,n){return Math.max(e,Math.min(t,n))}function PT(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,v=ds(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=dr(t.placement),b=cs(t.placement),m=!b,w=Lh(p),D=OT(w),I=t.modifiersData.popperOffsets,L=t.rects.reference,T=t.rects.popper,x=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,k={x:0,y:0};if(I){if(o){var A=w==="y"?Bn:In,M=w==="y"?qn:Qn,N=w==="y"?"height":"width",ee=I[w],ae=I[w]+v[A],oe=I[w]-v[M],Q=f?-T[N]/2:0,ye=b===Uo?L[N]:T[N],_e=b===Uo?-T[N]:-L[N],Re=t.elements.arrow,Ue=f&&Re?Bh(Re):{width:0,height:0},Fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k2(),fe=Fe[A],$e=Fe[M],Ae=dl(0,L[N],Ue[N]),je=m?L[N]/2-Q-Ae-fe-x:ye-Ae-fe-x,U=m?-L[N]/2+Q+Ae+$e+x:_e+Ae+$e+x,R=t.elements.arrow&&Ds(t.elements.arrow),K=R?w==="y"?R.clientTop||0:R.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,te=I[w]+je-H-K,E=I[w]+U-H,_=dl(f?Math.min(ae,te):ae,ee,f?Math.max(oe,E):oe);I[w]=_,k[w]=_-ee}if(s){var P=w==="x"?Bn:In,Z=w==="x"?qn:Qn,Y=I[D],W=Y+v[P],ce=Y-v[Z],le=dl(W,Y,ce);I[D]=le,k[D]=le-Y}t.modifiersData[r]=k}}const BT={name:"preventOverflow",enabled:!0,phase:"main",fn:PT,requiresIfExists:["offset"]};function IT(e){var t,n=e.state,r=e.name,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=dr(n.placement),s=Lh(i),l=[In,Qn].indexOf(i)>=0,u=l?"height":"width";if(!(!a||!o)){var c=n.modifiersData[r+"#persistent"].padding,d=Bh(a),h=s==="y"?Bn:In,f=s==="y"?qn:Qn,g=n.rects.reference[u]+n.rects.reference[s]-o[s]-n.rects.popper[u],y=o[s]-n.rects.reference[s],v=Ds(a),p=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-y/2,m=c[h],w=p-d[u]-c[f],D=p/2-d[u]/2+b,I=dl(m,D,w),L=s;n.modifiersData[r]=(t={},t[L]=I,t.centerOffset=I-D,t)}}function NT(e){var t=e.state,n=e.options,r=e.name,a=n.element,o=a===void 0?"[data-popper-arrow]":a,i=n.padding,s=i===void 0?0:i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(!w2(t.elements.popper,o))return;t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:C2(typeof s!="number"?s:E2(s,Ms))}}}const LT={name:"arrow",enabled:!0,phase:"main",fn:IT,effect:NT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fp(e){return[Bn,Qn,qn,In].some(function(t){return e[t]>=0})}function RT(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ds(t,{elementContext:"reference"}),s=ds(t,{altBoundary:!0}),l=zp(i,r),u=zp(s,a,o),c=Fp(l),d=Fp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const $T={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RT};var HT=[iT,lT,hT,mT,yT,AT,BT,LT,$T],zT=aT({defaultModifiers:HT}),FT=Object.defineProperty,jT=Object.defineProperties,UT=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,jp=(e,t,n)=>t in e?FT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))x2.call(t,n)&&jp(e,n,t[n]);if(Zl)for(var n of Zl(t))S2.call(t,n)&&jp(e,n,t[n]);return e},et=(e,t)=>jT(e,UT(t)),ZT=(e,t)=>{var n={};for(var r in e)x2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zl)for(var r of Zl(e))t.indexOf(r)<0&&S2.call(e,r)&&(n[r]=e[r]);return n};function pr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function qt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Yr(e){qt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function ur(e,t){qt(2,arguments);var n=Yr(e),r=pr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function y0(e,t){qt(2,arguments);var n=Yr(e),r=pr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function Up(e,t){qt(2,arguments);var n=pr(t);return y0(e,n*12)}var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YT=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,_2=YT,VT=_2,KT=typeof self=="object"&&self&&self.Object===Object&&self,GT=VT||KT||Function("return this")(),kr=GT,WT=kr,qT=WT.Symbol,ti=qT,Zp=ti,T2=Object.prototype,QT=T2.hasOwnProperty,XT=T2.toString,wi=Zp?Zp.toStringTag:void 0;function JT(e){var t=QT.call(e,wi),n=e[wi];try{e[wi]=void 0;var r=!0}catch{}var a=XT.call(e);return r&&(t?e[wi]=n:delete e[wi]),a}var eD=JT,tD=Object.prototype,nD=tD.toString;function rD(e){return nD.call(e)}var aD=rD,Yp=ti,oD=eD,iD=aD,sD="[object Null]",lD="[object Undefined]",Vp=Yp?Yp.toStringTag:void 0;function uD(e){return e==null?e===void 0?lD:sD:Vp&&Vp in Object(e)?oD(e):iD(e)}var Cr=uD;function cD(e){return e!=null&&typeof e=="object"}var Cn=cD,dD=Cr,hD=Cn,fD="[object Boolean]";function pD(e){return e===!0||e===!1||hD(e)&&dD(e)==fD}var mD=pD,vD=Cr,gD=Cn,yD="[object Number]";function bD(e){return typeof e=="number"||gD(e)&&vD(e)==yD}var Fi=bD,wD=Array.isArray,En=wD,kD=Cr,CD=En,ED=Cn,xD="[object String]";function SD(e){return typeof e=="string"||!CD(e)&&ED(e)&&kD(e)==xD}var sa=SD;function _D(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn=_D,TD=Cr,DD=Hn,MD="[object AsyncFunction]",AD="[object Function]",OD="[object GeneratorFunction]",PD="[object Proxy]";function BD(e){if(!DD(e))return!1;var t=TD(e);return t==AD||t==OD||t==MD||t==PD}var Ir=BD,ID=9007199254740991;function ND(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ID}var Rh=ND,LD=Ir,RD=Rh;function $D(e){return e!=null&&RD(e.length)&&!LD(e)}var As=$D,HD=As,zD=Cn;function FD(e){return zD(e)&&HD(e)}var hn=FD;function jD(e){return e===void 0}var UD=jD,ZD=Cr,YD=Cn,VD="[object Date]";function KD(e){return YD(e)&&ZD(e)==VD}var GD=KD;function WD(e){return function(t){return e(t)}}var zu=WD,Zo={exports:{}};(function(e,t){var n=_2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,i=o&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Zo,Zo.exports);var qD=GD,QD=zu,Kp=Zo.exports,Gp=Kp&&Kp.isDate,XD=Gp?QD(Gp):qD,JD=XD;function eM(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var tM=eM,nM=Cr,rM=Cn,aM="[object Symbol]";function oM(e){return typeof e=="symbol"||rM(e)&&nM(e)==aM}var Fu=oM,Wp=Hn,iM=Fu,qp=0/0,sM=/^\s+|\s+$/g,lM=/^[-+]0x[0-9a-f]+$/i,uM=/^0b[01]+$/i,cM=/^0o[0-7]+$/i,dM=parseInt;function hM(e){if(typeof e=="number")return e;if(iM(e))return qp;if(Wp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(sM,"");var n=uM.test(e);return n||cM.test(e)?dM(e.slice(2),n?2:8):lM.test(e)?qp:+e}var fM=hM,pM=tM,Sc=fM;function mM(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Sc(n),n=n===n?n:0),t!==void 0&&(t=Sc(t),t=t===t?t:0),pM(Sc(e),t,n)}var vM=mM,gM=En,yM=Fu,bM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wM=/^\w*$/;function kM(e,t){if(gM(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yM(e)?!0:wM.test(e)||!bM.test(e)||t!=null&&e in Object(t)}var $h=kM,CM=kr,EM=CM["__core-js_shared__"],xM=EM,_c=xM,Qp=function(){var e=/[^.]+$/.exec(_c&&_c.keys&&_c.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SM(e){return!!Qp&&Qp in e}var _M=SM,TM=Function.prototype,DM=TM.toString;function MM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var D2=MM,AM=Ir,OM=_M,PM=Hn,BM=D2,IM=/[\\^$.*+?()[\]{}|]/g,NM=/^\[object .+?Constructor\]$/,LM=Function.prototype,RM=Object.prototype,$M=LM.toString,HM=RM.hasOwnProperty,zM=RegExp("^"+$M.call(HM).replace(IM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FM(e){if(!PM(e)||OM(e))return!1;var t=AM(e)?zM:NM;return t.test(BM(e))}var jM=FM;function UM(e,t){return e==null?void 0:e[t]}var ZM=UM,YM=jM,VM=ZM;function KM(e,t){var n=VM(e,t);return YM(n)?n:void 0}var ro=KM,GM=ro,WM=GM(Object,"create"),ju=WM,Xp=ju;function qM(){this.__data__=Xp?Xp(null):{},this.size=0}var QM=qM;function XM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JM=XM,eA=ju,tA="__lodash_hash_undefined__",nA=Object.prototype,rA=nA.hasOwnProperty;function aA(e){var t=this.__data__;if(eA){var n=t[e];return n===tA?void 0:n}return rA.call(t,e)?t[e]:void 0}var oA=aA,iA=ju,sA=Object.prototype,lA=sA.hasOwnProperty;function uA(e){var t=this.__data__;return iA?t[e]!==void 0:lA.call(t,e)}var cA=uA,dA=ju,hA="__lodash_hash_undefined__";function fA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=dA&&t===void 0?hA:t,this}var pA=fA,mA=QM,vA=JM,gA=oA,yA=cA,bA=pA;function ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var LA=NA,RA=Uu;function $A(e,t){var n=this.__data__,r=RA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var HA=$A,zA=CA,FA=AA,jA=BA,UA=LA,ZA=HA;function ai(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&es))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=n&EI?new bI:void 0;for(o.set(e,t),o.set(t,e);++d0){if(++t>=DR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PR=OR,BR=TR,IR=PR,NR=IR(BR),t5=NR,LR=Gh,RR=e5,$R=t5;function HR(e,t){return $R(RR(e,t,LR),e+"")}var Wh=HR,zR=ri,FR=As,jR=Gu,UR=Hn;function ZR(e,t,n){if(!UR(n))return!1;var r=typeof t;return(r=="number"?FR(n)&&jR(t,n.length):r=="string"&&t in n)?zR(n[t],e):!1}var qh=ZR;function YR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VR=YR,KR=Hn,GR=Yh,WR=VR,qR=Object.prototype,QR=qR.hasOwnProperty;function XR(e){if(!KR(e))return WR(e);var t=GR(e),n=[];for(var r in e)r=="constructor"&&(t||!QR.call(e,r))||n.push(r);return n}var JR=XR,e$=N2,t$=JR,n$=As;function r$(e){return n$(e)?e$(e,!0):t$(e)}var di=r$,a$=Wh,o$=ri,i$=qh,s$=di,n5=Object.prototype,l$=n5.hasOwnProperty,u$=a$(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&i$(t[0],t[1],a)&&(r=1);++n1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&hH(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r0&&n(s)?t>1?f5(s,t-1,n,r,a):RH(a,s):r||(a[a.length]=s)}return a}var HH=f5,zH=HH;function FH(e){var t=e==null?0:e.length;return t?zH(e,1):[]}var jH=FH,UH=jH,ZH=e5,YH=t5;function VH(e){return YH(ZH(e,void 0,UH),e+"")}var p5=VH,KH=PH,GH=p5,WH=GH(function(e,t){return e==null?{}:KH(e,t)}),qH=WH;function QH(e,t){for(var n=-1,r=e==null?0:e.length;++na?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r1),o}),jj(e,Yj(e),n),r&&(n=Hj(n,Vj|Kj|Gj,Uj));for(var a=t.length;a--;)zj(n,t[a]);return n}),x0=Wj,qj=Object.prototype,Qj=qj.hasOwnProperty;function Xj(e,t){return e!=null&&Qj.call(e,t)}var Jj=Xj,eU=Jj,tU=q2;function nU(e,t){return e!=null&&tU(e,t,eU)}var w5=nU,rU=As;function aU(e,t){return function(n,r){if(n==null)return n;if(!rU(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=Object(n);(t?o--:++oObject.prototype.toString.call(e).slice(8,-1),da=e=>JD(e)&&!isNaN(e.getTime()),Pn=e=>wU(e)==="Object",ef=w5,S0=(e,t)=>C5(t,n=>w5(e,n)),kU=C5,rt=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length{const t={};return e.forEach(n=>Object.entries(n).forEach(([r,a])=>{t[r]?hn(t[r])?t[r].push(a):t[r]=[t[r],a]:t[r]=a})),t},yn=e=>!!(e&&e.month&&e.year),Ti=(e,t)=>!yn(e)||!yn(t)?!1:e.year===t.year?e.month!yn(e)||!yn(t)?!1:e.year===t.year?e.month>t.month:e.year>t.year,E5=(e,t,n)=>(e||!1)&&!Ti(e,t)&&!Ui(e,n),Mc=(e,t)=>!e&&t||e&&!t?!1:!e&&!t?!0:e.month===t.month&&e.year===t.year,Mr=({month:e,year:t},n)=>{const r=n>0?1:-1;for(let a=0;a12?(e=1,t++):e<1&&(e=12,t--);return{month:e,year:t}},EU=(e,t)=>{if(!yn(e)||!yn(t))return[];const n=[];for(;!Ui(e,t);)n.push(e),e=Mr(e,1);return n};function Ac(e,t){const n=da(e),r=da(t);return!n&&!r?!0:n!==r?!1:e.getTime()===t.getTime()}const Mn=e=>hn(e)&&e.length>0,U1=(e,t,n)=>{const r=[];return n.forEach(a=>{const o=a.name||a.toString(),i=a.mixin,s=a.validate;if(Object.prototype.hasOwnProperty.call(e,o)){const l=s?s(e[o]):e[o];t[o]=i&&Pn(l)?we(we({},i),l):l,r.push(o)}}),{target:t,assigned:r.length?r:null}},tn=(e,t,n,r)=>{e&&t&&n&&e.addEventListener(t,n,r)},nn=(e,t,n,r)=>{e&&t&&e.removeEventListener(t,n,r)},Zi=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),x5=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Kl=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`};function xU(e){let t=0,n=0,r;if(e.length===0)return t;for(n=0;n{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const SU={name:"CustomTransition",emits:["before-enter","before-transition","after-enter","after-transition"],props:{name:String,appear:Boolean},computed:{name_(){return`vc-${this.name||"none"}`}},methods:{beforeEnter(e){this.$emit("before-enter",e),this.$emit("before-transition",e)},afterEnter(e){this.$emit("after-enter",e),this.$emit("after-transition",e)}}};function _U(e,t,n,r,a,o){return C(),se(ja,{name:o.name_,appear:n.appear,onBeforeEnter:o.beforeEnter,onAfterEnter:o.afterEnter},{default:z(()=>[F(e.$slots,"default")]),_:3},8,["name","appear","onBeforeEnter","onAfterEnter"])}var S5=fi(SU,[["render",_U]]);const _0={name:"Popover",emits:["before-show","after-show","before-hide","after-hide"],render(){return De("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[De(S5,{name:this.transition,appear:!0,"on-before-enter":this.beforeEnter,"on-after-enter":this.afterEnter,"on-before-leave":this.beforeLeave,"on-after-leave":this.afterLeave},{default:()=>this.isVisible?De("div",{tabindex:-1,class:["vc-popover-content",`direction-${this.direction}`,this.contentClass],style:this.contentStyle},[this.content,De("span",{class:["vc-popover-caret",`direction-${this.direction}`,`align-${this.alignment}`]})]):null})])},props:{id:{type:String,required:!0},contentClass:String},data(){return{ref:null,opts:null,data:null,transition:"slide-fade",transitionTranslate:"15px",transitionDuration:"0.15s",placement:"bottom",positionFixed:!1,modifiers:[],isInteractive:!1,isHovered:!1,isFocused:!1,showDelay:0,hideDelay:110,autoHide:!1,popperEl:null}},computed:{content(){return Ir(this.$slots.default)&&this.$slots.default({direction:this.direction,alignment:this.alignment,data:this.data,updateLayout:this.setupPopper,hide:e=>this.hide(e)})||this.$slots.default},contentStyle(){return{"--slide-translate":this.transitionTranslate,"--slide-duration":this.transitionDuration}},popperOptions(){return{placement:this.placement,strategy:this.positionFixed?"fixed":"absolute",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:this.onPopperUpdate},...this.modifiers||[]],onFirstUpdate:this.onPopperUpdate}},isVisible(){return!!(this.ref&&this.content)},direction(){return this.placement&&this.placement.split("-")[0]||"bottom"},alignment(){const e=this.direction==="left"||this.direction==="right";let t=this.placement.split("-");return t=t.length>1?t[1]:"",["start","top","left"].includes(t)?e?"top":"left":["end","bottom","right"].includes(t)?e?"bottom":"right":e?"middle":"center"}},watch:{opts(e,t){t&&t.callback&&t.callback(et(we({},t),{completed:!e,reason:e?"Overridden by action":null}))}},mounted(){this.popoverEl=this.$refs.popover,this.addEvents()},beforeUnmount(){this.destroyPopper(),this.removeEvents(),this.popoverEl=null},methods:{addEvents(){tn(this.popoverEl,"click",this.onClick),tn(this.popoverEl,"mouseover",this.onMouseOver),tn(this.popoverEl,"mouseleave",this.onMouseLeave),tn(this.popoverEl,"focusin",this.onFocusIn),tn(this.popoverEl,"focusout",this.onFocusOut),tn(document,"keydown",this.onDocumentKeydown),tn(document,"click",this.onDocumentClick),tn(document,"show-popover",this.onDocumentShowPopover),tn(document,"hide-popover",this.onDocumentHidePopover),tn(document,"toggle-popover",this.onDocumentTogglePopover),tn(document,"update-popover",this.onDocumentUpdatePopover)},removeEvents(){nn(this.popoverEl,"click",this.onClick),nn(this.popoverEl,"mouseover",this.onMouseOver),nn(this.popoverEl,"mouseleave",this.onMouseLeave),nn(this.popoverEl,"focusin",this.onFocusIn),nn(this.popoverEl,"focusout",this.onFocusOut),nn(document,"keydown",this.onDocumentKeydown),nn(document,"click",this.onDocumentClick),nn(document,"show-popover",this.onDocumentShowPopover),nn(document,"hide-popover",this.onDocumentHidePopover),nn(document,"toggle-popover",this.onDocumentTogglePopover),nn(document,"update-popover",this.onDocumentUpdatePopover)},onClick(e){e.stopPropagation()},onMouseOver(){this.isHovered=!0,this.isInteractive&&this.show()},onMouseLeave(){this.isHovered=!1,this.autoHide&&!this.isFocused&&(!this.ref||this.ref!==document.activeElement)&&this.hide()},onFocusIn(){this.isFocused=!0,this.isInteractive&&this.show()},onFocusOut(e){(!e.relatedTarget||!Zi(this.popoverEl,e.relatedTarget))&&(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(e){!this.$refs.popover||!this.ref||Zi(this.popoverEl,e.target)||Zi(this.ref,e.target)||this.hide()},onDocumentKeydown(e){(e.key==="Esc"||e.key==="Escape")&&this.hide()},onDocumentShowPopover({detail:e}){!e.id||e.id!==this.id||this.show(e)},onDocumentHidePopover({detail:e}){!e.id||e.id!==this.id||this.hide(e)},onDocumentTogglePopover({detail:e}){!e.id||e.id!==this.id||this.toggle(e)},onDocumentUpdatePopover({detail:e}){!e.id||e.id!==this.id||this.update(e)},show(e={}){e.action="show";const t=e.ref||this.ref,n=e.showDelay>=0?e.showDelay:this.showDelay;if(!t){e.callback&&e.callback({completed:!1,reason:"Invalid reference element provided"});return}clearTimeout(this.timeout),this.opts=e;const r=()=>{Object.assign(this,x0(e,["id"])),this.setupPopper(),this.opts=null};n>0?this.timeout=setTimeout(()=>r(),n):r()},hide(e={}){e.action="hide";const t=e.ref||this.ref,n=e.hideDelay>=0?e.hideDelay:this.hideDelay;if(!this.ref||t!==this.ref){e.callback&&e.callback(et(we({},e),{completed:!1,reason:this.ref?"Invalid reference element provided":"Popover already hidden"}));return}const r=()=>{this.ref=null,this.opts=null};clearTimeout(this.timeout),this.opts=e,n>0?this.timeout=setTimeout(r,n):r()},toggle(e={}){this.isVisible&&e.ref===this.ref?this.hide(e):this.show(e)},update(e={}){Object.assign(this,x0(e,["id"])),this.setupPopper()},setupPopper(){this.$nextTick(()=>{!this.ref||!this.$refs.popover||(this.popper&&this.popper.reference!==this.ref&&this.destroyPopper(),this.popper?this.popper.update():this.popper=zT(this.ref,this.popoverEl,this.popperOptions))})},onPopperUpdate(e){e.placement?this.placement=e.placement:e.state&&(this.placement=e.state.placement)},beforeEnter(e){this.$emit("before-show",e)},afterEnter(e){this.$emit("after-show",e)},beforeLeave(e){this.$emit("before-hide",e)},afterLeave(e){this.destroyPopper(),this.$emit("after-hide",e)},destroyPopper(){this.popper&&(this.popper.destroy(),this.popper=null)}}},TU={inject:["sharedState"],computed:{masks(){return this.sharedState.masks},theme(){return this.sharedState.theme},locale(){return this.sharedState.locale},dayPopoverId(){return this.sharedState.dayPopoverId}},methods:{format(e,t){return this.locale.format(e,t)},pageForDate(e){return this.locale.getDateParts(this.locale.normalizeDate(e))}}},DU=["base","start","end","startEnd"],MU=["class","contentClass","style","contentStyle","color","fillMode"],AU={color:"blue",isDark:!1,highlight:{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}},dot:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},bar:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},content:{base:{},start:{},end:{}}};class Z1{constructor(t){Object.assign(this,AU,t)}normalizeAttr({config:t,type:n}){let r=this.color,a={};const o=this[n];if(t===!0||sa(t))r=sa(t)?t:r,a=we({},o);else if(Pn(t))S0(t,DU)?a=we({},t):a={base:we({},t),start:we({},t),end:we({},t)};else return null;return ji(a,{start:a.startEnd,end:a.startEnd},o),hl(a).forEach(([i,s])=>{let l=r;s===!0||sa(s)?(l=sa(s)?s:l,a[i]={color:l}):Pn(s)&&(S0(s,MU)?a[i]=we({},s):a[i]={}),ef(a,`${i}.color`)||vP(a,`${i}.color`,l)}),a}normalizeHighlight(t){const n=this.normalizeAttr({config:t,type:"highlight"});return hl(n).forEach(([r,a])=>{const o=ji(a,{isDark:this.isDark,color:this.color});a.style=we(we({},this.getHighlightBgStyle(o)),a.style),a.contentStyle=we(we({},this.getHighlightContentStyle(o)),a.contentStyle)}),n}getHighlightBgStyle({fillMode:t,color:n,isDark:r}){switch(t){case"outline":case"none":return{backgroundColor:r?"var(--gray-900)":"var(--white)",border:"2px solid",borderColor:r?`var(--${n}-200)`:`var(--${n}-700)`,borderRadius:"var(--rounded-full)"};case"light":return{backgroundColor:r?`var(--${n}-800)`:`var(--${n}-200)`,opacity:r?.75:1,borderRadius:"var(--rounded-full)"};case"solid":return{backgroundColor:r?`var(--${n}-500)`:`var(--${n}-600)`,borderRadius:"var(--rounded-full)"};default:return{borderRadius:"var(--rounded-full)"}}}getHighlightContentStyle({fillMode:t,color:n,isDark:r}){switch(t){case"outline":case"none":return{fontWeight:"var(--font-bold)",color:r?`var(--${n}-100)`:`var(--${n}-900)`};case"light":return{fontWeight:"var(--font-bold)",color:r?`var(--${n}-100)`:`var(--${n}-900)`};case"solid":return{fontWeight:"var(--font-bold)",color:"var(--white)"};default:return""}}bgAccentHigh({color:t,isDark:n}){return{backgroundColor:n?`var(--${t}-500)`:`var(--${t}-600)`}}contentAccent({color:t,isDark:n}){return t?{fontWeight:"var(--font-bold)",color:n?`var(--${t}-100)`:`var(--${t}-900)`}:null}normalizeDot(t){return this.normalizeNonHighlight("dot",t,this.bgAccentHigh)}normalizeBar(t){return this.normalizeNonHighlight("bar",t,this.bgAccentHigh)}normalizeContent(t){return this.normalizeNonHighlight("content",t,this.contentAccent)}normalizeNonHighlight(t,n,r){const a=this.normalizeAttr({type:t,config:n});return hl(a).forEach(([o,i])=>{ji(i,{isDark:this.isDark,color:this.color}),i.style=we(we({},r(i)),i.style)}),a}}var pl=6e4;function Y1(e){return e.getTime()%pl}function Gl(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0,a=r?(pl+Y1(t))%pl:Y1(t);return n*pl+a}function OU(e,t){var n=NU(t);return n.formatToParts?BU(n,e):IU(n,e)}var PU={year:0,month:1,day:2,hour:3,minute:4,second:5};function BU(e,t){for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[o]=parseInt(n[a].value,10))}return r}function IU(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Oc={};function NU(e){if(!Oc[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Oc[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Oc[e]}var V1=36e5,LU=6e4,Ks={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function K1(e,t){var n,r;if(n=Ks.timezoneZ.exec(e),n)return 0;var a;if(n=Ks.timezoneHH.exec(e),n)return a=parseInt(n[2],10),G1()?(r=a*V1,n[1]==="+"?-r:r):NaN;if(n=Ks.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return G1(a,o)?(r=a*V1+o*LU,n[1]==="+"?-r:r):NaN}if(n=Ks.timezoneIANA.exec(e),n){var i=OU(t,e),s=Date.UTC(i[0],i[1]-1,i[2],i[3],i[4],i[5]),l=t.getTime()-t.getTime()%1e3;return-(s-l)}return 0}function G1(e,t){return!(t!=null&&(t<0||t>59))}var Pc=36e5,W1=6e4,RU=2,Yt={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function q1(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?RU:pr(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=$U(e),o=HU(a.date,r),i=o.year,s=o.restDateString,l=zU(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=FU(a.time),isNaN(c)))return new Date(NaN);if(a.timezone||n.timeZone){if(d=K1(a.timezone||n.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN);if(d=K1(a.timezone||n.timeZone,new Date(u+c+d)),isNaN(d))return new Date(NaN)}else d=Gl(new Date(u+c)),d=Gl(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function $U(e){var t={},n=e.split(Yt.dateTimeDelimeter),r;if(Yt.plainTime.test(n[0])?(t.date=null,r=n[0]):(t.date=n[0],r=n[1],t.timezone=n[2],Yt.timeZoneDelimeter.test(t.date)&&(t.date=e.split(Yt.timeZoneDelimeter)[0],r=e.substr(t.date.length,e.length))),r){var a=Yt.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function HU(e,t){var n=Yt.YYY[t],r=Yt.YYYYY[t],a;if(a=Yt.YYYY.exec(e)||r.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=Yt.YY.exec(e)||n.exec(e),a){var i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function zU(e,t){if(t===null)return null;var n,r,a,o;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Yt.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,X1(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=Yt.DDD.exec(e),n){r=new Date(0);var i=parseInt(n[1],10);return ZU(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(n=Yt.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return X1(t,a,s)?(r.setUTCFullYear(t,a,s),r):new Date(NaN)}if(n=Yt.Www.exec(e),n)return o=parseInt(n[1],10)-1,J1(t,o)?Q1(t,o):new Date(NaN);if(n=Yt.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return J1(t,o,l)?Q1(t,o,l):new Date(NaN)}return null}function FU(e){var t,n,r;if(t=Yt.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Bc(n)?n%24*Pc:NaN;if(t=Yt.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Bc(n,r)?n%24*Pc+r*W1:NaN;if(t=Yt.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Bc(n,r,a)?n%24*Pc+r*W1+a*1e3:NaN}return null}function Q1(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,o=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}var jU=[31,28,31,30,31,30,31,31,30,31,30,31],UU=[31,29,31,30,31,30,31,31,30,31,30,31];function _5(e){return e%400===0||e%4===0&&e%100!==0}function X1(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=_5(e);if(r&&n>UU[t]||!r&&n>jU[t])return!1}return!0}function ZU(e,t){if(t<1)return!1;var n=_5(e);return!(n&&t>366||!n&&t>365)}function J1(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Bc(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function Za(e,t){qt(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=a==null?0:pr(a),i=n.weekStartsOn==null?o:pr(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Yr(e),l=s.getDay(),u=(l=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function VU(e){qt(1,arguments);var t=YU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Wl(n);return r}var KU=6048e5;function GU(e){qt(1,arguments);var t=Yr(e),n=Wl(t).getTime()-VU(t).getTime();return Math.round(n/KU)+1}function WU(e,t){qt(1,arguments);var n=Yr(e),r=n.getFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,s=i==null?1:pr(i),l=a.firstWeekContainsDate==null?s:pr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setFullYear(r+1,0,l),u.setHours(0,0,0,0);var c=Za(u,t),d=new Date(0);d.setFullYear(r,0,l),d.setHours(0,0,0,0);var h=Za(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function qU(e,t){qt(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=a==null?1:pr(a),i=n.firstWeekContainsDate==null?o:pr(n.firstWeekContainsDate),s=WU(e,t),l=new Date(0);l.setFullYear(s,0,i),l.setHours(0,0,0,0);var u=Za(l,t);return u}var QU=6048e5;function XU(e,t){qt(1,arguments);var n=Yr(e),r=Za(n,t).getTime()-qU(n,t).getTime();return Math.round(r/QU)+1}var JU=6048e5;function eZ(e,t,n){qt(2,arguments);var r=Za(e,n),a=Za(t,n),o=r.getTime()-Gl(r),i=a.getTime()-Gl(a);return Math.round((o-i)/JU)}function tZ(e){qt(1,arguments);var t=Yr(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function nZ(e){qt(1,arguments);var t=Yr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function rZ(e,t){return qt(1,arguments),eZ(tZ(e),nZ(e),t)+1}const aZ=24*60*60*1e3;let Ar=class jn{constructor(t,{order:n=0,locale:r,isFullDay:a}={}){if(this.isDateInfo=!0,this.order=n,this.locale=r instanceof ql?r:new ql(r),this.firstDayOfWeek=this.locale.firstDayOfWeek,!Pn(t)){const l=this.locale.normalizeDate(t);a?t={start:l,end:l}:t={startOn:l,endOn:l}}let o=null,i=null;if(t.start?o=this.locale.normalizeDate(t.start,et(we({},this.opts),{time:"00:00:00"})):t.startOn&&(o=this.locale.normalizeDate(t.startOn,this.opts)),t.end?i=this.locale.normalizeDate(t.end,et(we({},this.opts),{time:"23:59:59"})):t.endOn&&(i=this.locale.normalizeDate(t.endOn,this.opts)),o&&i&&o>i){const l=o;o=i,i=l}else o&&t.span>=1&&(i=ur(o,t.span-1));this.start=o,this.startTime=o?o.getTime():NaN,this.end=i,this.endTime=i?i.getTime():NaN,this.isDate=this.startTime&&this.startTime===this.endTime,this.isRange=!this.isDate;const s=U1(t,{},jn.patternProps);if(s.assigned&&(this.on={and:s.target}),t.on){const l=(hn(t.on)?t.on:[t.on]).map(u=>{if(Ir(u))return u;const c=U1(u,{},jn.patternProps);return c.assigned?c.target:null}).filter(u=>u);l.length&&(this.on=et(we({},this.on),{or:l}))}this.isComplex=!!this.on}get opts(){return{order:this.order,locale:this.locale}}toDateInfo(t){return t.isDateInfo?t:new jn(t,this.opts)}startOfWeek(t){const n=t.getDay()+1,r=n>=this.firstDayOfWeek?this.firstDayOfWeek-n:-(7-(this.firstDayOfWeek-n));return ur(t,r)}diffInDays(t,n){return Math.round((n-t)/aZ)}diffInWeeks(t,n){return this.diffInDays(this.startOfWeek(t),this.startOfWeek(n))}diffInYears(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}diffInMonths(t,n){return this.diffInYears(t,n)*12+(n.getMonth()-t.getMonth())}static get patterns(){return{dailyInterval:{test:(t,n,r)=>r.diffInDays(r.start||new Date,t.date)%n===0},weeklyInterval:{test:(t,n,r)=>r.diffInWeeks(r.start||new Date,t.date)%n===0},monthlyInterval:{test:(t,n,r)=>r.diffInMonths(r.start||new Date,t.date)%n===0},yearlyInterval:{test:()=>(t,n,r)=>r.diffInYears(r.start||new Date,t.date)%n===0},days:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.day)||n.includes(-t.dayFromEnd)},weekdays:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.weekday)},ordinalWeekdays:{validate:t=>Object.keys(t).reduce((n,r)=>{const a=t[r];return a&&(n[r]=hn(a)?a:[parseInt(a,10)]),n},{}),test:(t,n)=>Object.keys(n).map(r=>parseInt(r,10)).find(r=>n[r].includes(t.weekday)&&(r===t.weekdayOrdinal||r===-t.weekdayOrdinalFromEnd))},weekends:{validate:t=>t,test:t=>t.weekday===1||t.weekday===7},workweek:{validate:t=>t,test:t=>t.weekday>=2&&t.weekday<=6},weeks:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.week)||n.includes(-t.weekFromEnd)},months:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.month)},years:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.year)}}}static get patternProps(){return Object.keys(jn.patterns).map(t=>({name:t,validate:jn.patterns[t].validate}))}static testConfig(t,n,r){return Ir(t)?t(n):Pn(t)?Object.keys(t).every(a=>jn.patterns[a].test(n,t[a],r)):null}iterateDatesInRange({start:t,end:n},r){if(!t||!n||!Ir(r))return null;t=this.locale.normalizeDate(t,et(we({},this.opts),{time:"00:00:00"}));const a={i:0,date:t,day:this.locale.getDateParts(t),finished:!1};let o=null;for(;!a.finished&&a.date<=n;a.i++)o=r(a),a.date=ur(a.date,1),a.day=this.locale.getDateParts(a.date);return o}shallowIntersectingRange(t){return this.rangeShallowIntersectingRange(this,this.toDateInfo(t))}rangeShallowIntersectingRange(t,n){if(!this.dateShallowIntersectsDate(t,n))return null;const r=t.toRange(),a=n.toRange();let o=null,i=null;return r.start?a.start?o=r.start>a.start?r.start:a.start:o=r.start:a.start&&(o=a.start),r.end?a.end?i=r.end{this.matchesDay(o.day)&&(a=a||n.matchesDay(o.day),o.finished=a)}),a}shallowIntersectsDate(t){return this.dateShallowIntersectsDate(this,this.toDateInfo(t))}dateShallowIntersectsDate(t,n){return t.isDate?n.isDate?t.startTime===n.startTime:this.dateShallowIncludesDate(n,t):n.isDate?this.dateShallowIncludesDate(t,n):!(t.start&&n.end&&t.start>n.end||t.end&&n.start&&t.end{this.matchesDay(o.day)&&(a=a&&n.matchesDay(o.day),o.finished=!a)}),a}shallowIncludesDate(t){return this.dateShallowIncludesDate(this,t.isDate?t:new jn(t,this.opts))}dateShallowIncludesDate(t,n){return t.isDate?n.isDate?t.startTime===n.startTime:!n.startTime||!n.endTime?!1:t.startTime===n.startTime&&t.startTime===n.endTime:n.isDate?!(t.start&&n.startt.end):!(t.start&&(!n.start||n.startt.end))}intersectsDay(t){return this.shallowIntersectsDate(t.range)&&this.matchesDay(t)?this:null}matchesDay(t){return this.on?!(this.on.and&&!jn.testConfig(this.on.and,t,this)||this.on.or&&!this.on.or.some(n=>jn.testConfig(n,t,this))):!0}toRange(){return new jn({start:this.start,end:this.end},this.opts)}compare(t){if(this.order!==t.order)return this.order-t.order;if(this.isDate!==t.isDate)return this.isDate?1:-1;if(this.isDate)return 0;const n=this.start-t.start;return n!==0?n:this.end-t.end}};const Nn={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Nn.en=Nn["en-US"];Nn.es=Nn["es-ES"];Nn.no=Nn.nb;Nn.zh=Nn["zh-CN"];hl(Nn).forEach(([e,{dow:t,L:n}])=>{Nn[e]={id:e,firstDayOfWeek:t,masks:{L:n}}});const Qr={DATE_TIME:1,DATE:2,TIME:3},oZ={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},em=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Xr=/\d\d?/,iZ=/\d{3}/,sZ=/\d{4}/,ki=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,lZ=/\[([^]*?)\]/gm,tm=()=>{},nm=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substring(1).toLowerCase());~a&&(t.month=a)},uZ=["L","iso"],Qt=7,cZ=[31,28,31,30,31,30,31,31,30,31,30,31],dZ=[{value:0,label:"00"},{value:1,label:"01"},{value:2,label:"02"},{value:3,label:"03"},{value:4,label:"04"},{value:5,label:"05"},{value:6,label:"06"},{value:7,label:"07"},{value:8,label:"08"},{value:9,label:"09"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"},{value:13,label:"13"},{value:14,label:"14"},{value:15,label:"15"},{value:16,label:"16"},{value:17,label:"17"},{value:18,label:"18"},{value:19,label:"19"},{value:20,label:"20"},{value:21,label:"21"},{value:22,label:"22"},{value:23,label:"23"}],rm={D(e){return e.day},DD(e){return rt(e.day)},Do(e,t){return t.DoFn(e.day)},d(e){return e.weekday-1},dd(e){return rt(e.weekday-1)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return rt(e.month)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substring(2)},YYYY(e){return rt(e.year,4)},h(e){return e.hours%12||12},hh(e){return rt(e.hours%12||12)},H(e){return e.hours},HH(e){return rt(e.hours)},m(e){return e.minutes},mm(e){return rt(e.minutes)},s(e){return e.seconds},ss(e){return rt(e.seconds)},S(e){return Math.round(e.milliseconds/100)},SS(e){return rt(Math.round(e.milliseconds/10),2)},SSS(e){return rt(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60),2)}:${rt(Math.abs(t)%60,2)}`}},dt={D:[Xr,(e,t)=>{e.day=t}],Do:[new RegExp(Xr.source+ki.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Xr,tm],W:[ki,tm],M:[Xr,(e,t)=>{e.month=t-1}],MMM:[ki,nm("monthNamesShort")],MMMM:[ki,nm("monthNames")],YY:[Xr,(e,t)=>{const n=+new Date().getFullYear().toString().substring(0,2);e.year=`${t>68?n-1:n}${t}`}],YYYY:[sZ,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.millisecond=t*100}],SS:[/\d{2}/,(e,t)=>{e.millisecond=t*10}],SSS:[iZ,(e,t)=>{e.millisecond=t}],h:[Xr,(e,t)=>{e.hour=t}],m:[Xr,(e,t)=>{e.minute=t}],s:[Xr,(e,t)=>{e.second=t}],a:[ki,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+(n[1]*60)+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};dt.DD=dt.D;dt.dd=dt.d;dt.WWWW=dt.WWW=dt.WW=dt.W;dt.MM=dt.M;dt.mm=dt.m;dt.hh=dt.H=dt.HH=dt.h;dt.ss=dt.s;dt.A=dt.a;dt.ZZZZ=dt.ZZZ=dt.ZZ=dt.Z;function hZ(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sa(e)?r=e:ef(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const a=Object.keys(t),o=s=>a.find(l=>l.toLowerCase()===s);r=o(r)||o(r.substring(0,2))||n;const i=et(we(we({},t["en-IE"]),t[r]),{id:r});return e=Pn(e)?Jh(e,i):i,e}class ql{constructor(t,{locales:n=Nn,timezone:r}={}){const{id:a,firstDayOfWeek:o,masks:i}=hZ(t,n);this.id=a,this.daysInWeek=Qt,this.firstDayOfWeek=vM(o,1,Qt),this.masks=i,this.timezone=r||void 0,this.dayNames=this.getDayNames("long"),this.dayNamesShort=this.getDayNames("short"),this.dayNamesShorter=this.dayNamesShort.map(s=>s.substring(0,2)),this.dayNamesNarrow=this.getDayNames("narrow"),this.monthNames=this.getMonthNames("long"),this.monthNamesShort=this.getMonthNames("short"),this.amPm=["am","pm"],this.monthData={},this.getMonthComps=this.getMonthComps.bind(this),this.parse=this.parse.bind(this),this.format=this.format.bind(this),this.toPage=this.toPage.bind(this)}format(t,n){if(t=this.normalizeDate(t),!t)return"";n=this.normalizeMasks(n)[0];const r=[];n=n.replace(lZ,(i,s)=>(r.push(s),"??"));const a=/Z$/.test(n)?"utc":this.timezone,o=this.getDateParts(t,a);return n=n.replace(em,i=>i in rm?rm[i](o,this):i.slice(1,i.length-1)),n.replace(/\?\?/g,()=>r.shift())}parse(t,n){return this.normalizeMasks(n).map(r=>{if(typeof r!="string")throw new Error("Invalid mask in fecha.parse");let a=t;if(a.length>1e3)return!1;let o=!0;const i={};if(r.replace(em,u=>{if(dt[u]){const c=dt[u],d=a.search(c[0]);~d?a.replace(c[0],h=>(c[1](i,h,this),a=a.substring(d+h.length),h)):o=!1}return dt[u]?"":u.slice(1,u.length-1)}),!o)return!1;const s=new Date;i.isPm===!0&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===!1&&+i.hour==12&&(i.hour=0);let l;return i.timezoneOffset!=null?(i.minute=+(i.minute||0)-+i.timezoneOffset,l=new Date(Date.UTC(i.year||s.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):l=this.getDateFromParts({year:i.year||s.getFullYear(),month:(i.month||0)+1,day:i.day||1,hours:i.hour||0,minutes:i.minute||0,seconds:i.second||0,milliseconds:i.millisecond||0}),l}).find(r=>r)||new Date(t)}normalizeMasks(t){return(Mn(t)&&t||[sa(t)&&t||"YYYY-MM-DD"]).map(n=>uZ.reduce((r,a)=>r.replace(a,this.masks[a]||""),n))}normalizeDate(t,n={}){let r=null,{type:a,fillDate:o}=n;const{mask:i,patch:s,time:l}=n,u=a==="auto"||!a;if(Fi(t)?(a="number",r=new Date(+t)):sa(t)?(a="string",r=t?this.parse(t,i||"iso"):null):Pn(t)?(a="object",r=this.getDateFromParts(t)):(a="date",r=da(t)?new Date(t.getTime()):null),r&&s){o=o==null?new Date:this.normalizeDate(o);const c=we(we({},this.getDateParts(o)),qH(this.getDateParts(r),oZ[s]));r=this.getDateFromParts(c)}return u&&(n.type=a),r&&!isNaN(r.getTime())?(l&&(r=this.adjustTimeForDate(r,{timeAdjust:l})),r):null}denormalizeDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.format(t,r||"iso"):"";default:return t?new Date(t):null}}hourIsValid(t,n,r){if(!n)return!0;if(hn(n))return n.includes(t);if(Pn(n)){const a=n.min||0,o=n.max||24;return a<=t&&o>=t}return n(t,r)}getHourOptions(t,n){return dZ.filter(r=>this.hourIsValid(r.value,t,n))}getMinuteOptions(t){const n=[];t=t>0?t:1;for(let r=0;r<=59;r+=t)n.push({value:r,label:rt(r,2)});return n}nearestOptionValue(t,n){if(t==null)return t;const r=n.reduce((a,o)=>{if(o.disabled)return a;if(isNaN(a))return o.value;const i=Math.abs(a-t);return Math.abs(o.value-t)r&&(r instanceof Ar?r:new Ar(r,n))).filter(r=>r)}getDateParts(t,n=this.timezone){if(!t)return null;let r=t;if(n){const m=new Date(t.toLocaleString("en-US",{timeZone:n}));m.setMilliseconds(t.getMilliseconds());const w=m.getTime()-t.getTime();r=new Date(t.getTime()+w)}const a=r.getMilliseconds(),o=r.getSeconds(),i=r.getMinutes(),s=r.getHours(),l=r.getMonth()+1,u=r.getFullYear(),c=this.getMonthComps(l,u),d=r.getDate(),h=c.days-d+1,f=r.getDay()+1,g=Math.floor((d-1)/7+1),y=Math.floor((c.days-d)/7+1),v=Math.ceil((d+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),p=c.weeks-v+1,b={milliseconds:a,seconds:o,minutes:i,hours:s,day:d,dayFromEnd:h,weekday:f,weekdayOrdinal:g,weekdayOrdinalFromEnd:y,week:v,weekFromEnd:p,month:l,year:u,date:t,isValid:!0};return b.timezoneOffset=this.getTimezoneOffset(b),b}getDateFromParts(t){if(!t)return null;const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:o=n.getDate(),hours:i=0,minutes:s=0,seconds:l=0,milliseconds:u=0}=t;if(this.timezone){const c=`${rt(r,4)}-${rt(a,2)}-${rt(o,2)}T${rt(i,2)}:${rt(s,2)}:${rt(l,2)}.${rt(u,3)}`;return q1(c,{timeZone:this.timezone})}return new Date(r,a-1,o,i,s,l,u)}getTimezoneOffset(t){const{year:n,month:r,day:a,hours:o=0,minutes:i=0,seconds:s=0,milliseconds:l=0}=t;let u;const c=new Date(Date.UTC(n,r-1,a,o,i,s,l));if(this.timezone){const d=`${rt(n,4)}-${rt(r,2)}-${rt(a,2)}T${rt(o,2)}:${rt(i,2)}:${rt(s,2)}.${rt(l,3)}`;u=q1(d,{timeZone:this.timezone})}else u=new Date(n,r-1,a,o,i,s,l);return(u-c)/6e4}toPage(t,n){return Fi(t)?Mr(n,t):sa(t)?this.getDateParts(this.normalizeDate(t)):da(t)?this.getDateParts(t):Pn(t)?t:null}getMonthDates(t=2e3){const n=[];for(let r=0;r<12;r++)n.push(new Date(t,r,15));return n}getMonthNames(t){const n=new Intl.DateTimeFormat(this.id,{month:t,timezome:"UTC"});return this.getMonthDates().map(r=>n.format(r))}getWeekdayDates(t=this.firstDayOfWeek){const n=[],r=5+t-1;for(let a=0;an.format(r))}getMonthComps(t,n){const r=`${t}-${n}`;let a=this.monthData[r];if(!a){const o=n%4===0&&n%100!==0||n%400===0,i=new Date(n,t-1,1),s=i.getDay()+1,l=t===2&&o?29:cZ[t-1],u=this.firstDayOfWeek-1,c=rZ(i,{weekStartsOn:u}),d=[],h=[];for(let f=0;f(ae,oe,Q,ye)=>this.normalizeDate({year:M,month:N,day:ee,hours:ae,minutes:oe,seconds:Q,milliseconds:ye});for(let M=1;M<=t;M++){for(let N=1,ee=i;N<=Qt;N++,ee+=ee===Qt?1-Qt:1){d&&ee===s&&(y=1,v=n.days,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1),m=1,w=n.weeks,D=n.month,I=n.year,d=!1,h=!0);const ae=A(I,D,y),oe={start:ae(0,0,0),end:ae(23,59,59,999)},Q=oe.start,ye=`${rt(I,4)}-${rt(D,2)}-${rt(y,2)}`,_e=N,Re=Qt-N,Ue=u[M-1],Fe=l[M-1],fe=y===T&&D===x&&I===k,$e=h&&y===1,Ae=h&&y===n.days,je=M===1,U=M===t,R=N===1,K=N===Qt;o.push({id:ye,label:y.toString(),ariaLabel:g.format(new Date(I,D-1,y)),day:y,dayFromEnd:v,weekday:ee,weekdayPosition:_e,weekdayPositionFromEnd:Re,weekdayOrdinal:p,weekdayOrdinalFromEnd:b,week:m,weekFromEnd:w,weeknumber:Ue,isoWeeknumber:Fe,month:D,year:I,dateFromTime:ae,date:Q,range:oe,isToday:fe,isFirstDay:$e,isLastDay:Ae,inMonth:h,inPrevMonth:d,inNextMonth:f,onTop:je,onBottom:U,onLeft:R,onRight:K,classes:[`id-${ye}`,`day-${y}`,`day-from-end-${v}`,`weekday-${ee}`,`weekday-position-${_e}`,`weekday-ordinal-${p}`,`weekday-ordinal-from-end-${b}`,`week-${m}`,`week-from-end-${w}`,{"is-today":fe,"is-first-day":$e,"is-last-day":Ae,"in-month":h,"in-prev-month":d,"in-next-month":f,"on-top":je,"on-bottom":U,"on-left":R,"on-right":K}]}),h&&Ae?(h=!1,f=!0,y=1,v=a.days,p=1,b=Math.floor((a.days-y)/Qt+1),m=1,w=a.weeks,D=a.month,I=a.year):(y++,v--,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1))}m++,w--}return o}}class T5{constructor({key:t,hashcode:n,highlight:r,content:a,dot:o,bar:i,popover:s,dates:l,excludeDates:u,excludeMode:c,customData:d,order:h,pinPage:f},g,y){this.key=UD(t)?Kl():t,this.hashcode=n,this.customData=d,this.order=h||0,this.dateOpts={order:h,locale:y},this.pinPage=f,r&&(this.highlight=g.normalizeHighlight(r)),a&&(this.content=g.normalizeContent(a)),o&&(this.dot=g.normalizeDot(o)),i&&(this.bar=g.normalizeBar(i)),s&&(this.popover=s),this.dates=y.normalizeDates(l,this.dateOpts),this.hasDates=!!Mn(this.dates),this.excludeDates=y.normalizeDates(u,this.dateOpts),this.hasExcludeDates=!!Mn(this.excludeDates),this.excludeMode=c||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new Ar({},this.dateOpts)),this.hasDates=!0),this.isComplex=kU(this.dates,v=>v.isComplex)}intersectsDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(n=>n.intersectsDate(t))||!1)}includesDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(n=>n.includesDate(t))||!1)}excludesDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),this.hasExcludeDates&&this.excludeDates.find(n=>this.excludeMode==="intersects"&&n.intersectsDate(t)||this.excludeMode==="includes"&&n.includesDate(t))}intersectsDay(t){return!this.excludesDay(t)&&(this.dates.find(n=>n.intersectsDay(t))||!1)}excludesDay(t){return this.hasExcludeDates&&this.excludeDates.find(n=>n.intersectsDay(t))}}const fZ=300,pZ=60,mZ=80;var vZ={maxSwipeTime:fZ,minHorizontalSwipeDistance:pZ,maxVerticalSwipeDistance:mZ};const gZ="MMMM YYYY",yZ="W",bZ="MMM",wZ=["L","YYYY-MM-DD","YYYY/MM/DD"],kZ=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],CZ=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],EZ=["h:mm A"],xZ=["HH:mm"],SZ="WWW, MMM D, YYYY",_Z=["L","YYYY-MM-DD","YYYY/MM/DD"],TZ="iso",DZ="YYYY-MM-DDTHH:mm:ss.SSSZ";var MZ={title:gZ,weekdays:yZ,navMonths:bZ,input:wZ,inputDateTime:kZ,inputDateTime24hr:CZ,inputTime:EZ,inputTime24hr:xZ,dayPopover:SZ,data:_Z,model:TZ,iso:DZ};const AZ="640px",OZ="768px",PZ="1024px",BZ="1280px";var IZ={sm:AZ,md:OZ,lg:PZ,xl:BZ};const NZ={componentPrefix:"v",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:vZ,masks:MZ,screens:IZ,locales:Nn,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}},T0=Fr(NZ),LZ=B(()=>nR(T0.locales,e=>(e.masks=Jh(e.masks,T0.masks),e))),ha=e=>window&&ef(window.__vcalendar__,e)?hs(window.__vcalendar__,e):hs(T0,e),RZ={props:{color:{type:String,default:()=>ha("color")},isDark:{type:Boolean,default:()=>ha("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,minDateExact:null,maxDateExact:null,disabledDates:null,availableDates:null,theme:null},computed:{$theme(){return this.theme instanceof Z1?this.theme:new Z1({color:this.color,isDark:this.isDark})},$locale(){if(this.locale instanceof ql)return this.locale;const e=Pn(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new ql(e,{locales:LZ.value,timezone:this.timezone})},disabledDates_(){const e=this.normalizeDates(this.disabledDates),{minDate:t,minDateExact:n,maxDate:r,maxDateExact:a}=this;if(n||t){const o=n?this.normalizeDate(n):this.normalizeDate(t,{time:"00:00:00"});e.push({start:null,end:new Date(o.getTime()-1e3)})}if(a||r){const o=a?this.normalizeDate(a):this.normalizeDate(r,{time:"23:59:59"});e.push({start:new Date(o.getTime()+1e3),end:null})}return e},availableDates_(){return this.normalizeDates(this.availableDates)},disabledAttribute(){return new T5({key:"disabled",dates:this.disabledDates_,excludeDates:this.availableDates_,excludeMode:"includes",order:100},this.$theme,this.$locale)}},methods:{formatDate(e,t){return this.$locale?this.$locale.format(e,t):""},parseDate(e,t){if(!this.$locale)return null;const n=this.$locale.parse(e,t);return da(n)?n:null},normalizeDate(e,t){return this.$locale?this.$locale.normalizeDate(e,t):e},normalizeDates(e){return this.$locale.normalizeDates(e,{isFullDay:!0})},pageForDate(e){return this.$locale.getDateParts(this.normalizeDate(e))},pageForThisMonth(){return this.pageForDate(new Date)}}},$Z={methods:{safeSlot(e,t,n=null){return Ir(this.$slots[e])?this.$slots[e](t):n}}},Qu=TU,D5=RZ,tf=$Z,HZ={name:"PopoverRow",mixins:[Qu],props:{attribute:Object},computed:{indicator(){const{highlight:e,dot:t,bar:n,popover:r}=this.attribute;if(r&&r.hideIndicator)return null;if(e){const{color:a,isDark:o}=e.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"10px",height:"5px",borderRadius:"3px"})}}if(t){const{color:a,isDark:o}=t.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"5px",height:"5px",borderRadius:"50%"})}}if(n){const{color:a,isDark:o}=n.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"10px",height:"3px"})}}return null}}},zZ={class:"vc-day-popover-row"},FZ={key:0,class:"vc-day-popover-row-indicator"},jZ={class:"vc-day-popover-row-content"};function UZ(e,t,n,r,a,o){return C(),S("div",zZ,[o.indicator?(C(),S("div",FZ,[O("span",{style:Et(o.indicator.style),class:q(o.indicator.class)},null,6)])):$("",!0),O("div",jZ,[F(e.$slots,"default",{},()=>[J(V(n.attribute.popover?n.attribute.popover.label:"No content provided"),1)])])])}var ZZ=fi(HZ,[["render",UZ]]);const Gs="26px",YZ="0 0 32 32",VZ={"left-arrow":{viewBox:"0 -1 16 34",path:"M11.196 10c0 0.143-0.071 0.304-0.179 0.411l-7.018 7.018 7.018 7.018c0.107 0.107 0.179 0.268 0.179 0.411s-0.071 0.304-0.179 0.411l-0.893 0.893c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-8.321-8.321c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l8.321-8.321c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l0.893 0.893c0.107 0.107 0.179 0.25 0.179 0.411z"},"right-arrow":{viewBox:"-5 -1 16 34",path:"M10.625 17.429c0 0.143-0.071 0.304-0.179 0.411l-8.321 8.321c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-0.893-0.893c-0.107-0.107-0.179-0.25-0.179-0.411 0-0.143 0.071-0.304 0.179-0.411l7.018-7.018-7.018-7.018c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l0.893-0.893c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l8.321 8.321c0.107 0.107 0.179 0.268 0.179 0.411z"}},KZ={props:["name"],data(){return{width:Gs,height:Gs,viewBox:YZ,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const e=VZ[this.name];e&&(this.width=e.width||Gs,this.height=e.height||Gs,this.viewBox=e.viewBox,this.path=e.path)}}},GZ=["width","height","viewBox"],WZ=["d"];function qZ(e,t,n,r,a,o){return C(),S("svg",{class:"vc-svg-icon",width:a.width,height:a.height,viewBox:a.viewBox},[O("path",{d:a.path},null,8,WZ)],8,GZ)}var M5=fi(KZ,[["render",qZ]]);const Ic=12,QZ={name:"CalendarNav",emits:["input"],components:{SvgIcon:M5},mixins:[Qu],props:{value:{type:Object,default:()=>({month:0,year:0})},validator:{type:Function,default:()=>()=>!0}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:x5}},computed:{month(){return this.value&&this.value.month||0},year(){return this.value&&this.value.year||0},title(){return this.monthMode?this.yearIndex:`${this.firstYear} - ${this.lastYear}`},monthItems(){return this.getMonthItems(this.yearIndex)},yearItems(){return this.getYearItems(this.yearGroupIndex)},prevItemsEnabled(){return this.monthMode?this.prevMonthItemsEnabled:this.prevYearItemsEnabled},nextItemsEnabled(){return this.monthMode?this.nextMonthItemsEnabled:this.nextYearItemsEnabled},prevMonthItemsEnabled(){return this.getMonthItems(this.yearIndex-1).some(e=>!e.isDisabled)},nextMonthItemsEnabled(){return this.getMonthItems(this.yearIndex+1).some(e=>!e.isDisabled)},prevYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex-1).some(e=>!e.isDisabled)},nextYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex+1).some(e=>!e.isDisabled)},activeItems(){return this.monthMode?this.monthItems:this.yearItems},firstYear(){return k5(this.yearItems.map(e=>e.year))},lastYear(){return fs(this.yearItems.map(e=>e.year))}},watch:{year(){this.yearIndex=this.year},yearIndex(e){this.yearGroupIndex=this.getYearGroupIndex(e)},value(){this.focusFirstItem()}},created(){this.yearIndex=this.year},mounted(){this.focusFirstItem()},methods:{focusFirstItem(){this.$nextTick(()=>{const e=this.$refs.navContainer.querySelector(".vc-nav-item:not(.is-disabled)");e&&e.focus()})},getItemClasses({isActive:e,isCurrent:t,isDisabled:n}){const r=["vc-nav-item"];return e?r.push("is-active"):t&&r.push("is-current"),n&&r.push("is-disabled"),r},getYearGroupIndex(e){return Math.floor(e/Ic)},getMonthItems(e){const{month:t,year:n}=this.pageForDate(new Date);return this.locale.getMonthDates().map((r,a)=>{const o=a+1;return{month:o,year:e,id:`${e}.${rt(o,2)}`,label:this.locale.format(r,this.masks.navMonths),ariaLabel:this.locale.format(r,"MMMM YYYY"),isActive:o===this.month&&e===this.year,isCurrent:o===t&&e===n,isDisabled:!this.validator({month:o,year:e}),click:()=>this.monthClick(o,e)}})},getYearItems(e){const{_:t,year:n}=this.pageForDate(new Date),r=e*Ic,a=r+Ic,o=[];for(let i=r;ithis.yearClick(i)})}return o},monthClick(e,t){this.validator({month:e,year:t})&&this.$emit("input",{month:e,year:t})},yearClick(e){this.yearIndex=e,this.monthMode=!0,this.focusFirstItem()},toggleMode(){this.monthMode=!this.monthMode},movePrev(){this.prevItemsEnabled&&(this.monthMode&&this.movePrevYear(),this.movePrevYearGroup())},moveNext(){this.nextItemsEnabled&&(this.monthMode&&this.moveNextYear(),this.moveNextYearGroup())},movePrevYear(){this.yearIndex--},moveNextYear(){this.yearIndex++},movePrevYearGroup(){this.yearGroupIndex--},moveNextYearGroup(){this.yearGroupIndex++}}},XZ={class:"vc-nav-container",ref:"navContainer"},JZ={class:"vc-nav-header"},eY=["tabindex"],tY=["tabindex"],nY={class:"vc-nav-items"},rY=["data-id","aria-label","tabindex","onClick","onKeydown"];function aY(e,t,n,r,a,o){const i=Gn("svg-icon");return C(),S("div",XZ,[O("div",JZ,[O("span",{role:"button",class:q(["vc-nav-arrow is-left",{"is-disabled":!o.prevItemsEnabled}]),tabindex:o.prevItemsEnabled?0:void 0,onClick:t[0]||(t[0]=(...s)=>o.movePrev&&o.movePrev(...s)),onKeydown:t[1]||(t[1]=s=>a.onSpaceOrEnter(s,o.movePrev))},[F(e.$slots,"nav-left-button",{},()=>[G(i,{name:"left-arrow",width:"20px",height:"24px"})])],42,eY),O("span",{role:"button",class:"vc-nav-title vc-grid-focus",style:{whiteSpace:"nowrap"},tabindex:"0",onClick:t[2]||(t[2]=(...s)=>o.toggleMode&&o.toggleMode(...s)),onKeydown:t[3]||(t[3]=s=>a.onSpaceOrEnter(s,o.toggleMode))},V(o.title),33),O("span",{role:"button",class:q(["vc-nav-arrow is-right",{"is-disabled":!o.nextItemsEnabled}]),tabindex:o.nextItemsEnabled?0:void 0,onClick:t[4]||(t[4]=(...s)=>o.moveNext&&o.moveNext(...s)),onKeydown:t[5]||(t[5]=s=>a.onSpaceOrEnter(s,o.moveNext))},[F(e.$slots,"nav-right-button",{},()=>[G(i,{name:"right-arrow",width:"20px",height:"24px"})])],42,tY)]),O("div",nY,[(C(!0),S(Me,null,ot(o.activeItems,s=>(C(),S("span",{key:s.label,role:"button","data-id":s.id,"aria-label":s.ariaLabel,class:q(o.getItemClasses(s)),tabindex:s.isDisabled?void 0:0,onClick:s.click,onKeydown:l=>a.onSpaceOrEnter(l,s.click)},V(s.label),43,rY))),128))])],512)}var oY=fi(QZ,[["render",aY]]);function D0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function M0(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function A5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function iY(e){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:e}))}function Ql(e){const{visibility:t}=e,n=t==="click",r=t==="hover",a=t==="hover-focus",o=t==="focus";e.autoHide=!n;let i=!1,s=!1;const{isRenderFn:l}=e,u={click:l?"onClick":"click",mousemove:l?"onMousemove":"mousemove",mouseleave:l?"onMouseleave":"mouseleave",focusin:l?"onFocusin":"focusin",focusout:l?"onFocusout":"focusout"};return{[u.click](c){n&&(e.ref=c.target,A5(e),c.stopPropagation())},[u.mousemove](c){e.ref=c.currentTarget,i||(i=!0,(r||a)&&D0(e))},[u.mouseleave](c){e.ref=c.target,i&&(i=!1,(r||a&&!s)&&M0(e))},[u.focusin](c){e.ref=c.currentTarget,s||(s=!0,(o||a)&&D0(e))},[u.focusout](c){e.ref=c.currentTarget,s&&!Zi(e.ref,c.relatedTarget)&&(s=!1,(o||a&&!i)&&M0(e))}}}const sY={name:"CalendarDay",emits:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown"],mixins:[Qu,tf],inheritAttrs:!1,render(){const e=()=>this.hasBackgrounds&&De("div",{class:"vc-highlights vc-day-layer"},this.backgrounds.map(({key:a,wrapperClass:o,class:i,style:s})=>De("div",{key:a,class:o},[De("div",{class:i,style:s})]))),t=()=>this.safeSlot("day-content",{day:this.day,attributes:this.day.attributes,attributesMap:this.day.attributesMap,dayProps:this.dayContentProps,dayEvents:this.dayContentEvents})||De("span",et(we(et(we({},this.dayContentProps),{class:this.dayContentClass,style:this.dayContentStyle}),this.dayContentEvents),{ref:"content"}),[this.day.label]),n=()=>this.hasDots&&De("div",{class:"vc-day-layer vc-day-box-center-bottom"},[De("div",{class:"vc-dots"},this.dots.map(({key:a,class:o,style:i})=>De("span",{key:a,class:o,style:i})))]),r=()=>this.hasBars&&De("div",{class:"vc-day-layer vc-day-box-center-bottom"},[De("div",{class:"vc-bars"},this.bars.map(({key:a,class:o,style:i})=>De("span",{key:a,class:o,style:i})))]);return De("div",{class:["vc-day",...this.day.classes,{"vc-day-box-center-center":!this.$slots["day-content"]},{"is-not-in-month":!this.inMonth}]},[e(),t(),n(),r()])},inject:["sharedState"],props:{day:{type:Object,required:!0}},data(){return{glyphs:{},dayContentEvents:{}}},computed:{label(){return this.day.label},startTime(){return this.day.range.start.getTime()},endTime(){return this.day.range.end.getTime()},inMonth(){return this.day.inMonth},isDisabled(){return this.day.isDisabled},backgrounds(){return this.glyphs.backgrounds},hasBackgrounds(){return!!Mn(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!Mn(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!Mn(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!Mn(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},hs(fs(this.content),"class")||""]},dayContentStyle(){return hs(fs(this.content),"style")},dayContentProps(){let e;return this.day.isFocusable?e="0":this.day.inMonth&&(e="-1"),{tabindex:e,"aria-label":this.day.ariaLabel,"aria-disabled":this.day.isDisabled?"true":"false",role:"button"}},dayEvent(){return et(we({},this.day),{el:this.$refs.content,popovers:this.popovers})}},watch:{theme(){this.refresh()},popovers(){this.refreshPopovers()},"day.shouldRefresh"(){this.refresh()}},mounted(){this.refreshPopovers(),this.refresh()},methods:{getDayEvent(e){return et(we({},this.dayEvent),{event:e})},click(e){this.$emit("dayclick",this.getDayEvent(e))},mouseenter(e){this.$emit("daymouseenter",this.getDayEvent(e))},mouseleave(e){this.$emit("daymouseleave",this.getDayEvent(e))},focusin(e){this.$emit("dayfocusin",this.getDayEvent(e))},focusout(e){this.$emit("dayfocusout",this.getDayEvent(e))},keydown(e){this.$emit("daykeydown",this.getDayEvent(e))},refresh(){if(!this.day.shouldRefresh)return;this.day.shouldRefresh=!1;const e={backgrounds:[],dots:[],bars:[],popovers:[],content:[]};this.day.attributes=Object.values(this.day.attributesMap||{}).sort((t,n)=>t.order-n.order),this.day.attributes.forEach(t=>{const{targetDate:n}=t,{isDate:r,isComplex:a,startTime:o,endTime:i}=n,s=this.startTime<=o,l=this.endTime>=i,u={isDate:r,isComplex:a,onStart:s,onEnd:l,onStartAndEnd:s&&l,onStartOrEnd:s||l};this.processHighlight(t,u,e),this.processNonHighlight(t,"content",u,e.content),this.processNonHighlight(t,"dot",u,e.dots),this.processNonHighlight(t,"bar",u,e.bars),this.processPopover(t,e)}),this.glyphs=e},processHighlight({key:e,highlight:t},{isDate:n,isComplex:r,onStart:a,onEnd:o,onStartAndEnd:i},{backgrounds:s,content:l}){if(!t)return;const{base:u,start:c,end:d}=t;n||r?(s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):i?(s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):a?(s.push({key:`${e}-base`,wrapperClass:"vc-day-layer vc-day-box-right-center",class:["vc-highlight vc-highlight-base-start",u.class],style:u.style}),s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):o?(s.push({key:`${e}-base`,wrapperClass:"vc-day-layer vc-day-box-left-center",class:["vc-highlight vc-highlight-base-end",u.class],style:u.style}),s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",d.class],style:d.style}),l.push({key:`${e}-content`,class:d.contentClass,style:d.contentStyle})):(s.push({key:`${e}-middle`,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight vc-highlight-base-middle",u.class],style:u.style}),l.push({key:`${e}-content`,class:u.contentClass,style:u.contentStyle}))},processNonHighlight(e,t,{isDate:n,onStart:r,onEnd:a},o){if(!e[t])return;const{key:i}=e,s=`vc-${t}`,{base:l,start:u,end:c}=e[t];n||r?o.push({key:i,class:[s,u.class],style:u.style}):a?o.push({key:i,class:[s,c.class],style:c.style}):o.push({key:i,class:[s,l.class],style:l.style})},processPopover(e,{popovers:t}){const{key:n,customData:r,popover:a}=e;if(!a)return;const o=ji({key:n,customData:r,attribute:e},we({},a),{visibility:a.label?"hover":"click",placement:"bottom",isInteractive:!a.label});t.splice(0,0,o)},refreshPopovers(){let e={};Mn(this.popovers)&&(e=Ql(ji({id:this.dayPopoverId,data:this.day,isRenderFn:!0},...this.popovers))),this.dayContentEvents=CU({onClick:this.click,onMouseenter:this.mouseenter,onMouseleave:this.mouseleave,onFocusin:this.focusin,onFocusout:this.focusout,onKeydown:this.keydown},e),iY({id:this.dayPopoverId,data:this.day})}}},lY={name:"CalendarPane",emits:["update:page","weeknumberclick"],mixins:[Qu,tf],inheritAttrs:!1,render(){const e=this.safeSlot("header",this.page)||De("div",{class:`vc-header align-${this.titlePosition}`},[De("div",we({class:"vc-title"},this.navPopoverEvents),[this.safeSlot("header-title",this.page,this.page.title)])]),t=this.weekdayLabels.map((l,u)=>De("div",{key:u+1,class:"vc-weekday"},[l])),n=this.showWeeknumbers_.startsWith("left"),r=this.showWeeknumbers_.startsWith("right");n?t.unshift(De("div",{class:"vc-weekday"})):r&&t.push(De("div",{class:"vc-weekday"}));const a=l=>De("div",{class:["vc-weeknumber"]},[De("span",{class:["vc-weeknumber-content",`is-${this.showWeeknumbers_}`],onClick:u=>{this.$emit("weeknumberclick",{weeknumber:l,days:this.page.days.filter(c=>c[this.weeknumberKey]===l),event:u})}},[l])]),o=[],{daysInWeek:i}=this.locale;this.page.days.forEach((l,u)=>{const c=u%i;(n&&c===0||r&&c===i)&&o.push(a(l[this.weeknumberKey])),o.push(De(sY,et(we({},this.$attrs),{day:l}),this.$slots)),r&&c===i-1&&o.push(a(l[this.weeknumberKey]))});const s=De("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":n,"is-right":r}},[t,o]);return De("div",{class:["vc-pane",`row-from-end-${this.rowFromEnd}`,`column-from-end-${this.columnFromEnd}`],ref:"pane"},[e,s])},props:{page:Object,position:Number,row:Number,rowFromEnd:Number,column:Number,columnFromEnd:Number,titlePosition:String,navVisibility:{type:String,default:()=>ha("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String]},computed:{weeknumberKey(){return this.showWeeknumbers?"weeknumber":"isoWeeknumber"},showWeeknumbers_(){const e=this.showWeeknumbers||this.showIsoWeeknumbers;return e==null?"":mD(e)?e?"left":"":e.startsWith("right")?this.columnFromEnd>1?"right":e:this.column>1?"left":e},navPlacement(){switch(this.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}},navPopoverEvents(){const{sharedState:e,navVisibility:t,navPlacement:n,page:r,position:a}=this;return Ql({id:e.navPopoverId,visibility:t,placement:n,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:r,position:a},isInteractive:!0,isRenderFn:!0})},weekdayLabels(){return this.locale.getWeekdayDates().map(e=>this.format(e,this.masks.weekdays))}}};class uY{constructor(t,n,r){this.theme=t,this.locale=n,this.map={},this.refresh(r,!0)}destroy(){this.theme=null,this.locale=null,this.map={},this.list=[],this.pinAttr=null}refresh(t,n){const r={},a=[];let o=null;const i=[],s=n?new Set:new Set(Object.keys(this.map));return Mn(t)&&t.forEach((l,u)=>{if(!l||!l.dates)return;const c=l.key?l.key.toString():u.toString(),d=l.order||0,h=xU(JSON.stringify(l));let f=this.map[c];!n&&f&&f.hashcode===h?s.delete(c):(f=new T5(we({key:c,order:d,hashcode:h},l),this.theme,this.locale),i.push(f)),f&&f.pinPage&&(o=f),r[c]=f,a.push(f)}),this.map=r,this.list=a,this.pinAttr=o,{adds:i,deletes:Array.from(s)}}}const cY=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Ir(t))return null;let o=0,i=0,s=null,l=!1;function u(d){const h=d.changedTouches[0];o=h.screenX,i=h.screenY,s=new Date().getTime(),l=!0}function c(d){if(!l)return;l=!1;const h=d.changedTouches[0],f=h.screenX-o,g=h.screenY-i;if(new Date().getTime()-s=r&&Math.abs(g)<=a){const y={toLeft:!1,toRight:!1};f<0?y.toLeft=!0:y.toRight=!0,t(y)}}return tn(e,"touchstart",u,{passive:!0}),tn(e,"touchend",c,{passive:!0}),()=>{nn(e,"touchstart",u),nn(e,"touchend",c)}},dY={name:"Calendar",emits:["dayfocusin","dayfocusout","transition-start","transition-end","update:from-page","update:to-page"],render(){const e=this.pages.map((a,o)=>{const i=o+1,s=Math.ceil((o+1)/this.columns),l=this.rows-s+1,u=i%this.columns||this.columns,c=this.columns-u+1;return De(lY,et(we({},this.$attrs),{key:a.key,attributes:this.store,page:a,position:i,row:s,rowFromEnd:l,column:u,columnFromEnd:c,titlePosition:this.titlePosition,canMove:this.canMove,"onUpdate:page":d=>this.move(d,{position:o+1}),onDayfocusin:d=>{this.lastFocusedDay=d,this.$emit("dayfocusin",d)},onDayfocusout:d=>{this.lastFocusedDay=null,this.$emit("dayfocusout",d)}}),this.$slots)}),t=a=>{const o=()=>this.move(a?-this.step_:this.step_),i=l=>x5(l,o),s=a?!this.canMovePrev:!this.canMoveNext;return De("div",{class:["vc-arrow",`is-${a?"left":"right"}`,{"is-disabled":s}],role:"button",onClick:o,onKeydown:i},[(a?this.safeSlot("header-left-button",{click:o}):this.safeSlot("header-right-button",{click:o}))||De(M5,{name:a?"left-arrow":"right-arrow"})])},n=()=>De(_0,{id:this.sharedState.navPopoverId,contentClass:"vc-nav-popover-container",ref:"navPopover"},{default:({data:a})=>{const{position:o,page:i}=a;return De(oY,{value:i,position:o,validator:s=>this.canMove(s,{position:o}),onInput:s=>this.move(s)},we({},this.$slots))}}),r=()=>De(_0,{id:this.sharedState.dayPopoverId,contentClass:"vc-day-popover-container"},{default:({data:a,updateLayout:o,hide:i})=>{const s=Object.values(a.attributes).filter(d=>d.popover),l=this.$locale.masks,u=this.formatDate,c=u(a.date,l.dayPopover);return this.safeSlot("day-popover",{day:a,attributes:s,masks:l,format:u,dayTitle:c,updateLayout:o,hide:i},De("div",[l.dayPopover&&De("div",{class:["vc-day-popover-header"]},[c]),s.map(d=>De(ZZ,{key:d.key,attribute:d}))]))}});return De("div",{"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year",class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-expanded":this.isExpanded,"vc-is-dark":this.$theme.isDark}],onKeydown:this.handleKeydown,onMouseup:a=>a.preventDefault(),ref:"container"},[n(),De("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[De(S5,{name:this.transitionName,"on-before-enter":()=>{this.inTransition=!0},"on-after-enter":()=>{this.inTransition=!1}},{default:()=>De("div",et(we({},this.$attrs),{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},key:this.firstPage?this.firstPage.key:""}),e)}),De("div",{class:[`vc-arrows-container title-${this.titlePosition}`]},[t(!0),t(!1)]),this.$slots.footer&&this.$slots.footer()]),r()])},mixins:[D5,tf],provide(){return{sharedState:this.sharedState}},props:{rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>ha("titlePosition")},isExpanded:Boolean,fromDate:Date,toDate:Date,fromPage:Object,toPage:Object,minPage:Object,maxPage:Object,transition:String,attributes:[Object,Array],trimWeeks:Boolean,disablePageSwipe:Boolean},data(){return{pages:[],store:null,lastFocusedDay:null,focusableDay:new Date().getDate(),transitionName:"",inTransition:!1,sharedState:{navPopoverId:Kl(),dayPopoverId:Kl(),theme:{},masks:{},locale:{}}}},computed:{firstPage(){return k5(this.pages)},lastPage(){return fs(this.pages)},minPage_(){return this.minPage||this.pageForDate(this.minDate)},maxPage_(){return this.maxPage||this.pageForDate(this.maxDate)},count(){return this.rows*this.columns},step_(){return this.step||this.count},canMovePrev(){return this.canMove(-this.step_)},canMoveNext(){return this.canMove(this.step_)}},watch:{$locale(){this.refreshLocale(),this.refreshPages({page:this.firstPage,ignoreCache:!0}),this.initStore()},$theme(){this.refreshTheme(),this.initStore()},fromDate(){this.refreshPages()},fromPage(e){const t=this.pages&&this.pages[0];Mc(e,t)||this.refreshPages()},toPage(e){const t=this.pages&&this.pages[this.pages.length-1];Mc(e,t)||this.refreshPages()},count(){this.refreshPages()},attributes:{handler(e){const{adds:t,deletes:n}=this.store.refresh(e);this.refreshAttrs(this.pages,t,n)},deep:!0},pages(e){this.refreshAttrs(e,this.store.list,null,!0)},disabledAttribute(){this.refreshDisabledDays()},lastFocusedDay(e){e&&(this.focusableDay=e.day,this.refreshFocusableDays())},inTransition(e){e?this.$emit("transition-start"):(this.$emit("transition-end"),this.transitionPromise&&(this.transitionPromise.resolve(!0),this.transitionPromise=null))}},created(){this.refreshLocale(),this.refreshTheme(),this.initStore(),this.refreshPages()},mounted(){this.disablePageSwipe||(this.removeHandlers=cY(this.$refs.container,({toLeft:e,toRight:t})=>{e?this.moveNext():t&&this.movePrev()},ha("touch")))},beforeUnmount(){this.pages=[],this.store.destroy(),this.store=null,this.sharedState=null,this.removeHandlers&&this.removeHandlers()},methods:{refreshLocale(){this.sharedState.locale=this.$locale,this.sharedState.masks=this.$locale.masks},refreshTheme(){this.sharedState.theme=this.$theme},canMove(e,t={}){const n=this.firstPage&&this.$locale.toPage(e,this.firstPage);if(!n)return!1;let{position:r}=t;if(Fi(e)&&(r=1),!r)if(Ti(n,this.firstPage))r=-1;else if(Ui(n,this.lastPage))r=1;else return!0;return Object.assign(t,this.getTargetPageRange(n,{position:r,force:!0})),EU(t.fromPage,t.toPage).some(a=>E5(a,this.minPage_,this.maxPage_))},movePrev(e){return this.move(-this.step_,e)},moveNext(e){return this.move(this.step_,e)},move(e,t={}){const n=this.canMove(e,t);return!t.force&&!n?Promise.reject(new Error(`Move target is disabled: ${JSON.stringify(t)}`)):(this.$refs.navPopover.hide({hideDelay:0}),t.fromPage&&!Mc(t.fromPage,this.firstPage)?this.refreshPages(et(we({},t),{page:t.fromPage,position:1,force:!0})):Promise.resolve(!0))},focusDate(e,t={}){return this.move(e,t).then(()=>{const n=this.$el.querySelector(`.id-${this.$locale.getDayId(e)}.in-month .vc-focusable`);return n?(n.focus(),Promise.resolve(!0)):Promise.resolve(!1)})},showPageRange(e,t){let n,r;if(da(e))n=this.pageForDate(e);else if(Pn(e)){const{month:i,year:s}=e,{from:l,to:u}=e;Fi(i)&&Fi(s)?n=e:(l||u)&&(n=da(l)?this.pageForDate(l):l,r=da(u)?this.pageForDate(u):u)}else return Promise.reject(new Error("Invalid page range provided."));const a=this.lastPage;let o=n;return Ui(r,a)&&(o=Mr(r,-(this.pages.length-1))),Ti(o,n)&&(o=n),this.refreshPages(et(we({},t),{page:o}))},getTargetPageRange(e,{position:t,force:n}={}){let r=null,a=null;if(yn(e)){let o=0;t=+t,isNaN(t)||(o=t>0?1-t:-(this.count+t)),r=Mr(e,o)}else r=this.getDefaultInitialPage();return a=Mr(r,this.count-1),n||(Ti(r,this.minPage_)?r=this.minPage_:Ui(a,this.maxPage_)&&(r=Mr(this.maxPage_,1-this.count)),a=Mr(r,this.count-1)),{fromPage:r,toPage:a}},getDefaultInitialPage(){let e=this.fromPage||this.pageForDate(this.fromDate);if(!yn(e)){const t=this.toPage||this.pageForDate(this.toPage);yn(t)&&(e=Mr(t,1-this.count))}return yn(e)||(e=this.getPageForAttributes()),yn(e)||(e=this.pageForThisMonth()),e},refreshPages({page:e,position:t=1,force:n,transition:r,ignoreCache:a}={}){return new Promise((o,i)=>{const{fromPage:s,toPage:l}=this.getTargetPageRange(e,{position:t,force:n}),u=[];for(let c=0;c{t.isDisabled=!!this.disabledAttribute&&this.disabledAttribute.intersectsDay(t)})},refreshFocusableDays(e){this.getPageDays(e).forEach(t=>{t.isFocusable=t.inMonth&&t.day===this.focusableDay})},getPageDays(e=this.pages){return e.reduce((t,n)=>t.concat(n.days),[])},getPageTransition(e,t,n=this.transition){if(n==="none")return n;if(n==="fade"||!n&&this.count>1||!yn(e)||!yn(t))return"fade";const r=Ti(t,e);return n==="slide-v"?r?"slide-down":"slide-up":r?"slide-right":"slide-left"},getPageForAttributes(){let e=null;const t=this.store.pinAttr;if(t&&t.hasDates){let[n]=t.dates;n=n.start||n.date,e=this.pageForDate(n)}return e},buildPage({month:e,year:t},n){const r=`${t.toString()}-${e.toString()}`;let a=this.pages.find(o=>o.key===r);if(!a||n){const o=new Date(t,e-1,15),i=this.$locale.getMonthComps(e,t),s=this.$locale.getPrevMonthComps(e,t),l=this.$locale.getNextMonthComps(e,t);a={key:r,month:e,year:t,weeks:this.trimWeeks?i.weeks:6,title:this.$locale.format(o,this.$locale.masks.title),shortMonthLabel:this.$locale.format(o,"MMM"),monthLabel:this.$locale.format(o,"MMMM"),shortYearLabel:t.toString().substring(2),yearLabel:t.toString(),monthComps:i,prevMonthComps:s,nextMonthComps:l,canMove:u=>this.canMove(u),move:u=>this.move(u),moveThisMonth:()=>this.moveThisMonth(),movePrevMonth:()=>this.move(s),moveNextMonth:()=>this.move(l),refresh:!0},a.days=this.$locale.getCalendarDays(a)}return a},initStore(){this.store=new uY(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(e=[],t=[],n=[],r){Mn(e)&&e.forEach(a=>{a.days.forEach(o=>{let i=!1,s={};r?i=!0:S0(o.attributesMap,n)?(s=x0(o.attributesMap,n),i=!0):s=o.attributesMap||{},t.forEach(l=>{const u=l.intersectsDay(o);if(u){const c=et(we({},l),{targetDate:u});s[l.key]=c,i=!0}}),i&&(o.attributesMap=s,o.shouldRefresh=!0)})})},handleKeydown(e){const t=this.lastFocusedDay;t!=null&&(t.event=e,this.handleDayKeydown(t))},handleDayKeydown(e){const{dateFromTime:t,event:n}=e,r=t(12);let a=null;switch(n.key){case"ArrowLeft":{a=ur(r,-1);break}case"ArrowRight":{a=ur(r,1);break}case"ArrowUp":{a=ur(r,-7);break}case"ArrowDown":{a=ur(r,7);break}case"Home":{a=ur(r,-e.weekdayPosition+1);break}case"End":{a=ur(r,e.weekdayPositionFromEnd);break}case"PageUp":{n.altKey?a=Up(r,-1):a=y0(r,-1);break}case"PageDown":{n.altKey?a=Up(r,1):a=y0(r,1);break}}a&&(n.preventDefault(),this.focusDate(a).catch())}}},hY={inheritAttrs:!1,emits:["update:modelValue"],props:{options:Array,modelValue:null}},fY={class:"vc-select"},pY=["value"],mY=["value","disabled"],vY=O("div",{class:"vc-select-arrow"},[O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[O("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1);function gY(e,t,n,r,a,o){return C(),S("div",fY,[O("select",Ke(e.$attrs,{value:n.modelValue,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.value))}),[(C(!0),S(Me,null,ot(n.options,i=>(C(),S("option",{key:i.value,value:i.value,disabled:i.disabled},V(i.label),9,mY))),128))],16,pY),vY])}var yY=fi(hY,[["render",gY]]);const bY=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],wY=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}],kY={name:"TimePicker",components:{TimeSelect:yY},emits:["update:modelValue"],props:{modelValue:{type:Object,required:!0},locale:{type:Object,required:!0},theme:{type:Object,required:!0},is24hr:{type:Boolean,default:!0},showBorder:Boolean,hourOptions:Array,minuteOptions:Array},computed:{date(){let e=this.locale.normalizeDate(this.modelValue);return this.modelValue.hours===24&&(e=new Date(e.getTime()-1)),e},hours:{get(){return this.modelValue.hours},set(e){this.updateValue(e,this.minutes)}},minutes:{get(){return this.modelValue.minutes},set(e){this.updateValue(this.hours,e)}},isAM:{get(){return this.modelValue.hours<12},set(e){let t=this.hours;e&&t>=12?t-=12:!e&&t<12&&(t+=12),this.updateValue(t,this.minutes)}},amHourOptions(){return bY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},pmHourOptions(){return wY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!Mn(this.amHourOptions)},pmDisabled(){return!Mn(this.pmHourOptions)}},methods:{updateValue(e,t=this.minutes){(e!==this.hours||t!==this.minutes)&&this.$emit("update:modelValue",et(we({},this.modelValue),{hours:e,minutes:t,seconds:0,milliseconds:0}))}}},CY=O("div",null,[O("svg",{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",class:"vc-time-icon",stroke:"currentColor"},[O("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),EY={class:"vc-time-content"},xY={key:0,class:"vc-time-date"},SY={class:"vc-time-weekday"},_Y={class:"vc-time-month"},TY={class:"vc-time-day"},DY={class:"vc-time-year"},MY={class:"vc-time-select"},AY=O("span",{style:{margin:"0 4px"}},":",-1),OY={key:0,class:"vc-am-pm"};function PY(e,t,n,r,a,o){const i=Gn("time-select");return C(),S("div",{class:q(["vc-time-picker",[{"vc-invalid":!n.modelValue.isValid,"vc-bordered":n.showBorder}]])},[CY,O("div",EY,[o.date?(C(),S("div",xY,[O("span",SY,V(n.locale.format(o.date,"WWW")),1),O("span",_Y,V(n.locale.format(o.date,"MMM")),1),O("span",TY,V(n.locale.format(o.date,"D")),1),O("span",DY,V(n.locale.format(o.date,"YYYY")),1)])):$("",!0),O("div",MY,[G(i,{modelValue:o.hours,"onUpdate:modelValue":t[0]||(t[0]=s=>o.hours=s),modelModifiers:{number:!0},options:o.hourOptions_},null,8,["modelValue","options"]),AY,G(i,{modelValue:o.minutes,"onUpdate:modelValue":t[1]||(t[1]=s=>o.minutes=s),modelModifiers:{number:!0},options:n.minuteOptions},null,8,["modelValue","options"]),n.is24hr?$("",!0):(C(),S("div",OY,[O("button",{class:q({active:o.isAM,"vc-disabled":o.amDisabled}),onClick:t[2]||(t[2]=Mt(s=>o.isAM=!0,["prevent"])),type:"button"}," AM ",2),O("button",{class:q({active:!o.isAM,"vc-disabled":o.pmDisabled}),onClick:t[3]||(t[3]=Mt(s=>o.isAM=!1,["prevent"])),type:"button"}," PM ",2)]))])])],2)}var BY=fi(kY,[["render",PY]]);const am={type:"auto",mask:"iso",timeAdjust:""},IY=[am,am],Ws={DATE:"date",DATE_TIME:"datetime",TIME:"time"},mn={NONE:0,START:1,END:2,BOTH:3},NY={name:"DatePicker",emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],render(){const e=(a,o)=>{if(!this.$slots.footer)return a;const i=[a,this.$slots.footer()];return o?De(o,i):i},t=()=>{if(!this.dateParts)return null;const a=this.isRange?this.dateParts:[this.dateParts[0]];return De("div",{},et(we({},this.$slots),{default:()=>a.map((o,i)=>{const s=this.$locale.getHourOptions(this.modelConfig_[i].validHours,o),l=this.$locale.getMinuteOptions(this.modelConfig_[i].minuteIncrement,o);return De(BY,{modelValue:o,locale:this.$locale,theme:this.$theme,is24hr:this.is24hr,showBorder:!this.isTime,isDisabled:this.isDateTime&&!o.isValid||this.isDragging,hourOptions:s,minuteOptions:l,"onUpdate:modelValue":u=>this.onTimeInput(u,i===0)})})}))},n=()=>De(dY,et(we({},this.$attrs),{attributes:this.attributes_,theme:this.$theme,locale:this.$locale,minDate:this.minDateExact||this.minDate,maxDate:this.maxDateExact||this.maxDate,disabledDates:this.disabledDates,availableDates:this.availableDates,onDayclick:this.onDayClick,onDaykeydown:this.onDayKeydown,onDaymouseenter:this.onDayMouseEnter,ref:"calendar"}),et(we({},this.$slots),{footer:()=>this.isDateTime?e(t()):e()})),r=()=>this.isTime?De("div",{class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-dark":this.$theme.isDark}]},e(t(),"div")):n();return this.$slots.default?De("div",[this.$slots.default(this.slotArgs),De(_0,{id:this.datePickerPopoverId,placement:"bottom-start",contentClass:`vc-container${this.isDark?" vc-is-dark":""}`,"on-before-show":a=>this.$emit("popover-will-show",a),"on-after-show":a=>this.$emit("popover-did-show",a),"on-before-hide":a=>this.$emit("popover-will-hide",a),"on-after-hide":a=>this.$emit("popover-did-hide",a),ref:"popover"},{default:r})]):r()},mixins:[D5],props:{mode:{type:String,default:Ws.DATE},modelValue:{type:null,required:!0},modelConfig:{type:Object,default:()=>({})},is24hr:Boolean,minuteIncrement:Number,isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>ha("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>ha("datePicker.inputDebounce")},popover:{type:Object,default:()=>({})},dragAttribute:Object,selectAttribute:Object,attributes:Array,validHours:[Object,Array,Function]},data(){return{value_:null,dateParts:null,activeDate:"",dragValue:null,inputValues:["",""],updateTimeout:null,watchValue:!0,datePickerPopoverId:Kl()}},computed:{isDate(){return this.mode.toLowerCase()===Ws.DATE},isDateTime(){return this.mode.toLowerCase()===Ws.DATE_TIME},isTime(){return this.mode.toLowerCase()===Ws.TIME},isDragging(){return!!this.dragValue},modelConfig_(){return this.normalizeConfig(this.modelConfig,IY)},inputMask(){const e=this.$locale.masks;return this.isTime?this.is24hr?e.inputTime24hr:e.inputTime:this.isDateTime?this.is24hr?e.inputDateTime24hr:e.inputDateTime:this.$locale.masks.input},inputMaskHasTime(){return/[Hh]/g.test(this.inputMask)},inputMaskHasDate(){return/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(this.inputMask)},inputMaskPatch(){if(this.inputMaskHasTime&&this.inputMaskHasDate)return Qr.DATE_TIME;if(this.inputMaskHasDate)return Qr.DATE;if(this.inputMaskHasTime)return Qr.TIME},slotArgs(){const{isRange:e,isDragging:t,updateValue:n,showPopover:r,hidePopover:a,togglePopover:o}=this,i=e?{start:this.inputValues[0],end:this.inputValues[1]}:this.inputValues[0],s=[!0,!1].map(u=>we({input:this.onInputInput(u),change:this.onInputChange(u),keyup:this.onInputKeyup},Ql(et(we({},this.popover_),{id:this.datePickerPopoverId,callback:c=>{c.action==="show"&&c.completed&&this.onInputShow(u)}})))),l=e?{start:s[0],end:s[1]}:s[0];return{inputValue:i,inputEvents:l,isDragging:t,updateValue:n,showPopover:r,hidePopover:a,togglePopover:o,getPopoverTriggerEvents:Ql}},popover_(){return Jh(this.popover,ha("datePicker.popover"))},selectAttribute_(){if(!this.hasValue(this.value_))return null;const e=et(we({key:"select-drag"},this.selectAttribute),{dates:this.value_,pinPage:!0}),{dot:t,bar:n,highlight:r,content:a}=e;return!t&&!n&&!r&&!a&&(e.highlight=!0),e},dragAttribute_(){if(!this.isRange||!this.hasValue(this.dragValue))return null;const e=et(we({key:"select-drag"},this.dragAttribute),{dates:this.dragValue}),{dot:t,bar:n,highlight:r,content:a}=e;return!t&&!n&&!r&&!a&&(e.highlight={startEnd:{fillMode:"outline"}}),e},attributes_(){const e=hn(this.attributes)?[...this.attributes]:[];return this.dragAttribute_?e.push(this.dragAttribute_):this.selectAttribute_&&e.push(this.selectAttribute_),e}},watch:{inputMask(){this.formatInput()},modelValue(e){this.watchValue&&this.forceUpdateValue(e,{config:this.modelConfig_,formatInput:!0,hidePopover:!1})},value_(){this.refreshDateParts()},dragValue(){this.refreshDateParts()},timezone(){this.refreshDateParts(),this.forceUpdateValue(this.value_,{formatInput:!0})}},created(){this.value_=this.normalizeValue(this.modelValue,this.modelConfig_,Qr.DATE_TIME,mn.BOTH),this.forceUpdateValue(this.modelValue,{config:this.modelConfig_,formatInput:!0,hidePopover:!1}),this.refreshDateParts()},mounted(){tn(document,"keydown",this.onDocumentKeyDown),tn(document,"click",this.onDocumentClick)},beforeUnmount(){nn(document,"keydown",this.onDocumentKeyDown),nn(document,"click",this.onDocumentClick)},methods:{getDateParts(e){return this.$locale.getDateParts(e)},getDateFromParts(e){return this.$locale.getDateFromParts(e)},refreshDateParts(){const e=this.dragValue||this.value_,t=[];this.isRange?(e&&e.start?t.push(this.getDateParts(e.start)):t.push({}),e&&e.end?t.push(this.getDateParts(e.end)):t.push({})):e?t.push(this.getDateParts(e)):t.push({}),this.$nextTick(()=>this.dateParts=t)},onDocumentKeyDown(e){this.dragValue&&e.key==="Escape"&&(this.dragValue=null)},onDocumentClick(e){document.body.contains(e.target)&&!Zi(this.$el,e.target)&&(this.dragValue=null,this.formatInput())},onDayClick(e){this.handleDayClick(e),this.$emit("dayclick",e)},onDayKeydown(e){switch(e.event.key){case" ":case"Enter":{this.handleDayClick(e),e.event.preventDefault();break}case"Escape":this.hidePopover()}this.$emit("daykeydown",e)},handleDayClick(e){const{keepVisibleOnInput:t,visibility:n}=this.popover_,r={patch:Qr.DATE,adjustTime:!0,formatInput:!0,hidePopover:this.isDate&&!t&&n!=="visible"};this.isRange?(this.isDragging?this.dragTrackingValue.end=e.date:this.dragTrackingValue=we({},e.range),r.isDragging=!this.isDragging,r.rangePriority=r.isDragging?mn.NONE:mn.BOTH,r.hidePopover=r.hidePopover&&!r.isDragging,this.updateValue(this.dragTrackingValue,r)):(r.clearIfEqual=!this.isRequired,this.updateValue(e.date,r))},onDayMouseEnter(e){this.isDragging&&(this.dragTrackingValue.end=e.date,this.updateValue(this.dragTrackingValue,{patch:Qr.DATE,adjustTime:!0,formatInput:!0,hidePriority:!1,rangePriority:mn.NONE}))},onTimeInput(e,t){let n=null;if(this.isRange){const r=t?e:this.dateParts[0],a=t?this.dateParts[1]:e;n={start:r,end:a}}else n=e;this.updateValue(n,{patch:Qr.TIME,rangePriority:t?mn.START:mn.END}).then(()=>this.adjustPageRange(t))},onInputInput(e){return t=>{this.updateOnInput&&this.onInputUpdate(t.target.value,e,{formatInput:!1,hidePopover:!1,debounce:this.inputDebounce})}},onInputChange(e){return t=>{this.onInputUpdate(t.target.value,e,{formatInput:!0,hidePopover:!1})}},onInputUpdate(e,t,n){this.inputValues.splice(t?0:1,1,e);const r=this.isRange?{start:this.inputValues[0],end:this.inputValues[1]||this.inputValues[0]}:e,a={type:"string",mask:this.inputMask};this.updateValue(r,et(we({},n),{config:a,patch:this.inputMaskPatch,rangePriority:t?mn.START:mn.END})).then(()=>this.adjustPageRange(t))},onInputShow(e){this.adjustPageRange(e)},onInputKeyup(e){e.key==="Escape"&&this.updateValue(this.value_,{formatInput:!0,hidePopover:!0})},updateValue(e,t={}){return clearTimeout(this.updateTimeout),new Promise(n=>{const r=t,{debounce:a}=r,o=ZT(r,["debounce"]);a>0?this.updateTimeout=setTimeout(()=>{this.forceUpdateValue(e,o),n(this.value_)},a):(this.forceUpdateValue(e,o),n(this.value_))})},normalizeConfig(e,t=this.modelConfig_){return e=hn(e)?e:[e.start||e,e.end||e],t.map((n,r)=>we(we({validHours:this.validHours,minuteIncrement:this.minuteIncrement},n),e[r]))},forceUpdateValue(e,{config:t=this.modelConfig_,patch:n=Qr.DATE_TIME,clearIfEqual:r=!1,formatInput:a=!0,hidePopover:o=!1,isDragging:i=this.isDragging,rangePriority:s=mn.BOTH}={}){t=this.normalizeConfig(t);let l=this.normalizeValue(e,t,n,s);!l&&this.isRequired&&(l=this.value_),l=this.adjustTimeForValue(l,t);const u=this.valueIsDisabled(l);if(u){if(i)return;l=this.value_,o=!1}const c=i?"dragValue":"value_";let d=!this.valuesAreEqual(this[c],l);if(!u&&!d&&r&&(l=null,d=!0),d){this[c]=l,i||(this.dragValue=null);const h=this.denormalizeValue(l),f=this.isDragging?"drag":"update:modelValue";this.watchValue=!1,this.$emit(f,h),this.$nextTick(()=>this.watchValue=!0)}o&&this.hidePopover(),a&&this.formatInput()},hasValue(e){return this.isRange?Pn(e)&&!!e.start&&!!e.end:!!e},normalizeValue(e,t,n,r){if(!this.hasValue(e))return null;if(this.isRange){const a={},o=e.start>e.end?e.end:e.start;a.start=this.normalizeDate(o,et(we({},t[0]),{fillDate:this.value_&&this.value_.start||t[0].fillDate,patch:n}));const i=e.start>e.end?e.start:e.end;return a.end=this.normalizeDate(i,et(we({},t[1]),{fillDate:this.value_&&this.value_.end||t[1].fillDate,patch:n})),this.sortRange(a,r)}return this.normalizeDate(e,et(we({},t[0]),{fillDate:this.value_||t[0].fillDate,patch:n}))},adjustTimeForValue(e,t){return this.hasValue(e)?this.isRange?{start:this.$locale.adjustTimeForDate(e.start,t[0]),end:this.$locale.adjustTimeForDate(e.end,t[1])}:this.$locale.adjustTimeForDate(e,t[0]):null},sortRange(e,t=mn.NONE){const{start:n,end:r}=e;if(n>r)switch(t){case mn.START:return{start:n,end:n};case mn.END:return{start:r,end:r};case mn.BOTH:return{start:r,end:n}}return{start:n,end:r}},denormalizeValue(e,t=this.modelConfig_){return this.isRange?this.hasValue(e)?{start:this.$locale.denormalizeDate(e.start,t[0]),end:this.$locale.denormalizeDate(e.end,t[1])}:null:this.$locale.denormalizeDate(e,t[0])},valuesAreEqual(e,t){if(this.isRange){const n=this.hasValue(e),r=this.hasValue(t);return!n&&!r?!0:n!==r?!1:Ac(e.start,t.start)&&Ac(e.end,t.end)}return Ac(e,t)},valueIsDisabled(e){return this.hasValue(e)&&this.disabledAttribute&&this.disabledAttribute.intersectsDate(e)},formatInput(){this.$nextTick(()=>{const e=this.normalizeConfig({type:"string",mask:this.inputMask}),t=this.denormalizeValue(this.dragValue||this.value_,e);this.isRange?this.inputValues=[t&&t.start,t&&t.end]:this.inputValues=[t,""]})},showPopover(e={}){D0(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},hidePopover(e={}){M0(et(we(we({hideDelay:10},this.showPopover_),e),{id:this.datePickerPopoverId}))},togglePopover(e){A5(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},adjustPageRange(e){this.$nextTick(()=>{const t=this.$refs.calendar,n=this.getPageForValue(e),r=e?1:-1;n&&t&&!E5(n,t.firstPage,t.lastPage)&&t.move(n,{position:r,transition:"fade"})})},getPageForValue(e){return this.hasValue(this.value_)?this.pageForDate(this.isRange?this.value_[e?"start":"end"]:this.value_):null},move(e,t){return this.$refs.calendar?this.$refs.calendar.move(e,t):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))},focusDate(e,t){return this.$refs.calendar?this.$refs.calendar.focusDate(e,t):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))}}},LY=e=>e.every(t=>t.value!==void 0),RY=e=>{const t=[];return e.forEach(n=>t.push(n.value+"")),t},$Y=e=>{const t=RY(e),n=new Set(t);return t.length===n.size},O5=e=>e.map(t=>({label:typeof t=="string"?t:t.label||t.value+"",value:typeof t=="string"?t:t.value,disabled:typeof t=="string"?!1:t.disabled})),HY=e=>{const t=typeof e[0]=="string",n=O5(e),r=$Y(n);return t?r&&LY(e):r},zY={},FY=ge({...zY,__name:"KSegmentedControl",props:{modelValue:{type:[String,Number,Boolean],required:!0},options:{type:Array,required:!0,validator:e=>!e.length||HY(e)},isDisabled:{type:Boolean,default:!1},allowPointerEvents:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(O5(n.options)),a=s=>n.modelValue===s.value?"primary":"secondary",o=s=>!!s.disabled||n.isDisabled,i=s=>{var l,u;t("click",(l=s.target)==null?void 0:l.name),t("update:modelValue",(u=s.target)==null?void 0:u.name)};return(s,l)=>(C(),S("div",{class:q(["k-segmented-control",{"allow-pointer-events":e.allowPointerEvents}])},[(C(!0),S(Me,null,ot(r.value,u=>(C(),se(We,{key:`${u.value}-option`,appearance:a(u),disabled:o(u),name:u.value,size:"small",onClick:i},{default:z(()=>[F(s.$slots,"option-label",{option:u},()=>[J(V(u.label),1)],!0)]),_:2},1032,["appearance","disabled","name"]))),128))],2))}}),P5=Ee(FY,[["__scopeId","data-v-f8d80387"]]),jY=["innerHTML"],UY={key:1,class:"range-display"},ZY={key:3,class:"relative-periods-container"},YY={class:"timeframe-section-title"},VY={class:"timeframe-buttons"},KY={class:"datetime-picker-footer-container"},GY=ge({__name:"KDateTimePicker",props:{clearButton:{type:Boolean,required:!1,default:!1},icon:{type:Boolean,required:!1,default:!0},modelValue:{type:[Object,Date,String],required:!1,default:"",validator:e=>typeof e=="string"?e==="":e instanceof Date||e.start!==void 0&&e.end!==void 0},maxDate:{type:Date,required:!1,default:null},minDate:{type:Date,required:!1,default:null},minuteIncrement:{type:Number,required:!1,default:5},mode:{type:String,required:!0,validator:e=>Object.values(ok).includes(e)},placeholder:{type:String,required:!1,default:"Select a time range"},range:{type:Boolean,required:!1,default:!1},timePeriods:{type:Array,required:!1,default:()=>[],validator:e=>e.every(t=>Array.isArray(t.values)&&t.values.every(n=>typeof n.timeframeText=="string"&&n.timeframeLength!==void 0&&typeof n.key=="string"&&n.key!==void 0&&typeof n.display=="string"&&n.display!==void 0&&n.start!==void 0&&n.end!==void 0))},width:{type:String,required:!1,default:"auto"}},emits:["change","update:modelValue"],setup(e,{emit:t}){var n,r;const a=e,o={type:"number"},i={highlight:{start:{class:"vcal-day-start"},base:{class:"vcal-day-base"},end:{class:"vcal-day-end"}}},s={highlight:{start:{class:"vcal-day-drag-start"},base:{class:"vcal-day-drag-base"},end:{class:"vcal-day-drag-end"}}},l=j(a.modelValue),u=B(()=>a.mode!=="relative"),c=B(()=>{var T;return((T=a==null?void 0:a.timePeriods)==null?void 0:T.length)>0}),d=B(()=>v.tabName==="custom"||!c.value),h=B(()=>a.range||c.value?!v.selectedRange.start||!v.selectedRange.end:!v.selectedRange.start),f=B(()=>({width:a.width==="auto"||a.width.endsWith("%")||a.width.endsWith("px")?a.width:a.width+"px"})),g=B(()=>a.mode==="relativeDateTime"?"dateTime":a.mode==="relativeDate"?"date":a.mode),y=Intl.DateTimeFormat().resolvedOptions().timeZone,v=Fr({abbreviatedDisplay:a.placeholder,fullRangeDisplay:"",hidePopover:!1,selectedRange:{start:new Date,end:new Date,timePeriodsKey:""},previouslySelectedRange:{start:new Date,end:new Date,timePeriodsKey:""},selectedTimeframe:(n=a.timePeriods[0])==null?void 0:n.values[0],previouslySelectedTimeframe:(r=a.timePeriods[0])==null?void 0:r.values[0],tabName:"custom"}),p=T=>{let x,k;T&&(T.start&&T.end?(x=new Date(T.start),k=new Date(T.end)):(x=new Date(Number(T)),k=0),v.selectedRange=v.previouslySelectedRange={start:x,end:k,timePeriodsKey:""})},b=T=>{v.selectedTimeframe=v.previouslySelectedTimeframe=T;const x=v.selectedTimeframe.start(),k=v.selectedTimeframe.end();v.selectedRange={start:new Date(x),end:new Date(k),timePeriodsKey:v.selectedTimeframe.key},v.fullRangeDisplay=w(v.selectedRange,!1)},m=()=>{var T;l.value="",v.abbreviatedDisplay=a.placeholder,v.fullRangeDisplay="",v.selectedRange={start:0,end:0,timePeriodsKey:""},c.value&&(v.selectedTimeframe=(T=a.timePeriods[0])==null?void 0:T.values[0]),a.range||a.mode==="relative"?(t("change",v.selectedRange),t("update:modelValue",v.selectedRange)):(t("change",""),t("update:modelValue",""))},w=(T,x)=>{const{start:k,end:A}=T;let M="PP hh:mm a";const N=xc.formatInTimeZone(k,y,"(z)");return!u.value&&c.value?M="PP hh:mm a":a.mode==="date"&&(M="PP"),a.range?x?`
${Ec(k,M)} - 
${xc.formatInTimeZone(A,y,M)} ${N}
`:`${Ec(k,M)} - ${xc.formatInTimeZone(A,y,M)} ${N}`:k?`${Ec(k,M)} ${N}`:""},D=async()=>{if(a.range||c.value)t("change",v.selectedRange),t("update:modelValue",v.selectedRange);else{const T=new Date(v.selectedRange.start);t("change",T),t("update:modelValue",T)}v.hidePopover=!0,I()},I=()=>{a.range&&c.value&&!d.value?v.abbreviatedDisplay=v.selectedTimeframe.display:v.abbreviatedDisplay=w(v.selectedRange,!0)},L=T=>T.charAt(0).toUpperCase()+T.slice(1);return Le(l,(T,x)=>{T!==void 0&&T!==x&&p(T)},{immediate:!0}),Le(()=>v.tabName,(T,x)=>{x!==void 0&&T==="relative"?b(v.previouslySelectedTimeframe):x!==void 0&&T==="custom"&&p(v.previouslySelectedRange)}),ft(()=>{if(a.modelValue)if("timePeriodsKey"in a.modelValue){v.tabName="relative";for(const T of a.timePeriods){const x=T.values.find(k=>k.key===a.modelValue.timePeriodsKey);if(x){b(x),I();break}}}else v.tabName="custom",p(a.modelValue),I()}),(T,x)=>(C(),S("div",{class:q(["k-datetime-picker",{"set-min-width":c.value}]),style:Et(f.value)},[G(Jo,{"hide-caret":"","hide-popover":v.hidePopover,placement:"bottomStart","position-fixed":"",width:"auto",onOpened:x[5]||(x[5]=k=>v.hidePopover=!1)},qa({default:z(()=>[G(We,{"aria-role":"input",class:q(["timepicker-input",{"set-min-width":c.value}]),"data-testid":"k-datetime-picker-input","is-rounded":!1,size:"large",style:Et(f.value)},{default:z(()=>[e.icon?(C(),se(Be,{key:0,class:"calendar-icon",color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"calendar",size:pe(xt)},null,8,["color","size"])):$("",!0),O("div",{class:"timepicker-display","data-testid":"k-datetime-picker-display",innerHTML:v.abbreviatedDisplay},null,8,jY)]),_:1},8,["class","style"])]),_:2},[v.hidePopover?void 0:{name:"content",fn:z(()=>[c.value&&u.value?(C(),se(P5,{key:0,modelValue:v.tabName,"onUpdate:modelValue":x[0]||(x[0]=k=>v.tabName=k),class:"datetime-picker-toggle","data-testid":"k-datetime-picker-toggle",options:[{label:"Relative",value:"relative"},{label:"Custom",value:"custom"}],onClick:x[1]||(x[1]=k=>v.tabName=k)},null,8,["modelValue"])):$("",!0),d.value?$("",!0):(C(),S("p",UY,V(v.fullRangeDisplay),1)),u.value&&d.value?(C(),se(pe(NY),{key:2,modelValue:l.value,"onUpdate:modelValue":x[2]||(x[2]=k=>l.value=k),"drag-attribute":s,"is-expanded":"","is-range":e.range,"max-date":e.maxDate,"min-date":e.minDate,"minute-increment":e.minuteIncrement,mode:g.value,"model-config":o,"select-attribute":i},null,8,["modelValue","is-range","max-date","min-date","minute-increment","mode"])):c.value?(C(),S("div",ZY,[(C(!0),S(Me,null,ot(e.timePeriods,(k,A)=>(C(),S("div",{key:`section-${String(k.section||A)}`,class:"timeframe-section"},[O("div",YY,V(k.section),1),O("div",VY,[(C(!0),S(Me,null,ot(k.values,(M,N)=>(C(),se(We,{key:`time-${N}`,appearance:"outline",class:q(["timeframe-btn",{"selected-option":M.key===v.selectedTimeframe.key}]),"data-testid":"select-timeframe-"+M.timeframeLength(),"is-rounded":!1,size:"medium",onClick:ee=>b(M)},{default:z(()=>[J(V(L(M.timeframeText)),1)]),_:2},1032,["class","data-testid","onClick"]))),128))])]))),128))])):$("",!0)]),key:"0"},v.hidePopover?void 0:{name:"footer",fn:z(()=>[O("div",KY,[e.clearButton?(C(),se(We,{key:0,appearance:"btn-link",class:"action-btn","data-testid":"k-datetime-picker-clear","is-rounded":!1,size:"medium",onClick:x[3]||(x[3]=k=>m())},{default:z(()=>[J(" Clear ")]),_:1})):$("",!0),G(We,{appearance:"btn-link",class:"action-btn","data-testid":"k-datetime-picker-submit",disabled:h.value,"is-rounded":!1,size:"medium",onClick:x[4]||(x[4]=k=>D())},{default:z(()=>[J(" Apply ")]),_:1},8,["disabled"])])]),key:"1"}]),1032,["hide-popover"])],6))}}),WY=["data-testid"],qY=["title"],B5=ge({__name:"KDropdownItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0},hasDivider:{type:Boolean,default:!1},isDangerous:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},selectionMenuChild:{type:Boolean,default:!1},onClick:{type:Function,default:void 0}},emits:["click","change"],setup(e,{emit:t}){const n=e,r=y6(),a=B(()=>{var h;return(h=n.item)!=null&&h.to?"link":typeof n.onClick<"u"||n.selectionMenuChild?"button":"default"}),o=B(()=>{var h;return((h=n.item)==null?void 0:h.label)||""}),i=B(()=>r?r.path:""),s=B(()=>{var h;return((h=n.item)==null?void 0:h.to)||void 0}),l=h=>{t("click",h),n.selectionMenuChild&&t("change",n.item)},u=h=>{h.preventDefault(),h.stopPropagation()},c=B(()=>{let h="div";return a.value==="link"&&s.value&&n.disabled?h="link":a.value==="link"&&s.value?h="router-link":a.value==="button"&&(h="button"),h}),d=B(()=>({link:{tag:"a",onClick:u,attrs:{class:`k-dropdown-item-trigger ${n.disabled?"disabled":""}`,href:"#"}},"router-link":{tag:"router-link",onClick:l,attrs:{class:`k-dropdown-item-trigger ${n.disabled?"disabled":""}`,to:n.disabled?i.value:s.value}},button:{tag:We,onClick:l,attrs:{class:"k-dropdown-item-trigger k-button btn-link",disabled:n.disabled,isRounded:!1}},div:{tag:"div",attrs:{class:"k-dropdown-item-trigger"}}}));return(h,f)=>(C(),S("li",{class:q(["k-dropdown-item",{"has-divider":e.hasDivider,disabled:a.value==="default"&&e.disabled,danger:e.isDangerous,"k-dropdown-selected-option":e.selected}]),"data-testid":`k-dropdown-item-${o.value.replace(/ /gi,"-")}`},[(C(),se(va(d.value[c.value].tag),Ke({"data-testid":"k-dropdown-item-trigger"},d.value[c.value].attrs,{onClick:d.value[c.value].onClick}),{default:z(()=>[O("span",{class:"k-dropdown-item-trigger-label",title:o.value},[F(h.$slots,"default",{},()=>[J(V(o.value),1)])],8,qY)]),_:3},16,["onClick"]))],10,WY))}}),QY={class:"k-dropdown-list dropdown-list","data-testid":"k-dropdown-list"},XY=ge({__name:"KDropdownMenu",props:{appearance:{type:String,default:"menu",validator:e=>ik.includes(e)},buttonAppearance:{type:String,default:"primary"},caretColor:{type:String,default:void 0},label:{type:String,default:""},icon:{type:String,default:""},showCaret:{type:Boolean,default:!1},width:{type:String,default:""},kpopAttributes:{type:Object,default:null},items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0)},disabled:{type:Boolean,default:!1},disabledTooltip:{type:String,default:""},testMode:{type:Boolean,default:!1}},emits:["toggleDropdown","change"],setup(e,{emit:t}){var n;const r=e,a=j(!1),o=B(()=>r.disabledTooltip?ei:"div"),i={hideCaret:!0,popoverClasses:"k-dropdown-popover",popoverTimeout:0,positionFixed:!0,placement:"bottomStart"},s={...i,...r.kpopAttributes,width:r.width?r.width:void 0,popoverClasses:`${i.popoverClasses} ${((n=r.kpopAttributes)==null?void 0:n.popoverClasses)||""}`},l=j(),u=h=>{r.appearance==="selectionMenu"&&(l.value=h)},c=async()=>{a.value=!0,await on(()=>{a.value=!1})},d=(h,f,g)=>(h.value!==g&&(f(),t("toggleDropdown",h.value)),h.value);return Le(l,(h,f)=>{h&&h!==f&&t("change",h)}),ft(()=>{if(r.items){const h=r.items.filter(f=>f.selected);h.length&&(l.value=h[0])}}),(h,f)=>(C(),S("div",{class:q(["k-dropdown k-dropdown-menu",{"selection-dropdown-menu":e.appearance==="selectionMenu"}])},[G(pe(Iu),null,{default:z(({toggle:g,isToggled:y})=>[G(Jo,Ke(s,{"data-testid":"k-dropdown-menu-popover","hide-popover":a.value,"on-popover-click":()=>d(y,g,!1),"test-mode":!!e.testMode||void 0,onClosed:()=>d(y,g,!1),onOpened:()=>d(y,g,!0)}),{content:z(()=>[O("ul",QY,[F(h.$slots,"items",{closeDropdown:c,handleSelection:u,items:e.items},()=>[(C(!0),S(Me,null,ot(e.items,(v,p)=>(C(),se(B5,Ke(v,{key:`${v.label}-${p}`,item:v,"selection-menu-child":e.appearance==="selectionMenu",onChange:u}),null,16,["item","selection-menu-child"]))),128))],!0)])]),default:z(()=>[(C(),se(va(o.value),{class:"k-dropdown-trigger dropdown-trigger","data-testid":"k-dropdown-trigger",label:e.disabledTooltip,"max-width":e.disabledTooltip?"240":void 0,position:e.disabledTooltip?"bottom":void 0,"position-fixed":e.disabledTooltip?!0:void 0,"test-mode":!!e.testMode||void 0},{default:z(()=>[F(h.$slots,"default",{isOpen:y.value},()=>[O("div",null,[e.label||e.icon?(C(),se(We,{key:0,appearance:e.appearance==="selectionMenu"?"outline":e.buttonAppearance,"caret-color":e.caretColor,class:"k-dropdown-btn","data-testid":"k-dropdown-btn",disabled:e.disabled,icon:e.icon,"show-caret":e.showCaret||e.appearance==="selectionMenu"},{default:z(()=>[J(V(e.label),1)]),_:1},8,["appearance","caret-color","disabled","icon","show-caret"])):$("",!0)])],!0)]),_:2},1032,["label","max-width","position","position-fixed","test-mode"]))]),_:2},1040,["hide-popover","on-popover-click","test-mode","onClosed","onOpened"])]),_:3})],2))}}),JY=Ee(XY,[["__scopeId","data-v-a29da198"]]),eV={class:"k-file-upload"},tV=["onClick"],nV=["onKeyup"],rV=ge({__name:"KFileUpload",props:{labelAttributes:{type:Object,default:()=>({})},label:{type:String,default:""},testMode:{type:Boolean,default:!1},help:{type:String,default:void 0},buttonAppearance:{type:String,default:"primary"},buttonText:{type:String,default:"Select file"},fileModel:{type:String,default:void 0},removable:{type:Boolean,default:!0},placeholder:{type:String,default:"No file selected"},type:{type:String,default:"file",validator:e=>["file","image"].includes(e)},accept:{type:Array,required:!0},maxFileSize:{type:Number,default:null},iconSize:{type:String,default:Lu},icon:{type:String,default:"image"},iconColor:{type:String,default:void 0},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:"Please check file size."}},emits:["file-added","file-removed","error"],setup(e,{emit:t}){const n=e,r=B(()=>n.testMode?"test-file-upload-id-1234":pa()),a=B(()=>n.maxFileSize||n.maxFileSize===0?n.maxFileSize:n.type==="file"?525e4:1e6),o=j(!1),i=j([]),s=j(0),l=j(""),u=j([]),c=f=>{var g,y,v;i.value=(g=f.target)==null?void 0:g.files,l.value=(y=i==null?void 0:i.value[0])==null?void 0:y.name;const p=(v=i==null?void 0:i.value[0])==null?void 0:v.size;o.value=Number(p)>a.value,o.value&&(s.value++,t("error",i.value));const b=document.getElementById(r.value);p?u.value.push(i.value):(b.files=u.value[u.value.length-1],i.value=b.files,b.files&&(l.value=b.files[b.files.length-1].name)),t("file-added",i.value)},d=()=>{const f=document.getElementById(r.value);f&&f.click()},h=()=>{i.value=[],l.value="",u.value=[],s.value++,o.value=!1,t("file-removed")};return(f,g)=>(C(),S("div",eV,[e.label?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:"k-file-upload-label","data-testid":"k-file-upload-label",for:r.value}),{default:z(()=>[J(V(e.label),1)]),_:1},16,["for"])):$("",!0),(C(),se(xs,{id:r.value,key:s.value,accept:e.accept,class:q(["upload-input",{"image-upload":e.type==="image"}]),"error-message":e.errorMessage,"has-error":o.value,help:e.help,"max-file-size":a.value,type:"file",onChange:c},null,8,["id","accept","class","error-message","has-error","help","max-file-size"])),e.type==="image"?(C(),se(Be,{key:1,class:"image-upload-icon",color:e.iconColor,icon:e.icon,size:e.iconSize,onClick:Mt(d,["prevent"])},null,8,["color","icon","size","onClick"])):$("",!0),e.type==="image"?(C(),S("a",{key:2,class:"image-upload-description",href:"#",onClick:Mt(d,["prevent"])},V(l.value?l.value:e.placeholder),9,tV)):$("",!0),l.value&&e.removable?(C(),se(We,{key:3,appearance:"primary",class:q(["remove-button",[e.label?"k-file-upload-btn-with-label":"k-file-upload-btn-without-label",{"move-btn-right":e.type!=="file"}]]),"data-testid":"remove-button",size:"small",type:"reset",onClick:h,onKeyup:jt(h,["enter"])},{icon:z(()=>[G(Be,{icon:"close",size:"16"})]),_:1},8,["class","onKeyup"])):$("",!0),e.type==="file"?(C(),se(We,{key:4,appearance:e.buttonAppearance,class:q(["k-file-upload-btn",[e.label?"k-file-upload-btn-with-label":"k-file-upload-btn-without-label"]]),"data-testid":"k-file-upload-button",size:"small",onClick:d,onKeyup:jt(d,["enter"])},{default:z(()=>[J(V(e.buttonText),1)]),_:1},8,["appearance","class","onKeyup"])):$("",!0),e.type==="file"?(C(),S("a",{key:5,class:q(["display-name",[e.label?"has-label":"has-no-label"]]),href:"#",onClick:d,onKeyup:jt(d,["enter"])},V(l.value?l.value:e.placeholder),43,nV)):$("",!0)]))}}),aV=Ee(rV,[["__scopeId","data-v-260ac5dc"]]),oV=["id"],iV=["onKeyup"],sV=["id"],lV=ge({__name:"KInlineEdit",props:{ignoreValue:{type:Boolean,default:!1},styleOverrides:{type:Object,default:()=>({})}},emits:["changed"],setup(e,{emit:t}){const n=e,r=It(),a=j(null),o=B(()=>"editable-wrapper-"+pa()),i=j(!1),s=j(""),l=j({}),u=async f=>{f.target.id!=="element-content-wrapper"&&(l.value={...d(f.target),...n.styleOverrides},s.value=n.ignoreValue?"":f.target.textContent,i.value=!0,await on(),a.value&&a.value.focus())},c=()=>{i.value=!1,t("changed",s.value)},d=f=>{const g=getComputedStyle(f);return Object.keys(Ed).reduce((y,v)=>(y[v]=g.getPropertyValue(Ed[v]),y),{})},h=f=>{var g;(g=f==null?void 0:f.target)==null||g.blur()};return ft(()=>{try{if(!r.default)throw new Error("KInlineEdit expects a slotted HTML tag.")}catch{console.error(`KInlineEdit expects a slotted HTML tag. + `)],2)),e.showCopyButton||pe(s)["secondary-actions"]?(C(),S("div",Ax,[e.showCopyButton?(C(),se(We,{key:0,ref_key:"codeBlockCopyButton",ref:y,appearance:"outline",class:"k-code-block-copy-button","data-testid":"k-code-block-copy-button","is-rounded":!1,size:"small",title:`Copy (${pe(o)}+C)`,type:"button",onClick:K},{default:F(()=>[G(Be,{color:"currentColor",icon:"copy",size:pe(xt),title:`Copy (${pe(o)}+C)`},null,8,["size","title"]),Ox]),_:1},8,["title"])):$("",!0),z(H.$slots,"secondary-actions",{},void 0,!0)])):$("",!0)])],14,lx))}}),Bx=Ee(Px,[["__scopeId","data-v-dad3afd6"]]),Ix={class:"k-collapse"},Nx={key:0,class:"k-collapse-trigger-label","data-testid":"k-collapse-trigger-label"},Lx={key:0,class:"k-collapse-visible-content","data-testid":"k-collapse-visible-content"},Rx={class:"k-collapse-hidden-content","data-testid":"k-collapse-hidden-content"},$x=ge({__name:"KCollapse",props:{modelValue:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},triggerLabel:{type:String,required:!1,default:""},triggerAlignment:{type:String,required:!1,default:"trailing",validator:e=>ak.includes(e)}},emits:["toggled","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(!0),a=j(!1),o=It(),i=B(()=>n.triggerAlignment==="trailing"),s=B(()=>!!o["visible-content"]),l=B({get(){return n.modelValue},set(h){d(h)}}),u=B(()=>a.value?r.value:n.modelValue),c=B(()=>u.value?"chevronRight":"chevronDown"),d=h=>{a.value||(r.value=n.modelValue),r.value=h!==void 0?h:!r.value,a.value=!0,t("toggled",r.value),t("update:modelValue",r.value)};return Le(l,(h,f)=>{h!==f&&d(h)}),(h,f)=>(C(),S("div",Ix,[O("div",{class:q(["k-collapse-heading",{"has-trailing-trigger":i.value}])},[e.title?(C(),S("div",{key:0,class:q(["k-collapse-title",{"has-trailing-trigger":i.value}]),"data-testid":"k-collapse-title"},V(e.title),3)):$("",!0),O("div",{class:q(["k-collapse-trigger",{"has-trailing-trigger":i.value}])},[z(h.$slots,"trigger",{isCollapsed:u.value,toggle:d},()=>[O("a",{class:"k-collapse-trigger-content","data-testid":"k-collapse-trigger-content",href:"#",role:"button",onClick:f[0]||(f[0]=Mt(g=>d(),["prevent","stop"]))},[z(h.$slots,"trigger-content",{},()=>[e.triggerLabel?(C(),S("span",Nx,[G(Be,{class:"k-collapse-trigger-chevron",icon:c.value,size:pe(ws)},null,8,["icon","size"]),O("span",null,V(e.triggerLabel),1)])):(C(),se(Be,{key:1,class:"k-collapse-trigger-icon k-collapse-trigger-chevron","data-testid":"k-collapse-trigger-icon",icon:c.value},null,8,["icon"]))],!0)])],!0)],2)],2),s.value?(C(),S("div",Lx,[z(h.$slots,"visible-content",{},void 0,!0)])):$("",!0),Ml(O("div",Rx,[z(h.$slots,"default",{},void 0,!0)],512),[[pd,!u.value]])]))}}),Hx=Ee($x,[["__scopeId","data-v-1929b49b"]]);function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(e)}function Ua(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function sn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function yr(e){sn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||zl(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Fx(e,t){sn(2,arguments);var n=yr(e).getTime(),r=Ua(t);return new Date(n+r)}var zx={};function $u(){return zx}function jx(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ux(e){return sn(1,arguments),e instanceof Date||zl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zx(e){if(sn(1,arguments),!Ux(e)&&typeof e!="number")return!1;var t=yr(e);return!isNaN(Number(t))}function Yx(e,t){sn(2,arguments);var n=Ua(t);return Fx(e,-n)}var Vx=864e5;function Kx(e){sn(1,arguments);var t=yr(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/Vx)+1}function jl(e){sn(1,arguments);var t=1,n=yr(e),r=n.getUTCDay(),a=(r=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Gx(e){sn(1,arguments);var t=Qg(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=jl(n);return r}var Wx=6048e5;function qx(e){sn(1,arguments);var t=yr(e),n=jl(t).getTime()-Gx(t).getTime();return Math.round(n/Wx)+1}function Ul(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=$u(),d=Ua((n=(r=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yr(e),f=h.getUTCDay(),g=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,f),g.setUTCHours(0,0,0,0);var y=Ul(g,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var p=Ul(v,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function Qx(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=$u(),d=Ua((n=(r=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Xg(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var g=Ul(f,t);return g}var Xx=6048e5;function Jx(e,t){sn(1,arguments);var n=yr(e),r=Ul(n,t).getTime()-Qx(n,t).getTime();return Math.round(r/Xx)+1}function st(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return st(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):st(n+1,2)},d:function(e,t){return st(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return st(e.getUTCHours()%12||12,t.length)},H:function(e,t){return st(e.getUTCHours(),t.length)},m:function(e,t){return st(e.getUTCMinutes(),t.length)},s:function(e,t){return st(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),a=Math.floor(r*Math.pow(10,n-3));return st(a,t.length)}};const qr=eS;var lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},tS={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return qr.y(e,t)},Y:function(e,t,n,r){var a=Xg(e,r),o=a>0?a:1-a;if(t==="YY"){var i=o%100;return st(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):st(o,t.length)},R:function(e,t){var n=Qg(e);return st(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return st(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return st(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return st(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return qr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return st(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=Jx(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):st(a,t.length)},I:function(e,t,n){var r=qx(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):st(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):qr.d(e,t)},D:function(e,t,n){var r=Kx(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):st(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return st(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return st(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return st(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),a=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),a;switch(r===12?a=lo.noon:r===0?a=lo.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),a;switch(r>=17?a=lo.evening:r>=12?a=lo.afternoon:r>=4?a=lo.morning:a=lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return qr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qr.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):qr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):qr.s(e,t)},S:function(e,t){return qr.S(e,t)},X:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Ap(o);case"XXXX":case"XX":return Sa(o);case"XXXXX":case"XXX":default:return Sa(o,":")}},x:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"x":return Ap(o);case"xxxx":case"xx":return Sa(o);case"xxxxx":case"xxx":default:return Sa(o,":")}},O:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mp(o,":");case"OOOO":default:return"GMT"+Sa(o,":")}},z:function(e,t,n,r){var a=r._originalDate||e,o=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mp(o,":");case"zzzz":default:return"GMT"+Sa(o,":")}},t:function(e,t,n,r){var a=r._originalDate||e,o=Math.floor(a.getTime()/1e3);return st(o,t.length)},T:function(e,t,n,r){var a=r._originalDate||e,o=a.getTime();return st(o,t.length)}};function Mp(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(o===0)return n+String(a);var i=t||"";return n+String(a)+i+st(o,2)}function Ap(e,t){if(e%60===0){var n=e>0?"-":"+";return n+st(Math.abs(e)/60,2)}return Sa(e,t)}function Sa(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),o=st(Math.floor(a/60),2),i=st(a%60,2);return r+o+n+i}const nS=tS;var Op=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jg=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},rS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Op(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Op(r,t)).replace("{{time}}",Jg(a,t))},aS={p:Jg,P:rS};const oS=aS;var iS=["D","DD"],sS=["YY","YYYY"];function lS(e){return iS.indexOf(e)!==-1}function uS(e){return sS.indexOf(e)!==-1}function Pp(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var cS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dS=function(e,t,n){var r,a=cS[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const hS=dS;function Cc(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var fS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vS={date:Cc({formats:fS,defaultWidth:"full"}),time:Cc({formats:pS,defaultWidth:"full"}),dateTime:Cc({formats:mS,defaultWidth:"full"})};const gS=vS;var yS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bS=function(e,t,n,r){return yS[e]};const wS=bS;function gi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var kS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},CS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ES={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},SS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_S={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},TS=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},DS={ordinalNumber:TS,era:gi({values:kS,defaultWidth:"wide"}),quarter:gi({values:CS,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:gi({values:ES,defaultWidth:"wide"}),day:gi({values:xS,defaultWidth:"wide"}),dayPeriod:gi({values:SS,defaultWidth:"wide",formattingValues:_S,defaultFormattingWidth:"wide"})};const MS=DS;function yi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?OS(s,function(d){return d.test(i)}):AS(s,function(d){return d.test(i)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(i.length);return{value:u,rest:c}}}function AS(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function OS(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var BS=/^(\d+)(th|st|nd|rd)?/i,IS=/\d+/i,NS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LS={any:[/^b/i,/^(a|c)/i]},RS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$S={any:[/1/i,/2/i,/3/i,/4/i]},HS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},FS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},US={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ZS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},YS={ordinalNumber:PS({matchPattern:BS,parsePattern:IS,valueCallback:function(e){return parseInt(e,10)}}),era:yi({matchPatterns:NS,defaultMatchWidth:"wide",parsePatterns:LS,defaultParseWidth:"any"}),quarter:yi({matchPatterns:RS,defaultMatchWidth:"wide",parsePatterns:$S,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yi({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:FS,defaultParseWidth:"any"}),day:yi({matchPatterns:zS,defaultMatchWidth:"wide",parsePatterns:jS,defaultParseWidth:"any"}),dayPeriod:yi({matchPatterns:US,defaultMatchWidth:"any",parsePatterns:ZS,defaultParseWidth:"any"})};const VS=YS;var KS={code:"en-US",formatDistance:hS,formatLong:gS,formatRelative:wS,localize:MS,match:VS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const GS=KS;var WS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QS=/^'([^]*?)'?$/,XS=/''/g,JS=/[a-zA-Z]/;function Ec(e,t,n){var r,a,o,i,s,l,u,c,d,h,f,g,y,v,p,b,m,w;sn(2,arguments);var D=String(t),I=$u(),L=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:I.locale)!==null&&r!==void 0?r:GS,T=Ua((o=(i=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:I.firstWeekContainsDate)!==null&&i!==void 0?i:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=Ua((f=(g=(y=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(p=n.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:I.weekStartsOn)!==null&&g!==void 0?g:(m=I.locale)===null||m===void 0||(w=m.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&f!==void 0?f:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw new RangeError("locale must contain localize property");if(!L.formatLong)throw new RangeError("locale must contain formatLong property");var k=yr(e);if(!Zx(k))throw new RangeError("Invalid time value");var A=jx(k),M=Yx(k,A),N={firstWeekContainsDate:T,weekStartsOn:x,locale:L,_originalDate:k},ee=D.match(qS).map(function(ae){var oe=ae[0];if(oe==="p"||oe==="P"){var Q=oS[oe];return Q(ae,L.formatLong)}return ae}).join("").match(WS).map(function(ae){if(ae==="''")return"'";var oe=ae[0];if(oe==="'")return e_(ae);var Q=nS[oe];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&uS(ae)&&Pp(ae,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&lS(ae)&&Pp(ae,t,String(e)),Q(M,ae,L.localize,N);if(oe.match(JS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return ae}).join("");return ee}function e_(e){var t=e.match(QS);return t?t[1].replace(XS,"'"):e}var xd={exports:{}},Sd={exports:{}},e2={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e2);var St=e2.exports,_d={exports:{}},Td={exports:{}},t2={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(t2);var n2=t2.exports,Dd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(Dd,Dd.exports);var ln=Dd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(n2),a=n(ln);function o(i){return(0,a.default)(1,arguments),i instanceof Date||(0,r.default)(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}e.exports=t.default})(Td,Td.exports);var t_=Td.exports,Md={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(n2),a=n(ln);function o(i){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(i);return i instanceof Date||(0,r.default)(i)==="object"&&s==="[object Date]"?new Date(i.getTime()):typeof i=="number"||s==="[object Number]"?new Date(i):((typeof i=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Md,Md.exports);var br=Md.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(t_),a=n(br),o=n(ln);function i(s){if((0,o.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}e.exports=t.default})(_d,_d.exports);var n_=_d.exports,Ad={exports:{}},Od={exports:{}},Pd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(Pd,Pd.exports);var to=Pd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(to),a=n(br),o=n(ln);function i(s,l){(0,o.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}e.exports=t.default})(Od,Od.exports);var r_=Od.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(r_),a=n(ln),o=n(to);function i(s,l){(0,a.default)(2,arguments);var u=(0,o.default)(l);return(0,r.default)(s,-u)}e.exports=t.default})(Ad,Ad.exports);var a_=Ad.exports,Bd={exports:{}},Id={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(br),a=n(ln),o=864e5;function i(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/o)+1}e.exports=t.default})(Id,Id.exports);var o_=Id.exports,Nd={exports:{}},Ld={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(br),a=n(ln);function o(i){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(i),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=f.getTime()?u:u-1}e.exports=t.default})($d,$d.exports);var r2=$d.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(r2),a=n(Mh),o=n(ln);function i(s){(0,o.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}e.exports=t.default})(Rd,Rd.exports);var i_=Rd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Mh),o=n(i_),i=n(ln),s=6048e5;function l(u){(0,i.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,o.default)(c).getTime();return Math.round(d/s)+1}e.exports=t.default})(Nd,Nd.exports);var s_=Nd.exports,Hd={exports:{}},Fd={exports:{}},no={};Object.defineProperty(no,"__esModule",{value:!0});no.getDefaultOptions=l_;no.setDefaultOptions=u_;var a2={};function l_(){return a2}function u_(e){a2=e}(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(br),a=n(ln),o=n(to),i=no;function s(l,u){var c,d,h,f,g,y,v,p;(0,a.default)(1,arguments);var b=(0,i.getDefaultOptions)(),m=(0,o.default)((c=(d=(h=(f=u==null?void 0:u.weekStartsOn)!==null&&f!==void 0?f:u==null||(g=u.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:b.weekStartsOn)!==null&&d!==void 0?d:(v=b.locale)===null||v===void 0||(p=v.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&c!==void 0?c:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,r.default)(l),D=w.getUTCDay(),I=(D=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=new Date(0);L.setUTCFullYear(w+1,0,I),L.setUTCHours(0,0,0,0);var T=(0,o.default)(L,c),x=new Date(0);x.setUTCFullYear(w,0,I),x.setUTCHours(0,0,0,0);var k=(0,o.default)(x,c);return m.getTime()>=T.getTime()?w+1:m.getTime()>=k.getTime()?w:w-1}e.exports=t.default})(jd,jd.exports);var o2=jd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(o2),a=n(ln),o=n(Ah),i=n(to),s=no;function l(u,c){var d,h,f,g,y,v,p,b;(0,a.default)(1,arguments);var m=(0,s.getDefaultOptions)(),w=(0,i.default)((d=(h=(f=(g=c==null?void 0:c.firstWeekContainsDate)!==null&&g!==void 0?g:c==null||(y=c.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&f!==void 0?f:m.firstWeekContainsDate)!==null&&h!==void 0?h:(p=m.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),D=(0,r.default)(u,c),I=new Date(0);I.setUTCFullYear(D,0,w),I.setUTCHours(0,0,0,0);var L=(0,o.default)(I,c);return L}e.exports=t.default})(zd,zd.exports);var c_=zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Ah),o=n(c_),i=n(ln),s=6048e5;function l(u,c){(0,i.default)(1,arguments);var d=(0,r.default)(u),h=(0,a.default)(d,c).getTime()-(0,o.default)(d,c).getTime();return Math.round(h/s)+1}e.exports=t.default})(Hd,Hd.exports);var d_=Hd.exports,Ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){for(var o=r<0?"-":"",i=Math.abs(r).toString();i.length0?l:1-l;return(0,r.default)(s==="yy"?u%100:u,s.length)},M:function(i,s){var l=i.getUTCMonth();return s==="M"?String(l+1):(0,r.default)(l+1,2)},d:function(i,s){return(0,r.default)(i.getUTCDate(),s.length)},a:function(i,s){var l=i.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h:function(i,s){return(0,r.default)(i.getUTCHours()%12||12,s.length)},H:function(i,s){return(0,r.default)(i.getUTCHours(),s.length)},m:function(i,s){return(0,r.default)(i.getUTCMinutes(),s.length)},s:function(i,s){return(0,r.default)(i.getUTCSeconds(),s.length)},S:function(i,s){var l=s.length,u=i.getUTCMilliseconds(),c=Math.floor(u*Math.pow(10,l-3));return(0,r.default)(c,s.length)}},o=a;t.default=o,e.exports=t.default})(Zd,Zd.exports);var h_=Zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o_),a=n(s_),o=n(r2),i=n(d_),s=n(o2),l=n(i2),u=n(h_),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(v,p,b){var m=v.getUTCFullYear()>0?1:0;switch(p){case"G":case"GG":case"GGG":return b.era(m,{width:"abbreviated"});case"GGGGG":return b.era(m,{width:"narrow"});case"GGGG":default:return b.era(m,{width:"wide"})}},y:function(v,p,b){if(p==="yo"){var m=v.getUTCFullYear(),w=m>0?m:1-m;return b.ordinalNumber(w,{unit:"year"})}return u.default.y(v,p)},Y:function(v,p,b,m){var w=(0,s.default)(v,m),D=w>0?w:1-w;if(p==="YY"){var I=D%100;return(0,l.default)(I,2)}return p==="Yo"?b.ordinalNumber(D,{unit:"year"}):(0,l.default)(D,p.length)},R:function(v,p){var b=(0,o.default)(v);return(0,l.default)(b,p.length)},u:function(v,p){var b=v.getUTCFullYear();return(0,l.default)(b,p.length)},Q:function(v,p,b){var m=Math.ceil((v.getUTCMonth()+1)/3);switch(p){case"Q":return String(m);case"QQ":return(0,l.default)(m,2);case"Qo":return b.ordinalNumber(m,{unit:"quarter"});case"QQQ":return b.quarter(m,{width:"abbreviated",context:"formatting"});case"QQQQQ":return b.quarter(m,{width:"narrow",context:"formatting"});case"QQQQ":default:return b.quarter(m,{width:"wide",context:"formatting"})}},q:function(v,p,b){var m=Math.ceil((v.getUTCMonth()+1)/3);switch(p){case"q":return String(m);case"qq":return(0,l.default)(m,2);case"qo":return b.ordinalNumber(m,{unit:"quarter"});case"qqq":return b.quarter(m,{width:"abbreviated",context:"standalone"});case"qqqqq":return b.quarter(m,{width:"narrow",context:"standalone"});case"qqqq":default:return b.quarter(m,{width:"wide",context:"standalone"})}},M:function(v,p,b){var m=v.getUTCMonth();switch(p){case"M":case"MM":return u.default.M(v,p);case"Mo":return b.ordinalNumber(m+1,{unit:"month"});case"MMM":return b.month(m,{width:"abbreviated",context:"formatting"});case"MMMMM":return b.month(m,{width:"narrow",context:"formatting"});case"MMMM":default:return b.month(m,{width:"wide",context:"formatting"})}},L:function(v,p,b){var m=v.getUTCMonth();switch(p){case"L":return String(m+1);case"LL":return(0,l.default)(m+1,2);case"Lo":return b.ordinalNumber(m+1,{unit:"month"});case"LLL":return b.month(m,{width:"abbreviated",context:"standalone"});case"LLLLL":return b.month(m,{width:"narrow",context:"standalone"});case"LLLL":default:return b.month(m,{width:"wide",context:"standalone"})}},w:function(v,p,b,m){var w=(0,i.default)(v,m);return p==="wo"?b.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,p.length)},I:function(v,p,b){var m=(0,a.default)(v);return p==="Io"?b.ordinalNumber(m,{unit:"week"}):(0,l.default)(m,p.length)},d:function(v,p,b){return p==="do"?b.ordinalNumber(v.getUTCDate(),{unit:"date"}):u.default.d(v,p)},D:function(v,p,b){var m=(0,r.default)(v);return p==="Do"?b.ordinalNumber(m,{unit:"dayOfYear"}):(0,l.default)(m,p.length)},E:function(v,p,b){var m=v.getUTCDay();switch(p){case"E":case"EE":case"EEE":return b.day(m,{width:"abbreviated",context:"formatting"});case"EEEEE":return b.day(m,{width:"narrow",context:"formatting"});case"EEEEEE":return b.day(m,{width:"short",context:"formatting"});case"EEEE":default:return b.day(m,{width:"wide",context:"formatting"})}},e:function(v,p,b,m){var w=v.getUTCDay(),D=(w-m.weekStartsOn+8)%7||7;switch(p){case"e":return String(D);case"ee":return(0,l.default)(D,2);case"eo":return b.ordinalNumber(D,{unit:"day"});case"eee":return b.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return b.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return b.day(w,{width:"short",context:"formatting"});case"eeee":default:return b.day(w,{width:"wide",context:"formatting"})}},c:function(v,p,b,m){var w=v.getUTCDay(),D=(w-m.weekStartsOn+8)%7||7;switch(p){case"c":return String(D);case"cc":return(0,l.default)(D,p.length);case"co":return b.ordinalNumber(D,{unit:"day"});case"ccc":return b.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return b.day(w,{width:"narrow",context:"standalone"});case"cccccc":return b.day(w,{width:"short",context:"standalone"});case"cccc":default:return b.day(w,{width:"wide",context:"standalone"})}},i:function(v,p,b){var m=v.getUTCDay(),w=m===0?7:m;switch(p){case"i":return String(w);case"ii":return(0,l.default)(w,p.length);case"io":return b.ordinalNumber(w,{unit:"day"});case"iii":return b.day(m,{width:"abbreviated",context:"formatting"});case"iiiii":return b.day(m,{width:"narrow",context:"formatting"});case"iiiiii":return b.day(m,{width:"short",context:"formatting"});case"iiii":default:return b.day(m,{width:"wide",context:"formatting"})}},a:function(v,p,b){var m=v.getUTCHours(),w=m/12>=1?"pm":"am";switch(p){case"a":case"aa":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(v,p,b){var m=v.getUTCHours(),w;switch(m===12?w=c.noon:m===0?w=c.midnight:w=m/12>=1?"pm":"am",p){case"b":case"bb":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(v,p,b){var m=v.getUTCHours(),w;switch(m>=17?w=c.evening:m>=12?w=c.afternoon:m>=4?w=c.morning:w=c.night,p){case"B":case"BB":case"BBB":return b.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return b.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return b.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(v,p,b){if(p==="ho"){var m=v.getUTCHours()%12;return m===0&&(m=12),b.ordinalNumber(m,{unit:"hour"})}return u.default.h(v,p)},H:function(v,p,b){return p==="Ho"?b.ordinalNumber(v.getUTCHours(),{unit:"hour"}):u.default.H(v,p)},K:function(v,p,b){var m=v.getUTCHours()%12;return p==="Ko"?b.ordinalNumber(m,{unit:"hour"}):(0,l.default)(m,p.length)},k:function(v,p,b){var m=v.getUTCHours();return m===0&&(m=24),p==="ko"?b.ordinalNumber(m,{unit:"hour"}):(0,l.default)(m,p.length)},m:function(v,p,b){return p==="mo"?b.ordinalNumber(v.getUTCMinutes(),{unit:"minute"}):u.default.m(v,p)},s:function(v,p,b){return p==="so"?b.ordinalNumber(v.getUTCSeconds(),{unit:"second"}):u.default.s(v,p)},S:function(v,p){return u.default.S(v,p)},X:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();if(D===0)return"Z";switch(p){case"X":return f(D);case"XXXX":case"XX":return g(D);case"XXXXX":case"XXX":default:return g(D,":")}},x:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"x":return f(D);case"xxxx":case"xx":return g(D);case"xxxxx":case"xxx":default:return g(D,":")}},O:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"O":case"OO":case"OOO":return"GMT"+h(D,":");case"OOOO":default:return"GMT"+g(D,":")}},z:function(v,p,b,m){var w=m._originalDate||v,D=w.getTimezoneOffset();switch(p){case"z":case"zz":case"zzz":return"GMT"+h(D,":");case"zzzz":default:return"GMT"+g(D,":")}},t:function(v,p,b,m){var w=m._originalDate||v,D=Math.floor(w.getTime()/1e3);return(0,l.default)(D,p.length)},T:function(v,p,b,m){var w=m._originalDate||v,D=w.getTime();return(0,l.default)(D,p.length)}};function h(v,p){var b=v>0?"-":"+",m=Math.abs(v),w=Math.floor(m/60),D=m%60;if(D===0)return b+String(w);var I=p||"";return b+String(w)+I+(0,l.default)(D,2)}function f(v,p){if(v%60===0){var b=v>0?"-":"+";return b+(0,l.default)(Math.abs(v)/60,2)}return g(v,p)}function g(v,p){var b=p||"",m=v>0?"-":"+",w=Math.abs(v),D=(0,l.default)(Math.floor(w/60),2),I=(0,l.default)(w%60,2);return m+D+b+I}var y=d;t.default=y,e.exports=t.default})(Bd,Bd.exports);var f_=Bd.exports,Yd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},r=function(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},a=function(s,l){var u=s.match(/(P+)(p+)?/)||[],c=u[1],d=u[2];if(!d)return n(s,l);var h;switch(c){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",n(c,l)).replace("{{time}}",r(d,l))},o={p:r,P:a},i=o;t.default=i,e.exports=t.default})(Yd,Yd.exports);var p_=Yd.exports,Vd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(Vd,Vd.exports);var s2=Vd.exports,Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isProtectedDayOfYearToken=g_;Ss.isProtectedWeekYearToken=y_;Ss.throwProtectedError=b_;var m_=["D","DD"],v_=["YY","YYYY"];function g_(e){return m_.indexOf(e)!==-1}function y_(e){return v_.indexOf(e)!==-1}function b_(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Kd={exports:{}},Gd={exports:{}},Wd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,i,s){var l,u=n[o];return typeof u=="string"?l=u:i===1?l=u.one:l=u.other.replace("{{count}}",i.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+l:l+" ago":l},a=r;t.default=a,e.exports=t.default})(Wd,Wd.exports);var w_=Wd.exports,qd={exports:{}},Qd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.width?String(a.width):r.defaultWidth,i=r.formats[o]||r.formats[r.defaultWidth];return i}}e.exports=t.default})(Qd,Qd.exports);var k_=Qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(k_),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:o,defaultWidth:"full"}),dateTime:(0,r.default)({formats:i,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(qd,qd.exports);var C_=qd.exports,Xd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,i,s,l){return n[o]},a=r;t.default=a,e.exports=t.default})(Xd,Xd.exports);var E_=Xd.exports,Jd={exports:{}},e0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(a,o){var i=o!=null&&o.context?String(o.context):"standalone",s;if(i==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=o!=null&&o.width?String(o.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=o!=null&&o.width?String(o.width):r.defaultWidth;s=r.values[d]||r.values[c]}var h=r.argumentCallback?r.argumentCallback(a):a;return s[h]}}e.exports=t.default})(e0,e0.exports);var x_=e0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(x_),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(f,g){var y=Number(f),v=y%100;if(v>20||v<10)switch(v%10){case 1:return y+"st";case 2:return y+"nd";case 3:return y+"rd"}return y+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:o,defaultWidth:"wide",argumentCallback:function(f){return f-1}}),month:(0,r.default)({values:i,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},h=d;t.default=h,e.exports=t.default})(Jd,Jd.exports);var S_=Jd.exports,t0={exports:{}},n0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(o){return function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&o.matchPatterns[l]||o.matchPatterns[o.defaultMatchWidth],c=i.match(u);if(!c)return null;var d=c[0],h=l&&o.parsePatterns[l]||o.parsePatterns[o.defaultParseWidth],f=Array.isArray(h)?a(h,function(v){return v.test(d)}):r(h,function(v){return v.test(d)}),g;g=o.valueCallback?o.valueCallback(f):f,g=s.valueCallback?s.valueCallback(g):g;var y=i.slice(d.length);return{value:g,rest:y}}}function r(o,i){for(var s in o)if(o.hasOwnProperty(s)&&i(o[s]))return s}function a(o,i){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},i=a.match(r.matchPattern);if(!i)return null;var s=i[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=o.valueCallback?o.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}e.exports=t.default})(r0,r0.exports);var T_=r0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(__),a=n(T_),o=/^(\d+)(th|st|nd|rd)?/i,i=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p={ordinalNumber:(0,a.default)({matchPattern:o,parsePattern:i,valueCallback:function(m){return parseInt(m,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(m){return m+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:g,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:v,defaultParseWidth:"any"})},b=p;t.default=b,e.exports=t.default})(t0,t0.exports);var D_=t0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(w_),a=n(C_),o=n(E_),i=n(S_),s=n(D_),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:o.default,localize:i.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(Gd,Gd.exports);var M_=Gd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(M_),a=r.default;t.default=a,e.exports=t.default})(Kd,Kd.exports);var A_=Kd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(n_),a=n(a_),o=n(br),i=n(f_),s=n(p_),l=n(s2),u=Ss,c=n(to),d=n(ln),h=no,f=n(A_),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,b=/[a-zA-Z]/;function m(D,I,L){var T,x,k,A,M,N,ee,ae,oe,Q,ye,_e,Re,Ue,ze,fe,$e,Ae;(0,d.default)(2,arguments);var je=String(I),U=(0,h.getDefaultOptions)(),R=(T=(x=L==null?void 0:L.locale)!==null&&x!==void 0?x:U.locale)!==null&&T!==void 0?T:f.default,K=(0,c.default)((k=(A=(M=(N=L==null?void 0:L.firstWeekContainsDate)!==null&&N!==void 0?N:L==null||(ee=L.locale)===null||ee===void 0||(ae=ee.options)===null||ae===void 0?void 0:ae.firstWeekContainsDate)!==null&&M!==void 0?M:U.firstWeekContainsDate)!==null&&A!==void 0?A:(oe=U.locale)===null||oe===void 0||(Q=oe.options)===null||Q===void 0?void 0:Q.firstWeekContainsDate)!==null&&k!==void 0?k:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=(0,c.default)((ye=(_e=(Re=(Ue=L==null?void 0:L.weekStartsOn)!==null&&Ue!==void 0?Ue:L==null||(ze=L.locale)===null||ze===void 0||(fe=ze.options)===null||fe===void 0?void 0:fe.weekStartsOn)!==null&&Re!==void 0?Re:U.weekStartsOn)!==null&&_e!==void 0?_e:($e=U.locale)===null||$e===void 0||(Ae=$e.options)===null||Ae===void 0?void 0:Ae.weekStartsOn)!==null&&ye!==void 0?ye:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var te=(0,o.default)(D);if(!(0,r.default)(te))throw new RangeError("Invalid time value");var E=(0,l.default)(te),_=(0,a.default)(te,E),P={firstWeekContainsDate:K,weekStartsOn:H,locale:R,_originalDate:te},Z=je.match(y).map(function(Y){var W=Y[0];if(W==="p"||W==="P"){var ce=s.default[W];return ce(Y,R.formatLong)}return Y}).join("").match(g).map(function(Y){if(Y==="''")return"'";var W=Y[0];if(W==="'")return w(Y);var ce=i.default[W];if(ce)return!(L!=null&&L.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Y)&&(0,u.throwProtectedError)(Y,I,String(D)),!(L!=null&&L.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Y)&&(0,u.throwProtectedError)(Y,I,String(D)),ce(_,Y,R.localize,P);if(W.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return Y}).join("");return Z}function w(D){var I=D.match(v);return I?I[1].replace(p,"'"):D}e.exports=t.default})(Sd,Sd.exports);var O_=Sd.exports,a0={exports:{}},o0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i,s,l){var u=o(i,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(i,s){for(var l=i.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(i,s){var l=i.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function o(i,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:i})}e.exports=t.default})(o0,o0.exports);var P_=o0.exports,i0={exports:{}},s0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(l,u){var c=s(u);return c.formatToParts?a(c,l):o(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],h=0;h=0&&(d[f]=parseInt(c[h].value,10))}return d}catch(g){if(g instanceof RangeError)return[NaN];throw g}}function o(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var i={};function s(l){if(!i[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";i[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[l]}e.exports=t.default})(s0,s0.exports);var B_=s0.exports,l0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a,o,i,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,o),c.setUTCHours(i,s,l,u),c}e.exports=t.default})(l0,l0.exports);var l2=l0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(B_),r=a(l2);function a(y){return y&&y.__esModule?y:{default:y}}var o=36e5,i=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(y,v,p){var b,m;if(!y||(b=s.timezoneZ.exec(y),b))return 0;var w;if(b=s.timezoneHH.exec(y),b)return w=parseInt(b[1],10),h(w)?-(w*o):NaN;if(b=s.timezoneHHMM.exec(y),b){w=parseInt(b[1],10);var D=parseInt(b[2],10);return h(w,D)?(m=Math.abs(w)*o+D*i,w>0?-m:m):NaN}if(g(y)){v=new Date(v||Date.now());var I=p?v:u(v),L=c(I,y),T=p?L:d(v,L,y);return-T}return NaN}function u(y){return(0,r.default)(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds(),y.getMilliseconds())}function c(y,v){var p=(0,n.default)(y,v),b=(0,r.default)(p[0],p[1]-1,p[2],p[3]%24,p[4],p[5],0).getTime(),m=y.getTime(),w=m%1e3;return m-=w>=0?w:1e3+w,b-m}function d(y,v,p){var b=y.getTime(),m=b-v,w=c(new Date(m),p);if(v===w)return v;m-=w-v;var D=c(new Date(m),p);return w===D?w:Math.max(w,D)}function h(y,v){return-23<=y&&y<=23&&(v==null||0<=v&&v<=59)}var f={};function g(y){if(f[y])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:y}),f[y]=!0,!0}catch{return!1}}e.exports=t.default})(i0,i0.exports);var _s=i0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P_),r=a(_s);function a(f){return f&&f.__esModule?f:{default:f}}var o=60*1e3,i={X:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);if(p===0)return"Z";switch(g){case"X":return c(p);case"XXXX":case"XX":return u(p);case"XXXXX":case"XXX":default:return u(p,":")}},x:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);switch(g){case"x":return c(p);case"xxxx":case"xx":return u(p);case"xxxxx":case"xxx":default:return u(p,":")}},O:function(f,g,y,v){var p=s(v.timeZone,v._originalDate||f);switch(g){case"O":case"OO":case"OOO":return"GMT"+d(p,":");case"OOOO":default:return"GMT"+u(p,":")}},z:function(f,g,y,v){var p=v._originalDate||f;switch(g){case"z":case"zz":case"zzz":return(0,n.default)("short",p,v);case"zzzz":default:return(0,n.default)("long",p,v)}}};function s(f,g){var y=f?(0,r.default)(f,g,!0)/o:g.getTimezoneOffset();if(Number.isNaN(y))throw new RangeError("Invalid time zone specified: "+f);return y}function l(f,g){for(var y=f<0?"-":"",v=Math.abs(f).toString();v.length0?"-":"+",p=Math.abs(f),b=l(Math.floor(p/60),2),m=l(Math.floor(p%60),2);return v+b+y+m}function c(f,g){if(f%60===0){var y=f>0?"-":"+";return y+l(Math.abs(f)/60,2)}return u(f,g)}function d(f,g){var y=f>0?"-":"+",v=Math.abs(f),p=Math.floor(v/60),b=v%60;if(b===0)return y+String(p);var m=g||"";return y+String(p)+m+l(b,2)}var h=i;t.default=h,e.exports=t.default})(a0,a0.exports);var I_=a0.exports,u0={exports:{}},c0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=n;t.default=r,e.exports=t.default})(c0,c0.exports);var u2=c0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=i(to),r=i(s2),a=i(_s),o=i(u2);function i(T){return T&&T.__esModule?T:{default:T}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function d(T,x){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(T===null)return new Date(NaN);var k=x||{},A=k.additionalDigits==null?u:(0,n.default)(k.additionalDigits);if(A!==2&&A!==1&&A!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(T instanceof Date||typeof T=="object"&&Object.prototype.toString.call(T)==="[object Date]")return new Date(T.getTime());if(typeof T=="number"||Object.prototype.toString.call(T)==="[object Number]")return new Date(T);if(!(typeof T=="string"||Object.prototype.toString.call(T)==="[object String]"))return new Date(NaN);var M=h(T),N=f(M.date,A),ee=N.year,ae=N.restDateString,oe=g(ae,ee);if(isNaN(oe))return new Date(NaN);if(oe){var Q=oe.getTime(),ye=0,_e;if(M.time&&(ye=y(M.time),isNaN(ye)))return new Date(NaN);if(M.timeZone||k.timeZone){if(_e=(0,a.default)(M.timeZone||k.timeZone,new Date(Q+ye)),isNaN(_e))return new Date(NaN)}else _e=(0,r.default)(new Date(Q+ye)),_e=(0,r.default)(new Date(Q+ye+_e));return new Date(Q+ye+_e)}else return new Date(NaN)}function h(T){var x={},k=c.dateTimePattern.exec(T),A;if(k?(x.date=k[1],A=k[3]):(k=c.datePattern.exec(T),k?(x.date=k[1],A=k[2]):(x.date=null,A=T)),A){var M=c.timeZone.exec(A);M?(x.time=A.replace(M[1],""),x.timeZone=M[1].trim()):x.time=A}return x}function f(T,x){var k=c.YYY[x],A=c.YYYYY[x],M;if(M=c.YYYY.exec(T)||A.exec(T),M){var N=M[1];return{year:parseInt(N,10),restDateString:T.slice(N.length)}}if(M=c.YY.exec(T)||k.exec(T),M){var ee=M[1];return{year:parseInt(ee,10)*100,restDateString:T.slice(ee.length)}}return{year:null}}function g(T,x){if(x===null)return null;var k,A,M,N;if(T.length===0)return A=new Date(0),A.setUTCFullYear(x),A;if(k=c.MM.exec(T),k)return A=new Date(0),M=parseInt(k[1],10)-1,w(x,M)?(A.setUTCFullYear(x,M),A):new Date(NaN);if(k=c.DDD.exec(T),k){A=new Date(0);var ee=parseInt(k[1],10);return D(x,ee)?(A.setUTCFullYear(x,0,ee),A):new Date(NaN)}if(k=c.MMDD.exec(T),k){A=new Date(0),M=parseInt(k[1],10)-1;var ae=parseInt(k[2],10);return w(x,M,ae)?(A.setUTCFullYear(x,M,ae),A):new Date(NaN)}if(k=c.Www.exec(T),k)return N=parseInt(k[1],10)-1,I(x,N)?v(x,N):new Date(NaN);if(k=c.WwwD.exec(T),k){N=parseInt(k[1],10)-1;var oe=parseInt(k[2],10)-1;return I(x,N,oe)?v(x,N,oe):new Date(NaN)}return null}function y(T){var x,k,A;if(x=c.HH.exec(T),x)return k=parseFloat(x[1].replace(",",".")),L(k)?k%24*s:NaN;if(x=c.HHMM.exec(T),x)return k=parseInt(x[1],10),A=parseFloat(x[2].replace(",",".")),L(k,A)?k%24*s+A*l:NaN;if(x=c.HHMMSS.exec(T),x){k=parseInt(x[1],10),A=parseInt(x[2],10);var M=parseFloat(x[3].replace(",","."));return L(k,A,M)?k%24*s+A*l+M*1e3:NaN}return null}function v(T,x,k){x=x||0,k=k||0;var A=new Date(0);A.setUTCFullYear(T,0,4);var M=A.getUTCDay()||7,N=x*7+k+1-M;return A.setUTCDate(A.getUTCDate()+N),A}var p=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function m(T){return T%400===0||T%4===0&&T%100!==0}function w(T,x,k){if(x<0||x>11)return!1;if(k!=null){if(k<1)return!1;var A=m(T);if(A&&k>b[x]||!A&&k>p[x])return!1}return!0}function D(T,x){if(x<1)return!1;var k=m(T);return!(k&&x>366||!k&&x>365)}function I(T,x,k){return!(x<0||x>52||k!=null&&(k<0||k>6))}function L(T,x,k){return!(T!=null&&(T<0||T>=25)||x!=null&&(x<0||x>=60)||k!=null&&(k<0||k>=60))}e.exports=t.default})(u0,u0.exports);var Hu=u0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=o(O_),r=o(I_),a=o(Hu);function o(l){return l&&l.__esModule?l:{default:l}}var i=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),h=c||{},f=d.match(i);if(f){var g=(0,a.default)(l,h);d=f.reduce(function(y,v){if(v[0]==="'")return y;var p=y.indexOf(v),b=y[p-1]==="'",m=y.replace(v,"'"+r.default[v[0]](g,v,null,h)+"'");return b?m.substring(0,p-1)+m.substring(p+1):m},d)}return(0,n.default)(l,d,h)}e.exports=t.default})(xd,xd.exports);var c2=xd.exports,d0={exports:{}},h0={exports:{}},f0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o]);return r}e.exports=t.default})(f0,f0.exports);var N_=f0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(N_);function a(o){return(0,r.default)({},o)}e.exports=t.default})(h0,h0.exports);var d2=h0.exports,p0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(_s),r=a(Hu);function a(i){return i&&i.__esModule?i:{default:i}}function o(i,s,l){var u=(0,r.default)(i,l),c=(0,n.default)(s,u,!0),d=new Date(u.getTime()-c),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}e.exports=t.default})(p0,p0.exports);var h2=p0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(d2),r=o(c2),a=o(h2);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,l,u,c){var d=(0,n.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}e.exports=t.default})(d0,d0.exports);var L_=d0.exports,m0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(_s);function r(o){return o&&o.__esModule?o:{default:o}}function a(o,i){return-(0,n.default)(o,i)}e.exports=t.default})(m0,m0.exports);var R_=m0.exports,v0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(d2),r=s(Hu),a=s(u2),o=s(_s),i=s(l2);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var h=(0,n.default)(d);return h.timeZone=c,(0,r.default)(u,h)}var f=(0,r.default)(u,d),g=(0,i.default)(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()).getTime(),y=(0,o.default)(c,new Date(g));return new Date(g+y)}e.exports=t.default})(v0,v0.exports);var $_=v0.exports,xc={format:c2,formatInTimeZone:L_,getTimezoneOffset:R_,toDate:Hu,utcToZonedTime:h2,zonedTimeToUtc:$_};function ls(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function $n(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView:window}return e}function Oh(e){var t=$n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function us(e){var t=$n(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=$n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function H_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function F_(e){return e===$n(e)||!wr(e)?Oh(e):H_(e)}function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function ga(e){return(us(e)?e.ownerDocument:e.document).documentElement}function f2(e){return ls(ga(e)).left+Oh(e).scrollLeft}function Ts(e){return $n(e).getComputedStyle(e)}function Ph(e){var t=Ts(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function p2(e,t,n){n===void 0&&(n=!1);var r=ga(t),a=ls(e),o={scrollLeft:0,scrollTop:0},i={x:0,y:0};return n||((Zr(t)!=="body"||Ph(r))&&(o=F_(t)),wr(t)?(i=ls(t),i.x+=t.clientLeft,i.y+=t.clientTop):r&&(i.x=f2(r))),{x:a.left+o.scrollLeft-i.x,y:a.top+o.scrollTop-i.y,width:a.width,height:a.height}}function Bh(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function m2(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ga(e)}function v2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:wr(e)&&Ph(e)?e:v2(m2(e))}function Fi(e,t){t===void 0&&(t=[]);var n=v2(e),r=Zr(n)==="body",a=$n(n),o=r?[a].concat(a.visualViewport||[],Ph(n)?n:[]):n,i=t.concat(o);return r?i:i.concat(Fi(m2(o)))}function z_(e){return["table","td","th"].indexOf(Zr(e))>=0}function Bp(e){return!wr(e)||Ts(e).position==="fixed"?null:e.offsetParent}function Ds(e){for(var t=$n(e),n=Bp(e);n&&z_(n);)n=Bp(n);return n&&Zr(n)==="body"&&Ts(n).position==="static"?t:n||t}var Bn="top",qn="bottom",Qn="right",In="left",Ih="auto",Ms=[Bn,qn,Qn,In],Uo="start",Nh="end",j_="clippingParents",g2="viewport",bi="popper",U_="reference",Ip=Ms.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Nh])},[]),y2=[].concat(Ms,[Ih]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Nh])},[]),Z_="beforeRead",Y_="read",V_="afterRead",K_="beforeMain",G_="main",W_="afterMain",q_="beforeWrite",Q_="write",X_="afterWrite",J_=[Z_,Y_,V_,K_,G_,W_,q_,Q_,X_];function eT(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function tT(e){var t=eT(e);return J_.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function nT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dr(e){return e.split("-")[0]}function rT(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,{},r,{options:Object.assign({},a.options,{},r.options),data:Object.assign({},a.data,{},r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Np={placement:"bottom",modifiers:[],strategy:"absolute"};function Lp(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function b2(e){var t=e.reference,n=e.element,r=e.placement,a=r?dr(r):null,o=r?cs(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Bn:l={x:i,y:t.y-n.height};break;case qn:l={x:i,y:t.y+t.height};break;case Qn:l={x:t.x+t.width,y:s};break;case In:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?Lh(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Uo:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Nh:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function sT(e){var t=e.state,n=e.name;t.modifiersData[n]=b2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lT={name:"popperOffsets",enabled:!0,phase:"read",fn:sT,data:{}};var uT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cT(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Math.round(t*a)/a||0,y:Math.round(n*a)/a||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,u=cT(o),c=u.x,d=u.y,h=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),g=In,y=Bn,v=window;if(l){var p=Ds(n);p===$n(n)&&(p=ga(n)),a===Bn&&(y=qn,d-=p.clientHeight-r.height,d*=s?1:-1),a===In&&(g=Qn,c-=p.clientWidth-r.width,c*=s?1:-1)}var b=Object.assign({position:i},l&&uT);if(s){var m;return Object.assign({},b,(m={},m[y]=f?"0":"",m[g]=h?"0":"",m.transform=(v.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign({},b,(t={},t[y]=f?d+"px":"",t[g]=h?c+"px":"",t.transform="",t))}function dT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,s={placement:dr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,{},Rp(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},Rp(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dT,data:{}};function fT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!wr(o)||!Zr(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function pT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,u){return l[u]="",l},{});!wr(a)||!Zr(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const mT={name:"applyStyles",enabled:!0,phase:"write",fn:fT,effect:pT,requires:["computeStyles"]};function vT(e,t,n){var r=dr(e),a=[In,Bn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[In,Qn].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function gT(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=y2.reduce(function(c,d){return c[d]=vT(d,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const yT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gT};var bT={left:"right",right:"left",bottom:"top",top:"bottom"};function cl(e){return e.replace(/left|right|bottom|top/g,function(t){return bT[t]})}var wT={start:"end",end:"start"};function $p(e){return e.replace(/start|end/g,function(t){return wT[t]})}function kT(e){var t=$n(e),n=t.visualViewport,r=t.innerWidth,a=t.innerHeight;return n&&/iPhone|iPod|iPad/.test(navigator.platform)&&(r=n.width,a=n.height),{width:r,height:a,x:0,y:0}}function CT(e){var t=$n(e),n=Oh(e),r=p2(ga(e),t);return r.height=Math.max(r.height,t.innerHeight),r.width=Math.max(r.width,t.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}function Zs(e){return parseFloat(e)||0}function ET(e){var t=wr(e)?Ts(e):{};return{top:Zs(t.borderTopWidth),right:Zs(t.borderRightWidth),bottom:Zs(t.borderBottomWidth),left:Zs(t.borderLeftWidth)}}function xT(e){var t=$n(e),n=ET(e),r=Zr(e)==="html",a=f2(e),o=e.clientWidth+n.right,i=e.clientHeight+n.bottom;return r&&t.innerHeight-e.clientHeight>50&&(i=t.innerHeight-n.bottom),{top:r?0:e.clientTop,right:e.clientLeft>n.left?n.right:r?t.innerWidth-o-a:e.offsetWidth-o,bottom:r?t.innerHeight-i:e.offsetHeight-i,left:r?a:e.clientLeft}}function w2(e,t){var n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function g0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hp(e,t){return t===g2?g0(kT(e)):wr(t)?ls(t):g0(CT(ga(e)))}function ST(e){var t=Fi(e),n=["absolute","fixed"].indexOf(Ts(e).position)>=0,r=n&&wr(e)?Ds(e):e;return us(r)?t.filter(function(a){return us(a)&&w2(a,r)}):[]}function _T(e,t,n){var r=t==="clippingParents"?ST(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(s,l){var u=Hp(e,l),c=xT(wr(l)?l:ga(e));return s.top=Math.max(u.top+c.top,s.top),s.right=Math.min(u.right-c.right,s.right),s.bottom=Math.min(u.bottom-c.bottom,s.bottom),s.left=Math.max(u.left+c.left,s.left),s},Hp(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function k2(){return{top:0,right:0,bottom:0,left:0}}function C2(e){return Object.assign({},k2(),{},e)}function E2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ds(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,i=o===void 0?j_:o,s=n.rootBoundary,l=s===void 0?g2:s,u=n.elementContext,c=u===void 0?bi:u,d=n.altBoundary,h=d===void 0?!1:d,f=n.padding,g=f===void 0?0:f,y=C2(typeof g!="number"?g:E2(g,Ms)),v=c===bi?U_:bi,p=e.elements.reference,b=e.rects.popper,m=e.elements[h?v:c],w=_T(us(m)?m:m.contextElement||ga(e.elements.popper),i,l),D=ls(p),I=b2({reference:D,element:b,strategy:"absolute",placement:a}),L=g0(Object.assign({},b,{},I)),T=c===bi?L:D,x={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},k=e.modifiersData.offset;if(c===bi&&k){var A=k[a];Object.keys(x).forEach(function(M){var N=[Qn,qn].indexOf(M)>=0?1:-1,ee=[Bn,qn].indexOf(M)>=0?"y":"x";x[M]+=A[ee]*N})}return x}function TT(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?y2:l,c=cs(r),d=(c?s?Ip:Ip.filter(function(f){return cs(f)===c}):Ms).filter(function(f){return u.indexOf(f)>=0}),h=d.reduce(function(f,g){return f[g]=ds(e,{placement:g,boundary:a,rootBoundary:o,padding:i})[dr(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function DT(e){if(dr(e)===Ih)return[];var t=cl(e);return[$p(e),t,$p(t)]}function MT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,y=n.allowedAutoPlacements,v=t.options.placement,p=dr(v),b=p===v,m=l||(b||!g?[cl(v)]:DT(v)),w=[v].concat(m).reduce(function($e,Ae){return $e.concat(dr(Ae)===Ih?TT(t,{placement:Ae,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):Ae)},[]),D=t.rects.reference,I=t.rects.popper,L=new Map,T=!0,x=w[0],k=0;k=0,ae=ee?"width":"height",oe=ds(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),Q=ee?N?Qn:In:N?qn:Bn;D[ae]>I[ae]&&(Q=cl(Q));var ye=cl(Q),_e=[];if(o&&_e.push(oe[M]<=0),s&&_e.push(oe[Q]<=0,oe[ye]<=0),_e.every(function($e){return $e})){x=A,T=!1;break}L.set(A,_e)}if(T)for(var Re=g?3:1,Ue=function($e){var Ae=w.find(function(je){var U=L.get(je);if(U)return U.slice(0,$e).every(function(R){return R})});if(Ae)return x=Ae,"break"},ze=Re;ze>0;ze--){var fe=Ue(ze);if(fe==="break")break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}const AT={name:"flip",enabled:!0,phase:"main",fn:MT,requiresIfExists:["offset"],data:{_skip:!1}};function OT(e){return e==="x"?"y":"x"}function dl(e,t,n){return Math.max(e,Math.min(t,n))}function PT(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,v=ds(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=dr(t.placement),b=cs(t.placement),m=!b,w=Lh(p),D=OT(w),I=t.modifiersData.popperOffsets,L=t.rects.reference,T=t.rects.popper,x=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,k={x:0,y:0};if(I){if(o){var A=w==="y"?Bn:In,M=w==="y"?qn:Qn,N=w==="y"?"height":"width",ee=I[w],ae=I[w]+v[A],oe=I[w]-v[M],Q=f?-T[N]/2:0,ye=b===Uo?L[N]:T[N],_e=b===Uo?-T[N]:-L[N],Re=t.elements.arrow,Ue=f&&Re?Bh(Re):{width:0,height:0},ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k2(),fe=ze[A],$e=ze[M],Ae=dl(0,L[N],Ue[N]),je=m?L[N]/2-Q-Ae-fe-x:ye-Ae-fe-x,U=m?-L[N]/2+Q+Ae+$e+x:_e+Ae+$e+x,R=t.elements.arrow&&Ds(t.elements.arrow),K=R?w==="y"?R.clientTop||0:R.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,te=I[w]+je-H-K,E=I[w]+U-H,_=dl(f?Math.min(ae,te):ae,ee,f?Math.max(oe,E):oe);I[w]=_,k[w]=_-ee}if(s){var P=w==="x"?Bn:In,Z=w==="x"?qn:Qn,Y=I[D],W=Y+v[P],ce=Y-v[Z],le=dl(W,Y,ce);I[D]=le,k[D]=le-Y}t.modifiersData[r]=k}}const BT={name:"preventOverflow",enabled:!0,phase:"main",fn:PT,requiresIfExists:["offset"]};function IT(e){var t,n=e.state,r=e.name,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=dr(n.placement),s=Lh(i),l=[In,Qn].indexOf(i)>=0,u=l?"height":"width";if(!(!a||!o)){var c=n.modifiersData[r+"#persistent"].padding,d=Bh(a),h=s==="y"?Bn:In,f=s==="y"?qn:Qn,g=n.rects.reference[u]+n.rects.reference[s]-o[s]-n.rects.popper[u],y=o[s]-n.rects.reference[s],v=Ds(a),p=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-y/2,m=c[h],w=p-d[u]-c[f],D=p/2-d[u]/2+b,I=dl(m,D,w),L=s;n.modifiersData[r]=(t={},t[L]=I,t.centerOffset=I-D,t)}}function NT(e){var t=e.state,n=e.options,r=e.name,a=n.element,o=a===void 0?"[data-popper-arrow]":a,i=n.padding,s=i===void 0?0:i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(!w2(t.elements.popper,o))return;t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:C2(typeof s!="number"?s:E2(s,Ms))}}}const LT={name:"arrow",enabled:!0,phase:"main",fn:IT,effect:NT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zp(e){return[Bn,Qn,qn,In].some(function(t){return e[t]>=0})}function RT(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ds(t,{elementContext:"reference"}),s=ds(t,{altBoundary:!0}),l=Fp(i,r),u=Fp(s,a,o),c=zp(l),d=zp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const $T={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RT};var HT=[iT,lT,hT,mT,yT,AT,BT,LT,$T],FT=aT({defaultModifiers:HT}),zT=Object.defineProperty,jT=Object.defineProperties,UT=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,jp=(e,t,n)=>t in e?zT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))x2.call(t,n)&&jp(e,n,t[n]);if(Zl)for(var n of Zl(t))S2.call(t,n)&&jp(e,n,t[n]);return e},et=(e,t)=>jT(e,UT(t)),ZT=(e,t)=>{var n={};for(var r in e)x2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zl)for(var r of Zl(e))t.indexOf(r)<0&&S2.call(e,r)&&(n[r]=e[r]);return n};function pr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function qt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Yr(e){qt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function ur(e,t){qt(2,arguments);var n=Yr(e),r=pr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function y0(e,t){qt(2,arguments);var n=Yr(e),r=pr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function Up(e,t){qt(2,arguments);var n=pr(t);return y0(e,n*12)}var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YT=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,_2=YT,VT=_2,KT=typeof self=="object"&&self&&self.Object===Object&&self,GT=VT||KT||Function("return this")(),kr=GT,WT=kr,qT=WT.Symbol,ti=qT,Zp=ti,T2=Object.prototype,QT=T2.hasOwnProperty,XT=T2.toString,wi=Zp?Zp.toStringTag:void 0;function JT(e){var t=QT.call(e,wi),n=e[wi];try{e[wi]=void 0;var r=!0}catch{}var a=XT.call(e);return r&&(t?e[wi]=n:delete e[wi]),a}var eD=JT,tD=Object.prototype,nD=tD.toString;function rD(e){return nD.call(e)}var aD=rD,Yp=ti,oD=eD,iD=aD,sD="[object Null]",lD="[object Undefined]",Vp=Yp?Yp.toStringTag:void 0;function uD(e){return e==null?e===void 0?lD:sD:Vp&&Vp in Object(e)?oD(e):iD(e)}var Cr=uD;function cD(e){return e!=null&&typeof e=="object"}var Cn=cD,dD=Cr,hD=Cn,fD="[object Boolean]";function pD(e){return e===!0||e===!1||hD(e)&&dD(e)==fD}var mD=pD,vD=Cr,gD=Cn,yD="[object Number]";function bD(e){return typeof e=="number"||gD(e)&&vD(e)==yD}var zi=bD,wD=Array.isArray,En=wD,kD=Cr,CD=En,ED=Cn,xD="[object String]";function SD(e){return typeof e=="string"||!CD(e)&&ED(e)&&kD(e)==xD}var sa=SD;function _D(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn=_D,TD=Cr,DD=Hn,MD="[object AsyncFunction]",AD="[object Function]",OD="[object GeneratorFunction]",PD="[object Proxy]";function BD(e){if(!DD(e))return!1;var t=TD(e);return t==AD||t==OD||t==MD||t==PD}var Ir=BD,ID=9007199254740991;function ND(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ID}var Rh=ND,LD=Ir,RD=Rh;function $D(e){return e!=null&&RD(e.length)&&!LD(e)}var As=$D,HD=As,FD=Cn;function zD(e){return FD(e)&&HD(e)}var hn=zD;function jD(e){return e===void 0}var UD=jD,ZD=Cr,YD=Cn,VD="[object Date]";function KD(e){return YD(e)&&ZD(e)==VD}var GD=KD;function WD(e){return function(t){return e(t)}}var Fu=WD,Zo={exports:{}};(function(e,t){var n=_2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,i=o&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Zo,Zo.exports);var qD=GD,QD=Fu,Kp=Zo.exports,Gp=Kp&&Kp.isDate,XD=Gp?QD(Gp):qD,JD=XD;function eM(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var tM=eM,nM=Cr,rM=Cn,aM="[object Symbol]";function oM(e){return typeof e=="symbol"||rM(e)&&nM(e)==aM}var zu=oM,Wp=Hn,iM=zu,qp=0/0,sM=/^\s+|\s+$/g,lM=/^[-+]0x[0-9a-f]+$/i,uM=/^0b[01]+$/i,cM=/^0o[0-7]+$/i,dM=parseInt;function hM(e){if(typeof e=="number")return e;if(iM(e))return qp;if(Wp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(sM,"");var n=uM.test(e);return n||cM.test(e)?dM(e.slice(2),n?2:8):lM.test(e)?qp:+e}var fM=hM,pM=tM,Sc=fM;function mM(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Sc(n),n=n===n?n:0),t!==void 0&&(t=Sc(t),t=t===t?t:0),pM(Sc(e),t,n)}var vM=mM,gM=En,yM=zu,bM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wM=/^\w*$/;function kM(e,t){if(gM(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yM(e)?!0:wM.test(e)||!bM.test(e)||t!=null&&e in Object(t)}var $h=kM,CM=kr,EM=CM["__core-js_shared__"],xM=EM,_c=xM,Qp=function(){var e=/[^.]+$/.exec(_c&&_c.keys&&_c.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SM(e){return!!Qp&&Qp in e}var _M=SM,TM=Function.prototype,DM=TM.toString;function MM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var D2=MM,AM=Ir,OM=_M,PM=Hn,BM=D2,IM=/[\\^$.*+?()[\]{}|]/g,NM=/^\[object .+?Constructor\]$/,LM=Function.prototype,RM=Object.prototype,$M=LM.toString,HM=RM.hasOwnProperty,FM=RegExp("^"+$M.call(HM).replace(IM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zM(e){if(!PM(e)||OM(e))return!1;var t=AM(e)?FM:NM;return t.test(BM(e))}var jM=zM;function UM(e,t){return e==null?void 0:e[t]}var ZM=UM,YM=jM,VM=ZM;function KM(e,t){var n=VM(e,t);return YM(n)?n:void 0}var ro=KM,GM=ro,WM=GM(Object,"create"),ju=WM,Xp=ju;function qM(){this.__data__=Xp?Xp(null):{},this.size=0}var QM=qM;function XM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JM=XM,eA=ju,tA="__lodash_hash_undefined__",nA=Object.prototype,rA=nA.hasOwnProperty;function aA(e){var t=this.__data__;if(eA){var n=t[e];return n===tA?void 0:n}return rA.call(t,e)?t[e]:void 0}var oA=aA,iA=ju,sA=Object.prototype,lA=sA.hasOwnProperty;function uA(e){var t=this.__data__;return iA?t[e]!==void 0:lA.call(t,e)}var cA=uA,dA=ju,hA="__lodash_hash_undefined__";function fA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=dA&&t===void 0?hA:t,this}var pA=fA,mA=QM,vA=JM,gA=oA,yA=cA,bA=pA;function ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var LA=NA,RA=Uu;function $A(e,t){var n=this.__data__,r=RA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var HA=$A,FA=CA,zA=AA,jA=BA,UA=LA,ZA=HA;function ai(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&es))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=n&EI?new bI:void 0;for(o.set(e,t),o.set(t,e);++d0){if(++t>=DR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PR=OR,BR=TR,IR=PR,NR=IR(BR),t5=NR,LR=Gh,RR=e5,$R=t5;function HR(e,t){return $R(RR(e,t,LR),e+"")}var Wh=HR,FR=ri,zR=As,jR=Gu,UR=Hn;function ZR(e,t,n){if(!UR(n))return!1;var r=typeof t;return(r=="number"?zR(n)&&jR(t,n.length):r=="string"&&t in n)?FR(n[t],e):!1}var qh=ZR;function YR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VR=YR,KR=Hn,GR=Yh,WR=VR,qR=Object.prototype,QR=qR.hasOwnProperty;function XR(e){if(!KR(e))return WR(e);var t=GR(e),n=[];for(var r in e)r=="constructor"&&(t||!QR.call(e,r))||n.push(r);return n}var JR=XR,e$=N2,t$=JR,n$=As;function r$(e){return n$(e)?e$(e,!0):t$(e)}var di=r$,a$=Wh,o$=ri,i$=qh,s$=di,n5=Object.prototype,l$=n5.hasOwnProperty,u$=a$(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&i$(t[0],t[1],a)&&(r=1);++n1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&hH(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r0&&n(s)?t>1?f5(s,t-1,n,r,a):RH(a,s):r||(a[a.length]=s)}return a}var HH=f5,FH=HH;function zH(e){var t=e==null?0:e.length;return t?FH(e,1):[]}var jH=zH,UH=jH,ZH=e5,YH=t5;function VH(e){return YH(ZH(e,void 0,UH),e+"")}var p5=VH,KH=PH,GH=p5,WH=GH(function(e,t){return e==null?{}:KH(e,t)}),qH=WH;function QH(e,t){for(var n=-1,r=e==null?0:e.length;++na?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r1),o}),jj(e,Yj(e),n),r&&(n=Hj(n,Vj|Kj|Gj,Uj));for(var a=t.length;a--;)Fj(n,t[a]);return n}),x0=Wj,qj=Object.prototype,Qj=qj.hasOwnProperty;function Xj(e,t){return e!=null&&Qj.call(e,t)}var Jj=Xj,eU=Jj,tU=q2;function nU(e,t){return e!=null&&tU(e,t,eU)}var w5=nU,rU=As;function aU(e,t){return function(n,r){if(n==null)return n;if(!rU(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=Object(n);(t?o--:++oObject.prototype.toString.call(e).slice(8,-1),da=e=>JD(e)&&!isNaN(e.getTime()),Pn=e=>wU(e)==="Object",ef=w5,S0=(e,t)=>C5(t,n=>w5(e,n)),kU=C5,rt=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length{const t={};return e.forEach(n=>Object.entries(n).forEach(([r,a])=>{t[r]?hn(t[r])?t[r].push(a):t[r]=[t[r],a]:t[r]=a})),t},yn=e=>!!(e&&e.month&&e.year),Ti=(e,t)=>!yn(e)||!yn(t)?!1:e.year===t.year?e.month!yn(e)||!yn(t)?!1:e.year===t.year?e.month>t.month:e.year>t.year,E5=(e,t,n)=>(e||!1)&&!Ti(e,t)&&!Ui(e,n),Mc=(e,t)=>!e&&t||e&&!t?!1:!e&&!t?!0:e.month===t.month&&e.year===t.year,Mr=({month:e,year:t},n)=>{const r=n>0?1:-1;for(let a=0;a12?(e=1,t++):e<1&&(e=12,t--);return{month:e,year:t}},EU=(e,t)=>{if(!yn(e)||!yn(t))return[];const n=[];for(;!Ui(e,t);)n.push(e),e=Mr(e,1);return n};function Ac(e,t){const n=da(e),r=da(t);return!n&&!r?!0:n!==r?!1:e.getTime()===t.getTime()}const Mn=e=>hn(e)&&e.length>0,U1=(e,t,n)=>{const r=[];return n.forEach(a=>{const o=a.name||a.toString(),i=a.mixin,s=a.validate;if(Object.prototype.hasOwnProperty.call(e,o)){const l=s?s(e[o]):e[o];t[o]=i&&Pn(l)?we(we({},i),l):l,r.push(o)}}),{target:t,assigned:r.length?r:null}},tn=(e,t,n,r)=>{e&&t&&n&&e.addEventListener(t,n,r)},nn=(e,t,n,r)=>{e&&t&&e.removeEventListener(t,n,r)},Zi=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),x5=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Kl=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`};function xU(e){let t=0,n=0,r;if(e.length===0)return t;for(n=0;n{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const SU={name:"CustomTransition",emits:["before-enter","before-transition","after-enter","after-transition"],props:{name:String,appear:Boolean},computed:{name_(){return`vc-${this.name||"none"}`}},methods:{beforeEnter(e){this.$emit("before-enter",e),this.$emit("before-transition",e)},afterEnter(e){this.$emit("after-enter",e),this.$emit("after-transition",e)}}};function _U(e,t,n,r,a,o){return C(),se(ja,{name:o.name_,appear:n.appear,onBeforeEnter:o.beforeEnter,onAfterEnter:o.afterEnter},{default:F(()=>[z(e.$slots,"default")]),_:3},8,["name","appear","onBeforeEnter","onAfterEnter"])}var S5=fi(SU,[["render",_U]]);const _0={name:"Popover",emits:["before-show","after-show","before-hide","after-hide"],render(){return De("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[De(S5,{name:this.transition,appear:!0,"on-before-enter":this.beforeEnter,"on-after-enter":this.afterEnter,"on-before-leave":this.beforeLeave,"on-after-leave":this.afterLeave},{default:()=>this.isVisible?De("div",{tabindex:-1,class:["vc-popover-content",`direction-${this.direction}`,this.contentClass],style:this.contentStyle},[this.content,De("span",{class:["vc-popover-caret",`direction-${this.direction}`,`align-${this.alignment}`]})]):null})])},props:{id:{type:String,required:!0},contentClass:String},data(){return{ref:null,opts:null,data:null,transition:"slide-fade",transitionTranslate:"15px",transitionDuration:"0.15s",placement:"bottom",positionFixed:!1,modifiers:[],isInteractive:!1,isHovered:!1,isFocused:!1,showDelay:0,hideDelay:110,autoHide:!1,popperEl:null}},computed:{content(){return Ir(this.$slots.default)&&this.$slots.default({direction:this.direction,alignment:this.alignment,data:this.data,updateLayout:this.setupPopper,hide:e=>this.hide(e)})||this.$slots.default},contentStyle(){return{"--slide-translate":this.transitionTranslate,"--slide-duration":this.transitionDuration}},popperOptions(){return{placement:this.placement,strategy:this.positionFixed?"fixed":"absolute",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:this.onPopperUpdate},...this.modifiers||[]],onFirstUpdate:this.onPopperUpdate}},isVisible(){return!!(this.ref&&this.content)},direction(){return this.placement&&this.placement.split("-")[0]||"bottom"},alignment(){const e=this.direction==="left"||this.direction==="right";let t=this.placement.split("-");return t=t.length>1?t[1]:"",["start","top","left"].includes(t)?e?"top":"left":["end","bottom","right"].includes(t)?e?"bottom":"right":e?"middle":"center"}},watch:{opts(e,t){t&&t.callback&&t.callback(et(we({},t),{completed:!e,reason:e?"Overridden by action":null}))}},mounted(){this.popoverEl=this.$refs.popover,this.addEvents()},beforeUnmount(){this.destroyPopper(),this.removeEvents(),this.popoverEl=null},methods:{addEvents(){tn(this.popoverEl,"click",this.onClick),tn(this.popoverEl,"mouseover",this.onMouseOver),tn(this.popoverEl,"mouseleave",this.onMouseLeave),tn(this.popoverEl,"focusin",this.onFocusIn),tn(this.popoverEl,"focusout",this.onFocusOut),tn(document,"keydown",this.onDocumentKeydown),tn(document,"click",this.onDocumentClick),tn(document,"show-popover",this.onDocumentShowPopover),tn(document,"hide-popover",this.onDocumentHidePopover),tn(document,"toggle-popover",this.onDocumentTogglePopover),tn(document,"update-popover",this.onDocumentUpdatePopover)},removeEvents(){nn(this.popoverEl,"click",this.onClick),nn(this.popoverEl,"mouseover",this.onMouseOver),nn(this.popoverEl,"mouseleave",this.onMouseLeave),nn(this.popoverEl,"focusin",this.onFocusIn),nn(this.popoverEl,"focusout",this.onFocusOut),nn(document,"keydown",this.onDocumentKeydown),nn(document,"click",this.onDocumentClick),nn(document,"show-popover",this.onDocumentShowPopover),nn(document,"hide-popover",this.onDocumentHidePopover),nn(document,"toggle-popover",this.onDocumentTogglePopover),nn(document,"update-popover",this.onDocumentUpdatePopover)},onClick(e){e.stopPropagation()},onMouseOver(){this.isHovered=!0,this.isInteractive&&this.show()},onMouseLeave(){this.isHovered=!1,this.autoHide&&!this.isFocused&&(!this.ref||this.ref!==document.activeElement)&&this.hide()},onFocusIn(){this.isFocused=!0,this.isInteractive&&this.show()},onFocusOut(e){(!e.relatedTarget||!Zi(this.popoverEl,e.relatedTarget))&&(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(e){!this.$refs.popover||!this.ref||Zi(this.popoverEl,e.target)||Zi(this.ref,e.target)||this.hide()},onDocumentKeydown(e){(e.key==="Esc"||e.key==="Escape")&&this.hide()},onDocumentShowPopover({detail:e}){!e.id||e.id!==this.id||this.show(e)},onDocumentHidePopover({detail:e}){!e.id||e.id!==this.id||this.hide(e)},onDocumentTogglePopover({detail:e}){!e.id||e.id!==this.id||this.toggle(e)},onDocumentUpdatePopover({detail:e}){!e.id||e.id!==this.id||this.update(e)},show(e={}){e.action="show";const t=e.ref||this.ref,n=e.showDelay>=0?e.showDelay:this.showDelay;if(!t){e.callback&&e.callback({completed:!1,reason:"Invalid reference element provided"});return}clearTimeout(this.timeout),this.opts=e;const r=()=>{Object.assign(this,x0(e,["id"])),this.setupPopper(),this.opts=null};n>0?this.timeout=setTimeout(()=>r(),n):r()},hide(e={}){e.action="hide";const t=e.ref||this.ref,n=e.hideDelay>=0?e.hideDelay:this.hideDelay;if(!this.ref||t!==this.ref){e.callback&&e.callback(et(we({},e),{completed:!1,reason:this.ref?"Invalid reference element provided":"Popover already hidden"}));return}const r=()=>{this.ref=null,this.opts=null};clearTimeout(this.timeout),this.opts=e,n>0?this.timeout=setTimeout(r,n):r()},toggle(e={}){this.isVisible&&e.ref===this.ref?this.hide(e):this.show(e)},update(e={}){Object.assign(this,x0(e,["id"])),this.setupPopper()},setupPopper(){this.$nextTick(()=>{!this.ref||!this.$refs.popover||(this.popper&&this.popper.reference!==this.ref&&this.destroyPopper(),this.popper?this.popper.update():this.popper=FT(this.ref,this.popoverEl,this.popperOptions))})},onPopperUpdate(e){e.placement?this.placement=e.placement:e.state&&(this.placement=e.state.placement)},beforeEnter(e){this.$emit("before-show",e)},afterEnter(e){this.$emit("after-show",e)},beforeLeave(e){this.$emit("before-hide",e)},afterLeave(e){this.destroyPopper(),this.$emit("after-hide",e)},destroyPopper(){this.popper&&(this.popper.destroy(),this.popper=null)}}},TU={inject:["sharedState"],computed:{masks(){return this.sharedState.masks},theme(){return this.sharedState.theme},locale(){return this.sharedState.locale},dayPopoverId(){return this.sharedState.dayPopoverId}},methods:{format(e,t){return this.locale.format(e,t)},pageForDate(e){return this.locale.getDateParts(this.locale.normalizeDate(e))}}},DU=["base","start","end","startEnd"],MU=["class","contentClass","style","contentStyle","color","fillMode"],AU={color:"blue",isDark:!1,highlight:{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}},dot:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},bar:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},content:{base:{},start:{},end:{}}};class Z1{constructor(t){Object.assign(this,AU,t)}normalizeAttr({config:t,type:n}){let r=this.color,a={};const o=this[n];if(t===!0||sa(t))r=sa(t)?t:r,a=we({},o);else if(Pn(t))S0(t,DU)?a=we({},t):a={base:we({},t),start:we({},t),end:we({},t)};else return null;return ji(a,{start:a.startEnd,end:a.startEnd},o),hl(a).forEach(([i,s])=>{let l=r;s===!0||sa(s)?(l=sa(s)?s:l,a[i]={color:l}):Pn(s)&&(S0(s,MU)?a[i]=we({},s):a[i]={}),ef(a,`${i}.color`)||vP(a,`${i}.color`,l)}),a}normalizeHighlight(t){const n=this.normalizeAttr({config:t,type:"highlight"});return hl(n).forEach(([r,a])=>{const o=ji(a,{isDark:this.isDark,color:this.color});a.style=we(we({},this.getHighlightBgStyle(o)),a.style),a.contentStyle=we(we({},this.getHighlightContentStyle(o)),a.contentStyle)}),n}getHighlightBgStyle({fillMode:t,color:n,isDark:r}){switch(t){case"outline":case"none":return{backgroundColor:r?"var(--gray-900)":"var(--white)",border:"2px solid",borderColor:r?`var(--${n}-200)`:`var(--${n}-700)`,borderRadius:"var(--rounded-full)"};case"light":return{backgroundColor:r?`var(--${n}-800)`:`var(--${n}-200)`,opacity:r?.75:1,borderRadius:"var(--rounded-full)"};case"solid":return{backgroundColor:r?`var(--${n}-500)`:`var(--${n}-600)`,borderRadius:"var(--rounded-full)"};default:return{borderRadius:"var(--rounded-full)"}}}getHighlightContentStyle({fillMode:t,color:n,isDark:r}){switch(t){case"outline":case"none":return{fontWeight:"var(--font-bold)",color:r?`var(--${n}-100)`:`var(--${n}-900)`};case"light":return{fontWeight:"var(--font-bold)",color:r?`var(--${n}-100)`:`var(--${n}-900)`};case"solid":return{fontWeight:"var(--font-bold)",color:"var(--white)"};default:return""}}bgAccentHigh({color:t,isDark:n}){return{backgroundColor:n?`var(--${t}-500)`:`var(--${t}-600)`}}contentAccent({color:t,isDark:n}){return t?{fontWeight:"var(--font-bold)",color:n?`var(--${t}-100)`:`var(--${t}-900)`}:null}normalizeDot(t){return this.normalizeNonHighlight("dot",t,this.bgAccentHigh)}normalizeBar(t){return this.normalizeNonHighlight("bar",t,this.bgAccentHigh)}normalizeContent(t){return this.normalizeNonHighlight("content",t,this.contentAccent)}normalizeNonHighlight(t,n,r){const a=this.normalizeAttr({type:t,config:n});return hl(a).forEach(([o,i])=>{ji(i,{isDark:this.isDark,color:this.color}),i.style=we(we({},r(i)),i.style)}),a}}var pl=6e4;function Y1(e){return e.getTime()%pl}function Gl(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0,a=r?(pl+Y1(t))%pl:Y1(t);return n*pl+a}function OU(e,t){var n=NU(t);return n.formatToParts?BU(n,e):IU(n,e)}var PU={year:0,month:1,day:2,hour:3,minute:4,second:5};function BU(e,t){for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[o]=parseInt(n[a].value,10))}return r}function IU(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Oc={};function NU(e){if(!Oc[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Oc[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Oc[e]}var V1=36e5,LU=6e4,Ks={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function K1(e,t){var n,r;if(n=Ks.timezoneZ.exec(e),n)return 0;var a;if(n=Ks.timezoneHH.exec(e),n)return a=parseInt(n[2],10),G1()?(r=a*V1,n[1]==="+"?-r:r):NaN;if(n=Ks.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return G1(a,o)?(r=a*V1+o*LU,n[1]==="+"?-r:r):NaN}if(n=Ks.timezoneIANA.exec(e),n){var i=OU(t,e),s=Date.UTC(i[0],i[1]-1,i[2],i[3],i[4],i[5]),l=t.getTime()-t.getTime()%1e3;return-(s-l)}return 0}function G1(e,t){return!(t!=null&&(t<0||t>59))}var Pc=36e5,W1=6e4,RU=2,Yt={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function q1(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?RU:pr(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=$U(e),o=HU(a.date,r),i=o.year,s=o.restDateString,l=FU(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=zU(a.time),isNaN(c)))return new Date(NaN);if(a.timezone||n.timeZone){if(d=K1(a.timezone||n.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN);if(d=K1(a.timezone||n.timeZone,new Date(u+c+d)),isNaN(d))return new Date(NaN)}else d=Gl(new Date(u+c)),d=Gl(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function $U(e){var t={},n=e.split(Yt.dateTimeDelimeter),r;if(Yt.plainTime.test(n[0])?(t.date=null,r=n[0]):(t.date=n[0],r=n[1],t.timezone=n[2],Yt.timeZoneDelimeter.test(t.date)&&(t.date=e.split(Yt.timeZoneDelimeter)[0],r=e.substr(t.date.length,e.length))),r){var a=Yt.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function HU(e,t){var n=Yt.YYY[t],r=Yt.YYYYY[t],a;if(a=Yt.YYYY.exec(e)||r.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=Yt.YY.exec(e)||n.exec(e),a){var i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function FU(e,t){if(t===null)return null;var n,r,a,o;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Yt.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,X1(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=Yt.DDD.exec(e),n){r=new Date(0);var i=parseInt(n[1],10);return ZU(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(n=Yt.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return X1(t,a,s)?(r.setUTCFullYear(t,a,s),r):new Date(NaN)}if(n=Yt.Www.exec(e),n)return o=parseInt(n[1],10)-1,J1(t,o)?Q1(t,o):new Date(NaN);if(n=Yt.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return J1(t,o,l)?Q1(t,o,l):new Date(NaN)}return null}function zU(e){var t,n,r;if(t=Yt.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Bc(n)?n%24*Pc:NaN;if(t=Yt.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Bc(n,r)?n%24*Pc+r*W1:NaN;if(t=Yt.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Bc(n,r,a)?n%24*Pc+r*W1+a*1e3:NaN}return null}function Q1(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,o=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}var jU=[31,28,31,30,31,30,31,31,30,31,30,31],UU=[31,29,31,30,31,30,31,31,30,31,30,31];function _5(e){return e%400===0||e%4===0&&e%100!==0}function X1(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=_5(e);if(r&&n>UU[t]||!r&&n>jU[t])return!1}return!0}function ZU(e,t){if(t<1)return!1;var n=_5(e);return!(n&&t>366||!n&&t>365)}function J1(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Bc(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function Za(e,t){qt(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=a==null?0:pr(a),i=n.weekStartsOn==null?o:pr(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Yr(e),l=s.getDay(),u=(l=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function VU(e){qt(1,arguments);var t=YU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Wl(n);return r}var KU=6048e5;function GU(e){qt(1,arguments);var t=Yr(e),n=Wl(t).getTime()-VU(t).getTime();return Math.round(n/KU)+1}function WU(e,t){qt(1,arguments);var n=Yr(e),r=n.getFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,s=i==null?1:pr(i),l=a.firstWeekContainsDate==null?s:pr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setFullYear(r+1,0,l),u.setHours(0,0,0,0);var c=Za(u,t),d=new Date(0);d.setFullYear(r,0,l),d.setHours(0,0,0,0);var h=Za(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function qU(e,t){qt(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=a==null?1:pr(a),i=n.firstWeekContainsDate==null?o:pr(n.firstWeekContainsDate),s=WU(e,t),l=new Date(0);l.setFullYear(s,0,i),l.setHours(0,0,0,0);var u=Za(l,t);return u}var QU=6048e5;function XU(e,t){qt(1,arguments);var n=Yr(e),r=Za(n,t).getTime()-qU(n,t).getTime();return Math.round(r/QU)+1}var JU=6048e5;function eZ(e,t,n){qt(2,arguments);var r=Za(e,n),a=Za(t,n),o=r.getTime()-Gl(r),i=a.getTime()-Gl(a);return Math.round((o-i)/JU)}function tZ(e){qt(1,arguments);var t=Yr(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function nZ(e){qt(1,arguments);var t=Yr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function rZ(e,t){return qt(1,arguments),eZ(tZ(e),nZ(e),t)+1}const aZ=24*60*60*1e3;let Ar=class jn{constructor(t,{order:n=0,locale:r,isFullDay:a}={}){if(this.isDateInfo=!0,this.order=n,this.locale=r instanceof ql?r:new ql(r),this.firstDayOfWeek=this.locale.firstDayOfWeek,!Pn(t)){const l=this.locale.normalizeDate(t);a?t={start:l,end:l}:t={startOn:l,endOn:l}}let o=null,i=null;if(t.start?o=this.locale.normalizeDate(t.start,et(we({},this.opts),{time:"00:00:00"})):t.startOn&&(o=this.locale.normalizeDate(t.startOn,this.opts)),t.end?i=this.locale.normalizeDate(t.end,et(we({},this.opts),{time:"23:59:59"})):t.endOn&&(i=this.locale.normalizeDate(t.endOn,this.opts)),o&&i&&o>i){const l=o;o=i,i=l}else o&&t.span>=1&&(i=ur(o,t.span-1));this.start=o,this.startTime=o?o.getTime():NaN,this.end=i,this.endTime=i?i.getTime():NaN,this.isDate=this.startTime&&this.startTime===this.endTime,this.isRange=!this.isDate;const s=U1(t,{},jn.patternProps);if(s.assigned&&(this.on={and:s.target}),t.on){const l=(hn(t.on)?t.on:[t.on]).map(u=>{if(Ir(u))return u;const c=U1(u,{},jn.patternProps);return c.assigned?c.target:null}).filter(u=>u);l.length&&(this.on=et(we({},this.on),{or:l}))}this.isComplex=!!this.on}get opts(){return{order:this.order,locale:this.locale}}toDateInfo(t){return t.isDateInfo?t:new jn(t,this.opts)}startOfWeek(t){const n=t.getDay()+1,r=n>=this.firstDayOfWeek?this.firstDayOfWeek-n:-(7-(this.firstDayOfWeek-n));return ur(t,r)}diffInDays(t,n){return Math.round((n-t)/aZ)}diffInWeeks(t,n){return this.diffInDays(this.startOfWeek(t),this.startOfWeek(n))}diffInYears(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}diffInMonths(t,n){return this.diffInYears(t,n)*12+(n.getMonth()-t.getMonth())}static get patterns(){return{dailyInterval:{test:(t,n,r)=>r.diffInDays(r.start||new Date,t.date)%n===0},weeklyInterval:{test:(t,n,r)=>r.diffInWeeks(r.start||new Date,t.date)%n===0},monthlyInterval:{test:(t,n,r)=>r.diffInMonths(r.start||new Date,t.date)%n===0},yearlyInterval:{test:()=>(t,n,r)=>r.diffInYears(r.start||new Date,t.date)%n===0},days:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.day)||n.includes(-t.dayFromEnd)},weekdays:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.weekday)},ordinalWeekdays:{validate:t=>Object.keys(t).reduce((n,r)=>{const a=t[r];return a&&(n[r]=hn(a)?a:[parseInt(a,10)]),n},{}),test:(t,n)=>Object.keys(n).map(r=>parseInt(r,10)).find(r=>n[r].includes(t.weekday)&&(r===t.weekdayOrdinal||r===-t.weekdayOrdinalFromEnd))},weekends:{validate:t=>t,test:t=>t.weekday===1||t.weekday===7},workweek:{validate:t=>t,test:t=>t.weekday>=2&&t.weekday<=6},weeks:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.week)||n.includes(-t.weekFromEnd)},months:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.month)},years:{validate:t=>hn(t)?t:[parseInt(t,10)],test:(t,n)=>n.includes(t.year)}}}static get patternProps(){return Object.keys(jn.patterns).map(t=>({name:t,validate:jn.patterns[t].validate}))}static testConfig(t,n,r){return Ir(t)?t(n):Pn(t)?Object.keys(t).every(a=>jn.patterns[a].test(n,t[a],r)):null}iterateDatesInRange({start:t,end:n},r){if(!t||!n||!Ir(r))return null;t=this.locale.normalizeDate(t,et(we({},this.opts),{time:"00:00:00"}));const a={i:0,date:t,day:this.locale.getDateParts(t),finished:!1};let o=null;for(;!a.finished&&a.date<=n;a.i++)o=r(a),a.date=ur(a.date,1),a.day=this.locale.getDateParts(a.date);return o}shallowIntersectingRange(t){return this.rangeShallowIntersectingRange(this,this.toDateInfo(t))}rangeShallowIntersectingRange(t,n){if(!this.dateShallowIntersectsDate(t,n))return null;const r=t.toRange(),a=n.toRange();let o=null,i=null;return r.start?a.start?o=r.start>a.start?r.start:a.start:o=r.start:a.start&&(o=a.start),r.end?a.end?i=r.end{this.matchesDay(o.day)&&(a=a||n.matchesDay(o.day),o.finished=a)}),a}shallowIntersectsDate(t){return this.dateShallowIntersectsDate(this,this.toDateInfo(t))}dateShallowIntersectsDate(t,n){return t.isDate?n.isDate?t.startTime===n.startTime:this.dateShallowIncludesDate(n,t):n.isDate?this.dateShallowIncludesDate(t,n):!(t.start&&n.end&&t.start>n.end||t.end&&n.start&&t.end{this.matchesDay(o.day)&&(a=a&&n.matchesDay(o.day),o.finished=!a)}),a}shallowIncludesDate(t){return this.dateShallowIncludesDate(this,t.isDate?t:new jn(t,this.opts))}dateShallowIncludesDate(t,n){return t.isDate?n.isDate?t.startTime===n.startTime:!n.startTime||!n.endTime?!1:t.startTime===n.startTime&&t.startTime===n.endTime:n.isDate?!(t.start&&n.startt.end):!(t.start&&(!n.start||n.startt.end))}intersectsDay(t){return this.shallowIntersectsDate(t.range)&&this.matchesDay(t)?this:null}matchesDay(t){return this.on?!(this.on.and&&!jn.testConfig(this.on.and,t,this)||this.on.or&&!this.on.or.some(n=>jn.testConfig(n,t,this))):!0}toRange(){return new jn({start:this.start,end:this.end},this.opts)}compare(t){if(this.order!==t.order)return this.order-t.order;if(this.isDate!==t.isDate)return this.isDate?1:-1;if(this.isDate)return 0;const n=this.start-t.start;return n!==0?n:this.end-t.end}};const Nn={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Nn.en=Nn["en-US"];Nn.es=Nn["es-ES"];Nn.no=Nn.nb;Nn.zh=Nn["zh-CN"];hl(Nn).forEach(([e,{dow:t,L:n}])=>{Nn[e]={id:e,firstDayOfWeek:t,masks:{L:n}}});const Qr={DATE_TIME:1,DATE:2,TIME:3},oZ={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},em=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Xr=/\d\d?/,iZ=/\d{3}/,sZ=/\d{4}/,ki=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,lZ=/\[([^]*?)\]/gm,tm=()=>{},nm=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substring(1).toLowerCase());~a&&(t.month=a)},uZ=["L","iso"],Qt=7,cZ=[31,28,31,30,31,30,31,31,30,31,30,31],dZ=[{value:0,label:"00"},{value:1,label:"01"},{value:2,label:"02"},{value:3,label:"03"},{value:4,label:"04"},{value:5,label:"05"},{value:6,label:"06"},{value:7,label:"07"},{value:8,label:"08"},{value:9,label:"09"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"},{value:13,label:"13"},{value:14,label:"14"},{value:15,label:"15"},{value:16,label:"16"},{value:17,label:"17"},{value:18,label:"18"},{value:19,label:"19"},{value:20,label:"20"},{value:21,label:"21"},{value:22,label:"22"},{value:23,label:"23"}],rm={D(e){return e.day},DD(e){return rt(e.day)},Do(e,t){return t.DoFn(e.day)},d(e){return e.weekday-1},dd(e){return rt(e.weekday-1)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return rt(e.month)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substring(2)},YYYY(e){return rt(e.year,4)},h(e){return e.hours%12||12},hh(e){return rt(e.hours%12||12)},H(e){return e.hours},HH(e){return rt(e.hours)},m(e){return e.minutes},mm(e){return rt(e.minutes)},s(e){return e.seconds},ss(e){return rt(e.seconds)},S(e){return Math.round(e.milliseconds/100)},SS(e){return rt(Math.round(e.milliseconds/10),2)},SSS(e){return rt(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${rt(Math.floor(Math.abs(t)/60),2)}:${rt(Math.abs(t)%60,2)}`}},dt={D:[Xr,(e,t)=>{e.day=t}],Do:[new RegExp(Xr.source+ki.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Xr,tm],W:[ki,tm],M:[Xr,(e,t)=>{e.month=t-1}],MMM:[ki,nm("monthNamesShort")],MMMM:[ki,nm("monthNames")],YY:[Xr,(e,t)=>{const n=+new Date().getFullYear().toString().substring(0,2);e.year=`${t>68?n-1:n}${t}`}],YYYY:[sZ,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.millisecond=t*100}],SS:[/\d{2}/,(e,t)=>{e.millisecond=t*10}],SSS:[iZ,(e,t)=>{e.millisecond=t}],h:[Xr,(e,t)=>{e.hour=t}],m:[Xr,(e,t)=>{e.minute=t}],s:[Xr,(e,t)=>{e.second=t}],a:[ki,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+(n[1]*60)+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};dt.DD=dt.D;dt.dd=dt.d;dt.WWWW=dt.WWW=dt.WW=dt.W;dt.MM=dt.M;dt.mm=dt.m;dt.hh=dt.H=dt.HH=dt.h;dt.ss=dt.s;dt.A=dt.a;dt.ZZZZ=dt.ZZZ=dt.ZZ=dt.Z;function hZ(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sa(e)?r=e:ef(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const a=Object.keys(t),o=s=>a.find(l=>l.toLowerCase()===s);r=o(r)||o(r.substring(0,2))||n;const i=et(we(we({},t["en-IE"]),t[r]),{id:r});return e=Pn(e)?Jh(e,i):i,e}class ql{constructor(t,{locales:n=Nn,timezone:r}={}){const{id:a,firstDayOfWeek:o,masks:i}=hZ(t,n);this.id=a,this.daysInWeek=Qt,this.firstDayOfWeek=vM(o,1,Qt),this.masks=i,this.timezone=r||void 0,this.dayNames=this.getDayNames("long"),this.dayNamesShort=this.getDayNames("short"),this.dayNamesShorter=this.dayNamesShort.map(s=>s.substring(0,2)),this.dayNamesNarrow=this.getDayNames("narrow"),this.monthNames=this.getMonthNames("long"),this.monthNamesShort=this.getMonthNames("short"),this.amPm=["am","pm"],this.monthData={},this.getMonthComps=this.getMonthComps.bind(this),this.parse=this.parse.bind(this),this.format=this.format.bind(this),this.toPage=this.toPage.bind(this)}format(t,n){if(t=this.normalizeDate(t),!t)return"";n=this.normalizeMasks(n)[0];const r=[];n=n.replace(lZ,(i,s)=>(r.push(s),"??"));const a=/Z$/.test(n)?"utc":this.timezone,o=this.getDateParts(t,a);return n=n.replace(em,i=>i in rm?rm[i](o,this):i.slice(1,i.length-1)),n.replace(/\?\?/g,()=>r.shift())}parse(t,n){return this.normalizeMasks(n).map(r=>{if(typeof r!="string")throw new Error("Invalid mask in fecha.parse");let a=t;if(a.length>1e3)return!1;let o=!0;const i={};if(r.replace(em,u=>{if(dt[u]){const c=dt[u],d=a.search(c[0]);~d?a.replace(c[0],h=>(c[1](i,h,this),a=a.substring(d+h.length),h)):o=!1}return dt[u]?"":u.slice(1,u.length-1)}),!o)return!1;const s=new Date;i.isPm===!0&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===!1&&+i.hour==12&&(i.hour=0);let l;return i.timezoneOffset!=null?(i.minute=+(i.minute||0)-+i.timezoneOffset,l=new Date(Date.UTC(i.year||s.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):l=this.getDateFromParts({year:i.year||s.getFullYear(),month:(i.month||0)+1,day:i.day||1,hours:i.hour||0,minutes:i.minute||0,seconds:i.second||0,milliseconds:i.millisecond||0}),l}).find(r=>r)||new Date(t)}normalizeMasks(t){return(Mn(t)&&t||[sa(t)&&t||"YYYY-MM-DD"]).map(n=>uZ.reduce((r,a)=>r.replace(a,this.masks[a]||""),n))}normalizeDate(t,n={}){let r=null,{type:a,fillDate:o}=n;const{mask:i,patch:s,time:l}=n,u=a==="auto"||!a;if(zi(t)?(a="number",r=new Date(+t)):sa(t)?(a="string",r=t?this.parse(t,i||"iso"):null):Pn(t)?(a="object",r=this.getDateFromParts(t)):(a="date",r=da(t)?new Date(t.getTime()):null),r&&s){o=o==null?new Date:this.normalizeDate(o);const c=we(we({},this.getDateParts(o)),qH(this.getDateParts(r),oZ[s]));r=this.getDateFromParts(c)}return u&&(n.type=a),r&&!isNaN(r.getTime())?(l&&(r=this.adjustTimeForDate(r,{timeAdjust:l})),r):null}denormalizeDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.format(t,r||"iso"):"";default:return t?new Date(t):null}}hourIsValid(t,n,r){if(!n)return!0;if(hn(n))return n.includes(t);if(Pn(n)){const a=n.min||0,o=n.max||24;return a<=t&&o>=t}return n(t,r)}getHourOptions(t,n){return dZ.filter(r=>this.hourIsValid(r.value,t,n))}getMinuteOptions(t){const n=[];t=t>0?t:1;for(let r=0;r<=59;r+=t)n.push({value:r,label:rt(r,2)});return n}nearestOptionValue(t,n){if(t==null)return t;const r=n.reduce((a,o)=>{if(o.disabled)return a;if(isNaN(a))return o.value;const i=Math.abs(a-t);return Math.abs(o.value-t)r&&(r instanceof Ar?r:new Ar(r,n))).filter(r=>r)}getDateParts(t,n=this.timezone){if(!t)return null;let r=t;if(n){const m=new Date(t.toLocaleString("en-US",{timeZone:n}));m.setMilliseconds(t.getMilliseconds());const w=m.getTime()-t.getTime();r=new Date(t.getTime()+w)}const a=r.getMilliseconds(),o=r.getSeconds(),i=r.getMinutes(),s=r.getHours(),l=r.getMonth()+1,u=r.getFullYear(),c=this.getMonthComps(l,u),d=r.getDate(),h=c.days-d+1,f=r.getDay()+1,g=Math.floor((d-1)/7+1),y=Math.floor((c.days-d)/7+1),v=Math.ceil((d+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),p=c.weeks-v+1,b={milliseconds:a,seconds:o,minutes:i,hours:s,day:d,dayFromEnd:h,weekday:f,weekdayOrdinal:g,weekdayOrdinalFromEnd:y,week:v,weekFromEnd:p,month:l,year:u,date:t,isValid:!0};return b.timezoneOffset=this.getTimezoneOffset(b),b}getDateFromParts(t){if(!t)return null;const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:o=n.getDate(),hours:i=0,minutes:s=0,seconds:l=0,milliseconds:u=0}=t;if(this.timezone){const c=`${rt(r,4)}-${rt(a,2)}-${rt(o,2)}T${rt(i,2)}:${rt(s,2)}:${rt(l,2)}.${rt(u,3)}`;return q1(c,{timeZone:this.timezone})}return new Date(r,a-1,o,i,s,l,u)}getTimezoneOffset(t){const{year:n,month:r,day:a,hours:o=0,minutes:i=0,seconds:s=0,milliseconds:l=0}=t;let u;const c=new Date(Date.UTC(n,r-1,a,o,i,s,l));if(this.timezone){const d=`${rt(n,4)}-${rt(r,2)}-${rt(a,2)}T${rt(o,2)}:${rt(i,2)}:${rt(s,2)}.${rt(l,3)}`;u=q1(d,{timeZone:this.timezone})}else u=new Date(n,r-1,a,o,i,s,l);return(u-c)/6e4}toPage(t,n){return zi(t)?Mr(n,t):sa(t)?this.getDateParts(this.normalizeDate(t)):da(t)?this.getDateParts(t):Pn(t)?t:null}getMonthDates(t=2e3){const n=[];for(let r=0;r<12;r++)n.push(new Date(t,r,15));return n}getMonthNames(t){const n=new Intl.DateTimeFormat(this.id,{month:t,timezome:"UTC"});return this.getMonthDates().map(r=>n.format(r))}getWeekdayDates(t=this.firstDayOfWeek){const n=[],r=5+t-1;for(let a=0;an.format(r))}getMonthComps(t,n){const r=`${t}-${n}`;let a=this.monthData[r];if(!a){const o=n%4===0&&n%100!==0||n%400===0,i=new Date(n,t-1,1),s=i.getDay()+1,l=t===2&&o?29:cZ[t-1],u=this.firstDayOfWeek-1,c=rZ(i,{weekStartsOn:u}),d=[],h=[];for(let f=0;f(ae,oe,Q,ye)=>this.normalizeDate({year:M,month:N,day:ee,hours:ae,minutes:oe,seconds:Q,milliseconds:ye});for(let M=1;M<=t;M++){for(let N=1,ee=i;N<=Qt;N++,ee+=ee===Qt?1-Qt:1){d&&ee===s&&(y=1,v=n.days,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1),m=1,w=n.weeks,D=n.month,I=n.year,d=!1,h=!0);const ae=A(I,D,y),oe={start:ae(0,0,0),end:ae(23,59,59,999)},Q=oe.start,ye=`${rt(I,4)}-${rt(D,2)}-${rt(y,2)}`,_e=N,Re=Qt-N,Ue=u[M-1],ze=l[M-1],fe=y===T&&D===x&&I===k,$e=h&&y===1,Ae=h&&y===n.days,je=M===1,U=M===t,R=N===1,K=N===Qt;o.push({id:ye,label:y.toString(),ariaLabel:g.format(new Date(I,D-1,y)),day:y,dayFromEnd:v,weekday:ee,weekdayPosition:_e,weekdayPositionFromEnd:Re,weekdayOrdinal:p,weekdayOrdinalFromEnd:b,week:m,weekFromEnd:w,weeknumber:Ue,isoWeeknumber:ze,month:D,year:I,dateFromTime:ae,date:Q,range:oe,isToday:fe,isFirstDay:$e,isLastDay:Ae,inMonth:h,inPrevMonth:d,inNextMonth:f,onTop:je,onBottom:U,onLeft:R,onRight:K,classes:[`id-${ye}`,`day-${y}`,`day-from-end-${v}`,`weekday-${ee}`,`weekday-position-${_e}`,`weekday-ordinal-${p}`,`weekday-ordinal-from-end-${b}`,`week-${m}`,`week-from-end-${w}`,{"is-today":fe,"is-first-day":$e,"is-last-day":Ae,"in-month":h,"in-prev-month":d,"in-next-month":f,"on-top":je,"on-bottom":U,"on-left":R,"on-right":K}]}),h&&Ae?(h=!1,f=!0,y=1,v=a.days,p=1,b=Math.floor((a.days-y)/Qt+1),m=1,w=a.weeks,D=a.month,I=a.year):(y++,v--,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1))}m++,w--}return o}}class T5{constructor({key:t,hashcode:n,highlight:r,content:a,dot:o,bar:i,popover:s,dates:l,excludeDates:u,excludeMode:c,customData:d,order:h,pinPage:f},g,y){this.key=UD(t)?Kl():t,this.hashcode=n,this.customData=d,this.order=h||0,this.dateOpts={order:h,locale:y},this.pinPage=f,r&&(this.highlight=g.normalizeHighlight(r)),a&&(this.content=g.normalizeContent(a)),o&&(this.dot=g.normalizeDot(o)),i&&(this.bar=g.normalizeBar(i)),s&&(this.popover=s),this.dates=y.normalizeDates(l,this.dateOpts),this.hasDates=!!Mn(this.dates),this.excludeDates=y.normalizeDates(u,this.dateOpts),this.hasExcludeDates=!!Mn(this.excludeDates),this.excludeMode=c||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new Ar({},this.dateOpts)),this.hasDates=!0),this.isComplex=kU(this.dates,v=>v.isComplex)}intersectsDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(n=>n.intersectsDate(t))||!1)}includesDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(n=>n.includesDate(t))||!1)}excludesDate(t){return t=t instanceof Ar?t:new Ar(t,this.dateOpts),this.hasExcludeDates&&this.excludeDates.find(n=>this.excludeMode==="intersects"&&n.intersectsDate(t)||this.excludeMode==="includes"&&n.includesDate(t))}intersectsDay(t){return!this.excludesDay(t)&&(this.dates.find(n=>n.intersectsDay(t))||!1)}excludesDay(t){return this.hasExcludeDates&&this.excludeDates.find(n=>n.intersectsDay(t))}}const fZ=300,pZ=60,mZ=80;var vZ={maxSwipeTime:fZ,minHorizontalSwipeDistance:pZ,maxVerticalSwipeDistance:mZ};const gZ="MMMM YYYY",yZ="W",bZ="MMM",wZ=["L","YYYY-MM-DD","YYYY/MM/DD"],kZ=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],CZ=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],EZ=["h:mm A"],xZ=["HH:mm"],SZ="WWW, MMM D, YYYY",_Z=["L","YYYY-MM-DD","YYYY/MM/DD"],TZ="iso",DZ="YYYY-MM-DDTHH:mm:ss.SSSZ";var MZ={title:gZ,weekdays:yZ,navMonths:bZ,input:wZ,inputDateTime:kZ,inputDateTime24hr:CZ,inputTime:EZ,inputTime24hr:xZ,dayPopover:SZ,data:_Z,model:TZ,iso:DZ};const AZ="640px",OZ="768px",PZ="1024px",BZ="1280px";var IZ={sm:AZ,md:OZ,lg:PZ,xl:BZ};const NZ={componentPrefix:"v",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:vZ,masks:MZ,screens:IZ,locales:Nn,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}},T0=zr(NZ),LZ=B(()=>nR(T0.locales,e=>(e.masks=Jh(e.masks,T0.masks),e))),ha=e=>window&&ef(window.__vcalendar__,e)?hs(window.__vcalendar__,e):hs(T0,e),RZ={props:{color:{type:String,default:()=>ha("color")},isDark:{type:Boolean,default:()=>ha("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,minDateExact:null,maxDateExact:null,disabledDates:null,availableDates:null,theme:null},computed:{$theme(){return this.theme instanceof Z1?this.theme:new Z1({color:this.color,isDark:this.isDark})},$locale(){if(this.locale instanceof ql)return this.locale;const e=Pn(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new ql(e,{locales:LZ.value,timezone:this.timezone})},disabledDates_(){const e=this.normalizeDates(this.disabledDates),{minDate:t,minDateExact:n,maxDate:r,maxDateExact:a}=this;if(n||t){const o=n?this.normalizeDate(n):this.normalizeDate(t,{time:"00:00:00"});e.push({start:null,end:new Date(o.getTime()-1e3)})}if(a||r){const o=a?this.normalizeDate(a):this.normalizeDate(r,{time:"23:59:59"});e.push({start:new Date(o.getTime()+1e3),end:null})}return e},availableDates_(){return this.normalizeDates(this.availableDates)},disabledAttribute(){return new T5({key:"disabled",dates:this.disabledDates_,excludeDates:this.availableDates_,excludeMode:"includes",order:100},this.$theme,this.$locale)}},methods:{formatDate(e,t){return this.$locale?this.$locale.format(e,t):""},parseDate(e,t){if(!this.$locale)return null;const n=this.$locale.parse(e,t);return da(n)?n:null},normalizeDate(e,t){return this.$locale?this.$locale.normalizeDate(e,t):e},normalizeDates(e){return this.$locale.normalizeDates(e,{isFullDay:!0})},pageForDate(e){return this.$locale.getDateParts(this.normalizeDate(e))},pageForThisMonth(){return this.pageForDate(new Date)}}},$Z={methods:{safeSlot(e,t,n=null){return Ir(this.$slots[e])?this.$slots[e](t):n}}},Qu=TU,D5=RZ,tf=$Z,HZ={name:"PopoverRow",mixins:[Qu],props:{attribute:Object},computed:{indicator(){const{highlight:e,dot:t,bar:n,popover:r}=this.attribute;if(r&&r.hideIndicator)return null;if(e){const{color:a,isDark:o}=e.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"10px",height:"5px",borderRadius:"3px"})}}if(t){const{color:a,isDark:o}=t.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"5px",height:"5px",borderRadius:"50%"})}}if(n){const{color:a,isDark:o}=n.start;return{style:et(we({},this.theme.bgAccentHigh({color:a,isDark:!o})),{width:"10px",height:"3px"})}}return null}}},FZ={class:"vc-day-popover-row"},zZ={key:0,class:"vc-day-popover-row-indicator"},jZ={class:"vc-day-popover-row-content"};function UZ(e,t,n,r,a,o){return C(),S("div",FZ,[o.indicator?(C(),S("div",zZ,[O("span",{style:Et(o.indicator.style),class:q(o.indicator.class)},null,6)])):$("",!0),O("div",jZ,[z(e.$slots,"default",{},()=>[J(V(n.attribute.popover?n.attribute.popover.label:"No content provided"),1)])])])}var ZZ=fi(HZ,[["render",UZ]]);const Gs="26px",YZ="0 0 32 32",VZ={"left-arrow":{viewBox:"0 -1 16 34",path:"M11.196 10c0 0.143-0.071 0.304-0.179 0.411l-7.018 7.018 7.018 7.018c0.107 0.107 0.179 0.268 0.179 0.411s-0.071 0.304-0.179 0.411l-0.893 0.893c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-8.321-8.321c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l8.321-8.321c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l0.893 0.893c0.107 0.107 0.179 0.25 0.179 0.411z"},"right-arrow":{viewBox:"-5 -1 16 34",path:"M10.625 17.429c0 0.143-0.071 0.304-0.179 0.411l-8.321 8.321c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-0.893-0.893c-0.107-0.107-0.179-0.25-0.179-0.411 0-0.143 0.071-0.304 0.179-0.411l7.018-7.018-7.018-7.018c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l0.893-0.893c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l8.321 8.321c0.107 0.107 0.179 0.268 0.179 0.411z"}},KZ={props:["name"],data(){return{width:Gs,height:Gs,viewBox:YZ,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const e=VZ[this.name];e&&(this.width=e.width||Gs,this.height=e.height||Gs,this.viewBox=e.viewBox,this.path=e.path)}}},GZ=["width","height","viewBox"],WZ=["d"];function qZ(e,t,n,r,a,o){return C(),S("svg",{class:"vc-svg-icon",width:a.width,height:a.height,viewBox:a.viewBox},[O("path",{d:a.path},null,8,WZ)],8,GZ)}var M5=fi(KZ,[["render",qZ]]);const Ic=12,QZ={name:"CalendarNav",emits:["input"],components:{SvgIcon:M5},mixins:[Qu],props:{value:{type:Object,default:()=>({month:0,year:0})},validator:{type:Function,default:()=>()=>!0}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:x5}},computed:{month(){return this.value&&this.value.month||0},year(){return this.value&&this.value.year||0},title(){return this.monthMode?this.yearIndex:`${this.firstYear} - ${this.lastYear}`},monthItems(){return this.getMonthItems(this.yearIndex)},yearItems(){return this.getYearItems(this.yearGroupIndex)},prevItemsEnabled(){return this.monthMode?this.prevMonthItemsEnabled:this.prevYearItemsEnabled},nextItemsEnabled(){return this.monthMode?this.nextMonthItemsEnabled:this.nextYearItemsEnabled},prevMonthItemsEnabled(){return this.getMonthItems(this.yearIndex-1).some(e=>!e.isDisabled)},nextMonthItemsEnabled(){return this.getMonthItems(this.yearIndex+1).some(e=>!e.isDisabled)},prevYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex-1).some(e=>!e.isDisabled)},nextYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex+1).some(e=>!e.isDisabled)},activeItems(){return this.monthMode?this.monthItems:this.yearItems},firstYear(){return k5(this.yearItems.map(e=>e.year))},lastYear(){return fs(this.yearItems.map(e=>e.year))}},watch:{year(){this.yearIndex=this.year},yearIndex(e){this.yearGroupIndex=this.getYearGroupIndex(e)},value(){this.focusFirstItem()}},created(){this.yearIndex=this.year},mounted(){this.focusFirstItem()},methods:{focusFirstItem(){this.$nextTick(()=>{const e=this.$refs.navContainer.querySelector(".vc-nav-item:not(.is-disabled)");e&&e.focus()})},getItemClasses({isActive:e,isCurrent:t,isDisabled:n}){const r=["vc-nav-item"];return e?r.push("is-active"):t&&r.push("is-current"),n&&r.push("is-disabled"),r},getYearGroupIndex(e){return Math.floor(e/Ic)},getMonthItems(e){const{month:t,year:n}=this.pageForDate(new Date);return this.locale.getMonthDates().map((r,a)=>{const o=a+1;return{month:o,year:e,id:`${e}.${rt(o,2)}`,label:this.locale.format(r,this.masks.navMonths),ariaLabel:this.locale.format(r,"MMMM YYYY"),isActive:o===this.month&&e===this.year,isCurrent:o===t&&e===n,isDisabled:!this.validator({month:o,year:e}),click:()=>this.monthClick(o,e)}})},getYearItems(e){const{_:t,year:n}=this.pageForDate(new Date),r=e*Ic,a=r+Ic,o=[];for(let i=r;ithis.yearClick(i)})}return o},monthClick(e,t){this.validator({month:e,year:t})&&this.$emit("input",{month:e,year:t})},yearClick(e){this.yearIndex=e,this.monthMode=!0,this.focusFirstItem()},toggleMode(){this.monthMode=!this.monthMode},movePrev(){this.prevItemsEnabled&&(this.monthMode&&this.movePrevYear(),this.movePrevYearGroup())},moveNext(){this.nextItemsEnabled&&(this.monthMode&&this.moveNextYear(),this.moveNextYearGroup())},movePrevYear(){this.yearIndex--},moveNextYear(){this.yearIndex++},movePrevYearGroup(){this.yearGroupIndex--},moveNextYearGroup(){this.yearGroupIndex++}}},XZ={class:"vc-nav-container",ref:"navContainer"},JZ={class:"vc-nav-header"},eY=["tabindex"],tY=["tabindex"],nY={class:"vc-nav-items"},rY=["data-id","aria-label","tabindex","onClick","onKeydown"];function aY(e,t,n,r,a,o){const i=Gn("svg-icon");return C(),S("div",XZ,[O("div",JZ,[O("span",{role:"button",class:q(["vc-nav-arrow is-left",{"is-disabled":!o.prevItemsEnabled}]),tabindex:o.prevItemsEnabled?0:void 0,onClick:t[0]||(t[0]=(...s)=>o.movePrev&&o.movePrev(...s)),onKeydown:t[1]||(t[1]=s=>a.onSpaceOrEnter(s,o.movePrev))},[z(e.$slots,"nav-left-button",{},()=>[G(i,{name:"left-arrow",width:"20px",height:"24px"})])],42,eY),O("span",{role:"button",class:"vc-nav-title vc-grid-focus",style:{whiteSpace:"nowrap"},tabindex:"0",onClick:t[2]||(t[2]=(...s)=>o.toggleMode&&o.toggleMode(...s)),onKeydown:t[3]||(t[3]=s=>a.onSpaceOrEnter(s,o.toggleMode))},V(o.title),33),O("span",{role:"button",class:q(["vc-nav-arrow is-right",{"is-disabled":!o.nextItemsEnabled}]),tabindex:o.nextItemsEnabled?0:void 0,onClick:t[4]||(t[4]=(...s)=>o.moveNext&&o.moveNext(...s)),onKeydown:t[5]||(t[5]=s=>a.onSpaceOrEnter(s,o.moveNext))},[z(e.$slots,"nav-right-button",{},()=>[G(i,{name:"right-arrow",width:"20px",height:"24px"})])],42,tY)]),O("div",nY,[(C(!0),S(Me,null,ot(o.activeItems,s=>(C(),S("span",{key:s.label,role:"button","data-id":s.id,"aria-label":s.ariaLabel,class:q(o.getItemClasses(s)),tabindex:s.isDisabled?void 0:0,onClick:s.click,onKeydown:l=>a.onSpaceOrEnter(l,s.click)},V(s.label),43,rY))),128))])],512)}var oY=fi(QZ,[["render",aY]]);function D0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function M0(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function A5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function iY(e){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:e}))}function Ql(e){const{visibility:t}=e,n=t==="click",r=t==="hover",a=t==="hover-focus",o=t==="focus";e.autoHide=!n;let i=!1,s=!1;const{isRenderFn:l}=e,u={click:l?"onClick":"click",mousemove:l?"onMousemove":"mousemove",mouseleave:l?"onMouseleave":"mouseleave",focusin:l?"onFocusin":"focusin",focusout:l?"onFocusout":"focusout"};return{[u.click](c){n&&(e.ref=c.target,A5(e),c.stopPropagation())},[u.mousemove](c){e.ref=c.currentTarget,i||(i=!0,(r||a)&&D0(e))},[u.mouseleave](c){e.ref=c.target,i&&(i=!1,(r||a&&!s)&&M0(e))},[u.focusin](c){e.ref=c.currentTarget,s||(s=!0,(o||a)&&D0(e))},[u.focusout](c){e.ref=c.currentTarget,s&&!Zi(e.ref,c.relatedTarget)&&(s=!1,(o||a&&!i)&&M0(e))}}}const sY={name:"CalendarDay",emits:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown"],mixins:[Qu,tf],inheritAttrs:!1,render(){const e=()=>this.hasBackgrounds&&De("div",{class:"vc-highlights vc-day-layer"},this.backgrounds.map(({key:a,wrapperClass:o,class:i,style:s})=>De("div",{key:a,class:o},[De("div",{class:i,style:s})]))),t=()=>this.safeSlot("day-content",{day:this.day,attributes:this.day.attributes,attributesMap:this.day.attributesMap,dayProps:this.dayContentProps,dayEvents:this.dayContentEvents})||De("span",et(we(et(we({},this.dayContentProps),{class:this.dayContentClass,style:this.dayContentStyle}),this.dayContentEvents),{ref:"content"}),[this.day.label]),n=()=>this.hasDots&&De("div",{class:"vc-day-layer vc-day-box-center-bottom"},[De("div",{class:"vc-dots"},this.dots.map(({key:a,class:o,style:i})=>De("span",{key:a,class:o,style:i})))]),r=()=>this.hasBars&&De("div",{class:"vc-day-layer vc-day-box-center-bottom"},[De("div",{class:"vc-bars"},this.bars.map(({key:a,class:o,style:i})=>De("span",{key:a,class:o,style:i})))]);return De("div",{class:["vc-day",...this.day.classes,{"vc-day-box-center-center":!this.$slots["day-content"]},{"is-not-in-month":!this.inMonth}]},[e(),t(),n(),r()])},inject:["sharedState"],props:{day:{type:Object,required:!0}},data(){return{glyphs:{},dayContentEvents:{}}},computed:{label(){return this.day.label},startTime(){return this.day.range.start.getTime()},endTime(){return this.day.range.end.getTime()},inMonth(){return this.day.inMonth},isDisabled(){return this.day.isDisabled},backgrounds(){return this.glyphs.backgrounds},hasBackgrounds(){return!!Mn(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!Mn(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!Mn(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!Mn(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},hs(fs(this.content),"class")||""]},dayContentStyle(){return hs(fs(this.content),"style")},dayContentProps(){let e;return this.day.isFocusable?e="0":this.day.inMonth&&(e="-1"),{tabindex:e,"aria-label":this.day.ariaLabel,"aria-disabled":this.day.isDisabled?"true":"false",role:"button"}},dayEvent(){return et(we({},this.day),{el:this.$refs.content,popovers:this.popovers})}},watch:{theme(){this.refresh()},popovers(){this.refreshPopovers()},"day.shouldRefresh"(){this.refresh()}},mounted(){this.refreshPopovers(),this.refresh()},methods:{getDayEvent(e){return et(we({},this.dayEvent),{event:e})},click(e){this.$emit("dayclick",this.getDayEvent(e))},mouseenter(e){this.$emit("daymouseenter",this.getDayEvent(e))},mouseleave(e){this.$emit("daymouseleave",this.getDayEvent(e))},focusin(e){this.$emit("dayfocusin",this.getDayEvent(e))},focusout(e){this.$emit("dayfocusout",this.getDayEvent(e))},keydown(e){this.$emit("daykeydown",this.getDayEvent(e))},refresh(){if(!this.day.shouldRefresh)return;this.day.shouldRefresh=!1;const e={backgrounds:[],dots:[],bars:[],popovers:[],content:[]};this.day.attributes=Object.values(this.day.attributesMap||{}).sort((t,n)=>t.order-n.order),this.day.attributes.forEach(t=>{const{targetDate:n}=t,{isDate:r,isComplex:a,startTime:o,endTime:i}=n,s=this.startTime<=o,l=this.endTime>=i,u={isDate:r,isComplex:a,onStart:s,onEnd:l,onStartAndEnd:s&&l,onStartOrEnd:s||l};this.processHighlight(t,u,e),this.processNonHighlight(t,"content",u,e.content),this.processNonHighlight(t,"dot",u,e.dots),this.processNonHighlight(t,"bar",u,e.bars),this.processPopover(t,e)}),this.glyphs=e},processHighlight({key:e,highlight:t},{isDate:n,isComplex:r,onStart:a,onEnd:o,onStartAndEnd:i},{backgrounds:s,content:l}){if(!t)return;const{base:u,start:c,end:d}=t;n||r?(s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):i?(s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):a?(s.push({key:`${e}-base`,wrapperClass:"vc-day-layer vc-day-box-right-center",class:["vc-highlight vc-highlight-base-start",u.class],style:u.style}),s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",c.class],style:c.style}),l.push({key:`${e}-content`,class:c.contentClass,style:c.contentStyle})):o?(s.push({key:`${e}-base`,wrapperClass:"vc-day-layer vc-day-box-left-center",class:["vc-highlight vc-highlight-base-end",u.class],style:u.style}),s.push({key:e,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",d.class],style:d.style}),l.push({key:`${e}-content`,class:d.contentClass,style:d.contentStyle})):(s.push({key:`${e}-middle`,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight vc-highlight-base-middle",u.class],style:u.style}),l.push({key:`${e}-content`,class:u.contentClass,style:u.contentStyle}))},processNonHighlight(e,t,{isDate:n,onStart:r,onEnd:a},o){if(!e[t])return;const{key:i}=e,s=`vc-${t}`,{base:l,start:u,end:c}=e[t];n||r?o.push({key:i,class:[s,u.class],style:u.style}):a?o.push({key:i,class:[s,c.class],style:c.style}):o.push({key:i,class:[s,l.class],style:l.style})},processPopover(e,{popovers:t}){const{key:n,customData:r,popover:a}=e;if(!a)return;const o=ji({key:n,customData:r,attribute:e},we({},a),{visibility:a.label?"hover":"click",placement:"bottom",isInteractive:!a.label});t.splice(0,0,o)},refreshPopovers(){let e={};Mn(this.popovers)&&(e=Ql(ji({id:this.dayPopoverId,data:this.day,isRenderFn:!0},...this.popovers))),this.dayContentEvents=CU({onClick:this.click,onMouseenter:this.mouseenter,onMouseleave:this.mouseleave,onFocusin:this.focusin,onFocusout:this.focusout,onKeydown:this.keydown},e),iY({id:this.dayPopoverId,data:this.day})}}},lY={name:"CalendarPane",emits:["update:page","weeknumberclick"],mixins:[Qu,tf],inheritAttrs:!1,render(){const e=this.safeSlot("header",this.page)||De("div",{class:`vc-header align-${this.titlePosition}`},[De("div",we({class:"vc-title"},this.navPopoverEvents),[this.safeSlot("header-title",this.page,this.page.title)])]),t=this.weekdayLabels.map((l,u)=>De("div",{key:u+1,class:"vc-weekday"},[l])),n=this.showWeeknumbers_.startsWith("left"),r=this.showWeeknumbers_.startsWith("right");n?t.unshift(De("div",{class:"vc-weekday"})):r&&t.push(De("div",{class:"vc-weekday"}));const a=l=>De("div",{class:["vc-weeknumber"]},[De("span",{class:["vc-weeknumber-content",`is-${this.showWeeknumbers_}`],onClick:u=>{this.$emit("weeknumberclick",{weeknumber:l,days:this.page.days.filter(c=>c[this.weeknumberKey]===l),event:u})}},[l])]),o=[],{daysInWeek:i}=this.locale;this.page.days.forEach((l,u)=>{const c=u%i;(n&&c===0||r&&c===i)&&o.push(a(l[this.weeknumberKey])),o.push(De(sY,et(we({},this.$attrs),{day:l}),this.$slots)),r&&c===i-1&&o.push(a(l[this.weeknumberKey]))});const s=De("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":n,"is-right":r}},[t,o]);return De("div",{class:["vc-pane",`row-from-end-${this.rowFromEnd}`,`column-from-end-${this.columnFromEnd}`],ref:"pane"},[e,s])},props:{page:Object,position:Number,row:Number,rowFromEnd:Number,column:Number,columnFromEnd:Number,titlePosition:String,navVisibility:{type:String,default:()=>ha("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String]},computed:{weeknumberKey(){return this.showWeeknumbers?"weeknumber":"isoWeeknumber"},showWeeknumbers_(){const e=this.showWeeknumbers||this.showIsoWeeknumbers;return e==null?"":mD(e)?e?"left":"":e.startsWith("right")?this.columnFromEnd>1?"right":e:this.column>1?"left":e},navPlacement(){switch(this.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}},navPopoverEvents(){const{sharedState:e,navVisibility:t,navPlacement:n,page:r,position:a}=this;return Ql({id:e.navPopoverId,visibility:t,placement:n,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:r,position:a},isInteractive:!0,isRenderFn:!0})},weekdayLabels(){return this.locale.getWeekdayDates().map(e=>this.format(e,this.masks.weekdays))}}};class uY{constructor(t,n,r){this.theme=t,this.locale=n,this.map={},this.refresh(r,!0)}destroy(){this.theme=null,this.locale=null,this.map={},this.list=[],this.pinAttr=null}refresh(t,n){const r={},a=[];let o=null;const i=[],s=n?new Set:new Set(Object.keys(this.map));return Mn(t)&&t.forEach((l,u)=>{if(!l||!l.dates)return;const c=l.key?l.key.toString():u.toString(),d=l.order||0,h=xU(JSON.stringify(l));let f=this.map[c];!n&&f&&f.hashcode===h?s.delete(c):(f=new T5(we({key:c,order:d,hashcode:h},l),this.theme,this.locale),i.push(f)),f&&f.pinPage&&(o=f),r[c]=f,a.push(f)}),this.map=r,this.list=a,this.pinAttr=o,{adds:i,deletes:Array.from(s)}}}const cY=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Ir(t))return null;let o=0,i=0,s=null,l=!1;function u(d){const h=d.changedTouches[0];o=h.screenX,i=h.screenY,s=new Date().getTime(),l=!0}function c(d){if(!l)return;l=!1;const h=d.changedTouches[0],f=h.screenX-o,g=h.screenY-i;if(new Date().getTime()-s=r&&Math.abs(g)<=a){const y={toLeft:!1,toRight:!1};f<0?y.toLeft=!0:y.toRight=!0,t(y)}}return tn(e,"touchstart",u,{passive:!0}),tn(e,"touchend",c,{passive:!0}),()=>{nn(e,"touchstart",u),nn(e,"touchend",c)}},dY={name:"Calendar",emits:["dayfocusin","dayfocusout","transition-start","transition-end","update:from-page","update:to-page"],render(){const e=this.pages.map((a,o)=>{const i=o+1,s=Math.ceil((o+1)/this.columns),l=this.rows-s+1,u=i%this.columns||this.columns,c=this.columns-u+1;return De(lY,et(we({},this.$attrs),{key:a.key,attributes:this.store,page:a,position:i,row:s,rowFromEnd:l,column:u,columnFromEnd:c,titlePosition:this.titlePosition,canMove:this.canMove,"onUpdate:page":d=>this.move(d,{position:o+1}),onDayfocusin:d=>{this.lastFocusedDay=d,this.$emit("dayfocusin",d)},onDayfocusout:d=>{this.lastFocusedDay=null,this.$emit("dayfocusout",d)}}),this.$slots)}),t=a=>{const o=()=>this.move(a?-this.step_:this.step_),i=l=>x5(l,o),s=a?!this.canMovePrev:!this.canMoveNext;return De("div",{class:["vc-arrow",`is-${a?"left":"right"}`,{"is-disabled":s}],role:"button",onClick:o,onKeydown:i},[(a?this.safeSlot("header-left-button",{click:o}):this.safeSlot("header-right-button",{click:o}))||De(M5,{name:a?"left-arrow":"right-arrow"})])},n=()=>De(_0,{id:this.sharedState.navPopoverId,contentClass:"vc-nav-popover-container",ref:"navPopover"},{default:({data:a})=>{const{position:o,page:i}=a;return De(oY,{value:i,position:o,validator:s=>this.canMove(s,{position:o}),onInput:s=>this.move(s)},we({},this.$slots))}}),r=()=>De(_0,{id:this.sharedState.dayPopoverId,contentClass:"vc-day-popover-container"},{default:({data:a,updateLayout:o,hide:i})=>{const s=Object.values(a.attributes).filter(d=>d.popover),l=this.$locale.masks,u=this.formatDate,c=u(a.date,l.dayPopover);return this.safeSlot("day-popover",{day:a,attributes:s,masks:l,format:u,dayTitle:c,updateLayout:o,hide:i},De("div",[l.dayPopover&&De("div",{class:["vc-day-popover-header"]},[c]),s.map(d=>De(ZZ,{key:d.key,attribute:d}))]))}});return De("div",{"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year",class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-expanded":this.isExpanded,"vc-is-dark":this.$theme.isDark}],onKeydown:this.handleKeydown,onMouseup:a=>a.preventDefault(),ref:"container"},[n(),De("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[De(S5,{name:this.transitionName,"on-before-enter":()=>{this.inTransition=!0},"on-after-enter":()=>{this.inTransition=!1}},{default:()=>De("div",et(we({},this.$attrs),{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},key:this.firstPage?this.firstPage.key:""}),e)}),De("div",{class:[`vc-arrows-container title-${this.titlePosition}`]},[t(!0),t(!1)]),this.$slots.footer&&this.$slots.footer()]),r()])},mixins:[D5,tf],provide(){return{sharedState:this.sharedState}},props:{rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>ha("titlePosition")},isExpanded:Boolean,fromDate:Date,toDate:Date,fromPage:Object,toPage:Object,minPage:Object,maxPage:Object,transition:String,attributes:[Object,Array],trimWeeks:Boolean,disablePageSwipe:Boolean},data(){return{pages:[],store:null,lastFocusedDay:null,focusableDay:new Date().getDate(),transitionName:"",inTransition:!1,sharedState:{navPopoverId:Kl(),dayPopoverId:Kl(),theme:{},masks:{},locale:{}}}},computed:{firstPage(){return k5(this.pages)},lastPage(){return fs(this.pages)},minPage_(){return this.minPage||this.pageForDate(this.minDate)},maxPage_(){return this.maxPage||this.pageForDate(this.maxDate)},count(){return this.rows*this.columns},step_(){return this.step||this.count},canMovePrev(){return this.canMove(-this.step_)},canMoveNext(){return this.canMove(this.step_)}},watch:{$locale(){this.refreshLocale(),this.refreshPages({page:this.firstPage,ignoreCache:!0}),this.initStore()},$theme(){this.refreshTheme(),this.initStore()},fromDate(){this.refreshPages()},fromPage(e){const t=this.pages&&this.pages[0];Mc(e,t)||this.refreshPages()},toPage(e){const t=this.pages&&this.pages[this.pages.length-1];Mc(e,t)||this.refreshPages()},count(){this.refreshPages()},attributes:{handler(e){const{adds:t,deletes:n}=this.store.refresh(e);this.refreshAttrs(this.pages,t,n)},deep:!0},pages(e){this.refreshAttrs(e,this.store.list,null,!0)},disabledAttribute(){this.refreshDisabledDays()},lastFocusedDay(e){e&&(this.focusableDay=e.day,this.refreshFocusableDays())},inTransition(e){e?this.$emit("transition-start"):(this.$emit("transition-end"),this.transitionPromise&&(this.transitionPromise.resolve(!0),this.transitionPromise=null))}},created(){this.refreshLocale(),this.refreshTheme(),this.initStore(),this.refreshPages()},mounted(){this.disablePageSwipe||(this.removeHandlers=cY(this.$refs.container,({toLeft:e,toRight:t})=>{e?this.moveNext():t&&this.movePrev()},ha("touch")))},beforeUnmount(){this.pages=[],this.store.destroy(),this.store=null,this.sharedState=null,this.removeHandlers&&this.removeHandlers()},methods:{refreshLocale(){this.sharedState.locale=this.$locale,this.sharedState.masks=this.$locale.masks},refreshTheme(){this.sharedState.theme=this.$theme},canMove(e,t={}){const n=this.firstPage&&this.$locale.toPage(e,this.firstPage);if(!n)return!1;let{position:r}=t;if(zi(e)&&(r=1),!r)if(Ti(n,this.firstPage))r=-1;else if(Ui(n,this.lastPage))r=1;else return!0;return Object.assign(t,this.getTargetPageRange(n,{position:r,force:!0})),EU(t.fromPage,t.toPage).some(a=>E5(a,this.minPage_,this.maxPage_))},movePrev(e){return this.move(-this.step_,e)},moveNext(e){return this.move(this.step_,e)},move(e,t={}){const n=this.canMove(e,t);return!t.force&&!n?Promise.reject(new Error(`Move target is disabled: ${JSON.stringify(t)}`)):(this.$refs.navPopover.hide({hideDelay:0}),t.fromPage&&!Mc(t.fromPage,this.firstPage)?this.refreshPages(et(we({},t),{page:t.fromPage,position:1,force:!0})):Promise.resolve(!0))},focusDate(e,t={}){return this.move(e,t).then(()=>{const n=this.$el.querySelector(`.id-${this.$locale.getDayId(e)}.in-month .vc-focusable`);return n?(n.focus(),Promise.resolve(!0)):Promise.resolve(!1)})},showPageRange(e,t){let n,r;if(da(e))n=this.pageForDate(e);else if(Pn(e)){const{month:i,year:s}=e,{from:l,to:u}=e;zi(i)&&zi(s)?n=e:(l||u)&&(n=da(l)?this.pageForDate(l):l,r=da(u)?this.pageForDate(u):u)}else return Promise.reject(new Error("Invalid page range provided."));const a=this.lastPage;let o=n;return Ui(r,a)&&(o=Mr(r,-(this.pages.length-1))),Ti(o,n)&&(o=n),this.refreshPages(et(we({},t),{page:o}))},getTargetPageRange(e,{position:t,force:n}={}){let r=null,a=null;if(yn(e)){let o=0;t=+t,isNaN(t)||(o=t>0?1-t:-(this.count+t)),r=Mr(e,o)}else r=this.getDefaultInitialPage();return a=Mr(r,this.count-1),n||(Ti(r,this.minPage_)?r=this.minPage_:Ui(a,this.maxPage_)&&(r=Mr(this.maxPage_,1-this.count)),a=Mr(r,this.count-1)),{fromPage:r,toPage:a}},getDefaultInitialPage(){let e=this.fromPage||this.pageForDate(this.fromDate);if(!yn(e)){const t=this.toPage||this.pageForDate(this.toPage);yn(t)&&(e=Mr(t,1-this.count))}return yn(e)||(e=this.getPageForAttributes()),yn(e)||(e=this.pageForThisMonth()),e},refreshPages({page:e,position:t=1,force:n,transition:r,ignoreCache:a}={}){return new Promise((o,i)=>{const{fromPage:s,toPage:l}=this.getTargetPageRange(e,{position:t,force:n}),u=[];for(let c=0;c{t.isDisabled=!!this.disabledAttribute&&this.disabledAttribute.intersectsDay(t)})},refreshFocusableDays(e){this.getPageDays(e).forEach(t=>{t.isFocusable=t.inMonth&&t.day===this.focusableDay})},getPageDays(e=this.pages){return e.reduce((t,n)=>t.concat(n.days),[])},getPageTransition(e,t,n=this.transition){if(n==="none")return n;if(n==="fade"||!n&&this.count>1||!yn(e)||!yn(t))return"fade";const r=Ti(t,e);return n==="slide-v"?r?"slide-down":"slide-up":r?"slide-right":"slide-left"},getPageForAttributes(){let e=null;const t=this.store.pinAttr;if(t&&t.hasDates){let[n]=t.dates;n=n.start||n.date,e=this.pageForDate(n)}return e},buildPage({month:e,year:t},n){const r=`${t.toString()}-${e.toString()}`;let a=this.pages.find(o=>o.key===r);if(!a||n){const o=new Date(t,e-1,15),i=this.$locale.getMonthComps(e,t),s=this.$locale.getPrevMonthComps(e,t),l=this.$locale.getNextMonthComps(e,t);a={key:r,month:e,year:t,weeks:this.trimWeeks?i.weeks:6,title:this.$locale.format(o,this.$locale.masks.title),shortMonthLabel:this.$locale.format(o,"MMM"),monthLabel:this.$locale.format(o,"MMMM"),shortYearLabel:t.toString().substring(2),yearLabel:t.toString(),monthComps:i,prevMonthComps:s,nextMonthComps:l,canMove:u=>this.canMove(u),move:u=>this.move(u),moveThisMonth:()=>this.moveThisMonth(),movePrevMonth:()=>this.move(s),moveNextMonth:()=>this.move(l),refresh:!0},a.days=this.$locale.getCalendarDays(a)}return a},initStore(){this.store=new uY(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(e=[],t=[],n=[],r){Mn(e)&&e.forEach(a=>{a.days.forEach(o=>{let i=!1,s={};r?i=!0:S0(o.attributesMap,n)?(s=x0(o.attributesMap,n),i=!0):s=o.attributesMap||{},t.forEach(l=>{const u=l.intersectsDay(o);if(u){const c=et(we({},l),{targetDate:u});s[l.key]=c,i=!0}}),i&&(o.attributesMap=s,o.shouldRefresh=!0)})})},handleKeydown(e){const t=this.lastFocusedDay;t!=null&&(t.event=e,this.handleDayKeydown(t))},handleDayKeydown(e){const{dateFromTime:t,event:n}=e,r=t(12);let a=null;switch(n.key){case"ArrowLeft":{a=ur(r,-1);break}case"ArrowRight":{a=ur(r,1);break}case"ArrowUp":{a=ur(r,-7);break}case"ArrowDown":{a=ur(r,7);break}case"Home":{a=ur(r,-e.weekdayPosition+1);break}case"End":{a=ur(r,e.weekdayPositionFromEnd);break}case"PageUp":{n.altKey?a=Up(r,-1):a=y0(r,-1);break}case"PageDown":{n.altKey?a=Up(r,1):a=y0(r,1);break}}a&&(n.preventDefault(),this.focusDate(a).catch())}}},hY={inheritAttrs:!1,emits:["update:modelValue"],props:{options:Array,modelValue:null}},fY={class:"vc-select"},pY=["value"],mY=["value","disabled"],vY=O("div",{class:"vc-select-arrow"},[O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[O("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1);function gY(e,t,n,r,a,o){return C(),S("div",fY,[O("select",Ke(e.$attrs,{value:n.modelValue,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.value))}),[(C(!0),S(Me,null,ot(n.options,i=>(C(),S("option",{key:i.value,value:i.value,disabled:i.disabled},V(i.label),9,mY))),128))],16,pY),vY])}var yY=fi(hY,[["render",gY]]);const bY=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],wY=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}],kY={name:"TimePicker",components:{TimeSelect:yY},emits:["update:modelValue"],props:{modelValue:{type:Object,required:!0},locale:{type:Object,required:!0},theme:{type:Object,required:!0},is24hr:{type:Boolean,default:!0},showBorder:Boolean,hourOptions:Array,minuteOptions:Array},computed:{date(){let e=this.locale.normalizeDate(this.modelValue);return this.modelValue.hours===24&&(e=new Date(e.getTime()-1)),e},hours:{get(){return this.modelValue.hours},set(e){this.updateValue(e,this.minutes)}},minutes:{get(){return this.modelValue.minutes},set(e){this.updateValue(this.hours,e)}},isAM:{get(){return this.modelValue.hours<12},set(e){let t=this.hours;e&&t>=12?t-=12:!e&&t<12&&(t+=12),this.updateValue(t,this.minutes)}},amHourOptions(){return bY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},pmHourOptions(){return wY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!Mn(this.amHourOptions)},pmDisabled(){return!Mn(this.pmHourOptions)}},methods:{updateValue(e,t=this.minutes){(e!==this.hours||t!==this.minutes)&&this.$emit("update:modelValue",et(we({},this.modelValue),{hours:e,minutes:t,seconds:0,milliseconds:0}))}}},CY=O("div",null,[O("svg",{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",class:"vc-time-icon",stroke:"currentColor"},[O("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),EY={class:"vc-time-content"},xY={key:0,class:"vc-time-date"},SY={class:"vc-time-weekday"},_Y={class:"vc-time-month"},TY={class:"vc-time-day"},DY={class:"vc-time-year"},MY={class:"vc-time-select"},AY=O("span",{style:{margin:"0 4px"}},":",-1),OY={key:0,class:"vc-am-pm"};function PY(e,t,n,r,a,o){const i=Gn("time-select");return C(),S("div",{class:q(["vc-time-picker",[{"vc-invalid":!n.modelValue.isValid,"vc-bordered":n.showBorder}]])},[CY,O("div",EY,[o.date?(C(),S("div",xY,[O("span",SY,V(n.locale.format(o.date,"WWW")),1),O("span",_Y,V(n.locale.format(o.date,"MMM")),1),O("span",TY,V(n.locale.format(o.date,"D")),1),O("span",DY,V(n.locale.format(o.date,"YYYY")),1)])):$("",!0),O("div",MY,[G(i,{modelValue:o.hours,"onUpdate:modelValue":t[0]||(t[0]=s=>o.hours=s),modelModifiers:{number:!0},options:o.hourOptions_},null,8,["modelValue","options"]),AY,G(i,{modelValue:o.minutes,"onUpdate:modelValue":t[1]||(t[1]=s=>o.minutes=s),modelModifiers:{number:!0},options:n.minuteOptions},null,8,["modelValue","options"]),n.is24hr?$("",!0):(C(),S("div",OY,[O("button",{class:q({active:o.isAM,"vc-disabled":o.amDisabled}),onClick:t[2]||(t[2]=Mt(s=>o.isAM=!0,["prevent"])),type:"button"}," AM ",2),O("button",{class:q({active:!o.isAM,"vc-disabled":o.pmDisabled}),onClick:t[3]||(t[3]=Mt(s=>o.isAM=!1,["prevent"])),type:"button"}," PM ",2)]))])])],2)}var BY=fi(kY,[["render",PY]]);const am={type:"auto",mask:"iso",timeAdjust:""},IY=[am,am],Ws={DATE:"date",DATE_TIME:"datetime",TIME:"time"},mn={NONE:0,START:1,END:2,BOTH:3},NY={name:"DatePicker",emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],render(){const e=(a,o)=>{if(!this.$slots.footer)return a;const i=[a,this.$slots.footer()];return o?De(o,i):i},t=()=>{if(!this.dateParts)return null;const a=this.isRange?this.dateParts:[this.dateParts[0]];return De("div",{},et(we({},this.$slots),{default:()=>a.map((o,i)=>{const s=this.$locale.getHourOptions(this.modelConfig_[i].validHours,o),l=this.$locale.getMinuteOptions(this.modelConfig_[i].minuteIncrement,o);return De(BY,{modelValue:o,locale:this.$locale,theme:this.$theme,is24hr:this.is24hr,showBorder:!this.isTime,isDisabled:this.isDateTime&&!o.isValid||this.isDragging,hourOptions:s,minuteOptions:l,"onUpdate:modelValue":u=>this.onTimeInput(u,i===0)})})}))},n=()=>De(dY,et(we({},this.$attrs),{attributes:this.attributes_,theme:this.$theme,locale:this.$locale,minDate:this.minDateExact||this.minDate,maxDate:this.maxDateExact||this.maxDate,disabledDates:this.disabledDates,availableDates:this.availableDates,onDayclick:this.onDayClick,onDaykeydown:this.onDayKeydown,onDaymouseenter:this.onDayMouseEnter,ref:"calendar"}),et(we({},this.$slots),{footer:()=>this.isDateTime?e(t()):e()})),r=()=>this.isTime?De("div",{class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-dark":this.$theme.isDark}]},e(t(),"div")):n();return this.$slots.default?De("div",[this.$slots.default(this.slotArgs),De(_0,{id:this.datePickerPopoverId,placement:"bottom-start",contentClass:`vc-container${this.isDark?" vc-is-dark":""}`,"on-before-show":a=>this.$emit("popover-will-show",a),"on-after-show":a=>this.$emit("popover-did-show",a),"on-before-hide":a=>this.$emit("popover-will-hide",a),"on-after-hide":a=>this.$emit("popover-did-hide",a),ref:"popover"},{default:r})]):r()},mixins:[D5],props:{mode:{type:String,default:Ws.DATE},modelValue:{type:null,required:!0},modelConfig:{type:Object,default:()=>({})},is24hr:Boolean,minuteIncrement:Number,isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>ha("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>ha("datePicker.inputDebounce")},popover:{type:Object,default:()=>({})},dragAttribute:Object,selectAttribute:Object,attributes:Array,validHours:[Object,Array,Function]},data(){return{value_:null,dateParts:null,activeDate:"",dragValue:null,inputValues:["",""],updateTimeout:null,watchValue:!0,datePickerPopoverId:Kl()}},computed:{isDate(){return this.mode.toLowerCase()===Ws.DATE},isDateTime(){return this.mode.toLowerCase()===Ws.DATE_TIME},isTime(){return this.mode.toLowerCase()===Ws.TIME},isDragging(){return!!this.dragValue},modelConfig_(){return this.normalizeConfig(this.modelConfig,IY)},inputMask(){const e=this.$locale.masks;return this.isTime?this.is24hr?e.inputTime24hr:e.inputTime:this.isDateTime?this.is24hr?e.inputDateTime24hr:e.inputDateTime:this.$locale.masks.input},inputMaskHasTime(){return/[Hh]/g.test(this.inputMask)},inputMaskHasDate(){return/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(this.inputMask)},inputMaskPatch(){if(this.inputMaskHasTime&&this.inputMaskHasDate)return Qr.DATE_TIME;if(this.inputMaskHasDate)return Qr.DATE;if(this.inputMaskHasTime)return Qr.TIME},slotArgs(){const{isRange:e,isDragging:t,updateValue:n,showPopover:r,hidePopover:a,togglePopover:o}=this,i=e?{start:this.inputValues[0],end:this.inputValues[1]}:this.inputValues[0],s=[!0,!1].map(u=>we({input:this.onInputInput(u),change:this.onInputChange(u),keyup:this.onInputKeyup},Ql(et(we({},this.popover_),{id:this.datePickerPopoverId,callback:c=>{c.action==="show"&&c.completed&&this.onInputShow(u)}})))),l=e?{start:s[0],end:s[1]}:s[0];return{inputValue:i,inputEvents:l,isDragging:t,updateValue:n,showPopover:r,hidePopover:a,togglePopover:o,getPopoverTriggerEvents:Ql}},popover_(){return Jh(this.popover,ha("datePicker.popover"))},selectAttribute_(){if(!this.hasValue(this.value_))return null;const e=et(we({key:"select-drag"},this.selectAttribute),{dates:this.value_,pinPage:!0}),{dot:t,bar:n,highlight:r,content:a}=e;return!t&&!n&&!r&&!a&&(e.highlight=!0),e},dragAttribute_(){if(!this.isRange||!this.hasValue(this.dragValue))return null;const e=et(we({key:"select-drag"},this.dragAttribute),{dates:this.dragValue}),{dot:t,bar:n,highlight:r,content:a}=e;return!t&&!n&&!r&&!a&&(e.highlight={startEnd:{fillMode:"outline"}}),e},attributes_(){const e=hn(this.attributes)?[...this.attributes]:[];return this.dragAttribute_?e.push(this.dragAttribute_):this.selectAttribute_&&e.push(this.selectAttribute_),e}},watch:{inputMask(){this.formatInput()},modelValue(e){this.watchValue&&this.forceUpdateValue(e,{config:this.modelConfig_,formatInput:!0,hidePopover:!1})},value_(){this.refreshDateParts()},dragValue(){this.refreshDateParts()},timezone(){this.refreshDateParts(),this.forceUpdateValue(this.value_,{formatInput:!0})}},created(){this.value_=this.normalizeValue(this.modelValue,this.modelConfig_,Qr.DATE_TIME,mn.BOTH),this.forceUpdateValue(this.modelValue,{config:this.modelConfig_,formatInput:!0,hidePopover:!1}),this.refreshDateParts()},mounted(){tn(document,"keydown",this.onDocumentKeyDown),tn(document,"click",this.onDocumentClick)},beforeUnmount(){nn(document,"keydown",this.onDocumentKeyDown),nn(document,"click",this.onDocumentClick)},methods:{getDateParts(e){return this.$locale.getDateParts(e)},getDateFromParts(e){return this.$locale.getDateFromParts(e)},refreshDateParts(){const e=this.dragValue||this.value_,t=[];this.isRange?(e&&e.start?t.push(this.getDateParts(e.start)):t.push({}),e&&e.end?t.push(this.getDateParts(e.end)):t.push({})):e?t.push(this.getDateParts(e)):t.push({}),this.$nextTick(()=>this.dateParts=t)},onDocumentKeyDown(e){this.dragValue&&e.key==="Escape"&&(this.dragValue=null)},onDocumentClick(e){document.body.contains(e.target)&&!Zi(this.$el,e.target)&&(this.dragValue=null,this.formatInput())},onDayClick(e){this.handleDayClick(e),this.$emit("dayclick",e)},onDayKeydown(e){switch(e.event.key){case" ":case"Enter":{this.handleDayClick(e),e.event.preventDefault();break}case"Escape":this.hidePopover()}this.$emit("daykeydown",e)},handleDayClick(e){const{keepVisibleOnInput:t,visibility:n}=this.popover_,r={patch:Qr.DATE,adjustTime:!0,formatInput:!0,hidePopover:this.isDate&&!t&&n!=="visible"};this.isRange?(this.isDragging?this.dragTrackingValue.end=e.date:this.dragTrackingValue=we({},e.range),r.isDragging=!this.isDragging,r.rangePriority=r.isDragging?mn.NONE:mn.BOTH,r.hidePopover=r.hidePopover&&!r.isDragging,this.updateValue(this.dragTrackingValue,r)):(r.clearIfEqual=!this.isRequired,this.updateValue(e.date,r))},onDayMouseEnter(e){this.isDragging&&(this.dragTrackingValue.end=e.date,this.updateValue(this.dragTrackingValue,{patch:Qr.DATE,adjustTime:!0,formatInput:!0,hidePriority:!1,rangePriority:mn.NONE}))},onTimeInput(e,t){let n=null;if(this.isRange){const r=t?e:this.dateParts[0],a=t?this.dateParts[1]:e;n={start:r,end:a}}else n=e;this.updateValue(n,{patch:Qr.TIME,rangePriority:t?mn.START:mn.END}).then(()=>this.adjustPageRange(t))},onInputInput(e){return t=>{this.updateOnInput&&this.onInputUpdate(t.target.value,e,{formatInput:!1,hidePopover:!1,debounce:this.inputDebounce})}},onInputChange(e){return t=>{this.onInputUpdate(t.target.value,e,{formatInput:!0,hidePopover:!1})}},onInputUpdate(e,t,n){this.inputValues.splice(t?0:1,1,e);const r=this.isRange?{start:this.inputValues[0],end:this.inputValues[1]||this.inputValues[0]}:e,a={type:"string",mask:this.inputMask};this.updateValue(r,et(we({},n),{config:a,patch:this.inputMaskPatch,rangePriority:t?mn.START:mn.END})).then(()=>this.adjustPageRange(t))},onInputShow(e){this.adjustPageRange(e)},onInputKeyup(e){e.key==="Escape"&&this.updateValue(this.value_,{formatInput:!0,hidePopover:!0})},updateValue(e,t={}){return clearTimeout(this.updateTimeout),new Promise(n=>{const r=t,{debounce:a}=r,o=ZT(r,["debounce"]);a>0?this.updateTimeout=setTimeout(()=>{this.forceUpdateValue(e,o),n(this.value_)},a):(this.forceUpdateValue(e,o),n(this.value_))})},normalizeConfig(e,t=this.modelConfig_){return e=hn(e)?e:[e.start||e,e.end||e],t.map((n,r)=>we(we({validHours:this.validHours,minuteIncrement:this.minuteIncrement},n),e[r]))},forceUpdateValue(e,{config:t=this.modelConfig_,patch:n=Qr.DATE_TIME,clearIfEqual:r=!1,formatInput:a=!0,hidePopover:o=!1,isDragging:i=this.isDragging,rangePriority:s=mn.BOTH}={}){t=this.normalizeConfig(t);let l=this.normalizeValue(e,t,n,s);!l&&this.isRequired&&(l=this.value_),l=this.adjustTimeForValue(l,t);const u=this.valueIsDisabled(l);if(u){if(i)return;l=this.value_,o=!1}const c=i?"dragValue":"value_";let d=!this.valuesAreEqual(this[c],l);if(!u&&!d&&r&&(l=null,d=!0),d){this[c]=l,i||(this.dragValue=null);const h=this.denormalizeValue(l),f=this.isDragging?"drag":"update:modelValue";this.watchValue=!1,this.$emit(f,h),this.$nextTick(()=>this.watchValue=!0)}o&&this.hidePopover(),a&&this.formatInput()},hasValue(e){return this.isRange?Pn(e)&&!!e.start&&!!e.end:!!e},normalizeValue(e,t,n,r){if(!this.hasValue(e))return null;if(this.isRange){const a={},o=e.start>e.end?e.end:e.start;a.start=this.normalizeDate(o,et(we({},t[0]),{fillDate:this.value_&&this.value_.start||t[0].fillDate,patch:n}));const i=e.start>e.end?e.start:e.end;return a.end=this.normalizeDate(i,et(we({},t[1]),{fillDate:this.value_&&this.value_.end||t[1].fillDate,patch:n})),this.sortRange(a,r)}return this.normalizeDate(e,et(we({},t[0]),{fillDate:this.value_||t[0].fillDate,patch:n}))},adjustTimeForValue(e,t){return this.hasValue(e)?this.isRange?{start:this.$locale.adjustTimeForDate(e.start,t[0]),end:this.$locale.adjustTimeForDate(e.end,t[1])}:this.$locale.adjustTimeForDate(e,t[0]):null},sortRange(e,t=mn.NONE){const{start:n,end:r}=e;if(n>r)switch(t){case mn.START:return{start:n,end:n};case mn.END:return{start:r,end:r};case mn.BOTH:return{start:r,end:n}}return{start:n,end:r}},denormalizeValue(e,t=this.modelConfig_){return this.isRange?this.hasValue(e)?{start:this.$locale.denormalizeDate(e.start,t[0]),end:this.$locale.denormalizeDate(e.end,t[1])}:null:this.$locale.denormalizeDate(e,t[0])},valuesAreEqual(e,t){if(this.isRange){const n=this.hasValue(e),r=this.hasValue(t);return!n&&!r?!0:n!==r?!1:Ac(e.start,t.start)&&Ac(e.end,t.end)}return Ac(e,t)},valueIsDisabled(e){return this.hasValue(e)&&this.disabledAttribute&&this.disabledAttribute.intersectsDate(e)},formatInput(){this.$nextTick(()=>{const e=this.normalizeConfig({type:"string",mask:this.inputMask}),t=this.denormalizeValue(this.dragValue||this.value_,e);this.isRange?this.inputValues=[t&&t.start,t&&t.end]:this.inputValues=[t,""]})},showPopover(e={}){D0(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},hidePopover(e={}){M0(et(we(we({hideDelay:10},this.showPopover_),e),{id:this.datePickerPopoverId}))},togglePopover(e){A5(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},adjustPageRange(e){this.$nextTick(()=>{const t=this.$refs.calendar,n=this.getPageForValue(e),r=e?1:-1;n&&t&&!E5(n,t.firstPage,t.lastPage)&&t.move(n,{position:r,transition:"fade"})})},getPageForValue(e){return this.hasValue(this.value_)?this.pageForDate(this.isRange?this.value_[e?"start":"end"]:this.value_):null},move(e,t){return this.$refs.calendar?this.$refs.calendar.move(e,t):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))},focusDate(e,t){return this.$refs.calendar?this.$refs.calendar.focusDate(e,t):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))}}},LY=e=>e.every(t=>t.value!==void 0),RY=e=>{const t=[];return e.forEach(n=>t.push(n.value+"")),t},$Y=e=>{const t=RY(e),n=new Set(t);return t.length===n.size},O5=e=>e.map(t=>({label:typeof t=="string"?t:t.label||t.value+"",value:typeof t=="string"?t:t.value,disabled:typeof t=="string"?!1:t.disabled})),HY=e=>{const t=typeof e[0]=="string",n=O5(e),r=$Y(n);return t?r&&LY(e):r},FY={},zY=ge({...FY,__name:"KSegmentedControl",props:{modelValue:{type:[String,Number,Boolean],required:!0},options:{type:Array,required:!0,validator:e=>!e.length||HY(e)},isDisabled:{type:Boolean,default:!1},allowPointerEvents:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(O5(n.options)),a=s=>n.modelValue===s.value?"primary":"secondary",o=s=>!!s.disabled||n.isDisabled,i=s=>{var l,u;t("click",(l=s.target)==null?void 0:l.name),t("update:modelValue",(u=s.target)==null?void 0:u.name)};return(s,l)=>(C(),S("div",{class:q(["k-segmented-control",{"allow-pointer-events":e.allowPointerEvents}])},[(C(!0),S(Me,null,ot(r.value,u=>(C(),se(We,{key:`${u.value}-option`,appearance:a(u),disabled:o(u),name:u.value,size:"small",onClick:i},{default:F(()=>[z(s.$slots,"option-label",{option:u},()=>[J(V(u.label),1)],!0)]),_:2},1032,["appearance","disabled","name"]))),128))],2))}}),P5=Ee(zY,[["__scopeId","data-v-f8d80387"]]),jY=["innerHTML"],UY={key:1,class:"range-display"},ZY={key:3,class:"relative-periods-container"},YY={class:"timeframe-section-title"},VY={class:"timeframe-buttons"},KY={class:"datetime-picker-footer-container"},GY=ge({__name:"KDateTimePicker",props:{clearButton:{type:Boolean,required:!1,default:!1},icon:{type:Boolean,required:!1,default:!0},modelValue:{type:[Object,Date,String],required:!1,default:"",validator:e=>typeof e=="string"?e==="":e instanceof Date||e.start!==void 0&&e.end!==void 0},maxDate:{type:Date,required:!1,default:null},minDate:{type:Date,required:!1,default:null},minuteIncrement:{type:Number,required:!1,default:5},mode:{type:String,required:!0,validator:e=>Object.values(ok).includes(e)},placeholder:{type:String,required:!1,default:"Select a time range"},range:{type:Boolean,required:!1,default:!1},timePeriods:{type:Array,required:!1,default:()=>[],validator:e=>e.every(t=>Array.isArray(t.values)&&t.values.every(n=>typeof n.timeframeText=="string"&&n.timeframeLength!==void 0&&typeof n.key=="string"&&n.key!==void 0&&typeof n.display=="string"&&n.display!==void 0&&n.start!==void 0&&n.end!==void 0))},width:{type:String,required:!1,default:"auto"}},emits:["change","update:modelValue"],setup(e,{emit:t}){var n,r;const a=e,o={type:"number"},i={highlight:{start:{class:"vcal-day-start"},base:{class:"vcal-day-base"},end:{class:"vcal-day-end"}}},s={highlight:{start:{class:"vcal-day-drag-start"},base:{class:"vcal-day-drag-base"},end:{class:"vcal-day-drag-end"}}},l=j(a.modelValue),u=B(()=>a.mode!=="relative"),c=B(()=>{var T;return((T=a==null?void 0:a.timePeriods)==null?void 0:T.length)>0}),d=B(()=>v.tabName==="custom"||!c.value),h=B(()=>a.range||c.value?!v.selectedRange.start||!v.selectedRange.end:!v.selectedRange.start),f=B(()=>({width:a.width==="auto"||a.width.endsWith("%")||a.width.endsWith("px")?a.width:a.width+"px"})),g=B(()=>a.mode==="relativeDateTime"?"dateTime":a.mode==="relativeDate"?"date":a.mode),y=Intl.DateTimeFormat().resolvedOptions().timeZone,v=zr({abbreviatedDisplay:a.placeholder,fullRangeDisplay:"",hidePopover:!1,selectedRange:{start:new Date,end:new Date,timePeriodsKey:""},previouslySelectedRange:{start:new Date,end:new Date,timePeriodsKey:""},selectedTimeframe:(n=a.timePeriods[0])==null?void 0:n.values[0],previouslySelectedTimeframe:(r=a.timePeriods[0])==null?void 0:r.values[0],tabName:"custom"}),p=T=>{let x,k;T&&(T.start&&T.end?(x=new Date(T.start),k=new Date(T.end)):(x=new Date(Number(T)),k=0),v.selectedRange=v.previouslySelectedRange={start:x,end:k,timePeriodsKey:""})},b=T=>{v.selectedTimeframe=v.previouslySelectedTimeframe=T;const x=v.selectedTimeframe.start(),k=v.selectedTimeframe.end();v.selectedRange={start:new Date(x),end:new Date(k),timePeriodsKey:v.selectedTimeframe.key},v.fullRangeDisplay=w(v.selectedRange,!1)},m=()=>{var T;l.value="",v.abbreviatedDisplay=a.placeholder,v.fullRangeDisplay="",v.selectedRange={start:0,end:0,timePeriodsKey:""},c.value&&(v.selectedTimeframe=(T=a.timePeriods[0])==null?void 0:T.values[0]),a.range||a.mode==="relative"?(t("change",v.selectedRange),t("update:modelValue",v.selectedRange)):(t("change",""),t("update:modelValue",""))},w=(T,x)=>{const{start:k,end:A}=T;let M="PP hh:mm a";const N=xc.formatInTimeZone(k,y,"(z)");return!u.value&&c.value?M="PP hh:mm a":a.mode==="date"&&(M="PP"),a.range?x?`
${Ec(k,M)} - 
${xc.formatInTimeZone(A,y,M)} ${N}
`:`${Ec(k,M)} - ${xc.formatInTimeZone(A,y,M)} ${N}`:k?`${Ec(k,M)} ${N}`:""},D=async()=>{if(a.range||c.value)t("change",v.selectedRange),t("update:modelValue",v.selectedRange);else{const T=new Date(v.selectedRange.start);t("change",T),t("update:modelValue",T)}v.hidePopover=!0,I()},I=()=>{a.range&&c.value&&!d.value?v.abbreviatedDisplay=v.selectedTimeframe.display:v.abbreviatedDisplay=w(v.selectedRange,!0)},L=T=>T.charAt(0).toUpperCase()+T.slice(1);return Le(l,(T,x)=>{T!==void 0&&T!==x&&p(T)},{immediate:!0}),Le(()=>v.tabName,(T,x)=>{x!==void 0&&T==="relative"?b(v.previouslySelectedTimeframe):x!==void 0&&T==="custom"&&p(v.previouslySelectedRange)}),ft(()=>{if(a.modelValue)if("timePeriodsKey"in a.modelValue){v.tabName="relative";for(const T of a.timePeriods){const x=T.values.find(k=>k.key===a.modelValue.timePeriodsKey);if(x){b(x),I();break}}}else v.tabName="custom",p(a.modelValue),I()}),(T,x)=>(C(),S("div",{class:q(["k-datetime-picker",{"set-min-width":c.value}]),style:Et(f.value)},[G(Jo,{"hide-caret":"","hide-popover":v.hidePopover,placement:"bottomStart","position-fixed":"",width:"auto",onOpened:x[5]||(x[5]=k=>v.hidePopover=!1)},qa({default:F(()=>[G(We,{"aria-role":"input",class:q(["timepicker-input",{"set-min-width":c.value}]),"data-testid":"k-datetime-picker-input","is-rounded":!1,size:"large",style:Et(f.value)},{default:F(()=>[e.icon?(C(),se(Be,{key:0,class:"calendar-icon",color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"calendar",size:pe(xt)},null,8,["color","size"])):$("",!0),O("div",{class:"timepicker-display","data-testid":"k-datetime-picker-display",innerHTML:v.abbreviatedDisplay},null,8,jY)]),_:1},8,["class","style"])]),_:2},[v.hidePopover?void 0:{name:"content",fn:F(()=>[c.value&&u.value?(C(),se(P5,{key:0,modelValue:v.tabName,"onUpdate:modelValue":x[0]||(x[0]=k=>v.tabName=k),class:"datetime-picker-toggle","data-testid":"k-datetime-picker-toggle",options:[{label:"Relative",value:"relative"},{label:"Custom",value:"custom"}],onClick:x[1]||(x[1]=k=>v.tabName=k)},null,8,["modelValue"])):$("",!0),d.value?$("",!0):(C(),S("p",UY,V(v.fullRangeDisplay),1)),u.value&&d.value?(C(),se(pe(NY),{key:2,modelValue:l.value,"onUpdate:modelValue":x[2]||(x[2]=k=>l.value=k),"drag-attribute":s,"is-expanded":"","is-range":e.range,"max-date":e.maxDate,"min-date":e.minDate,"minute-increment":e.minuteIncrement,mode:g.value,"model-config":o,"select-attribute":i},null,8,["modelValue","is-range","max-date","min-date","minute-increment","mode"])):c.value?(C(),S("div",ZY,[(C(!0),S(Me,null,ot(e.timePeriods,(k,A)=>(C(),S("div",{key:`section-${String(k.section||A)}`,class:"timeframe-section"},[O("div",YY,V(k.section),1),O("div",VY,[(C(!0),S(Me,null,ot(k.values,(M,N)=>(C(),se(We,{key:`time-${N}`,appearance:"outline",class:q(["timeframe-btn",{"selected-option":M.key===v.selectedTimeframe.key}]),"data-testid":"select-timeframe-"+M.timeframeLength(),"is-rounded":!1,size:"medium",onClick:ee=>b(M)},{default:F(()=>[J(V(L(M.timeframeText)),1)]),_:2},1032,["class","data-testid","onClick"]))),128))])]))),128))])):$("",!0)]),key:"0"},v.hidePopover?void 0:{name:"footer",fn:F(()=>[O("div",KY,[e.clearButton?(C(),se(We,{key:0,appearance:"btn-link",class:"action-btn","data-testid":"k-datetime-picker-clear","is-rounded":!1,size:"medium",onClick:x[3]||(x[3]=k=>m())},{default:F(()=>[J(" Clear ")]),_:1})):$("",!0),G(We,{appearance:"btn-link",class:"action-btn","data-testid":"k-datetime-picker-submit",disabled:h.value,"is-rounded":!1,size:"medium",onClick:x[4]||(x[4]=k=>D())},{default:F(()=>[J(" Apply ")]),_:1},8,["disabled"])])]),key:"1"}]),1032,["hide-popover"])],6))}}),WY=["data-testid"],qY=["title"],B5=ge({__name:"KDropdownItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0},hasDivider:{type:Boolean,default:!1},isDangerous:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},selectionMenuChild:{type:Boolean,default:!1},onClick:{type:Function,default:void 0}},emits:["click","change"],setup(e,{emit:t}){const n=e,r=y6(),a=B(()=>{var h;return(h=n.item)!=null&&h.to?"link":typeof n.onClick<"u"||n.selectionMenuChild?"button":"default"}),o=B(()=>{var h;return((h=n.item)==null?void 0:h.label)||""}),i=B(()=>r?r.path:""),s=B(()=>{var h;return((h=n.item)==null?void 0:h.to)||void 0}),l=h=>{t("click",h),n.selectionMenuChild&&t("change",n.item)},u=h=>{h.preventDefault(),h.stopPropagation()},c=B(()=>{let h="div";return a.value==="link"&&s.value&&n.disabled?h="link":a.value==="link"&&s.value?h="router-link":a.value==="button"&&(h="button"),h}),d=B(()=>({link:{tag:"a",onClick:u,attrs:{class:`k-dropdown-item-trigger ${n.disabled?"disabled":""}`,href:"#"}},"router-link":{tag:"router-link",onClick:l,attrs:{class:`k-dropdown-item-trigger ${n.disabled?"disabled":""}`,to:n.disabled?i.value:s.value}},button:{tag:We,onClick:l,attrs:{class:"k-dropdown-item-trigger k-button btn-link",disabled:n.disabled,isRounded:!1}},div:{tag:"div",attrs:{class:"k-dropdown-item-trigger"}}}));return(h,f)=>(C(),S("li",{class:q(["k-dropdown-item",{"has-divider":e.hasDivider,disabled:a.value==="default"&&e.disabled,danger:e.isDangerous,"k-dropdown-selected-option":e.selected}]),"data-testid":`k-dropdown-item-${o.value.replace(/ /gi,"-")}`},[(C(),se(va(d.value[c.value].tag),Ke({"data-testid":"k-dropdown-item-trigger"},d.value[c.value].attrs,{onClick:d.value[c.value].onClick}),{default:F(()=>[O("span",{class:"k-dropdown-item-trigger-label",title:o.value},[z(h.$slots,"default",{},()=>[J(V(o.value),1)])],8,qY)]),_:3},16,["onClick"]))],10,WY))}}),QY={class:"k-dropdown-list dropdown-list","data-testid":"k-dropdown-list"},XY=ge({__name:"KDropdownMenu",props:{appearance:{type:String,default:"menu",validator:e=>ik.includes(e)},buttonAppearance:{type:String,default:"primary"},caretColor:{type:String,default:void 0},label:{type:String,default:""},icon:{type:String,default:""},showCaret:{type:Boolean,default:!1},width:{type:String,default:""},kpopAttributes:{type:Object,default:null},items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0)},disabled:{type:Boolean,default:!1},disabledTooltip:{type:String,default:""},testMode:{type:Boolean,default:!1}},emits:["toggleDropdown","change"],setup(e,{emit:t}){var n;const r=e,a=j(!1),o=B(()=>r.disabledTooltip?ei:"div"),i={hideCaret:!0,popoverClasses:"k-dropdown-popover",popoverTimeout:0,positionFixed:!0,placement:"bottomStart"},s={...i,...r.kpopAttributes,width:r.width?r.width:void 0,popoverClasses:`${i.popoverClasses} ${((n=r.kpopAttributes)==null?void 0:n.popoverClasses)||""}`},l=j(),u=h=>{r.appearance==="selectionMenu"&&(l.value=h)},c=async()=>{a.value=!0,await on(()=>{a.value=!1})},d=(h,f,g)=>(h.value!==g&&(f(),t("toggleDropdown",h.value)),h.value);return Le(l,(h,f)=>{h&&h!==f&&t("change",h)}),ft(()=>{if(r.items){const h=r.items.filter(f=>f.selected);h.length&&(l.value=h[0])}}),(h,f)=>(C(),S("div",{class:q(["k-dropdown k-dropdown-menu",{"selection-dropdown-menu":e.appearance==="selectionMenu"}])},[G(pe(Iu),null,{default:F(({toggle:g,isToggled:y})=>[G(Jo,Ke(s,{"data-testid":"k-dropdown-menu-popover","hide-popover":a.value,"on-popover-click":()=>d(y,g,!1),"test-mode":!!e.testMode||void 0,onClosed:()=>d(y,g,!1),onOpened:()=>d(y,g,!0)}),{content:F(()=>[O("ul",QY,[z(h.$slots,"items",{closeDropdown:c,handleSelection:u,items:e.items},()=>[(C(!0),S(Me,null,ot(e.items,(v,p)=>(C(),se(B5,Ke(v,{key:`${v.label}-${p}`,item:v,"selection-menu-child":e.appearance==="selectionMenu",onChange:u}),null,16,["item","selection-menu-child"]))),128))],!0)])]),default:F(()=>[(C(),se(va(o.value),{class:"k-dropdown-trigger dropdown-trigger","data-testid":"k-dropdown-trigger",label:e.disabledTooltip,"max-width":e.disabledTooltip?"240":void 0,position:e.disabledTooltip?"bottom":void 0,"position-fixed":e.disabledTooltip?!0:void 0,"test-mode":!!e.testMode||void 0},{default:F(()=>[z(h.$slots,"default",{isOpen:y.value},()=>[O("div",null,[e.label||e.icon?(C(),se(We,{key:0,appearance:e.appearance==="selectionMenu"?"outline":e.buttonAppearance,"caret-color":e.caretColor,class:"k-dropdown-btn","data-testid":"k-dropdown-btn",disabled:e.disabled,icon:e.icon,"show-caret":e.showCaret||e.appearance==="selectionMenu"},{default:F(()=>[J(V(e.label),1)]),_:1},8,["appearance","caret-color","disabled","icon","show-caret"])):$("",!0)])],!0)]),_:2},1032,["label","max-width","position","position-fixed","test-mode"]))]),_:2},1040,["hide-popover","on-popover-click","test-mode","onClosed","onOpened"])]),_:3})],2))}}),JY=Ee(XY,[["__scopeId","data-v-a29da198"]]),eV={class:"k-file-upload"},tV=["onClick"],nV=["onKeyup"],rV=ge({__name:"KFileUpload",props:{labelAttributes:{type:Object,default:()=>({})},label:{type:String,default:""},testMode:{type:Boolean,default:!1},help:{type:String,default:void 0},buttonAppearance:{type:String,default:"primary"},buttonText:{type:String,default:"Select file"},fileModel:{type:String,default:void 0},removable:{type:Boolean,default:!0},placeholder:{type:String,default:"No file selected"},type:{type:String,default:"file",validator:e=>["file","image"].includes(e)},accept:{type:Array,required:!0},maxFileSize:{type:Number,default:null},iconSize:{type:String,default:Lu},icon:{type:String,default:"image"},iconColor:{type:String,default:void 0},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:"Please check file size."}},emits:["file-added","file-removed","error"],setup(e,{emit:t}){const n=e,r=B(()=>n.testMode?"test-file-upload-id-1234":pa()),a=B(()=>n.maxFileSize||n.maxFileSize===0?n.maxFileSize:n.type==="file"?525e4:1e6),o=j(!1),i=j([]),s=j(0),l=j(""),u=j([]),c=f=>{var g,y,v;i.value=(g=f.target)==null?void 0:g.files,l.value=(y=i==null?void 0:i.value[0])==null?void 0:y.name;const p=(v=i==null?void 0:i.value[0])==null?void 0:v.size;o.value=Number(p)>a.value,o.value&&(s.value++,t("error",i.value));const b=document.getElementById(r.value);p?u.value.push(i.value):(b.files=u.value[u.value.length-1],i.value=b.files,b.files&&(l.value=b.files[b.files.length-1].name)),t("file-added",i.value)},d=()=>{const f=document.getElementById(r.value);f&&f.click()},h=()=>{i.value=[],l.value="",u.value=[],s.value++,o.value=!1,t("file-removed")};return(f,g)=>(C(),S("div",eV,[e.label?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:"k-file-upload-label","data-testid":"k-file-upload-label",for:r.value}),{default:F(()=>[J(V(e.label),1)]),_:1},16,["for"])):$("",!0),(C(),se(xs,{id:r.value,key:s.value,accept:e.accept,class:q(["upload-input",{"image-upload":e.type==="image"}]),"error-message":e.errorMessage,"has-error":o.value,help:e.help,"max-file-size":a.value,type:"file",onChange:c},null,8,["id","accept","class","error-message","has-error","help","max-file-size"])),e.type==="image"?(C(),se(Be,{key:1,class:"image-upload-icon",color:e.iconColor,icon:e.icon,size:e.iconSize,onClick:Mt(d,["prevent"])},null,8,["color","icon","size","onClick"])):$("",!0),e.type==="image"?(C(),S("a",{key:2,class:"image-upload-description",href:"#",onClick:Mt(d,["prevent"])},V(l.value?l.value:e.placeholder),9,tV)):$("",!0),l.value&&e.removable?(C(),se(We,{key:3,appearance:"primary",class:q(["remove-button",[e.label?"k-file-upload-btn-with-label":"k-file-upload-btn-without-label",{"move-btn-right":e.type!=="file"}]]),"data-testid":"remove-button",size:"small",type:"reset",onClick:h,onKeyup:jt(h,["enter"])},{icon:F(()=>[G(Be,{icon:"close",size:"16"})]),_:1},8,["class","onKeyup"])):$("",!0),e.type==="file"?(C(),se(We,{key:4,appearance:e.buttonAppearance,class:q(["k-file-upload-btn",[e.label?"k-file-upload-btn-with-label":"k-file-upload-btn-without-label"]]),"data-testid":"k-file-upload-button",size:"small",onClick:d,onKeyup:jt(d,["enter"])},{default:F(()=>[J(V(e.buttonText),1)]),_:1},8,["appearance","class","onKeyup"])):$("",!0),e.type==="file"?(C(),S("a",{key:5,class:q(["display-name",[e.label?"has-label":"has-no-label"]]),href:"#",onClick:d,onKeyup:jt(d,["enter"])},V(l.value?l.value:e.placeholder),43,nV)):$("",!0)]))}}),aV=Ee(rV,[["__scopeId","data-v-260ac5dc"]]),oV=["id"],iV=["onKeyup"],sV=["id"],lV=ge({__name:"KInlineEdit",props:{ignoreValue:{type:Boolean,default:!1},styleOverrides:{type:Object,default:()=>({})}},emits:["changed"],setup(e,{emit:t}){const n=e,r=It(),a=j(null),o=B(()=>"editable-wrapper-"+pa()),i=j(!1),s=j(""),l=j({}),u=async f=>{f.target.id!=="element-content-wrapper"&&(l.value={...d(f.target),...n.styleOverrides},s.value=n.ignoreValue?"":f.target.textContent,i.value=!0,await on(),a.value&&a.value.focus())},c=()=>{i.value=!1,t("changed",s.value)},d=f=>{const g=getComputedStyle(f);return Object.keys(Ed).reduce((y,v)=>(y[v]=g.getPropertyValue(Ed[v]),y),{})},h=f=>{var g;(g=f==null?void 0:f.target)==null||g.blur()};return ft(()=>{try{if(!r.default)throw new Error("KInlineEdit expects a slotted HTML tag.")}catch{console.error(`KInlineEdit expects a slotted HTML tag. Example usage: @@ -495,17 +495,17 @@ Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),(

Some text

^^------add slotted tag - `)}}),(f,g)=>(C(),S("div",{id:`editable-wrapper-${o.value}`,class:"k-inline-edit"},[i.value?Ml((C(),S("input",{key:0,ref_key:"input",ref:a,"onUpdate:modelValue":g[0]||(g[0]=y=>s.value=y),class:"k-input",style:Et(l.value),onBlur:c,onKeyup:jt(h,["enter"])},null,44,iV)),[[N4,s.value,void 0,{trim:!0}]]):$("",!0),i.value?$("",!0):(C(),S("div",{key:1,id:`element-content-wrapper-${o.value}`,onClick:u},[i.value?$("",!0):F(f.$slots,"default",{key:0},void 0,!0)],8,sV))],8,oV))}}),uV=Ee(lV,[["__scopeId","data-v-7a5d6d6e"]]),cV=["disabled","for"],dV={key:0},hV=["checked","disabled"],fV={key:1},pV=["disabled","for"],mV={key:0},vV=["checked","disabled"],gV={key:2},yV={inheritAttrs:!1},bV=ge({...yV,__name:"KInputSwitch",props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:""},labelPosition:{type:String,default:"right",validator:e=>dk.includes(e)},disabled:{type:Boolean,default:!1},disabledTooltipText:{type:String,default:""},enabledIcon:{type:Boolean,default:!1}},emits:["change","input","update:modelValue"],setup(e,{emit:t}){const n=e,r=Xn(),a=B(()=>{if(n.disabled!==void 0&&n.disabled!==!1)return r;const i=Object.assign({},r);return delete i.class,delete i.disabled,i}),o=i=>{n.modelValue!==i.target.checked&&(t("change",i.target.checked),t("input",i.target.checked),t("update:modelValue",i.target.checked))};return(i,s)=>e.disabled&&e.disabledTooltipText?(C(),se(ei,{key:0,label:e.disabledTooltipText},{default:z(()=>[O("label",{class:q(["k-switch k-input-switch",[i.$attrs.class]]),disabled:e.disabled,for:i.$attrs.id?String(i.$attrs.id):void 0},[(e.label||i.$slots.label)&&e.labelPosition==="left"?(C(),S("span",dV,[F(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0),O("input",Ke({checked:e.modelValue,disabled:e.disabled,type:"checkbox"},a.value,{onChange:o,onInput:o}),null,16,hV),O("div",{class:q(["switch-control",e.labelPosition==="right"?"has-label-right":"has-label-left"])},null,2),(e.label||i.$slots.label)&&e.labelPosition==="right"?(C(),S("span",fV,[F(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0)],10,cV)]),_:3},8,["label"])):(C(),S("label",{key:1,class:q(["k-switch k-input-switch",[i.$attrs.class,{"switch-with-icon":e.enabledIcon}]]),disabled:e.disabled?e.disabled:void 0,for:i.$attrs.id?String(i.$attrs.id):void 0},[(e.label||i.$slots.label)&&e.labelPosition==="left"?(C(),S("span",mV,[F(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0),O("input",Ke({checked:e.modelValue,disabled:e.disabled?e.disabled:void 0},a.value,{type:"checkbox",onChange:o,onInput:o}),null,16,vV),O("div",{class:q(["switch-control",e.labelPosition==="right"?"has-label-right":"has-label-left"])},null,2),e.enabledIcon&&e.modelValue===!0?(C(),se(Be,{key:1,color:`var(--white, var(--kui-color-text-inverse, ${pe(Nu)}))`,icon:"check"},null,8,["color"])):$("",!0),(e.label||i.$slots.label)&&e.labelPosition==="right"?(C(),S("span",gV,[F(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0)],10,pV))}}),wV=Ee(bV,[["__scopeId","data-v-12ec837e"]]),kV={},CV=e=>(Ln("data-v-4cc89065"),e=e(),Rn(),e),EV={class:"k-menu-item-divider"},xV=CV(()=>O("hr",null,null,-1)),SV=[xV];function _V(e,t){return C(),S("div",EV,SV)}const I5=Ee(kV,[["render",_V],["__scopeId","data-v-4cc89065"]]),TV=["id","data-testid","test-mode"],DV={key:0,class:"span-icon-container"},MV={key:0},AV={key:1},OV={key:2},PV=ge({__name:"KMenuItem",props:{item:{type:Object,default:null},expandable:{type:Boolean,default:!1},type:{type:String,default:"string",validator:e=>hk.includes(e)},lastMenuItem:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["clicked"],setup(e,{emit:t}){const n=e,r=It(),a=j(!1),o=B(()=>n.testMode?"test-menuitem-id-1234":pa()),i=()=>{n.expandable?a.value=!a.value:t("clicked",r.itemTitle||n.item)};return(s,l)=>(C(),S("div",{id:o.value,class:q(["k-menu-item",[a.value?"title-dark":"",{"expando-item":e.expandable}]]),"data-testid":e.item?`${e.item.title.replace(/ /gi,"-")}-menu-item`:"menu-item","test-mode":!!e.testMode||void 0},[e.type!=="divider"?(C(),se(We,{key:0,"aria-expanded":a.value&&e.expandable||void 0,"aria-labelledby":o.value||void 0,class:"menu-button","is-rounded":!1,type:"button",onClick:i},{default:z(()=>[O("span",{class:q(["span-menu-title",a.value&&e.expandable?"title-dark":""])},[F(s.$slots,"itemTitle",{},()=>[J(V(e.item?e.item.title:""),1)],!0)],2),e.expandable?(C(),S("span",DV,[G(Be,{color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,icon:a.value?"chevronUp":"chevronDown",size:pe(xt)},null,8,["color","icon","size"])])):$("",!0)]),_:3},8,["aria-expanded","aria-labelledby"])):$("",!0),e.expandable?(C(),S("div",{key:1,class:q(["menu-content",a.value?"is-open":"is-closed"])},[F(s.$slots,"itemBody",{},()=>[(e.type==="string"||e.type==="divider")&&e.expandable?(C(),S("div",MV,V(e.item?e.item.description:""),1)):(e.type==="number"||e.type==="divider")&&e.expandable?(C(),S("div",AV,V(e.item?e.item.description:""),1)):$("",!0)],!0)],2)):$("",!0),!e.lastMenuItem&&(e.type==="divider"||e.expandable)?(C(),S("div",OV,[G(I5)])):$("",!0)],10,TV))}}),N5=Ee(PV,[["__scopeId","data-v-11b9797e"]]),BV={key:0,class:"clear-cta-button"},IV=ge({__name:"KMenu",props:{items:{type:Array,required:!1,default:()=>[]},actionButton:{type:String,default:""},width:{type:String,default:"284"},testMode:{type:Boolean,default:!1}},emits:["proceed"],setup(e,{emit:t}){const n=e,{getSizeFromString:r}=kn(),a=It(),o=B(()=>({width:r(n.width)})),i=B(()=>!!a.actionButton),s=()=>{t("proceed")};return(l,u)=>{const c=Gn("KButton");return C(),S("div",{class:"k-menu",style:Et(o.value)},[F(l.$slots,"body",{},()=>[O("div",null,[(C(!0),S(Me,null,ot(e.items,(d,h)=>(C(),se(N5,{key:d.title+h,class:q({"last-menu-item":h===e.items.length-1}),expandable:d.expandable,item:d,"last-menu-item":h===e.items.length-1,"test-mode":!!e.testMode||void 0,type:d.type},null,8,["class","expandable","item","last-menu-item","test-mode","type"]))),128))])],!0),i.value?(C(),S("div",BV,[G(I5),F(l.$slots,"actionButton",{},()=>[G(c,{onClick:s,onKeyup:jt(s,["enter"])},null,8,["onKeyup"])],!0)])):$("",!0)],4)}}}),NV=Ee(IV,[["__scopeId","data-v-6a43a941"]]);/*! + `)}}),(f,g)=>(C(),S("div",{id:`editable-wrapper-${o.value}`,class:"k-inline-edit"},[i.value?Ml((C(),S("input",{key:0,ref_key:"input",ref:a,"onUpdate:modelValue":g[0]||(g[0]=y=>s.value=y),class:"k-input",style:Et(l.value),onBlur:c,onKeyup:jt(h,["enter"])},null,44,iV)),[[N4,s.value,void 0,{trim:!0}]]):$("",!0),i.value?$("",!0):(C(),S("div",{key:1,id:`element-content-wrapper-${o.value}`,onClick:u},[i.value?$("",!0):z(f.$slots,"default",{key:0},void 0,!0)],8,sV))],8,oV))}}),uV=Ee(lV,[["__scopeId","data-v-7a5d6d6e"]]),cV=["disabled","for"],dV={key:0},hV=["checked","disabled"],fV={key:1},pV=["disabled","for"],mV={key:0},vV=["checked","disabled"],gV={key:2},yV={inheritAttrs:!1},bV=ge({...yV,__name:"KInputSwitch",props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:""},labelPosition:{type:String,default:"right",validator:e=>dk.includes(e)},disabled:{type:Boolean,default:!1},disabledTooltipText:{type:String,default:""},enabledIcon:{type:Boolean,default:!1}},emits:["change","input","update:modelValue"],setup(e,{emit:t}){const n=e,r=Xn(),a=B(()=>{if(n.disabled!==void 0&&n.disabled!==!1)return r;const i=Object.assign({},r);return delete i.class,delete i.disabled,i}),o=i=>{n.modelValue!==i.target.checked&&(t("change",i.target.checked),t("input",i.target.checked),t("update:modelValue",i.target.checked))};return(i,s)=>e.disabled&&e.disabledTooltipText?(C(),se(ei,{key:0,label:e.disabledTooltipText},{default:F(()=>[O("label",{class:q(["k-switch k-input-switch",[i.$attrs.class]]),disabled:e.disabled,for:i.$attrs.id?String(i.$attrs.id):void 0},[(e.label||i.$slots.label)&&e.labelPosition==="left"?(C(),S("span",dV,[z(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0),O("input",Ke({checked:e.modelValue,disabled:e.disabled,type:"checkbox"},a.value,{onChange:o,onInput:o}),null,16,hV),O("div",{class:q(["switch-control",e.labelPosition==="right"?"has-label-right":"has-label-left"])},null,2),(e.label||i.$slots.label)&&e.labelPosition==="right"?(C(),S("span",fV,[z(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0)],10,cV)]),_:3},8,["label"])):(C(),S("label",{key:1,class:q(["k-switch k-input-switch",[i.$attrs.class,{"switch-with-icon":e.enabledIcon}]]),disabled:e.disabled?e.disabled:void 0,for:i.$attrs.id?String(i.$attrs.id):void 0},[(e.label||i.$slots.label)&&e.labelPosition==="left"?(C(),S("span",mV,[z(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0),O("input",Ke({checked:e.modelValue,disabled:e.disabled?e.disabled:void 0},a.value,{type:"checkbox",onChange:o,onInput:o}),null,16,vV),O("div",{class:q(["switch-control",e.labelPosition==="right"?"has-label-right":"has-label-left"])},null,2),e.enabledIcon&&e.modelValue===!0?(C(),se(Be,{key:1,color:`var(--white, var(--kui-color-text-inverse, ${pe(Nu)}))`,icon:"check"},null,8,["color"])):$("",!0),(e.label||i.$slots.label)&&e.labelPosition==="right"?(C(),S("span",gV,[z(i.$slots,"label",{},()=>[J(V(e.label),1)],!0)])):$("",!0)],10,pV))}}),wV=Ee(bV,[["__scopeId","data-v-12ec837e"]]),kV={},CV=e=>(Ln("data-v-4cc89065"),e=e(),Rn(),e),EV={class:"k-menu-item-divider"},xV=CV(()=>O("hr",null,null,-1)),SV=[xV];function _V(e,t){return C(),S("div",EV,SV)}const I5=Ee(kV,[["render",_V],["__scopeId","data-v-4cc89065"]]),TV=["id","data-testid","test-mode"],DV={key:0,class:"span-icon-container"},MV={key:0},AV={key:1},OV={key:2},PV=ge({__name:"KMenuItem",props:{item:{type:Object,default:null},expandable:{type:Boolean,default:!1},type:{type:String,default:"string",validator:e=>hk.includes(e)},lastMenuItem:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1}},emits:["clicked"],setup(e,{emit:t}){const n=e,r=It(),a=j(!1),o=B(()=>n.testMode?"test-menuitem-id-1234":pa()),i=()=>{n.expandable?a.value=!a.value:t("clicked",r.itemTitle||n.item)};return(s,l)=>(C(),S("div",{id:o.value,class:q(["k-menu-item",[a.value?"title-dark":"",{"expando-item":e.expandable}]]),"data-testid":e.item?`${e.item.title.replace(/ /gi,"-")}-menu-item`:"menu-item","test-mode":!!e.testMode||void 0},[e.type!=="divider"?(C(),se(We,{key:0,"aria-expanded":a.value&&e.expandable||void 0,"aria-labelledby":o.value||void 0,class:"menu-button","is-rounded":!1,type:"button",onClick:i},{default:F(()=>[O("span",{class:q(["span-menu-title",a.value&&e.expandable?"title-dark":""])},[z(s.$slots,"itemTitle",{},()=>[J(V(e.item?e.item.title:""),1)],!0)],2),e.expandable?(C(),S("span",DV,[G(Be,{color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,icon:a.value?"chevronUp":"chevronDown",size:pe(xt)},null,8,["color","icon","size"])])):$("",!0)]),_:3},8,["aria-expanded","aria-labelledby"])):$("",!0),e.expandable?(C(),S("div",{key:1,class:q(["menu-content",a.value?"is-open":"is-closed"])},[z(s.$slots,"itemBody",{},()=>[(e.type==="string"||e.type==="divider")&&e.expandable?(C(),S("div",MV,V(e.item?e.item.description:""),1)):(e.type==="number"||e.type==="divider")&&e.expandable?(C(),S("div",AV,V(e.item?e.item.description:""),1)):$("",!0)],!0)],2)):$("",!0),!e.lastMenuItem&&(e.type==="divider"||e.expandable)?(C(),S("div",OV,[G(I5)])):$("",!0)],10,TV))}}),N5=Ee(PV,[["__scopeId","data-v-11b9797e"]]),BV={key:0,class:"clear-cta-button"},IV=ge({__name:"KMenu",props:{items:{type:Array,required:!1,default:()=>[]},actionButton:{type:String,default:""},width:{type:String,default:"284"},testMode:{type:Boolean,default:!1}},emits:["proceed"],setup(e,{emit:t}){const n=e,{getSizeFromString:r}=kn(),a=It(),o=B(()=>({width:r(n.width)})),i=B(()=>!!a.actionButton),s=()=>{t("proceed")};return(l,u)=>{const c=Gn("KButton");return C(),S("div",{class:"k-menu",style:Et(o.value)},[z(l.$slots,"body",{},()=>[O("div",null,[(C(!0),S(Me,null,ot(e.items,(d,h)=>(C(),se(N5,{key:d.title+h,class:q({"last-menu-item":h===e.items.length-1}),expandable:d.expandable,item:d,"last-menu-item":h===e.items.length-1,"test-mode":!!e.testMode||void 0,type:d.type},null,8,["class","expandable","item","last-menu-item","test-mode","type"]))),128))])],!0),i.value?(C(),S("div",BV,[G(I5),z(l.$slots,"actionButton",{},()=>[G(c,{onClick:s,onKeyup:jt(s,["enter"])},null,8,["onKeyup"])],!0)])):$("",!0)],4)}}}),NV=Ee(IV,[["__scopeId","data-v-6a43a941"]]);/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var L5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Xl=L5.join(","),R5=typeof Element>"u",Ya=R5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jl=!R5&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},eu=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=a===""||a==="true",i=o||n&&t&&e(t.parentNode);return i},LV=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},$5=function(e,t,n){if(eu(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Xl));return t&&Ya.call(e,Xl)&&r.unshift(e),r=r.filter(n),r},H5=function e(t,n,r){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!eu(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,u=e(l,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:i,candidates:u})}else{var c=Ya.call(i,Xl);c&&r.filter(i)&&(n||!t.includes(i))&&a.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),h=!eu(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&h){var f=e(d===!0?i.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:i,candidates:f})}else o.unshift.apply(o,i.children)}}return a},z5=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ba=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LV(e))&&!z5(e)?0:e.tabIndex},RV=function(e,t){var n=Ba(e);return n<0&&t&&!z5(e)?0:n},$V=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},F5=function(e){return e.tagName==="INPUT"},HV=function(e){return F5(e)&&e.type==="hidden"},zV=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},FV=function(e,t){for(var n=0;nsummary:first-of-type"),o=a?e.parentElement:e;if(Ya.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof r=="function"){for(var i=e;e;){var s=e.parentElement,l=Jl(e);if(s&&!s.shadowRoot&&r(s)===!0)return om(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=i}if(YV(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return om(e);return!1},KV=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},WV=function e(t){var n=[],r=[];return t.forEach(function(a,o){var i=!!a.scopeParent,s=i?a.scopeParent:a,l=RV(s,i),u=i?e(a.candidates):s;l===0?i?n.push.apply(n,u):n.push(s):r.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:u})}),r.sort($V).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(n)},qV=function(e,t){t=t||{};var n;return t.getShadowRoot?n=H5([e],t.includeContainer,{filter:A0.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:GV}):n=$5(e,t.includeContainer,A0.bind(null,t)),WV(n)},QV=function(e,t){t=t||{};var n;return t.getShadowRoot?n=H5([e],t.includeContainer,{filter:tu.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=$5(e,t.includeContainer,tu.bind(null,t)),n},uo=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ya.call(e,Xl)===!1?!1:A0(t,e)},XV=L5.concat("iframe").join(","),Nc=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ya.call(e,XV)===!1?!1:tu(t,e)};/*! +*/var L5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Xl=L5.join(","),R5=typeof Element>"u",Ya=R5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jl=!R5&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},eu=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=a===""||a==="true",i=o||n&&t&&e(t.parentNode);return i},LV=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},$5=function(e,t,n){if(eu(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Xl));return t&&Ya.call(e,Xl)&&r.unshift(e),r=r.filter(n),r},H5=function e(t,n,r){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!eu(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,u=e(l,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:i,candidates:u})}else{var c=Ya.call(i,Xl);c&&r.filter(i)&&(n||!t.includes(i))&&a.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),h=!eu(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&h){var f=e(d===!0?i.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:i,candidates:f})}else o.unshift.apply(o,i.children)}}return a},F5=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ba=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LV(e))&&!F5(e)?0:e.tabIndex},RV=function(e,t){var n=Ba(e);return n<0&&t&&!F5(e)?0:n},$V=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},z5=function(e){return e.tagName==="INPUT"},HV=function(e){return z5(e)&&e.type==="hidden"},FV=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},zV=function(e,t){for(var n=0;nsummary:first-of-type"),o=a?e.parentElement:e;if(Ya.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof r=="function"){for(var i=e;e;){var s=e.parentElement,l=Jl(e);if(s&&!s.shadowRoot&&r(s)===!0)return om(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=i}if(YV(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return om(e);return!1},KV=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},WV=function e(t){var n=[],r=[];return t.forEach(function(a,o){var i=!!a.scopeParent,s=i?a.scopeParent:a,l=RV(s,i),u=i?e(a.candidates):s;l===0?i?n.push.apply(n,u):n.push(s):r.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:u})}),r.sort($V).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(n)},qV=function(e,t){t=t||{};var n;return t.getShadowRoot?n=H5([e],t.includeContainer,{filter:A0.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:GV}):n=$5(e,t.includeContainer,A0.bind(null,t)),WV(n)},QV=function(e,t){t=t||{};var n;return t.getShadowRoot?n=H5([e],t.includeContainer,{filter:tu.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=$5(e,t.includeContainer,tu.bind(null,t)),n},uo=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ya.call(e,Xl)===!1?!1:A0(t,e)},XV=L5.concat("iframe").join(","),Nc=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ya.call(e,XV)===!1?!1:tu(t,e)};/*! * focus-trap 7.5.2 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},nK=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},rK=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Yi=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},aK=function(e){return Yi(e)&&!e.shiftKey},oK=function(e){return Yi(e)&&e.shiftKey},um=function(e){return setTimeout(e,0)},cm=function(e,t){var n=-1;return e.every(function(r,a){return t(r)?(n=a,!1):!0}),n},Ci=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?A-1:0),N=1;N=0)x=n.activeElement;else{var k=o.tabbableGroups[0],A=k&&k.firstTabbableNode;x=A||u("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},d=function(){if(o.containerGroups=o.containers.map(function(x){var k=qV(x,a.tabbableOptions),A=QV(x,a.tabbableOptions),M=k.length>0?k[0]:void 0,N=k.length>0?k[k.length-1]:void 0,ee=A.find(function(Q){return uo(Q)}),ae=A.slice().reverse().find(function(Q){return uo(Q)}),oe=!!k.find(function(Q){return Ba(Q)>0});return{container:x,tabbableNodes:k,focusableNodes:A,posTabIndexesFound:oe,firstTabbableNode:M,lastTabbableNode:N,firstDomTabbableNode:ee,lastDomTabbableNode:ae,nextTabbableNode:function(Q){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_e=k.indexOf(Q);return _e<0?ye?A.slice(A.indexOf(Q)+1).find(function(Re){return uo(Re)}):A.slice(0,A.indexOf(Q)).reverse().find(function(Re){return uo(Re)}):k[_e+(ye?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(x){return x.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function x(k){if(k!==!1&&k!==n.activeElement){if(!k||!k.focus){x(c());return}k.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=k,nK(k)&&k.select()}},f=function(x){var k=u("setReturnFocus",x);return k||(k===!1?!1:x)},g=function(x){var k=x.target,A=x.event,M=x.isBackward,N=M===void 0?!1:M;k=k||qs(A),d();var ee=null;if(o.tabbableGroups.length>0){var ae=l(k,A),oe=ae>=0?o.containerGroups[ae]:void 0;if(ae<0)N?ee=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:ee=o.tabbableGroups[0].firstTabbableNode;else if(N){var Q=cm(o.tabbableGroups,function(fe){var $e=fe.firstTabbableNode;return k===$e});if(Q<0&&(oe.container===k||Nc(k,a.tabbableOptions)&&!uo(k,a.tabbableOptions)&&!oe.nextTabbableNode(k,!1))&&(Q=ae),Q>=0){var ye=Q===0?o.tabbableGroups.length-1:Q-1,_e=o.tabbableGroups[ye];ee=Ba(k)>=0?_e.lastTabbableNode:_e.lastDomTabbableNode}else Yi(A)||(ee=oe.nextTabbableNode(k,!1))}else{var Re=cm(o.tabbableGroups,function(fe){var $e=fe.lastTabbableNode;return k===$e});if(Re<0&&(oe.container===k||Nc(k,a.tabbableOptions)&&!uo(k,a.tabbableOptions)&&!oe.nextTabbableNode(k))&&(Re=ae),Re>=0){var Ue=Re===o.tabbableGroups.length-1?0:Re+1,Fe=o.tabbableGroups[Ue];ee=Ba(k)>=0?Fe.firstTabbableNode:Fe.firstDomTabbableNode}else Yi(A)||(ee=oe.nextTabbableNode(k))}}else ee=u("fallbackFocus");return ee},y=function(x){var k=qs(x);if(!(l(k,x)>=0)){if(Ci(a.clickOutsideDeactivates,x)){i.deactivate({returnFocus:a.returnFocusOnDeactivate});return}Ci(a.allowOutsideClick,x)||x.preventDefault()}},v=function(x){var k=qs(x),A=l(k,x)>=0;if(A||k instanceof Document)A&&(o.mostRecentlyFocusedNode=k);else{x.stopImmediatePropagation();var M,N=!0;if(o.mostRecentlyFocusedNode)if(Ba(o.mostRecentlyFocusedNode)>0){var ee=l(o.mostRecentlyFocusedNode),ae=o.containerGroups[ee].tabbableNodes;if(ae.length>0){var oe=ae.findIndex(function(Q){return Q===o.mostRecentlyFocusedNode});oe>=0&&(a.isKeyForward(o.recentNavEvent)?oe+1=0&&(M=ae[oe-1],N=!1))}}else o.containerGroups.some(function(Q){return Q.tabbableNodes.some(function(ye){return Ba(ye)>0})})||(N=!1);else N=!1;N&&(M=g({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),h(M||o.mostRecentlyFocusedNode||c())}o.recentNavEvent=void 0},p=function(x){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=x;var A=g({event:x,isBackward:k});A&&(Yi(x)&&x.preventDefault(),h(A))},b=function(x){if(rK(x)&&Ci(a.escapeDeactivates,x)!==!1){x.preventDefault(),i.deactivate();return}(a.isKeyForward(x)||a.isKeyBackward(x))&&p(x,a.isKeyBackward(x))},m=function(x){var k=qs(x);l(k,x)>=0||Ci(a.clickOutsideDeactivates,x)||Ci(a.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},w=function(){if(o.active)return lm.activateTrap(r,i),o.delayInitialFocusTimer=a.delayInitialFocus?um(function(){h(c())}):h(c()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",y,{capture:!0,passive:!1}),n.addEventListener("touchstart",y,{capture:!0,passive:!1}),n.addEventListener("click",m,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),i},D=function(){if(o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",y,!0),n.removeEventListener("touchstart",y,!0),n.removeEventListener("click",m,!0),n.removeEventListener("keydown",b,!0),i},I=function(x){var k=x.some(function(A){var M=Array.from(A.removedNodes);return M.some(function(N){return N===o.mostRecentlyFocusedNode})});k&&h(c())},L=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,T=function(){L&&(L.disconnect(),o.active&&!o.paused&&o.containers.map(function(x){L.observe(x,{subtree:!0,childList:!0})}))};return i={get active(){return o.active},get paused(){return o.paused},activate:function(x){if(o.active)return this;var k=s(x,"onActivate"),A=s(x,"onPostActivate"),M=s(x,"checkCanFocusTrap");M||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,k==null||k();var N=function(){M&&d(),w(),T(),A==null||A()};return M?(M(o.containers.concat()).then(N,N),this):(N(),this)},deactivate:function(x){if(!o.active)return this;var k=sm({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},x);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,D(),o.active=!1,o.paused=!1,T(),lm.deactivateTrap(r,i);var A=s(k,"onDeactivate"),M=s(k,"onPostDeactivate"),N=s(k,"checkCanReturnFocus"),ee=s(k,"returnFocus","returnFocusOnDeactivate");A==null||A();var ae=function(){um(function(){ee&&h(f(o.nodeFocusedBeforeActivation)),M==null||M()})};return ee&&N?(N(f(o.nodeFocusedBeforeActivation)).then(ae,ae),this):(ae(),this)},pause:function(x){if(o.paused||!o.active)return this;var k=s(x,"onPause"),A=s(x,"onPostPause");return o.paused=!0,k==null||k(),D(),T(),A==null||A(),this},unpause:function(x){if(!o.paused||!o.active)return this;var k=s(x,"onUnpause"),A=s(x,"onPostUnpause");return o.paused=!1,k==null||k(),d(),w(),T(),A==null||A(),this},updateContainerElements:function(x){var k=[].concat(x).filter(Boolean);return o.containers=k.map(function(A){return typeof A=="string"?n.querySelector(A):A}),o.active&&d(),T(),this}},i.updateContainerElements(e),i};/*! +*/function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},nK=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},rK=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Yi=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},aK=function(e){return Yi(e)&&!e.shiftKey},oK=function(e){return Yi(e)&&e.shiftKey},um=function(e){return setTimeout(e,0)},cm=function(e,t){var n=-1;return e.every(function(r,a){return t(r)?(n=a,!1):!0}),n},Ci=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?A-1:0),N=1;N=0)x=n.activeElement;else{var k=o.tabbableGroups[0],A=k&&k.firstTabbableNode;x=A||u("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},d=function(){if(o.containerGroups=o.containers.map(function(x){var k=qV(x,a.tabbableOptions),A=QV(x,a.tabbableOptions),M=k.length>0?k[0]:void 0,N=k.length>0?k[k.length-1]:void 0,ee=A.find(function(Q){return uo(Q)}),ae=A.slice().reverse().find(function(Q){return uo(Q)}),oe=!!k.find(function(Q){return Ba(Q)>0});return{container:x,tabbableNodes:k,focusableNodes:A,posTabIndexesFound:oe,firstTabbableNode:M,lastTabbableNode:N,firstDomTabbableNode:ee,lastDomTabbableNode:ae,nextTabbableNode:function(Q){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_e=k.indexOf(Q);return _e<0?ye?A.slice(A.indexOf(Q)+1).find(function(Re){return uo(Re)}):A.slice(0,A.indexOf(Q)).reverse().find(function(Re){return uo(Re)}):k[_e+(ye?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(x){return x.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function x(k){if(k!==!1&&k!==n.activeElement){if(!k||!k.focus){x(c());return}k.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=k,nK(k)&&k.select()}},f=function(x){var k=u("setReturnFocus",x);return k||(k===!1?!1:x)},g=function(x){var k=x.target,A=x.event,M=x.isBackward,N=M===void 0?!1:M;k=k||qs(A),d();var ee=null;if(o.tabbableGroups.length>0){var ae=l(k,A),oe=ae>=0?o.containerGroups[ae]:void 0;if(ae<0)N?ee=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:ee=o.tabbableGroups[0].firstTabbableNode;else if(N){var Q=cm(o.tabbableGroups,function(fe){var $e=fe.firstTabbableNode;return k===$e});if(Q<0&&(oe.container===k||Nc(k,a.tabbableOptions)&&!uo(k,a.tabbableOptions)&&!oe.nextTabbableNode(k,!1))&&(Q=ae),Q>=0){var ye=Q===0?o.tabbableGroups.length-1:Q-1,_e=o.tabbableGroups[ye];ee=Ba(k)>=0?_e.lastTabbableNode:_e.lastDomTabbableNode}else Yi(A)||(ee=oe.nextTabbableNode(k,!1))}else{var Re=cm(o.tabbableGroups,function(fe){var $e=fe.lastTabbableNode;return k===$e});if(Re<0&&(oe.container===k||Nc(k,a.tabbableOptions)&&!uo(k,a.tabbableOptions)&&!oe.nextTabbableNode(k))&&(Re=ae),Re>=0){var Ue=Re===o.tabbableGroups.length-1?0:Re+1,ze=o.tabbableGroups[Ue];ee=Ba(k)>=0?ze.firstTabbableNode:ze.firstDomTabbableNode}else Yi(A)||(ee=oe.nextTabbableNode(k))}}else ee=u("fallbackFocus");return ee},y=function(x){var k=qs(x);if(!(l(k,x)>=0)){if(Ci(a.clickOutsideDeactivates,x)){i.deactivate({returnFocus:a.returnFocusOnDeactivate});return}Ci(a.allowOutsideClick,x)||x.preventDefault()}},v=function(x){var k=qs(x),A=l(k,x)>=0;if(A||k instanceof Document)A&&(o.mostRecentlyFocusedNode=k);else{x.stopImmediatePropagation();var M,N=!0;if(o.mostRecentlyFocusedNode)if(Ba(o.mostRecentlyFocusedNode)>0){var ee=l(o.mostRecentlyFocusedNode),ae=o.containerGroups[ee].tabbableNodes;if(ae.length>0){var oe=ae.findIndex(function(Q){return Q===o.mostRecentlyFocusedNode});oe>=0&&(a.isKeyForward(o.recentNavEvent)?oe+1=0&&(M=ae[oe-1],N=!1))}}else o.containerGroups.some(function(Q){return Q.tabbableNodes.some(function(ye){return Ba(ye)>0})})||(N=!1);else N=!1;N&&(M=g({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),h(M||o.mostRecentlyFocusedNode||c())}o.recentNavEvent=void 0},p=function(x){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=x;var A=g({event:x,isBackward:k});A&&(Yi(x)&&x.preventDefault(),h(A))},b=function(x){if(rK(x)&&Ci(a.escapeDeactivates,x)!==!1){x.preventDefault(),i.deactivate();return}(a.isKeyForward(x)||a.isKeyBackward(x))&&p(x,a.isKeyBackward(x))},m=function(x){var k=qs(x);l(k,x)>=0||Ci(a.clickOutsideDeactivates,x)||Ci(a.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},w=function(){if(o.active)return lm.activateTrap(r,i),o.delayInitialFocusTimer=a.delayInitialFocus?um(function(){h(c())}):h(c()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",y,{capture:!0,passive:!1}),n.addEventListener("touchstart",y,{capture:!0,passive:!1}),n.addEventListener("click",m,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),i},D=function(){if(o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",y,!0),n.removeEventListener("touchstart",y,!0),n.removeEventListener("click",m,!0),n.removeEventListener("keydown",b,!0),i},I=function(x){var k=x.some(function(A){var M=Array.from(A.removedNodes);return M.some(function(N){return N===o.mostRecentlyFocusedNode})});k&&h(c())},L=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,T=function(){L&&(L.disconnect(),o.active&&!o.paused&&o.containers.map(function(x){L.observe(x,{subtree:!0,childList:!0})}))};return i={get active(){return o.active},get paused(){return o.paused},activate:function(x){if(o.active)return this;var k=s(x,"onActivate"),A=s(x,"onPostActivate"),M=s(x,"checkCanFocusTrap");M||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,k==null||k();var N=function(){M&&d(),w(),T(),A==null||A()};return M?(M(o.containers.concat()).then(N,N),this):(N(),this)},deactivate:function(x){if(!o.active)return this;var k=sm({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},x);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,D(),o.active=!1,o.paused=!1,T(),lm.deactivateTrap(r,i);var A=s(k,"onDeactivate"),M=s(k,"onPostDeactivate"),N=s(k,"checkCanReturnFocus"),ee=s(k,"returnFocus","returnFocusOnDeactivate");A==null||A();var ae=function(){um(function(){ee&&h(f(o.nodeFocusedBeforeActivation)),M==null||M()})};return ee&&N?(N(f(o.nodeFocusedBeforeActivation)).then(ae,ae),this):(ae(),this)},pause:function(x){if(o.paused||!o.active)return this;var k=s(x,"onPause"),A=s(x,"onPostPause");return o.paused=!0,k==null||k(),D(),T(),A==null||A(),this},unpause:function(x){if(!o.paused||!o.active)return this;var k=s(x,"onUnpause"),A=s(x,"onPostUnpause");return o.paused=!1,k==null||k(),d(),w(),T(),A==null||A(),this},updateContainerElements:function(x){var k=[].concat(x).filter(Boolean);return o.containers=k.map(function(A){return typeof A=="string"?n.querySelector(A):A}),o.active&&d(),T(),this}},i.updateContainerElements(e),i};/*! * focus-trap-vue v3.3.1 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const lK={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},uK=ge({props:Object.assign({active:{type:Boolean,default:!0}},lK),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(e,{slots:t,emit:n}){let r;const a=j(null),o=B(()=>{const s=a.value;return s&&(s instanceof HTMLElement?s:s.$el)}),i=()=>r||(r=sK(o.value,{escapeDeactivates:e.escapeDeactivates,allowOutsideClick:e.allowOutsideClick,returnFocusOnDeactivate:e.returnFocusOnDeactivate,clickOutsideDeactivates:e.clickOutsideDeactivates,onActivate:()=>{n("update:active",!0),n("activate")},onDeactivate:()=>{n("update:active",!1),n("deactivate")},onPostActivate:()=>n("postActivate"),onPostDeactivate:()=>n("postDeactivate"),initialFocus:e.initialFocus,fallbackFocus:e.fallbackFocus,tabbableOptions:e.tabbableOptions}));return ft(()=>{Le(()=>e.active,s=>{s&&o.value?i().activate():r&&(r.deactivate(),(!o.value||o.value.nodeType===Node.COMMENT_NODE)&&(r=null))},{immediate:!0,flush:"post"})}),gr(()=>{r&&r.deactivate(),r=null}),{activate(){i(),r.activate()},deactivate(){r&&r.deactivate()},renderImpl(){if(!t.default)return null;const s=t.default().filter(l=>l.type!==wn);return!s||!s.length||s.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),s):$r(s[0],{ref:a})}}}}),cK=["aria-label"],dK={class:"k-modal-dialog modal-dialog"},hK={key:0,class:"close-button"},fK={class:"k-modal-content modal-content"},pK={key:0,class:"k-modal-header-image"},mK={class:"k-modal-footer modal-footer"},vK={class:"k-modal-action-buttons"},gK=ge({__name:"KModal",props:{title:{type:String,required:!0},hideTitle:{type:Boolean,default:!1},hideDismissIcon:{type:Boolean,default:!1},dismissButtonTheme:{type:String,default:"dark",validator:e=>sk.includes(e)},content:{type:String,default:""},textAlign:{type:String,default:"center",validator:e=>lk.includes(e)},isVisible:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Submit"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonText:{type:String,default:"Cancel"},cancelButtonAppearance:{type:String,default:"outline"},hideCancelButton:{type:Boolean,default:!1},tabbableOptions:{type:Object,default:()=>({})},testMode:{type:Boolean,default:!1}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=It(),a=j(null),o=j(null),i=B(()=>!!r["header-image"]),s=B(()=>n.dismissButtonTheme==="light"?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:`var(--grey-600, var(--kui-color-text-neutral-stronger, ${bw}))`),l=h=>{n.isVisible&&h.keyCode===27&&u(!0)},u=(h=!1,f)=>{var g,y;(h||(y=(g=f==null?void 0:f.target)==null?void 0:g.classList)!=null&&y.contains("k-modal-backdrop"))&&t("canceled")},c=()=>{t("proceed")};Cv(()=>{var h,f;typeof document<"u"&&(n.isVisible?(h=document==null?void 0:document.body)==null||h.classList.add("k-modal-overflow-hidden"):(f=document==null?void 0:document.body)==null||f.classList.remove("k-modal-overflow-hidden"))});const d=async h=>{var f,g;h?(await on(),await new Promise(y=>setTimeout(y,0)),(f=a.value)==null||f.activate()):(g=a.value)==null||g.deactivate()};return Le(()=>n.isVisible,async h=>{h?await d(!0):await d(!1)},{immediate:!0}),ft(()=>{var h;document.addEventListener("keydown",l),n.isVisible&&((h=document==null?void 0:document.body)==null||h.classList.add("k-modal-overflow-hidden"))}),gr(()=>{var h;document.removeEventListener("keydown",l),(h=document==null?void 0:document.body)==null||h.classList.remove("k-modal-overflow-hidden")}),(h,f)=>{var g;return e.isVisible?(C(),S("div",{key:0,"aria-label":e.title,"aria-modal":"true",class:"k-modal",role:"dialog"},[O("div",{ref_key:"modalOuter",ref:o,class:"k-modal-backdrop modal-backdrop",onClick:f[3]||(f[3]=y=>u(!1,y))},[G(pe(uK),{ref_key:"focusTrap",ref:a,active:!1,"fallback-focus":(g=o.value)==null?void 0:g.$el,"tabbable-options":e.tabbableOptions},{default:z(()=>[O("div",dK,[i.value&&!e.hideDismissIcon?(C(),S("div",hK,[G(We,{"aria-label":"Close",onClick:f[0]||(f[0]=y=>u(!0))},{default:z(()=>[G(Be,{color:s.value,icon:"close",size:pe(xt)},null,8,["color","size"])]),_:1})])):$("",!0),O("div",fK,[i.value?(C(),S("div",pK,[F(h.$slots,"header-image",{},void 0,!0)])):$("",!0),h.$slots["header-content"]||!e.hideTitle?(C(),S("div",{key:1,"aria-level":"2",class:q(["k-modal-header modal-header",{"header-left":e.textAlign==="left","header-centered":e.textAlign==="center","header-right":e.textAlign==="right","has-header-image":i.value}]),role:"heading"},[F(h.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)],2)):$("",!0),O("div",{class:q(["k-modal-body modal-body",{"content-left":e.textAlign==="left","content-centered":e.textAlign==="center","content-right":e.textAlign==="right"}])},[F(h.$slots,"body-content",{},()=>[J(V(e.content),1)],!0)],2),O("div",mK,[F(h.$slots,"footer-content",{},()=>[e.hideCancelButton?$("",!0):(C(),se(We,{key:0,appearance:e.cancelButtonAppearance,onClick:f[1]||(f[1]=y=>u(!0)),onKeyup:f[2]||(f[2]=jt(y=>u(!0),["esc"]))},{default:z(()=>[J(V(e.cancelButtonText),1)]),_:1},8,["appearance"])),O("div",vK,[F(h.$slots,"action-buttons",{},()=>[G(We,{appearance:e.actionButtonAppearance,onClick:c,onKeyup:jt(c,["enter"])},{default:z(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance","onKeyup"])],!0)])],!0)])])])]),_:3},8,["fallback-focus","tabbable-options"])],512)],8,cK)):$("",!0)}}}),j5=Ee(gK,[["__scopeId","data-v-8f117654"]]),yK=["aria-label","onKeyup"],bK={class:"k-modal-fullscreen-body-header"},wK={key:0,class:"body-header"},kK={key:1,class:"body-header-description"},CK={class:"k-modal-fullscreen-body"},EK={class:"k-modal-fullscreen-header"},xK={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},SK={class:"k-modal-fullscreen-title"},_K={class:"header-icon"},TK={class:"header-content"},DK={class:"k-modal-fullscreen-action"},MK={class:"k-modal-fullscreen-action-buttons"},AK={key:0,class:"k-modal-fullscreen-footer"},OK={class:"k-modal-fullscreen-action"},PK={class:"k-modal-fullscreen-action-buttons"},BK=ge({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"outline"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=j(null),a=B(()=>!!n.isVisible);Le(()=>n.isVisible,async()=>{a.value?(document.body.style.overflow="hidden",await on(),r.value&&r.value.focus()):document.body.style.overflow=""});const o=l=>{n.isVisible&&(l.keyCode===27?i():l.keyCode===13&&s())},i=()=>{t("canceled")},s=()=>{t("proceed")};return ft(()=>{document.addEventListener("keydown",o)}),Wa(()=>{document.removeEventListener("keydown",o)}),gr(()=>{document.body.style.overflow=""}),(l,u)=>e.isVisible?(C(),S("div",{key:0,"aria-label":e.title,"aria-modal":"true",class:"k-modal-fullscreen isOpen",role:"dialog",onKeyup:[jt(s,["enter"]),jt(i,["esc"])]},[O("div",{ref_key:"modalBodyContent",ref:r,class:q(["k-modal-fullscreen-dialog",{"has-footer":l.$slots["footer-content"]}]),tabindex:"0"},[O("div",bK,[l.$slots["body-header"]||e.bodyHeader?(C(),S("div",wK,[F(l.$slots,"body-header",{},()=>[J(V(e.bodyHeader),1)],!0)])):$("",!0),l.$slots["body-header-description"]||e.bodyHeaderDescription?(C(),S("div",kK,[F(l.$slots,"body-header-description",{},()=>[J(V(e.bodyHeaderDescription),1)],!0)])):$("",!0)]),O("div",CK,[F(l.$slots,"default",{},void 0,!0)]),O("div",EK,[O("div",xK,[O("div",SK,[O("span",_K,[F(l.$slots,"header-icon",{},()=>[G(Be,{icon:e.iconString},null,8,["icon"])],!0)]),O("span",TK,[F(l.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)])]),O("div",DK,[O("div",MK,[F(l.$slots,"action-buttons",{},()=>[G(We,{appearance:e.cancelButtonAppearance,class:"cancel-button",onClick:i},{default:z(()=>[J(V(e.cancelButtonText),1)]),_:1},8,["appearance"]),G(We,{appearance:e.actionButtonAppearance,class:"proceed-button",onClick:s},{default:z(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])]),l.$slots["footer-content"]?(C(),S("div",AK,[F(l.$slots,"footer-content",{},void 0,!0),O("div",OK,[O("div",PK,[F(l.$slots,"action-buttons",{},()=>[G(We,{appearance:e.actionButtonAppearance,class:"proceed-button",onClick:s},{default:z(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])):$("",!0)],2)],40,yK)):$("",!0)}}),IK=Ee(BK,[["__scopeId","data-v-0b0d49d9"]]),NK=["data-testid"],LK={class:"k-multiselect-item-container",role:"option"},RK=["disabled","value"],$K={class:"k-multiselect-item-label"},HK={class:"k-multiselect-selected-icon-container"},zK=ge({__name:"KMultiselectItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0&&e.value!==void 0}},emits:["selected"],setup(e,{emit:t}){const n=e,r=()=>{n.item.disabled||t("selected",n.item)};return(a,o)=>(C(),S("div",{key:e.item.key,class:"k-multiselect-item","data-testid":`k-multiselect-item-${e.item.value}`,role:"listitem"},[O("div",LK,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value,onClick:r},[O("span",$K,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",HK,[e.item.disabled?(C(),se(va(e.item.disabledTooltipText?"KTooltip":"span"),{key:0,label:e.item.disabledTooltipText?e.item.disabledTooltipText:void 0,placement:"left"},{default:z(()=>[G(Be,{class:q(["selected-item-icon",{"is-item-selected":e.item.selected}]),color:e.item.selected?"currentColor":`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:"lock",size:pe(ws)},null,8,["class","color","size"])]),_:1},8,["label"])):e.item.selected?(C(),se(Be,{key:1,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,RK)])],8,NK))}}),nu=Ee(zK,[["__scopeId","data-v-218a937a"]]),FK={class:"k-multiselect-group-title"},jK=ge({__name:"KMultiselectItems",props:{items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)}},emits:["selected"],setup(e,{emit:t}){const n=e,r=(s,l)=>t("selected",s,l),a=B(()=>n.items.filter(s=>!s.group)),o=B(()=>[...new Set(n.items.filter(s=>s.group).map(s=>s.group))].sort((s,l)=>s.toLowerCase().localeCompare(l.toLowerCase()))),i=s=>n.items.filter(l=>l.group===s);return(s,l)=>(C(),S(Me,null,[(C(!0),S(Me,null,ot(a.value,(u,c)=>(C(),se(nu,{key:`${u.key?u.key:c}-item`,item:u,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(C(!0),S(Me,null,ot(o.value,u=>(C(),S("div",{key:`${u}-group`,class:"k-multiselect-group-container"},[O("span",FK,V(u),1),(C(!0),S(Me,null,ot(i(u),(c,d)=>(C(),se(nu,{key:`${c.key?c.key:d}-item`,item:c,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:c},void 0,!0)]),_:2},1032,["item"]))),128))]))),128))],64))}}),UK=Ee(jK,[["__scopeId","data-v-6516d010"]]),nf=e=>(Ln("data-v-09b6212d"),e=e(),Rn(),e),ZK=["id"],YK=["id"],VK={class:"k-multiselect-icon"},KK=["id"],GK={class:"select-item-description"},WK=nf(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),qK=nf(()=>O("div",{class:"select-item-label"}," No results found ",-1)),QK=nf(()=>O("div",{class:"select-item-desc"}," Please adjust the criteria and try again ",-1)),XK={key:1,"aria-hidden":"true",class:"staging-area"},JK=["id"],eG=e=>{const t=[];return e.forEach(n=>t.push(n.value)),t},tG=e=>{const t=eG(e),n=new Set(t);return t.length===n.size},nG={inheritAttrs:!1},rG=ge({...nG,__name:"KMultiselect",props:{modelValue:{type:Array,default:()=>[]},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},placeholder:{type:String,default:""},kpopAttributes:{type:Object,default:()=>({popoverClasses:""})},dropdownMaxHeight:{type:String,default:"300"},width:{type:String,default:""},selectedRowCount:{type:Number,default:2},collapsedContext:{type:Boolean,default:!1},expandSelected:{type:Boolean,default:!1},items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)&&tG(e)},positionFixed:{type:Boolean,default:!0},filterFunc:{type:Function,default:e=>e.items.filter(t=>{var n,r;return(r=t.label)==null?void 0:r.toLowerCase().includes((n=e.query)==null?void 0:n.toLowerCase())})},autosuggest:{type:Boolean,default:!1},enableItemCreation:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},dropdownFooterText:{type:String,default:""},dropdownFooterTextPosition:{type:String,default:"sticky"}},emits:["selected","item:added","item:removed","input","change","update:modelValue","query-change"],setup(e,{emit:t}){const n=e;bs(X=>({"1517299a":U.value}));const r=Xn(),a=It(),{getSizeFromString:o,cloneDeep:i,stripRequiredLabel:s}=kn(),l=34,u=B(()=>r.required!==void 0&&String(r.required)!=="false"),c=B(()=>s(n.label,u.value)),d=B(()=>{var X,ue;return!!((X=n.labelAttributes)!=null&&X.help||(ue=n.labelAttributes)!=null&&ue.info||a["label-tooltip"])}),h={hideCaret:!0,placement:"bottomStart",popoverTimeout:0,popoverClasses:"k-multiselect-popover"},f=j(0),g=j(0),y=B(()=>n.testMode?"test-multiselect-id-1234":an()),v=B(()=>n.testMode?"test-multiselect-input-id-1234":an()),p=B(()=>n.testMode?"test-multiselect-text-id-1234":an()),b=B(()=>n.testMode?"test-multiselect-selected-id-1234":an()),m=B(()=>n.testMode?"test-multiselect-selected-staging-id-1234":an()),w=j(null),D=j(null),I=B(()=>n.selectedRowCount*l),L=j(""),T=B(()=>!(!L.value||k.value.filter(X=>X.label===L.value).length)),x=j(null),k=j([]),A=j([]),M=j([]),N=j([]),ee=j([]),ae=new Set,oe=j([]),Q=j([]),ye=B(()=>Q.value.map(X=>X.label).join(", ")),_e=j(!1),Re=j(!1),Ue=j(!1),Fe=B(()=>(r==null?void 0:r.disabled)!==void 0&&String(r==null?void 0:r.disabled)!=="false"),fe=B(()=>(r==null?void 0:r.readonly)!==void 0&&String(r==null?void 0:r.readonly)!=="false"),$e=B({get(){return n.modelValue},set(X){const ue=k.value.filter(Ce=>X.includes(Ce.value));ue.length?ce(ue):X.length||be()}}),Ae=B(()=>{const X={...r};return delete X.class,X}),je=B(()=>({...h,...n.kpopAttributes,popoverClasses:`${h.popoverClasses} ${n.kpopAttributes.popoverClasses} k-multiselect-pop`,width:ke.value+"px",maxWidth:ke.value+"px",disabled:r.disabled!==void 0&&String(r.disabled)!=="false"||r.readonly!==void 0&&String(r.readonly)!=="false"})),U=B(()=>o(n.dropdownMaxHeight)),R=B(()=>({...je.value})),K=B(()=>{const X=n.width?n.width:"300";return o(X)}),H=B(()=>({width:K.value})),te=B(()=>({width:ke.value+"px"})),E=B(()=>({width:ke.value-30+"px",maxHeight:I.value+"px",paddingRight:0})),_=X=>M.value.length&&!X?M.value.length===1?`${M.value.length} item selected`:`${M.value.length} items selected`:n.placeholder?n.placeholder:r.placeholder?String(r.placeholder||""):"Filter...",P=B(()=>n.autosuggest?k.value:n.filterFunc({items:k.value,query:L.value})),Z=X=>{r.disabled!==void 0&&String(r.disabled)!=="false"&&X.stopPropagation()},Y=(X,ue,Ce)=>{X?ue.value||(L.value="",Ce(),xe()):ue.value&&(L.value="",Ce())},W=()=>{setTimeout(()=>{const X=document.getElementById(m.value);if(n.expandSelected){g.value++;return}if(X){if(X.clientHeight>I.value){const ue=N.value.pop();ue&&!ae.has(ue.value)&&(ae.add(ue.value),ee.value.push(ue))}g.value++}},0)},ce=X=>{X.forEach(ue=>{var Ce,ut;const Ze=((Ce=k.value.filter(Ne=>Ne.value===ue.value))==null?void 0:Ce[0])||null;Ze.selected=!0,Ze.key=(ut=Ze==null?void 0:Ze.key)!=null&&ut.includes("-selected")?Ze.key:`${Ze.key}-selected`,M.value.filter(Ne=>Ne.value===Ze.value).length||(M.value.push(Ze),N.value.push(Ze))}),W()},le=(X,ue)=>{var Ce,ut,Ze,Ne;let wt=!1,pt=ue?X:((Ce=k.value.filter(Nt=>Nt.value===X.value))==null?void 0:Ce[0])||null;if(n.enableItemCreation&&pt!=null&&pt.custom&&(wt=!0),pt===null&&(pt=((ut=M.value.filter(Nt=>Nt.value===X.value))==null?void 0:ut[0])||null),pt===null)return;if(pt.selected){if(M.value=M.value.filter(Nt=>Nt.value!==X.value),N.value.filter(Nt=>Nt.value===X.value).length?N.value=N.value.filter(Nt=>Nt.value!==X.value):ae.delete(X.value)&&(ee.value=ee.value.filter(Nt=>Nt.value!==X.value)),pt.selected=!1,pt.key=(Ze=pt.key)==null?void 0:Ze.replace(/-selected/gi,""),ee.value.length){const Nt=ee.value.pop();Nt&&(N.value.push(Nt),ae.delete(Nt.value))}wt&&(k.value=k.value.filter(Nt=>Nt.value!==X.value),t("item:removed",X))}else pt.selected=!0,pt.key=(Ne=pt.key)!=null&&Ne.includes("-selected")?pt.key:`${pt.key}-selected`,M.value.push(pt),N.value.push(pt),ue&&(pt.custom=!0,k.value.push(pt)),n.expandSelected&&ie();W();const ob=M.value.map(Nt=>Nt.value);t("selected",M.value),t("change",X),t("update:modelValue",ob)},de=()=>{var X;if(!n.enableItemCreation||!L.value||!T.value)return;const ue=k.value.length+1,Ce={label:L.value+"",value:n.testMode?`test-multiselect-added-item-${ue}`:an(),key:`${(X=L.value.replace(/ /gi,"-"))==null?void 0:X.replace(/[^a-z0-9-_]/gi,"")}-${ue}`};t("item:added",Ce),le(Ce,!0),L.value=""},ie=()=>{setTimeout(()=>{var X;(X=D.value)==null||X.scrollIntoView({behavior:"smooth",block:"nearest"})},200)},xe=()=>{const X=P.value.filter(Ce=>Ce.selected),ue=P.value.filter(Ce=>!Ce.selected);A.value=X.concat(ue)},be=()=>{k.value.forEach(X=>{var ue;X.selected=!1,X.key=(ue=X==null?void 0:X.key)==null?void 0:ue.replace(/-selected/gi,""),X.custom&&t("item:removed",X)}),k.value=k.value.filter(X=>!X.custom),M.value=[],N.value=[],ee.value=[],ae.clear(),L.value="",W(),t("selected",[]),t("change",null),t("update:modelValue",[]),t("query-change","")},Se=X=>{L.value=X,t("query-change",X)},Pe=(X,ue)=>{if(X.keyCode===27){ue.value=!1;return}const Ce=document.getElementById(p.value);!ue.value&&Ce&&Ce.click()},ne=()=>{Ue.value=!0,_e.value||(_e.value=!0,t("query-change",""))};Le(g,()=>{setTimeout(()=>{const X=document.getElementById(m.value);if(n.expandSelected){oe.value=i(N.value),Q.value=[],f.value++;return}if(X)if(X.clientHeight>I.value){const ue=N.value.pop();ue&&!ae.has(ue.value)&&(ee.value.push(ue),ae.add(ue.value)),g.value++}else oe.value=i(N.value),Q.value=i(ee.value),f.value++},0)}),Le(f,()=>{x.value&&typeof x.value.updatePopper=="function"&&on(()=>{x.value.updatePopper()})}),Le(P,()=>{xe()}),Le($e,(X,ue)=>{if(JSON.stringify(X)!==JSON.stringify(ue)){const Ce=k.value.filter(ut=>X.includes(ut.value));Ce.length?ce(Ce):X.length||be()}}),Le(()=>n.items,(X,ue)=>{var Ce,ut,Ze;if(JSON.stringify(X)!==JSON.stringify(ue)){k.value=i(n.items);for(let Ne=0;Nept.value===wt.value).length||M.value.push(wt),N.value.filter(pt=>pt.value===wt.value).length||N.value.push(wt)}W()}x.value&&typeof x.value.updatePopper=="function"&&on(()=>{x.value.updatePopper()})}},{deep:!0,immediate:!0});const ke=j(300),me=()=>{var X;ke.value=((X=w.value)==null?void 0:X.clientWidth)||300},Oe=j();return ft(()=>{Oe.value=new ResizeObserver(X=>{window.requestAnimationFrame(()=>{!Array.isArray(X)||!X.length||me()})}),Oe.value.observe(w.value)}),Wa(()=>{Oe.value&&Oe.value.unobserve(w.value)}),(X,ue)=>(C(),S("div",{class:q(["k-multiselect",[X.$attrs.class]]),style:Et(H.value)},[e.label?(C(),se(Ur,Ke({key:0},e.labelAttributes,{"data-testid":e.labelAttributes["data-testid"]?e.labelAttributes["data-testid"]:"k-multiselect-label",for:y.value,required:u.value}),qa({default:z(()=>[J(V(c.value)+" ",1)]),_:2},[d.value?{name:"tooltip",fn:z(()=>[F(X.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):$("",!0),O("div",{id:y.value,"data-testid":"k-multiselect-container"},[G(pe(Iu),null,{default:z(({isToggled:Ce,toggle:ut})=>[G(Jo,Ke({ref_key:"popper",ref:x},R.value,{"on-popover-click":()=>{},"position-fixed":e.positionFixed,target:`[id='${v.value}']`,"test-mode":!!e.testMode||void 0,onClosed:()=>Y(!1,Ce,ut),onOpened:()=>Y(!0,Ce,ut)}),{content:z(()=>[O("div",{class:"k-multiselect-list",onBlur:ue[5]||(ue[5]=()=>Ue.value=!1),onClick:ue[6]||(ue[6]=Mt(()=>{},["stop"])),onFocus:ue[7]||(ue[7]=Ze=>Ue.value=!0),onMouseenter:ue[8]||(ue[8]=()=>Re.value=!0),onMouseleave:ue[9]||(ue[9]=()=>Re.value=!1)},[G(UK,{items:A.value,onSelected:le},{content:z(({item:Ze})=>[F(X.$slots,"item-template",{class:"k-multiselect-item",item:Ze},void 0,!0)]),_:3},8,["items"]),e.enableItemCreation&&T.value?(C(),se(nu,{key:"k-multiselect-new-item",class:"k-multiselect-new-item","data-testid":"k-multiselect-add-item",item:{label:`${L.value} (Add new value)`,value:"add_item"},onSelected:de},{content:z(()=>[O("div",GK,[J(V(L.value)+" ",1),WK])]),_:1},8,["item"])):$("",!0),!A.value.length&&!X.$slots.empty&&!e.enableItemCreation?(C(),se(nu,{key:"k-multiselect-empty-state",class:"k-multiselect-empty-item","data-testid":"k-multiselect-empty-item",item:{label:"No results found",value:"no_results"}},{content:z(()=>[qK,QK]),_:1})):$("",!0)],32),!e.loading&&!A.value.length?F(X.$slots,"empty",{key:0},void 0,!0):$("",!0),X.$slots["dropdown-footer-text"]||e.dropdownFooterText?(C(),S("div",{key:1,class:q(["k-multiselect-dropdown-footer-text",`k-multiselect-dropdown-footer-${e.dropdownFooterTextPosition}`])},[F(X.$slots,"dropdown-footer-text",{},()=>[J(V(e.dropdownFooterText),1)],!0)],2)):$("",!0)]),default:z(()=>[O("div",{ref_key:"multiselectRef",ref:w,class:q(["k-multiselect-trigger",{focused:Ue.value,hovered:Re.value,disabled:Fe.value,readonly:fe.value}]),"data-testid":"k-multiselect-trigger",role:"listbox",onClick:Z},[M.value.length&&(Ce.value||e.expandSelected||e.collapsedContext)?(C(),S("div",{id:b.value,key:f.value,class:q(["k-multiselect-selections",{scrollable:e.expandSelected,collapsed:e.collapsedContext&&!Ce.value}]),"data-testid":"k-multiselect-selections",style:Et(e.expandSelected?E.value:te.value)},[(C(!0),S(Me,null,ot(oe.value,(Ze,Ne)=>(C(),se(_i,{key:`${Ze.key?Ze.key:Ne}-badge`,class:q(["k-multiselect-selection-badge",{"expand-selected":e.expandSelected,"resize-badge":Ze.selected&&Ze.disabled}]),dismissable:Ze.selected&&!Ze.disabled,shape:"rectangular","truncation-tooltip":Ze.label,onClick:ue[0]||(ue[0]=Mt(()=>{},["stop"])),onDismissed:wt=>le(Ze)},{default:z(()=>[J(V(Ze.label),1)]),_:2},1032,["class","dismissable","truncation-tooltip","onDismissed"]))),128)),!e.expandSelected&&Q.value.length?(C(),se(_i,{key:0,class:"hidden-selection-count","force-tooltip":"",shape:"rectangular","truncation-tooltip":ye.value,onClick:ue[1]||(ue[1]=Mt(()=>{},["stop"]))},{default:z(()=>[J(" +"+V(Q.value.length),1)]),_:1},8,["truncation-tooltip"])):$("",!0),e.expandSelected?(C(),S("div",{key:1,ref_key:"selectionBottomRef",ref:D},null,512)):$("",!0)],14,YK)):$("",!0),O("div",VK,[!e.loading&&M.value.length&&Ce.value?(C(),se(We,{key:0,class:"k-multiselect-clear-icon","data-testid":"k-multiselect-clear-icon",onClick:be,onKeyup:jt(be,["enter"])},{default:z(()=>[G(Be,{color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"close",size:pe(ws),title:"Clear all selections"},null,8,["color","size"])]),_:1},8,["onKeyup"])):(C(),se(Be,{key:1,class:q(["k-multiselect-chevron-icon",{"in-selection-box":M.value.length}]),color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:e.loading?"spinner":"chevronDown",size:pe(xt)},null,8,["class","color","icon","size"]))]),O("div",{id:v.value,style:Et(te.value)},[!e.expandSelected&&!e.collapsedContext||(e.expandSelected||e.collapsedContext)&&(!M.value.length||Ce.value)?(C(),se(xs,Ke({key:0,id:p.value},Ae.value,{autocapitalize:"off",autocomplete:"off",class:["k-multiselect-input input-placeholder-dark",{"is-toggled":Ce.value&&M.value.length,"is-readonly":fe.value}],"data-testid":"k-multiselect-input","model-value":L.value,placeholder:_(Ce.value),readonly:fe.value?!0:void 0,type:"text",onBlur:ue[2]||(ue[2]=()=>Ue.value=!1),onClick:Ze=>{Ce.value&&Ze.stopPropagation()},onFocus:ne,onKeyup:Ze=>Pe(Ze,Ce),onMouseenter:ue[3]||(ue[3]=()=>Re.value=!0),onMouseleave:ue[4]||(ue[4]=()=>Re.value=!1),"onUpdate:modelValue":Se}),null,16,["id","class","model-value","placeholder","readonly","onClick","onKeyup"])):$("",!0)],12,KK)],2)]),_:2},1040,["position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,ZK),e.expandSelected?$("",!0):(C(),S("div",XK,[(C(),S("div",{id:m.value,key:g.value,class:"k-multiselect-selections staging",style:Et(te.value),tabindex:"-1"},[(C(!0),S(Me,null,ot(N.value,(Ce,ut)=>(C(),se(_i,{key:`${Ce.key?Ce.key:ut}-badge`,class:"k-multiselect-selection-badge",dismissable:Ce.selected&&!Ce.disabled,hidden:"",shape:"rectangular"},{default:z(()=>[J(V(Ce.label),1)]),_:2},1032,["dismissable"]))),128)),G(_i,{class:"hidden-selection-count",hidden:"",shape:"rectangular"},{default:z(()=>[J(" +"+V(ee.value.length),1)]),_:1})],12,JK))]))],6))}}),aG=Ee(rG,[["__scopeId","data-v-09b6212d"]]),U5=e=>(Ln("data-v-f2763501"),e=e(),Rn(),e),oG={class:"k-prompt-header"},iG={class:"k-prompt-header-content"},sG={class:"close-button"},lG=U5(()=>O("hr",{class:"divider"},null,-1)),uG={class:"k-prompt-body"},cG={class:"k-prompt-body-content"},dG={key:0,class:"k-prompt-confirm-text"},hG={class:"confirm-text"},fG=U5(()=>O("hr",{class:"divider"},null,-1)),pG={class:"k-prompt-action-buttons"},mG=ge({__name:"KPrompt",props:{title:{type:String,default:""},type:{type:String,default:"info",validator:e=>pk.includes(e)},message:{type:String,default:""},actionButtonText:{type:String,default:"OK"},cancelButtonText:{type:String,default:"Cancel"},actionPending:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},confirmationText:{type:String,default:""},preventProceedOnEnter:{type:Boolean,default:!1},tabbableOptions:{type:Object,default:()=>({})}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=j(""),a=()=>{r.value="",t("canceled")},o=c=>{u.value||(r.value="",t("proceed",c))},i=c=>{n.isVisible&&(c.key==="Escape"?a():c.key==="Enter"&&(n.preventProceedOnEnter||o(c)))},s=(c="")=>{const d=/(?:^|[\s-:'"])\w/g;return c.replace(d,h=>h.toUpperCase())},l=B(()=>n.title?n.type==="warning"?"Warning: "+n.title:n.title:n.type==="info"?"Information":s(n.type)),u=B(()=>n.actionPending?!0:n.confirmationText.length?n.confirmationText!==r.value:!1);return ft(()=>{document.addEventListener("keydown",i)}),Wa(()=>{document.removeEventListener("keydown",i)}),(c,d)=>(C(),se(j5,{class:"k-prompt","is-visible":e.isVisible,"tabbable-options":e.tabbableOptions,"text-align":"left",title:l.value},{"header-content":z(()=>[O("div",oG,[O("div",iG,[F(c.$slots,"header-content",{},()=>[e.type==="warning"?(C(),se(Be,{key:0,class:"warning-icon",color:`var(--white, var(--kui-color-text-inverse, ${pe(Nu)}))`,icon:"warning","secondary-color":"currentColor",size:pe(Ll)},null,8,["color","size"])):$("",!0),J(" "+V(l.value),1)],!0),O("div",sG,[G(We,{"aria-label":"Close",onClick:a},{default:z(()=>[G(Be,{color:`var(--grey-600, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"close",size:pe(xt)},null,8,["color","size"])]),_:1})])]),lG])]),"body-content":z(()=>[O("div",uG,[O("div",cG,[F(c.$slots,"body-content",{},()=>[J(V(e.message),1)],!0),e.confirmationText?(C(),S("div",dG,[J(' Type "'),O("span",hG,V(e.confirmationText),1),J('" to confirm your action. '),G(xs,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=h=>r.value=h),autocapitalize:"off",autocomplete:"off","data-testid":"confirmation-input"},null,8,["modelValue"])])):$("",!0)]),fG])]),"footer-content":z(()=>[O("div",pG,[F(c.$slots,"action-buttons",{},()=>[G(We,{appearance:"outline",class:"k-prompt-cancel",onClick:a},{default:z(()=>[J(V(e.cancelButtonText),1)]),_:1}),G(We,{appearance:e.type==="danger"?"danger":"primary",class:"k-prompt-proceed",disabled:u.value,onClick:o},{icon:z(()=>[e.actionPending?(C(),se(Be,{key:0,color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,icon:"spinner",size:pe(xt)},null,8,["color","size"])):$("",!0)]),default:z(()=>[J(" "+V(e.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])]),_:3},8,["is-visible","tabbable-options","title"]))}}),vG=Ee(mG,[["__scopeId","data-v-f2763501"]]),gG=["checked"],yG=["id","checked","disabled"],bG={key:0,class:"k-radio-description"},wG=["for"],kG={inheritAttrs:!1},CG=ge({...kG,__name:"KRadio",props:{modelValue:{type:[String,Number,Boolean,Object],default:"on",required:!0},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},description:{type:String,default:""},selectedValue:{type:[String,Number,Boolean,Object],required:!0},type:{type:String,default:"radio",validator:e=>fk.includes(e)},testMode:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=B(()=>h.id?String(h.id):n.testMode?"test-radio-input-id-1234":an()),o=B(()=>(h==null?void 0:h.disabled)!==void 0&&String(h==null?void 0:h.disabled)!=="false"),i=B(()=>!!(n.label||r.default)),s=B(()=>!!(n.description||r.description)),l=B(()=>!!r.tooltip),u=B(()=>n.selectedValue===n.modelValue),c=B(()=>n.type==="radio"),d=()=>{t("change",n.selectedValue),t("update:modelValue",n.selectedValue)},h=Xn(),f=B(()=>{const g={...h};return delete g.class,g});return(g,y)=>(C(),S("div",{checked:u.value,class:q(["k-radio",[c.value?"k-radio-default":`k-radio-${e.type}`,g.$attrs.class?g.$attrs.class:"",{disabled:o.value}]])},[O("input",Ke({id:a.value,checked:u.value},f.value,{class:"k-input",disabled:o.value,type:"radio",onClick:d}),null,16,yG),c.value&&i.value?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:["k-radio-label",{"has-description":s.value}],for:a.value}),qa({default:z(()=>[F(g.$slots,"default",{},()=>[J(V(e.label),1)]),s.value?(C(),S("div",bG,[F(g.$slots,"description",{},()=>[J(V(e.description),1)])])):$("",!0)]),_:2},[l.value?{name:"tooltip",fn:z(()=>[F(g.$slots,"tooltip")]),key:"0"}:void 0]),1040,["class","for"])):g.$slots.default?(C(),S("label",{key:1,for:a.value},[F(g.$slots,"default")],8,wG)):$("",!0)],10,gG))}}),EG={class:"k-slideout"},xG={class:"content"},SG=ge({__name:"KSlideout",props:{isVisible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=(a,o=!1)=>{(n.isVisible&&a.keyCode===27||o)&&t("close")};return ft(()=>{document.addEventListener("keydown",r)}),gr(()=>{document.removeEventListener("keydown",r)}),(a,o)=>(C(),S("div",EG,[G(ja,{name:"fade"},{default:z(()=>[e.isVisible?(C(),S("div",{key:0,class:"panel-background",onClick:o[0]||(o[0]=i=>r(i,!0))})):$("",!0)]),_:1}),G(ja,{name:"slide"},{default:z(()=>[e.isVisible?(C(),S("div",{key:0,class:q(["panel",{isVisible:"is-visible"}])},[O("button",{class:"close-btn",onClick:o[1]||(o[1]=i=>r(i,!0))},[G(Be,{icon:"close",size:pe(Lu),"view-box":"0 0 24 24"},null,8,["size"])]),O("div",xG,[G(_h,{"border-variant":"noBorder"},{body:z(()=>[F(a.$slots,"default",{},void 0,!0)]),_:3})])])):$("",!0)]),_:3})]))}}),_G=Ee(SG,[["__scopeId","data-v-2ef01f4a"]]),TG=e=>(Ln("data-v-b19dacc6"),e=e(),Rn(),e),DG={class:"k-step-state-icon","data-testid":"k-step-active",fill:"none",viewBox:"0 0 24 24"},MG=TG(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),AG=ge({__name:"KActiveState",props:{title:{type:String,default:"Active"}},setup(e){return(t,n)=>(C(),S("svg",DG,[O("title",null,V(e.title),1),MG]))}}),OG=Ee(AG,[["__scopeId","data-v-b19dacc6"]]),rf=e=>(Ln("data-v-be532e68"),e=e(),Rn(),e),PG={class:"k-step-state-icon","data-testid":"k-step-completed",fill:"none",viewBox:"0 0 24 24"},BG=rf(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),IG=rf(()=>O("path",{class:"k-step-icon-primary",d:"M16 9L10 15L7 12.0001"},null,-1)),NG=rf(()=>O("path",{class:"k-step-icon-secondary",d:"M16 9L10 15L7 12.0001","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.25"},null,-1)),LG=ge({__name:"KCompletedState",props:{title:{type:String,default:"Completed"}},setup(e){return(t,n)=>(C(),S("svg",PG,[O("title",null,V(e.title),1),BG,IG,NG]))}}),RG=Ee(LG,[["__scopeId","data-v-be532e68"]]),$G=e=>(Ln("data-v-7f1024a4"),e=e(),Rn(),e),HG={class:"k-step-state-icon","data-testid":"k-step-default",fill:"none",viewBox:"0 0 24 24"},zG=$G(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),FG=ge({__name:"KDefaultState",props:{title:{type:String,default:"Default"}},setup(e){return(t,n)=>(C(),S("svg",HG,[O("title",null,V(e.title),1),zG]))}}),jG=Ee(FG,[["__scopeId","data-v-7f1024a4"]]),Z5=e=>(Ln("data-v-d93db193"),e=e(),Rn(),e),UG={class:"k-step-state-icon","data-testid":"k-step-error",fill:"none",viewBox:"0 0 24 24"},ZG=Z5(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),YG=Z5(()=>O("path",{class:"k-step-icon-secondary","clip-rule":"evenodd",d:"M16.14 9.517a.889.889 0 0 0-1.258-1.257l-2.483 2.483L9.917 8.26A.889.889 0 0 0 8.66 9.517L11.142 12 8.66 14.483a.889.889 0 0 0 1.257 1.257l2.482-2.483 2.483 2.483a.889.889 0 0 0 1.257-1.257L13.657 12l2.482-2.483Z","fill-rule":"evenodd"},null,-1)),VG=ge({__name:"KErrorState",props:{title:{type:String,default:"Error"}},setup(e){return(t,n)=>(C(),S("svg",UG,[O("title",null,V(e.title),1),ZG,YG]))}}),KG=Ee(VG,[["__scopeId","data-v-d93db193"]]),GG=e=>(Ln("data-v-e3d948f6"),e=e(),Rn(),e),WG={class:"k-step-spinner"},qG={class:"k-step-state-icon","data-testid":"k-step-pending",viewBox:"0 0 50 50"},QG=GG(()=>O("circle",{cx:"25",cy:"25",fill:"none",r:"20","stroke-width":"5"},null,-1)),XG=ge({__name:"KPendingState",props:{title:{type:String,default:"Pending"}},setup(e){return(t,n)=>(C(),S("div",WG,[(C(),S("svg",qG,[J(V(e.title)+" ",1),QG]))]))}}),JG=Ee(XG,[["__scopeId","data-v-e3d948f6"]]),eW={class:"k-step-state"},tW=ge({__name:"KStepState",props:{state:{type:String,default:"default",required:!1,validator:e=>Yg.includes(e)}},setup(e){const t=e,n=B(()=>{let r=jG;switch(t.state){case"active":r=OG;break;case"completed":r=RG;break;case"error":r=KG;break;case"pending":r=JG;break}return r});return(r,a)=>(C(),S("div",eW,[(C(),se(va(n.value)))]))}}),nW=Ee(tW,[["__scopeId","data-v-0c4d4434"]]),rW={class:"k-step"},aW=ge({__name:"KStep",props:{label:{type:String,required:!0},state:{type:String,default:"default",validator:e=>Yg.includes(e)},maxLabelWidth:{type:String,default:"170"}},setup(e){const t=e,{getSizeFromString:n}=kn(),r=B(()=>({maxWidth:n(t.maxLabelWidth)}));return(a,o)=>(C(),S("li",rW,[O("div",{class:q(["k-step-container",{completed:e.state==="completed"}])},[G(nW,{state:e.state},null,8,["state"]),O("div",{class:q(["k-step-label",{bolder:e.state==="active"||e.state==="pending"||e.state==="error",error:e.state==="error"}]),style:Et(r.value)},[G(Ur,null,{default:z(()=>[J(V(e.label),1)]),_:1})],6)],2)]))}}),oW=Ee(aW,[["__scopeId","data-v-b79ad9dc"]]),iW={key:0,class:"k-stepper"},sW=ge({__name:"KStepper",props:{steps:{type:Array,required:!0,validator:e=>!e.length||e.every(t=>t.label!==void 0)},maxLabelWidth:{type:String,default:""}},setup(e){return(t,n)=>e.steps&&e.steps.length?(C(),S("ol",iW,[(C(!0),S(Me,null,ot(e.steps,r=>(C(),se(oW,{key:`k-step-${r.label.replace(/ /gi,"-")}`,label:r.label,"max-label-width":e.maxLabelWidth,state:r.state},null,8,["label","max-label-width","state"]))),128))])):$("",!0)}}),lW=Ee(sW,[["__scopeId","data-v-5beeaa04"]]),uW={class:"k-table-container"},cW={key:0,class:"k-table-toolbar","data-testid":"k-table-toolbar"},dW={key:2,class:"k-table-error-state","data-testid":"k-table-error-state"},hW={key:3,class:"k-table-empty-state","data-testid":"k-table-empty-state"},fW=["data-tableid"],pW=["aria-sort","onClick"],mW={class:"k-table-headers-container"},vW=["role","tabindex"],{clientSideSorter:gW}=kn(),dm=(e,t,n,r)=>gW(e,t,n,r),yW=ge({__name:"KTable",props:{options:{type:Object,default:()=>null,required:!1},enableClientSort:{type:Boolean,default:!1},hasHover:{type:Boolean,default:!0},sortOrder:{type:String,default:"",validator:e=>["ascending","descending",""].includes(e)},sortKey:{type:String,default:""},sortHandlerFn:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},hasSideBorder:{type:Boolean,default:!1},cellAttrs:{type:Function,default:()=>({})},isLoading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateActionButtonIcon:{type:String,default:""},emptyStateIcon:{type:String,default:""},emptyStateIconColor:{type:String,default:""},emptyStateIconSize:{type:String,default:"50"},hasError:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},errorStateIcon:{type:String,default:""},errorStateIconColor:{type:String,default:""},errorStateIconSize:{type:String,default:"50"},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},disableSorting:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},paginationType:{type:String,default:"default",validator:e=>["default","offset"].includes(e)},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:String,default:"",validator:e=>["true","loading",""].includes(e)}},emits:["cell-click","row-click","ktable-error-cta-clicked","ktable-empty-state-cta-clicked","update:table-preferences","sort","state"],setup(e,{emit:t}){const n=e,{useDebounce:r,useRequest:a,useSwrvState:o}=kn(),i=Xn(),s=It(),l=B(()=>n.testMode?"test-table-id-1234":pa()),u={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},c=j([]),d=j([]),h=j(0),f=j(!1),g=j(1),y=j(15),v=j(""),p=j(""),b=j("desc"),m=j(null),w=j([]),D=j(!1),I=j(!1),L=j(!1),T=B(()=>!!s.toolbar),x=ne=>`column-${ne}`,k=ne=>ne,A=(ne,ke)=>(me,Oe)=>{const X=/^on[^a-z]/,ue={};for(const Ce in ke)X.test(Ce)&&ke[Ce]&&(ue[Ce]=ke[Ce]);return Object.keys(ue).reduce((Ce,ut)=>{if(ut.indexOf(ne)===0){const Ze=ut.split(ne);Ce[Ze[1]]=Ne=>ue[ut](Ne,me,Oe)}return Ce},{})},M=B(()=>(ne,ke)=>{const me=A("onRow:",i)(ke,"row"),Oe=A("onCell:",i)(ne,"cell"),X=["a","button","input","select"];return me.click&&(D.value=!0),{...me,...Oe,click(ue){const Ce=ue.target.className;let ut=X.includes(ue.target.tagName.toLowerCase()),Ze=!1;typeof Ce=="string"||Array.isArray(Ce)?Ze=Ce.includes("k-popover"):typeof Ce=="object"&&(Ze=Object.keys(Ce).includes("k-popover")),ue.target.closest(".k-popover-content")!==null&&(Ze=!0);for(let Ne=0;Ne{var ne,ke;const me=n.searchInput,Oe=await n.fetcher({pageSize:y.value,page:g.value,query:me||v.value,sortColumnKey:p.value,sortColumnOrder:b.value,offset:m.value});return c.value=Oe.data,h.value=n.paginationTotalItems||Oe.total||((ne=Oe.data)==null?void 0:ne.length),n.fetcher?n.enableClientSort&&p.value&&b.value&&dm(p.value,"",b.value,c.value):n.options&&n.options.data&&n.options.data.length&&(c.value=n.options.data,h.value=n.options.data.length),n.paginationType==="offset"&&((ke=Oe.pagination)!=null&&ke.offset?(m.value=Oe.pagination.offset,w.value[g.value]||w.value.push(Oe.pagination.offset)):(m.value=null,L.value||(g.value=1))),L.value=!1,N.value=!1,Oe},ae=()=>{const ne={...u,...n.initialFetcherParams};g.value=ne.page??u.page,y.value=ne.pageSize??u.pageSize,v.value=ne.query??u.query,p.value=ne.sortColumnKey??u.sortColumnKey,b.value=ne.sortColumnOrder??u.sortColumnOrder,n.paginationType==="offset"&&(m.value=ne.offset,w.value.push(ne.offset)),n.headers&&n.headers.length?d.value=n.headers:n.options&&n.options.headers&&n.options.headers.length&&(d.value=n.options.headers),I.value=!0},oe=B(()=>w.value[g.value-1]),Q=B(()=>{if(!n.fetcher||!I.value)return"";let ne=l.value;return n.cacheIdentifier&&(ne=n.cacheIdentifier),n.fetcherCacheKey&&(ne+=`-${n.fetcherCacheKey}`),`k-table_${ne}`}),ye=j(""),{debouncedFn:_e,generateDebouncedFn:Re}=r(ne=>{ye.value=ne},350),Ue=Re(0),{data:Fe,error:fe,revalidate:$e,isValidating:Ae}=a(()=>Q.value,()=>ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:je,hasData:U,swrvState:R}=o(Fe,fe,Ae),K=j(!0),H=B(()=>({hasData:U.value,state:je.value})),te=B(()=>K.value?"loading":fe.value?"error":"success"),{debouncedFn:E,generateDebouncedFn:_}=r($e,500),P=_(0),Z=ne=>{const{key:ke,useSortHandlerFn:me}=ne,Oe=p.value+"";g.value=1,p.value&&ke===p.value?b.value==="asc"?b.value="desc":b.value="asc":(p.value=ke,b.value="asc"),n.options&&n.options.data||n.enableClientSort?me&&n.sortHandlerFn?n.sortHandlerFn({key:ke,prevKey:Oe,sortColumnOrder:b.value,data:c.value}):dm(ke,Oe,b.value,c.value):n.paginationType!=="offset"&&E(),de()},Y=({page:ne})=>{g.value=ne},W=({pageSize:ne})=>{w.value=[null],m.value=null,y.value=ne,g.value=1,de()},ce=ne=>{ne&&ne.target&&ne.target.scrollTop&&(ne.target.scrollTop>1?f.value=!0:ne.target.scrollTop&&(f.value=!f.value))},le=B(()=>({pageSize:y.value,sortColumnKey:p.value,sortColumnOrder:b.value})),de=()=>{t("update:table-preferences",le.value)},ie=()=>{g.value++,L.value=!0},xe=()=>{g.value--,m.value=oe.value},be=B(()=>n.fetcher&&!n.disablePagination&&!(n.paginationType!=="offset"&&n.hidePaginationWhenOptional&&h.value<=n.paginationPageSizes[0])&&!(n.paginationType==="offset"&&n.hidePaginationWhenOptional&&!oe.value&&!m.value&&c.value.length<=n.paginationPageSizes[0])),Se=ne=>ne.toLowerCase().replace(/[^[a-z0-9]/gi,"-");Le(Fe,ne=>{ne!=null&&ne.length&&!c.value.length&&(c.value=ne)},{deep:!0,immediate:!0}),Le(je,()=>{switch(je.value){case R.PENDING:K.value=!0;break;case R.VALIDATING_HAS_DATA:K.value=Pe.value;break;default:K.value=!1;break}},{immediate:!0}),Le([H,te],ne=>{var ke;t("state",{state:ne==null?void 0:ne[1],hasData:(ke=ne==null?void 0:ne[0])==null?void 0:ke.hasData})}),Le(()=>n.searchInput,ne=>{g.value!==1&&(g.value=1),ne===""?Ue(ne):_e(ne)},{immediate:!0});const Pe=j(!1);return Le([ye,g,y],async(ne,ke)=>{const me=ke==null?void 0:ke[0],Oe=ne[0],X=ne[1];Oe!==me&&X!==1&&(g.value=1),I.value&&!N.value&&(Pe.value=!0,Oe!==""&&Oe!==me?await E():await P(),Pe.value=!1)},{deep:!0,immediate:!0}),ft(()=>{ae()}),(ne,ke)=>(C(),S("div",uW,[T.value?(C(),S("div",cW,[F(ne.$slots,"toolbar",{state:H.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(K.value||e.isLoading||Pe.value)&&!e.hasError?(C(),se(Th,{key:1,"data-testid":"k-table-skeleton",type:"table"})):e.hasError?(C(),S("div",dW,[F(ne.$slots,"error-state",{},()=>[G(ss,{"cta-is-hidden":!e.errorStateActionMessage||!e.errorStateActionRoute,icon:e.errorStateIcon||"","icon-color":e.errorStateIconColor,"icon-size":e.errorStateIconSize,"is-error":""},{title:z(()=>[J(V(e.errorStateTitle),1)]),message:z(()=>[J(V(e.errorStateMessage),1)]),cta:z(()=>[e.errorStateActionMessage?(C(),se(We,{key:0,appearance:"primary","data-testid":Se(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:ke[0]||(ke[0]=me=>ne.$emit("ktable-error-cta-clicked"))},{default:z(()=>[J(V(e.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):!e.hasError&&!K.value&&!e.isLoading&&!Pe.value&&c.value&&!c.value.length?(C(),S("div",hW,[F(ne.$slots,"empty-state",{},()=>[G(ss,{"cta-is-hidden":!e.emptyStateActionMessage||!e.emptyStateActionRoute,icon:e.emptyStateIcon||"","icon-color":e.emptyStateIconColor,"icon-size":e.emptyStateIconSize},{title:z(()=>[J(V(e.emptyStateTitle),1)]),message:z(()=>[J(V(e.emptyStateMessage),1)]),cta:z(()=>[e.emptyStateActionMessage?(C(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Se(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:ke[1]||(ke[1]=me=>ne.$emit("ktable-empty-state-cta-clicked"))},{default:z(()=>[J(V(e.emptyStateActionMessage),1)]),_:1},8,["appearance","data-testid","icon","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):(C(),S("section",{key:4,class:"k-table-wrapper",onScrollPassive:ce},[O("table",{class:q(["k-table",{"has-hover":e.hasHover,"is-clickable":D.value,"side-border":e.hasSideBorder}]),"data-tableid":l.value},[O("thead",{class:q({"is-scrolled":f.value})},[O("tr",{class:q({"is-scrolled":f.value})},[(C(!0),S(Me,null,ot(d.value,(me,Oe)=>(C(),S("th",{key:`k-table-${l.value}-headers-${Oe}`,"aria-sort":!e.disableSorting&&me.key===p.value?b.value==="asc"?"ascending":"descending":void 0,class:q(["k-table-headers",{sortable:!e.disableSorting&&!me.hideLabel&&me.sortable,"active-sort":!e.disableSorting&&!me.hideLabel&&me.sortable&&me.key===p.value,[b.value]:!e.disableSorting&&me.key===p.value&&!me.hideLabel,"is-scrolled":f.value}]),onClick:()=>{!e.disableSorting&&me.sortable&&(ne.$emit("sort",{prevKey:p.value,sortColumnKey:me.key,sortColumnOrder:b.value==="asc"?"desc":"asc"}),Z(me))}},[O("span",mW,[F(ne.$slots,x(me.key),{column:k(me)},()=>[O("span",{class:q({"sr-only":me.hideLabel})},V(me.label?me.label:me.key),3)],!0),!e.disableSorting&&!me.hideLabel&&me.sortable?(C(),se(Be,{key:0,"aria-hidden":"true",class:"caret",color:`var(--KTableColor, var(--black-70, var(--kui-color-text, ${pe(vw)})))`,icon:"chevronDown",size:pe(ws)},null,8,["color","size"])):$("",!0)])],10,pW))),128))],2)],2),O("tbody",null,[(C(!0),S(Me,null,ot(c.value,(me,Oe)=>(C(),S("tr",Ke(e.rowAttrs(me),{key:`k-table-${l.value}-row-${Oe}`,role:D.value?"link":null,tabindex:D.value?0:null},od(e.hasSideBorder?M.value(me,me):{},!0)),[(C(!0),S(Me,null,ot(d.value,(X,ue)=>(C(),S("td",Ke(e.cellAttrs({headerKey:X.key,row:me,rowIndex:Oe,colIndex:ue}),{key:`k-table-${l.value}-cell-${ue}`},od(M.value(me[X.key],me),!0)),[F(ne.$slots,X.key,{row:k(me),rowKey:Oe,rowValue:me[X.key]},()=>[J(V(me[X.key]),1)],!0)],16))),128))],16,vW))),128))])],10,fW),be.value?(C(),se(Dh,{key:0,class:"k-table-pagination","current-page":g.value,"data-testid":"k-table-pagination","disable-page-jump":e.disablePaginationPageJump,"initial-page-size":y.value,neighbors:e.paginationNeighbors,"offset-next-button-disabled":!m.value,"offset-prev-button-disabled":!oe.value,"page-sizes":e.paginationPageSizes,"pagination-type":e.paginationType,"test-mode":!!e.testMode||void 0,"total-count":h.value,onGetNextOffset:ie,onGetPrevOffset:xe,onPageChanged:Y,onPageSizeChanged:W},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","offset-next-button-disabled","offset-prev-button-disabled","page-sizes","pagination-type","test-mode","total-count"])):$("",!0)],32))]))}}),bW=Ee(yW,[["__scopeId","data-v-23c42087"]]),wW={class:"k-tabs"},kW={"aria-label":"Tabs",role:"tablist"},CW=["id","aria-controls","aria-selected","role","onClick","onKeydown"],EW=["id","aria-labelledby"],xW=ge({__name:"KTabs",props:{tabs:{type:Array,required:!0},modelValue:{type:String,default:"",validator:e=>e===""||e.includes("#")&&!e.includes(" ")},hasPanels:{type:Boolean,default:!0}},emits:["update:modelValue","changed"],setup(e,{emit:t}){const n=e,r=j(n.modelValue?n.modelValue:n.tabs[0].hash),a=o=>{r.value=o,t("changed",o),t("update:modelValue",o)};return Le(()=>n.modelValue,o=>{r.value=o,t("changed",o),t("update:modelValue",o)}),(o,i)=>(C(),S("div",wW,[O("ul",kW,[(C(!0),S(Me,null,ot(e.tabs,(s,l)=>(C(),S("li",{id:`${s.hash.replace("#","")}-tab`,key:s.hash,"aria-controls":e.hasPanels?`panel-${l}`:void 0,"aria-selected":e.hasPanels?r.value===s.hash?"true":"false":void 0,class:q(["tab-item",{active:r.value===s.hash}]),role:e.hasPanels?"tab":void 0,tabindex:"0",onClick:u=>a(s.hash),onKeydown:[jt(Mt(u=>a(s.hash),["prevent"]),["enter"]),jt(Mt(u=>a(s.hash),["prevent"]),["space"])]},[O("div",{class:q(["tab-link",{"has-panels":e.hasPanels}])},[F(o.$slots,`${s.hash.replace("#","")}-anchor`,{},()=>[O("span",null,V(s.title),1)],!0)],2)],42,CW))),128))]),e.hasPanels?(C(!0),S(Me,{key:0},ot(e.tabs,(s,l)=>(C(),S("div",{id:`panel-${l}`,key:s.hash,"aria-labelledby":`${s.hash.replace("#","")}-tab`,class:"tab-container",role:"tabpanel",tabindex:"0"},[r.value===s.hash?F(o.$slots,s.hash.replace("#",""),{key:0},void 0,!0):$("",!0)],8,EW))),128)):$("",!0)]))}}),SW=Ee(xW,[["__scopeId","data-v-2ddf6190"]]),_W=["cols","rows","value"],TW={key:1,class:"k-textarea"},DW={class:"text-on-input"},MW=["for"],AW={key:0,class:"is-required"},OW=["id","aria-invalid","cols","rows","value"],PW={key:2,class:"k-textarea"},BW=["id","aria-invalid","cols","rows","value"],IW={inheritAttrs:!1},NW=ge({...IW,__name:"KTextArea",props:{modelValue:{type:String,default:""},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},characterLimit:{type:Number,default:2048,validator:e=>e>0},disableCharacterLimit:{type:Boolean,default:!1},rows:{type:Number,default:5},cols:{type:Number,default:52},hasError:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},isResizable:{type:Boolean,default:!1}},emits:["input","update:modelValue","char-limit-exceeded"],setup(e,{emit:t}){const n=e,r=Xn(),a=It(),{stripRequiredLabel:o}=kn(),i=B(()=>(r==null?void 0:r.required)!==void 0&&String(r==null?void 0:r.required)!=="false"),s=j(""),l=j(!1),u=j(!1),c=B(()=>o(n.label,i.value)),d=B(()=>{var b,m;return!!((b=n.labelAttributes)!=null&&b.help||(m=n.labelAttributes)!=null&&m.info||a["label-tooltip"])}),h=B({get(){return n.modelValue},set(b){v({target:{value:b}})}}),f=B(()=>r.id?String(r.id):n.testMode?"test-textArea-id-1234":an()),g=B(()=>{const b={...r};return delete b.class,b}),y=B(()=>!n.disableCharacterLimit&&s.value.length>n.characterLimit),v=b=>{var m;const w=JSON.parse(JSON.stringify((m=b==null?void 0:b.target)==null?void 0:m.value));t("input",w),t("update:modelValue",w),s.value=w};Le(y,(b,m)=>{b!==m&&t("char-limit-exceeded",{value:s.value,length:s.value.length,characterLimit:n.characterLimit,limitExceeded:b})}),Le(h,(b,m)=>{b!==m&&v({target:{value:b}})});const p=()=>s.value?s.value:n.modelValue;return(b,m)=>(C(),S("div",{class:q(["k-input-wrapper",[b.$attrs.class,{"input-error":e.hasError||y.value}]])},[e.label?e.label&&e.overlayLabel?(C(),S("div",TW,[O("div",DW,[O("label",Ke(e.labelAttributes,{class:{focused:l.value,hovered:u.value},for:f.value}),[O("span",null,V(c.value),1),i.value?(C(),S("span",AW,"*")):$("",!0)],16,MW),O("textarea",Ke(g.value,{id:f.value,"aria-invalid":e.hasError||y.value?"true":void 0,class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onBlur:m[0]||(m[0]=()=>l.value=!1),onFocus:m[1]||(m[1]=()=>l.value=!0),onInput:v,onMouseenter:m[2]||(m[2]=()=>u.value=!0),onMouseleave:m[3]||(m[3]=()=>u.value=!1)}),null,16,OW)])])):(C(),S("div",PW,[G(Ur,Ke({for:f.value},e.labelAttributes,{required:i.value}),qa({default:z(()=>[J(V(c.value)+" ",1)]),_:2},[d.value?{name:"tooltip",fn:z(()=>[F(b.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("textarea",Ke(g.value,{id:f.value,"aria-invalid":e.hasError||y.value?"true":void 0,class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onBlur:m[4]||(m[4]=()=>l.value=!1),onFocus:m[5]||(m[5]=()=>l.value=!0),onInput:v,onMouseenter:m[6]||(m[6]=()=>u.value=!0),onMouseleave:m[7]||(m[7]=()=>u.value=!1)}),null,16,BW)])):(C(),S("textarea",Ke({key:0},g.value,{class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onInput:v}),null,16,_W)),e.disableCharacterLimit?$("",!0):(C(),S("div",{key:3,class:q(["char-limit",{"over-char-limit":y.value}])},V(s.value.length||e.modelValue.length)+" / "+V(e.characterLimit),3))],2))}}),LW=Ee(NW,[["__scopeId","data-v-02ecb1b8"]]),RW={class:"message"},$W=ge({__name:"KToaster",props:{toasterState:{type:Array,default:[],required:!0}},emits:["close"],setup(e){return(t,n)=>(C(),se(M4,{class:"toaster-container-outer",name:"toaster",tag:"div"},{default:z(()=>[(C(!0),S(Me,null,ot(e.toasterState,r=>(C(),S("div",{key:r.key,class:"toaster-item"},[G(Sg,{appearance:r.appearance,"dismiss-type":"icon","has-left-border":"",onClosed:a=>t.$emit("close",r.key)},{alertMessage:z(()=>[O("div",RW,V(r.message),1)]),_:2},1032,["appearance","onClosed"])]))),128))]),_:1}))}}),Y5=Ee($W,[["__scopeId","data-v-b9facd38"]]),HW=Object.keys(Kg),Lc={id:"toaster-container",timeout:5e3,appearance:Kg.info};class zW{constructor(t=Lc.id,n=Lc.timeout,r=Lc.appearance){Na(this,"toasters"),Na(this,"timeout"),Na(this,"appearance"),Na(this,"id"),this.toasters=j([]),this.timeout=n,this.appearance=r,this.id=t,this.mount()}mount(){if(typeof document>"u")return;const t=document.createElement("div");t.id=this.id,document.body.appendChild(t);const n=De(Y5,{toasterState:this.toasters.value,onClose:r=>this.close(r)});Jv(n).mount(`#${this.id}`)}setTimer(t,n){return setTimeout(()=>this.close(t),n)}open(t){const{key:n,timeoutMilliseconds:r,appearance:a,message:o}=t,i=n||this.toasters.value.length+new Date().getTime(),s=a&&HW.indexOf(a)!==-1?a:this.appearance,l=this.setTimer(i,r||this.timeout);this.toasters.value.push({key:i,appearance:s,message:o||t,timer:l,timeoutMilliseconds:r||this.timeout})}close(t){var n,r;const a=(n=this.toasters.value)==null?void 0:n.findIndex(o=>t===o.key);clearTimeout((r=this.toasters.value[a])==null?void 0:r.timer),this.toasters.value.splice(a,1)}closeAll(){this.toasters.value.forEach(t=>clearTimeout(t==null?void 0:t.timer)),this.toasters.value.length=0}}const FW=ge({name:"Kooltip",setup(e,{attrs:t,slots:n,emit:r}){return ft(()=>console.warn(`The Kongponents 'Kooltip' component is deprecated and will be removed in a future release. + */const lK={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},uK=ge({props:Object.assign({active:{type:Boolean,default:!0}},lK),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(e,{slots:t,emit:n}){let r;const a=j(null),o=B(()=>{const s=a.value;return s&&(s instanceof HTMLElement?s:s.$el)}),i=()=>r||(r=sK(o.value,{escapeDeactivates:e.escapeDeactivates,allowOutsideClick:e.allowOutsideClick,returnFocusOnDeactivate:e.returnFocusOnDeactivate,clickOutsideDeactivates:e.clickOutsideDeactivates,onActivate:()=>{n("update:active",!0),n("activate")},onDeactivate:()=>{n("update:active",!1),n("deactivate")},onPostActivate:()=>n("postActivate"),onPostDeactivate:()=>n("postDeactivate"),initialFocus:e.initialFocus,fallbackFocus:e.fallbackFocus,tabbableOptions:e.tabbableOptions}));return ft(()=>{Le(()=>e.active,s=>{s&&o.value?i().activate():r&&(r.deactivate(),(!o.value||o.value.nodeType===Node.COMMENT_NODE)&&(r=null))},{immediate:!0,flush:"post"})}),gr(()=>{r&&r.deactivate(),r=null}),{activate(){i(),r.activate()},deactivate(){r&&r.deactivate()},renderImpl(){if(!t.default)return null;const s=t.default().filter(l=>l.type!==wn);return!s||!s.length||s.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),s):$r(s[0],{ref:a})}}}}),cK=["aria-label"],dK={class:"k-modal-dialog modal-dialog"},hK={key:0,class:"close-button"},fK={class:"k-modal-content modal-content"},pK={key:0,class:"k-modal-header-image"},mK={class:"k-modal-footer modal-footer"},vK={class:"k-modal-action-buttons"},gK=ge({__name:"KModal",props:{title:{type:String,required:!0},hideTitle:{type:Boolean,default:!1},hideDismissIcon:{type:Boolean,default:!1},dismissButtonTheme:{type:String,default:"dark",validator:e=>sk.includes(e)},content:{type:String,default:""},textAlign:{type:String,default:"center",validator:e=>lk.includes(e)},isVisible:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Submit"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonText:{type:String,default:"Cancel"},cancelButtonAppearance:{type:String,default:"outline"},hideCancelButton:{type:Boolean,default:!1},tabbableOptions:{type:Object,default:()=>({})},testMode:{type:Boolean,default:!1}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=It(),a=j(null),o=j(null),i=B(()=>!!r["header-image"]),s=B(()=>n.dismissButtonTheme==="light"?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:`var(--grey-600, var(--kui-color-text-neutral-stronger, ${bw}))`),l=h=>{n.isVisible&&h.keyCode===27&&u(!0)},u=(h=!1,f)=>{var g,y;(h||(y=(g=f==null?void 0:f.target)==null?void 0:g.classList)!=null&&y.contains("k-modal-backdrop"))&&t("canceled")},c=()=>{t("proceed")};Cv(()=>{var h,f;typeof document<"u"&&(n.isVisible?(h=document==null?void 0:document.body)==null||h.classList.add("k-modal-overflow-hidden"):(f=document==null?void 0:document.body)==null||f.classList.remove("k-modal-overflow-hidden"))});const d=async h=>{var f,g;h?(await on(),await new Promise(y=>setTimeout(y,0)),(f=a.value)==null||f.activate()):(g=a.value)==null||g.deactivate()};return Le(()=>n.isVisible,async h=>{h?await d(!0):await d(!1)},{immediate:!0}),ft(()=>{var h;document.addEventListener("keydown",l),n.isVisible&&((h=document==null?void 0:document.body)==null||h.classList.add("k-modal-overflow-hidden"))}),gr(()=>{var h;document.removeEventListener("keydown",l),(h=document==null?void 0:document.body)==null||h.classList.remove("k-modal-overflow-hidden")}),(h,f)=>{var g;return e.isVisible?(C(),S("div",{key:0,"aria-label":e.title,"aria-modal":"true",class:"k-modal",role:"dialog"},[O("div",{ref_key:"modalOuter",ref:o,class:"k-modal-backdrop modal-backdrop",onClick:f[3]||(f[3]=y=>u(!1,y))},[G(pe(uK),{ref_key:"focusTrap",ref:a,active:!1,"fallback-focus":(g=o.value)==null?void 0:g.$el,"tabbable-options":e.tabbableOptions},{default:F(()=>[O("div",dK,[i.value&&!e.hideDismissIcon?(C(),S("div",hK,[G(We,{"aria-label":"Close",onClick:f[0]||(f[0]=y=>u(!0))},{default:F(()=>[G(Be,{color:s.value,icon:"close",size:pe(xt)},null,8,["color","size"])]),_:1})])):$("",!0),O("div",fK,[i.value?(C(),S("div",pK,[z(h.$slots,"header-image",{},void 0,!0)])):$("",!0),h.$slots["header-content"]||!e.hideTitle?(C(),S("div",{key:1,"aria-level":"2",class:q(["k-modal-header modal-header",{"header-left":e.textAlign==="left","header-centered":e.textAlign==="center","header-right":e.textAlign==="right","has-header-image":i.value}]),role:"heading"},[z(h.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)],2)):$("",!0),O("div",{class:q(["k-modal-body modal-body",{"content-left":e.textAlign==="left","content-centered":e.textAlign==="center","content-right":e.textAlign==="right"}])},[z(h.$slots,"body-content",{},()=>[J(V(e.content),1)],!0)],2),O("div",mK,[z(h.$slots,"footer-content",{},()=>[e.hideCancelButton?$("",!0):(C(),se(We,{key:0,appearance:e.cancelButtonAppearance,onClick:f[1]||(f[1]=y=>u(!0)),onKeyup:f[2]||(f[2]=jt(y=>u(!0),["esc"]))},{default:F(()=>[J(V(e.cancelButtonText),1)]),_:1},8,["appearance"])),O("div",vK,[z(h.$slots,"action-buttons",{},()=>[G(We,{appearance:e.actionButtonAppearance,onClick:c,onKeyup:jt(c,["enter"])},{default:F(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance","onKeyup"])],!0)])],!0)])])])]),_:3},8,["fallback-focus","tabbable-options"])],512)],8,cK)):$("",!0)}}}),j5=Ee(gK,[["__scopeId","data-v-8f117654"]]),yK=["aria-label","onKeyup"],bK={class:"k-modal-fullscreen-body-header"},wK={key:0,class:"body-header"},kK={key:1,class:"body-header-description"},CK={class:"k-modal-fullscreen-body"},EK={class:"k-modal-fullscreen-header"},xK={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},SK={class:"k-modal-fullscreen-title"},_K={class:"header-icon"},TK={class:"header-content"},DK={class:"k-modal-fullscreen-action"},MK={class:"k-modal-fullscreen-action-buttons"},AK={key:0,class:"k-modal-fullscreen-footer"},OK={class:"k-modal-fullscreen-action"},PK={class:"k-modal-fullscreen-action-buttons"},BK=ge({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"outline"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=j(null),a=B(()=>!!n.isVisible);Le(()=>n.isVisible,async()=>{a.value?(document.body.style.overflow="hidden",await on(),r.value&&r.value.focus()):document.body.style.overflow=""});const o=l=>{n.isVisible&&(l.keyCode===27?i():l.keyCode===13&&s())},i=()=>{t("canceled")},s=()=>{t("proceed")};return ft(()=>{document.addEventListener("keydown",o)}),Wa(()=>{document.removeEventListener("keydown",o)}),gr(()=>{document.body.style.overflow=""}),(l,u)=>e.isVisible?(C(),S("div",{key:0,"aria-label":e.title,"aria-modal":"true",class:"k-modal-fullscreen isOpen",role:"dialog",onKeyup:[jt(s,["enter"]),jt(i,["esc"])]},[O("div",{ref_key:"modalBodyContent",ref:r,class:q(["k-modal-fullscreen-dialog",{"has-footer":l.$slots["footer-content"]}]),tabindex:"0"},[O("div",bK,[l.$slots["body-header"]||e.bodyHeader?(C(),S("div",wK,[z(l.$slots,"body-header",{},()=>[J(V(e.bodyHeader),1)],!0)])):$("",!0),l.$slots["body-header-description"]||e.bodyHeaderDescription?(C(),S("div",kK,[z(l.$slots,"body-header-description",{},()=>[J(V(e.bodyHeaderDescription),1)],!0)])):$("",!0)]),O("div",CK,[z(l.$slots,"default",{},void 0,!0)]),O("div",EK,[O("div",xK,[O("div",SK,[O("span",_K,[z(l.$slots,"header-icon",{},()=>[G(Be,{icon:e.iconString},null,8,["icon"])],!0)]),O("span",TK,[z(l.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)])]),O("div",DK,[O("div",MK,[z(l.$slots,"action-buttons",{},()=>[G(We,{appearance:e.cancelButtonAppearance,class:"cancel-button",onClick:i},{default:F(()=>[J(V(e.cancelButtonText),1)]),_:1},8,["appearance"]),G(We,{appearance:e.actionButtonAppearance,class:"proceed-button",onClick:s},{default:F(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])]),l.$slots["footer-content"]?(C(),S("div",AK,[z(l.$slots,"footer-content",{},void 0,!0),O("div",OK,[O("div",PK,[z(l.$slots,"action-buttons",{},()=>[G(We,{appearance:e.actionButtonAppearance,class:"proceed-button",onClick:s},{default:F(()=>[J(V(e.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])):$("",!0)],2)],40,yK)):$("",!0)}}),IK=Ee(BK,[["__scopeId","data-v-0b0d49d9"]]),NK=["data-testid"],LK={class:"k-multiselect-item-container",role:"option"},RK=["disabled","value"],$K={class:"k-multiselect-item-label"},HK={class:"k-multiselect-selected-icon-container"},FK=ge({__name:"KMultiselectItem",props:{item:{type:Object,default:null,validator:e=>e.label!==void 0&&e.value!==void 0}},emits:["selected"],setup(e,{emit:t}){const n=e,r=()=>{n.item.disabled||t("selected",n.item)};return(a,o)=>(C(),S("div",{key:e.item.key,class:"k-multiselect-item","data-testid":`k-multiselect-item-${e.item.value}`,role:"listitem"},[O("div",LK,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value,onClick:r},[O("span",$K,[z(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",HK,[e.item.disabled?(C(),se(va(e.item.disabledTooltipText?"KTooltip":"span"),{key:0,label:e.item.disabledTooltipText?e.item.disabledTooltipText:void 0,placement:"left"},{default:F(()=>[G(Be,{class:q(["selected-item-icon",{"is-item-selected":e.item.selected}]),color:e.item.selected?"currentColor":`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,"hide-title":"",icon:"lock",size:pe(ws)},null,8,["class","color","size"])]),_:1},8,["label"])):e.item.selected?(C(),se(Be,{key:1,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,RK)])],8,NK))}}),nu=Ee(FK,[["__scopeId","data-v-218a937a"]]),zK={class:"k-multiselect-group-title"},jK=ge({__name:"KMultiselectItems",props:{items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)}},emits:["selected"],setup(e,{emit:t}){const n=e,r=(s,l)=>t("selected",s,l),a=B(()=>n.items.filter(s=>!s.group)),o=B(()=>[...new Set(n.items.filter(s=>s.group).map(s=>s.group))].sort((s,l)=>s.toLowerCase().localeCompare(l.toLowerCase()))),i=s=>n.items.filter(l=>l.group===s);return(s,l)=>(C(),S(Me,null,[(C(!0),S(Me,null,ot(a.value,(u,c)=>(C(),se(nu,{key:`${u.key?u.key:c}-item`,item:u,onSelected:r},{content:F(()=>[z(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(C(!0),S(Me,null,ot(o.value,u=>(C(),S("div",{key:`${u}-group`,class:"k-multiselect-group-container"},[O("span",zK,V(u),1),(C(!0),S(Me,null,ot(i(u),(c,d)=>(C(),se(nu,{key:`${c.key?c.key:d}-item`,item:c,onSelected:r},{content:F(()=>[z(s.$slots,"content",{item:c},void 0,!0)]),_:2},1032,["item"]))),128))]))),128))],64))}}),UK=Ee(jK,[["__scopeId","data-v-6516d010"]]),nf=e=>(Ln("data-v-09b6212d"),e=e(),Rn(),e),ZK=["id"],YK=["id"],VK={class:"k-multiselect-icon"},KK=["id"],GK={class:"select-item-description"},WK=nf(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),qK=nf(()=>O("div",{class:"select-item-label"}," No results found ",-1)),QK=nf(()=>O("div",{class:"select-item-desc"}," Please adjust the criteria and try again ",-1)),XK={key:1,"aria-hidden":"true",class:"staging-area"},JK=["id"],eG=e=>{const t=[];return e.forEach(n=>t.push(n.value)),t},tG=e=>{const t=eG(e),n=new Set(t);return t.length===n.size},nG={inheritAttrs:!1},rG=ge({...nG,__name:"KMultiselect",props:{modelValue:{type:Array,default:()=>[]},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},placeholder:{type:String,default:""},kpopAttributes:{type:Object,default:()=>({popoverClasses:""})},dropdownMaxHeight:{type:String,default:"300"},width:{type:String,default:""},selectedRowCount:{type:Number,default:2},collapsedContext:{type:Boolean,default:!1},expandSelected:{type:Boolean,default:!1},items:{type:Array,default:()=>[],validator:e=>!e.length||e.every(t=>t.label!==void 0&&t.value!==void 0)&&tG(e)},positionFixed:{type:Boolean,default:!0},filterFunc:{type:Function,default:e=>e.items.filter(t=>{var n,r;return(r=t.label)==null?void 0:r.toLowerCase().includes((n=e.query)==null?void 0:n.toLowerCase())})},autosuggest:{type:Boolean,default:!1},enableItemCreation:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},dropdownFooterText:{type:String,default:""},dropdownFooterTextPosition:{type:String,default:"sticky"}},emits:["selected","item:added","item:removed","input","change","update:modelValue","query-change"],setup(e,{emit:t}){const n=e;bs(X=>({"1517299a":U.value}));const r=Xn(),a=It(),{getSizeFromString:o,cloneDeep:i,stripRequiredLabel:s}=kn(),l=34,u=B(()=>r.required!==void 0&&String(r.required)!=="false"),c=B(()=>s(n.label,u.value)),d=B(()=>{var X,ue;return!!((X=n.labelAttributes)!=null&&X.help||(ue=n.labelAttributes)!=null&&ue.info||a["label-tooltip"])}),h={hideCaret:!0,placement:"bottomStart",popoverTimeout:0,popoverClasses:"k-multiselect-popover"},f=j(0),g=j(0),y=B(()=>n.testMode?"test-multiselect-id-1234":an()),v=B(()=>n.testMode?"test-multiselect-input-id-1234":an()),p=B(()=>n.testMode?"test-multiselect-text-id-1234":an()),b=B(()=>n.testMode?"test-multiselect-selected-id-1234":an()),m=B(()=>n.testMode?"test-multiselect-selected-staging-id-1234":an()),w=j(null),D=j(null),I=B(()=>n.selectedRowCount*l),L=j(""),T=B(()=>!(!L.value||k.value.filter(X=>X.label===L.value).length)),x=j(null),k=j([]),A=j([]),M=j([]),N=j([]),ee=j([]),ae=new Set,oe=j([]),Q=j([]),ye=B(()=>Q.value.map(X=>X.label).join(", ")),_e=j(!1),Re=j(!1),Ue=j(!1),ze=B(()=>(r==null?void 0:r.disabled)!==void 0&&String(r==null?void 0:r.disabled)!=="false"),fe=B(()=>(r==null?void 0:r.readonly)!==void 0&&String(r==null?void 0:r.readonly)!=="false"),$e=B({get(){return n.modelValue},set(X){const ue=k.value.filter(Ce=>X.includes(Ce.value));ue.length?ce(ue):X.length||be()}}),Ae=B(()=>{const X={...r};return delete X.class,X}),je=B(()=>({...h,...n.kpopAttributes,popoverClasses:`${h.popoverClasses} ${n.kpopAttributes.popoverClasses} k-multiselect-pop`,width:ke.value+"px",maxWidth:ke.value+"px",disabled:r.disabled!==void 0&&String(r.disabled)!=="false"||r.readonly!==void 0&&String(r.readonly)!=="false"})),U=B(()=>o(n.dropdownMaxHeight)),R=B(()=>({...je.value})),K=B(()=>{const X=n.width?n.width:"300";return o(X)}),H=B(()=>({width:K.value})),te=B(()=>({width:ke.value+"px"})),E=B(()=>({width:ke.value-30+"px",maxHeight:I.value+"px",paddingRight:0})),_=X=>M.value.length&&!X?M.value.length===1?`${M.value.length} item selected`:`${M.value.length} items selected`:n.placeholder?n.placeholder:r.placeholder?String(r.placeholder||""):"Filter...",P=B(()=>n.autosuggest?k.value:n.filterFunc({items:k.value,query:L.value})),Z=X=>{r.disabled!==void 0&&String(r.disabled)!=="false"&&X.stopPropagation()},Y=(X,ue,Ce)=>{X?ue.value||(L.value="",Ce(),xe()):ue.value&&(L.value="",Ce())},W=()=>{setTimeout(()=>{const X=document.getElementById(m.value);if(n.expandSelected){g.value++;return}if(X){if(X.clientHeight>I.value){const ue=N.value.pop();ue&&!ae.has(ue.value)&&(ae.add(ue.value),ee.value.push(ue))}g.value++}},0)},ce=X=>{X.forEach(ue=>{var Ce,ut;const Ze=((Ce=k.value.filter(Ne=>Ne.value===ue.value))==null?void 0:Ce[0])||null;Ze.selected=!0,Ze.key=(ut=Ze==null?void 0:Ze.key)!=null&&ut.includes("-selected")?Ze.key:`${Ze.key}-selected`,M.value.filter(Ne=>Ne.value===Ze.value).length||(M.value.push(Ze),N.value.push(Ze))}),W()},le=(X,ue)=>{var Ce,ut,Ze,Ne;let wt=!1,pt=ue?X:((Ce=k.value.filter(Nt=>Nt.value===X.value))==null?void 0:Ce[0])||null;if(n.enableItemCreation&&pt!=null&&pt.custom&&(wt=!0),pt===null&&(pt=((ut=M.value.filter(Nt=>Nt.value===X.value))==null?void 0:ut[0])||null),pt===null)return;if(pt.selected){if(M.value=M.value.filter(Nt=>Nt.value!==X.value),N.value.filter(Nt=>Nt.value===X.value).length?N.value=N.value.filter(Nt=>Nt.value!==X.value):ae.delete(X.value)&&(ee.value=ee.value.filter(Nt=>Nt.value!==X.value)),pt.selected=!1,pt.key=(Ze=pt.key)==null?void 0:Ze.replace(/-selected/gi,""),ee.value.length){const Nt=ee.value.pop();Nt&&(N.value.push(Nt),ae.delete(Nt.value))}wt&&(k.value=k.value.filter(Nt=>Nt.value!==X.value),t("item:removed",X))}else pt.selected=!0,pt.key=(Ne=pt.key)!=null&&Ne.includes("-selected")?pt.key:`${pt.key}-selected`,M.value.push(pt),N.value.push(pt),ue&&(pt.custom=!0,k.value.push(pt)),n.expandSelected&&ie();W();const ob=M.value.map(Nt=>Nt.value);t("selected",M.value),t("change",X),t("update:modelValue",ob)},de=()=>{var X;if(!n.enableItemCreation||!L.value||!T.value)return;const ue=k.value.length+1,Ce={label:L.value+"",value:n.testMode?`test-multiselect-added-item-${ue}`:an(),key:`${(X=L.value.replace(/ /gi,"-"))==null?void 0:X.replace(/[^a-z0-9-_]/gi,"")}-${ue}`};t("item:added",Ce),le(Ce,!0),L.value=""},ie=()=>{setTimeout(()=>{var X;(X=D.value)==null||X.scrollIntoView({behavior:"smooth",block:"nearest"})},200)},xe=()=>{const X=P.value.filter(Ce=>Ce.selected),ue=P.value.filter(Ce=>!Ce.selected);A.value=X.concat(ue)},be=()=>{k.value.forEach(X=>{var ue;X.selected=!1,X.key=(ue=X==null?void 0:X.key)==null?void 0:ue.replace(/-selected/gi,""),X.custom&&t("item:removed",X)}),k.value=k.value.filter(X=>!X.custom),M.value=[],N.value=[],ee.value=[],ae.clear(),L.value="",W(),t("selected",[]),t("change",null),t("update:modelValue",[]),t("query-change","")},Se=X=>{L.value=X,t("query-change",X)},Pe=(X,ue)=>{if(X.keyCode===27){ue.value=!1;return}const Ce=document.getElementById(p.value);!ue.value&&Ce&&Ce.click()},ne=()=>{Ue.value=!0,_e.value||(_e.value=!0,t("query-change",""))};Le(g,()=>{setTimeout(()=>{const X=document.getElementById(m.value);if(n.expandSelected){oe.value=i(N.value),Q.value=[],f.value++;return}if(X)if(X.clientHeight>I.value){const ue=N.value.pop();ue&&!ae.has(ue.value)&&(ee.value.push(ue),ae.add(ue.value)),g.value++}else oe.value=i(N.value),Q.value=i(ee.value),f.value++},0)}),Le(f,()=>{x.value&&typeof x.value.updatePopper=="function"&&on(()=>{x.value.updatePopper()})}),Le(P,()=>{xe()}),Le($e,(X,ue)=>{if(JSON.stringify(X)!==JSON.stringify(ue)){const Ce=k.value.filter(ut=>X.includes(ut.value));Ce.length?ce(Ce):X.length||be()}}),Le(()=>n.items,(X,ue)=>{var Ce,ut,Ze;if(JSON.stringify(X)!==JSON.stringify(ue)){k.value=i(n.items);for(let Ne=0;Nept.value===wt.value).length||M.value.push(wt),N.value.filter(pt=>pt.value===wt.value).length||N.value.push(wt)}W()}x.value&&typeof x.value.updatePopper=="function"&&on(()=>{x.value.updatePopper()})}},{deep:!0,immediate:!0});const ke=j(300),me=()=>{var X;ke.value=((X=w.value)==null?void 0:X.clientWidth)||300},Oe=j();return ft(()=>{Oe.value=new ResizeObserver(X=>{window.requestAnimationFrame(()=>{!Array.isArray(X)||!X.length||me()})}),Oe.value.observe(w.value)}),Wa(()=>{Oe.value&&Oe.value.unobserve(w.value)}),(X,ue)=>(C(),S("div",{class:q(["k-multiselect",[X.$attrs.class]]),style:Et(H.value)},[e.label?(C(),se(Ur,Ke({key:0},e.labelAttributes,{"data-testid":e.labelAttributes["data-testid"]?e.labelAttributes["data-testid"]:"k-multiselect-label",for:y.value,required:u.value}),qa({default:F(()=>[J(V(c.value)+" ",1)]),_:2},[d.value?{name:"tooltip",fn:F(()=>[z(X.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):$("",!0),O("div",{id:y.value,"data-testid":"k-multiselect-container"},[G(pe(Iu),null,{default:F(({isToggled:Ce,toggle:ut})=>[G(Jo,Ke({ref_key:"popper",ref:x},R.value,{"on-popover-click":()=>{},"position-fixed":e.positionFixed,target:`[id='${v.value}']`,"test-mode":!!e.testMode||void 0,onClosed:()=>Y(!1,Ce,ut),onOpened:()=>Y(!0,Ce,ut)}),{content:F(()=>[O("div",{class:"k-multiselect-list",onBlur:ue[5]||(ue[5]=()=>Ue.value=!1),onClick:ue[6]||(ue[6]=Mt(()=>{},["stop"])),onFocus:ue[7]||(ue[7]=Ze=>Ue.value=!0),onMouseenter:ue[8]||(ue[8]=()=>Re.value=!0),onMouseleave:ue[9]||(ue[9]=()=>Re.value=!1)},[G(UK,{items:A.value,onSelected:le},{content:F(({item:Ze})=>[z(X.$slots,"item-template",{class:"k-multiselect-item",item:Ze},void 0,!0)]),_:3},8,["items"]),e.enableItemCreation&&T.value?(C(),se(nu,{key:"k-multiselect-new-item",class:"k-multiselect-new-item","data-testid":"k-multiselect-add-item",item:{label:`${L.value} (Add new value)`,value:"add_item"},onSelected:de},{content:F(()=>[O("div",GK,[J(V(L.value)+" ",1),WK])]),_:1},8,["item"])):$("",!0),!A.value.length&&!X.$slots.empty&&!e.enableItemCreation?(C(),se(nu,{key:"k-multiselect-empty-state",class:"k-multiselect-empty-item","data-testid":"k-multiselect-empty-item",item:{label:"No results found",value:"no_results"}},{content:F(()=>[qK,QK]),_:1})):$("",!0)],32),!e.loading&&!A.value.length?z(X.$slots,"empty",{key:0},void 0,!0):$("",!0),X.$slots["dropdown-footer-text"]||e.dropdownFooterText?(C(),S("div",{key:1,class:q(["k-multiselect-dropdown-footer-text",`k-multiselect-dropdown-footer-${e.dropdownFooterTextPosition}`])},[z(X.$slots,"dropdown-footer-text",{},()=>[J(V(e.dropdownFooterText),1)],!0)],2)):$("",!0)]),default:F(()=>[O("div",{ref_key:"multiselectRef",ref:w,class:q(["k-multiselect-trigger",{focused:Ue.value,hovered:Re.value,disabled:ze.value,readonly:fe.value}]),"data-testid":"k-multiselect-trigger",role:"listbox",onClick:Z},[M.value.length&&(Ce.value||e.expandSelected||e.collapsedContext)?(C(),S("div",{id:b.value,key:f.value,class:q(["k-multiselect-selections",{scrollable:e.expandSelected,collapsed:e.collapsedContext&&!Ce.value}]),"data-testid":"k-multiselect-selections",style:Et(e.expandSelected?E.value:te.value)},[(C(!0),S(Me,null,ot(oe.value,(Ze,Ne)=>(C(),se(_i,{key:`${Ze.key?Ze.key:Ne}-badge`,class:q(["k-multiselect-selection-badge",{"expand-selected":e.expandSelected,"resize-badge":Ze.selected&&Ze.disabled}]),dismissable:Ze.selected&&!Ze.disabled,shape:"rectangular","truncation-tooltip":Ze.label,onClick:ue[0]||(ue[0]=Mt(()=>{},["stop"])),onDismissed:wt=>le(Ze)},{default:F(()=>[J(V(Ze.label),1)]),_:2},1032,["class","dismissable","truncation-tooltip","onDismissed"]))),128)),!e.expandSelected&&Q.value.length?(C(),se(_i,{key:0,class:"hidden-selection-count","force-tooltip":"",shape:"rectangular","truncation-tooltip":ye.value,onClick:ue[1]||(ue[1]=Mt(()=>{},["stop"]))},{default:F(()=>[J(" +"+V(Q.value.length),1)]),_:1},8,["truncation-tooltip"])):$("",!0),e.expandSelected?(C(),S("div",{key:1,ref_key:"selectionBottomRef",ref:D},null,512)):$("",!0)],14,YK)):$("",!0),O("div",VK,[!e.loading&&M.value.length&&Ce.value?(C(),se(We,{key:0,class:"k-multiselect-clear-icon","data-testid":"k-multiselect-clear-icon",onClick:be,onKeyup:jt(be,["enter"])},{default:F(()=>[G(Be,{color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"close",size:pe(ws),title:"Clear all selections"},null,8,["color","size"])]),_:1},8,["onKeyup"])):(C(),se(Be,{key:1,class:q(["k-multiselect-chevron-icon",{"in-selection-box":M.value.length}]),color:`var(--grey-500, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:e.loading?"spinner":"chevronDown",size:pe(xt)},null,8,["class","color","icon","size"]))]),O("div",{id:v.value,style:Et(te.value)},[!e.expandSelected&&!e.collapsedContext||(e.expandSelected||e.collapsedContext)&&(!M.value.length||Ce.value)?(C(),se(xs,Ke({key:0,id:p.value},Ae.value,{autocapitalize:"off",autocomplete:"off",class:["k-multiselect-input input-placeholder-dark",{"is-toggled":Ce.value&&M.value.length,"is-readonly":fe.value}],"data-testid":"k-multiselect-input","model-value":L.value,placeholder:_(Ce.value),readonly:fe.value?!0:void 0,type:"text",onBlur:ue[2]||(ue[2]=()=>Ue.value=!1),onClick:Ze=>{Ce.value&&Ze.stopPropagation()},onFocus:ne,onKeyup:Ze=>Pe(Ze,Ce),onMouseenter:ue[3]||(ue[3]=()=>Re.value=!0),onMouseleave:ue[4]||(ue[4]=()=>Re.value=!1),"onUpdate:modelValue":Se}),null,16,["id","class","model-value","placeholder","readonly","onClick","onKeyup"])):$("",!0)],12,KK)],2)]),_:2},1040,["position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,ZK),e.expandSelected?$("",!0):(C(),S("div",XK,[(C(),S("div",{id:m.value,key:g.value,class:"k-multiselect-selections staging",style:Et(te.value),tabindex:"-1"},[(C(!0),S(Me,null,ot(N.value,(Ce,ut)=>(C(),se(_i,{key:`${Ce.key?Ce.key:ut}-badge`,class:"k-multiselect-selection-badge",dismissable:Ce.selected&&!Ce.disabled,hidden:"",shape:"rectangular"},{default:F(()=>[J(V(Ce.label),1)]),_:2},1032,["dismissable"]))),128)),G(_i,{class:"hidden-selection-count",hidden:"",shape:"rectangular"},{default:F(()=>[J(" +"+V(ee.value.length),1)]),_:1})],12,JK))]))],6))}}),aG=Ee(rG,[["__scopeId","data-v-09b6212d"]]),U5=e=>(Ln("data-v-f2763501"),e=e(),Rn(),e),oG={class:"k-prompt-header"},iG={class:"k-prompt-header-content"},sG={class:"close-button"},lG=U5(()=>O("hr",{class:"divider"},null,-1)),uG={class:"k-prompt-body"},cG={class:"k-prompt-body-content"},dG={key:0,class:"k-prompt-confirm-text"},hG={class:"confirm-text"},fG=U5(()=>O("hr",{class:"divider"},null,-1)),pG={class:"k-prompt-action-buttons"},mG=ge({__name:"KPrompt",props:{title:{type:String,default:""},type:{type:String,default:"info",validator:e=>pk.includes(e)},message:{type:String,default:""},actionButtonText:{type:String,default:"OK"},cancelButtonText:{type:String,default:"Cancel"},actionPending:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},confirmationText:{type:String,default:""},preventProceedOnEnter:{type:Boolean,default:!1},tabbableOptions:{type:Object,default:()=>({})}},emits:["canceled","proceed"],setup(e,{emit:t}){const n=e,r=j(""),a=()=>{r.value="",t("canceled")},o=c=>{u.value||(r.value="",t("proceed",c))},i=c=>{n.isVisible&&(c.key==="Escape"?a():c.key==="Enter"&&(n.preventProceedOnEnter||o(c)))},s=(c="")=>{const d=/(?:^|[\s-:'"])\w/g;return c.replace(d,h=>h.toUpperCase())},l=B(()=>n.title?n.type==="warning"?"Warning: "+n.title:n.title:n.type==="info"?"Information":s(n.type)),u=B(()=>n.actionPending?!0:n.confirmationText.length?n.confirmationText!==r.value:!1);return ft(()=>{document.addEventListener("keydown",i)}),Wa(()=>{document.removeEventListener("keydown",i)}),(c,d)=>(C(),se(j5,{class:"k-prompt","is-visible":e.isVisible,"tabbable-options":e.tabbableOptions,"text-align":"left",title:l.value},{"header-content":F(()=>[O("div",oG,[O("div",iG,[z(c.$slots,"header-content",{},()=>[e.type==="warning"?(C(),se(Be,{key:0,class:"warning-icon",color:`var(--white, var(--kui-color-text-inverse, ${pe(Nu)}))`,icon:"warning","secondary-color":"currentColor",size:pe(Ll)},null,8,["color","size"])):$("",!0),J(" "+V(l.value),1)],!0),O("div",sG,[G(We,{"aria-label":"Close",onClick:a},{default:F(()=>[G(Be,{color:`var(--grey-600, var(--kui-color-text-neutral, ${pe(Ho)}))`,icon:"close",size:pe(xt)},null,8,["color","size"])]),_:1})])]),lG])]),"body-content":F(()=>[O("div",uG,[O("div",cG,[z(c.$slots,"body-content",{},()=>[J(V(e.message),1)],!0),e.confirmationText?(C(),S("div",dG,[J(' Type "'),O("span",hG,V(e.confirmationText),1),J('" to confirm your action. '),G(xs,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=h=>r.value=h),autocapitalize:"off",autocomplete:"off","data-testid":"confirmation-input"},null,8,["modelValue"])])):$("",!0)]),fG])]),"footer-content":F(()=>[O("div",pG,[z(c.$slots,"action-buttons",{},()=>[G(We,{appearance:"outline",class:"k-prompt-cancel",onClick:a},{default:F(()=>[J(V(e.cancelButtonText),1)]),_:1}),G(We,{appearance:e.type==="danger"?"danger":"primary",class:"k-prompt-proceed",disabled:u.value,onClick:o},{icon:F(()=>[e.actionPending?(C(),se(Be,{key:0,color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${pe(Xa)}))`,icon:"spinner",size:pe(xt)},null,8,["color","size"])):$("",!0)]),default:F(()=>[J(" "+V(e.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])]),_:3},8,["is-visible","tabbable-options","title"]))}}),vG=Ee(mG,[["__scopeId","data-v-f2763501"]]),gG=["checked"],yG=["id","checked","disabled"],bG={key:0,class:"k-radio-description"},wG=["for"],kG={inheritAttrs:!1},CG=ge({...kG,__name:"KRadio",props:{modelValue:{type:[String,Number,Boolean,Object],default:"on",required:!0},label:{type:String,default:""},labelAttributes:{type:Object,default:()=>({})},description:{type:String,default:""},selectedValue:{type:[String,Number,Boolean,Object],required:!0},type:{type:String,default:"radio",validator:e=>fk.includes(e)},testMode:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=B(()=>h.id?String(h.id):n.testMode?"test-radio-input-id-1234":an()),o=B(()=>(h==null?void 0:h.disabled)!==void 0&&String(h==null?void 0:h.disabled)!=="false"),i=B(()=>!!(n.label||r.default)),s=B(()=>!!(n.description||r.description)),l=B(()=>!!r.tooltip),u=B(()=>n.selectedValue===n.modelValue),c=B(()=>n.type==="radio"),d=()=>{t("change",n.selectedValue),t("update:modelValue",n.selectedValue)},h=Xn(),f=B(()=>{const g={...h};return delete g.class,g});return(g,y)=>(C(),S("div",{checked:u.value,class:q(["k-radio",[c.value?"k-radio-default":`k-radio-${e.type}`,g.$attrs.class?g.$attrs.class:"",{disabled:o.value}]])},[O("input",Ke({id:a.value,checked:u.value},f.value,{class:"k-input",disabled:o.value,type:"radio",onClick:d}),null,16,yG),c.value&&i.value?(C(),se(Ur,Ke({key:0},e.labelAttributes,{class:["k-radio-label",{"has-description":s.value}],for:a.value}),qa({default:F(()=>[z(g.$slots,"default",{},()=>[J(V(e.label),1)]),s.value?(C(),S("div",bG,[z(g.$slots,"description",{},()=>[J(V(e.description),1)])])):$("",!0)]),_:2},[l.value?{name:"tooltip",fn:F(()=>[z(g.$slots,"tooltip")]),key:"0"}:void 0]),1040,["class","for"])):g.$slots.default?(C(),S("label",{key:1,for:a.value},[z(g.$slots,"default")],8,wG)):$("",!0)],10,gG))}}),EG={class:"k-slideout"},xG={class:"content"},SG=ge({__name:"KSlideout",props:{isVisible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=(a,o=!1)=>{(n.isVisible&&a.keyCode===27||o)&&t("close")};return ft(()=>{document.addEventListener("keydown",r)}),gr(()=>{document.removeEventListener("keydown",r)}),(a,o)=>(C(),S("div",EG,[G(ja,{name:"fade"},{default:F(()=>[e.isVisible?(C(),S("div",{key:0,class:"panel-background",onClick:o[0]||(o[0]=i=>r(i,!0))})):$("",!0)]),_:1}),G(ja,{name:"slide"},{default:F(()=>[e.isVisible?(C(),S("div",{key:0,class:q(["panel",{isVisible:"is-visible"}])},[O("button",{class:"close-btn",onClick:o[1]||(o[1]=i=>r(i,!0))},[G(Be,{icon:"close",size:pe(Lu),"view-box":"0 0 24 24"},null,8,["size"])]),O("div",xG,[G(_h,{"border-variant":"noBorder"},{body:F(()=>[z(a.$slots,"default",{},void 0,!0)]),_:3})])])):$("",!0)]),_:3})]))}}),_G=Ee(SG,[["__scopeId","data-v-2ef01f4a"]]),TG=e=>(Ln("data-v-b19dacc6"),e=e(),Rn(),e),DG={class:"k-step-state-icon","data-testid":"k-step-active",fill:"none",viewBox:"0 0 24 24"},MG=TG(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),AG=ge({__name:"KActiveState",props:{title:{type:String,default:"Active"}},setup(e){return(t,n)=>(C(),S("svg",DG,[O("title",null,V(e.title),1),MG]))}}),OG=Ee(AG,[["__scopeId","data-v-b19dacc6"]]),rf=e=>(Ln("data-v-be532e68"),e=e(),Rn(),e),PG={class:"k-step-state-icon","data-testid":"k-step-completed",fill:"none",viewBox:"0 0 24 24"},BG=rf(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),IG=rf(()=>O("path",{class:"k-step-icon-primary",d:"M16 9L10 15L7 12.0001"},null,-1)),NG=rf(()=>O("path",{class:"k-step-icon-secondary",d:"M16 9L10 15L7 12.0001","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.25"},null,-1)),LG=ge({__name:"KCompletedState",props:{title:{type:String,default:"Completed"}},setup(e){return(t,n)=>(C(),S("svg",PG,[O("title",null,V(e.title),1),BG,IG,NG]))}}),RG=Ee(LG,[["__scopeId","data-v-be532e68"]]),$G=e=>(Ln("data-v-7f1024a4"),e=e(),Rn(),e),HG={class:"k-step-state-icon","data-testid":"k-step-default",fill:"none",viewBox:"0 0 24 24"},FG=$G(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),zG=ge({__name:"KDefaultState",props:{title:{type:String,default:"Default"}},setup(e){return(t,n)=>(C(),S("svg",HG,[O("title",null,V(e.title),1),FG]))}}),jG=Ee(zG,[["__scopeId","data-v-7f1024a4"]]),Z5=e=>(Ln("data-v-d93db193"),e=e(),Rn(),e),UG={class:"k-step-state-icon","data-testid":"k-step-error",fill:"none",viewBox:"0 0 24 24"},ZG=Z5(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),YG=Z5(()=>O("path",{class:"k-step-icon-secondary","clip-rule":"evenodd",d:"M16.14 9.517a.889.889 0 0 0-1.258-1.257l-2.483 2.483L9.917 8.26A.889.889 0 0 0 8.66 9.517L11.142 12 8.66 14.483a.889.889 0 0 0 1.257 1.257l2.482-2.483 2.483 2.483a.889.889 0 0 0 1.257-1.257L13.657 12l2.482-2.483Z","fill-rule":"evenodd"},null,-1)),VG=ge({__name:"KErrorState",props:{title:{type:String,default:"Error"}},setup(e){return(t,n)=>(C(),S("svg",UG,[O("title",null,V(e.title),1),ZG,YG]))}}),KG=Ee(VG,[["__scopeId","data-v-d93db193"]]),GG=e=>(Ln("data-v-e3d948f6"),e=e(),Rn(),e),WG={class:"k-step-spinner"},qG={class:"k-step-state-icon","data-testid":"k-step-pending",viewBox:"0 0 50 50"},QG=GG(()=>O("circle",{cx:"25",cy:"25",fill:"none",r:"20","stroke-width":"5"},null,-1)),XG=ge({__name:"KPendingState",props:{title:{type:String,default:"Pending"}},setup(e){return(t,n)=>(C(),S("div",WG,[(C(),S("svg",qG,[J(V(e.title)+" ",1),QG]))]))}}),JG=Ee(XG,[["__scopeId","data-v-e3d948f6"]]),eW={class:"k-step-state"},tW=ge({__name:"KStepState",props:{state:{type:String,default:"default",required:!1,validator:e=>Yg.includes(e)}},setup(e){const t=e,n=B(()=>{let r=jG;switch(t.state){case"active":r=OG;break;case"completed":r=RG;break;case"error":r=KG;break;case"pending":r=JG;break}return r});return(r,a)=>(C(),S("div",eW,[(C(),se(va(n.value)))]))}}),nW=Ee(tW,[["__scopeId","data-v-0c4d4434"]]),rW={class:"k-step"},aW=ge({__name:"KStep",props:{label:{type:String,required:!0},state:{type:String,default:"default",validator:e=>Yg.includes(e)},maxLabelWidth:{type:String,default:"170"}},setup(e){const t=e,{getSizeFromString:n}=kn(),r=B(()=>({maxWidth:n(t.maxLabelWidth)}));return(a,o)=>(C(),S("li",rW,[O("div",{class:q(["k-step-container",{completed:e.state==="completed"}])},[G(nW,{state:e.state},null,8,["state"]),O("div",{class:q(["k-step-label",{bolder:e.state==="active"||e.state==="pending"||e.state==="error",error:e.state==="error"}]),style:Et(r.value)},[G(Ur,null,{default:F(()=>[J(V(e.label),1)]),_:1})],6)],2)]))}}),oW=Ee(aW,[["__scopeId","data-v-b79ad9dc"]]),iW={key:0,class:"k-stepper"},sW=ge({__name:"KStepper",props:{steps:{type:Array,required:!0,validator:e=>!e.length||e.every(t=>t.label!==void 0)},maxLabelWidth:{type:String,default:""}},setup(e){return(t,n)=>e.steps&&e.steps.length?(C(),S("ol",iW,[(C(!0),S(Me,null,ot(e.steps,r=>(C(),se(oW,{key:`k-step-${r.label.replace(/ /gi,"-")}`,label:r.label,"max-label-width":e.maxLabelWidth,state:r.state},null,8,["label","max-label-width","state"]))),128))])):$("",!0)}}),lW=Ee(sW,[["__scopeId","data-v-5beeaa04"]]),uW={class:"k-table-container"},cW={key:0,class:"k-table-toolbar","data-testid":"k-table-toolbar"},dW={key:2,class:"k-table-error-state","data-testid":"k-table-error-state"},hW={key:3,class:"k-table-empty-state","data-testid":"k-table-empty-state"},fW=["data-tableid"],pW=["aria-sort","onClick"],mW={class:"k-table-headers-container"},vW=["role","tabindex"],{clientSideSorter:gW}=kn(),dm=(e,t,n,r)=>gW(e,t,n,r),yW=ge({__name:"KTable",props:{options:{type:Object,default:()=>null,required:!1},enableClientSort:{type:Boolean,default:!1},hasHover:{type:Boolean,default:!0},sortOrder:{type:String,default:"",validator:e=>["ascending","descending",""].includes(e)},sortKey:{type:String,default:""},sortHandlerFn:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},hasSideBorder:{type:Boolean,default:!1},cellAttrs:{type:Function,default:()=>({})},isLoading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateActionButtonIcon:{type:String,default:""},emptyStateIcon:{type:String,default:""},emptyStateIconColor:{type:String,default:""},emptyStateIconSize:{type:String,default:"50"},hasError:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},errorStateIcon:{type:String,default:""},errorStateIconColor:{type:String,default:""},errorStateIconSize:{type:String,default:"50"},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:e=>!!e.length&&e.every(t=>typeof t=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},disableSorting:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},paginationType:{type:String,default:"default",validator:e=>["default","offset"].includes(e)},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:String,default:"",validator:e=>["true","loading",""].includes(e)}},emits:["cell-click","row-click","ktable-error-cta-clicked","ktable-empty-state-cta-clicked","update:table-preferences","sort","state"],setup(e,{emit:t}){const n=e,{useDebounce:r,useRequest:a,useSwrvState:o}=kn(),i=Xn(),s=It(),l=B(()=>n.testMode?"test-table-id-1234":pa()),u={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},c=j([]),d=j([]),h=j(0),f=j(!1),g=j(1),y=j(15),v=j(""),p=j(""),b=j("desc"),m=j(null),w=j([]),D=j(!1),I=j(!1),L=j(!1),T=B(()=>!!s.toolbar),x=ne=>`column-${ne}`,k=ne=>ne,A=(ne,ke)=>(me,Oe)=>{const X=/^on[^a-z]/,ue={};for(const Ce in ke)X.test(Ce)&&ke[Ce]&&(ue[Ce]=ke[Ce]);return Object.keys(ue).reduce((Ce,ut)=>{if(ut.indexOf(ne)===0){const Ze=ut.split(ne);Ce[Ze[1]]=Ne=>ue[ut](Ne,me,Oe)}return Ce},{})},M=B(()=>(ne,ke)=>{const me=A("onRow:",i)(ke,"row"),Oe=A("onCell:",i)(ne,"cell"),X=["a","button","input","select"];return me.click&&(D.value=!0),{...me,...Oe,click(ue){const Ce=ue.target.className;let ut=X.includes(ue.target.tagName.toLowerCase()),Ze=!1;typeof Ce=="string"||Array.isArray(Ce)?Ze=Ce.includes("k-popover"):typeof Ce=="object"&&(Ze=Object.keys(Ce).includes("k-popover")),ue.target.closest(".k-popover-content")!==null&&(Ze=!0);for(let Ne=0;Ne{var ne,ke;const me=n.searchInput,Oe=await n.fetcher({pageSize:y.value,page:g.value,query:me||v.value,sortColumnKey:p.value,sortColumnOrder:b.value,offset:m.value});return c.value=Oe.data,h.value=n.paginationTotalItems||Oe.total||((ne=Oe.data)==null?void 0:ne.length),n.fetcher?n.enableClientSort&&p.value&&b.value&&dm(p.value,"",b.value,c.value):n.options&&n.options.data&&n.options.data.length&&(c.value=n.options.data,h.value=n.options.data.length),n.paginationType==="offset"&&((ke=Oe.pagination)!=null&&ke.offset?(m.value=Oe.pagination.offset,w.value[g.value]||w.value.push(Oe.pagination.offset)):(m.value=null,L.value||(g.value=1))),L.value=!1,N.value=!1,Oe},ae=()=>{const ne={...u,...n.initialFetcherParams};g.value=ne.page??u.page,y.value=ne.pageSize??u.pageSize,v.value=ne.query??u.query,p.value=ne.sortColumnKey??u.sortColumnKey,b.value=ne.sortColumnOrder??u.sortColumnOrder,n.paginationType==="offset"&&(m.value=ne.offset,w.value.push(ne.offset)),n.headers&&n.headers.length?d.value=n.headers:n.options&&n.options.headers&&n.options.headers.length&&(d.value=n.options.headers),I.value=!0},oe=B(()=>w.value[g.value-1]),Q=B(()=>{if(!n.fetcher||!I.value)return"";let ne=l.value;return n.cacheIdentifier&&(ne=n.cacheIdentifier),n.fetcherCacheKey&&(ne+=`-${n.fetcherCacheKey}`),`k-table_${ne}`}),ye=j(""),{debouncedFn:_e,generateDebouncedFn:Re}=r(ne=>{ye.value=ne},350),Ue=Re(0),{data:ze,error:fe,revalidate:$e,isValidating:Ae}=a(()=>Q.value,()=>ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:je,hasData:U,swrvState:R}=o(ze,fe,Ae),K=j(!0),H=B(()=>({hasData:U.value,state:je.value})),te=B(()=>K.value?"loading":fe.value?"error":"success"),{debouncedFn:E,generateDebouncedFn:_}=r($e,500),P=_(0),Z=ne=>{const{key:ke,useSortHandlerFn:me}=ne,Oe=p.value+"";g.value=1,p.value&&ke===p.value?b.value==="asc"?b.value="desc":b.value="asc":(p.value=ke,b.value="asc"),n.options&&n.options.data||n.enableClientSort?me&&n.sortHandlerFn?n.sortHandlerFn({key:ke,prevKey:Oe,sortColumnOrder:b.value,data:c.value}):dm(ke,Oe,b.value,c.value):n.paginationType!=="offset"&&E(),de()},Y=({page:ne})=>{g.value=ne},W=({pageSize:ne})=>{w.value=[null],m.value=null,y.value=ne,g.value=1,de()},ce=ne=>{ne&&ne.target&&ne.target.scrollTop&&(ne.target.scrollTop>1?f.value=!0:ne.target.scrollTop&&(f.value=!f.value))},le=B(()=>({pageSize:y.value,sortColumnKey:p.value,sortColumnOrder:b.value})),de=()=>{t("update:table-preferences",le.value)},ie=()=>{g.value++,L.value=!0},xe=()=>{g.value--,m.value=oe.value},be=B(()=>n.fetcher&&!n.disablePagination&&!(n.paginationType!=="offset"&&n.hidePaginationWhenOptional&&h.value<=n.paginationPageSizes[0])&&!(n.paginationType==="offset"&&n.hidePaginationWhenOptional&&!oe.value&&!m.value&&c.value.length<=n.paginationPageSizes[0])),Se=ne=>ne.toLowerCase().replace(/[^[a-z0-9]/gi,"-");Le(ze,ne=>{ne!=null&&ne.length&&!c.value.length&&(c.value=ne)},{deep:!0,immediate:!0}),Le(je,()=>{switch(je.value){case R.PENDING:K.value=!0;break;case R.VALIDATING_HAS_DATA:K.value=Pe.value;break;default:K.value=!1;break}},{immediate:!0}),Le([H,te],ne=>{var ke;t("state",{state:ne==null?void 0:ne[1],hasData:(ke=ne==null?void 0:ne[0])==null?void 0:ke.hasData})}),Le(()=>n.searchInput,ne=>{g.value!==1&&(g.value=1),ne===""?Ue(ne):_e(ne)},{immediate:!0});const Pe=j(!1);return Le([ye,g,y],async(ne,ke)=>{const me=ke==null?void 0:ke[0],Oe=ne[0],X=ne[1];Oe!==me&&X!==1&&(g.value=1),I.value&&!N.value&&(Pe.value=!0,Oe!==""&&Oe!==me?await E():await P(),Pe.value=!1)},{deep:!0,immediate:!0}),ft(()=>{ae()}),(ne,ke)=>(C(),S("div",uW,[T.value?(C(),S("div",cW,[z(ne.$slots,"toolbar",{state:H.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(K.value||e.isLoading||Pe.value)&&!e.hasError?(C(),se(Th,{key:1,"data-testid":"k-table-skeleton",type:"table"})):e.hasError?(C(),S("div",dW,[z(ne.$slots,"error-state",{},()=>[G(ss,{"cta-is-hidden":!e.errorStateActionMessage||!e.errorStateActionRoute,icon:e.errorStateIcon||"","icon-color":e.errorStateIconColor,"icon-size":e.errorStateIconSize,"is-error":""},{title:F(()=>[J(V(e.errorStateTitle),1)]),message:F(()=>[J(V(e.errorStateMessage),1)]),cta:F(()=>[e.errorStateActionMessage?(C(),se(We,{key:0,appearance:"primary","data-testid":Se(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:ke[0]||(ke[0]=me=>ne.$emit("ktable-error-cta-clicked"))},{default:F(()=>[J(V(e.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):!e.hasError&&!K.value&&!e.isLoading&&!Pe.value&&c.value&&!c.value.length?(C(),S("div",hW,[z(ne.$slots,"empty-state",{},()=>[G(ss,{"cta-is-hidden":!e.emptyStateActionMessage||!e.emptyStateActionRoute,icon:e.emptyStateIcon||"","icon-color":e.emptyStateIconColor,"icon-size":e.emptyStateIconSize},{title:F(()=>[J(V(e.emptyStateTitle),1)]),message:F(()=>[J(V(e.emptyStateMessage),1)]),cta:F(()=>[e.emptyStateActionMessage?(C(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Se(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:ke[1]||(ke[1]=me=>ne.$emit("ktable-empty-state-cta-clicked"))},{default:F(()=>[J(V(e.emptyStateActionMessage),1)]),_:1},8,["appearance","data-testid","icon","to"])):$("",!0)]),_:1},8,["cta-is-hidden","icon","icon-color","icon-size"])],!0)])):(C(),S("section",{key:4,class:"k-table-wrapper",onScrollPassive:ce},[O("table",{class:q(["k-table",{"has-hover":e.hasHover,"is-clickable":D.value,"side-border":e.hasSideBorder}]),"data-tableid":l.value},[O("thead",{class:q({"is-scrolled":f.value})},[O("tr",{class:q({"is-scrolled":f.value})},[(C(!0),S(Me,null,ot(d.value,(me,Oe)=>(C(),S("th",{key:`k-table-${l.value}-headers-${Oe}`,"aria-sort":!e.disableSorting&&me.key===p.value?b.value==="asc"?"ascending":"descending":void 0,class:q(["k-table-headers",{sortable:!e.disableSorting&&!me.hideLabel&&me.sortable,"active-sort":!e.disableSorting&&!me.hideLabel&&me.sortable&&me.key===p.value,[b.value]:!e.disableSorting&&me.key===p.value&&!me.hideLabel,"is-scrolled":f.value}]),onClick:()=>{!e.disableSorting&&me.sortable&&(ne.$emit("sort",{prevKey:p.value,sortColumnKey:me.key,sortColumnOrder:b.value==="asc"?"desc":"asc"}),Z(me))}},[O("span",mW,[z(ne.$slots,x(me.key),{column:k(me)},()=>[O("span",{class:q({"sr-only":me.hideLabel})},V(me.label?me.label:me.key),3)],!0),!e.disableSorting&&!me.hideLabel&&me.sortable?(C(),se(Be,{key:0,"aria-hidden":"true",class:"caret",color:`var(--KTableColor, var(--black-70, var(--kui-color-text, ${pe(vw)})))`,icon:"chevronDown",size:pe(ws)},null,8,["color","size"])):$("",!0)])],10,pW))),128))],2)],2),O("tbody",null,[(C(!0),S(Me,null,ot(c.value,(me,Oe)=>(C(),S("tr",Ke(e.rowAttrs(me),{key:`k-table-${l.value}-row-${Oe}`,role:D.value?"link":null,tabindex:D.value?0:null},od(e.hasSideBorder?M.value(me,me):{},!0)),[(C(!0),S(Me,null,ot(d.value,(X,ue)=>(C(),S("td",Ke(e.cellAttrs({headerKey:X.key,row:me,rowIndex:Oe,colIndex:ue}),{key:`k-table-${l.value}-cell-${ue}`},od(M.value(me[X.key],me),!0)),[z(ne.$slots,X.key,{row:k(me),rowKey:Oe,rowValue:me[X.key]},()=>[J(V(me[X.key]),1)],!0)],16))),128))],16,vW))),128))])],10,fW),be.value?(C(),se(Dh,{key:0,class:"k-table-pagination","current-page":g.value,"data-testid":"k-table-pagination","disable-page-jump":e.disablePaginationPageJump,"initial-page-size":y.value,neighbors:e.paginationNeighbors,"offset-next-button-disabled":!m.value,"offset-prev-button-disabled":!oe.value,"page-sizes":e.paginationPageSizes,"pagination-type":e.paginationType,"test-mode":!!e.testMode||void 0,"total-count":h.value,onGetNextOffset:ie,onGetPrevOffset:xe,onPageChanged:Y,onPageSizeChanged:W},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","offset-next-button-disabled","offset-prev-button-disabled","page-sizes","pagination-type","test-mode","total-count"])):$("",!0)],32))]))}}),bW=Ee(yW,[["__scopeId","data-v-23c42087"]]),wW={class:"k-tabs"},kW={"aria-label":"Tabs",role:"tablist"},CW=["id","aria-controls","aria-selected","role","onClick","onKeydown"],EW=["id","aria-labelledby"],xW=ge({__name:"KTabs",props:{tabs:{type:Array,required:!0},modelValue:{type:String,default:"",validator:e=>e===""||e.includes("#")&&!e.includes(" ")},hasPanels:{type:Boolean,default:!0}},emits:["update:modelValue","changed"],setup(e,{emit:t}){const n=e,r=j(n.modelValue?n.modelValue:n.tabs[0].hash),a=o=>{r.value=o,t("changed",o),t("update:modelValue",o)};return Le(()=>n.modelValue,o=>{r.value=o,t("changed",o),t("update:modelValue",o)}),(o,i)=>(C(),S("div",wW,[O("ul",kW,[(C(!0),S(Me,null,ot(e.tabs,(s,l)=>(C(),S("li",{id:`${s.hash.replace("#","")}-tab`,key:s.hash,"aria-controls":e.hasPanels?`panel-${l}`:void 0,"aria-selected":e.hasPanels?r.value===s.hash?"true":"false":void 0,class:q(["tab-item",{active:r.value===s.hash}]),role:e.hasPanels?"tab":void 0,tabindex:"0",onClick:u=>a(s.hash),onKeydown:[jt(Mt(u=>a(s.hash),["prevent"]),["enter"]),jt(Mt(u=>a(s.hash),["prevent"]),["space"])]},[O("div",{class:q(["tab-link",{"has-panels":e.hasPanels}])},[z(o.$slots,`${s.hash.replace("#","")}-anchor`,{},()=>[O("span",null,V(s.title),1)],!0)],2)],42,CW))),128))]),e.hasPanels?(C(!0),S(Me,{key:0},ot(e.tabs,(s,l)=>(C(),S("div",{id:`panel-${l}`,key:s.hash,"aria-labelledby":`${s.hash.replace("#","")}-tab`,class:"tab-container",role:"tabpanel",tabindex:"0"},[r.value===s.hash?z(o.$slots,s.hash.replace("#",""),{key:0},void 0,!0):$("",!0)],8,EW))),128)):$("",!0)]))}}),SW=Ee(xW,[["__scopeId","data-v-2ddf6190"]]),_W=["cols","rows","value"],TW={key:1,class:"k-textarea"},DW={class:"text-on-input"},MW=["for"],AW={key:0,class:"is-required"},OW=["id","aria-invalid","cols","rows","value"],PW={key:2,class:"k-textarea"},BW=["id","aria-invalid","cols","rows","value"],IW={inheritAttrs:!1},NW=ge({...IW,__name:"KTextArea",props:{modelValue:{type:String,default:""},label:{type:String,default:""},overlayLabel:{type:Boolean,default:!1},labelAttributes:{type:Object,default:()=>({})},characterLimit:{type:Number,default:2048,validator:e=>e>0},disableCharacterLimit:{type:Boolean,default:!1},rows:{type:Number,default:5},cols:{type:Number,default:52},hasError:{type:Boolean,default:!1},testMode:{type:Boolean,default:!1},isResizable:{type:Boolean,default:!1}},emits:["input","update:modelValue","char-limit-exceeded"],setup(e,{emit:t}){const n=e,r=Xn(),a=It(),{stripRequiredLabel:o}=kn(),i=B(()=>(r==null?void 0:r.required)!==void 0&&String(r==null?void 0:r.required)!=="false"),s=j(""),l=j(!1),u=j(!1),c=B(()=>o(n.label,i.value)),d=B(()=>{var b,m;return!!((b=n.labelAttributes)!=null&&b.help||(m=n.labelAttributes)!=null&&m.info||a["label-tooltip"])}),h=B({get(){return n.modelValue},set(b){v({target:{value:b}})}}),f=B(()=>r.id?String(r.id):n.testMode?"test-textArea-id-1234":an()),g=B(()=>{const b={...r};return delete b.class,b}),y=B(()=>!n.disableCharacterLimit&&s.value.length>n.characterLimit),v=b=>{var m;const w=JSON.parse(JSON.stringify((m=b==null?void 0:b.target)==null?void 0:m.value));t("input",w),t("update:modelValue",w),s.value=w};Le(y,(b,m)=>{b!==m&&t("char-limit-exceeded",{value:s.value,length:s.value.length,characterLimit:n.characterLimit,limitExceeded:b})}),Le(h,(b,m)=>{b!==m&&v({target:{value:b}})});const p=()=>s.value?s.value:n.modelValue;return(b,m)=>(C(),S("div",{class:q(["k-input-wrapper",[b.$attrs.class,{"input-error":e.hasError||y.value}]])},[e.label?e.label&&e.overlayLabel?(C(),S("div",TW,[O("div",DW,[O("label",Ke(e.labelAttributes,{class:{focused:l.value,hovered:u.value},for:f.value}),[O("span",null,V(c.value),1),i.value?(C(),S("span",AW,"*")):$("",!0)],16,MW),O("textarea",Ke(g.value,{id:f.value,"aria-invalid":e.hasError||y.value?"true":void 0,class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onBlur:m[0]||(m[0]=()=>l.value=!1),onFocus:m[1]||(m[1]=()=>l.value=!0),onInput:v,onMouseenter:m[2]||(m[2]=()=>u.value=!0),onMouseleave:m[3]||(m[3]=()=>u.value=!1)}),null,16,OW)])])):(C(),S("div",PW,[G(Ur,Ke({for:f.value},e.labelAttributes,{required:i.value}),qa({default:F(()=>[J(V(c.value)+" ",1)]),_:2},[d.value?{name:"tooltip",fn:F(()=>[z(b.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("textarea",Ke(g.value,{id:f.value,"aria-invalid":e.hasError||y.value?"true":void 0,class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onBlur:m[4]||(m[4]=()=>l.value=!1),onFocus:m[5]||(m[5]=()=>l.value=!0),onInput:v,onMouseenter:m[6]||(m[6]=()=>u.value=!0),onMouseleave:m[7]||(m[7]=()=>u.value=!1)}),null,16,BW)])):(C(),S("textarea",Ke({key:0},g.value,{class:["form-control k-input",[e.isResizable?"is-resizable":void 0]],cols:e.cols,rows:e.rows,value:p(),onInput:v}),null,16,_W)),e.disableCharacterLimit?$("",!0):(C(),S("div",{key:3,class:q(["char-limit",{"over-char-limit":y.value}])},V(s.value.length||e.modelValue.length)+" / "+V(e.characterLimit),3))],2))}}),LW=Ee(NW,[["__scopeId","data-v-02ecb1b8"]]),RW={class:"message"},$W=ge({__name:"KToaster",props:{toasterState:{type:Array,default:[],required:!0}},emits:["close"],setup(e){return(t,n)=>(C(),se(M4,{class:"toaster-container-outer",name:"toaster",tag:"div"},{default:F(()=>[(C(!0),S(Me,null,ot(e.toasterState,r=>(C(),S("div",{key:r.key,class:"toaster-item"},[G(Sg,{appearance:r.appearance,"dismiss-type":"icon","has-left-border":"",onClosed:a=>t.$emit("close",r.key)},{alertMessage:F(()=>[O("div",RW,V(r.message),1)]),_:2},1032,["appearance","onClosed"])]))),128))]),_:1}))}}),Y5=Ee($W,[["__scopeId","data-v-b9facd38"]]),HW=Object.keys(Kg),Lc={id:"toaster-container",timeout:5e3,appearance:Kg.info};class FW{constructor(t=Lc.id,n=Lc.timeout,r=Lc.appearance){Na(this,"toasters"),Na(this,"timeout"),Na(this,"appearance"),Na(this,"id"),this.toasters=j([]),this.timeout=n,this.appearance=r,this.id=t,this.mount()}mount(){if(typeof document>"u")return;const t=document.createElement("div");t.id=this.id,document.body.appendChild(t);const n=De(Y5,{toasterState:this.toasters.value,onClose:r=>this.close(r)});Jv(n).mount(`#${this.id}`)}setTimer(t,n){return setTimeout(()=>this.close(t),n)}open(t){const{key:n,timeoutMilliseconds:r,appearance:a,message:o}=t,i=n||this.toasters.value.length+new Date().getTime(),s=a&&HW.indexOf(a)!==-1?a:this.appearance,l=this.setTimer(i,r||this.timeout);this.toasters.value.push({key:i,appearance:s,message:o||t,timer:l,timeoutMilliseconds:r||this.timeout})}close(t){var n,r;const a=(n=this.toasters.value)==null?void 0:n.findIndex(o=>t===o.key);clearTimeout((r=this.toasters.value[a])==null?void 0:r.timer),this.toasters.value.splice(a,1)}closeAll(){this.toasters.value.forEach(t=>clearTimeout(t==null?void 0:t.timer)),this.toasters.value.length=0}}const zW=ge({name:"Kooltip",setup(e,{attrs:t,slots:n,emit:r}){return ft(()=>console.warn(`The Kongponents 'Kooltip' component is deprecated and will be removed in a future release. Update all references of 'Kooltip' to 'KTooltip'. Kongponent Docs: https://kongponents.konghq.com/components/tooltip.html`)),()=>De(ei,{...e,...t,...r},n)}});/*! * vue-draggable-next v2.2.0 @@ -516,7 +516,7 @@ Kongponent Docs: https://kongponents.konghq.com/components/tooltip.html`)),()=>D * @author RubaXa * @author owenm * @license MIT - */function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function ZW(e,t){if(e==null)return{};var n=UW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var YW="1.14.0";function Nr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Vr=Nr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ps=Nr(/Edge/i),fm=Nr(/firefox/i),Vi=Nr(/safari/i)&&!Nr(/chrome/i)&&!Nr(/android/i),V5=Nr(/iP(ad|od|hone)/i),VW=Nr(/chrome/i)&&Nr(/android/i),K5={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Vr&&K5)}function nt(e,t,n){e.removeEventListener(t,n,!Vr&&K5)}function ru(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function KW(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function rr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ru(e,t):ru(e,t))||r&&e===n)return e;if(e===n)break}while(e=KW(e))}return null}var pm=/\s+/g;function vn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(pm," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(pm," ")}}function He(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function So(e,t){var n="";if(typeof e=="string")n=e;else do{var r=He(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function G5(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,o=r.length;if(n)for(;a=o:i=a<=o,!i)return r;if(r===hr())break;r=la(r,!1)}return!1}function Vo(e,t,n,r){for(var a=0,o=0,i=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=ZW(n,tq);Bs.pluginEvent.bind(ze)(e,t,mr({dragEl:he,parentEl:_t,ghostEl:Ye,rootEl:kt,nextEl:Ta,lastDownEl:vl,cloneEl:Tt,cloneHidden:oa,dragStarted:Di,putSortable:Zt,activeSortable:ze.active,originalEvent:r,oldIndex:bo,oldDraggableIndex:Gi,newIndex:gn,newDraggableIndex:aa,hideGhostForTarget:ty,unhideGhostForTarget:ny,cloneNowHidden:function(){oa=!0},cloneNowShown:function(){oa=!1},dispatchSortableEvent:function(o){Jt({sortable:t,name:o,originalEvent:r})}},a))};function Jt(e){eq(mr({putSortable:Zt,cloneEl:Tt,targetEl:he,rootEl:kt,oldIndex:bo,oldDraggableIndex:Gi,newIndex:gn,newDraggableIndex:aa},e))}var he,_t,Ye,kt,Ta,vl,Tt,oa,bo,gn,Gi,aa,Qs,Zt,go=!1,au=!1,ou=[],Ca,Fn,Hc,zc,gm,ym,Di,ho,Wi,qi=!1,Xs=!1,gl,Gt,Fc=[],O0=!1,iu=[],Xu=typeof document<"u",Js=V5,bm=Ps||Vr?"cssFloat":"float",nq=Xu&&!VW&&!V5&&"draggable"in document.createElement("div"),X5=function(){if(Xu){if(Vr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),J5=function(e,t){var n=He(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Vo(e,0,t),o=Vo(e,1,t),i=a&&He(a),s=o&&He(o),l=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Rt(a).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Rt(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var c=i.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||l>=r&&n[bm]==="none"||o&&n[bm]==="none"&&l+u>r)?"vertical":"horizontal"},rq=function(e,t,n){var r=n?e.left:e.top,a=n?e.right:e.bottom,o=n?e.width:e.height,i=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===i||a===s||r+o/2===i+l/2},aq=function(e,t){var n;return ou.some(function(r){var a=r[bn].options.emptyInsertThreshold;if(!(!a||af(r))){var o=Rt(r),i=e>=o.left-a&&e<=o.right+a,s=t>=o.top-a&&t<=o.bottom+a;if(i&&s)return n=r}}),n},ey=function(e){function t(a,o){return function(i,s,l,u){var c=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(a==null&&(o||c))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return t(a(i,s,l,u),o)(i,s,l,u);var d=(o?i:s).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var n={},r=e.group;(!r||ml(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ty=function(){!X5&&Ye&&He(Ye,"display","none")},ny=function(){!X5&&Ye&&He(Ye,"display","")};Xu&&document.addEventListener("click",function(e){if(au)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),au=!1,!1},!0);var Ea=function(e){if(he){e=e.touches?e.touches[0]:e;var t=aq(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[bn]._onDragOver(n)}}},oq=function(e){he&&he.parentNode[bn]._isOutsideThisEl(e.target)};function ze(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Hr({},t),e[bn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return J5(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,i){o.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ze.supportPointer!==!1&&"PointerEvent"in window&&!Vi,emptyInsertThreshold:5};Bs.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);ey(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:nq,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?it(e,"pointerdown",this._onTapStart):(it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),ou.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Hr(this,QW())}ze.prototype={constructor:ze,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ho=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,he):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,a=r.preventOnFilter,o=e.type,i=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(i||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(fq(n),!he&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Vi&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=rr(s,r.draggable,n,!1),!(s&&s.animated)&&vl!==s)){if(bo=Tn(s),Gi=Tn(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Jt({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),un("filter",t,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=rr(l,c.trim(),n,!1),c)return Jt({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),un("filter",t,{evt:e}),!0}),u)){a&&e.cancelable&&e.preventDefault();return}r.handle&&!rr(l,r.handle,n,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,n){var r=this,a=r.el,o=r.options,i=a.ownerDocument,s;if(n&&!he&&n.parentNode===a){var l=Rt(n);if(kt=a,he=n,_t=he.parentNode,Ta=he.nextSibling,vl=n,Qs=o.group,ze.dragged=he,Ca={target:he,clientX:(t||e).clientX,clientY:(t||e).clientY},gm=Ca.clientX-l.left,ym=Ca.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,he.style["will-change"]="all",s=function(){if(un("delayEnded",r,{evt:e}),ze.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!fm&&r.nativeDraggable&&(he.draggable=!0),r._triggerDragStart(e,t),Jt({sortable:r,name:"choose",originalEvent:e}),vn(he,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){G5(he,u.trim(),jc)}),it(i,"dragover",Ea),it(i,"mousemove",Ea),it(i,"touchmove",Ea),it(i,"mouseup",r._onDrop),it(i,"touchend",r._onDrop),it(i,"touchcancel",r._onDrop),fm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,he.draggable=!0),un("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ps||Vr))){if(ze.eventCanceled){this._onDrop();return}it(i,"mouseup",r._disableDelayedDrag),it(i,"touchend",r._disableDelayedDrag),it(i,"touchcancel",r._disableDelayedDrag),it(i,"mousemove",r._delayedDragTouchMoveHandler),it(i,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&it(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){he&&jc(he),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;nt(e,"mouseup",this._disableDelayedDrag),nt(e,"touchend",this._disableDelayedDrag),nt(e,"touchcancel",this._disableDelayedDrag),nt(e,"mousemove",this._delayedDragTouchMoveHandler),nt(e,"touchmove",this._delayedDragTouchMoveHandler),nt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):t?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(he,"dragend",this),it(kt,"dragstart",this._onDragStart));try{document.selection?yl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(go=!1,kt&&he){un("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",oq);var n=this.options;!e&&vn(he,n.dragClass,!1),vn(he,n.ghostClass,!0),ze.active=this,e&&this._appendGhost(),Jt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Fn){this._lastX=Fn.clientX,this._lastY=Fn.clientY,ty();for(var e=document.elementFromPoint(Fn.clientX,Fn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Fn.clientX,Fn.clientY),e!==t);)t=e;if(he.parentNode[bn]._isOutsideThisEl(e),t)do{if(t[bn]){var n=void 0;if(n=t[bn]._onDragOver({clientX:Fn.clientX,clientY:Fn.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ny()}},_onTouchMove:function(e){if(Ca){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,o=Ye&&So(Ye,!0),i=Ye&&o&&o.a,s=Ye&&o&&o.d,l=Js&&Gt&&vm(Gt),u=(a.clientX-Ca.clientX+r.x)/(i||1)+(l?l[0]-Fc[0]:0)/(i||1),c=(a.clientY-Ca.clientY+r.y)/(s||1)+(l?l[1]-Fc[1]:0)/(s||1);if(!ze.active&&!go){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(Jt({rootEl:_t,name:"add",toEl:_t,fromEl:kt,originalEvent:e}),Jt({sortable:this,name:"remove",toEl:_t,originalEvent:e}),Jt({rootEl:_t,name:"sort",toEl:_t,fromEl:kt,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),Zt&&Zt.save()):gn!==bo&&gn>=0&&(Jt({sortable:this,name:"update",toEl:_t,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),ze.active&&((gn==null||gn===-1)&&(gn=bo,aa=Gi),Jt({sortable:this,name:"end",toEl:_t,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){un("nulling",this),kt=he=_t=Ye=Ta=Tt=vl=oa=Ca=Fn=Di=gn=aa=bo=Gi=ho=Wi=Zt=Qs=ze.dragged=ze.ghost=ze.clone=ze.active=null,iu.forEach(function(e){e.checked=!0}),iu.length=Hc=zc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":he&&(this._onDragOver(e),iq(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,a=n.length,o=this.options;rr.right+a||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+a}function cq(e,t,n,r,a,o,i,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!i){if(s&&glc+u*o/2:ld-gl)return-Wi}else if(l>c+u*(1-a)/2&&ld-u*o/2)?l>c+u/2?1:-1:0}function dq(e){return Tn(he)e.replace(yq,(t,n)=>n?n.toUpperCase():""));function Vc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Cm(e,t,n){const r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function bq(e,t){return Object.values(e).indexOf(t)}function wq(e,t,n,r){if(!e)return[];const a=Object.values(e),o=t.length-r;return[...t].map((i,s)=>s>=o?a.length:a.indexOf(i))}function ay(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function kq(e){return t=>{this.realList!==null&&this["onDrag"+e](t),ay.call(this,e,t)}}function Cq(e){return["transition-group","TransitionGroup"].includes(e)}function Eq(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?Cq(t.name):!1}function xq(e,t){return t?{...t.props,...t.attrs}:e}const N0=["Start","Add","Remove","Update","End"],L0=["Choose","Unchoose","Sort","Filter","Clone"],Sq=["Move",...N0,...L0].map(e=>"on"+e);let Kc=null;const _q={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Tq=ge({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...N0.map(e=>e.toLowerCase()),...L0.map(e=>e.toLowerCase())],props:_q,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=xq(this.$attrs,this.componentData);return e?(this.transitionMode=Eq(e),De(this.getTag(),t,e)):De(this.getTag(),t,[])},created(){this.list!==null&&this.modelValue!==null&&vq.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};N0.forEach(a=>{e["on"+a]=kq.call(this,a)}),L0.forEach(a=>{e["on"+a]=ay.bind(this,a)});const t=Object.keys(this.$attrs).reduce((a,o)=>(a[km(o)]=this.$attrs[o],a),{}),n=Object.assign({},t,e,{onMove:(a,o)=>this.onDragMove(a,o)});!("draggable"in n)&&(n.draggable=">*");const r=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new ze(r,n),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Gn(this.component):this.tag},updateOptions(e){for(var t in e){const n=km(t);Sq.indexOf(n)===-1&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=wq(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=bq(this.getChildrenNodes()||[],e);if(t===-1)return null;const n=this.realList[t];return{index:t,element:n}},emitChanges(e){this.$nextTick(()=>{this.$emit("change",e)})},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const n=r=>r.splice(t,0,r.splice(e,1)[0]);this.alterList(n)},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;var t=this.getChildrenNodes();t[e].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),Kc=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;Vc(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(Cm(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){Vc(e.clone);return}if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){Vc(e.item),Cm(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(e),a=this.context,o=this.computeFutureIndex(r,e);Object.assign(a,{futureIndex:o});const i=Object.assign({},e,{relatedContext:r,draggedContext:a});return n(i,t)},onDragEnd(){this.computeIndexes(),Kc=null},getTrargetedComponent(e){return e.__draggable_component__},getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const r=n.realList,a={list:r,component:n};if(e!==t&&r&&n.getUnderlyingVm){const o=n.getUnderlyingVm(t);if(o)return Object.assign(o,a)}return a},computeFutureIndex(e,t){const n=[...t.to.children].filter(o=>o.style.display!=="none");if(n.length===0)return 0;const r=n.indexOf(t.related),a=e.component.getVmIndex(r);return n.indexOf(Kc)!==-1||!t.willInsertAfter?a:a+1}}}),Dq=["data-testid","onClick"],Mq={key:0,class:"k-tree-item-icon","data-testid":"k-tree-item-icon"},Aq={class:"k-tree-item-label","data-testid":"k-tree-item-label"},lf=e=>e.every(t=>{var n;return t.name!==void 0&&t.id!==void 0&&(!((n=t.children)!=null&&n.length)||lf(t.children))}),Oq=ge({__name:"KTreeItem",props:{item:{type:Object,required:!0,validator:e=>lf([e])},disabled:{type:Boolean,default:!1}},emits:["selected"],setup(e,{emit:t}){const n=e,r=It(),a=B(()=>n.item.icon!=="none"||!!r["item-icon"]),o=B(()=>n.item.icon?n.item.icon:"documentList"),i=()=>{if(o.value==="documentList")return n.item.selected?"var(--KTreeListItemSelectedBorder, currentColor)":`var(--KTreeListItemUnselectedBorder, var(--kui-color-border-disabled, ${Cg}))`},s=()=>{t("selected",n.item)};return(l,u)=>(C(),S("a",{class:q(["k-tree-item",{"not-draggable":e.disabled,selected:e.item.selected}]),"data-testid":`k-tree-item-${e.item.id}`,href:"#",role:"button",onClick:Mt(s,["prevent"])},[a.value?(C(),S("div",Mq,[F(l.$slots,"item-icon",{},()=>[G(Be,{icon:o.value,"secondary-color":i,size:pe(Ll)},null,8,["icon","size"])],!0)])):$("",!0),O("div",Aq,[F(l.$slots,"item-label",{},()=>[J(V(e.item.name),1)],!0)])],10,Dq))}}),Pq=Ee(Oq,[["__scopeId","data-v-8ad5e7b2"]]),uf=({children:e=[]})=>e.length===0?0:1+Math.max(...e.map(uf)),Bq=ge({__name:"KTreeDraggable",props:{items:{type:Array,required:!0,validator:e=>!e.length||e.every(t=>t.name!==void 0&&t.id!==void 0)},disableDrag:{type:Boolean,default:!1},maxDepth:{type:Number,default:3},level:{type:Number,default:0},parentId:{type:String,default:""}},emits:["change","child-change","selected"],setup(e,{emit:t}){const n=e,r=j(0),a=j([]),o={tag:"div","force-fallback":!0,animation:"100",draggable:".k-tree-item-container","item-key":"id","ghost-class":"k-tree-item-dragged","drag-class":"k-tree-item-grabbing",class:"child-drop-zone"},i=j(!1),s="item-icon",l="item-label",u=w=>{if(w.icon==="documentList"||!w.icon)return w.selected?"var(--KTreeListItemSelectedBorder, currentColor)":`var(--KTreeListItemUnselectedBorder, var(--kui-color-border-disabled, ${Cg}))`},c=w=>{var D,I;return!((I=(D=a.value.filter(L=>L.id===w.id))==null?void 0:D[0].children)!=null&&I.length)},d=w=>w.children,h=w=>{n.parentId?t("child-change",{parentId:n.parentId,children:a.value,target:(w==null?void 0:w.added)||(w==null?void 0:w.removed)||(w==null?void 0:w.moved)}):t("change",{items:a.value,target:(w==null?void 0:w.added)||(w==null?void 0:w.removed)||(w==null?void 0:w.moved)})},f=w=>{t("child-change",w)},g=w=>{t("selected",w)},y=B(()=>n.level>n.maxDepth-1),v=w=>{var D,I,L,T;const x=((I=(D=w.relatedContext)==null?void 0:D.component)==null?void 0:I.$attrs.level)||0,k=(L=w.draggedContext)==null?void 0:L.element;let A=0;return(T=k.children)!=null&&T.length&&(A=uf(k)),!(x+A>n.maxDepth-1)},p=w=>{var D,I;const L=((I=(D=w.item)==null?void 0:D._underlying_vm_)==null?void 0:I.id)||"",T=a.value.find(x=>x.id===L);i.value=!0,T&&t("selected",T),m(!0)},b=()=>{i.value=!1,m(!1),r.value++},m=w=>{const D=document==null?void 0:document.getElementsByTagName("html").item(0);D&&D.classList.toggle("k-tree-list-grabbing",w)};return Le(()=>n.items,(w,D)=>{JSON.stringify(w)!==JSON.stringify(D)&&(a.value=w,a.value.forEach(I=>{I.children||(I.children=[])}))}),ft(()=>{a.value=n.items,a.value.forEach(w=>{w.children||(w.children=[])})}),(w,D)=>{const I=Gn("KTreeDraggable",!0);return C(),se(pe(Tq),Ke(o,{class:"k-tree-draggable",disabled:e.disableDrag,group:{name:"k-tree-list",put:!y.value},level:e.level,list:a.value,move:v,tag:"div",onChange:h,onEnd:b,onStart:p}),{default:z(()=>[(C(!0),S(Me,null,ot(a.value,L=>(C(),S("div",{key:L.id,class:q(["k-tree-item-container",{"has-no-children":c(L)}])},[(C(),se(Pq,{key:`tree-item-${L.id}-${r.value}`,disabled:e.disableDrag,item:L,onSelected:g},{"item-icon":z(()=>[F(w.$slots,"item-icon",{item:L},()=>[L.icon!=="none"?(C(),se(Be,{key:0,icon:L.icon?L.icon:"documentList","secondary-color":u(L),size:pe(Lu)},null,8,["icon","secondary-color","size"])):$("",!0)],!0)]),"item-label":z(()=>[F(w.$slots,"item-label",{item:L},()=>[J(V(L.name),1)],!0)]),_:2},1032,["disabled","item"])),(C(),se(I,{key:`tree-item-${L.id}-children-${r.value}`,"disable-drag":e.disableDrag,items:d(L),level:e.level+1,"max-depth":e.maxDepth,"parent-id":L.id,onChildChange:f,onSelected:g},{[s]:z(({item:T})=>[F(w.$slots,"item-icon",{item:T},void 0,!0)]),[l]:z(({item:T})=>[F(w.$slots,"item-label",{item:T},void 0,!0)]),_:2},1032,["disable-drag","items","level","max-depth","parent-id"]))],2))),128))]),_:3},16,["disabled","group","level","list"])}}}),Iq=Ee(Bq,[["__scopeId","data-v-e7acd9b9"]]),oy=(e,t)=>(e.forEach(n=>{var r;t.push(n.id),(r=n.children)!=null&&r.length&&oy(n.children,t)}),t),Nq=e=>{const t=oy(e,[]),n=new Set(t);return t.length===n.size},Lq=(e,t)=>{let n=!0;return e.forEach(r=>{n=n&&(!r.children||uf(r)<=t)}),n},Em=e=>lf(e)&&Nq(e),Rq=ge({__name:"KTreeList",props:{modelValue:{type:Array,default:null,validator:e=>!e.length||Em(e)},items:{type:Array,default:null,validator:e=>!e.length||Em(e)},disableDrag:{type:Boolean,default:!1},maxDepth:{type:Number,default:3,validator:e=>e<=5},width:{type:String,default:""}},emits:["change","child-change","selected"],setup(e,{emit:t}){const n=e,r=j([]),a=B({get(){return n.modelValue},set(c){r.value=c}}),{getSizeFromString:o}=kn(),i=B(()=>({maxWidth:o(n.width)})),s=(c,d)=>{(d||r.value).forEach(h=>{var f;h.id===c.id?h.selected=!0:h.selected=!1,(f=h.children)!=null&&f.length&&s(c,h.children)}),t("selected",c)},l=c=>{t("change",c)},u=c=>{t("child-change",c)};return Le(a,(c,d)=>{JSON.stringify(c)!==JSON.stringify(d)&&(r.value=c,r.value.forEach(h=>{h.children||(h.children=[])}))}),Le(()=>n.items,(c,d)=>{JSON.stringify(c)!==JSON.stringify(d)&&(r.value=c,r.value.forEach(h=>{h.children||(h.children=[])}))}),ft(()=>{n.modelValue&&n.items&&console.warn("KTreeList: You should not provide both v-model (or props.modelValue) and props.items"),n.modelValue?r.value=n.modelValue:n.items&&(r.value=n.items),Lq(r.value,n.maxDepth)||console.warn("KTreeList: Provided list depth exceeds `maxDepth`"),r.value.forEach(c=>{c.children||(c.children=[])})}),(c,d)=>(C(),S("div",{class:"k-tree-list","data-testid":"k-tree-list",style:Et(e.width?i.value:void 0)},[G(Iq,{"disable-drag":e.disableDrag,items:r.value,"max-depth":e.maxDepth,onChange:l,onChildChange:u,onSelected:s},{"item-icon":z(({item:h})=>[F(c.$slots,"item-icon",{item:h})]),"item-label":z(({item:h})=>[F(c.$slots,"item-label",{item:h})]),_:3},8,["disable-drag","items","max-depth"])],4))}}),$q={class:"icon"},Hq={class:"dots"},zq={class:"lines"},Fq=ge({__name:"KViewSwitcher",props:{view:{type:String,default:"table",required:!0,validator:e=>kk.includes(e)}},emits:["view-changed"],setup(e,{emit:t}){const n=e,r=j(!0),a=()=>{r.value=!1,t("view-changed",n.view==="table"?"grid":"table")};return(o,i)=>(C(),se(We,{appearance:"outline",class:q(["k-view-switcher view-switch-button",[e.view,{paused:r.value}]]),"is-rounded":!1,size:"small",title:`Toggle to ${e.view==="table"?"grid":"table"} view`,onClick:a},{default:z(()=>[O("div",$q,[O("div",Hq,[(C(),S(Me,null,ot(4,s=>O("i",{key:s})),64))]),O("div",zq,[(C(),S(Me,null,ot(4,s=>O("i",{key:s})),64))])])]),_:1},8,["class","title"]))}}),jq=Ee(Fq,[["__scopeId","data-v-6e32a59a"]]),xm=e=>{try{return new URL(e),!0}catch{return!1}},Uq=["href"],Zq=ge({__name:"KExternalLink",props:{href:{type:String,required:!0,validator:e=>!!xm(e)},hideIcon:{type:Boolean,default:!1}},setup(e){const t=e,n=B(()=>!!xm(t.href)),r=j(!1),a=B(()=>r.value?`var(--KExternalLinkColorHover, var(--blue-600, var(--kui-color-text-primary-strong, ${kw})))`:`var(--KExternalLinkColor, var(--kui-color-text-primary, ${Nl}))`);return(o,i)=>{const s=Gn("KIcon");return n.value?(C(),S("a",{key:0,class:"k-external-link",href:e.href,rel:"noopener",target:"_blank",onMouseleave:i[0]||(i[0]=l=>r.value=!1),onMouseover:i[1]||(i[1]=l=>r.value=!0)},[F(o.$slots,"default",{},void 0,!0),e.hideIcon?$("",!0):(C(),se(s,{key:0,color:a.value,icon:"externalLink",size:"12"},null,8,["color"]))],40,Uq)):$("",!0)}}}),Yq=Ee(Zq,[["__scopeId","data-v-27871540"]]),Vq={key:0,class:"k-truncate-expand-controls"},Kq={key:0,"data-testid":"expand-trigger-wrapper"},Gq={key:0,"data-testid":"collapse-trigger-wrapper"},Wq={key:0,"data-testid":"expand-trigger-wrapper"},qq={key:1},Qq=ge({__name:"KTruncate",props:{rows:{type:Number,default:1,validator:e=>e>0},isTextContent:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},width:{type:String,default:"100%"}},setup(e){const t=e;bs(p=>({b2b587b4:u.value,"1d00c262":pe(c),c3af62ea:t.rows}));const{getSizeFromString:n}=kn(),r=j(t.isExpanded),a=j(!1),o=j(),i=j(),s=j(),l=j(),u=j("0px"),c=Uw,d=j(0),h=async()=>{var p;if(!t.isTextContent&&i.value&&(p=i.value.children)!=null&&p.length){const b=i.value.children,m=Number(String(c).replace(/px$/gi,""));let w=0;for(let I=0;Iw?b[I].offsetHeight:w;const D=(t.rows===1?0:(t.rows-1)*m)+w*t.rows+6;u.value=i.value.offsetHeight>D?`${D}px`:"auto",await on(),f()}},f=()=>{if(i.value&&s.value){const p=t.isTextContent?i.value.scrollHeight:i.value.offsetHeight,b=l.value?l.value.offsetHeight:0;a.value=p>s.value.offsetHeight-b,g()}},g=()=>{if(!t.isTextContent&&(d.value=0,i.value&&s.value)){const p=i.value.children;for(let b=0;bs.value.offsetHeight?(d.value+=1,p[b].getAttribute("tabindex")&&(p[b].tabIndex=-1)):p[b].getAttribute("tabindex")&&(p[b].tabIndex=0)}},y=async()=>{r.value=!r.value,await on(),f()},v=B(()=>({width:n(t.width)}));return ft(()=>{o.value=new ResizeObserver(p=>{window.requestAnimationFrame(()=>{!Array.isArray(p)||!p.length||h()})}),o.value.observe(i.value),f()}),Wa(()=>{o.value&&o.value.unobserve(i.value)}),(p,b)=>{const m=Gn("KButton");return C(),S("div",{ref_key:"kTruncateWrapper",ref:s,class:q(["k-truncate",[r.value?"expanded":"",`k-truncate-${e.isTextContent?"text":"content"}`]]),style:Et(v.value)},[!e.isTextContent&&a.value?(C(),S("div",Vq,[r.value?$("",!0):(C(),S("div",Kq,[F(p.$slots,"expand-trigger",{expand:y,truncatedCount:d.value},()=>[G(m,{appearance:"btn-link",class:"expand-trigger",onClick:y},{default:z(()=>[J(V(d.value),1)]),_:1})],!0)]))])):$("",!0),O("div",{ref_key:"kTruncateContainer",ref:i,class:"k-truncate-container"},[F(p.$slots,"default",{},void 0,!0),!e.isTextContent&&r.value?(C(),S("div",Gq,[F(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"primary",class:"collapse-trigger","is-rounded":"",onClick:y},{default:z(()=>[G(Be,{color:`var(--KTruncateCollapseIconColor, var(--blue-500, var(--kui-color-text-primary, ${pe(Nl)})))`,icon:"chevronUp",size:pe(Eg),title:"Show less"},null,8,["color","size"])]),_:1})],!0)])):$("",!0)],512),e.isTextContent&&(a.value||r.value)?(C(),S("div",{key:1,ref_key:"textToggleControls",ref:l,class:"k-truncate-collapse-controls"},[r.value?$("",!0):(C(),S("div",Wq,[F(p.$slots,"expand-trigger",{expand:y},()=>[G(m,{appearance:"btn-link",class:"expand-trigger",onClick:y},{default:z(()=>[J(" Show more ")]),_:1})],!0)])),r.value?(C(),S("div",qq,[F(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"btn-link",class:"collapse-trigger",onClick:y},{default:z(()=>[J(" Show less ")]),_:1})],!0)])):$("",!0)],512)):$("",!0)],6)}}}),Xq=Ee(Qq,[["__scopeId","data-v-791c716f"]]),Jq={key:0},eQ=ge({__name:"KMethodBadge",props:{method:{type:String,required:!0,validator:e=>wk.includes(e),default:"custom"},isRounded:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:""},isToggle:{type:Boolean,required:!1,default:!1},modelValue:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;bs(s=>({"4851d9e3":o.value[e.method].color}));const r=j(n.modelValue),a=B(()=>n.label||n.method.toUpperCase()),o=B(()=>({get:{color:`var(--petrol-200, var(--kui-method-color-text-get, ${Lw}))`,backgroundColor:`var(--petrol-100, var(--kui-method-color-background-get, ${Tw}))`},post:{color:`var(--green-700, var(--kui-method-color-text-post, ${zw}))`,backgroundColor:`var(--green-100, var(--kui-method-color-background-post, ${Ow}))`},put:{color:`var(--yellow-600, var(--kui-method-color-text-put, ${Fw}))`,backgroundColor:`var(--yellow-100, var(--kui-method-color-background-put, ${Pw}))`},patch:{color:`var(--teal-500, var(--kui-method-color-text-patch, ${Hw}))`,backgroundColor:`var(--teal-100, var(--kui-method-color-background-patch, ${Aw}))`},delete:{color:`var(--red-700, var(--kui-method-color-text-delete, ${Nw}))`,backgroundColor:`var(--red-100, var(--kui-method-color-background-delete, ${_w}))`},head:{color:`var(--yellow-600, var(--kui-method-color-text-head, ${Rw}))`,backgroundColor:`var(--yellow-200, var(--kui-method-color-background-head, ${Dw}))`},options:{color:`var(--steel-700, var(--kui-method-color-text-options, ${$w}))`,backgroundColor:`var(--steel-200, var(--kui-method-color-background-options, ${Mw}))`},trace:{color:`var(--white, var(--kui-method-color-text-trace, ${jw}))`,backgroundColor:`var(--steel-500, var(--kui-method-color-background-trace, ${Bw}))`},connect:{color:`var(--purple-400, var(--kui-method-color-text-connect, ${Iw}))`,backgroundColor:`var(--purple-100, var(--kui-method-color-background-connect, ${Sw}))`},custom:{color:`var(--white, var(--kui-color-text-inverse, ${Nu}))`,backgroundColor:`var(--steel-500, var(--kui-color-background-neutral-strong, ${mw}))`}})),i=()=>{r.value=!r.value};return Le(r,s=>{t("update:modelValue",s)}),Le(()=>n.modelValue,s=>{r.value=s}),(s,l)=>{const u=Gn("KInputSwitch"),c=Gn("KBadge");return C(),se(c,Ke({"background-color":o.value[e.method].backgroundColor,class:["k-method-badge",[`method-${e.method}`,{"k-method-toggle":e.isToggle}]],color:o.value[e.method].color,"max-width":"auto",shape:e.isToggle||e.isRounded?"rounded":"rectangular"},od({click:e.isToggle?i:void 0})),{default:z(()=>[e.isToggle?$("",!0):(C(),S("span",Jq,V(a.value),1)),e.isToggle?(C(),se(u,{key:1,modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),label:a.value,"label-position":"left"},null,8,["modelValue","label"])):$("",!0)]),_:1},16,["background-color","class","color","shape"])}}}),tQ=Ee(eQ,[["__scopeId","data-v-65b300cb"]]),Sm=Object.freeze(Object.defineProperty({__proto__:null,KAlert:Sg,KBadge:_i,KBreadcrumbs:Gg,KButton:We,KCard:_h,KCatalog:QE,KCatalogItem:qg,KCheckbox:nx,KClipboardProvider:k6,KCodeBlock:Bx,KCollapse:Hx,KComponent:yp,KDateTimePicker:GY,KDropdownItem:B5,KDropdownMenu:JY,KEmptyState:ss,KExternalLink:Yq,KFileUpload:aV,KIcon:Be,KInlineEdit:uV,KInput:xs,KInputSwitch:wV,KLabel:Ur,KMenu:NV,KMenuItem:N5,KMethodBadge:tQ,KModal:j5,KModalFullscreen:IK,KMultiselect:aG,KPagination:Dh,KPop:Jo,KPrompt:vG,KRadio:CG,KSegmentedControl:P5,KSelect:Wg,KSkeleton:Th,KSkeletonBox:Dt,KSlideout:_G,KStepper:lW,KTable:bW,KTabs:SW,KTextArea:LW,KToaster:Y5,KToggle:Iu,KTooltip:ei,KTreeList:Rq,KTruncate:Xq,KViewSwitcher:jq,Komponent:yp,Kooltip:FW,Krumbs:Vk,ToastManager:zW},Symbol.toStringTag,{value:"Module"})),nQ={install:e=>{for(const t in Sm)e.component(t,Sm[t])}};function rQ(e,t){return async n=>{const r=Jv(n);return r.use(e,tg),r.use(t),r.use(nQ),r}}function aQ(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}var Qi=class{constructor(t,n,r,a,o,i){ct(this,"type",3);ct(this,"name","");ct(this,"prefix","");ct(this,"value","");ct(this,"suffix","");ct(this,"modifier",3);this.type=t,this.name=n,this.prefix=r,this.value=a,this.suffix=o,this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},oQ=/[$_\p{ID_Start}]/u,iQ=/[$_\u200C\u200D\p{ID_Continue}]/u,R0=".*";function sQ(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function iy(e,t=!1){let n=[],r=0;for(;r{if(il("OTHER_MODIFIER")??l("ASTERISK"),c=b=>{let m=l(b);if(m!==void 0)return m;let{type:w,index:D}=n[i];throw new TypeError(`Unexpected ${w} at ${D}, expected ${b}`)},d=()=>{let b="",m;for(;m=l("CHAR")??l("ESCAPED_CHAR");)b+=m;return b},h=b=>b,f=t.encodePart||h,g="",y=b=>{g+=b},v=()=>{g.length&&(a.push(new Qi(3,"","",f(g),"",3)),g="")},p=(b,m,w,D,I)=>{let L=3;switch(I){case"?":L=1;break;case"*":L=0;break;case"+":L=2;break}if(!m&&!w&&L===3){y(b);return}if(v(),!m&&!w){if(!b)return;a.push(new Qi(3,"","",f(b),"",L));return}let T;w?w==="*"?T=R0:T=w:T=r;let x=2;T===r?(x=1,T=""):T===R0&&(x=0,T="");let k;if(m?k=m:w&&(k=o++),s.has(k))throw new TypeError(`Duplicate name '${k}'.`);s.add(k),a.push(new Qi(x,k,f(b),T,f(D),L))};for(;i-1)}return i||(r+=`(?=${o}|${a})`),new RegExp(r,_m(n))}var ta={delimiter:"",prefixes:"",sensitive:!0,strict:!0},uQ={delimiter:".",prefixes:"",sensitive:!0,strict:!0},cQ={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function dQ(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function uy(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function hQ(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function cy(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var dy=["ftp","file","http","https","ws","wss"];function hy(e){if(!e)return!0;for(let t of dy)if(e.test(t))return!0;return!1}function fQ(e,t){if(e=uy(e,"#"),t||e==="")return e;let n=new URL("https://example.com");return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):""}function pQ(e,t){if(e=uy(e,"?"),t||e==="")return e;let n=new URL("https://example.com");return n.search=e,n.search?n.search.substring(1,n.search.length):""}function mQ(e,t){return t||e===""?e:cy(e)?my(e):py(e)}function vQ(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.password=e,n.password}function gQ(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.username=e,n.username}function yQ(e,t,n){if(n||e==="")return e;if(t&&!dy.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]=="/";return e=new URL(r?e:"/-"+e,"https://example.com").pathname,r||(e=e.substring(2,e.length)),e}function bQ(e,t,n){return fy(t)===e&&(e=""),n||e===""?e:vy(e)}function wQ(e,t){return e=hQ(e,":"),t||e===""?e:cf(e)}function fy(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function cf(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function kQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function CQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function py(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function my(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function vy(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function EQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function xQ(e){return e===""?e:new URL(`data:${e}`).pathname}function SQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function _Q(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var To,en,Ct,mt,La,Do,Pr,Mo,Ao,Oo,At,Lt,lu,gy,vs,$0,Ra,Oi,Po,wl,dn,_n,gs,H0,uu,yy,Bo,kl,cu,by,du,wy,Io,Cl,ia,yo,Br,Da,hu,ky,fu,Cy,pu,Ey,mu,xy,Dn,nr,vu,Sy,Zm,TQ=(Zm=class{constructor(e){Qe(this,At);Qe(this,lu);Qe(this,vs);Qe(this,Ra);Qe(this,Po);Qe(this,dn);Qe(this,gs);Qe(this,uu);Qe(this,Bo);Qe(this,cu);Qe(this,du);Qe(this,Io);Qe(this,ia);Qe(this,Br);Qe(this,hu);Qe(this,fu);Qe(this,pu);Qe(this,mu);Qe(this,Dn);Qe(this,vu);Qe(this,To,void 0);Qe(this,en,[]);Qe(this,Ct,{});Qe(this,mt,0);Qe(this,La,1);Qe(this,Do,0);Qe(this,Pr,0);Qe(this,Mo,0);Qe(this,Ao,0);Qe(this,Oo,!1);$t(this,To,e)}get result(){return re(this,Ct)}parse(){for($t(this,en,iy(re(this,To),!0));re(this,mt)0)if(ve(this,fu,Cy).call(this))$t(this,Mo,re(this,Mo)-1);else continue;if(ve(this,hu,ky).call(this)){$t(this,Mo,re(this,Mo)+1);continue}switch(re(this,Pr)){case 0:ve(this,gs,H0).call(this)&&(re(this,Ct).username="",re(this,Ct).password="",re(this,Ct).hostname="",re(this,Ct).port="",re(this,Ct).pathname="",re(this,Ct).search="",re(this,Ct).hash="",ve(this,Ra,Oi).call(this,1));break;case 1:if(ve(this,gs,H0).call(this)){ve(this,vu,Sy).call(this);let e=7,t=1;re(this,Oo)&&(re(this,Ct).pathname="/"),ve(this,uu,yy).call(this)?(e=2,t=3):re(this,Oo)&&(e=2),ve(this,At,Lt).call(this,e,t)}break;case 2:ve(this,Bo,kl).call(this)?ve(this,Ra,Oi).call(this,3):(ve(this,Io,Cl).call(this)||ve(this,ia,yo).call(this)||ve(this,Br,Da).call(this))&&ve(this,Ra,Oi).call(this,5);break;case 3:ve(this,cu,by).call(this)?ve(this,At,Lt).call(this,4,1):ve(this,Bo,kl).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 4:ve(this,Bo,kl).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 5:ve(this,pu,Ey).call(this)?$t(this,Ao,re(this,Ao)+1):ve(this,mu,xy).call(this)&&$t(this,Ao,re(this,Ao)-1),ve(this,du,wy).call(this)&&!re(this,Ao)?ve(this,At,Lt).call(this,6,1):ve(this,Io,Cl).call(this)?ve(this,At,Lt).call(this,7,0):ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 6:ve(this,Io,Cl).call(this)?ve(this,At,Lt).call(this,7,0):ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 7:ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 8:ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break}}}},To=new WeakMap,en=new WeakMap,Ct=new WeakMap,mt=new WeakMap,La=new WeakMap,Do=new WeakMap,Pr=new WeakMap,Mo=new WeakMap,Ao=new WeakMap,Oo=new WeakMap,At=new WeakSet,Lt=function(e,t){switch(re(this,Pr)){case 0:break;case 1:re(this,Ct).protocol=ve(this,Dn,nr).call(this);break;case 2:break;case 3:re(this,Ct).username=ve(this,Dn,nr).call(this);break;case 4:re(this,Ct).password=ve(this,Dn,nr).call(this);break;case 5:re(this,Ct).hostname=ve(this,Dn,nr).call(this);break;case 6:re(this,Ct).port=ve(this,Dn,nr).call(this);break;case 7:re(this,Ct).pathname=ve(this,Dn,nr).call(this);break;case 8:re(this,Ct).search=ve(this,Dn,nr).call(this);break;case 9:re(this,Ct).hash=ve(this,Dn,nr).call(this);break}ve(this,lu,gy).call(this,e,t)},lu=new WeakSet,gy=function(e,t){$t(this,Pr,e),$t(this,Do,re(this,mt)+t),$t(this,mt,re(this,mt)+t),$t(this,La,0)},vs=new WeakSet,$0=function(){$t(this,mt,re(this,Do)),$t(this,La,0)},Ra=new WeakSet,Oi=function(e){ve(this,vs,$0).call(this),$t(this,Pr,e)},Po=new WeakSet,wl=function(e){return e<0&&(e=re(this,en).length-e),e=0&&(e.pathname=Sr(r.pathname.substring(0,a+1),n)+e.pathname)}e.pathname=yQ(e.pathname,e.protocol,n)}return typeof t.search=="string"&&(e.search=pQ(t.search,n)),typeof t.hash=="string"&&(e.hash=fQ(t.hash,n)),e}function Pi(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function DQ(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function MQ(e,t){t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./"),t.sensitive??(t.sensitive=!1),t.strict??(t.strict=!1),t.end??(t.end=!0),t.start??(t.start=!0),t.endsWith="";let n=".*",r=`[^${DQ(t.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,o="";for(let i=0;i0?e[i-1]:null,d=i0?d.value[0]:"";u=a.test(h)}else u=!d.hasCustomName();if(!u&&!s.prefix.length&&c&&c.type===3){let h=c.value[c.value.length-1];u=t.prefixes.includes(h)}u&&(o+="{"),o+=Pi(s.prefix),l&&(o+=`:${s.name}`),s.type===2?o+=`(${s.value})`:s.type===1?l||(o+=`(${r})`):s.type===0&&(!l&&(!c||c.type===3||c.modifier!==3||u||s.prefix!=="")?o+="*":o+=`(${n})`),s.type===1&&l&&s.suffix.length&&a.test(s.suffix[0])&&(o+="\\"),o+=Pi(s.suffix),u&&(o+="}"),s.modifier!==3&&(o+=wo(s.modifier))}return o}var ir,$a,No,Ht,sr,Ym,_y=(Ym=class{constructor(t={},n,r){Qe(this,ir,void 0);Qe(this,$a,{});Qe(this,No,{});Qe(this,Ht,{});Qe(this,sr,{});try{let a;if(typeof n=="string"?a=n:r=n,typeof t=="string"){let l=new TQ(t);if(l.parse(),t=l.result,a===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=a}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(a)throw new TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let o={ignoreCase:r.ignoreCase===!0};$t(this,ir,Ei({pathname:Jr,protocol:Jr,username:Jr,password:Jr,hostname:Jr,port:Jr,search:Jr,hash:Jr},t,!0)),fy(re(this,ir).protocol)===re(this,ir).port&&(re(this,ir).port="");let s;for(s of Gc){if(!(s in re(this,ir)))continue;let l={},u=re(this,ir)[s];switch(re(this,No)[s]=[],s){case"protocol":Object.assign(l,ta),l.encodePart=cf;break;case"username":Object.assign(l,ta),l.encodePart=kQ;break;case"password":Object.assign(l,ta),l.encodePart=CQ;break;case"hostname":Object.assign(l,uQ),cy(u)?l.encodePart=my:l.encodePart=py;break;case"port":Object.assign(l,ta),l.encodePart=vy;break;case"pathname":hy(re(this,$a).protocol)?(Object.assign(l,cQ,o),l.encodePart=EQ):(Object.assign(l,ta,o),l.encodePart=xQ);break;case"search":Object.assign(l,ta,o),l.encodePart=SQ;break;case"hash":Object.assign(l,ta,o),l.encodePart=_Q;break}try{re(this,sr)[s]=sy(u,l),re(this,$a)[s]=ly(re(this,sr)[s],re(this,No)[s],l),re(this,Ht)[s]=MQ(re(this,sr)[s],l)}catch{throw new TypeError(`invalid ${s} pattern '${re(this,ir)[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&n)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?r=Ei(r,t,!1):r=Ei(r,Tm(t,n),!1)}catch{return!1}let a;for(a of Gc)if(!re(this,$a)[a].exec(r[a]))return!1;return!0}exec(t={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&n)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?r=Ei(r,t,!1):r=Ei(r,Tm(t,n),!1)}catch{return null}let a={};n?a.inputs=[t,n]:a.inputs=[t];let o;for(o of Gc){let i=re(this,$a)[o].exec(r[o]);if(!i)return null;let s={};for(let[l,u]of re(this,No)[o].entries())if(typeof u=="string"||typeof u=="number"){let c=i[l+1];s[u]=c}a[o]={input:r[o]??"",groups:s}}return a}static compareComponent(t,n,r){let a=(l,u)=>{for(let c of["type","modifier","prefix","value","suffix"]){if(l[c]{let c=0;for(;c{this.routes.set(new _y({pathname:n}),r)})}match(t){for(const[n,r]of this.routes){const a=`data:${t}`;if(n.test(a)){const o=n.exec(a);return{route:r,params:(o==null?void 0:o.pathname.groups)||{}}}}throw new Error(`Matching route for '${t}' not found`)}}class OQ{constructor(t,n){ct(this,"pool",new Map);this.create=t,this.destroy=n}acquire(t,n){if(!this.pool.has(t)){const a={value:this.create(t),references:new Set};this.pool.set(t,a)}const r=this.pool.get(t);return r.references.add(n),r.value}release(t,n){if(this.pool.has(t)){const r=this.pool.get(t);r.references.delete(n),r.references.size===0&&(this.pool.delete(t),this.destroy(t,r.value))}}}class PQ{constructor(t,{create:n,destroy:r}){ct(this,"cache",new Map);ct(this,"pool");const a=new AQ(t);this.pool=new OQ(o=>n(o,a),(o,i)=>{r(o,i)})}source(t,n){const r=this.pool.acquire(t,n);return r.addEventListener("message",a=>{this.cache.set(t,a.data)}),this.cache.has(t)&&Promise.resolve().then(()=>{r==null||r.dispatchEvent(new MessageEvent("message",{data:this.cache.get(t)}))}),r}close(t,n){return this.pool.release(t,n)}}const BQ=0,IQ=1,Ma=2,NQ=e=>e.readyState===Ma;class LQ extends EventTarget{constructor(n,r={}){super();ct(this,"url","");ct(this,"withCredentials",!1);ct(this,"CONNECTING",BQ);ct(this,"OPEN",IQ);ct(this,"CLOSED",Ma);ct(this,"onerror",null);ct(this,"onmessage",null);ct(this,"onopen",null);ct(this,"readyState",Ma);this.source=n,this._open()}_open(){(async function(n){try{n.readyState=0;const r=n.source();for await(const a of r)if(n.dispatchEvent(new MessageEvent("message",{data:a})),n.readyState===Ma)break;n.readyState=Ma}catch(r){n.dispatchEvent(new ErrorEvent("error",{error:r}))}})(this)}open(){this.readyState!==Ma&&this._open()}close(){this.readyState=Ma}}const RQ=(e,t)=>{const[n,r]=e.split("?"),a=new URLSearchParams(r),o=t.match(n);return new LQ(async function*(){for(;;)this.readyState=1,yield o.route({offset:parseInt(a.get("offset")||"0"),size:parseInt(a.get("size")||"0"),page:parseInt(a.get("page")||"0"),search:a.get("search")||"",...o.params},this),NQ(this)||await new Promise(s=>setTimeout(s,5e3))})},$Q=(e,t)=>{t&&t.close()},HQ={create:RQ,destroy:$Q},zQ=["protocol","service","zone"];function z0(e){const t=new Map;for(const[n,r]of e){const a=zQ.includes(n),o=a?"tag":n;t.has(o)||t.set(o,[]);const i=t.get(o);let s;o==="tag"?s=(a?`kuma.io/${n}:${r}`:r).replace(/\s+/g,""):s=r,i.push(s.trim())}return t}const FQ=e=>({"/:mesh/dataplanes":async(t,n)=>{n.close();const r=t.mesh,a=t.size,o=t.size*(t.page-1),i="false",s=Object.fromEntries(z0(JSON.parse(t.search||"[]")));return e.getAllDataplaneOverviewsFromMesh({mesh:r},{...s,gateway:i,offset:o,size:a})},"/:mesh/dataplane-overviews/:name":(t,n)=>{n.close();const r=t.mesh,a=t.name;return e.getDataplaneOverviewFromMesh({mesh:r,name:a})},"/:mesh/dataplanes/for/:service/of/:type":async(t,n)=>{n.close();const r=t.mesh,a=t.size,o=t.size*(t.page-1),i=Object.fromEntries(z0(JSON.parse(t.search||"[]")));typeof i.tag>"u"&&(i.tag=[]),i.tag=i.tag.filter(l=>!l.startsWith("kuma.io/service:")),i.tag.push(`kuma.io/service:${t.service}`);const s=t.type!=="all"?{gateway:t.type}:{};return e.getAllDataplaneOverviewsFromMesh({mesh:r},{...i,...s,offset:o,size:a})}});var Wc=new WeakMap,Ty=new Map,jQ=new Map,Va;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Va||(Va={}));var zr;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(zr||(zr={}));var UQ=class{constructor(e){this.impl=e,this.type=Va.Constant}},ZQ=class{constructor(e){this.impl=e,this.type=Va.Factory}},YQ=e=>e.type===Va.Factory,Ju=class{constructor(e){this.impl=e,this.type=Va.Instance}},VQ=class extends Ju{constructor(){super(...arguments),this.scope=zr.Container,this.cache=new WeakMap}},KQ=class extends Ju{constructor(){super(...arguments),this.scope=zr.Resolution}},GQ=class extends Ju{constructor(e){super(e),this.impl=e,this.scope=zr.Singleton}},WQ=class extends Ju{constructor(){super(...arguments),this.scope=zr.Transient}},qQ=e=>e.type===Va.Instance,QQ=e=>e.scope===zr.Container,XQ=e=>e.scope===zr.Resolution,JQ=e=>e.scope===zr.Singleton,eX=e=>Symbol(e),Ge=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},Bi=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=Bi.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 a=r.get(n);if(a)return a}if(t)for(let a=0,o=t.length;a{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Dy=Bi;Dy.notag=eX("NO_TAG");var tX=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(a,n,r,t.split()))}resolveToken(e,t,n,r=new My){const a=this.vault.get(e,r,t,n);if(a)return this.resolveBinding(a,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return qQ(e)?JQ(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):QQ(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):XQ(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):YQ(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(a=>El.resolveInitialization(a,n,e.impl.initializer)):El.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const a=n();if(a!==void 0)return a;const o=this.createInstance(e.impl,t);return r(o),o}createInstance(e,t){const n=this.getParameters(e,t),r=Wc.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const a=e(...n);return Wc.set(e,!0),a}catch{const o=new e(...n);return Wc.set(e,!1),o}}getParameters(e,t){const n=Ty.get(e);if(n)return this.resolveTokens(n,t,jQ.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}},iX=()=>new El,sX=(e,...t)=>(Ty.set(e,t),e),xte=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uX=function(t){return cX(t)&&!dX(t)};function cX(e){return!!e&&typeof e=="object"}function dX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pX(e)}var hX=typeof Symbol=="function"&&Symbol.for,fX=hX?Symbol.for("react.element"):60103;function pX(e){return e.$$typeof===fX}function mX(e){return Array.isArray(e)?[]:{}}function ps(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ko(mX(e),e,t):e}function vX(e,t,n){return e.concat(t).map(function(r){return ps(r,n)})}function gX(e,t){if(!t.customMerge)return Ko;var n=t.customMerge(e);return typeof n=="function"?n:Ko}function yX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Dm(e){return Object.keys(e).concat(yX(e))}function Ay(e,t){try{return t in e}catch{return!1}}function bX(e,t){return Ay(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function wX(e,t,n){var r={};return n.isMergeableObject(e)&&Dm(e).forEach(function(a){r[a]=ps(e[a],n)}),Dm(t).forEach(function(a){bX(e,a)||(Ay(e,a)&&n.isMergeableObject(t[a])?r[a]=gX(a,n)(e[a],t[a],n):r[a]=ps(t[a],n))}),r}function Ko(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||vX,n.isMergeableObject=n.isMergeableObject||uX,n.cloneUnlessOtherwiseSpecified=ps;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):wX(e,t,n):ps(t,n)}Ko.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Ko(r,a,n)},{})};var kX=Ko,CX=kX;const EX=lX(CX),df=iX(),xX=(...e)=>[...new Map([...e.flat()]).entries()],SX=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const a=r.decorates,o=t.get(a);if(typeof o<"u"){const{labels:i,...s}=o,l=Ge("inner"),u=Ge("inner.wrapper");t.set(l,{...s}),t.set(u,{service:()=>()=>Is(l)}),t.set(a,{...r,arguments:[u],labels:i})}r.decorates=void 0}}),[...t.entries()]},Is=e=>df.get(e),_X=(...e)=>(SX(xX(...e)).forEach(n=>Oy(...n)),Is),Ste=(...e)=>e.map(t=>()=>Is(t)),tl=new WeakMap,Oy=(e,t)=>{const n=df.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=>{tl.has(r)||(tl.set(r,[]),Oy(r,{service:()=>tl.get(r).reduce((o,i)=>{const s=Is(i);return Array.isArray(s)?o.concat(s):s instanceof Object?EX(o,s):o},[])})),tl.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,a)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${a}]`)}),sX(t.service,...t.arguments))},TX=(e,t)=>{const n=Ge(t.description);return df.bind(n).toConstant(e),n},Lr=50,DX=500,_te="Disabled",Tte="kuma.io/zone";function zt(e,t=0){const n=MX(e);return n!==void 0?parseInt(n):t}function MX(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const AX=()=>({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=>({mesh:n.params.mesh,page:zt(n.query.page,1),size:zt(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||""))}),component:()=>qe(()=>import("./DataPlaneListView-35e7067e.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./KFilterBar-773487be.css","./DataPlaneListView-c5de0d1d.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:()=>qe(()=>import("./DataPlaneDetailView-0107fcc5.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-24e06782.css","./TextWithCopyButton-8d73c6d4.css","./EnvoyData-5367f20b.css","./StatusBadge-e1af7147.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-a0a45d57.css"],import.meta.url)}]}]}),OX={sources:Ge("mesh.sources")},PX=e=>[[OX.sources,{service:FQ,arguments:[e.api],labels:[e.sources]}]],BX=e=>({"/config":async(t,n)=>(n.close(),await e.getConfig())}),IX=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>qe(()=>import("./DiagnosticsView-81e1e8b6.js"),["./RouteView-d5d38fa0.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css"],import.meta.url)}],NX={sources:Ge("diagnostics.sources")},LX=e=>[[NX.sources,{service:BX,arguments:[e.api],labels:[e.sources]}]],RX=e=>({"/:mesh/gateways":async(t,n)=>{n.close();const r=t.size*(t.page-1);return e.getAllDataplaneOverviewsFromMesh({mesh:t.mesh},{gateway:"true",offset:r,size:t.size})},"/:mesh/gateways/of/:type":async(t,n)=>{n.close();const r=t.size*(t.page-1);return e.getAllDataplaneOverviewsFromMesh({mesh:t.mesh},{...Object.fromEntries(z0(JSON.parse(t.search||"[]"))),gateway:t.type==="all"?"true":t.type,offset:r,size:t.size})}}),$X=()=>({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=>({mesh:n.params.mesh,page:zt(n.query.page,1),size:zt(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||"")),gatewayType:n.query.gatewayType||"all"}),component:()=>qe(()=>import("./GatewayListView-42b02b49.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./KFilterBar-773487be.css","./GatewayListView-92765df8.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:()=>qe(()=>import("./DataPlaneDetailView-0107fcc5.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-24e06782.css","./TextWithCopyButton-8d73c6d4.css","./EnvoyData-5367f20b.css","./StatusBadge-e1af7147.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-a0a45d57.css"],import.meta.url)}]}]}),HX={sources:Ge("mesh.sources")},zX=e=>[[HX.sources,{service:RX,arguments:[e.api],labels:[e.sources]}]];function FX(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 jX=e=>({"/meshes":async(t,n)=>{n.close();const r=t.size*(t.page-1);return e.getAllMeshes({size:t.size,offset:r})},"/:mesh/mesh":(t,n)=>(n.close(),e.getMesh({name:t.mesh})),"/:mesh/insights":async(t,n)=>(n.close(),e.getMeshInsights({name:t.mesh}))}),UX=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:a=>({page:zt(a.query.page,1),size:zt(a.query.size,Lr)}),component:()=>qe(()=>import("./MeshListView-cd7bf48e.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./MeshListView-2076e6f0.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>qe(()=>import("./MeshIndexView-9bbd82f2.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:":mesh",name:"mesh",redirect:{name:"mesh-detail-view"},children:[{path:"",name:"mesh-tabs-view",redirect:{name:"mesh-detail-view"},component:()=>qe(()=>import("./MeshTabsView-28d4fa7e.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>qe(()=>import("./MeshDetailView-68ef96bd.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./ErrorBlock-24e06782.css","./MeshDetailView-e0ad88f1.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")]}]}],ZX={sources:Ge("mesh.sources")},YX=e=>[[ZX.sources,{service:jX,arguments:[e.api],labels:[e.sources]}]],VX=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>qe(()=>import("./OnboardingView-415d4ccc.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./WelcomeView-266547ff.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./WelcomeView-13de7acd.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./DeploymentTypes-b3133c28.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-1fd3474f.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./ConfigurationTypes-4ab5df96.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./MultiZoneView-9f22b024.js"),["./RouteView-d5d38fa0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-bcbeee96.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./CreateMesh-c7985dcf.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./CreateMesh-eaf572f8.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./AddNewServices-c6b67078.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./AddNewServicesCode-3e48daac.js"),["./RouteView-d5d38fa0.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:()=>qe(()=>import("./DataplanesOverview-4134d454.js"),["./RouteView-d5d38fa0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-e1af7147.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./CompletedView-d1cc9391.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],KX=e=>({"/*/policy-types":(t,n)=>(n.close(),e.getPolicyTypes()),"/:mesh/:path":(t,n)=>{n.close();const{mesh:r,path:a,size:o}=t,i=t.size*(t.page-1);return e.getAllPolicyEntitiesFromMesh({mesh:r,path:a},{offset:i,size:o})},"/:mesh/:path/:name/dataplanes":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getPolicyConnections({mesh:r,path:a,name:o})}}),GX=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let a=e.state.policyTypes.find(o=>o.name in e.state.policyTypeTotals?e.state.policyTypeTotals[o.name].total!==0:!1);return a===void 0&&(a=e.state.policyTypes[0]),a===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:a.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>qe(()=>import("./PolicyListView-20f4a0c2.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./ErrorBlock-24e06782.css","./PolicyListView-e83a16fa.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,page:zt(r.query.page,1),size:zt(r.query.size,Lr)})}]}]}],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:()=>qe(()=>import("./PolicyDetailView-7e40c20f.js"),["./RouteView-d5d38fa0.css","./ErrorBlock-24e06782.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),WX={sources:Ge("policy.sources")},qX=e=>[[WX.sources,{service:KX,arguments:[e.api],labels:[e.sources]}]],QX=e=>({"/:mesh/service-insights":async(t,n)=>{n.close();const r=t.mesh,a=t.size,o=t.size*(t.page-1);return e.getAllServiceInsightsFromMesh({mesh:r},{size:a,offset:o})},"/:mesh/service-insights/:name":(t,n)=>{n.close();const r=t.mesh,a=t.name;return e.getServiceInsight({mesh:r,name:a})},"/:mesh/external-services/:name":(t,n)=>{n.close();const r=t.mesh,a=t.name;return e.getExternalServiceByServiceInsightName(r,a)}}),XX=()=>({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=>({mesh:n.params.mesh,page:zt(n.query.page,1),size:zt(n.query.size,Lr)}),component:()=>qe(()=>import("./ServiceListView-4ebd439a.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./TextWithCopyButton-8d73c6d4.css","./ServiceListView-968ed30d.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:()=>qe(()=>import("./ServiceDetailView-bcdaffa2.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./ErrorBlock-24e06782.css","./StatusBadge-e1af7147.css","./TagList-d344db8e.css","./AppCollection-493fc841.css","./KFilterBar-773487be.css","./ServiceDetailView-215773d1.css"],import.meta.url),props:n=>({mesh:n.params.mesh,service:n.params.service,gatewayType:n.query.gatewayType||"all",page:zt(n.query.page,1),size:zt(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||""))})}]}]}),JX={sources:Ge("service.sources")},eJ=e=>[[JX.sources,{service:QX,arguments:[e.api],labels:[e.sources]}]],tJ=e=>({"/zone-cps":async(t,n)=>{n.close();const r=t.size,a=t.size*(t.page-1);return await e.getAllZoneOverviews({size:r,offset:a})},"/zone-cps/:name":async(t,n)=>{n.close();const r=t.name;return await e.getZoneOverview({name:r})},"/zone-ingresses":async(t,n)=>{n.close();const r=t.size,a=t.size*(t.page-1);return await e.getAllZoneIngressOverviews({size:r,offset:a})},"/zone-egresses/:name":async(t,n)=>{n.close();const r=t.name;return await e.getZoneEgressOverview({name:r})},"/zone-egresses":async(t,n)=>{n.close();const r=t.size,a=t.size*(t.page-1);return await e.getAllZoneEgressOverviews({size:r,offset:a})},"/zone-ingresses/:name":async(t,n)=>{n.close();const r=t.name;return await e.getZoneIngressOverview({name:r})}}),nJ=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>qe(()=>import("./ZoneCreateView-2f5ca0d0.js"),["./CodeBlock-7d9027b4.css","./RouteView-d5d38fa0.css","./ErrorBlock-24e06782.css","./ZoneCreateView-448aac5c.css"],import.meta.url)}],rJ=e=>[...e,{path:"/zones",name:"zone-index-view",redirect:{name:"zone-cp-list-view"},component:()=>qe(()=>import("./ZoneIndexView-faee0b2c.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:"zone-cps",name:"zone-cps",children:[{path:"",name:"zone-cp-tabs-view",meta:{module:"zone-cps"},component:()=>qe(()=>import("./ZoneTabsView-96e03dc2.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-cp-list-view",props:t=>({page:zt(t.query.page,1),size:zt(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneListView-a3326a79.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneListView-09c1d14c.css"],import.meta.url)}]},{path:":zone",name:"zone-cp-detail-view",component:()=>qe(()=>import("./ZoneDetailView-e79d1d0d.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingresses",children:[{path:"",name:"zone-ingress-tabs-view",meta:{module:"zone-ingresses"},component:()=>qe(()=>import("./ZoneTabsView-96e03dc2.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-ingress-list-view",props:t=>({page:zt(t.query.page,1),size:zt(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneIngressListView-abf59c86.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneIngressListView-9326d722.css"],import.meta.url)}]},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>qe(()=>import("./ZoneIngressDetailView-e0c8bc96.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./EnvoyData-5367f20b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egresses",children:[{path:"",name:"zone-egress-tabs-view",meta:{module:"zone-egresses"},component:()=>qe(()=>import("./ZoneTabsView-96e03dc2.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-egress-list-view",props:t=>({page:zt(t.query.page,1),size:zt(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneEgressListView-739a5945.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneEgressListView-5de78ef2.css"],import.meta.url)}]},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>qe(()=>import("./ZoneEgressDetailView-ab681c60.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./EnvoyData-5367f20b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]}]}],aJ={sources:Ge("access-role.sources")},oJ=e=>[[aJ.sources,{service:tJ,arguments:[e.api],labels:[e.sources]}]],iJ={common:{product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"}}},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."},collection:{none:" ",actions:{delete:"Delete",edit:"Edit",view:"View details"}},charts:{dataPlaneProxies:{title:"DP Proxies"},envoy:{title:"Envoy",subtitle:"versions"},kumaDp:{title:"Kuma DP",subtitle:"versions"},meshes:{title:"Meshes",meshLabel:"Mesh"},services:{title:"Services",internalLabel:"Internal",externalLabel:"External"},zoneCps:{title:"Zone CP",subtitle:"versions"},zones:{title:"Zones"}}}},sJ={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},lJ={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"}}}},uJ={"data-planes":{routes:{item:{title:"{name} Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}},href:{docs:{"mutual-tls":"{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}"}},list:{version_mismatch:"Version mismatch"}}},cJ={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},dJ={gateways:{routes:{item:{title:"{name} Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},hJ={"main-overview":{routes:{item:{title:"Overview"}}}},fJ={meshes:{routes:{item:{title:"{name} Mesh",breadcrumbs:"Meshes",navigation:{"mesh-detail-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"}}}},pJ={onboarding:{href:{docs:{install:"{KUMA_DOCS_URL}/deployments/multi-zone?{KUMA_UTM_QUERY_PARAMS}#zone-control-plane"}},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"}}}},mJ={policies:{routes:{item:{title:"{name} Policy",breadcrumbs:"Policies"},items:{title:"{name}"}},href:{docs:"{KUMA_DOCS_URL}/policies/{name}?{KUMA_UTM_QUERY_PARAMS}"}}},vJ={services:{routes:{item:{title:"{name} Service",breadcrumbs:"Services"},items:{title:"Services"}}}},gJ={"zone-cps":{routes:{item:{title:"{name} Zone Control Plane",breadcrumbs:"Zone Control Planes",config:{"no-subscriptions":"This zone has no subscriptions"}},items:{title:"Zone Control Planes",breadcrumbs:"Zone Control Planes"}},list:{version_mismatch:"Version mismatch"}},"zone-ingresses":{routes:{item:{title:"{name} Zone Ingress",breadcrumbs:"Ingresses"},items:{title:"Ingresses",breadcrumbs:"Ingresses"}}},"zone-egresses":{routes:{item:{title:"{name} Zone Egress",breadcrumbs:"Egresses"},items:{title:"Egresses",breadcrumbs:"Egresses"}}},zones:{href:{docs:{cta:"{KUMA_DOCS_URL}/documentation/deployments?{KUMA_UTM_QUERY_PARAMS}"}},routes:{create:{title:"Create & connect Zone"},items:{title:"Zones",navigation:{"zone-cp-list-view":"Zone Control Planes","zone-ingress-list-view":"Ingresses","zone-egress-list-view":"Egresses"}}},index:{create:"Create Zone"},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 \\ + */function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function ZW(e,t){if(e==null)return{};var n=UW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var YW="1.14.0";function Nr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Vr=Nr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ps=Nr(/Edge/i),fm=Nr(/firefox/i),Vi=Nr(/safari/i)&&!Nr(/chrome/i)&&!Nr(/android/i),V5=Nr(/iP(ad|od|hone)/i),VW=Nr(/chrome/i)&&Nr(/android/i),K5={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Vr&&K5)}function nt(e,t,n){e.removeEventListener(t,n,!Vr&&K5)}function ru(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function KW(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function rr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ru(e,t):ru(e,t))||r&&e===n)return e;if(e===n)break}while(e=KW(e))}return null}var pm=/\s+/g;function vn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(pm," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(pm," ")}}function He(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function So(e,t){var n="";if(typeof e=="string")n=e;else do{var r=He(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function G5(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,o=r.length;if(n)for(;a=o:i=a<=o,!i)return r;if(r===hr())break;r=la(r,!1)}return!1}function Vo(e,t,n,r){for(var a=0,o=0,i=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=ZW(n,tq);Bs.pluginEvent.bind(Fe)(e,t,mr({dragEl:he,parentEl:_t,ghostEl:Ye,rootEl:kt,nextEl:Ta,lastDownEl:vl,cloneEl:Tt,cloneHidden:oa,dragStarted:Di,putSortable:Zt,activeSortable:Fe.active,originalEvent:r,oldIndex:bo,oldDraggableIndex:Gi,newIndex:gn,newDraggableIndex:aa,hideGhostForTarget:ty,unhideGhostForTarget:ny,cloneNowHidden:function(){oa=!0},cloneNowShown:function(){oa=!1},dispatchSortableEvent:function(o){Jt({sortable:t,name:o,originalEvent:r})}},a))};function Jt(e){eq(mr({putSortable:Zt,cloneEl:Tt,targetEl:he,rootEl:kt,oldIndex:bo,oldDraggableIndex:Gi,newIndex:gn,newDraggableIndex:aa},e))}var he,_t,Ye,kt,Ta,vl,Tt,oa,bo,gn,Gi,aa,Qs,Zt,go=!1,au=!1,ou=[],Ca,zn,Hc,Fc,gm,ym,Di,ho,Wi,qi=!1,Xs=!1,gl,Gt,zc=[],O0=!1,iu=[],Xu=typeof document<"u",Js=V5,bm=Ps||Vr?"cssFloat":"float",nq=Xu&&!VW&&!V5&&"draggable"in document.createElement("div"),X5=function(){if(Xu){if(Vr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),J5=function(e,t){var n=He(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Vo(e,0,t),o=Vo(e,1,t),i=a&&He(a),s=o&&He(o),l=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Rt(a).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Rt(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var c=i.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||l>=r&&n[bm]==="none"||o&&n[bm]==="none"&&l+u>r)?"vertical":"horizontal"},rq=function(e,t,n){var r=n?e.left:e.top,a=n?e.right:e.bottom,o=n?e.width:e.height,i=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===i||a===s||r+o/2===i+l/2},aq=function(e,t){var n;return ou.some(function(r){var a=r[bn].options.emptyInsertThreshold;if(!(!a||af(r))){var o=Rt(r),i=e>=o.left-a&&e<=o.right+a,s=t>=o.top-a&&t<=o.bottom+a;if(i&&s)return n=r}}),n},ey=function(e){function t(a,o){return function(i,s,l,u){var c=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(a==null&&(o||c))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return t(a(i,s,l,u),o)(i,s,l,u);var d=(o?i:s).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var n={},r=e.group;(!r||ml(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ty=function(){!X5&&Ye&&He(Ye,"display","none")},ny=function(){!X5&&Ye&&He(Ye,"display","")};Xu&&document.addEventListener("click",function(e){if(au)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),au=!1,!1},!0);var Ea=function(e){if(he){e=e.touches?e.touches[0]:e;var t=aq(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[bn]._onDragOver(n)}}},oq=function(e){he&&he.parentNode[bn]._isOutsideThisEl(e.target)};function Fe(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Hr({},t),e[bn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return J5(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,i){o.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Fe.supportPointer!==!1&&"PointerEvent"in window&&!Vi,emptyInsertThreshold:5};Bs.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);ey(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:nq,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?it(e,"pointerdown",this._onTapStart):(it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),ou.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Hr(this,QW())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ho=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,he):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,a=r.preventOnFilter,o=e.type,i=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(i||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(fq(n),!he&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Vi&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=rr(s,r.draggable,n,!1),!(s&&s.animated)&&vl!==s)){if(bo=Tn(s),Gi=Tn(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Jt({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),un("filter",t,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=rr(l,c.trim(),n,!1),c)return Jt({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),un("filter",t,{evt:e}),!0}),u)){a&&e.cancelable&&e.preventDefault();return}r.handle&&!rr(l,r.handle,n,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,n){var r=this,a=r.el,o=r.options,i=a.ownerDocument,s;if(n&&!he&&n.parentNode===a){var l=Rt(n);if(kt=a,he=n,_t=he.parentNode,Ta=he.nextSibling,vl=n,Qs=o.group,Fe.dragged=he,Ca={target:he,clientX:(t||e).clientX,clientY:(t||e).clientY},gm=Ca.clientX-l.left,ym=Ca.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,he.style["will-change"]="all",s=function(){if(un("delayEnded",r,{evt:e}),Fe.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!fm&&r.nativeDraggable&&(he.draggable=!0),r._triggerDragStart(e,t),Jt({sortable:r,name:"choose",originalEvent:e}),vn(he,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){G5(he,u.trim(),jc)}),it(i,"dragover",Ea),it(i,"mousemove",Ea),it(i,"touchmove",Ea),it(i,"mouseup",r._onDrop),it(i,"touchend",r._onDrop),it(i,"touchcancel",r._onDrop),fm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,he.draggable=!0),un("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ps||Vr))){if(Fe.eventCanceled){this._onDrop();return}it(i,"mouseup",r._disableDelayedDrag),it(i,"touchend",r._disableDelayedDrag),it(i,"touchcancel",r._disableDelayedDrag),it(i,"mousemove",r._delayedDragTouchMoveHandler),it(i,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&it(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){he&&jc(he),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;nt(e,"mouseup",this._disableDelayedDrag),nt(e,"touchend",this._disableDelayedDrag),nt(e,"touchcancel",this._disableDelayedDrag),nt(e,"mousemove",this._delayedDragTouchMoveHandler),nt(e,"touchmove",this._delayedDragTouchMoveHandler),nt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):t?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(he,"dragend",this),it(kt,"dragstart",this._onDragStart));try{document.selection?yl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(go=!1,kt&&he){un("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",oq);var n=this.options;!e&&vn(he,n.dragClass,!1),vn(he,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Jt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(zn){this._lastX=zn.clientX,this._lastY=zn.clientY,ty();for(var e=document.elementFromPoint(zn.clientX,zn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(zn.clientX,zn.clientY),e!==t);)t=e;if(he.parentNode[bn]._isOutsideThisEl(e),t)do{if(t[bn]){var n=void 0;if(n=t[bn]._onDragOver({clientX:zn.clientX,clientY:zn.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ny()}},_onTouchMove:function(e){if(Ca){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,o=Ye&&So(Ye,!0),i=Ye&&o&&o.a,s=Ye&&o&&o.d,l=Js&&Gt&&vm(Gt),u=(a.clientX-Ca.clientX+r.x)/(i||1)+(l?l[0]-zc[0]:0)/(i||1),c=(a.clientY-Ca.clientY+r.y)/(s||1)+(l?l[1]-zc[1]:0)/(s||1);if(!Fe.active&&!go){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(Jt({rootEl:_t,name:"add",toEl:_t,fromEl:kt,originalEvent:e}),Jt({sortable:this,name:"remove",toEl:_t,originalEvent:e}),Jt({rootEl:_t,name:"sort",toEl:_t,fromEl:kt,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),Zt&&Zt.save()):gn!==bo&&gn>=0&&(Jt({sortable:this,name:"update",toEl:_t,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),Fe.active&&((gn==null||gn===-1)&&(gn=bo,aa=Gi),Jt({sortable:this,name:"end",toEl:_t,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){un("nulling",this),kt=he=_t=Ye=Ta=Tt=vl=oa=Ca=zn=Di=gn=aa=bo=Gi=ho=Wi=Zt=Qs=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,iu.forEach(function(e){e.checked=!0}),iu.length=Hc=Fc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":he&&(this._onDragOver(e),iq(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,a=n.length,o=this.options;rr.right+a||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+a}function cq(e,t,n,r,a,o,i,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!i){if(s&&glc+u*o/2:ld-gl)return-Wi}else if(l>c+u*(1-a)/2&&ld-u*o/2)?l>c+u/2?1:-1:0}function dq(e){return Tn(he)e.replace(yq,(t,n)=>n?n.toUpperCase():""));function Vc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Cm(e,t,n){const r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function bq(e,t){return Object.values(e).indexOf(t)}function wq(e,t,n,r){if(!e)return[];const a=Object.values(e),o=t.length-r;return[...t].map((i,s)=>s>=o?a.length:a.indexOf(i))}function ay(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function kq(e){return t=>{this.realList!==null&&this["onDrag"+e](t),ay.call(this,e,t)}}function Cq(e){return["transition-group","TransitionGroup"].includes(e)}function Eq(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?Cq(t.name):!1}function xq(e,t){return t?{...t.props,...t.attrs}:e}const N0=["Start","Add","Remove","Update","End"],L0=["Choose","Unchoose","Sort","Filter","Clone"],Sq=["Move",...N0,...L0].map(e=>"on"+e);let Kc=null;const _q={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Tq=ge({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...N0.map(e=>e.toLowerCase()),...L0.map(e=>e.toLowerCase())],props:_q,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=xq(this.$attrs,this.componentData);return e?(this.transitionMode=Eq(e),De(this.getTag(),t,e)):De(this.getTag(),t,[])},created(){this.list!==null&&this.modelValue!==null&&vq.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};N0.forEach(a=>{e["on"+a]=kq.call(this,a)}),L0.forEach(a=>{e["on"+a]=ay.bind(this,a)});const t=Object.keys(this.$attrs).reduce((a,o)=>(a[km(o)]=this.$attrs[o],a),{}),n=Object.assign({},t,e,{onMove:(a,o)=>this.onDragMove(a,o)});!("draggable"in n)&&(n.draggable=">*");const r=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new Fe(r,n),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Gn(this.component):this.tag},updateOptions(e){for(var t in e){const n=km(t);Sq.indexOf(n)===-1&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=wq(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=bq(this.getChildrenNodes()||[],e);if(t===-1)return null;const n=this.realList[t];return{index:t,element:n}},emitChanges(e){this.$nextTick(()=>{this.$emit("change",e)})},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const n=r=>r.splice(t,0,r.splice(e,1)[0]);this.alterList(n)},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;var t=this.getChildrenNodes();t[e].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),Kc=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;Vc(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(Cm(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){Vc(e.clone);return}if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){Vc(e.item),Cm(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(e),a=this.context,o=this.computeFutureIndex(r,e);Object.assign(a,{futureIndex:o});const i=Object.assign({},e,{relatedContext:r,draggedContext:a});return n(i,t)},onDragEnd(){this.computeIndexes(),Kc=null},getTrargetedComponent(e){return e.__draggable_component__},getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const r=n.realList,a={list:r,component:n};if(e!==t&&r&&n.getUnderlyingVm){const o=n.getUnderlyingVm(t);if(o)return Object.assign(o,a)}return a},computeFutureIndex(e,t){const n=[...t.to.children].filter(o=>o.style.display!=="none");if(n.length===0)return 0;const r=n.indexOf(t.related),a=e.component.getVmIndex(r);return n.indexOf(Kc)!==-1||!t.willInsertAfter?a:a+1}}}),Dq=["data-testid","onClick"],Mq={key:0,class:"k-tree-item-icon","data-testid":"k-tree-item-icon"},Aq={class:"k-tree-item-label","data-testid":"k-tree-item-label"},lf=e=>e.every(t=>{var n;return t.name!==void 0&&t.id!==void 0&&(!((n=t.children)!=null&&n.length)||lf(t.children))}),Oq=ge({__name:"KTreeItem",props:{item:{type:Object,required:!0,validator:e=>lf([e])},disabled:{type:Boolean,default:!1}},emits:["selected"],setup(e,{emit:t}){const n=e,r=It(),a=B(()=>n.item.icon!=="none"||!!r["item-icon"]),o=B(()=>n.item.icon?n.item.icon:"documentList"),i=()=>{if(o.value==="documentList")return n.item.selected?"var(--KTreeListItemSelectedBorder, currentColor)":`var(--KTreeListItemUnselectedBorder, var(--kui-color-border-disabled, ${Cg}))`},s=()=>{t("selected",n.item)};return(l,u)=>(C(),S("a",{class:q(["k-tree-item",{"not-draggable":e.disabled,selected:e.item.selected}]),"data-testid":`k-tree-item-${e.item.id}`,href:"#",role:"button",onClick:Mt(s,["prevent"])},[a.value?(C(),S("div",Mq,[z(l.$slots,"item-icon",{},()=>[G(Be,{icon:o.value,"secondary-color":i,size:pe(Ll)},null,8,["icon","size"])],!0)])):$("",!0),O("div",Aq,[z(l.$slots,"item-label",{},()=>[J(V(e.item.name),1)],!0)])],10,Dq))}}),Pq=Ee(Oq,[["__scopeId","data-v-8ad5e7b2"]]),uf=({children:e=[]})=>e.length===0?0:1+Math.max(...e.map(uf)),Bq=ge({__name:"KTreeDraggable",props:{items:{type:Array,required:!0,validator:e=>!e.length||e.every(t=>t.name!==void 0&&t.id!==void 0)},disableDrag:{type:Boolean,default:!1},maxDepth:{type:Number,default:3},level:{type:Number,default:0},parentId:{type:String,default:""}},emits:["change","child-change","selected"],setup(e,{emit:t}){const n=e,r=j(0),a=j([]),o={tag:"div","force-fallback":!0,animation:"100",draggable:".k-tree-item-container","item-key":"id","ghost-class":"k-tree-item-dragged","drag-class":"k-tree-item-grabbing",class:"child-drop-zone"},i=j(!1),s="item-icon",l="item-label",u=w=>{if(w.icon==="documentList"||!w.icon)return w.selected?"var(--KTreeListItemSelectedBorder, currentColor)":`var(--KTreeListItemUnselectedBorder, var(--kui-color-border-disabled, ${Cg}))`},c=w=>{var D,I;return!((I=(D=a.value.filter(L=>L.id===w.id))==null?void 0:D[0].children)!=null&&I.length)},d=w=>w.children,h=w=>{n.parentId?t("child-change",{parentId:n.parentId,children:a.value,target:(w==null?void 0:w.added)||(w==null?void 0:w.removed)||(w==null?void 0:w.moved)}):t("change",{items:a.value,target:(w==null?void 0:w.added)||(w==null?void 0:w.removed)||(w==null?void 0:w.moved)})},f=w=>{t("child-change",w)},g=w=>{t("selected",w)},y=B(()=>n.level>n.maxDepth-1),v=w=>{var D,I,L,T;const x=((I=(D=w.relatedContext)==null?void 0:D.component)==null?void 0:I.$attrs.level)||0,k=(L=w.draggedContext)==null?void 0:L.element;let A=0;return(T=k.children)!=null&&T.length&&(A=uf(k)),!(x+A>n.maxDepth-1)},p=w=>{var D,I;const L=((I=(D=w.item)==null?void 0:D._underlying_vm_)==null?void 0:I.id)||"",T=a.value.find(x=>x.id===L);i.value=!0,T&&t("selected",T),m(!0)},b=()=>{i.value=!1,m(!1),r.value++},m=w=>{const D=document==null?void 0:document.getElementsByTagName("html").item(0);D&&D.classList.toggle("k-tree-list-grabbing",w)};return Le(()=>n.items,(w,D)=>{JSON.stringify(w)!==JSON.stringify(D)&&(a.value=w,a.value.forEach(I=>{I.children||(I.children=[])}))}),ft(()=>{a.value=n.items,a.value.forEach(w=>{w.children||(w.children=[])})}),(w,D)=>{const I=Gn("KTreeDraggable",!0);return C(),se(pe(Tq),Ke(o,{class:"k-tree-draggable",disabled:e.disableDrag,group:{name:"k-tree-list",put:!y.value},level:e.level,list:a.value,move:v,tag:"div",onChange:h,onEnd:b,onStart:p}),{default:F(()=>[(C(!0),S(Me,null,ot(a.value,L=>(C(),S("div",{key:L.id,class:q(["k-tree-item-container",{"has-no-children":c(L)}])},[(C(),se(Pq,{key:`tree-item-${L.id}-${r.value}`,disabled:e.disableDrag,item:L,onSelected:g},{"item-icon":F(()=>[z(w.$slots,"item-icon",{item:L},()=>[L.icon!=="none"?(C(),se(Be,{key:0,icon:L.icon?L.icon:"documentList","secondary-color":u(L),size:pe(Lu)},null,8,["icon","secondary-color","size"])):$("",!0)],!0)]),"item-label":F(()=>[z(w.$slots,"item-label",{item:L},()=>[J(V(L.name),1)],!0)]),_:2},1032,["disabled","item"])),(C(),se(I,{key:`tree-item-${L.id}-children-${r.value}`,"disable-drag":e.disableDrag,items:d(L),level:e.level+1,"max-depth":e.maxDepth,"parent-id":L.id,onChildChange:f,onSelected:g},{[s]:F(({item:T})=>[z(w.$slots,"item-icon",{item:T},void 0,!0)]),[l]:F(({item:T})=>[z(w.$slots,"item-label",{item:T},void 0,!0)]),_:2},1032,["disable-drag","items","level","max-depth","parent-id"]))],2))),128))]),_:3},16,["disabled","group","level","list"])}}}),Iq=Ee(Bq,[["__scopeId","data-v-e7acd9b9"]]),oy=(e,t)=>(e.forEach(n=>{var r;t.push(n.id),(r=n.children)!=null&&r.length&&oy(n.children,t)}),t),Nq=e=>{const t=oy(e,[]),n=new Set(t);return t.length===n.size},Lq=(e,t)=>{let n=!0;return e.forEach(r=>{n=n&&(!r.children||uf(r)<=t)}),n},Em=e=>lf(e)&&Nq(e),Rq=ge({__name:"KTreeList",props:{modelValue:{type:Array,default:null,validator:e=>!e.length||Em(e)},items:{type:Array,default:null,validator:e=>!e.length||Em(e)},disableDrag:{type:Boolean,default:!1},maxDepth:{type:Number,default:3,validator:e=>e<=5},width:{type:String,default:""}},emits:["change","child-change","selected"],setup(e,{emit:t}){const n=e,r=j([]),a=B({get(){return n.modelValue},set(c){r.value=c}}),{getSizeFromString:o}=kn(),i=B(()=>({maxWidth:o(n.width)})),s=(c,d)=>{(d||r.value).forEach(h=>{var f;h.id===c.id?h.selected=!0:h.selected=!1,(f=h.children)!=null&&f.length&&s(c,h.children)}),t("selected",c)},l=c=>{t("change",c)},u=c=>{t("child-change",c)};return Le(a,(c,d)=>{JSON.stringify(c)!==JSON.stringify(d)&&(r.value=c,r.value.forEach(h=>{h.children||(h.children=[])}))}),Le(()=>n.items,(c,d)=>{JSON.stringify(c)!==JSON.stringify(d)&&(r.value=c,r.value.forEach(h=>{h.children||(h.children=[])}))}),ft(()=>{n.modelValue&&n.items&&console.warn("KTreeList: You should not provide both v-model (or props.modelValue) and props.items"),n.modelValue?r.value=n.modelValue:n.items&&(r.value=n.items),Lq(r.value,n.maxDepth)||console.warn("KTreeList: Provided list depth exceeds `maxDepth`"),r.value.forEach(c=>{c.children||(c.children=[])})}),(c,d)=>(C(),S("div",{class:"k-tree-list","data-testid":"k-tree-list",style:Et(e.width?i.value:void 0)},[G(Iq,{"disable-drag":e.disableDrag,items:r.value,"max-depth":e.maxDepth,onChange:l,onChildChange:u,onSelected:s},{"item-icon":F(({item:h})=>[z(c.$slots,"item-icon",{item:h})]),"item-label":F(({item:h})=>[z(c.$slots,"item-label",{item:h})]),_:3},8,["disable-drag","items","max-depth"])],4))}}),$q={class:"icon"},Hq={class:"dots"},Fq={class:"lines"},zq=ge({__name:"KViewSwitcher",props:{view:{type:String,default:"table",required:!0,validator:e=>kk.includes(e)}},emits:["view-changed"],setup(e,{emit:t}){const n=e,r=j(!0),a=()=>{r.value=!1,t("view-changed",n.view==="table"?"grid":"table")};return(o,i)=>(C(),se(We,{appearance:"outline",class:q(["k-view-switcher view-switch-button",[e.view,{paused:r.value}]]),"is-rounded":!1,size:"small",title:`Toggle to ${e.view==="table"?"grid":"table"} view`,onClick:a},{default:F(()=>[O("div",$q,[O("div",Hq,[(C(),S(Me,null,ot(4,s=>O("i",{key:s})),64))]),O("div",Fq,[(C(),S(Me,null,ot(4,s=>O("i",{key:s})),64))])])]),_:1},8,["class","title"]))}}),jq=Ee(zq,[["__scopeId","data-v-6e32a59a"]]),xm=e=>{try{return new URL(e),!0}catch{return!1}},Uq=["href"],Zq=ge({__name:"KExternalLink",props:{href:{type:String,required:!0,validator:e=>!!xm(e)},hideIcon:{type:Boolean,default:!1}},setup(e){const t=e,n=B(()=>!!xm(t.href)),r=j(!1),a=B(()=>r.value?`var(--KExternalLinkColorHover, var(--blue-600, var(--kui-color-text-primary-strong, ${kw})))`:`var(--KExternalLinkColor, var(--kui-color-text-primary, ${Nl}))`);return(o,i)=>{const s=Gn("KIcon");return n.value?(C(),S("a",{key:0,class:"k-external-link",href:e.href,rel:"noopener",target:"_blank",onMouseleave:i[0]||(i[0]=l=>r.value=!1),onMouseover:i[1]||(i[1]=l=>r.value=!0)},[z(o.$slots,"default",{},void 0,!0),e.hideIcon?$("",!0):(C(),se(s,{key:0,color:a.value,icon:"externalLink",size:"12"},null,8,["color"]))],40,Uq)):$("",!0)}}}),Yq=Ee(Zq,[["__scopeId","data-v-27871540"]]),Vq={key:0,class:"k-truncate-expand-controls"},Kq={key:0,"data-testid":"expand-trigger-wrapper"},Gq={key:0,"data-testid":"collapse-trigger-wrapper"},Wq={key:0,"data-testid":"expand-trigger-wrapper"},qq={key:1},Qq=ge({__name:"KTruncate",props:{rows:{type:Number,default:1,validator:e=>e>0},isTextContent:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},width:{type:String,default:"100%"}},setup(e){const t=e;bs(p=>({b2b587b4:u.value,"1d00c262":pe(c),c3af62ea:t.rows}));const{getSizeFromString:n}=kn(),r=j(t.isExpanded),a=j(!1),o=j(),i=j(),s=j(),l=j(),u=j("0px"),c=Uw,d=j(0),h=async()=>{var p;if(!t.isTextContent&&i.value&&(p=i.value.children)!=null&&p.length){const b=i.value.children,m=Number(String(c).replace(/px$/gi,""));let w=0;for(let I=0;Iw?b[I].offsetHeight:w;const D=(t.rows===1?0:(t.rows-1)*m)+w*t.rows+6;u.value=i.value.offsetHeight>D?`${D}px`:"auto",await on(),f()}},f=()=>{if(i.value&&s.value){const p=t.isTextContent?i.value.scrollHeight:i.value.offsetHeight,b=l.value?l.value.offsetHeight:0;a.value=p>s.value.offsetHeight-b,g()}},g=()=>{if(!t.isTextContent&&(d.value=0,i.value&&s.value)){const p=i.value.children;for(let b=0;bs.value.offsetHeight?(d.value+=1,p[b].getAttribute("tabindex")&&(p[b].tabIndex=-1)):p[b].getAttribute("tabindex")&&(p[b].tabIndex=0)}},y=async()=>{r.value=!r.value,await on(),f()},v=B(()=>({width:n(t.width)}));return ft(()=>{o.value=new ResizeObserver(p=>{window.requestAnimationFrame(()=>{!Array.isArray(p)||!p.length||h()})}),o.value.observe(i.value),f()}),Wa(()=>{o.value&&o.value.unobserve(i.value)}),(p,b)=>{const m=Gn("KButton");return C(),S("div",{ref_key:"kTruncateWrapper",ref:s,class:q(["k-truncate",[r.value?"expanded":"",`k-truncate-${e.isTextContent?"text":"content"}`]]),style:Et(v.value)},[!e.isTextContent&&a.value?(C(),S("div",Vq,[r.value?$("",!0):(C(),S("div",Kq,[z(p.$slots,"expand-trigger",{expand:y,truncatedCount:d.value},()=>[G(m,{appearance:"btn-link",class:"expand-trigger",onClick:y},{default:F(()=>[J(V(d.value),1)]),_:1})],!0)]))])):$("",!0),O("div",{ref_key:"kTruncateContainer",ref:i,class:"k-truncate-container"},[z(p.$slots,"default",{},void 0,!0),!e.isTextContent&&r.value?(C(),S("div",Gq,[z(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"primary",class:"collapse-trigger","is-rounded":"",onClick:y},{default:F(()=>[G(Be,{color:`var(--KTruncateCollapseIconColor, var(--blue-500, var(--kui-color-text-primary, ${pe(Nl)})))`,icon:"chevronUp",size:pe(Eg),title:"Show less"},null,8,["color","size"])]),_:1})],!0)])):$("",!0)],512),e.isTextContent&&(a.value||r.value)?(C(),S("div",{key:1,ref_key:"textToggleControls",ref:l,class:"k-truncate-collapse-controls"},[r.value?$("",!0):(C(),S("div",Wq,[z(p.$slots,"expand-trigger",{expand:y},()=>[G(m,{appearance:"btn-link",class:"expand-trigger",onClick:y},{default:F(()=>[J(" Show more ")]),_:1})],!0)])),r.value?(C(),S("div",qq,[z(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"btn-link",class:"collapse-trigger",onClick:y},{default:F(()=>[J(" Show less ")]),_:1})],!0)])):$("",!0)],512)):$("",!0)],6)}}}),Xq=Ee(Qq,[["__scopeId","data-v-791c716f"]]),Jq={key:0},eQ=ge({__name:"KMethodBadge",props:{method:{type:String,required:!0,validator:e=>wk.includes(e),default:"custom"},isRounded:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:""},isToggle:{type:Boolean,required:!1,default:!1},modelValue:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;bs(s=>({"4851d9e3":o.value[e.method].color}));const r=j(n.modelValue),a=B(()=>n.label||n.method.toUpperCase()),o=B(()=>({get:{color:`var(--petrol-200, var(--kui-method-color-text-get, ${Lw}))`,backgroundColor:`var(--petrol-100, var(--kui-method-color-background-get, ${Tw}))`},post:{color:`var(--green-700, var(--kui-method-color-text-post, ${Fw}))`,backgroundColor:`var(--green-100, var(--kui-method-color-background-post, ${Ow}))`},put:{color:`var(--yellow-600, var(--kui-method-color-text-put, ${zw}))`,backgroundColor:`var(--yellow-100, var(--kui-method-color-background-put, ${Pw}))`},patch:{color:`var(--teal-500, var(--kui-method-color-text-patch, ${Hw}))`,backgroundColor:`var(--teal-100, var(--kui-method-color-background-patch, ${Aw}))`},delete:{color:`var(--red-700, var(--kui-method-color-text-delete, ${Nw}))`,backgroundColor:`var(--red-100, var(--kui-method-color-background-delete, ${_w}))`},head:{color:`var(--yellow-600, var(--kui-method-color-text-head, ${Rw}))`,backgroundColor:`var(--yellow-200, var(--kui-method-color-background-head, ${Dw}))`},options:{color:`var(--steel-700, var(--kui-method-color-text-options, ${$w}))`,backgroundColor:`var(--steel-200, var(--kui-method-color-background-options, ${Mw}))`},trace:{color:`var(--white, var(--kui-method-color-text-trace, ${jw}))`,backgroundColor:`var(--steel-500, var(--kui-method-color-background-trace, ${Bw}))`},connect:{color:`var(--purple-400, var(--kui-method-color-text-connect, ${Iw}))`,backgroundColor:`var(--purple-100, var(--kui-method-color-background-connect, ${Sw}))`},custom:{color:`var(--white, var(--kui-color-text-inverse, ${Nu}))`,backgroundColor:`var(--steel-500, var(--kui-color-background-neutral-strong, ${mw}))`}})),i=()=>{r.value=!r.value};return Le(r,s=>{t("update:modelValue",s)}),Le(()=>n.modelValue,s=>{r.value=s}),(s,l)=>{const u=Gn("KInputSwitch"),c=Gn("KBadge");return C(),se(c,Ke({"background-color":o.value[e.method].backgroundColor,class:["k-method-badge",[`method-${e.method}`,{"k-method-toggle":e.isToggle}]],color:o.value[e.method].color,"max-width":"auto",shape:e.isToggle||e.isRounded?"rounded":"rectangular"},od({click:e.isToggle?i:void 0})),{default:F(()=>[e.isToggle?$("",!0):(C(),S("span",Jq,V(a.value),1)),e.isToggle?(C(),se(u,{key:1,modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),label:a.value,"label-position":"left"},null,8,["modelValue","label"])):$("",!0)]),_:1},16,["background-color","class","color","shape"])}}}),tQ=Ee(eQ,[["__scopeId","data-v-65b300cb"]]),Sm=Object.freeze(Object.defineProperty({__proto__:null,KAlert:Sg,KBadge:_i,KBreadcrumbs:Gg,KButton:We,KCard:_h,KCatalog:QE,KCatalogItem:qg,KCheckbox:nx,KClipboardProvider:k6,KCodeBlock:Bx,KCollapse:Hx,KComponent:yp,KDateTimePicker:GY,KDropdownItem:B5,KDropdownMenu:JY,KEmptyState:ss,KExternalLink:Yq,KFileUpload:aV,KIcon:Be,KInlineEdit:uV,KInput:xs,KInputSwitch:wV,KLabel:Ur,KMenu:NV,KMenuItem:N5,KMethodBadge:tQ,KModal:j5,KModalFullscreen:IK,KMultiselect:aG,KPagination:Dh,KPop:Jo,KPrompt:vG,KRadio:CG,KSegmentedControl:P5,KSelect:Wg,KSkeleton:Th,KSkeletonBox:Dt,KSlideout:_G,KStepper:lW,KTable:bW,KTabs:SW,KTextArea:LW,KToaster:Y5,KToggle:Iu,KTooltip:ei,KTreeList:Rq,KTruncate:Xq,KViewSwitcher:jq,Komponent:yp,Kooltip:zW,Krumbs:Vk,ToastManager:FW},Symbol.toStringTag,{value:"Module"})),nQ={install:e=>{for(const t in Sm)e.component(t,Sm[t])}};function rQ(e,t){return async n=>{const r=Jv(n);return r.use(e,tg),r.use(t),r.use(nQ),r}}function aQ(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}var Qi=class{constructor(t,n,r,a,o,i){ct(this,"type",3);ct(this,"name","");ct(this,"prefix","");ct(this,"value","");ct(this,"suffix","");ct(this,"modifier",3);this.type=t,this.name=n,this.prefix=r,this.value=a,this.suffix=o,this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},oQ=/[$_\p{ID_Start}]/u,iQ=/[$_\u200C\u200D\p{ID_Continue}]/u,R0=".*";function sQ(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function iy(e,t=!1){let n=[],r=0;for(;r{if(il("OTHER_MODIFIER")??l("ASTERISK"),c=b=>{let m=l(b);if(m!==void 0)return m;let{type:w,index:D}=n[i];throw new TypeError(`Unexpected ${w} at ${D}, expected ${b}`)},d=()=>{let b="",m;for(;m=l("CHAR")??l("ESCAPED_CHAR");)b+=m;return b},h=b=>b,f=t.encodePart||h,g="",y=b=>{g+=b},v=()=>{g.length&&(a.push(new Qi(3,"","",f(g),"",3)),g="")},p=(b,m,w,D,I)=>{let L=3;switch(I){case"?":L=1;break;case"*":L=0;break;case"+":L=2;break}if(!m&&!w&&L===3){y(b);return}if(v(),!m&&!w){if(!b)return;a.push(new Qi(3,"","",f(b),"",L));return}let T;w?w==="*"?T=R0:T=w:T=r;let x=2;T===r?(x=1,T=""):T===R0&&(x=0,T="");let k;if(m?k=m:w&&(k=o++),s.has(k))throw new TypeError(`Duplicate name '${k}'.`);s.add(k),a.push(new Qi(x,k,f(b),T,f(D),L))};for(;i-1)}return i||(r+=`(?=${o}|${a})`),new RegExp(r,_m(n))}var ta={delimiter:"",prefixes:"",sensitive:!0,strict:!0},uQ={delimiter:".",prefixes:"",sensitive:!0,strict:!0},cQ={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function dQ(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function uy(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function hQ(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function cy(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var dy=["ftp","file","http","https","ws","wss"];function hy(e){if(!e)return!0;for(let t of dy)if(e.test(t))return!0;return!1}function fQ(e,t){if(e=uy(e,"#"),t||e==="")return e;let n=new URL("https://example.com");return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):""}function pQ(e,t){if(e=uy(e,"?"),t||e==="")return e;let n=new URL("https://example.com");return n.search=e,n.search?n.search.substring(1,n.search.length):""}function mQ(e,t){return t||e===""?e:cy(e)?my(e):py(e)}function vQ(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.password=e,n.password}function gQ(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.username=e,n.username}function yQ(e,t,n){if(n||e==="")return e;if(t&&!dy.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]=="/";return e=new URL(r?e:"/-"+e,"https://example.com").pathname,r||(e=e.substring(2,e.length)),e}function bQ(e,t,n){return fy(t)===e&&(e=""),n||e===""?e:vy(e)}function wQ(e,t){return e=hQ(e,":"),t||e===""?e:cf(e)}function fy(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function cf(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function kQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function CQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function py(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function my(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function vy(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function EQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function xQ(e){return e===""?e:new URL(`data:${e}`).pathname}function SQ(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function _Q(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var To,en,Ct,mt,La,Do,Pr,Mo,Ao,Oo,At,Lt,lu,gy,vs,$0,Ra,Oi,Po,wl,dn,_n,gs,H0,uu,yy,Bo,kl,cu,by,du,wy,Io,Cl,ia,yo,Br,Da,hu,ky,fu,Cy,pu,Ey,mu,xy,Dn,nr,vu,Sy,Zm,TQ=(Zm=class{constructor(e){Qe(this,At);Qe(this,lu);Qe(this,vs);Qe(this,Ra);Qe(this,Po);Qe(this,dn);Qe(this,gs);Qe(this,uu);Qe(this,Bo);Qe(this,cu);Qe(this,du);Qe(this,Io);Qe(this,ia);Qe(this,Br);Qe(this,hu);Qe(this,fu);Qe(this,pu);Qe(this,mu);Qe(this,Dn);Qe(this,vu);Qe(this,To,void 0);Qe(this,en,[]);Qe(this,Ct,{});Qe(this,mt,0);Qe(this,La,1);Qe(this,Do,0);Qe(this,Pr,0);Qe(this,Mo,0);Qe(this,Ao,0);Qe(this,Oo,!1);$t(this,To,e)}get result(){return re(this,Ct)}parse(){for($t(this,en,iy(re(this,To),!0));re(this,mt)0)if(ve(this,fu,Cy).call(this))$t(this,Mo,re(this,Mo)-1);else continue;if(ve(this,hu,ky).call(this)){$t(this,Mo,re(this,Mo)+1);continue}switch(re(this,Pr)){case 0:ve(this,gs,H0).call(this)&&(re(this,Ct).username="",re(this,Ct).password="",re(this,Ct).hostname="",re(this,Ct).port="",re(this,Ct).pathname="",re(this,Ct).search="",re(this,Ct).hash="",ve(this,Ra,Oi).call(this,1));break;case 1:if(ve(this,gs,H0).call(this)){ve(this,vu,Sy).call(this);let e=7,t=1;re(this,Oo)&&(re(this,Ct).pathname="/"),ve(this,uu,yy).call(this)?(e=2,t=3):re(this,Oo)&&(e=2),ve(this,At,Lt).call(this,e,t)}break;case 2:ve(this,Bo,kl).call(this)?ve(this,Ra,Oi).call(this,3):(ve(this,Io,Cl).call(this)||ve(this,ia,yo).call(this)||ve(this,Br,Da).call(this))&&ve(this,Ra,Oi).call(this,5);break;case 3:ve(this,cu,by).call(this)?ve(this,At,Lt).call(this,4,1):ve(this,Bo,kl).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 4:ve(this,Bo,kl).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 5:ve(this,pu,Ey).call(this)?$t(this,Ao,re(this,Ao)+1):ve(this,mu,xy).call(this)&&$t(this,Ao,re(this,Ao)-1),ve(this,du,wy).call(this)&&!re(this,Ao)?ve(this,At,Lt).call(this,6,1):ve(this,Io,Cl).call(this)?ve(this,At,Lt).call(this,7,0):ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 6:ve(this,Io,Cl).call(this)?ve(this,At,Lt).call(this,7,0):ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 7:ve(this,ia,yo).call(this)?ve(this,At,Lt).call(this,8,1):ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 8:ve(this,Br,Da).call(this)&&ve(this,At,Lt).call(this,9,1);break}}}},To=new WeakMap,en=new WeakMap,Ct=new WeakMap,mt=new WeakMap,La=new WeakMap,Do=new WeakMap,Pr=new WeakMap,Mo=new WeakMap,Ao=new WeakMap,Oo=new WeakMap,At=new WeakSet,Lt=function(e,t){switch(re(this,Pr)){case 0:break;case 1:re(this,Ct).protocol=ve(this,Dn,nr).call(this);break;case 2:break;case 3:re(this,Ct).username=ve(this,Dn,nr).call(this);break;case 4:re(this,Ct).password=ve(this,Dn,nr).call(this);break;case 5:re(this,Ct).hostname=ve(this,Dn,nr).call(this);break;case 6:re(this,Ct).port=ve(this,Dn,nr).call(this);break;case 7:re(this,Ct).pathname=ve(this,Dn,nr).call(this);break;case 8:re(this,Ct).search=ve(this,Dn,nr).call(this);break;case 9:re(this,Ct).hash=ve(this,Dn,nr).call(this);break}ve(this,lu,gy).call(this,e,t)},lu=new WeakSet,gy=function(e,t){$t(this,Pr,e),$t(this,Do,re(this,mt)+t),$t(this,mt,re(this,mt)+t),$t(this,La,0)},vs=new WeakSet,$0=function(){$t(this,mt,re(this,Do)),$t(this,La,0)},Ra=new WeakSet,Oi=function(e){ve(this,vs,$0).call(this),$t(this,Pr,e)},Po=new WeakSet,wl=function(e){return e<0&&(e=re(this,en).length-e),e=0&&(e.pathname=Sr(r.pathname.substring(0,a+1),n)+e.pathname)}e.pathname=yQ(e.pathname,e.protocol,n)}return typeof t.search=="string"&&(e.search=pQ(t.search,n)),typeof t.hash=="string"&&(e.hash=fQ(t.hash,n)),e}function Pi(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function DQ(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function MQ(e,t){t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./"),t.sensitive??(t.sensitive=!1),t.strict??(t.strict=!1),t.end??(t.end=!0),t.start??(t.start=!0),t.endsWith="";let n=".*",r=`[^${DQ(t.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,o="";for(let i=0;i0?e[i-1]:null,d=i0?d.value[0]:"";u=a.test(h)}else u=!d.hasCustomName();if(!u&&!s.prefix.length&&c&&c.type===3){let h=c.value[c.value.length-1];u=t.prefixes.includes(h)}u&&(o+="{"),o+=Pi(s.prefix),l&&(o+=`:${s.name}`),s.type===2?o+=`(${s.value})`:s.type===1?l||(o+=`(${r})`):s.type===0&&(!l&&(!c||c.type===3||c.modifier!==3||u||s.prefix!=="")?o+="*":o+=`(${n})`),s.type===1&&l&&s.suffix.length&&a.test(s.suffix[0])&&(o+="\\"),o+=Pi(s.suffix),u&&(o+="}"),s.modifier!==3&&(o+=wo(s.modifier))}return o}var ir,$a,No,Ht,sr,Ym,_y=(Ym=class{constructor(t={},n,r){Qe(this,ir,void 0);Qe(this,$a,{});Qe(this,No,{});Qe(this,Ht,{});Qe(this,sr,{});try{let a;if(typeof n=="string"?a=n:r=n,typeof t=="string"){let l=new TQ(t);if(l.parse(),t=l.result,a===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=a}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(a)throw new TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let o={ignoreCase:r.ignoreCase===!0};$t(this,ir,Ei({pathname:Jr,protocol:Jr,username:Jr,password:Jr,hostname:Jr,port:Jr,search:Jr,hash:Jr},t,!0)),fy(re(this,ir).protocol)===re(this,ir).port&&(re(this,ir).port="");let s;for(s of Gc){if(!(s in re(this,ir)))continue;let l={},u=re(this,ir)[s];switch(re(this,No)[s]=[],s){case"protocol":Object.assign(l,ta),l.encodePart=cf;break;case"username":Object.assign(l,ta),l.encodePart=kQ;break;case"password":Object.assign(l,ta),l.encodePart=CQ;break;case"hostname":Object.assign(l,uQ),cy(u)?l.encodePart=my:l.encodePart=py;break;case"port":Object.assign(l,ta),l.encodePart=vy;break;case"pathname":hy(re(this,$a).protocol)?(Object.assign(l,cQ,o),l.encodePart=EQ):(Object.assign(l,ta,o),l.encodePart=xQ);break;case"search":Object.assign(l,ta,o),l.encodePart=SQ;break;case"hash":Object.assign(l,ta,o),l.encodePart=_Q;break}try{re(this,sr)[s]=sy(u,l),re(this,$a)[s]=ly(re(this,sr)[s],re(this,No)[s],l),re(this,Ht)[s]=MQ(re(this,sr)[s],l)}catch{throw new TypeError(`invalid ${s} pattern '${re(this,ir)[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&n)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?r=Ei(r,t,!1):r=Ei(r,Tm(t,n),!1)}catch{return!1}let a;for(a of Gc)if(!re(this,$a)[a].exec(r[a]))return!1;return!0}exec(t={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&n)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?r=Ei(r,t,!1):r=Ei(r,Tm(t,n),!1)}catch{return null}let a={};n?a.inputs=[t,n]:a.inputs=[t];let o;for(o of Gc){let i=re(this,$a)[o].exec(r[o]);if(!i)return null;let s={};for(let[l,u]of re(this,No)[o].entries())if(typeof u=="string"||typeof u=="number"){let c=i[l+1];s[u]=c}a[o]={input:r[o]??"",groups:s}}return a}static compareComponent(t,n,r){let a=(l,u)=>{for(let c of["type","modifier","prefix","value","suffix"]){if(l[c]{let c=0;for(;c{this.routes.set(new _y({pathname:n}),r)})}match(t){for(const[n,r]of this.routes){const a=`data:${t}`;if(n.test(a)){const o=n.exec(a);return{route:r,params:(o==null?void 0:o.pathname.groups)||{}}}}throw new Error(`Matching route for '${t}' not found`)}}class OQ{constructor(t,n){ct(this,"pool",new Map);this.create=t,this.destroy=n}acquire(t,n){if(!this.pool.has(t)){const a={value:this.create(t),references:new Set};this.pool.set(t,a)}const r=this.pool.get(t);return r.references.add(n),r.value}release(t,n){if(this.pool.has(t)){const r=this.pool.get(t);r.references.delete(n),r.references.size===0&&(this.pool.delete(t),this.destroy(t,r.value))}}}class PQ{constructor(t,{create:n,destroy:r}){ct(this,"cache",new Map);ct(this,"pool");const a=new AQ(t);this.pool=new OQ(o=>n(o,a),(o,i)=>{r(o,i)})}source(t,n){const r=this.pool.acquire(t,n);return r.addEventListener("message",a=>{this.cache.set(t,a.data)}),this.cache.has(t)&&Promise.resolve().then(()=>{r==null||r.dispatchEvent(new MessageEvent("message",{data:this.cache.get(t)}))}),r}close(t,n){return this.pool.release(t,n)}}const BQ=0,IQ=1,Ma=2,NQ=e=>e.readyState===Ma;class LQ extends EventTarget{constructor(n,r={}){super();ct(this,"url","");ct(this,"withCredentials",!1);ct(this,"CONNECTING",BQ);ct(this,"OPEN",IQ);ct(this,"CLOSED",Ma);ct(this,"onerror",null);ct(this,"onmessage",null);ct(this,"onopen",null);ct(this,"readyState",Ma);this.source=n,this._open()}_open(){(async function(n){try{n.readyState=0;const r=n.source();for await(const a of r)if(n.dispatchEvent(new MessageEvent("message",{data:a})),n.readyState===Ma)break;n.readyState=Ma}catch(r){n.dispatchEvent(new ErrorEvent("error",{error:r}))}})(this)}open(){this.readyState!==Ma&&this._open()}close(){this.readyState=Ma}}const RQ=(e,t)=>{const[n,r]=e.split("?"),a=new URLSearchParams(r),o=t.match(n);return new LQ(async function*(){for(;;)this.readyState=1,yield o.route({offset:parseInt(a.get("offset")||"0"),size:parseInt(a.get("size")||"0"),page:parseInt(a.get("page")||"0"),search:a.get("search")||"",...o.params},this),NQ(this)||await new Promise(s=>setTimeout(s,5e3))})},$Q=(e,t)=>{t&&t.close()},HQ={create:RQ,destroy:$Q},FQ=["protocol","service","zone"];function F0(e){const t=new Map;for(const[n,r]of e){const a=FQ.includes(n),o=a?"tag":n;t.has(o)||t.set(o,[]);const i=t.get(o);let s;o==="tag"?s=(a?`kuma.io/${n}:${r}`:r).replace(/\s+/g,""):s=r,i.push(s.trim())}return t}const zQ=e=>({"/:mesh/dataplanes":async(t,n)=>{n.close();const{mesh:r,size:a}=t,o=t.size*(t.page-1),i="false",s=Object.fromEntries(F0(JSON.parse(t.search||"[]")));return e.getAllDataplaneOverviewsFromMesh({mesh:r},{...s,gateway:i,offset:o,size:a})},"/:mesh/dataplane-overviews/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getDataplaneOverviewFromMesh({mesh:r,name:a})},"/:mesh/dataplanes/for/:service/of/:type":async(t,n)=>{n.close();const{mesh:r,size:a}=t,o=t.size*(t.page-1),i=Object.fromEntries(F0(JSON.parse(t.search||"[]")));typeof i.tag>"u"&&(i.tag=[]),i.tag=i.tag.filter(l=>!l.startsWith("kuma.io/service:")),i.tag.push(`kuma.io/service:${t.service}`);const s=t.type!=="all"?{gateway:t.type}:{};return e.getAllDataplaneOverviewsFromMesh({mesh:r},{...i,...s,offset:o,size:a})}});var Wc=new WeakMap,Ty=new Map,jQ=new Map,Va;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Va||(Va={}));var Fr;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(Fr||(Fr={}));var UQ=class{constructor(e){this.impl=e,this.type=Va.Constant}},ZQ=class{constructor(e){this.impl=e,this.type=Va.Factory}},YQ=e=>e.type===Va.Factory,Ju=class{constructor(e){this.impl=e,this.type=Va.Instance}},VQ=class extends Ju{constructor(){super(...arguments),this.scope=Fr.Container,this.cache=new WeakMap}},KQ=class extends Ju{constructor(){super(...arguments),this.scope=Fr.Resolution}},GQ=class extends Ju{constructor(e){super(e),this.impl=e,this.scope=Fr.Singleton}},WQ=class extends Ju{constructor(){super(...arguments),this.scope=Fr.Transient}},qQ=e=>e.type===Va.Instance,QQ=e=>e.scope===Fr.Container,XQ=e=>e.scope===Fr.Resolution,JQ=e=>e.scope===Fr.Singleton,eX=e=>Symbol(e),Ge=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},Bi=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=Bi.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 a=r.get(n);if(a)return a}if(t)for(let a=0,o=t.length;a{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Dy=Bi;Dy.notag=eX("NO_TAG");var tX=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(a,n,r,t.split()))}resolveToken(e,t,n,r=new My){const a=this.vault.get(e,r,t,n);if(a)return this.resolveBinding(a,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return qQ(e)?JQ(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):QQ(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):XQ(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):YQ(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(a=>El.resolveInitialization(a,n,e.impl.initializer)):El.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const a=n();if(a!==void 0)return a;const o=this.createInstance(e.impl,t);return r(o),o}createInstance(e,t){const n=this.getParameters(e,t),r=Wc.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const a=e(...n);return Wc.set(e,!0),a}catch{const o=new e(...n);return Wc.set(e,!1),o}}getParameters(e,t){const n=Ty.get(e);if(n)return this.resolveTokens(n,t,jQ.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}},iX=()=>new El,sX=(e,...t)=>(Ty.set(e,t),e),xte=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uX=function(t){return cX(t)&&!dX(t)};function cX(e){return!!e&&typeof e=="object"}function dX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pX(e)}var hX=typeof Symbol=="function"&&Symbol.for,fX=hX?Symbol.for("react.element"):60103;function pX(e){return e.$$typeof===fX}function mX(e){return Array.isArray(e)?[]:{}}function ps(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ko(mX(e),e,t):e}function vX(e,t,n){return e.concat(t).map(function(r){return ps(r,n)})}function gX(e,t){if(!t.customMerge)return Ko;var n=t.customMerge(e);return typeof n=="function"?n:Ko}function yX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Dm(e){return Object.keys(e).concat(yX(e))}function Ay(e,t){try{return t in e}catch{return!1}}function bX(e,t){return Ay(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function wX(e,t,n){var r={};return n.isMergeableObject(e)&&Dm(e).forEach(function(a){r[a]=ps(e[a],n)}),Dm(t).forEach(function(a){bX(e,a)||(Ay(e,a)&&n.isMergeableObject(t[a])?r[a]=gX(a,n)(e[a],t[a],n):r[a]=ps(t[a],n))}),r}function Ko(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||vX,n.isMergeableObject=n.isMergeableObject||uX,n.cloneUnlessOtherwiseSpecified=ps;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):wX(e,t,n):ps(t,n)}Ko.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Ko(r,a,n)},{})};var kX=Ko,CX=kX;const EX=lX(CX),df=iX(),xX=(...e)=>[...new Map([...e.flat()]).entries()],SX=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const a=r.decorates,o=t.get(a);if(typeof o<"u"){const{labels:i,...s}=o,l=Ge("inner"),u=Ge("inner.wrapper");t.set(l,{...s}),t.set(u,{service:()=>()=>Is(l)}),t.set(a,{...r,arguments:[u],labels:i})}r.decorates=void 0}}),[...t.entries()]},Is=e=>df.get(e),_X=(...e)=>(SX(xX(...e)).forEach(n=>Oy(...n)),Is),Ste=(...e)=>e.map(t=>()=>Is(t)),tl=new WeakMap,Oy=(e,t)=>{const n=df.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=>{tl.has(r)||(tl.set(r,[]),Oy(r,{service:()=>tl.get(r).reduce((o,i)=>{const s=Is(i);return Array.isArray(s)?o.concat(s):s instanceof Object?EX(o,s):o},[])})),tl.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,a)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${a}]`)}),sX(t.service,...t.arguments))},TX=(e,t)=>{const n=Ge(t.description);return df.bind(n).toConstant(e),n},Lr=50,DX=500,_te="Disabled",Tte="kuma.io/zone";function Ft(e,t=0){const n=MX(e);return n!==void 0?parseInt(n):t}function MX(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const AX=()=>({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=>({mesh:n.params.mesh,page:Ft(n.query.page,1),size:Ft(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||""))}),component:()=>qe(()=>import("./DataPlaneListView-df74d9a1.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./KFilterBar-773487be.css","./DataPlaneListView-c5de0d1d.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:()=>qe(()=>import("./DataPlaneDetailView-eebb64f3.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-24e06782.css","./TextWithCopyButton-8d73c6d4.css","./EnvoyData-5367f20b.css","./StatusBadge-e1af7147.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-a0a45d57.css"],import.meta.url)}]}]}),OX={sources:Ge("mesh.sources")},PX=e=>[[OX.sources,{service:zQ,arguments:[e.api],labels:[e.sources]}]],BX=e=>({"/config":async(t,n)=>(n.close(),await e.getConfig())}),IX=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>qe(()=>import("./DiagnosticsView-0694d52c.js"),["./RouteView-d5d38fa0.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css"],import.meta.url)}],NX={sources:Ge("diagnostics.sources")},LX=e=>[[NX.sources,{service:BX,arguments:[e.api],labels:[e.sources]}]],RX=e=>({"/:mesh/gateways":async(t,n)=>{n.close();const r=t.size*(t.page-1);return e.getAllDataplaneOverviewsFromMesh({mesh:t.mesh},{gateway:"true",offset:r,size:t.size})},"/:mesh/gateways/of/:type":async(t,n)=>{n.close();const r=t.size*(t.page-1);return e.getAllDataplaneOverviewsFromMesh({mesh:t.mesh},{...Object.fromEntries(F0(JSON.parse(t.search||"[]"))),gateway:t.type==="all"?"true":t.type,offset:r,size:t.size})}}),$X=()=>({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=>({mesh:n.params.mesh,page:Ft(n.query.page,1),size:Ft(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||"")),gatewayType:n.query.gatewayType||"all"}),component:()=>qe(()=>import("./GatewayListView-03fea372.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./KFilterBar-773487be.css","./GatewayListView-92765df8.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:()=>qe(()=>import("./DataPlaneDetailView-eebb64f3.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-24e06782.css","./TextWithCopyButton-8d73c6d4.css","./EnvoyData-5367f20b.css","./StatusBadge-e1af7147.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-a0a45d57.css"],import.meta.url)}]}]}),HX={sources:Ge("mesh.sources")},FX=e=>[[HX.sources,{service:RX,arguments:[e.api],labels:[e.sources]}]];function zX(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 jX=e=>({"/meshes":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return e.getAllMeshes({size:r,offset:a})},"/meshes/:name":(t,n)=>{n.close();const{name:r}=t;return e.getMesh({name:r})},"/mesh-insights/:name":async(t,n)=>{n.close();const{name:r}=t;return e.getMeshInsights({name:r})}}),UX=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:a=>({page:Ft(a.query.page,1),size:Ft(a.query.size,Lr)}),component:()=>qe(()=>import("./MeshListView-3420f9c0.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./MeshListView-2076e6f0.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>qe(()=>import("./MeshIndexView-746113e6.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:":mesh",name:"mesh",redirect:{name:"mesh-detail-view"},children:[{path:"",name:"mesh-tabs-view",redirect:{name:"mesh-detail-view"},component:()=>qe(()=>import("./MeshTabsView-da49ff1a.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>qe(()=>import("./MeshDetailView-dbf2ba1e.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./ErrorBlock-24e06782.css","./MeshDetailView-88219ae2.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")]}]}],ZX={sources:Ge("mesh.sources")},YX=e=>[[ZX.sources,{service:jX,arguments:[e.api],labels:[e.sources]}]],VX=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>qe(()=>import("./OnboardingView-2a483a7a.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./WelcomeView-c2e746ac.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./WelcomeView-13de7acd.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./DeploymentTypes-65444cfa.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-1fd3474f.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./ConfigurationTypes-201baa90.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./MultiZoneView-1aa8c5b5.js"),["./RouteView-d5d38fa0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-bcbeee96.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./CreateMesh-fee1fb95.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./CreateMesh-eaf572f8.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./AddNewServices-bd1a5ea2.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./AddNewServicesCode-c7c7a9cc.js"),["./RouteView-d5d38fa0.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:()=>qe(()=>import("./DataplanesOverview-ff908f88.js"),["./RouteView-d5d38fa0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-e1af7147.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>qe(()=>import("./CompletedView-0b7dc721.js"),["./RouteView-d5d38fa0.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],KX=e=>({"/*/policy-types":(t,n)=>(n.close(),e.getPolicyTypes()),"/:mesh/:path":(t,n)=>{n.close();const{mesh:r,path:a,size:o}=t,i=t.size*(t.page-1);return e.getAllPolicyEntitiesFromMesh({mesh:r,path:a},{offset:i,size:o})},"/:mesh/:path/:name/dataplanes":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getPolicyConnections({mesh:r,path:a,name:o})}}),GX=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let a=e.state.policyTypes.find(o=>o.name in e.state.policyTypeTotals?e.state.policyTypeTotals[o.name].total!==0:!1);return a===void 0&&(a=e.state.policyTypes[0]),a===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:a.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>qe(()=>import("./PolicyListView-a879b0be.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./ErrorBlock-24e06782.css","./PolicyListView-e83a16fa.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,page:Ft(r.query.page,1),size:Ft(r.query.size,Lr)})}]}]}],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:()=>qe(()=>import("./PolicyDetailView-c1d33373.js"),["./RouteView-d5d38fa0.css","./ErrorBlock-24e06782.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),WX={sources:Ge("policy.sources")},qX=e=>[[WX.sources,{service:KX,arguments:[e.api],labels:[e.sources]}]],QX=e=>({"/:mesh/service-insights":async(t,n)=>{n.close();const{mesh:r,size:a}=t,o=t.size*(t.page-1);return e.getAllServiceInsightsFromMesh({mesh:r},{size:a,offset:o})},"/:mesh/service-insights/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getServiceInsight({mesh:r,name:a})},"/:mesh/external-services/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getExternalServiceByServiceInsightName(r,a)}}),XX=()=>({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=>({mesh:n.params.mesh,page:Ft(n.query.page,1),size:Ft(n.query.size,Lr)}),component:()=>qe(()=>import("./ServiceListView-52fdaf87.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./TextWithCopyButton-8d73c6d4.css","./ServiceListView-968ed30d.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:()=>qe(()=>import("./ServiceDetailView-ffcc3b00.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-8d73c6d4.css","./ErrorBlock-24e06782.css","./StatusBadge-e1af7147.css","./TagList-d344db8e.css","./AppCollection-493fc841.css","./KFilterBar-773487be.css","./ServiceDetailView-215773d1.css"],import.meta.url),props:n=>({mesh:n.params.mesh,service:n.params.service,gatewayType:n.query.gatewayType||"all",page:Ft(n.query.page,1),size:Ft(n.query.size,Lr),query:decodeURIComponent(String(n.query.query||"")),search:decodeURIComponent(String(n.query.s||""))})}]}]}),JX={sources:Ge("service.sources")},eJ=e=>[[JX.sources,{service:QX,arguments:[e.api],labels:[e.sources]}]],tJ=e=>({"/zone-cps":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return await e.getAllZoneOverviews({size:r,offset:a})},"/zone-cps/:name":async(t,n)=>{n.close();const{name:r}=t;return await e.getZoneOverview({name:r})},"/zone-ingresses":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return await e.getAllZoneIngressOverviews({size:r,offset:a})},"/zone-egresses/:name":async(t,n)=>{n.close();const{name:r}=t;return await e.getZoneEgressOverview({name:r})},"/zone-egresses":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return await e.getAllZoneEgressOverviews({size:r,offset:a})},"/zone-ingresses/:name":async(t,n)=>{n.close();const{name:r}=t;return await e.getZoneIngressOverview({name:r})}}),nJ=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>qe(()=>import("./ZoneCreateView-df6114e6.js"),["./CodeBlock-7d9027b4.css","./RouteView-d5d38fa0.css","./ErrorBlock-24e06782.css","./ZoneCreateView-448aac5c.css"],import.meta.url)}],rJ=e=>[...e,{path:"/zones",name:"zone-index-view",redirect:{name:"zone-cp-list-view"},component:()=>qe(()=>import("./ZoneIndexView-71955f87.js"),["./RouteView-d5d38fa0.css"],import.meta.url),children:[{path:"zone-cps",name:"zone-cps",children:[{path:"",name:"zone-cp-tabs-view",meta:{module:"zone-cps"},component:()=>qe(()=>import("./ZoneTabsView-eb9762ec.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-cp-list-view",props:t=>({page:Ft(t.query.page,1),size:Ft(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneListView-bc8d9426.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneListView-09c1d14c.css"],import.meta.url)}]},{path:":zone",name:"zone-cp-detail-view",component:()=>qe(()=>import("./ZoneDetailView-00ae1759.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingresses",children:[{path:"",name:"zone-ingress-tabs-view",meta:{module:"zone-ingresses"},component:()=>qe(()=>import("./ZoneTabsView-eb9762ec.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-ingress-list-view",props:t=>({page:Ft(t.query.page,1),size:Ft(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneIngressListView-648be878.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneIngressListView-9326d722.css"],import.meta.url)}]},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>qe(()=>import("./ZoneIngressDetailView-7b1c3297.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./EnvoyData-5367f20b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egresses",children:[{path:"",name:"zone-egress-tabs-view",meta:{module:"zone-egresses"},component:()=>qe(()=>import("./ZoneTabsView-eb9762ec.js"),["./RouteView-d5d38fa0.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"",name:"zone-egress-list-view",props:t=>({page:Ft(t.query.page,1),size:Ft(t.query.size,Lr)}),component:()=>qe(()=>import("./ZoneEgressListView-26929cd7.js"),["./RouteView-d5d38fa0.css","./AppCollection-493fc841.css","./StatusBadge-e1af7147.css","./ZoneEgressListView-5de78ef2.css"],import.meta.url)}]},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>qe(()=>import("./ZoneEgressDetailView-9e286f63.js"),["./RouteView-d5d38fa0.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-d492d2ed.css","./CodeBlock-7d9027b4.css","./ErrorBlock-24e06782.css","./EnvoyData-5367f20b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-8d73c6d4.css"],import.meta.url)}]}]}],aJ={sources:Ge("access-role.sources")},oJ=e=>[[aJ.sources,{service:tJ,arguments:[e.api],labels:[e.sources]}]],iJ={common:{product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"}}},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."},collection:{none:" ",actions:{delete:"Delete",edit:"Edit",view:"View details"}},charts:{dataPlaneProxies:{title:"DP Proxies"},envoy:{title:"Envoy",subtitle:"versions"},kumaDp:{title:"Kuma DP",subtitle:"versions"},meshes:{title:"Meshes",meshLabel:"Mesh"},services:{title:"Services",internalLabel:"Internal",externalLabel:"External"},zoneCps:{title:"Zone CP",subtitle:"versions"},zones:{title:"Zones"}}}},sJ={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},lJ={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"}}}},uJ={"data-planes":{routes:{item:{title:"{name} Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}},href:{docs:{"mutual-tls":"{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}"}},list:{version_mismatch:"Version mismatch"}}},cJ={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},dJ={gateways:{routes:{item:{title:"{name} Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},hJ={"main-overview":{routes:{item:{title:"Overview"}}}},fJ={meshes:{routes:{item:{title:"{name} Mesh",breadcrumbs:"Meshes",navigation:{"mesh-detail-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"}}}},pJ={onboarding:{href:{docs:{install:"{KUMA_DOCS_URL}/deployments/multi-zone?{KUMA_UTM_QUERY_PARAMS}#zone-control-plane"}},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"}}}},mJ={policies:{routes:{item:{title:"{name} Policy",breadcrumbs:"Policies"},items:{title:"{name}"}},href:{docs:"{KUMA_DOCS_URL}/policies/{name}?{KUMA_UTM_QUERY_PARAMS}"}}},vJ={services:{routes:{item:{title:"{name} Service",breadcrumbs:"Services"},items:{title:"Services"}}}},gJ={"zone-cps":{routes:{item:{title:"{name} Zone Control Plane",breadcrumbs:"Zone Control Planes",config:{"no-subscriptions":"This zone has no subscriptions"}},items:{title:"Zone Control Planes",breadcrumbs:"Zone Control Planes"}},list:{version_mismatch:"Version mismatch"}},"zone-ingresses":{routes:{item:{title:"{name} Zone Ingress",breadcrumbs:"Ingresses"},items:{title:"Ingresses",breadcrumbs:"Ingresses"}}},"zone-egresses":{routes:{item:{title:"{name} Zone Egress",breadcrumbs:"Egresses"},items:{title:"Egresses",breadcrumbs:"Egresses"}}},zones:{href:{docs:{cta:"{KUMA_DOCS_URL}/documentation/deployments?{KUMA_UTM_QUERY_PARAMS}"}},routes:{create:{title:"Create & connect Zone"},items:{title:"Zones",navigation:{"zone-cp-list-view":"Zone Control Planes","zone-ingress-list-view":"Ingresses","zone-egress-list-view":"Egresses"}}},index:{create:"Create Zone"},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 @@ -553,25 +553,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:{generalError:{title:"Could not create the Zone"},statusError:{400:{title:"The Zone name {zoneName} is invalid",description:"Zone names may contain alphanumerical characters, dashes (-), and underscores (_)."},409:{title:"A Zone with the name {zoneName} already exists",description:"If you want to connect a Zone with this name, you can delete the existing one and create a new one."},500:{title:"An error occurred while creating the Zone {zoneName}",description:"You may retry this operation."}}},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"}}}},yJ={...iJ,...lJ,...sJ,...hJ,...pJ,...cJ,...fJ,...vJ,...mJ,...uJ,...dJ,...gJ};class bJ{constructor(t){ct(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 _o=new bJ(window.localStorage);function wJ(e,t,n="/"){const r=v6({history:P8(n),routes:e});return r.beforeEach(kJ()),r.beforeEach(Py(t)),r}const kJ=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},Py=e=>(t,n,r)=>{const a=e.state.onboarding.isCompleted,o=t.meta.onboardingProcess,i=e.getters.shouldShowOnboardingNotification;a&&o&&!i?r({name:"home"}):!a&&!o&&i?r({name:_o.get("onboardingStep")??"onboarding-welcome"}):r()},CJ=(e,t,n,r)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>qe(()=>import("./AppNotFoundView-f3630197.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>qe(()=>import("./MainOverviewView-4b253c04.js"),["./RouteView-d5d38fa0.css"],import.meta.url)},...e,...t,...n,...r];function EJ(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.3.0",product:"Kuma",mode:"global",environment:"universal",apiReadOnly:!1}}class xJ{constructor(t){ct(this,"env");let n=t;const r=(s,l="")=>this.var(s,(n==null?void 0:n[s])??l),a=this.getConfig(),o=_J(r("KUMA_VERSION",a.version)),i=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${i}&utm_medium=${i}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${o.patch==="0.0.0"?"dev":o.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:o.pre,KUMA_API_URL:r("KUMA_API_URL")||a.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||a.baseGuiPath,KUMA_MODE:r("KUMA_MODE")||a.mode,KUMA_ENVIRONMENT:r("KUMA_ENVIRONMENT")||a.environment}}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=EJ(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=SJ(n.apiUrl),n}}function By(e){return e.endsWith("/")?By(e.slice(0,-1)):e}function SJ(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,By(e)}function _J(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[a,o]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${a}`,pre:`${t}.${n}.${a}${o!==void 0?`-${o}`:""}`}}var j0=function(e,t){return j0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},j0(e,t)};function er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");j0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,a=t;r1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(NJ,function(l,u,c,d,h,f){if(u)t.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Uy.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Am.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Am,function(l,u,c,d,h,f){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=Te(Te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Te(Te({},t),Om(o)));continue}if(jy.test(a.stem)){t=Te(Te({},t),Om(a.stem));continue}var i=Zy(a.stem);i&&(t=Te(Te({},t),i));var s=LJ(a.stem);s&&(t=Te(Te({},t),s))}return t}var nl={"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 $J(e,t){for(var n="",r=0;r>1),l="a",u=HJ(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;i-- >0;)n=u+n}else a==="J"?n+="H":n+=a}return n}function HJ(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 a=nl[r||""]||nl[n||""]||nl["".concat(n,"-001")]||nl["001"];return a[0]}var qc,zJ=new RegExp("^".concat(Fy.source,"*")),FJ=new RegExp("".concat(Fy.source,"*$"));function Je(e,t){return{start:e,end:t}}var jJ=!!String.prototype.startsWith,UJ=!!String.fromCodePoint,ZJ=!!Object.fromEntries,YJ=!!String.prototype.codePointAt,VJ=!!String.prototype.trimStart,KJ=!!String.prototype.trimEnd,GJ=!!Number.isSafeInteger,WJ=GJ?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Z0=!0;try{var qJ=Vy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Z0=((qc=qJ.exec("a"))===null||qc===void 0?void 0:qc[0])==="a"}catch{Z0=!1}var Bm=jJ?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Y0=UJ?String.fromCodePoint:function(){for(var e=[],t=0;ta;){if(o=e[a++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Im=ZJ?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),a;return r<55296||r>56319||t+1===n||(a=e.charCodeAt(t+1))<56320||a>57343?r:(r-55296<<10)+(a-56320)+65536}},QJ=VJ?function(e){return e.trimStart()}:function(e){return e.replace(zJ,"")},XJ=KJ?function(e){return e.trimEnd()}:function(e){return e.replace(FJ,"")};function Vy(e,t){return new RegExp(e,t)}var V0;if(Z0){var Nm=Vy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");V0=function(e,t){var n;Nm.lastIndex=t;var r=Nm.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else V0=function(e,t){for(var n=[];;){var r=Yy(e,t);if(r===void 0||Ky(r)||nee(r))break;n.push(r),t+=r>=65536?2:1}return Y0.apply(void 0,n)};var JJ=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,r);if(i.err)return i;a.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:gt.pound,location:Je(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Xe.UNMATCHED_CLOSING_TAG,Je(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&K0(this.peek()||0)){var i=this.parseTag(t,n);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,n);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:gt.literal,value:"<".concat(a,"/>"),location:Je(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:gt.tag,value:a,children:i,location:Je(r,this.clonePosition())},err:null}:this.error(Xe.INVALID_TAG,Je(s,this.clonePosition())))}else return this.error(Xe.UNCLOSED_TAG,Je(r,this.clonePosition()))}else return this.error(Xe.INVALID_TAG,Je(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tee(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var o=this.tryParseQuote(n);if(o){a+=o;continue}var i=this.tryParseUnquoted(t,n);if(i){a+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var l=Je(r,this.clonePosition());return{val:{type:gt.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eee(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 Y0.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(),Y0(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Xe.EMPTY_ARGUMENT,Je(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Xe.MALFORMED_ARGUMENT,Je(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:gt.argument,value:a,location:Je(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(Xe.MALFORMED_ARGUMENT,Je(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=V0(this.message,n),a=n+r.length;this.bumpTo(a);var o=this.clonePosition(),i=Je(t,o);return{value:r,location:i}},e.prototype.parseArgumentOptions=function(t,n,r,a){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Xe.EXPECT_ARGUMENT_TYPE,Je(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=XJ(d.val);if(h.length===0)return this.error(Xe.EXPECT_ARGUMENT_STYLE,Je(this.clonePosition(),this.clonePosition()));var f=Je(c,this.clonePosition());u={style:h,styleLocation:f}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var y=Je(a,this.clonePosition());if(u&&Bm(u==null?void 0:u.style,"::",0)){var v=QJ(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:gt.number,value:r,location:y,style:d.val},err:null}}else{if(v.length===0)return this.error(Xe.EXPECT_DATE_TIME_SKELETON,y);var p=v;this.locale&&(p=$J(v,this.locale));var h={type:Go.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?OJ(p):{}},b=s==="date"?gt.date:gt.time;return{val:{type:b,value:r,location:y,style:h},err:null}}}return{val:{type:s==="number"?gt.number:s==="date"?gt.date:gt.time,value:r,location:y,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Xe.EXPECT_SELECT_ARGUMENT_OPTIONS,Je(m,Te({},m)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Je(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),D=d.val}var I=this.tryParsePluralOrSelectOptions(t,s,n,w);if(I.err)return I;var g=this.tryParseArgumentClose(a);if(g.err)return g;var L=Je(a,this.clonePosition());return s==="select"?{val:{type:gt.select,value:r,options:Im(I.val),location:L},err:null}:{val:{type:gt.plural,value:r,options:Im(I.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(Xe.INVALID_ARGUMENT_TYPE,Je(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Xe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Je(a,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=BJ(t)}catch{return this.error(Xe.INVALID_NUMBER_SKELETON,n)}return{val:{type:Go.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?RJ(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var o,i=!1,s=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Je(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?Xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Xe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Je(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var y=this.tryParseArgumentClose(f);if(y.err)return y;s.push([u,{value:g.val,location:Je(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return s.length===0?this.error(n==="select"?Xe.EXPECT_SELECT_ARGUMENT_SELECTOR:Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Je(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Xe.MISSING_OTHER_CLAUSE,Je(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var l=Je(a,this.clonePosition());return o?(i*=r,WJ(i)?{val:i,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=Yy(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(Bm(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()&&Ky(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 K0(e){return e>=97&&e<=122||e>=65&&e<=90}function eee(e){return K0(e)||e===47}function tee(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 Ky(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nee(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 G0(e){e.forEach(function(t){if(delete t.location,Ry(t)||$y(t))for(var n in t.options)delete t.options[n].location,G0(t.options[n].value);else Iy(t)&&zy(t.style)||(Ny(t)||Ly(t))&&U0(t.style)?delete t.style.location:Hy(t)&&G0(t.children)})}function ree(e,t){t===void 0&&(t={}),t=Te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new JJ(e,t).parse();if(n.err){var r=SyntaxError(Xe[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||G0(n.val),n.val}function ar(e,t){var n=t&&t.cache?t.cache:uee,r=t&&t.serializer?t.serializer:lee,a=t&&t.strategy?t.strategy:oee;return a(e,{cache:n,serializer:r})}function aee(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Gy(e,t,n,r){var a=aee(r)?r:n(r),o=t.get(a);return typeof o>"u"&&(o=e.call(this,r),t.set(a,o)),o}function Wy(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,r),t.set(a,o)),o}function hf(e,t,n,r,a){return n.bind(t,e,r,a)}function oee(e,t){var n=e.length===1?Gy:Wy;return hf(e,this,n,t.cache.create(),t.serializer)}function iee(e,t){return hf(e,this,Wy,t.cache.create(),t.serializer)}function see(e,t){return hf(e,this,Gy,t.cache.create(),t.serializer)}var lee=function(){return JSON.stringify(arguments)};function ff(){this.cache=Object.create(null)}ff.prototype.get=function(e){return this.cache[e]};ff.prototype.set=function(e,t){this.cache[e]=t};var uee={create:function(){return new ff}},or={variadic:iee,monadic:see},vr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(vr||(vr={}));var ya=function(e){er(t,e);function t(n,r,a){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lm=function(e){er(t,e);function t(n,r,a,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),vr.INVALID_VALUE,o)||this}return t}(ya),cee=function(e){er(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),vr.INVALID_VALUE,a)||this}return t}(ya),dee=function(e){er(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,'"'),vr.MISSING_VALUE,r)||this}return t}(ya),rn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rn||(rn={}));function hee(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==rn.literal||n.type!==rn.literal?t.push(n):r.value+=n.value,t},[])}function fee(e){return typeof e=="function"}function xl(e,t,n,r,a,o,i){if(e.length===1&&Mm(e[0]))return[{type:rn.literal,value:e[0].value}];for(var s=[],l=0,u=e;l(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},Py=e=>(t,n,r)=>{const a=e.state.onboarding.isCompleted,o=t.meta.onboardingProcess,i=e.getters.shouldShowOnboardingNotification;a&&o&&!i?r({name:"home"}):!a&&!o&&i?r({name:_o.get("onboardingStep")??"onboarding-welcome"}):r()},CJ=(e,t,n,r)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>qe(()=>import("./AppNotFoundView-e831e0af.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>qe(()=>import("./MainOverviewView-de76e264.js"),["./RouteView-d5d38fa0.css"],import.meta.url)},...e,...t,...n,...r];function EJ(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.3.0",product:"Kuma",mode:"global",environment:"universal",apiReadOnly:!1}}class xJ{constructor(t){ct(this,"env");let n=t;const r=(s,l="")=>this.var(s,(n==null?void 0:n[s])??l),a=this.getConfig(),o=_J(r("KUMA_VERSION",a.version)),i=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${i}&utm_medium=${i}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${o.patch==="0.0.0"?"dev":o.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:o.pre,KUMA_API_URL:r("KUMA_API_URL")||a.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||a.baseGuiPath,KUMA_MODE:r("KUMA_MODE")||a.mode,KUMA_ENVIRONMENT:r("KUMA_ENVIRONMENT")||a.environment}}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=EJ(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=SJ(n.apiUrl),n}}function By(e){return e.endsWith("/")?By(e.slice(0,-1)):e}function SJ(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,By(e)}function _J(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[a,o]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${a}`,pre:`${t}.${n}.${a}${o!==void 0?`-${o}`:""}`}}var j0=function(e,t){return j0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},j0(e,t)};function er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");j0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,a=t;r1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(NJ,function(l,u,c,d,h,f){if(u)t.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Uy.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Am.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Am,function(l,u,c,d,h,f){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=Te(Te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Te(Te({},t),Om(o)));continue}if(jy.test(a.stem)){t=Te(Te({},t),Om(a.stem));continue}var i=Zy(a.stem);i&&(t=Te(Te({},t),i));var s=LJ(a.stem);s&&(t=Te(Te({},t),s))}return t}var nl={"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 $J(e,t){for(var n="",r=0;r>1),l="a",u=HJ(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;i-- >0;)n=u+n}else a==="J"?n+="H":n+=a}return n}function HJ(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 a=nl[r||""]||nl[n||""]||nl["".concat(n,"-001")]||nl["001"];return a[0]}var qc,FJ=new RegExp("^".concat(zy.source,"*")),zJ=new RegExp("".concat(zy.source,"*$"));function Je(e,t){return{start:e,end:t}}var jJ=!!String.prototype.startsWith,UJ=!!String.fromCodePoint,ZJ=!!Object.fromEntries,YJ=!!String.prototype.codePointAt,VJ=!!String.prototype.trimStart,KJ=!!String.prototype.trimEnd,GJ=!!Number.isSafeInteger,WJ=GJ?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Z0=!0;try{var qJ=Vy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Z0=((qc=qJ.exec("a"))===null||qc===void 0?void 0:qc[0])==="a"}catch{Z0=!1}var Bm=jJ?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Y0=UJ?String.fromCodePoint:function(){for(var e=[],t=0;ta;){if(o=e[a++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Im=ZJ?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),a;return r<55296||r>56319||t+1===n||(a=e.charCodeAt(t+1))<56320||a>57343?r:(r-55296<<10)+(a-56320)+65536}},QJ=VJ?function(e){return e.trimStart()}:function(e){return e.replace(FJ,"")},XJ=KJ?function(e){return e.trimEnd()}:function(e){return e.replace(zJ,"")};function Vy(e,t){return new RegExp(e,t)}var V0;if(Z0){var Nm=Vy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");V0=function(e,t){var n;Nm.lastIndex=t;var r=Nm.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else V0=function(e,t){for(var n=[];;){var r=Yy(e,t);if(r===void 0||Ky(r)||nee(r))break;n.push(r),t+=r>=65536?2:1}return Y0.apply(void 0,n)};var JJ=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,r);if(i.err)return i;a.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:gt.pound,location:Je(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Xe.UNMATCHED_CLOSING_TAG,Je(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&K0(this.peek()||0)){var i=this.parseTag(t,n);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,n);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:gt.literal,value:"<".concat(a,"/>"),location:Je(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:gt.tag,value:a,children:i,location:Je(r,this.clonePosition())},err:null}:this.error(Xe.INVALID_TAG,Je(s,this.clonePosition())))}else return this.error(Xe.UNCLOSED_TAG,Je(r,this.clonePosition()))}else return this.error(Xe.INVALID_TAG,Je(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tee(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var o=this.tryParseQuote(n);if(o){a+=o;continue}var i=this.tryParseUnquoted(t,n);if(i){a+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var l=Je(r,this.clonePosition());return{val:{type:gt.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eee(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 Y0.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(),Y0(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Xe.EMPTY_ARGUMENT,Je(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Xe.MALFORMED_ARGUMENT,Je(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:gt.argument,value:a,location:Je(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(Xe.MALFORMED_ARGUMENT,Je(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=V0(this.message,n),a=n+r.length;this.bumpTo(a);var o=this.clonePosition(),i=Je(t,o);return{value:r,location:i}},e.prototype.parseArgumentOptions=function(t,n,r,a){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Xe.EXPECT_ARGUMENT_TYPE,Je(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=XJ(d.val);if(h.length===0)return this.error(Xe.EXPECT_ARGUMENT_STYLE,Je(this.clonePosition(),this.clonePosition()));var f=Je(c,this.clonePosition());u={style:h,styleLocation:f}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var y=Je(a,this.clonePosition());if(u&&Bm(u==null?void 0:u.style,"::",0)){var v=QJ(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:gt.number,value:r,location:y,style:d.val},err:null}}else{if(v.length===0)return this.error(Xe.EXPECT_DATE_TIME_SKELETON,y);var p=v;this.locale&&(p=$J(v,this.locale));var h={type:Go.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?OJ(p):{}},b=s==="date"?gt.date:gt.time;return{val:{type:b,value:r,location:y,style:h},err:null}}}return{val:{type:s==="number"?gt.number:s==="date"?gt.date:gt.time,value:r,location:y,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Xe.EXPECT_SELECT_ARGUMENT_OPTIONS,Je(m,Te({},m)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Je(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),D=d.val}var I=this.tryParsePluralOrSelectOptions(t,s,n,w);if(I.err)return I;var g=this.tryParseArgumentClose(a);if(g.err)return g;var L=Je(a,this.clonePosition());return s==="select"?{val:{type:gt.select,value:r,options:Im(I.val),location:L},err:null}:{val:{type:gt.plural,value:r,options:Im(I.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(Xe.INVALID_ARGUMENT_TYPE,Je(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Xe.EXPECT_ARGUMENT_CLOSING_BRACE,Je(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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Xe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Je(a,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=BJ(t)}catch{return this.error(Xe.INVALID_NUMBER_SKELETON,n)}return{val:{type:Go.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?RJ(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var o,i=!1,s=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Je(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?Xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Xe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Je(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var y=this.tryParseArgumentClose(f);if(y.err)return y;s.push([u,{value:g.val,location:Je(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return s.length===0?this.error(n==="select"?Xe.EXPECT_SELECT_ARGUMENT_SELECTOR:Xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Je(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Xe.MISSING_OTHER_CLAUSE,Je(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var l=Je(a,this.clonePosition());return o?(i*=r,WJ(i)?{val:i,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=Yy(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(Bm(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()&&Ky(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 K0(e){return e>=97&&e<=122||e>=65&&e<=90}function eee(e){return K0(e)||e===47}function tee(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 Ky(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nee(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 G0(e){e.forEach(function(t){if(delete t.location,Ry(t)||$y(t))for(var n in t.options)delete t.options[n].location,G0(t.options[n].value);else Iy(t)&&Fy(t.style)||(Ny(t)||Ly(t))&&U0(t.style)?delete t.style.location:Hy(t)&&G0(t.children)})}function ree(e,t){t===void 0&&(t={}),t=Te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new JJ(e,t).parse();if(n.err){var r=SyntaxError(Xe[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||G0(n.val),n.val}function ar(e,t){var n=t&&t.cache?t.cache:uee,r=t&&t.serializer?t.serializer:lee,a=t&&t.strategy?t.strategy:oee;return a(e,{cache:n,serializer:r})}function aee(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Gy(e,t,n,r){var a=aee(r)?r:n(r),o=t.get(a);return typeof o>"u"&&(o=e.call(this,r),t.set(a,o)),o}function Wy(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,r),t.set(a,o)),o}function hf(e,t,n,r,a){return n.bind(t,e,r,a)}function oee(e,t){var n=e.length===1?Gy:Wy;return hf(e,this,n,t.cache.create(),t.serializer)}function iee(e,t){return hf(e,this,Wy,t.cache.create(),t.serializer)}function see(e,t){return hf(e,this,Gy,t.cache.create(),t.serializer)}var lee=function(){return JSON.stringify(arguments)};function ff(){this.cache=Object.create(null)}ff.prototype.get=function(e){return this.cache[e]};ff.prototype.set=function(e,t){this.cache[e]=t};var uee={create:function(){return new ff}},or={variadic:iee,monadic:see},vr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(vr||(vr={}));var ya=function(e){er(t,e);function t(n,r,a){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lm=function(e){er(t,e);function t(n,r,a,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),vr.INVALID_VALUE,o)||this}return t}(ya),cee=function(e){er(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),vr.INVALID_VALUE,a)||this}return t}(ya),dee=function(e){er(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,'"'),vr.MISSING_VALUE,r)||this}return t}(ya),rn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rn||(rn={}));function hee(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==rn.literal||n.type!==rn.literal?t.push(n):r.value+=n.value,t},[])}function fee(e){return typeof e=="function"}function xl(e,t,n,r,a,o,i){if(e.length===1&&Mm(e[0]))return[{type:rn.literal,value:e[0].value}];for(var s=[],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=ree,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}(),Ka;(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"})(Ka||(Ka={}));var Ns=function(e){er(t,e);function t(n,r,a){var o=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(i?` `.concat(i.message,` -`).concat(i.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),gee=function(e){er(t,e);function t(n,r){return e.call(this,Ka.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ns),yee=function(e){er(t,e);function t(n,r){return e.call(this,Ka.INVALID_CONFIG,n,r)||this}return t}(Ns),Rm=function(e){er(t,e);function t(n,r){return e.call(this,Ka.MISSING_DATA,n,r)||this}return t}(Ns),zn=function(e){er(t,e);function t(n,r,a){var o=e.call(this,Ka.FORMAT_ERROR,"".concat(n,` +`).concat(i.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),gee=function(e){er(t,e);function t(n,r){return e.call(this,Ka.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ns),yee=function(e){er(t,e);function t(n,r){return e.call(this,Ka.INVALID_CONFIG,n,r)||this}return t}(Ns),Rm=function(e){er(t,e);function t(n,r){return e.call(this,Ka.MISSING_DATA,n,r)||this}return t}(Ns),Fn=function(e){er(t,e);function t(n,r,a){var o=e.call(this,Ka.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` `),a)||this;return o.locale=r,o}return t}(Ns),Xc=function(e){er(t,e);function t(n,r,a,o){var i=e.call(this,"".concat(n,` MessageID: `).concat(a==null?void 0:a.id,` Default Message: `).concat(a==null?void 0:a.defaultMessage,` Description: `).concat(a==null?void 0:a.description,` -`),r,o)||this;return i.descriptor=a,i.locale=r,i}return t}(zn),bee=function(e){er(t,e);function t(n,r){var a=e.call(this,Ka.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(o){var i;return(i=o.value)!==null&&i!==void 0?i:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t}(Ns);function ao(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,a){return a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r},{})}var wee=function(e){},kee=function(e){},Cee={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:wee,onWarn:kee};function Qy(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function xa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Eee(e){e===void 0&&(e=Qy());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=ar(function(){for(var s,l=[],u=0;u0&&(d=i(c.shift()),h=i(c[0]))}f[d]=rb(e[u],t)}),o}const Kee=Qy(),Gee=(e,t,n=!1)=>{const r=Yee({...typeof n=="boolean"?null:n,locale:e,messages:Vee.flatten(t,{safe:!0})},Kee),{$t:a,...o}=r,i=o,s=u=>{const c="Invalid Date";if(!u)return c;try{const d=new Date(u*1e3);return i.formatDate(d,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})}catch{return c}},l={formatUnixTimeStamp:s,formatIsoDate:u=>{const c=Date.parse(u)/1e3;return s(c)},t:(u,c,d)=>i.formatMessage({id:u},c,d),te:u=>!!i.messages[u],tm:u=>i.messages[u]||[],...i,source:t};return typeof n=="boolean"&&n===!0||typeof n!="boolean"&&n.isGlobal,l};function Wee(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function ab(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 a=e[r[0]];return a===void 0?n:a}return ab(e[r[0]],r.slice(1),n)}class jm extends Error{get key(){return this.message}}const qee=(e,t)=>{const n=Gee("en-us",e,!0);return{...n,t:function(...r){const a=r[0];try{if(typeof ab(e,a)>"u")throw a.startsWith("http.api.")?new jm(a):new Error(`Missing message: "${a}" for locale "en-us", using id as fallback`);return r[1]={KUMA_DOCS_URL:t("KUMA_DOCS_URL"),KUMA_UTM_QUERY_PARAMS:t("KUMA_UTM_QUERY_PARAMS"),...r[1]},n.t(...r)}catch(o){switch(!0){case o instanceof jm:return Wee(o.key.split(".").pop());default:throw o}}}}};class Qee{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}}class Xee extends Qee{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},a){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:a})}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(o=>o.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,path:n,name:r},a){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:a})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},a){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:a})}}class Jee extends Error{constructor({status:n,type:r=null,title:a,detail:o=null,instance:i=null,invalidParameters:s=[]}){super(a);ct(this,"status");ct(this,"type");ct(this,"title");ct(this,"detail");ct(this,"instance");ct(this,"invalidParameters");this.name="ApiError",this.status=n,this.type=r,this.title=a,this.detail=o,this.instance=i,this.invalidParameters=s}toJSON(){return{status:this.status,type:this.type,title:this.title,detail:this.detail,instance:this.instance,invalidParameters:this.invalidParameters}}}async function ete(e,t={},n){var c;const r=t,a=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(a)&&r.headers.set("content-type","application/json");let o=e;"params"in t&&t.params!==void 0&&a==="GET"&&(o+=`?${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 i;try{i=await fetch(o,r)}catch(d){throw tte(d)}const s=i.headers.get("content-type"),u=(s!==null?s.startsWith("application/json")||s.startsWith("application/problem+json"):!1)?await i.json():await i.text();if(i.ok)return{response:i,data:u};throw nte(i,u)}function tte(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function nte(e,t){const n=e.status;let r,a,o,i,s;return typeof t=="string"&&t.length>0?a=t:t!==null&&typeof t=="object"&&("type"in t&&typeof t.type=="string"&&(r=t.type),"title"in t&&typeof t.title=="string"&&(a=t.title),"detail"in t&&typeof t.detail=="string"&&(o=t.detail),"instance"in t&&typeof t.instance=="string"&&(i=t.instance),"invalid_parameters"in t&&Array.isArray(t.invalid_parameters)&&(s=t.invalid_parameters)),n===403&&(a="You currently don’t have access to this data."),a===void 0&&(a="An error has occurred while trying to load this data."),new Jee({status:n,type:r,title:a,detail:o,instance:i,invalidParameters:s})}class rte{constructor(t){this.env=t}get baseUrl(){return this.env("KUMA_API_URL")}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:a}=await this.raw(t,n,r,"POST");return a}async put(t,n,r){const{data:a}=await this.raw(t,n,r,"PUT");return a}async patch(t,n,r){const{data:a}=await this.raw(t,n,r,"PATCH");return a}async raw(t,n,r={},a="GET"){const o=Um(r);o.method=a;const i=new Headers;if("headers"in o){const l=o.headers instanceof Headers?o.headers:new Headers(o.headers);for(const[u,c]of l)i.set(u,c)}Object.keys(i).length>0&&(o.headers=i);const s=Um(o);return ete(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,n)}}function Um(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,a]of Object.entries(t.params))if(a!==void 0)if(Array.isArray(a))for(const o of a)n.push([r,o]);else n.push([r,a]);t.params=n}return t}const ate={status:null,clientConfig:null},ote={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t},ite={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},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"},ste=e=>({bootstrapConfig({dispatch:t}){return t("getConfig")},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)})}}),lte=e=>({namespaced:!0,state:()=>ate,getters:ite,mutations:ote,actions:ste(e)}),ute={isCompleted:_o.get("onboardingIsCompleted")==="true",step:_o.get("onboardingStep")||"onboarding-welcome",mode:"demo"},cte={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},dte={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),e("SET_IS_COMPLETED",!0),_o.set("onboardingIsCompleted","true"),_o.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),_o.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},hte={namespaced:!0,state:()=>ute,mutations:cte,actions:dte},fte={globalLoading:!0,defaultVisibility:{appError:!0,onboardingNotification:!0},meshes:{total:0,items:[],next:null},totalDataplaneCount:0,policyTypes:[],policyTypesByPath:{},policyTypesByName:{},policyTypeTotals:{},globalKdsAddress:"grpcs://:5685"},pte=e=>({modules:{config:lte(e),onboarding:hte},state:()=>fte,getters:{shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n}},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_MESHES:(t,n)=>t.meshes=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_POLICY_TYPES:(t,n)=>{n.sort((r,a)=>r.name.localeCompare(a.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_POLICY_TYPE_TOTALS:(t,n)=>t.policyTypeTotals=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}){await t("config/getStatus"),n["config/getStatus"]==="OK"&&await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")])},async fetchMeshList({commit:t,state:n}){const r={size:DX};try{const{total:a,items:o,next:i}=await e.getAllMeshes(r),s={items:o??[],total:a,next:i};s.items.sort((l,u)=>l.name==="default"?-1:u.name==="default"?1:l.name.localeCompare(u.name)),t("SET_MESHES",s)}catch(a){console.error(a)}},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 fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((o,i)=>Object.assign(o,{[i.path]:i}),{}),a=n.reduce((o,i)=>Object.assign(o,{[i.name]:i}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",a)},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)},async fetchPolicyTypeTotals({commit:t},n){try{const r=await e.getMeshInsights({name:n});t("SET_POLICY_TYPE_TOTALS",r.policies)}catch{t("SET_POLICY_TYPE_TOTALS",{})}}}}),mte={EnvVars:Ge("EnvVars"),Env:Ge("Env"),env:Ge("env"),i18n:Ge("i18n"),enUs:Ge("i18n.locale.enUs"),kumaEnUs:Ge("kuma.locale.enUs"),httpClient:Ge("httpClient"),api:Ge("KumaApi"),dataSourcePool:Ge("DataSourcePool"),dataSourceLifecycle:Ge("DataSourceLifecycle"),sources:Ge("sources"),storeConfig:Ge("storeOptions"),store:Ge("store"),router:Ge("router"),routes:Ge("vue.routes"),navigationGuards:Ge("vue.routes.navigation.guards"),meshRoutes:Ge("kuma.mesh.routes"),dataplaneRoutes:Ge("kuma.dataplane.routes"),gatewayRoutes:Ge("kuma.gateway.routes"),serviceRoutes:Ge("kuma.service.routes"),policyRoutes:Ge("kuma.policy.routes"),zoneRoutes:Ge("kuma.zone.routes"),diagnosticsRoutes:Ge("kuma.diagnostics.routes"),onboardingRoutes:Ge("kuma.onboarding.routes"),onboardingRouteGuards:Ge("kuma.onboarding.routes"),nav:Ge("nav"),logger:Ge("logger"),app:Ge("app"),bootstrap:Ge("bootstrap")},vte=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:xJ,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>Is(e.Env).var(...t)}],[e.i18n,{service:qee,arguments:[e.enUs,e.env]}],[e.kumaEnUs,{constant:yJ,labels:[e.enUs]}],[e.httpClient,{service:rte,arguments:[e.env]}],[e.dataSourceLifecycle,{constant:HQ}],[e.dataSourcePool,{service:PQ,arguments:[e.sources,e.dataSourceLifecycle]}],[e.api,{service:Xee,arguments:[e.httpClient,e.env]}],[e.logger,{service:p8}],[e.storeConfig,{service:pte,arguments:[e.api]}],[e.store,{service:h8,arguments:[e.storeConfig]}],[e.router,{service:(t,n,r)=>wJ(t,n,r("KUMA_BASE_PATH")),arguments:[e.routes,e.store,e.env]}],[e.nav,{service:()=>t=>FX(t)}],[e.app,{service:rQ,arguments:[e.store,e.router]}],[e.bootstrap,{service:aQ,arguments:[e.store]}],[e.onboardingRouteGuards,{service:t=>[Py(t)],arguments:[e.store],labels:[e.navigationGuards]}],[e.routes,{service:CJ,arguments:[e.zoneRoutes,e.meshRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:UX,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:AX}],[e.gatewayRoutes,{service:$X}],[e.serviceRoutes,{service:XX}],[e.policyRoutes,{service:GX,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:rJ,arguments:[TX([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?nJ():[]],{description:"kuma.zone.action.routes"})]}],[e.onboardingRoutes,{service:VX}],[e.diagnosticsRoutes,{service:IX}],...oJ(e),...YX(e),...eJ(e),...PX(e),...zX(e),...qX(e),...LX(e)],al=mte;async function gte(){const e=_X(vte(al),[]);(await e(al.app)((await qe(()=>import("./App-620c47a9.js"),["./RouteView-d5d38fa0.css","./App-0a6d594d.css"],import.meta.url)).default)).mount("#app");const n=e(al.store);await n.dispatch("updateGlobalLoading",!0),await e(al.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}gte();export{JY as $,Wa as A,qa as B,It as C,We as D,ss as E,Me as F,_h as G,B5 as H,Le as I,kte as J,Tte as K,Wg as L,ei as M,Ml as N,N4 as O,Ur as P,xs as Q,_i as R,wV as S,ja as T,Jee as U,SW as V,bW as W,Sg as X,vG as Y,Is as Z,al as _,se as a,Ste as a0,Ga as a1,De as a2,at as a3,qe as a4,Jo as a5,Et as a6,wte as a7,lX as a8,Jb as a9,l4 as aa,tt as ab,dv as ac,DX as ad,ab as ae,_te as af,TX as ag,Kn as ah,ll as ai,Gg as aj,xte as ak,_o as al,Bx as am,k6 as an,pe as b,B as c,ge as d,S as e,$ as f,J as g,G as h,va as i,j,ft as k,bte as l,Rn as m,q as n,C as o,Ln as p,O as q,Gn as r,ot as s,V as t,y6 as u,Be as v,z as w,CG as x,gr as y,F as z}; +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Yee(e,t){var n=Eee(t),r=Te(Te({},Cee),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new Rm('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new Rm('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new yee('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Zee(r),Te(Te({},r),{formatters:n,formatNumber:zee.bind(null,r,n.getNumberFormat),formatNumberToParts:jee.bind(null,r,n.getNumberFormat),formatRelativeTime:Hee.bind(null,r,n.getRelativeTimeFormat),formatDate:See.bind(null,r,n.getDateTimeFormat),formatDateToParts:Dee.bind(null,r,n.getDateTimeFormat),formatTime:_ee.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Tee.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Mee.bind(null,r,n.getDateTimeFormat),formatPlural:Lee.bind(null,r,n.getPluralRules),formatMessage:Fm.bind(null,r,n),$t:Fm.bind(null,r,n),formatList:Iee.bind(null,r,n.getListFormat),formatListToParts:Jy.bind(null,r,n.getListFormat),formatDisplayName:Oee.bind(null,r,n.getDisplayNames)})}var Vee=ms;ms.flatten=ms;ms.unflatten=rb;function tb(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function nb(e){return e}function ms(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,a=t.transformKey||nb,o={};function i(s,l,u){u=u||1,Object.keys(s).forEach(function(c){const d=s[c],h=t.safe&&Array.isArray(d),f=Object.prototype.toString.call(d),g=tb(d),y=f==="[object Object]"||f==="[object Array]",v=l?l+n+a(c):a(c);if(!h&&!g&&y&&Object.keys(d).length&&(!t.maxDepth||u0&&(d=i(c.shift()),h=i(c[0]))}f[d]=rb(e[u],t)}),o}const Kee=Qy(),Gee=(e,t,n=!1)=>{const r=Yee({...typeof n=="boolean"?null:n,locale:e,messages:Vee.flatten(t,{safe:!0})},Kee),{$t:a,...o}=r,i=o,s=u=>{const c="Invalid Date";if(!u)return c;try{const d=new Date(u*1e3);return i.formatDate(d,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})}catch{return c}},l={formatUnixTimeStamp:s,formatIsoDate:u=>{const c=Date.parse(u)/1e3;return s(c)},t:(u,c,d)=>i.formatMessage({id:u},c,d),te:u=>!!i.messages[u],tm:u=>i.messages[u]||[],...i,source:t};return typeof n=="boolean"&&n===!0||typeof n!="boolean"&&n.isGlobal,l};function Wee(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function ab(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 a=e[r[0]];return a===void 0?n:a}return ab(e[r[0]],r.slice(1),n)}class jm extends Error{get key(){return this.message}}const qee=(e,t)=>{const n=Gee("en-us",e,!0);return{...n,t:function(...r){const a=r[0];try{if(typeof ab(e,a)>"u")throw a.startsWith("http.api.")?new jm(a):new Error(`Missing message: "${a}" for locale "en-us", using id as fallback`);return r[1]={KUMA_DOCS_URL:t("KUMA_DOCS_URL"),KUMA_UTM_QUERY_PARAMS:t("KUMA_UTM_QUERY_PARAMS"),...r[1]},n.t(...r)}catch(o){switch(!0){case o instanceof jm:return Wee(o.key.split(".").pop());default:throw o}}}}};class Qee{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}}class Xee extends Qee{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},a){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:a})}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(o=>o.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,path:n,name:r},a){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:a})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},a){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:a})}}class Jee extends Error{constructor({status:n,type:r=null,title:a,detail:o=null,instance:i=null,invalidParameters:s=[]}){super(a);ct(this,"status");ct(this,"type");ct(this,"title");ct(this,"detail");ct(this,"instance");ct(this,"invalidParameters");this.name="ApiError",this.status=n,this.type=r,this.title=a,this.detail=o,this.instance=i,this.invalidParameters=s}toJSON(){return{status:this.status,type:this.type,title:this.title,detail:this.detail,instance:this.instance,invalidParameters:this.invalidParameters}}}async function ete(e,t={},n){var c;const r=t,a=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(a)&&r.headers.set("content-type","application/json");let o=e;"params"in t&&t.params!==void 0&&a==="GET"&&(o+=`?${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 i;try{i=await fetch(o,r)}catch(d){throw tte(d)}const s=i.headers.get("content-type"),u=(s!==null?s.startsWith("application/json")||s.startsWith("application/problem+json"):!1)?await i.json():await i.text();if(i.ok)return{response:i,data:u};throw nte(i,u)}function tte(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function nte(e,t){const n=e.status;let r,a,o,i,s;return typeof t=="string"&&t.length>0?a=t:t!==null&&typeof t=="object"&&("type"in t&&typeof t.type=="string"&&(r=t.type),"title"in t&&typeof t.title=="string"&&(a=t.title),"detail"in t&&typeof t.detail=="string"&&(o=t.detail),"instance"in t&&typeof t.instance=="string"&&(i=t.instance),"invalid_parameters"in t&&Array.isArray(t.invalid_parameters)&&(s=t.invalid_parameters)),n===403&&(a="You currently don’t have access to this data."),a===void 0&&(a="An error has occurred while trying to load this data."),new Jee({status:n,type:r,title:a,detail:o,instance:i,invalidParameters:s})}class rte{constructor(t){this.env=t}get baseUrl(){return this.env("KUMA_API_URL")}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:a}=await this.raw(t,n,r,"POST");return a}async put(t,n,r){const{data:a}=await this.raw(t,n,r,"PUT");return a}async patch(t,n,r){const{data:a}=await this.raw(t,n,r,"PATCH");return a}async raw(t,n,r={},a="GET"){const o=Um(r);o.method=a;const i=new Headers;if("headers"in o){const l=o.headers instanceof Headers?o.headers:new Headers(o.headers);for(const[u,c]of l)i.set(u,c)}Object.keys(i).length>0&&(o.headers=i);const s=Um(o);return ete(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,n)}}function Um(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,a]of Object.entries(t.params))if(a!==void 0)if(Array.isArray(a))for(const o of a)n.push([r,o]);else n.push([r,a]);t.params=n}return t}const ate={status:null,clientConfig:null},ote={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t},ite={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},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"},ste=e=>({bootstrapConfig({dispatch:t}){return t("getConfig")},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)})}}),lte=e=>({namespaced:!0,state:()=>ate,getters:ite,mutations:ote,actions:ste(e)}),ute={isCompleted:_o.get("onboardingIsCompleted")==="true",step:_o.get("onboardingStep")||"onboarding-welcome",mode:"demo"},cte={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},dte={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),e("SET_IS_COMPLETED",!0),_o.set("onboardingIsCompleted","true"),_o.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),_o.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},hte={namespaced:!0,state:()=>ute,mutations:cte,actions:dte},fte={globalLoading:!0,defaultVisibility:{appError:!0,onboardingNotification:!0},meshes:{total:0,items:[],next:null},totalDataplaneCount:0,policyTypes:[],policyTypesByPath:{},policyTypesByName:{},policyTypeTotals:{},globalKdsAddress:"grpcs://:5685"},pte=e=>({modules:{config:lte(e),onboarding:hte},state:()=>fte,getters:{shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n}},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_MESHES:(t,n)=>t.meshes=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_POLICY_TYPES:(t,n)=>{n.sort((r,a)=>r.name.localeCompare(a.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_POLICY_TYPE_TOTALS:(t,n)=>t.policyTypeTotals=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}){await t("config/getStatus"),n["config/getStatus"]==="OK"&&await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")])},async fetchMeshList({commit:t,state:n}){const r={size:DX};try{const{total:a,items:o,next:i}=await e.getAllMeshes(r),s={items:o??[],total:a,next:i};s.items.sort((l,u)=>l.name==="default"?-1:u.name==="default"?1:l.name.localeCompare(u.name)),t("SET_MESHES",s)}catch(a){console.error(a)}},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 fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((o,i)=>Object.assign(o,{[i.path]:i}),{}),a=n.reduce((o,i)=>Object.assign(o,{[i.name]:i}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",a)},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)},async fetchPolicyTypeTotals({commit:t},n){try{const r=await e.getMeshInsights({name:n});t("SET_POLICY_TYPE_TOTALS",r.policies)}catch{t("SET_POLICY_TYPE_TOTALS",{})}}}}),mte={EnvVars:Ge("EnvVars"),Env:Ge("Env"),env:Ge("env"),i18n:Ge("i18n"),enUs:Ge("i18n.locale.enUs"),kumaEnUs:Ge("kuma.locale.enUs"),httpClient:Ge("httpClient"),api:Ge("KumaApi"),dataSourcePool:Ge("DataSourcePool"),dataSourceLifecycle:Ge("DataSourceLifecycle"),sources:Ge("sources"),storeConfig:Ge("storeOptions"),store:Ge("store"),router:Ge("router"),routes:Ge("vue.routes"),navigationGuards:Ge("vue.routes.navigation.guards"),meshRoutes:Ge("kuma.mesh.routes"),dataplaneRoutes:Ge("kuma.dataplane.routes"),gatewayRoutes:Ge("kuma.gateway.routes"),serviceRoutes:Ge("kuma.service.routes"),policyRoutes:Ge("kuma.policy.routes"),zoneRoutes:Ge("kuma.zone.routes"),diagnosticsRoutes:Ge("kuma.diagnostics.routes"),onboardingRoutes:Ge("kuma.onboarding.routes"),onboardingRouteGuards:Ge("kuma.onboarding.routes"),nav:Ge("nav"),logger:Ge("logger"),app:Ge("app"),bootstrap:Ge("bootstrap")},vte=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:xJ,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>Is(e.Env).var(...t)}],[e.i18n,{service:qee,arguments:[e.enUs,e.env]}],[e.kumaEnUs,{constant:yJ,labels:[e.enUs]}],[e.httpClient,{service:rte,arguments:[e.env]}],[e.dataSourceLifecycle,{constant:HQ}],[e.dataSourcePool,{service:PQ,arguments:[e.sources,e.dataSourceLifecycle]}],[e.api,{service:Xee,arguments:[e.httpClient,e.env]}],[e.logger,{service:p8}],[e.storeConfig,{service:pte,arguments:[e.api]}],[e.store,{service:h8,arguments:[e.storeConfig]}],[e.router,{service:(t,n,r)=>wJ(t,n,r("KUMA_BASE_PATH")),arguments:[e.routes,e.store,e.env]}],[e.nav,{service:()=>t=>zX(t)}],[e.app,{service:rQ,arguments:[e.store,e.router]}],[e.bootstrap,{service:aQ,arguments:[e.store]}],[e.onboardingRouteGuards,{service:t=>[Py(t)],arguments:[e.store],labels:[e.navigationGuards]}],[e.routes,{service:CJ,arguments:[e.zoneRoutes,e.meshRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:UX,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:AX}],[e.gatewayRoutes,{service:$X}],[e.serviceRoutes,{service:XX}],[e.policyRoutes,{service:GX,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:rJ,arguments:[TX([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?nJ():[]],{description:"kuma.zone.action.routes"})]}],[e.onboardingRoutes,{service:VX}],[e.diagnosticsRoutes,{service:IX}],...oJ(e),...YX(e),...eJ(e),...PX(e),...FX(e),...qX(e),...LX(e)],al=mte;async function gte(){const e=_X(vte(al),[]);(await e(al.app)((await qe(()=>import("./App-4250e301.js"),["./RouteView-d5d38fa0.css","./App-0a6d594d.css"],import.meta.url)).default)).mount("#app");const n=e(al.store);await n.dispatch("updateGlobalLoading",!0),await e(al.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}gte();export{JY as $,Wa as A,qa as B,It as C,We as D,ss as E,Me as F,_h as G,B5 as H,Le as I,kte as J,Tte as K,Wg as L,ei as M,Ml as N,N4 as O,Ur as P,xs as Q,_i as R,wV as S,ja as T,Jee as U,SW as V,bW as W,Sg as X,vG as Y,Is as Z,al as _,se as a,Ste as a0,Ga as a1,De as a2,at as a3,qe as a4,Jo as a5,Et as a6,wte as a7,lX as a8,Jb as a9,l4 as aa,tt as ab,dv as ac,DX as ad,ab as ae,_te as af,TX as ag,Kn as ah,ll as ai,Gg as aj,xte as ak,_o as al,Bx as am,k6 as an,pe as b,B as c,ge as d,S as e,$ as f,J as g,G as h,va as i,j,ft as k,bte as l,Rn as m,q as n,C as o,Ln as p,O as q,Gn as r,ot as s,V as t,y6 as u,Be as v,F as w,CG as x,gr as y,z}; diff --git a/app/kuma-ui/pkg/resources/data/index.html b/app/kuma-ui/pkg/resources/data/index.html index 1de2498ee94f..7158b8a3e5f3 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