diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-ea61fddc.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-f0abba95.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServices-ea61fddc.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServices-f0abba95.js index 0d881b15a6fb..d7b17e1b9ddc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-ea61fddc.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-f0abba95.js @@ -1,4 +1,4 @@ -import{O as b,a as x,b as w}from"./OnboardingPage-29599a9b.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-c92949c1.js";import{f as v,e as N,g as $,A as I,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.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-1beccd77.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-3bdd7748.js";import{f as v,e as N,g as $,A as I,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.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-7e82f6b3.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-91120ed4.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-7e82f6b3.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-91120ed4.js index 276d8499385e..f8a8a52eaccc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-7e82f6b3.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-91120ed4.js @@ -1,4 +1,4 @@ -import{L as k}from"./LoadingBox-207cfdf4.js";import{O as w,a as x,b as y}from"./OnboardingPage-29599a9b.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-1a4646e6.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.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-c92949c1.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-8c4bdc47.js";import{O as w,a as x,b as y}from"./OnboardingPage-1beccd77.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-062fa58d.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.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-3bdd7748.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-b22c5bd4.js b/app/kuma-ui/pkg/resources/data/assets/App-abd0b226.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/App-b22c5bd4.js rename to app/kuma-ui/pkg/resources/data/assets/App-abd0b226.js index a88337d6a998..e44c1f8e8783 100644 --- a/app/kuma-ui/pkg/resources/data/assets/App-b22c5bd4.js +++ b/app/kuma-ui/pkg/resources/data/assets/App-abd0b226.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-c92949c1.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-1a4646e6.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-3bdd7748.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-062fa58d.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-fdcc3e8a.js b/app/kuma-ui/pkg/resources/data/assets/AppCollection-81ee7359.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/AppCollection-fdcc3e8a.js rename to app/kuma-ui/pkg/resources/data/assets/AppCollection-81ee7359.js index ec3b602d700b..2ed15d24add8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppCollection-fdcc3e8a.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppCollection-81ee7359.js @@ -1 +1 @@ -import{d as k,C,j as n,c as $,J as u,o as m,a as S,B as w,s as N,w as z,e as A,z as h,b as d,_ as x,$ as B}from"./index-c92949c1.js";import{f as I}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const L={key:0,class:"app-collection-toolbar"},_=5,O=k({__name:"AppCollection",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},headers:{},error:{}},emits:["change"],setup(f,{emit:g}){const e=f,v=C(),l=n(e.items),r=n(0),i=n(0),p=n(e.pageNumber),y=$(()=>{const a=e.headers.filter(o=>["warnings","actions"].includes(o.key));if(a.length>4)return"initial";const s=100-a.length*_,t=e.headers.length-a.length;return`calc(${s}% / ${t})`});u(()=>e.items,(a,s)=>{a!==s&&(r.value++,l.value=e.items)}),u(()=>e.pageNumber,function(){e.pageNumber!==p.value&&i.value++});const b=a=>{const s=a.target.closest("tr");if(s){const t=s.querySelector("a");t!==null&&t.click()}};return(a,s)=>(m(),S(d(B),{key:i.value,class:"app-collection",style:x(`--column-width: ${y.value}; --special-column-width: ${_}%;`),"has-error":typeof e.error<"u","pagination-total-items":e.total,"initial-fetcher-params":{page:e.pageNumber,pageSize:e.pageSize},headers:e.headers,"fetcher-cache-key":String(r.value),fetcher:({page:t,pageSize:o,query:c})=>(p.value=t,g("change",{page:t,size:o,s:c}),{data:l.value}),"cell-attrs":({headerKey:t})=>({class:`${t}-column`}),"empty-state-icon-size":"96","disable-sorting":"","hide-pagination-when-optional":"","onRow:click":b},w({_:2},[N(Object.keys(d(v)),t=>({name:t,fn:z(({row:o,rowValue:c})=>[t==="toolbar"?(m(),A("div",L,[h(a.$slots,"toolbar",{},void 0,!0)])):h(a.$slots,t,{key:1,row:o,rowValue:c},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"]))}});const K=I(O,[["__scopeId","data-v-e443049c"]]);export{K as A}; +import{d as k,C,j as n,c as $,J as u,o as m,a as S,B as w,s as N,w as z,e as A,z as h,b as d,_ as x,$ as B}from"./index-3bdd7748.js";import{f as I}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const L={key:0,class:"app-collection-toolbar"},_=5,O=k({__name:"AppCollection",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},headers:{},error:{}},emits:["change"],setup(f,{emit:g}){const e=f,v=C(),l=n(e.items),r=n(0),i=n(0),p=n(e.pageNumber),y=$(()=>{const a=e.headers.filter(o=>["warnings","actions"].includes(o.key));if(a.length>4)return"initial";const s=100-a.length*_,t=e.headers.length-a.length;return`calc(${s}% / ${t})`});u(()=>e.items,(a,s)=>{a!==s&&(r.value++,l.value=e.items)}),u(()=>e.pageNumber,function(){e.pageNumber!==p.value&&i.value++});const b=a=>{const s=a.target.closest("tr");if(s){const t=s.querySelector("a");t!==null&&t.click()}};return(a,s)=>(m(),S(d(B),{key:i.value,class:"app-collection",style:x(`--column-width: ${y.value}; --special-column-width: ${_}%;`),"has-error":typeof e.error<"u","pagination-total-items":e.total,"initial-fetcher-params":{page:e.pageNumber,pageSize:e.pageSize},headers:e.headers,"fetcher-cache-key":String(r.value),fetcher:({page:t,pageSize:o,query:c})=>(p.value=t,g("change",{page:t,size:o,s:c}),{data:l.value}),"cell-attrs":({headerKey:t})=>({class:`${t}-column`}),"empty-state-icon-size":"96","disable-sorting":"","hide-pagination-when-optional":"","onRow:click":b},w({_:2},[N(Object.keys(d(v)),t=>({name:t,fn:z(({row:o,rowValue:c})=>[t==="toolbar"?(m(),A("div",L,[h(a.$slots,"toolbar",{},void 0,!0)])):h(a.$slots,t,{key:1,row:o,rowValue:c},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"]))}});const K=I(O,[["__scopeId","data-v-e443049c"]]);export{K as A}; diff --git a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-7e935df4.js b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-be68dbc1.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-7e935df4.js rename to app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-be68dbc1.js index 541b55299255..b5eaa668a68a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-7e935df4.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-be68dbc1.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-c92949c1.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-3bdd7748.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-be60878f.js b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js rename to app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js index a4003c949840..34e655b70391 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js +++ b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js @@ -1,4 +1,4 @@ -import{ae as Y,af as te,d as ae,j as ne,ag as U,o as re,a as ie,w as se,z as oe,_ as le,b as Z,ah as ue}from"./index-c92949c1.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{ae as Y,af as te,d as ae,j as ne,ag as U,o as re,a as ie,w as se,z as oe,_ as le,b as Z,ah as ue}from"./index-3bdd7748.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-11e42628.js b/app/kuma-ui/pkg/resources/data/assets/CompletedView-f717fc90.js similarity index 75% rename from app/kuma-ui/pkg/resources/data/assets/CompletedView-11e42628.js rename to app/kuma-ui/pkg/resources/data/assets/CompletedView-f717fc90.js index 75cface1d452..f51d78038d82 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CompletedView-11e42628.js +++ b/app/kuma-ui/pkg/resources/data/assets/CompletedView-f717fc90.js @@ -1,3 +1,3 @@ -import{O as i,a as _,b as p}from"./OnboardingPage-29599a9b.js";import{g as r,A as d,_ as l,f as c}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.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-c92949c1.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-1beccd77.js";import{g as r,A as d,_ as l,f as c}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.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-3bdd7748.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-e7576fcb.js b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-7ea41f87.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-e7576fcb.js rename to app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-7ea41f87.js index 8ccc640a68f7..c918c781b054 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-e7576fcb.js +++ b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-7ea41f87.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-c92949c1.js";import{O as C,a as G,b as k}from"./OnboardingPage-29599a9b.js";import{j as M,k as P,l as T,e as w,g as B,A as N,_ as O,f as K}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";const U={class:"graph-list mb-6"},j={class:"radio-button-group"},A=y({__name:"ConfigurationTypes",setup(I){const c=M(),g=P(),_={postgres:T(),memory:g,kubernetes:c},u=w(),{t:f}=B(),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(q,n)=>(d(),p(O,null,{default:e(()=>[o(S,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(N,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-3bdd7748.js";import{O as C,a as G,b as k}from"./OnboardingPage-1beccd77.js";import{j as M,k as P,l as T,e as w,g as B,A as N,_ as O,f as K}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as S}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";const U={class:"graph-list mb-6"},j={class:"radio-button-group"},A=y({__name:"ConfigurationTypes",setup(I){const c=M(),g=P(),_={postgres:T(),memory:g,kubernetes:c},u=w(),{t:f}=B(),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(q,n)=>(d(),p(O,null,{default:e(()=>[o(S,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(N,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/CopyButton-2ebae850.js b/app/kuma-ui/pkg/resources/data/assets/CopyButton-ae4c9de6.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/CopyButton-2ebae850.js rename to app/kuma-ui/pkg/resources/data/assets/CopyButton-ae4c9de6.js index 30b2129681b0..b21165784d23 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CopyButton-2ebae850.js +++ b/app/kuma-ui/pkg/resources/data/assets/CopyButton-ae4c9de6.js @@ -1 +1 @@ -import{d as p,o as d,a as f,w as l,h as c,b as n,D as y,v as x,g as _,z as T,q as C,t as g,ai as m}from"./index-c92949c1.js";import{f as S}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const b={class:"visually-hidden"},B=p({__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(r){const t=r;async function u(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch{o=!1}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(d(),f(n(m),null,{default:l(({copyToClipboard:e})=>[c(n(y),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>u(o,e)},{default:l(()=>[c(n(x),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),_(),T(s.$slots,"default",{},()=>[C("span",b,g(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const q=S(B,[["__scopeId","data-v-607973c1"]]);export{q as C}; +import{d as p,o as d,a as f,w as l,h as c,b as n,D as y,v as x,g as _,z as T,q as C,t as g,ai as m}from"./index-3bdd7748.js";import{f as S}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const b={class:"visually-hidden"},B=p({__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(r){const t=r;async function u(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch{o=!1}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(d(),f(n(m),null,{default:l(({copyToClipboard:e})=>[c(n(y),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>u(o,e)},{default:l(()=>[c(n(x),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),_(),T(s.$slots,"default",{},()=>[C("span",b,g(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const q=S(B,[["__scopeId","data-v-607973c1"]]);export{q as C}; diff --git a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-2271f396.js b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-1efc09e7.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/CreateMesh-2271f396.js rename to app/kuma-ui/pkg/resources/data/assets/CreateMesh-1efc09e7.js index 95b93737f296..f0ad4ed74966 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-2271f396.js +++ b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-1efc09e7.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,$ as g,p as v,m as y}from"./index-c92949c1.js";import{O as x,a as S,b as A}from"./OnboardingPage-29599a9b.js";import{e as N,g as C,A as k,_ as I,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as B}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.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,$ as g,p as v,m as y}from"./index-3bdd7748.js";import{O as x,a as S,b as A}from"./OnboardingPage-1beccd77.js";import{e as N,g as C,A as k,_ as I,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as B}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.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=N(),{t:r}=C(),d=_({total:1,data:[{name:"default",servicesAmount:0,dppsAmount:0}]}),p=m(()=>l.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-configuration-types");return($,E)=>(h(),f(I,null,{default:e(()=>[t(B,{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-f3e13ebd.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-3c529acf.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-f3e13ebd.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-3c529acf.js index 282ece7e71f6..97f2dcdf6f2f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-f3e13ebd.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-3c529acf.js @@ -1,4 +1,4 @@ -import{d as K,r as Q,o as e,e as i,g as a,F as g,s as x,q as d,t as c,h as s,w as t,f as N,a as m,B as me,b as y,Y as _e,p as he,m as ve,$ as re,j as q,c as F,J as ge,K as fe,G as B,L as be,v as ke,M as we}from"./index-c92949c1.js";import{A as V,a as X,S as Te,b as $e}from"./SubscriptionHeader-910c3ab4.js";import{f as Y,m as ce,p as ae,E as se,q as ne,g as pe,e as Oe,D as j,S as Pe,o as ue,A as De,_ as Ee}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as de}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import{P as ye}from"./PolicyTypeTag-0e10249d.js";import{T as W}from"./TagList-5c49d2c8.js";import{t as le,_ as Ae}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js";import{_ as Le,E as te}from"./EnvoyData-28992b07.js";import{T as Ce}from"./TabsWidget-cb88da32.js";import{T as Se}from"./TextWithCopyButton-4f462743.js";import{_ as Re}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-c34f765e.js";import{a as xe,d as oe,b as Ge,p as Ie,c as Me,C as Ne,I as qe,e as Be}from"./dataplane-30467516.js";import{_ as je}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CopyButton-2ebae850.js";const z=h=>(he("data-v-d6898838"),h=h(),ve(),h),Fe={class:"mesh-gateway-policy-list"},Ke=z(()=>d("h3",{class:"mb-2"},` +import{d as K,r as Q,o as e,e as i,g as a,F as g,s as x,q as d,t as c,h as s,w as t,f as N,a as m,B as me,b as y,Y as _e,p as he,m as ve,$ as re,j as q,c as F,J as ge,K as fe,G as B,L as be,v as ke,M as we}from"./index-3bdd7748.js";import{A as V,a as X,S as Te,b as $e}from"./SubscriptionHeader-ddfced4a.js";import{f as Y,m as ce,p as ae,E as se,q as ne,g as pe,e as Oe,D as j,S as Pe,o as ue,A as De,_ as Ee}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as de}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import{P as ye}from"./PolicyTypeTag-f6914cdb.js";import{T as W}from"./TagList-4f13f92a.js";import{t as le,_ as Ae}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js";import{_ as Le,E as te}from"./EnvoyData-07b5f6c5.js";import{T as Ce}from"./TabsWidget-1f2b437c.js";import{T as Se}from"./TextWithCopyButton-f3a4a3be.js";import{_ as Re}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-48504256.js";import{a as xe,d as oe,b as Ge,p as Ie,c as Me,C as Ne,I as qe,e as Be}from"./dataplane-30467516.js";import{_ as je}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CopyButton-ae4c9de6.js";const z=h=>(he("data-v-d6898838"),h=h(),ve(),h),Fe={class:"mesh-gateway-policy-list"},Ke=z(()=>d("h3",{class:"mb-2"},` Gateway policies `,-1)),He={key:0},Ue=z(()=>d("h3",{class:"mt-6 mb-2"},` Listeners diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-9f3b5196.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-feb794ea.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-9f3b5196.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-feb794ea.js index 0f76dbba72ae..cf8e6acab1f2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-9f3b5196.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-feb794ea.js @@ -1 +1 @@ -import{d as u,o as _,a as f,w as t,h as s,q as d,b as o,g,G as h}from"./index-c92949c1.js";import{D as y,K as b}from"./KFilterBar-047e6e83.js";import{g as z,o as q,A as v,_ as w,f as V}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./AppCollection-fdcc3e8a.js";import"./dataplane-30467516.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)=>(_(),f(w,{name:"data-planes-list-view"},{default:t(({route:r})=>[s(q,{src:`/meshes/${e.mesh}/dataplanes?page=${e.page}&size=${p.size}&search=${e.search}`},{default:t(({data:a,error:c})=>[s(v,null,{title:t(()=>[d("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 S=V(x,[["__scopeId","data-v-19acf073"]]);export{S as default}; +import{d as u,o as _,a as f,w as t,h as s,q as d,b as o,g,G as h}from"./index-3bdd7748.js";import{D as y,K as b}from"./KFilterBar-83cec3c2.js";import{g as z,o as q,A as v,_ as w,f as V}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./AppCollection-81ee7359.js";import"./dataplane-30467516.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)=>(_(),f(w,{name:"data-planes-list-view"},{default:t(({route:r})=>[s(q,{src:`/meshes/${e.mesh}/dataplanes?page=${e.page}&size=${p.size}&search=${e.search}`},{default:t(({data:a,error:c})=>[s(v,null,{title:t(()=>[d("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 S=V(x,[["__scopeId","data-v-19acf073"]]);export{S as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-9ab57ec2.js b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-8be2a342.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-9ab57ec2.js rename to app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-8be2a342.js index f456fb9b7c76..a51ad5ba21ec 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-9ab57ec2.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-8be2a342.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 N,q as o,t as c,e as d,$ as T,F}from"./index-c92949c1.js";import{L as I}from"./LoadingBox-207cfdf4.js";import{O as E,a as $,b as L}from"./OnboardingPage-29599a9b.js";import{m as V,g as C,A as H,S as M,_ as R,f as j}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{g as z}from"./dataplane-30467516.js";const K={key:0,class:"status-loading-box mb-4"},U={key:1},W={class:"mb-4"},G=P({__name:"DataplanesOverview",setup(J){const p=V(),{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=z(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(q,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(H,null,{default:a(()=>[s(E,null,{header:a(()=>[s($,null,N({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",K,[s(I)])):(n(),d("div",U,[o("p",W,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(T),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(M,{key:0,status:t},null,8,["status"])):(n(),d(F,{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 N,q as o,t as c,e as d,$ as T,F}from"./index-3bdd7748.js";import{L as I}from"./LoadingBox-8c4bdc47.js";import{O as E,a as $,b as L}from"./OnboardingPage-1beccd77.js";import{m as V,g as C,A as H,S as M,_ as R,f as j}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{g as z}from"./dataplane-30467516.js";const K={key:0,class:"status-loading-box mb-4"},U={key:1},W={class:"mb-4"},G=P({__name:"DataplanesOverview",setup(J){const p=V(),{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=z(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(q,{title:k(x)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s(H,null,{default:a(()=>[s(E,null,{header:a(()=>[s($,null,N({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",K,[s(I)])):(n(),d("div",U,[o("p",W,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(T),{class:"mb-4",fetcher:()=>e.value,headers:D,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(M,{key:0,status:t},null,8,["status"])):(n(),d(F,{key:1},[u(` — `)],64))]),_:1},8,["fetcher"])]))]),navigation:a(()=>[s(L,{"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=j(G,[["__scopeId","data-v-4588fbe4"]]);export{te as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-7f14040c.js b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-1df08813.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-7f14040c.js rename to app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-1df08813.js index b6ac44aa9f8b..a4dc5c6c86f7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-7f14040c.js +++ b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-1df08813.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-c92949c1.js";import{O as x,a as z,b as S}from"./OnboardingPage-29599a9b.js";import{h as G,i as M,e as w,g as D,A as B,_ as C,f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";const T={class:"graph-list mb-6"},k={class:"radio-button-group"},A=f({__name:"DeploymentTypes",setup(I){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"}),($,o)=>(u(),r(C,null,{default:e(()=>[t(O,{title:s(i)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),t(B,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-3bdd7748.js";import{O as x,a as z,b as S}from"./OnboardingPage-1beccd77.js";import{h as G,i as M,e as w,g as D,A as B,_ as C,f as N}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as O}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";const T={class:"graph-list mb-6"},k={class:"radio-button-group"},A=f({__name:"DeploymentTypes",setup(I){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"}),($,o)=>(u(),r(C,null,{default:e(()=>[t(O,{title:s(i)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),t(B,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",T,[(u(),r(V(g.value)))]),n(),d("div",k,[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-c6629797.js b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-ec2b9ac0.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-c6629797.js rename to app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-ec2b9ac0.js index 7e53b48ceeed..37dd459ca2cd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-c6629797.js +++ b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-ec2b9ac0.js @@ -1 +1 @@ -import{d as r,o as s,a,w as e,h as t,b as o,q as d,g as l,G as _}from"./index-c92949c1.js";import{g as m,o as u,A as f,p as g,E as p,_ as b}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as k}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{_ as y}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";const q=r({__name:"DiagnosticsView",setup(h){const{t:i}=m();return(x,V)=>(s(),a(b,{name:"diagnostics"},{default:e(()=>[t(u,{src:"/config"},{default:e(({data:n,error:c})=>[t(f,{breadcrumbs:[{to:{name:"diagnostics"},text:o(i)("diagnostics.routes.item.breadcrumbs")}]},{title:e(()=>[d("h1",null,[t(k,{title:o(i)("diagnostics.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),t(o(_),null,{body:e(()=>[n===void 0?(s(),a(g,{key:0})):c?(s(),a(p,{key:1,error:c},null,8,["error"])):(s(),a(y,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(n,null,2),"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})]),_:1}))}});export{q as default}; +import{d as r,o as s,a,w as e,h as t,b as o,q as d,g as l,G as _}from"./index-3bdd7748.js";import{g as m,o as u,A as f,p as g,E as p,_ as b}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as k}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{_ as y}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";const q=r({__name:"DiagnosticsView",setup(h){const{t:i}=m();return(x,V)=>(s(),a(b,{name:"diagnostics"},{default:e(()=>[t(u,{src:"/config"},{default:e(({data:n,error:c})=>[t(f,{breadcrumbs:[{to:{name:"diagnostics"},text:o(i)("diagnostics.routes.item.breadcrumbs")}]},{title:e(()=>[d("h1",null,[t(k,{title:o(i)("diagnostics.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[l(),t(o(_),null,{body:e(()=>[n===void 0?(s(),a(g,{key:0})):c?(s(),a(p,{key:1,error:c},null,8,["error"])):(s(),a(y,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(n,null,2),"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})]),_:1}))}});export{q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-28992b07.js b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-07b5f6c5.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/EnvoyData-28992b07.js rename to app/kuma-ui/pkg/resources/data/assets/EnvoyData-07b5f6c5.js index f312dacf6a1e..3af778ff7d3d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-28992b07.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-07b5f6c5.js @@ -1,3 +1,3 @@ -import{d as g,o as r,e as f,a as d,z as _,j as i,J as u,k as h,q as v,h as c,w as p,g as y,b as E,D as N}from"./index-c92949c1.js";import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import{p as q,E as z,q as P,m as S,f as B}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const D={key:3},I=g({__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(t){return(e,n)=>(r(),f("div",null,[t.isLoading?(r(),d(q,{key:0})):t.hasError||t.error!==null?(r(),d(z,{key:1,error:t.error},null,8,["error"])):t.isEmpty?(r(),d(P,{key:2})):(r(),f("div",D,[_(e.$slots,"default")]))]))}}),$={class:"envoy-data-actions"},b=g({__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(t){const e=t,n=S(),o=i(!0),l=i(null),m=i("");u(()=>e.dppName,function(){s()}),u(()=>e.zoneIngressName,function(){s()}),u(()=>e.zoneEgressName,function(){s()}),h(function(){s()});async function s(){l.value=null,o.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})),m.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?l.value=a:console.error(a)}finally{o.value=!1}}return(a,w)=>(r(),f("div",null,[v("div",$,[c(E(N),{disabled:o.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:s},{default:p(()=>[y(` +import{d as g,o as r,e as f,a as d,z as _,j as i,J as u,k as h,q as v,h as c,w as p,g as y,b as E,D as N}from"./index-3bdd7748.js";import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import{p as q,E as z,q as P,m as S,f as B}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const D={key:3},I=g({__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(t){return(e,n)=>(r(),f("div",null,[t.isLoading?(r(),d(q,{key:0})):t.hasError||t.error!==null?(r(),d(z,{key:1,error:t.error},null,8,["error"])):t.isEmpty?(r(),d(P,{key:2})):(r(),f("div",D,[_(e.$slots,"default")]))]))}}),$={class:"envoy-data-actions"},b=g({__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(t){const e=t,n=S(),o=i(!0),l=i(null),m=i("");u(()=>e.dppName,function(){s()}),u(()=>e.zoneIngressName,function(){s()}),u(()=>e.zoneEgressName,function(){s()}),h(function(){s()});async function s(){l.value=null,o.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})),m.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?l.value=a:console.error(a)}finally{o.value=!1}}return(a,w)=>(r(),f("div",null,[v("div",$,[c(E(N),{disabled:o.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:s},{default:p(()=>[y(` Refresh `)]),_:1},8,["disabled"])]),y(),c(I,{"is-loading":o.value,error:l.value},{default:p(()=>[c(k,{id:`code-block-${e.dataPath}`,language:"json",code:m.value,"is-searchable":"","query-key":e.queryKey??`code-block-${e.dataPath}`},null,8,["id","code","query-key"])]),_:1},8,["is-loading","error"])]))}});const L=B(b,[["__scopeId","data-v-afa8dc47"]]);export{L as E,I as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/GatewayListView-fd414d1c.js b/app/kuma-ui/pkg/resources/data/assets/GatewayListView-9c58351c.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/GatewayListView-fd414d1c.js rename to app/kuma-ui/pkg/resources/data/assets/GatewayListView-9c58351c.js index 2a4918aa22c7..0c7953ccce90 100644 --- a/app/kuma-ui/pkg/resources/data/assets/GatewayListView-fd414d1c.js +++ b/app/kuma-ui/pkg/resources/data/assets/GatewayListView-9c58351c.js @@ -1 +1 @@ -import{d as y,o as _,a as d,w as t,h as s,q as f,b as r,g as o,G as w,N as b,t as h}from"./index-c92949c1.js";import{g as v,o as z,A as q,_ as $,f as S}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{D as x,K as C}from"./KFilterBar-047e6e83.js";import"./AppCollection-fdcc3e8a.js";import"./dataplane-30467516.js";import"./notEmpty-7f452b20.js";const T=y({__name:"GatewayListView",props:{page:{},size:{},search:{},query:{},mesh:{},gatewayType:{}},setup(n){const a=n,{t:p}=v();return(c,k)=>(_(),d($,{name:"gateways-list-view"},{default:t(({route:i,can:u})=>[s(z,{src:`/meshes/${i.params.mesh}/gateways/of/${a.gatewayType}?page=${a.page}&size=${c.size}&search=${a.search}`},{default:t(({data:l,error:g})=>[s(q,null,{title:t(()=>[f("h2",null,[s(V,{title:r(p)("gateways.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[o(),s(r(w),null,{body:t(()=>[s(x,{"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:g,gateways:!0,onChange:({page:e,size:m})=>{i.update({page:String(e),size:String(m)})}},{toolbar:t(()=>[s(C,{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”)"},...u("use zones")?{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(b),{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=S(T,[["__scopeId","data-v-aacbc830"]]);export{I as default}; +import{d as y,o as _,a as d,w as t,h as s,q as f,b as r,g as o,G as w,N as b,t as h}from"./index-3bdd7748.js";import{g as v,o as z,A as q,_ as $,f as S}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{D as x,K as C}from"./KFilterBar-83cec3c2.js";import"./AppCollection-81ee7359.js";import"./dataplane-30467516.js";import"./notEmpty-7f452b20.js";const T=y({__name:"GatewayListView",props:{page:{},size:{},search:{},query:{},mesh:{},gatewayType:{}},setup(n){const a=n,{t:p}=v();return(c,k)=>(_(),d($,{name:"gateways-list-view"},{default:t(({route:i,can:u})=>[s(z,{src:`/meshes/${i.params.mesh}/gateways/of/${a.gatewayType}?page=${a.page}&size=${c.size}&search=${a.search}`},{default:t(({data:l,error:g})=>[s(q,null,{title:t(()=>[f("h2",null,[s(V,{title:r(p)("gateways.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[o(),s(r(w),null,{body:t(()=>[s(x,{"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:g,gateways:!0,onChange:({page:e,size:m})=>{i.update({page:String(e),size:String(m)})}},{toolbar:t(()=>[s(C,{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”)"},...u("use zones")?{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(b),{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=S(T,[["__scopeId","data-v-aacbc830"]]);export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/KFilterBar-047e6e83.js b/app/kuma-ui/pkg/resources/data/assets/KFilterBar-83cec3c2.js similarity index 98% rename from app/kuma-ui/pkg/resources/data/assets/KFilterBar-047e6e83.js rename to app/kuma-ui/pkg/resources/data/assets/KFilterBar-83cec3c2.js index 1ab6f0789721..b0c14e4934d3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/KFilterBar-047e6e83.js +++ b/app/kuma-ui/pkg/resources/data/assets/KFilterBar-83cec3c2.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 K=(s,i,o)=>(le(s,typeof i!="symbol"?i+"":i,o),o);import{d as oe,c as M,r as re,o as p,a as z,w as y,z as ae,h as w,g as d,t as _,e as k,F as E,b as v,L as ue,v as P,V as ce,D as de,H as pe,K as me,j as D,J as X,q as T,O as fe,P as ge,n as ee,s as ve,f as J,k as ye,A as he,p as be,m as ke}from"./index-c92949c1.js";import{A as _e}from"./AppCollection-fdcc3e8a.js";import{e as Se,g as Te,S as we,f as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as Ce,a as Ae,c as De,C as xe,e as Ne}from"./dataplane-30467516.js";import{n as Ue}from"./notEmpty-7f452b20.js";const Ie=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=Se(),{t:a,formatIsoDate:u}=Te(),c=M(()=>h.getters["config/getMulticlusterStatus"]);function b(m){return m.map(r=>{var R,U,A,q,t,l;const S=r.mesh,n=r.name,C=((R=r.dataplane.networking.gateway)==null?void 0:R.type)||"STANDARD",$={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)),I=(U=x.find(e=>e.label==="kuma.io/service"))==null?void 0:U.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 F;I!==void 0&&(F={name:"service-detail-view",params:{mesh:S,service:I}});let j;N!==void 0&&(j={name:"zone-cp-detail-view",params:{zone:N}});const{status:B}=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 G,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:((G=g.version)==null?void 0:G.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:$,type:C,zone:{title:N??a("common.collection.none"),route:j},service:{title:I??a("common.collection.none"),route:F},protocol:O??a("common.collection.none"),status:B,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(),z(_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(Ue)),"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(),z(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(),z(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(),z(we,{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(),z(v(ue),{key:0,label:v(a)("data-planes.list.version_mismatch")},{default:y(()=>[w(v(P),{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 K=(s,i,o)=>(le(s,typeof i!="symbol"?i+"":i,o),o);import{d as oe,c as M,r as re,o as p,a as z,w as y,z as ae,h as w,g as d,t as _,e as k,F as E,b as v,L as ue,v as P,V as ce,D as de,H as pe,K as me,j as D,J as X,q as T,O as fe,P as ge,n as ee,s as ve,f as J,k as ye,A as he,p as be,m as ke}from"./index-3bdd7748.js";import{A as _e}from"./AppCollection-81ee7359.js";import{e as Se,g as Te,S as we,f as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{d as Ce,a as Ae,c as De,C as xe,e as Ne}from"./dataplane-30467516.js";import{n as Ue}from"./notEmpty-7f452b20.js";const Ie=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=Se(),{t:a,formatIsoDate:u}=Te(),c=M(()=>h.getters["config/getMulticlusterStatus"]);function b(m){return m.map(r=>{var R,U,A,q,t,l;const S=r.mesh,n=r.name,C=((R=r.dataplane.networking.gateway)==null?void 0:R.type)||"STANDARD",$={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)),I=(U=x.find(e=>e.label==="kuma.io/service"))==null?void 0:U.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 F;I!==void 0&&(F={name:"service-detail-view",params:{mesh:S,service:I}});let j;N!==void 0&&(j={name:"zone-cp-detail-view",params:{zone:N}});const{status:B}=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 G,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:((G=g.version)==null?void 0:G.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:$,type:C,zone:{title:N??a("common.collection.none"),route:j},service:{title:I??a("common.collection.none"),route:F},protocol:O??a("common.collection.none"),status:B,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(),z(_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(Ue)),"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(),z(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(),z(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(),z(we,{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(),z(v(ue),{key:0,label:v(a)("data-planes.list.version_mismatch")},{default:y(()=>[w(v(P),{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(P),{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(Ie,[["__scopeId","data-v-66c9dcb2"]]);function Le(s,i,o){return Math.max(i,Math.min(s,o))}const ze=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class Me{constructor(i,o){K(this,"commands");K(this,"keyMap");K(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=Pe(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 Pe(s){return ze.includes(s)?"":s.replace(/^Key/,"").toLowerCase()}function Fe(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=je(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 je(s){return s.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(i,o)=>o===0?i:i.substring(1).toUpperCase())}let te=0;const Be=(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"],Ke=["id","placeholder"],$e={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"},Je=se(()=>T("span",{class:"visually-hidden"},"Clear query",-1)),Ge=oe({__name:"KFilterBar",props:{id:{type:String,required:!1,default:()=>Be("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=M(()=>Object.keys(o.fields)),n=M(()=>Object.entries(o.fields).slice(0,5).map(([t,l])=>({fieldName:t,...l}))),C=M(()=>S.value.length>0?`Filter by ${S.value.join(", ")}`:"Filter"),$=M(()=>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:F,isAllowedContext(t){return a.value!==null&&t.composedPath().includes(a.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:j,isAllowedContext(t){return a.value!==null&&t.composedPath().includes(a.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:U,isAllowedContext(t){return h.value!==null&&t.composedPath().includes(h.value)}}};function I(){const t=new Me(V,x);ye(function(){t.registerListener()}),he(function(){t.unRegisterListener()}),A(u.value)}I();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 F(){B(1)}function j(){B(-1)}function B(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&&U(),h.value instanceof HTMLElement&&t.relatedTarget instanceof Node&&!h.value.contains(t.relatedTarget)&&U()}function U(){m.value=!1}function A(t){b.value=null;try{const l=Fe(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(P),{"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:$.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=e=>m.value=!0),onBlur:R,onChange:O},null,40,Ke),[[ge,u.value]]),d(),m.value?(p(),k("div",$e,[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)):J("",!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(P),{"aria-hidden":"true",color:"currentColor","hide-title":"",icon:"chevronRight",size:"16"})],8,He)],2))),128))])])):J("",!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},[Je,d(),w(v(P),{"aria-hidden":"true",color:"currentColor",icon:"clear","hide-title":"",size:"20"})])):J("",!0)],512))}});const nt=ne(Ge,[["__scopeId","data-v-121f7a4c"]]);export{at as D,nt as K}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-207cfdf4.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-8c4bdc47.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBox-207cfdf4.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBox-8c4bdc47.js index 8753e4c580db..dca7e76ccb73 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-207cfdf4.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-8c4bdc47.js @@ -1 +1 @@ -import{f as d}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{o as n,e as _,g as s,p as c,m as l,q as o}from"./index-c92949c1.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-062fa58d.js";import{o as n,e as _,g as s,p as c,m as l,q as o}from"./index-3bdd7748.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-a0f0a5f6.js b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a9a403a6.js similarity index 55% rename from app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a0f0a5f6.js rename to app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a9a403a6.js index 9d488f1012ff..f665b1283f66 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a0f0a5f6.js +++ b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-a9a403a6.js @@ -1 +1 @@ -import{n as r,g as i,A as o,_}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as c}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{d as l,o as m,a as u,w as e,h as t,q as f,b as a,g as p}from"./index-c92949c1.js";const B=l({__name:"MainOverviewView",setup(d){const s=r(),{t:n}=i();return(v,w)=>(m(),u(_,{name:"home"},{default:e(()=>[t(o,null,{title:e(()=>[f("h1",null,[t(c,{title:a(n)("main-overview.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[p(),t(a(s))]),_:1})]),_:1}))}});export{B as default}; +import{n as r,g as i,A as o,_}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as c}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{d as l,o as m,a as u,w as e,h as t,q as f,b as a,g as p}from"./index-3bdd7748.js";const B=l({__name:"MainOverviewView",setup(d){const s=r(),{t:n}=i();return(v,w)=>(m(),u(_,{name:"home"},{default:e(()=>[t(o,null,{title:e(()=>[f("h1",null,[t(c,{title:a(n)("main-overview.routes.item.title"),render:!0},null,8,["title"])])]),default:e(()=>[p(),t(a(s))]),_:1})]),_:1}))}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-1e661f43.js b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-5c9626ba.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/MeshDetailView-1e661f43.js rename to app/kuma-ui/pkg/resources/data/assets/MeshDetailView-5c9626ba.js index e8972f7b75cb..6ffa9f6737de 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-1e661f43.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-5c9626ba.js @@ -1 +1 @@ -import{d as A,c as u,o as r,e as f,g as e,t as a,b as s,h as o,v as V,u as q,r as L,w as t,q as D,a as c,Y as $,F as w,G as j}from"./index-c92949c1.js";import{g as C,f as M,m as O,D as k,R,A as B,o as I,p as F,E as Y,q as E,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js";import{T as P}from"./TextWithCopyButton-4f462743.js";import{_ as W}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import"./CopyButton-2ebae850.js";const z={class:"date-status"},H=A({__name:"ResourceDateStatus",props:{creationTime:{},modificationTime:{}},setup(x){const i=x,{t:n,formatIsoDate:y}=C(),_=u(()=>y(i.creationTime)),d=u(()=>y(i.modificationTime));return(v,p)=>(r(),f("span",z,[e(a(s(n)("common.detail.created"))+": "+a(_.value)+" ",1),o(s(V),{icon:"arrowRight"}),e(" "+a(s(n)("common.detail.modified"))+": "+a(d.value),1)]))}});const J=M(H,[["__scopeId","data-v-76eb341b"]]),Q={class:"stack"},U={class:"stack"},X={class:"columns",style:{"--columns":"4"}},Z={class:"columns",style:{"--columns":"4"}},ee={class:"date-status-wrapper"},te=A({__name:"MeshDetails",props:{mesh:{type:Object,required:!0},meshInsight:{type:Object,required:!0}},setup(x){const i=x,{t:n}=C(),y=O(),_=q(),d=u(()=>m(i.mesh.mtls)),v=u(()=>m(i.mesh.logging)),p=u(()=>m(i.mesh.metrics)),g=u(()=>m(i.mesh.tracing)),T=u(()=>Object.values(i.meshInsight.policies??{}).reduce((l,h)=>l+h.total,0));function m(l){if(!l||!Array.isArray(l==null?void 0:l.backends)||l.backends.length===0)return"";const h=l.enabledBackend??l.defaultBackend??l.backends[0].name,b=l.backends.find(S=>S.name===h);return b===void 0?"":`${b.type} / ${b.name}`}async function N(l){const h=_.params.mesh;return await y.getMesh({name:h},l)}return(l,h)=>{const b=L("RouterLink");return r(),f("div",Q,[o(s(j),null,{body:t(()=>[D("div",U,[D("div",X,[o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.name")),1)]),body:t(()=>[o(P,{text:i.mesh.name},{default:t(()=>[o(b,{to:{name:"mesh-detail-view",params:{mesh:i.mesh.name}}},{default:t(()=>[e(a(i.mesh.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),e(),o(R,{total:i.meshInsight.services.total??0,"data-testid":"services-status"},{title:t(()=>[e(a(s(n)("meshes.detail.services")),1)]),_:1},8,["total"]),e(),o(R,{total:i.meshInsight.dataplanesByType.standard.total??0,"data-testid":"data-plane-proxies-status"},{title:t(()=>[e(a(s(n)("meshes.detail.data_plane_proxies")),1)]),_:1},8,["total"]),e(),o(R,{total:T.value,"data-testid":"policies-status"},{title:t(()=>[e(a(s(n)("meshes.detail.policies")),1)]),_:1},8,["total"])]),e(),D("div",Z,[o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.mtls")),1)]),body:t(()=>[d.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(d.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.logging")),1)]),body:t(()=>[v.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(v.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.metrics")),1)]),body:t(()=>[p.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(p.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.tracing")),1)]),body:t(()=>[g.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(g.value),1)],64))]),_:1})])])]),_:1}),e(),o(K,{id:"code-block-mesh",resource:i.mesh,"resource-fetcher":N},null,8,["resource"]),e(),D("div",ee,[o(J,{"creation-time":i.mesh.creationTime,"modification-time":i.mesh.modificationTime},null,8,["creation-time","modification-time"])])])}}});const ae=M(te,[["__scopeId","data-v-a6a08878"]]),de=A({__name:"MeshDetailView",setup(x){const{t:i}=C();return(n,y)=>(r(),c(G,{name:"mesh-overview-view"},{default:t(({route:_})=>[o(W,{title:s(i)("meshes.routes.overview.title")},null,8,["title"]),e(),o(B,null,{default:t(()=>[o(I,{src:`/meshes/${_.params.mesh}`},{default:t(({data:d,isLoading:v,error:p})=>[o(I,{src:`/mesh-insights/${_.params.mesh}`},{default:t(({data:g,isLoading:T,error:m})=>[v||T?(r(),c(F,{key:0})):p??m?(r(),c(Y,{key:1,error:p??m},null,8,["error"])):d===void 0||g===void 0?(r(),c(E,{key:2})):(r(),c(ae,{key:3,mesh:d,"mesh-insight":g,"data-testid":"detail-view-details"},null,8,["mesh","mesh-insight"]))]),_:2},1032,["src"])]),_:2},1032,["src"])]),_:2},1024)]),_:1}))}});export{de as default}; +import{d as A,c as u,o as r,e as f,g as e,t as a,b as s,h as o,v as V,u as q,r as L,w as t,q as D,a as c,Y as $,F as w,G as j}from"./index-3bdd7748.js";import{g as C,f as M,m as O,D as k,R,A as B,o as I,p as F,E as Y,q as E,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js";import{T as P}from"./TextWithCopyButton-f3a4a3be.js";import{_ as W}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import"./CopyButton-ae4c9de6.js";const z={class:"date-status"},H=A({__name:"ResourceDateStatus",props:{creationTime:{},modificationTime:{}},setup(x){const i=x,{t:n,formatIsoDate:y}=C(),_=u(()=>y(i.creationTime)),d=u(()=>y(i.modificationTime));return(v,p)=>(r(),f("span",z,[e(a(s(n)("common.detail.created"))+": "+a(_.value)+" ",1),o(s(V),{icon:"arrowRight"}),e(" "+a(s(n)("common.detail.modified"))+": "+a(d.value),1)]))}});const J=M(H,[["__scopeId","data-v-76eb341b"]]),Q={class:"stack"},U={class:"stack"},X={class:"columns",style:{"--columns":"4"}},Z={class:"columns",style:{"--columns":"4"}},ee={class:"date-status-wrapper"},te=A({__name:"MeshDetails",props:{mesh:{type:Object,required:!0},meshInsight:{type:Object,required:!0}},setup(x){const i=x,{t:n}=C(),y=O(),_=q(),d=u(()=>m(i.mesh.mtls)),v=u(()=>m(i.mesh.logging)),p=u(()=>m(i.mesh.metrics)),g=u(()=>m(i.mesh.tracing)),T=u(()=>Object.values(i.meshInsight.policies??{}).reduce((l,h)=>l+h.total,0));function m(l){if(!l||!Array.isArray(l==null?void 0:l.backends)||l.backends.length===0)return"";const h=l.enabledBackend??l.defaultBackend??l.backends[0].name,b=l.backends.find(S=>S.name===h);return b===void 0?"":`${b.type} / ${b.name}`}async function N(l){const h=_.params.mesh;return await y.getMesh({name:h},l)}return(l,h)=>{const b=L("RouterLink");return r(),f("div",Q,[o(s(j),null,{body:t(()=>[D("div",U,[D("div",X,[o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.name")),1)]),body:t(()=>[o(P,{text:i.mesh.name},{default:t(()=>[o(b,{to:{name:"mesh-detail-view",params:{mesh:i.mesh.name}}},{default:t(()=>[e(a(i.mesh.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),e(),o(R,{total:i.meshInsight.services.total??0,"data-testid":"services-status"},{title:t(()=>[e(a(s(n)("meshes.detail.services")),1)]),_:1},8,["total"]),e(),o(R,{total:i.meshInsight.dataplanesByType.standard.total??0,"data-testid":"data-plane-proxies-status"},{title:t(()=>[e(a(s(n)("meshes.detail.data_plane_proxies")),1)]),_:1},8,["total"]),e(),o(R,{total:T.value,"data-testid":"policies-status"},{title:t(()=>[e(a(s(n)("meshes.detail.policies")),1)]),_:1},8,["total"])]),e(),D("div",Z,[o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.mtls")),1)]),body:t(()=>[d.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(d.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.logging")),1)]),body:t(()=>[v.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(v.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.metrics")),1)]),body:t(()=>[p.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(p.value),1)],64))]),_:1}),e(),o(k,null,{title:t(()=>[e(a(s(n)("http.api.property.tracing")),1)]),body:t(()=>[g.value===""?(r(),c(s($),{key:0,appearance:"neutral"},{default:t(()=>[e(a(s(n)("meshes.detail.disabled")),1)]),_:1})):(r(),f(w,{key:1},[e(a(g.value),1)],64))]),_:1})])])]),_:1}),e(),o(K,{id:"code-block-mesh",resource:i.mesh,"resource-fetcher":N},null,8,["resource"]),e(),D("div",ee,[o(J,{"creation-time":i.mesh.creationTime,"modification-time":i.mesh.modificationTime},null,8,["creation-time","modification-time"])])])}}});const ae=M(te,[["__scopeId","data-v-a6a08878"]]),de=A({__name:"MeshDetailView",setup(x){const{t:i}=C();return(n,y)=>(r(),c(G,{name:"mesh-overview-view"},{default:t(({route:_})=>[o(W,{title:s(i)("meshes.routes.overview.title")},null,8,["title"]),e(),o(B,null,{default:t(()=>[o(I,{src:`/meshes/${_.params.mesh}`},{default:t(({data:d,isLoading:v,error:p})=>[o(I,{src:`/mesh-insights/${_.params.mesh}`},{default:t(({data:g,isLoading:T,error:m})=>[v||T?(r(),c(F,{key:0})):p??m?(r(),c(Y,{key:1,error:p??m},null,8,["error"])):d===void 0||g===void 0?(r(),c(E,{key:2})):(r(),c(ae,{key:3,mesh:d,"mesh-insight":g,"data-testid":"detail-view-details"},null,8,["mesh","mesh-insight"]))]),_:2},1032,["src"])]),_:2},1032,["src"])]),_:2},1024)]),_:1}))}});export{de as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-6370d7df.js b/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-d49d2ccf.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/MeshIndexView-6370d7df.js rename to app/kuma-ui/pkg/resources/data/assets/MeshIndexView-d49d2ccf.js index c76a9e69fba9..b310e6a49fff 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-6370d7df.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshIndexView-d49d2ccf.js @@ -1 +1 @@ -import{g as m,A as u,_ as c}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as _,r as p,o,a as s,w as e,h as a,b as i,i as l}from"./index-c92949c1.js";const x=_({__name:"MeshIndexView",setup(d){const{t:n}=m();return(f,b)=>{const r=p("RouterView");return o(),s(c,null,{default:e(()=>[a(u,{breadcrumbs:[{to:{name:"mesh-list-view"},text:i(n)("meshes.routes.item.breadcrumbs")}]},{default:e(()=>[a(r,null,{default:e(t=>[(o(),s(l(t.Component),{key:t.route.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{x as default}; +import{g as m,A as u,_ as c}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{d as _,r as p,o,a as s,w as e,h as a,b as i,i as l}from"./index-3bdd7748.js";const x=_({__name:"MeshIndexView",setup(d){const{t:n}=m();return(f,b)=>{const r=p("RouterView");return o(),s(c,null,{default:e(()=>[a(u,{breadcrumbs:[{to:{name:"mesh-list-view"},text:i(n)("meshes.routes.item.breadcrumbs")}]},{default:e(()=>[a(r,null,{default:e(t=>[(o(),s(l(t.Component),{key:t.route.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{x as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshListView-f540dc11.js b/app/kuma-ui/pkg/resources/data/assets/MeshListView-4c96d1bc.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/MeshListView-f540dc11.js rename to app/kuma-ui/pkg/resources/data/assets/MeshListView-4c96d1bc.js index 6e19441daf2e..4bd9267ed0b9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshListView-f540dc11.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshListView-4c96d1bc.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,V as w,D as y,v as b,H as k}from"./index-c92949c1.js";import{A as V}from"./AppCollection-fdcc3e8a.js";import{g as z,o as C,A as x,_ as A,f as L}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";const M={class:"stack"},N=u({__name:"MeshListView",props:{page:{},size:{}},setup(c){const o=c,{t:n}=z();return(B,S)=>{const r=d("RouterLink");return f(),h(A,{name:"mesh-list-view"},{default:e(({route:p})=>[s(C,{src:`/meshes?page=${o.page}&size=${o.size}`},{default:e(({data:a,error:_})=>[s(x,null,{title:e(()=>[m("h1",null,[s($,{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(V,{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(r,{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 q=L(N,[["__scopeId","data-v-daff90a5"]]);export{q 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,V as w,D as y,v as b,H as k}from"./index-3bdd7748.js";import{A as V}from"./AppCollection-81ee7359.js";import{g as z,o as C,A as x,_ as A,f as L}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";const M={class:"stack"},N=u({__name:"MeshListView",props:{page:{},size:{}},setup(c){const o=c,{t:n}=z();return(B,S)=>{const r=d("RouterLink");return f(),h(A,{name:"mesh-list-view"},{default:e(({route:p})=>[s(C,{src:`/meshes?page=${o.page}&size=${o.size}`},{default:e(({data:a,error:_})=>[s(x,null,{title:e(()=>[m("h1",null,[s($,{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(V,{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(r,{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 q=L(N,[["__scopeId","data-v-daff90a5"]]);export{q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-c79b4d9f.js b/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-ffe85c0f.js similarity index 71% rename from app/kuma-ui/pkg/resources/data/assets/MeshTabsView-c79b4d9f.js rename to app/kuma-ui/pkg/resources/data/assets/MeshTabsView-ffe85c0f.js index 219809bf82d7..71985d480ca4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-c79b4d9f.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshTabsView-ffe85c0f.js @@ -1 +1 @@ -import{d as h,I as b,r as w,o as c,a as p,w as s,h as o,q as R,b as _,g as f,i as V}from"./index-c92949c1.js";import{g as v,A as N,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as g}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{N as x}from"./NavTabs-a631bf3c.js";const q=h({__name:"MeshTabsView",setup(k){var u;const{t:m}=v(),d=(((u=b().getRoutes().find(e=>e.name==="mesh-tabs-view"))==null?void 0:u.children)??[]).map(e=>{var i,l;const a=typeof e.name>"u"?(i=e.children)==null?void 0:i[0]:e,t=a.name,n=((l=a.meta)==null?void 0:l.module)??"";return{title:m(`meshes.routes.item.navigation.${t}`),routeName:t,module:n}});return(e,a)=>{const t=w("RouterView");return c(),p(C,null,{default:s(({route:n})=>[o(N,null,{title:s(()=>[R("h1",null,[o(g,{title:_(m)("meshes.routes.item.title",{name:n.params.mesh}),render:!0},null,8,["title"])])]),default:s(()=>[f(),o(x,{class:"route-mesh-view-tabs",tabs:_(d)},null,8,["tabs"]),f(),o(t,null,{default:s(r=>[(c(),p(V(r.Component),{key:r.route.path}))]),_:2},1024)]),_:2},1024)]),_:1})}}});export{q as default}; +import{d as h,I as b,r as w,o as c,a as p,w as s,h as o,q as R,b as _,g as f,i as V}from"./index-3bdd7748.js";import{g as v,A as N,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as g}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{N as x}from"./NavTabs-e94a1083.js";const q=h({__name:"MeshTabsView",setup(k){var u;const{t:m}=v(),d=(((u=b().getRoutes().find(e=>e.name==="mesh-tabs-view"))==null?void 0:u.children)??[]).map(e=>{var i,l;const a=typeof e.name>"u"?(i=e.children)==null?void 0:i[0]:e,t=a.name,n=((l=a.meta)==null?void 0:l.module)??"";return{title:m(`meshes.routes.item.navigation.${t}`),routeName:t,module:n}});return(e,a)=>{const t=w("RouterView");return c(),p(C,null,{default:s(({route:n})=>[o(N,null,{title:s(()=>[R("h1",null,[o(g,{title:_(m)("meshes.routes.item.title",{name:n.params.mesh}),render:!0},null,8,["title"])])]),default:s(()=>[f(),o(x,{class:"route-mesh-view-tabs",tabs:_(d)},null,8,["tabs"]),f(),o(t,null,{default:s(r=>[(c(),p(V(r.Component),{key:r.route.path}))]),_:2},1024)]),_:2},1024)]),_:1})}}});export{q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-81f1f626.js b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-d7227424.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/MultiZoneView-81f1f626.js rename to app/kuma-ui/pkg/resources/data/assets/MultiZoneView-d7227424.js index 005e18f1b569..5dc8033489df 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-81f1f626.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-d7227424.js @@ -1,4 +1,4 @@ -import{L as y}from"./LoadingBox-207cfdf4.js";import{O as x,a as Z,b as I}from"./OnboardingPage-29599a9b.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-1a4646e6.js";import{_ as A}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.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-c92949c1.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-8c4bdc47.js";import{O as x,a as Z,b as I}from"./OnboardingPage-1beccd77.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-062fa58d.js";import{_ as A}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.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-3bdd7748.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-185be380.js b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-57bc485a.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-185be380.js rename to app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-57bc485a.js index 1edfa7904130..c5a8300c9e98 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-185be380.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-57bc485a.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-c92949c1.js";import{g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.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-3bdd7748.js";import{g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.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-a631bf3c.js b/app/kuma-ui/pkg/resources/data/assets/NavTabs-e94a1083.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/NavTabs-a631bf3c.js rename to app/kuma-ui/pkg/resources/data/assets/NavTabs-e94a1083.js index 513251d9f1d6..1f9c0fec4e94 100644 --- a/app/kuma-ui/pkg/resources/data/assets/NavTabs-a631bf3c.js +++ b/app/kuma-ui/pkg/resources/data/assets/NavTabs-e94a1083.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,W as y}from"./index-c92949c1.js";import{f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const g=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 w=T(g,[["__scopeId","data-v-1c3c46ad"]]);export{w 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,W as y}from"./index-3bdd7748.js";import{f as T}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const g=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 w=T(g,[["__scopeId","data-v-1c3c46ad"]]);export{w as N}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-29599a9b.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-1beccd77.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingPage-29599a9b.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingPage-1beccd77.js index 963ece33a362..f00dda7a8967 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-29599a9b.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-1beccd77.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-c92949c1.js";import{f as v,e as w}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.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-3bdd7748.js";import{f as v,e as w}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.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-13f83364.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-b08c4dd1.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingView-13f83364.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingView-b08c4dd1.js index cf374a443bc6..39a1e903f5f7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-13f83364.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-b08c4dd1.js @@ -1 +1 @@ -import{A as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as l,r as c,o,a,w as e,h as n,i}from"./index-c92949c1.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-062fa58d.js";import{d as l,r as c,o,a,w as e,h as n,i}from"./index-3bdd7748.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-8ca0e7e8.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-883f672d.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8ca0e7e8.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-883f672d.js index 7c52ecf60923..bf38e1c29aa9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8ca0e7e8.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-883f672d.js @@ -1 +1 @@ -import{d as g,j as C,r as S,o as e,e as h,g as _,O as V,P as A,q as P,h as o,w as r,a as s,F as k,s as q,t as B,b as y,G as x}from"./index-c92949c1.js";import{p as v,E as w,q as b,o as $,m as L,g as N,A as E,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as O}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js";import{T as j}from"./TabsWidget-cb88da32.js";import{_ as I}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import"./CopyButton-2ebae850.js";const R=P("h2",null,"Dataplanes",-1),D=g({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(d){const a=d,m=C("");return(f,t)=>{const l=S("RouterLink");return e(),h(k,null,[R,_(),V(P("input",{id:"dataplane-search","onUpdate:modelValue":t[0]||(t[0]=i=>m.value=i),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[A,m.value]]),_(),o($,{src:`/meshes/${a.mesh}/policy-path/${a.policyPath}/policy/${a.policyName}/dataplanes`},{default:r(({data:i,isLoading:n,error:p})=>[n?(e(),s(v,{key:0})):p?(e(),s(w,{key:1,error:p},null,8,["error"])):i===void 0||i.items.length===0?(e(),s(b,{key:2})):(e(!0),h(k,{key:3},q(i.items.filter(c=>c.dataplane.name.toLowerCase().includes(m.value.toLowerCase())),(c,u)=>(e(),h("p",{key:u,class:"mt-2","data-testid":"dataplane-name"},[o(l,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:r(()=>[_(B(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["src"])],64)}}}),G=g({__name:"PolicyDetails",props:{policy:{type:Object,required:!0},path:{type:String,required:!0}},setup(d){const a=d,m=L(),f=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}];async function t(l){const{name:i,mesh:n}=a.policy,p=a.path;return await m.getSinglePolicyEntity({name:i,mesh:n,path:p},l)}return(l,i)=>(e(),s(j,{tabs:f},{overview:r(()=>[o(y(x),null,{body:r(()=>[o(O,{id:"code-block-policy",resource:a.policy,"resource-fetcher":t,"is-searchable":""},null,8,["resource"])]),_:1})]),"affected-dpps":r(()=>[o(y(x),null,{body:r(()=>[o(D,{mesh:a.policy.mesh,"policy-name":a.policy.name,"policy-path":a.path},null,8,["mesh","policy-name","policy-path"])]),_:1})]),_:1}))}}),Q=g({__name:"PolicyDetailView",setup(d){const{t:a}=N();return(m,f)=>(e(),s(F,{name:"policy-detail-view","data-testid":"policy-detail-view"},{default:r(({route:t})=>[o($,{src:"/*/policy-types"},{default:r(({data:l,error:i})=>[i?(e(),s(w,{key:0,error:i},null,8,["error"])):l===void 0?(e(),s(v,{key:1})):l.policies.length===0?(e(),s(b,{key:2})):(e(!0),h(k,{key:3},q([l.policies.find(n=>n.path===t.params.policyPath)??l.policies[0]],n=>(e(),s(E,{key:n.name,breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:t.params.mesh}},text:t.params.mesh},{to:{name:"policies-list-view",params:{mesh:t.params.mesh,policyPath:t.params.policyPath}},text:y(a)("policies.routes.item.breadcrumbs")}]},{title:r(()=>[P("h1",null,[o(I,{title:y(a)("policies.routes.item.title",{name:t.params.policy}),render:!0},null,8,["title"])])]),default:r(()=>[_(),o($,{src:`/meshes/${t.params.mesh}/policy-path/${n.path}/policy/${t.params.policy}`},{default:r(({data:p,isLoading:c,error:u})=>[c?(e(),s(v,{key:0})):u?(e(),s(w,{key:1,error:u},null,8,["error"])):p===void 0?(e(),s(b,{key:2})):(e(),s(G,{key:3,policy:p,path:n.path,"data-testid":"detail-view-details"},null,8,["policy","path"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"]))),128))]),_:2},1024)]),_:1}))}});export{Q as default}; +import{d as g,j as C,r as S,o as e,e as h,g as _,O as V,P as A,q as P,h as o,w as r,a as s,F as k,s as q,t as B,b as y,G as x}from"./index-3bdd7748.js";import{p as v,E as w,q as b,o as $,m as L,g as N,A as E,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as O}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js";import{T as j}from"./TabsWidget-1f2b437c.js";import{_ as I}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import"./CopyButton-ae4c9de6.js";const R=P("h2",null,"Dataplanes",-1),D=g({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(d){const a=d,m=C("");return(f,t)=>{const l=S("RouterLink");return e(),h(k,null,[R,_(),V(P("input",{id:"dataplane-search","onUpdate:modelValue":t[0]||(t[0]=i=>m.value=i),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[A,m.value]]),_(),o($,{src:`/meshes/${a.mesh}/policy-path/${a.policyPath}/policy/${a.policyName}/dataplanes`},{default:r(({data:i,isLoading:n,error:p})=>[n?(e(),s(v,{key:0})):p?(e(),s(w,{key:1,error:p},null,8,["error"])):i===void 0||i.items.length===0?(e(),s(b,{key:2})):(e(!0),h(k,{key:3},q(i.items.filter(c=>c.dataplane.name.toLowerCase().includes(m.value.toLowerCase())),(c,u)=>(e(),h("p",{key:u,class:"mt-2","data-testid":"dataplane-name"},[o(l,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:r(()=>[_(B(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["src"])],64)}}}),G=g({__name:"PolicyDetails",props:{policy:{type:Object,required:!0},path:{type:String,required:!0}},setup(d){const a=d,m=L(),f=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}];async function t(l){const{name:i,mesh:n}=a.policy,p=a.path;return await m.getSinglePolicyEntity({name:i,mesh:n,path:p},l)}return(l,i)=>(e(),s(j,{tabs:f},{overview:r(()=>[o(y(x),null,{body:r(()=>[o(O,{id:"code-block-policy",resource:a.policy,"resource-fetcher":t,"is-searchable":""},null,8,["resource"])]),_:1})]),"affected-dpps":r(()=>[o(y(x),null,{body:r(()=>[o(D,{mesh:a.policy.mesh,"policy-name":a.policy.name,"policy-path":a.path},null,8,["mesh","policy-name","policy-path"])]),_:1})]),_:1}))}}),Q=g({__name:"PolicyDetailView",setup(d){const{t:a}=N();return(m,f)=>(e(),s(F,{name:"policy-detail-view","data-testid":"policy-detail-view"},{default:r(({route:t})=>[o($,{src:"/*/policy-types"},{default:r(({data:l,error:i})=>[i?(e(),s(w,{key:0,error:i},null,8,["error"])):l===void 0?(e(),s(v,{key:1})):l.policies.length===0?(e(),s(b,{key:2})):(e(!0),h(k,{key:3},q([l.policies.find(n=>n.path===t.params.policyPath)??l.policies[0]],n=>(e(),s(E,{key:n.name,breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:t.params.mesh}},text:t.params.mesh},{to:{name:"policies-list-view",params:{mesh:t.params.mesh,policyPath:t.params.policyPath}},text:y(a)("policies.routes.item.breadcrumbs")}]},{title:r(()=>[P("h1",null,[o(I,{title:y(a)("policies.routes.item.title",{name:t.params.policy}),render:!0},null,8,["title"])])]),default:r(()=>[_(),o($,{src:`/meshes/${t.params.mesh}/policy-path/${n.path}/policy/${t.params.policy}`},{default:r(({data:p,isLoading:c,error:u})=>[c?(e(),s(v,{key:0})):u?(e(),s(w,{key:1,error:u},null,8,["error"])):p===void 0?(e(),s(b,{key:2})):(e(),s(G,{key:3,policy:p,path:n.path,"data-testid":"detail-view-details"},null,8,["policy","path"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"]))),128))]),_:2},1024)]),_:1}))}});export{Q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-72cfd89a.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-ee80cbbd.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/PolicyListView-72cfd89a.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyListView-ee80cbbd.js index a1f514634c87..14e9a5a75560 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-72cfd89a.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-ee80cbbd.js @@ -1 +1 @@ -import{d as C,r as x,o as n,e as h,h as a,b as e,g as s,q as r,t as l,u as I,w as o,F as L,s as B,n as E,G as $,a as m,Y as v,f as P,V as N,D as V,v as A,H as S}from"./index-c92949c1.js";import{A as q}from"./AppCollection-fdcc3e8a.js";import{g as T,f as R,A as F,o as z,E as K,p as Y,q as D,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{P as H}from"./PolicyTypeTag-0e10249d.js";import{n as O}from"./notEmpty-7f452b20.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";const J=["href"],M={class:"visually-hidden"},Q=C({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(f){const y=f,{t}=T();return(c,g)=>{const d=x("KIcon");return n(),h("a",{class:"docs-link",href:y.href,target:"_blank"},[a(d,{icon:"book",color:"currentColor",size:"16",title:e(t)("common.documentation")},null,8,["title"]),s(),r("span",M,l(e(t)("common.documentation")),1)],8,J)}}});const U=R(Q,[["__scopeId","data-v-909dce46"]]),W={class:"policy-list-content"},X={class:"policy-count"},Z={class:"policy-list"},ee={class:"stack"},te={class:"description"},oe={class:"description-content"},se={class:"description-actions"},ae={key:0},ie=C({__name:"PolicyList",props:{pageNumber:{},pageSize:{},policyTypes:{},currentPolicyType:{},policyCollection:{},policyError:{},meshInsight:{}},emits:["change"],setup(f,{emit:y}){const t=f,{t:c}=T(),g=I();return(d,u)=>{const k=x("RouterLink");return n(),h("div",W,[a(e($),{class:"policy-type-list","data-testid":"policy-type-list"},{body:o(()=>[(n(!0),h(L,null,B(t.policyTypes,(p,_)=>{var i,b,w;return n(),h("div",{key:_,class:E(["policy-type-link-wrapper",{"policy-type-link-wrapper--is-active":p.path===t.currentPolicyType.path}])},[a(k,{class:"policy-type-link",to:{name:"policies-list-view",params:{mesh:e(g).params.mesh,policyPath:p.path}},"data-testid":`policy-type-link-${p.name}`},{default:o(()=>[s(l(p.name),1)]),_:2},1032,["to","data-testid"]),s(),r("div",X,l(((w=(b=(i=t.meshInsight)==null?void 0:i.policies)==null?void 0:b[p.name])==null?void 0:w.total)??0),1)],2)}),128))]),_:1}),s(),r("div",Z,[r("div",ee,[a(e($),null,{body:o(()=>[r("div",te,[r("div",oe,[r("h3",null,[a(H,{"policy-type":t.currentPolicyType.name},{default:o(()=>[s(l(e(c)("policies.collection.title",{name:t.currentPolicyType.name})),1)]),_:1},8,["policy-type"])]),s(),r("p",null,l(e(c)("policies.collection.description")),1)]),s(),r("div",se,[t.currentPolicyType.isExperimental?(n(),m(e(v),{key:0,appearance:"warning"},{default:o(()=>[s(l(e(c)("policies.collection.beta")),1)]),_:1})):P("",!0),s(),t.currentPolicyType.isInbound?(n(),m(e(v),{key:1,appearance:"neutral"},{default:o(()=>[s(l(e(c)("policies.collection.inbound")),1)]),_:1})):P("",!0),s(),t.currentPolicyType.isOutbound?(n(),m(e(v),{key:2,appearance:"neutral"},{default:o(()=>[s(l(e(c)("policies.collection.outbound")),1)]),_:1})):P("",!0),s(),a(U,{href:e(c)("policies.href.docs",{name:t.currentPolicyType.name}),"data-testid":"policy-documentation-link"},null,8,["href"])])])]),_:1}),s(),a(e($),null,{body:o(()=>{var p,_;return[a(q,{class:"policy-collection","data-testid":"policy-collection","empty-state-title":e(c)("common.emptyState.title"),"empty-state-message":e(c)("common.emptyState.message",{type:`${t.currentPolicyType.name} policies`}),headers:[{label:"Name",key:"name"},t.currentPolicyType.isTargetRefBased?{label:"Target ref",key:"targetRef"}:void 0,{label:"Actions",key:"actions",hideLabel:!0}].filter(e(O)),"page-number":t.pageNumber,"page-size":t.pageSize,total:(p=t.policyCollection)==null?void 0:p.total,items:(_=t.policyCollection)==null?void 0:_.items,error:t.policyError,onChange:u[0]||(u[0]=i=>y("change",i))},{name:o(({rowValue:i})=>[a(k,{to:{name:"policy-detail-view",params:{mesh:e(g).params.mesh,policyPath:t.currentPolicyType.path,policy:i}}},{default:o(()=>[s(l(i),1)]),_:2},1032,["to"])]),targetRef:o(({row:i})=>[t.currentPolicyType.isTargetRefBased?(n(),m(e(v),{key:0,appearance:"neutral"},{default:o(()=>[s(l(i.spec.targetRef.kind),1),i.spec.targetRef.name?(n(),h("span",ae,[s(":"),r("b",null,l(i.spec.targetRef.name),1)])):P("",!0)]),_:2},1024)):(n(),h(L,{key:1},[s(l(e(c)("common.detail.none")),1)],64))]),actions:o(({row:i})=>[a(e(N),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:o(()=>[a(e(V),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:o(()=>[a(e(A),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:o(()=>[a(e(S),{item:{to:{name:"policy-detail-view",params:{mesh:e(g).params.mesh,policyPath:t.currentPolicyType.path,policy:i.name}},label:e(c)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:1},8,["empty-state-title","empty-state-message","headers","page-number","page-size","total","items","error"])]}),_:1})])])])}}});const ne=R(ie,[["__scopeId","data-v-92df6b96"]]),de=C({__name:"PolicyListView",props:{page:{},size:{}},setup(f){const y=f,{t}=T();return(c,g)=>(n(),m(G,{name:"policies-list-view"},{default:o(({route:d})=>[a(F,null,{title:o(()=>[r("h2",null,[a(j,{title:e(t)("policies.routes.items.title"),render:!0},null,8,["title"])])]),default:o(()=>[s(),a(z,{src:"/*/policy-types"},{default:o(({data:u,error:k})=>[k?(n(),m(K,{key:0,error:k},null,8,["error"])):u===void 0?(n(),m(Y,{key:1})):u.policies.length===0?(n(),m(D,{key:2})):(n(),m(z,{key:3,src:`/meshes/${d.params.mesh}/policy-path/${d.params.policyPath}?page=${y.page}&size=${y.size}`},{default:o(({data:p,error:_})=>[a(z,{src:`/mesh-insights/${d.params.mesh}`},{default:o(({data:i})=>[a(ne,{"page-number":y.page,"page-size":y.size,"current-policy-type":u.policies.find(b=>b.path===d.params.policyPath)??u.policies[0],"policy-types":u.policies,"mesh-insight":i,"policy-collection":p,"policy-error":_,onChange:d.update},null,8,["page-number","page-size","current-policy-type","policy-types","mesh-insight","policy-collection","policy-error","onChange"])]),_:2},1032,["src"])]),_:2},1032,["src"]))]),_:2},1024)]),_:2},1024)]),_:1}))}});export{de as default}; +import{d as C,r as x,o as n,e as h,h as a,b as e,g as s,q as r,t as l,u as I,w as o,F as L,s as B,n as E,G as $,a as m,Y as v,f as P,V as N,D as V,v as A,H as S}from"./index-3bdd7748.js";import{A as q}from"./AppCollection-81ee7359.js";import{g as T,f as R,A as F,o as z,E as K,p as Y,q as D,_ as G}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{P as H}from"./PolicyTypeTag-f6914cdb.js";import{n as O}from"./notEmpty-7f452b20.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";const J=["href"],M={class:"visually-hidden"},Q=C({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(f){const y=f,{t}=T();return(c,g)=>{const d=x("KIcon");return n(),h("a",{class:"docs-link",href:y.href,target:"_blank"},[a(d,{icon:"book",color:"currentColor",size:"16",title:e(t)("common.documentation")},null,8,["title"]),s(),r("span",M,l(e(t)("common.documentation")),1)],8,J)}}});const U=R(Q,[["__scopeId","data-v-909dce46"]]),W={class:"policy-list-content"},X={class:"policy-count"},Z={class:"policy-list"},ee={class:"stack"},te={class:"description"},oe={class:"description-content"},se={class:"description-actions"},ae={key:0},ie=C({__name:"PolicyList",props:{pageNumber:{},pageSize:{},policyTypes:{},currentPolicyType:{},policyCollection:{},policyError:{},meshInsight:{}},emits:["change"],setup(f,{emit:y}){const t=f,{t:c}=T(),g=I();return(d,u)=>{const k=x("RouterLink");return n(),h("div",W,[a(e($),{class:"policy-type-list","data-testid":"policy-type-list"},{body:o(()=>[(n(!0),h(L,null,B(t.policyTypes,(p,_)=>{var i,b,w;return n(),h("div",{key:_,class:E(["policy-type-link-wrapper",{"policy-type-link-wrapper--is-active":p.path===t.currentPolicyType.path}])},[a(k,{class:"policy-type-link",to:{name:"policies-list-view",params:{mesh:e(g).params.mesh,policyPath:p.path}},"data-testid":`policy-type-link-${p.name}`},{default:o(()=>[s(l(p.name),1)]),_:2},1032,["to","data-testid"]),s(),r("div",X,l(((w=(b=(i=t.meshInsight)==null?void 0:i.policies)==null?void 0:b[p.name])==null?void 0:w.total)??0),1)],2)}),128))]),_:1}),s(),r("div",Z,[r("div",ee,[a(e($),null,{body:o(()=>[r("div",te,[r("div",oe,[r("h3",null,[a(H,{"policy-type":t.currentPolicyType.name},{default:o(()=>[s(l(e(c)("policies.collection.title",{name:t.currentPolicyType.name})),1)]),_:1},8,["policy-type"])]),s(),r("p",null,l(e(c)("policies.collection.description")),1)]),s(),r("div",se,[t.currentPolicyType.isExperimental?(n(),m(e(v),{key:0,appearance:"warning"},{default:o(()=>[s(l(e(c)("policies.collection.beta")),1)]),_:1})):P("",!0),s(),t.currentPolicyType.isInbound?(n(),m(e(v),{key:1,appearance:"neutral"},{default:o(()=>[s(l(e(c)("policies.collection.inbound")),1)]),_:1})):P("",!0),s(),t.currentPolicyType.isOutbound?(n(),m(e(v),{key:2,appearance:"neutral"},{default:o(()=>[s(l(e(c)("policies.collection.outbound")),1)]),_:1})):P("",!0),s(),a(U,{href:e(c)("policies.href.docs",{name:t.currentPolicyType.name}),"data-testid":"policy-documentation-link"},null,8,["href"])])])]),_:1}),s(),a(e($),null,{body:o(()=>{var p,_;return[a(q,{class:"policy-collection","data-testid":"policy-collection","empty-state-title":e(c)("common.emptyState.title"),"empty-state-message":e(c)("common.emptyState.message",{type:`${t.currentPolicyType.name} policies`}),headers:[{label:"Name",key:"name"},t.currentPolicyType.isTargetRefBased?{label:"Target ref",key:"targetRef"}:void 0,{label:"Actions",key:"actions",hideLabel:!0}].filter(e(O)),"page-number":t.pageNumber,"page-size":t.pageSize,total:(p=t.policyCollection)==null?void 0:p.total,items:(_=t.policyCollection)==null?void 0:_.items,error:t.policyError,onChange:u[0]||(u[0]=i=>y("change",i))},{name:o(({rowValue:i})=>[a(k,{to:{name:"policy-detail-view",params:{mesh:e(g).params.mesh,policyPath:t.currentPolicyType.path,policy:i}}},{default:o(()=>[s(l(i),1)]),_:2},1032,["to"])]),targetRef:o(({row:i})=>[t.currentPolicyType.isTargetRefBased?(n(),m(e(v),{key:0,appearance:"neutral"},{default:o(()=>[s(l(i.spec.targetRef.kind),1),i.spec.targetRef.name?(n(),h("span",ae,[s(":"),r("b",null,l(i.spec.targetRef.name),1)])):P("",!0)]),_:2},1024)):(n(),h(L,{key:1},[s(l(e(c)("common.detail.none")),1)],64))]),actions:o(({row:i})=>[a(e(N),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:o(()=>[a(e(V),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:o(()=>[a(e(A),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:o(()=>[a(e(S),{item:{to:{name:"policy-detail-view",params:{mesh:e(g).params.mesh,policyPath:t.currentPolicyType.path,policy:i.name}},label:e(c)("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:1},8,["empty-state-title","empty-state-message","headers","page-number","page-size","total","items","error"])]}),_:1})])])])}}});const ne=R(ie,[["__scopeId","data-v-92df6b96"]]),de=C({__name:"PolicyListView",props:{page:{},size:{}},setup(f){const y=f,{t}=T();return(c,g)=>(n(),m(G,{name:"policies-list-view"},{default:o(({route:d})=>[a(F,null,{title:o(()=>[r("h2",null,[a(j,{title:e(t)("policies.routes.items.title"),render:!0},null,8,["title"])])]),default:o(()=>[s(),a(z,{src:"/*/policy-types"},{default:o(({data:u,error:k})=>[k?(n(),m(K,{key:0,error:k},null,8,["error"])):u===void 0?(n(),m(Y,{key:1})):u.policies.length===0?(n(),m(D,{key:2})):(n(),m(z,{key:3,src:`/meshes/${d.params.mesh}/policy-path/${d.params.policyPath}?page=${y.page}&size=${y.size}`},{default:o(({data:p,error:_})=>[a(z,{src:`/mesh-insights/${d.params.mesh}`},{default:o(({data:i})=>[a(ne,{"page-number":y.page,"page-size":y.size,"current-policy-type":u.policies.find(b=>b.path===d.params.policyPath)??u.policies[0],"policy-types":u.policies,"mesh-insight":i,"policy-collection":p,"policy-error":_,onChange:d.update},null,8,["page-number","page-size","current-policy-type","policy-types","mesh-insight","policy-collection","policy-error","onChange"])]),_:2},1032,["src"])]),_:2},1032,["src"]))]),_:2},1024)]),_:2},1024)]),_:1}))}});export{de as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-0e10249d.js b/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-f6914cdb.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-0e10249d.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-f6914cdb.js index 300d84ea2473..3cd38ac1dac9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-0e10249d.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-f6914cdb.js @@ -1 +1 @@ -import{d as Q,o as e,e as t,a as m,b as l,v as p,g as n,z,t as v}from"./index-c92949c1.js";import{f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAVFBMVEXa2tra2tra2tra2tra2tra2tr////a2toAfd6izPLvzPnRfvDYteSKr86zas0Aar4AhODY6vr3+Prx8v2Kv+9aqOk3muUOj+N5t+211vXhqfW01fXvn55GAAAABnRSTlMC9s/Hbhsvz/I3AAABVklEQVRo3u3b3Y6CMBCG4SJYhnV/KD+K7v3f57bN7AFJTcDUmZB+74lH5EmMA5hmjK+pq1awqm5M6HxqxTudPSzssmxM06rUmDp8DFawIYi1qYRdlisTeCtcMAGnAgwYMGDAgJ8GGPDB4B8frepnl9cZH5d1374E7GmX1WVuA0xzTvixA+5zwpc0/OXrVgU5N/yx6tMHGDBgwIABvxmeiBZhmF3fPMjDFLuOSjDdnBJMvVOAb1G+y8PjlUKdOGyHOcpLJniiDfEVC/FYZYA3unxFx2OVAd7sTjZ073msRGB2Yy7KvcsC2z05Hitx2P6PVTEwf9W/h/5xvTBOB76ByN8ydzRRzofELln1schjVNCrTxyjsl5vtV7ol7L+tAEGDLhMWOAw5ADHPxIHXmpHfAWepgJOBBgwYMCAAT8NMGDAgJOw2hKO2tqR2qKV1mqZ3jKd2vrgH/W3idgykdWgAAAAAElFTkSuQmCC",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAH90lEQVRoBdVaC4xU1Rn+zr2zu8PyEBGoKMFVK0KLFXyiVKS2FFGIhhT7Smq1aQXbuMQHCwRQiBWVUl7CaiuxGoGosSQ0tJuU4qNrpQEfq0AReQisLKK7iCIsO3fO3+8/wx1mdgdmlp3srCdhz8y9597zff/7P4wBhxw50jfW2Pi4ERkhQB+91lGHAerEmFeLotHJprS01ij4oLGxRkR6dFTQmXAZYxoi0eilpqmhYQVEfpppUYe/ZsxKE6uv39fRzeZkglRzMk319cT/9R1eVuixAPazzyFBPG2p/fgA7M6PAd4v5MhKwB46DDnQAPvRPiCFhFiBNB5LXC8giawETPeuQHER0BRDnCRCTfjn9oLpVAJRDSm5ApHITiDiwy87J0lCwToSngfvvD4FJ5GVgLPvXEl8/mW7u0ProhB9QM1IzUnNyqNmDMkhbmEJ3uvWGSiKtCuJrBqQo3TUTw8C1gLNNCF79yfA+jSns85od/C6eVYC9uAXEBKwu+vSSDgHpuQLPbKakMRikI/qXLRR0Oq4oAO3GBpin6uC/Oc94H+7IWd0gbmoL3Db92GGXdJieb4uZCXgNjoeKjVkZiIhH9bCTF4KbK+FML+71M4ZnnHfzcir4M24E+jSKV+4k+/JjYAub06iHzVB22chCNw6FbKdWbmYDjzvdzBXfQs41gS89g7s4pcgX34FXPJN+IvvyzuJDLaQJJf+gdHFRR3OzrHDkGko6vn3AL27JzL1C2vpzIxM6tTjRsCsmAXDpIfNOxCUzwO+Opr+3jZ+y10D4UaqCQ2ZmqFTQ+YuJrhfzYHUHwKuGQRv4SSgpDjx1H6WIhMfha37DBh0ISIL7wU658ecWk8gJJJpVhK/fvQEifnlSRLySYKE7K8Hvn0BIgvyQyJ3E8oEuPm181ly/HkK0Ks75L+bIXOXJ1eYb/SAVzkFpk8vyJZdCO6dnxdzyi8BwjUkYZ6qcKHW/q0aONKYTmLpZJhzejLUksR9C9pMIu8EFK3pSYeO0v41QtFnUodqwn9iMnD2WRCSiD2wsE0k8k+AEreTaB4sQTCkP8CE1nyEJFQTsmUngj+eMLXma7N9zzsB2bQT+k+TGC5kJj7JML15CDLsUqqLitpVm1ilRWIry5O8E9Ak5s25m0mOWfjldbCVf81IIb6mGvblf5GAgTd2OOyGzTj2s6k4Nv5+2I1bMj6T6WJ+w2jKDvLKW4hPr3QFoLl9DPwJ41Lu8uPRRgQVi2CZ4FzU+oLZOqC/aPnBjF784ER4lzOjZxn+jIqKh7Ksye02VS/Tn3JZ2GinptHognMhr70N1HzILi6Ad8VA2GdWszxvgDfgfHgjLke8Zhuwh2W5WPjjWPhdXEbn3ol49Tvw+p/HiMUsfoqRHw1oQzNlKVTq6NkN/qrHAVauOuTVtxDMJDECNN+5iP6xA0Ip+9PugD9yqNNEfMmLQN/e8H9yI9cJmiY+DKu9RrdSRJfNBkpPnrXbTiAVPDf0lzwADCxz4MM/qoXgwSdpTjzJIHgtnxyJqXfC/8HV4TI3B4tWIKiqhkSLUDLzbniDL0673/xL25xYzYaSx7qNQNdO6eApSflgt9vPXH8Z/NkTYPr3Q2TWBHijrnHX44tXpuEJFi134DWH5AJeHz59Agq+YgmE4EUlzwyblDzBxx/5C+J3zYGtfteB9IZfhsjTM2A6RxF/hYR189HfdbP+CRYuR7zqDSbAIhTPJMkskg8fPD0C7L5kaiWsgu/aErwleGGY1LLadCkN93Jz8PzfXbTxaP+RCT9KXCN4ZzYlCp7RZ/CAtGdO9aX1BJoCyLQnIW+8D9ODDluZInnupOAtwUtpCfy55TCDmY1ThjegzHVs8Q2bYLfvTUj+H9UwNBsXOlsBXl/bOidubII8tAzy9lZIpyi8ub91dh3ik4efQXzNvxk1ovDnTWoB3q1jOI3N/hPsmzU85WAHx+gkKvlZ6rC5Sz7cM3cNaI0zaxmwdTcsy2VvwT1p4O3vFTzNhiHP/0NLyYcbKuiimb+Bdy3LCB7VtAW8vjM3DRxmG/jYctYs7HspXUy/Habf2UlM9rHnICydNYP68wh+yKlDn3tQNTH3Wfijh52W5MPNsxPQ0+n5LwD72A4yguD+n7PHZT1/fMSfeBGympJng+8/MjE38OHDeZhphKcY2rgvWQUcYp3CGt+UjwdYz4fDPr0aWMuQyP7Wn0at5CL58OE8zScnoM35sjX8H0x2VDxhMHfd4oqucF/7fBXA0kFYMvjlP4a5MnvhFT6bzzkzgQMHISvXwrCb8s7sytOGMQDncMhL64DX33Xp3v/lGJihg8Jb7T63JFBXD1n1OsMb20F2U/KLH7Ko6pIE5py1miGQp9Nm/CiY6wYn7xXiQxoBqf0U3j83uCNzq6dst91A8DwyD0fVesibmxJHJTdeDe/6IeGdgs1JAnqAa9ZvgejJG4/RzbjhaYdPWvNg41ZKPgLzvSEwN1xRMNCpGzsCsmMf8N52l1S01jVjr03E++MrRU2mZgeMauXKgTAj00vg1Be292cPH+xtMDxV1ipR7d7cel0aeKynyWza5Qoz4bGgGdVxwLOtqPPMtj2eZldhkWbGDqN9F50QIk1Gtu11ZoMytok3Jer4EwsK+0l/9OFFxNxhDh+NmdFD0w9rtY+lX+gBrvQ+E2YMyXWgoT/2cL9YUUzNf24j79Pe93zizmiEJYK5mT7RQYaaTerPbf4PGwFZsK8ONooAAAAASUVORK5CYII=",c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEj0lEQVRoBe1aS28TVxT+7ngydhwnPGISTBKHEB6iUtOWHTvWqCtKqQhISC2vBbCpRDf9BUgsgAWbdlGppWqlSl1UXfMLCmXRqgXUxmCclOCWxI4Tv4Zz7s00BntmLh4rTCSfxJ4755458333fHfuTTQCZFOHTo+ijCs2cAi2nWJfaE2InABuw8Lle7e/eCwYvL2CXwF7a2hBtwQm8iKKdwwe+Y0HnhnRgBN2Q8qmJcPwOxm7EXrNe40jzVfDq38j9HUJvOkqdSvQrUDAEeiIhGaPH8bsyfe1oWQuTuPxhePa8V6BplenTl85tQ2l9A7YMUsnHMsTIyjtm9CK1QkKXIHC3nEI2l3RgqhzPzw/sB/g+A5ZYAKlPTsVFMnCH1Xx3f26XP2TUUQgAuXhJKr9fQqQRgVYPpUtA7IANvQq5sciEIHi7jHKb5OE9DQh5SOvoGs6pKNABJYn06tAaDQ1SLB82DoFnnO1TaA8NIhqIo7IQkFLDI58zPx/WvEMTsfaJlAiPbPF789oiWHxPTX6A3f/kPGdmQEBKlCaGJUE+oiANJ9JvEAEeOL23/ldHvVmjUrt9d1WBSrJLaiRfMzCEqzcU8pPcDzmAMunSk8f699FxP7KqngvVK/R19ZKvDy+Qy5cvQ8z8la2xuhzII8+m9foF9+axOz0YRm3/dbP6PvtoWy7fZm1iIV6tAd1i4+W3BLUrR7Y1Jb+1T7eKqg41ccajj94JPPy4DskaoleZM8cRYmeUGyO1hm0Q6DRz5XMnj2KpV1jTcSYyOTnNzjc1Uw1eCwBpQIFhNWqfvhKCZDPZbCQoGK5eVhz82uJKYjBPDp/DFwhBswZnEcmT3YlnzV/jRbBzKVplFNDTeDXEnu3TLNeBpb44x3o20vksh8fQYU2d1GaF+nr3yBCc6SVOaQyl05gxYm/9rWMf1VCra5v9LU1BxoT/N+mCpSHB2HNzmP05neu4J14ltZKKqnIroLnPta8n2ycHHzsHAGqgPXPM4x8+QOBLzXeo6ntSMsiGaYbwDcFajg6QiA6k0M9EQM/NSJFb/CMqe/PDD0QTKrU976V8uMg3j74ifOg8IsNZX9bC1mYmHQJvOlqBJ7EcUPgw8EELFq5vn1WQKHmPaX6IwIXhzdJ3jfmnmPRJ95vgAJJqJfAf0Tgx3pMpGn7cW5oExIE0M0Y/GepzdgT65EfbrPvVZuKW7g6vlV+uO1lYurgWTtmGHIEo7QYxYhSlM6jlJf9UT6nNvtiBFj5+SjUNeRbrNWpLTBmRSiOc6h8bjfOlquya8TyEQDdN1+t4dOZvFsqXsjU3ob/rqVfMv5iGaijbdORO2ihUlshiqdu5RZ4Uqnix3wRBsWcSiawj/8/xAEqGSd8ye4vV8DS4e3EheEBWYmXAl7zJJTrAMvm1LaEpPLV0wLu8V7NxUJJwAVrS3egSdwy4zo7uwTWecCbbtetQNOQrLPDoOd1bp3v2bnbEXZaN+nFiQ1qjJ3WfFymZdN9rQ4tOcJM2CNzf/+ysH33gVuiLlIkpyTh7Q8tZgbGr9sI8RO9qfIBv27zAiEVYZQrGIvuAAAAAElFTkSuQmCC",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFt0lEQVRoBe1aa2xTVRz/3d7bBytdXddtbIN1sId7IG4yHhGICxluMohOAkGChhiMih/8IiSERImRaBD9YGIkGg0xypwo8YkajGyikxqemziyDbbhBoyN7kHLStfb6zm3u01v1zvaritrwn9Zz+Pec87v//j9z2lzGBBZYHpyttMt7IWAcgFCOu2brsKAuQoG9TqO2dFkO9zNjIE/JwiCabqCDoaLYRgbUeJB1qgu2E/ALw720jTvm8ELSOdo2EhAy6vKpKpiWf/zSdmzUMbIBgQ0IpnPN4ZgV033mA/QV9ak2Jk8wxOCrDfOGqo4wzsObtwrwMWahD4CjtlysuvHvQfukXgcq2LcEfchxPkbTIlQgcTzHzOV9VDwxL0HYkLiIn0qNqQVoyDBjMN9/+Kr3hZ4yF80ZEoVeNiYRYAXYb4+TcQ6KnigZlS44OjD25cb0eUcnLQOUVeAAlxlysH61PmYo0sUAbbeuoG63vM4MXwZm2YtwMa0B+Ahynx+rRm115rAkyNxpMI8t/6NoKMjIW4Cq8YnhY/DrNaLeKzDPfiytxnn7L0yfLkzkvCKZQVo2T4ygH1df5DSJnsnsKFE6KiSOJHViOA7SGhsbfkOuy7+Og48BUZBv3Thexy4ehYW4qX3C9ZgS3pJIOaQ2lELoXlJGWB5Hh/kVOH4UBf6k41ovdGNo5dOTQjEojNiZ/Yjojd2tB/F6ZtXJnw/8OGkPVCanovd5c9g76qtMOuN4vxqqGBzDuP5smq8Vv400vT3Ba7ra3c5h3Bs4JLY1rOybcn3zkSVSSmwMCMPu1ZsQq4pEz+2/Y2OQW+scwyL2uZj2Nd4CFnGVLxT+SJW5yl/7XZ5vClVzYSvgGyEElGCEZr8vAGDJkE0zusNn5Jw6YFWxYptTuW1y4nuFvxzvRPPllaS/ypkJprx0akj4wzqJhmJCsswsmeh4AnbA2pwWKbOx079Wrg9vLigATps1C0FJ3jtwZFUKondNYL3rN+IihSnZEvdspIXvPPQFByuyDwQzNKBE27Xr4ZJNRNnRzt9CrgYD7JYM+7nvL+JccQ7geLi3ZA8E/iMbnBU/BWn7VDwhK1ykkqPQ04rPnM2+hTwEAXedfyEi+7rsPOjyCb5vTI5h2LwCfUWq2BhXvBuRSzhTrgStgI8sZa080khxJHs4Sb76ZBwC3s6GnDT7cL2rOV4M6cCKWM8cXvcYMc44g/SwGlRYpgldmnGuOP//E51xe/ESu7jySGMI2mSytBth1hWzC1Fu60HDpcTS/hivNrWgOq0HKwx5+Pjghp8eOUkTl5pQx7JVpKka2diXUoRHkvOF8lPw6hjRPlspERodmHxyt3SpP5lZ3vwDaVcU4hOTx+6+BsYdNpBSVqZW4aKeQ/hmt2GW3YnEqDFFwNn0ESOEKWGdPFsZOQZ7G/5DSZWi22zF+HlOUtRSE6pThJa9IS6p+P3CY8T2bkZ/vB89bB34s26ZSjiMvDt7dOwjl4UJ0qbacK2RWtRnGLBn/+dx4HTv8AljIpK9Qz2YzGXhJqUAtBYl4h63eXA1wT4kf42jHhGfYDCrYStAM3/yzX5qNaUoJPvQ91tKzQkqCxsMpKyTNi8oIIA5UnGYaHjNOi+2Ye3jtfBTFLsC5llUBEiU+D1to5JnUIlRcNWQBqYTFLpBt0SzGVTCHwWAx4H6px/waZ1YkvJo9CrdWR3tpLYb5WGTEkpU0CJKEqEpohKOQv5ZHDO3UXoLeWn6GANBY9sI4tk2TME+N0UmQfuJpBI1w57I4t0oakaF/cKKO7EoVoskOBKxJPmC/d9aZxSGfceuEdiJdfGqj/uQ0i2kd2JgNSq0SZhJPP5j1GJdw9i5e8or0OxM/mJNQfJVYOnojx3TKYj9yVqVfTWB704EZMVo7jI2GWPHWzvSMtwpr7oIL04QVxiJmsYorhO1KcSw4ZhfiCGX0ev2/wPquz9nGykU2YAAAAASUVORK5CYII=",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB5CAYAAADyOOV3AAAFOklEQVR4Ae2dP2tUQRTFp7S385MofgRFiGBhKr9GuqBiI9iktwosCAnRLo0g8Q+ojSaNBomumESTIAqSLiPTTc4k7+bmztudu3sCAztv7p137/nNebtuREMIIXz9eXBluLO/NNzZe8sxCRrsL23tHlxObMP33b3ZzeHO0edv25FjcjRITBPbsPXj12+CnRywOcvENtC9kwk3gU5sQ048vf7775DDsQbIswAc+eNaAQJ2jU8unoBljVxHELBrfHLxBCxr5DqCgF3jk4snYFkj1xEE7BqfXDwByxq5jiBg1/jk4glY1sh1BAG7xicXT8CyRq4jCNg1Prl4ApY1ch1BwK7xycUTsKyR6wgCdo1PLp6AZY1cRxCwa3xy8QQsa+Q6goBd45OLJ2BZI9cRBOwan1w8AcsauY4gYNf45OIJWNbIdQQBu8YnF0/AskauIwjYNT65eAKWNXIdUQD+c2sm5iPemY2mIcnD/bsVMuqTs0yvQ7wQYtXRXb79XtxfpSEB4wH3foCgHwIGQSS+5qeddAOsxzgPOwsLMR9xsBhNQ2qA+3crZNQnZ5le89/o6Jbb3WrxKRovuOuIBR9TAHnSwcfk8T8hYP8MOzsg4E55/C8SsH+GnR0QcKc8/hcJ2D/Dzg4IuFMe/4sE7J9hZwcE3CmP/8WpAzz7cCnm48bdQaw58r3T63H/TB3gcG0+jnIQ8IgVGCXcdK9x/9DBPTuagEesADr43uBFrDlwf217+B5unV+fX4z5mPjfJiGA95vbsebA/bWAMb/6HJ/Z2gJbj0fBasJNe+H+Wj0wv/qcgG2ORiAErFXAGI8AWnfwo5U30TLmHq/GfPA92PiejAdIex4x33oAl9c+xnwQMAFrz2Rb8bUdgg7D/bXdYz7ur53n7k2v6WA6WHsm24qv7RB0FO6v7R7zcX/tnA42OhYFR0AErFXAGI8AEJB1jvtry8V8az2Fg/PvLdNr63ehmK9tuHZ8bQERAO6vrR/zcX/tvACMN6g91zZcOx770QomxeP+2voxX7qftE7A0/YejCeo9lx7omvHYz+SA7TruL+2fszX3h/jCwfn31um15bvQVMuFqxtGN/DrXOsBwWxznF/bb+Yb62nAIwXrDfAgq0N437WubU/zMd6rP3i/to58gx4QbshxtduGPezzrFe6xzrIWBBARSs9twKFPOxPqG9YhnzcX/tHA3bvIOtnwkwXyuYFI+ACoLCBcyX7ietuwMsNTTudQQk8CyWMd/aDwFP25+Dkbj1BOGJLI6scAHzrfX0nY/1Cu0Vy5hvrRd5Nv8ebG2473wEVBAULmC+tV4C5iO6rb9Gaj3RfeejAwXDFsuYb62XDqaD6WCNi9CBhUWFC5ivufdJsXQwHUwHn+SM066hAwXDFsuYf9p9znqdDqaD6zpY+/vc2if6rCf/vHFY77j7HbmDUQDt/LzCjypP248Ub62bgHt+REsApXUCrgzIKqgETLturad3B+PvX61za8N951v7w3xrvb0DthbIfNuHXAJu7BFf+0ATMAHbHhG1TyT30/Ggg+lg3Ymhw9rSiw6mg9s6kXxC6HjQwXSw7sTQYW3pRQfTwW2dSD4hdDzoYDpYd2LosLb0ooPp4LZOJJ8QOh50MB2sOzF0WFt60cF0cFsnkk8IHQ86mA7WnRg6rC296OBpd/Dqu0+Rw68GhYNXXq4f4UXOj//fQ171SGzD8tr60GsDrFs6iOvDcPP+k5mnrzYOKZYklq/1xDSxDWHmwcWr84NLz15v3H7+4csch38NEsvENLH9DwLs1co+Fv2iAAAAAElFTkSuQmCC",g=""+new URL("Retry-8b2ec896.png",import.meta.url).href,C=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGRklEQVRoBdVZ629URRQ/c2/b7e62Fii2FBqsSOQZpSEBQkJiSGtMfKFRv0gMSUU+mJj4xcTEhPDJxD9BbaIJflETUfETDZoQNYgiREtBHsHYF9At0H10n/d6frM73Xsvey+zW+22J7l7zsyZOa+ZOffcWUElsG1bTMfjr3NzgGzawrhF8RYJTpCgYbZlcEVr68dCCBt2Cfwkk8mudME6Sra9F+1FD0KcbDaN/dFodMJA5JeU8YguBxo2w3YRm5k5yFvmw0Uf9UoGCnrD4P6BSrwl0jcgYndn4mzsYjuwuvFLYAWWqvFwsqVB11W/cZZl0e9/XqKr10cplc74DavYH2kO0SM93dS7dQMZBmJZPczbARj/x8Wr1WvmGXBYzd3+2KaaZMzbAUQe0LdnB3V3dVRlxOjEDRo6dUauXq0O1LZuDjPVtqnWeIjo7uqUkpQMh1htct4OaGv6nwYueQe0zsDgF9/5xs/05VTHCNIx8PLTvsK0HECKQ7qsCmJ3iD47RmL4LznN3vIo0av7iNqXVSXmfulVy4GmBpPSWYv2P99PoaYmlwGffH7c1ZYNNl688z5RIjnHEz/+SnR+hOwP3q3ohDfKmWyWjn59gqA7CLTOQDQaljLiidkgWWUeR95p/BwDDoGnAUqX0u03RcuB9rY2OX/85pSfHFe/2jauzlIjiOccr3Qp3U6ek9ZyQOX4kWt/cykuP4ScMv5zGjqgC6B0+ynRcmAtv2Ej4RDvilk6N3LZT9Zcvzywcy03EcRTI6EDuqATuoNAywHTNGjXtq1Sztnhy3Ty57M0OnnLv3hDtmmJ3qsXfeBVALyNIROyoQMAndAdBPge0N4TF65cp9PnLpDl2EZmiT7wyjNuPZppVGWxgpCf51KGwfTObZtp8/oet8wKLa00quZB4OrOlQRHxidjvAKzZOXyiu3GyPdvHeCvVT1o5HQZaQ7T6lXt0vBlrS1aE6tyABIheHdvcTuhrSIIej7w2gtP1TQ9eIPVJHJhJ2mtQFCdEvye1HcmSIf3Le2UquVALbXQeOo2HfntS/pp4pLUt7trAx3e/hKtjix36r8vXZdaCMY/8c0RupMp10JfXfuFvh8bph+eO1zRCW+U61oLIfJO41WY0QeeDtStFsoUcnR67CKFbIOa+VFY0afHLlGu4JN6HZ7VpRZK5TI0NjNFhjDI5MeJQRcfQf/wmGyAE3WphRLZWZpMTvOLy6bejh6+5xHyrqeM2Snu6+14mEdYNJGIUTafc8S8TC54LZQRebqVust39Ww0R/rQpiepLRRlutguYiH7Dm3ql2NQjkzyYbdK7+q61UJ5ylHOKNCzfXvKIWTqVjpOH10covNTxbL48ZUP0cGNffRgc6tr3PETpyhsNZHNjitYsFoomU5RhiNpyMijGMOD6kdQZ7iN3ut90dHHpIOPFsYK/t7GCkaMMEUXqhbatW0LxWbjfBBz9O3QKTakuFWkTdLIIlU0GHS50vTSiDbY/f07qD3cSiGzUU3WwlpvYqekAt9OTKcTlLcKpaxSXHrs/VpAzcP5uZ1O0nI+O6EGfSeqcgD5+25mVn5WIk1isygMQ8obqLIrxc1V3GQYgfFqHuQAZjibPcBY1wntsMF4CId6lVVMXv5IKMROCIrFbst+0IrvxYoHjGeK5wBDhhoLp5CSsT11QGsF0pyv8ZLCMvPfmy65a9esoit8Q32G73xqAawAZKitpGQks6yvSVCjGWxiMJelpTkScMCrQCnavH6d5I2O3+TLr6zqrow9e6y5sYm613TQxnU99wQGAlKsN8I4yInAb2IYLl/57qBXNk6n13sIvHM8Dip2mDOTnxNYgQQ/rg9Q6EFRlretmv/6UcpdWAVCYRez1KjAy3DGE1yGNIh7Pp8SDbyth/lc7lSyYHyaDywuG/y2jRq7kDhb4MtlvmJpcJ5Bth0rMMiPdAD1CaKOIHgPK4zFIUaxBgxQNHBtADmYq8Ku6Mry8O4RhikzV0nfoMDf9dPxxBBfn+8tIOwMarpXfGlS3RFSrmkYJ1e0tvTxigh7aibzJoncp/wvwI66W6djgDDO5A16G7aLGwm7k89HN+YZVmofR5/v/ux1fP2GDHYfmO8aYa2VDKhSNLAHDJFiu65x7I9ZhnmsyG0c/xfNI5E629R1xgAAAABJRU5ErkJggg==",d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGKUlEQVRoBc2aX2xTVRzHv/fe/tnf7h+bG24y4yBZJAETTBhGQ5BKiMYXnoY8EEgw0RDBGYJvxAeNcyLEFyUGjaI88WIMREGsJmSgD0CiWXSDQFbWSV3XtVvXru29/n6n3HE7u97b3gv2JLc9vT33dz6/f+ece+6VQGUqoXWqanoQ0DZDQwefK1TajnrE6btvLhT6++GckxACpIAsuw+11EhBF8Nr2fR1gm82JZBU0yYPvIEwsNZPzNuIfZ3rnuXN4YlMYgUk6YEzWulAI4NrFDUuETZWrmAFZM1iy4fVTNssF4v5pRiSxApUQBjpYBROsl639E0hJCuV5YWSFJC4dSUkssHalAPWi8ThUxk5vAgtheMp05iQCbrWoyCSytE3ezXMLWShml652E/Rii7freQCIp1VLcs3VYCFN9a4IS8ZPlVNQzSRtq2EkF9N8rliKCpZJzpvLt80B9jyDP/jWAxPHftDHFznc/yf3SLkE/zc6Dnc+rBLHFxnhazIN/VAM1ufhDF8KJ4WvB31blw98CTYShHygp2iy2f4bCwoRCm+TnQPjCMTD+H20EpIbCc6+DuvThls6gE7cE5cS5FKU9X9scOYdvyfqQfqvQq8bkWE0FvfjQumoZe68HyPD7FUFgvprC3OOiWDquoaEULhb/cJWa0vn0Dt6u1Ikew49VGsmCrAuVUoiSNJFTvPxnD8uWq0VOUnYLEOjf+ps2HMfrULq147A6U2fznmWBLzUMmjDVuDhfLBlt95dgaXQmn0fz+HqaTRsUbE5etqPIzox36kRgO4/ekOJOcTi/K5LysjEEs39cByCBGC7v8hjtGoitUNMk5vq0ezRU8I+ON+ZMMjUFb2ovH185DrWpfrquj5spOYYU+/UI81TRLG4uSR8zGwUmaF4aeP+pGZJPh2e/DcV9kK8MWsxDd+UqJRwmgsg1cuzJASy69W1VgYkSGCD43AxfD7y7c898/FlgIsoLlKxtdbfeQJmTxBSlwsrATDTw3eg+ewecM+vCMKLCqxpUHkwg3yxMBwDB4aenmS4qNOzmDmk13ITIzA3dGLpoMEX19ezHN/xlJ2EhuF6HUOn4HLUXzpb0UTzR/GkolHaJmwA75XTzkGz/IdVYAFsuV9BH8hmMDB4Sk+hY/6WrC1swbJRAKzakkreHF9sQ/bObBUeJ07J5LhQ4msOHRFPFXVS5vb/u24AraJShTguAKp5LxA4LDpqFHEwXUus+nlh1jRoIwPR3MgG6VJamgXet45A5cvf20zTcuP3YEQPtiwAs1e5+zmmCSGv3vYj8T1AMaO0NqGEta4dtr98wQu/5PE7kuTdGtafIVZiiMc8QDD/32IJqngCDyP96L13fNQGvLHeYbeMzyJsVgaPXRDdHJTO3kif6gtBVxva9sDAn7Aj/QtmqS6CsNzZwx7sq8dPT4FY7MpUibkiCdsKcDwkwcI/jZZvrsXbe//1/K6pe4rsZKUcOHG3AL2XL5jW4myFchOhxHan7O86zGCHyT4xvywMcLrdfbE5xsfpTBy4SYpsffKHXCCl1ss5QDflfEOgb5vk5qfx839LyJxNQD3E73oOGYN3gg5TftKe38N4sbsAja21OCLTV2opVmci/P7QgX2bTIzEfw5sAMrjpyyZHkjvF5nJQ5fn8Bnz6xCkyd/iWF138nUA/pN/dS5c/hrX+6me82JE2jZvh3zcwnMafkd63BWv7209Kj3uhC4G8Xbv98Sl723thub2xqt3dT/JEGTiMG458J7MDIdfH7DtQl4HunAcFcXUsGg6MDb2Ym+8XExzju1L9R38Romk7k9pvYqN4a3rLckPy+JeZ+FC+8iclX/LU5W6IdrbSxVFE27N9lw2BhDiC/iZLNbWIaX3M1hYwwhq/JNc0DsCxVIYqv7NmYKLrfv5FgSM8DSYbSUYc5MAaP8mWxuPmhQFOe2160AONXm6V+uUQICvz273rJIe2Og5W6sNSznMW5lKSDGxNIGhopSoJwHiDLFHL17UBlFpgfpJT1MJ3ZymhSoDHyioEe44kmoZSB+6YPe+pAgRSxf8wAb8psAVj3AzMwu8ysrkuJeR+uH0/97OPGrDGYP0jnkiZWZmf1f1o7IN6awz1AAAAAASUVORK5CYII=",D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEs0lEQVRoBe1azWtUVxQ/781HkslHzQwpDfkQUUpdaHZtaUtTuhACYtC/wI22FHd+bMSlFNSdIhjcddFNKW0pZlfS0BayEdSFqAjRJMbGfBgTZ+JM8p7nd27ezMvkvsy7yUucAS+898479+P8zj3n3nvembGIy8xMttOhwiVy6RuX3HbwqrVYZE2SRUM2Jc5lMqlxaxX8Hdd109UKWofLsqxZVqLHxszXGngoBMzAbsNtdBrWBI+x29Xu8xtNJLDbGzWohbr3CrxrK8W3A4BtW9SYqqdEQg1fKCzT6+wSOY4bubjIFQD41g+ayLZL3hmrS1KSlZmbX4xciZKUiOYGMw/wfz/M0ldXnsgFGjzURV2sfRceF+3KhwPxCYdDQslhml+ImVq54KKlVwv6v7Pd9GFzXIA/f7Ui/T5qidE/Z3bT1MIyfXn5qfRBhb9/ptGmvv11dOLzFCVi0i3ULe560mVEBr/6lN4igW/+Nr5hRU+u8/TlfdlXqychr9QO8tQUTGcd+ul2TmT98EVK31nDtaamX1aWqukYxGpuaqB69nm4zfk/Xkizi0faqPfjFC29ydPCIoPUlH9H83T61gKlUzbdOt6qaaFnRa6AbhFDtOM4FRfxpzdmxNgj32X0aDXcyHchbJXYbTa1jTIa0502cgXUbLuBrqKZxCJrhffEgP2i2Kac2BYFyoWEfmc0pguyqhRwePusaQu4cW9bDW0z2hYLbDYWcmOmDkTRK6DbRsPGQuJC4SdfWm5bLDQ4sURdv07KBbpSLDT8f55c9oc0hxQmxciFCg7RtUdZ+v1ZnqbfOBIz+WMn0HePdhFCtpMjczSe4w6r9NixdprnffLA4CxzAlwlZlF/d530CXszUuDq4yzdfLqkgh+eKMDwLzuhA+ImAEIc5LCfl3YaNFajtNXZ1N+epFN7w8dBGNNIgd+m8gJgoKeFvs4k0H9daeZEDcrAZ61iBY/GcxfX3T8UPkxAn0rFKBb6ZHhW3OZBbzAI3SIGiDCxUCWwunojCzichPHZXzeefHFtOhbSjrgx00gBHDRhCgK6oLA5TH+TNkYKYAFWWzFSgOSory4VjBRQFgjnRjulptGxJ8FWiA9u7ET4tEy3NssFGrytlO9fLNLMynoXNlOAW1daB942iu/iGKdScIFWuaLNK/FnNk/fTr4kPP3FSIG2es7Gs9P99brgH2MN7eWFBl/lqOv+hFygK8VCawYJeIEFYAm/NYwOsh/ncnR9PldMo3hhgHpCqkWjB7uoPRkX4OMFlRfq5ETP2P4Omswv0557Y3IYKoywiAolpDe/+tNQHi1pm7KpznDcdDHdaBZKnNnVwPGMS78s5mlqhUMGBDUiX7mGCFKkwld+R/PVSwDzrQSf3ZPfMaQKRvCCrBEz+Mm/jaHLumJkgXW9NQwvLwS3OTmByJPjoo409bU0bJgX0gy1htX5RI0F5uFUUmYfVjDaRteMGPCCLDQSuQA81tJRbIVYCHVbKZ7bQAGvRK7AlvJCHirN0z/r/urIXcg/+E7QZWt7J0RGK+O9AtHOp/loHKHwfw9qtAC7zefDUI3i5wOOhmr/zx74ywr+9cE5nZ9rwZ2AEViBGdjfAhPs4mowdpbkAAAAAElFTkSuQmCC",u=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,Y={class:"policy-type-tag"},G=["src"],E=Q({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(T){const A=T,s={CircuitBreaker:B,FaultInjection:a,HealthCheck:c,MeshAccessLog:o,MeshCircuitBreaker:B,MeshFaultInjection:a,MeshHealthCheck:c,MeshProxyPatch:r,MeshRateLimit:i,MeshRetry:g,MeshTimeout:C,MeshTrace:D,MeshTrafficPermission:f,ProxyTemplate:r,RateLimit:i,Retry:g,Timeout:C,TrafficLog:o,TrafficPermission:f,TrafficRoute:d,TrafficTrace:D,VirtualOutbound:u};return(h,O)=>(e(),t("span",Y,[s[A.policyType]?(e(),t("img",{key:0,class:"policy-type-tag-icon",src:s[A.policyType],alt:""},null,8,G)):(e(),m(l(p),{key:1,icon:"brain",size:"24"})),n(),z(h.$slots,"default",{},()=>[n(v(A.policyType),1)],!0)]))}});const M=w(E,[["__scopeId","data-v-0e1cab5b"]]);export{M as P}; +import{d as Q,o as e,e as t,a as m,b as l,v as p,g as n,z,t as v}from"./index-3bdd7748.js";import{f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAVFBMVEXa2tra2tra2tra2tra2tra2tr////a2toAfd6izPLvzPnRfvDYteSKr86zas0Aar4AhODY6vr3+Prx8v2Kv+9aqOk3muUOj+N5t+211vXhqfW01fXvn55GAAAABnRSTlMC9s/Hbhsvz/I3AAABVklEQVRo3u3b3Y6CMBCG4SJYhnV/KD+K7v3f57bN7AFJTcDUmZB+74lH5EmMA5hmjK+pq1awqm5M6HxqxTudPSzssmxM06rUmDp8DFawIYi1qYRdlisTeCtcMAGnAgwYMGDAgJ8GGPDB4B8frepnl9cZH5d1374E7GmX1WVuA0xzTvixA+5zwpc0/OXrVgU5N/yx6tMHGDBgwIABvxmeiBZhmF3fPMjDFLuOSjDdnBJMvVOAb1G+y8PjlUKdOGyHOcpLJniiDfEVC/FYZYA3unxFx2OVAd7sTjZ073msRGB2Yy7KvcsC2z05Hitx2P6PVTEwf9W/h/5xvTBOB76ByN8ydzRRzofELln1schjVNCrTxyjsl5vtV7ol7L+tAEGDLhMWOAw5ADHPxIHXmpHfAWepgJOBBgwYMCAAT8NMGDAgJOw2hKO2tqR2qKV1mqZ3jKd2vrgH/W3idgykdWgAAAAAElFTkSuQmCC",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAH90lEQVRoBdVaC4xU1Rn+zr2zu8PyEBGoKMFVK0KLFXyiVKS2FFGIhhT7Smq1aQXbuMQHCwRQiBWVUl7CaiuxGoGosSQ0tJuU4qNrpQEfq0AReQisLKK7iCIsO3fO3+8/wx1mdgdmlp3srCdhz8y9597zff/7P4wBhxw50jfW2Pi4ERkhQB+91lGHAerEmFeLotHJprS01ij4oLGxRkR6dFTQmXAZYxoi0eilpqmhYQVEfpppUYe/ZsxKE6uv39fRzeZkglRzMk319cT/9R1eVuixAPazzyFBPG2p/fgA7M6PAd4v5MhKwB46DDnQAPvRPiCFhFiBNB5LXC8giawETPeuQHER0BRDnCRCTfjn9oLpVAJRDSm5ApHITiDiwy87J0lCwToSngfvvD4FJ5GVgLPvXEl8/mW7u0ProhB9QM1IzUnNyqNmDMkhbmEJ3uvWGSiKtCuJrBqQo3TUTw8C1gLNNCF79yfA+jSns85od/C6eVYC9uAXEBKwu+vSSDgHpuQLPbKakMRikI/qXLRR0Oq4oAO3GBpin6uC/Oc94H+7IWd0gbmoL3Db92GGXdJieb4uZCXgNjoeKjVkZiIhH9bCTF4KbK+FML+71M4ZnnHfzcir4M24E+jSKV+4k+/JjYAub06iHzVB22chCNw6FbKdWbmYDjzvdzBXfQs41gS89g7s4pcgX34FXPJN+IvvyzuJDLaQJJf+gdHFRR3OzrHDkGko6vn3AL27JzL1C2vpzIxM6tTjRsCsmAXDpIfNOxCUzwO+Opr+3jZ+y10D4UaqCQ2ZmqFTQ+YuJrhfzYHUHwKuGQRv4SSgpDjx1H6WIhMfha37DBh0ISIL7wU658ecWk8gJJJpVhK/fvQEifnlSRLySYKE7K8Hvn0BIgvyQyJ3E8oEuPm181ly/HkK0Ks75L+bIXOXJ1eYb/SAVzkFpk8vyJZdCO6dnxdzyi8BwjUkYZ6qcKHW/q0aONKYTmLpZJhzejLUksR9C9pMIu8EFK3pSYeO0v41QtFnUodqwn9iMnD2WRCSiD2wsE0k8k+AEreTaB4sQTCkP8CE1nyEJFQTsmUngj+eMLXma7N9zzsB2bQT+k+TGC5kJj7JML15CDLsUqqLitpVm1ilRWIry5O8E9Ak5s25m0mOWfjldbCVf81IIb6mGvblf5GAgTd2OOyGzTj2s6k4Nv5+2I1bMj6T6WJ+w2jKDvLKW4hPr3QFoLl9DPwJ41Lu8uPRRgQVi2CZ4FzU+oLZOqC/aPnBjF784ER4lzOjZxn+jIqKh7Ksye02VS/Tn3JZ2GinptHognMhr70N1HzILi6Ad8VA2GdWszxvgDfgfHgjLke8Zhuwh2W5WPjjWPhdXEbn3ol49Tvw+p/HiMUsfoqRHw1oQzNlKVTq6NkN/qrHAVauOuTVtxDMJDECNN+5iP6xA0Ip+9PugD9yqNNEfMmLQN/e8H9yI9cJmiY+DKu9RrdSRJfNBkpPnrXbTiAVPDf0lzwADCxz4MM/qoXgwSdpTjzJIHgtnxyJqXfC/8HV4TI3B4tWIKiqhkSLUDLzbniDL0673/xL25xYzYaSx7qNQNdO6eApSflgt9vPXH8Z/NkTYPr3Q2TWBHijrnHX44tXpuEJFi134DWH5AJeHz59Agq+YgmE4EUlzwyblDzBxx/5C+J3zYGtfteB9IZfhsjTM2A6RxF/hYR189HfdbP+CRYuR7zqDSbAIhTPJMkskg8fPD0C7L5kaiWsgu/aErwleGGY1LLadCkN93Jz8PzfXbTxaP+RCT9KXCN4ZzYlCp7RZ/CAtGdO9aX1BJoCyLQnIW+8D9ODDluZInnupOAtwUtpCfy55TCDmY1ThjegzHVs8Q2bYLfvTUj+H9UwNBsXOlsBXl/bOidubII8tAzy9lZIpyi8ub91dh3ik4efQXzNvxk1ovDnTWoB3q1jOI3N/hPsmzU85WAHx+gkKvlZ6rC5Sz7cM3cNaI0zaxmwdTcsy2VvwT1p4O3vFTzNhiHP/0NLyYcbKuiimb+Bdy3LCB7VtAW8vjM3DRxmG/jYctYs7HspXUy/Habf2UlM9rHnICydNYP68wh+yKlDn3tQNTH3Wfijh52W5MPNsxPQ0+n5LwD72A4yguD+n7PHZT1/fMSfeBGympJng+8/MjE38OHDeZhphKcY2rgvWQUcYp3CGt+UjwdYz4fDPr0aWMuQyP7Wn0at5CL58OE8zScnoM35sjX8H0x2VDxhMHfd4oqucF/7fBXA0kFYMvjlP4a5MnvhFT6bzzkzgQMHISvXwrCb8s7sytOGMQDncMhL64DX33Xp3v/lGJihg8Jb7T63JFBXD1n1OsMb20F2U/KLH7Ko6pIE5py1miGQp9Nm/CiY6wYn7xXiQxoBqf0U3j83uCNzq6dst91A8DwyD0fVesibmxJHJTdeDe/6IeGdgs1JAnqAa9ZvgejJG4/RzbjhaYdPWvNg41ZKPgLzvSEwN1xRMNCpGzsCsmMf8N52l1S01jVjr03E++MrRU2mZgeMauXKgTAj00vg1Be292cPH+xtMDxV1ipR7d7cel0aeKynyWza5Qoz4bGgGdVxwLOtqPPMtj2eZldhkWbGDqN9F50QIk1Gtu11ZoMytok3Jer4EwsK+0l/9OFFxNxhDh+NmdFD0w9rtY+lX+gBrvQ+E2YMyXWgoT/2cL9YUUzNf24j79Pe93zizmiEJYK5mT7RQYaaTerPbf4PGwFZsK8ONooAAAAASUVORK5CYII=",c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEj0lEQVRoBe1aS28TVxT+7ngydhwnPGISTBKHEB6iUtOWHTvWqCtKqQhISC2vBbCpRDf9BUgsgAWbdlGppWqlSl1UXfMLCmXRqgXUxmCclOCWxI4Tv4Zz7s00BntmLh4rTCSfxJ4755458333fHfuTTQCZFOHTo+ijCs2cAi2nWJfaE2InABuw8Lle7e/eCwYvL2CXwF7a2hBtwQm8iKKdwwe+Y0HnhnRgBN2Q8qmJcPwOxm7EXrNe40jzVfDq38j9HUJvOkqdSvQrUDAEeiIhGaPH8bsyfe1oWQuTuPxhePa8V6BplenTl85tQ2l9A7YMUsnHMsTIyjtm9CK1QkKXIHC3nEI2l3RgqhzPzw/sB/g+A5ZYAKlPTsVFMnCH1Xx3f26XP2TUUQgAuXhJKr9fQqQRgVYPpUtA7IANvQq5sciEIHi7jHKb5OE9DQh5SOvoGs6pKNABJYn06tAaDQ1SLB82DoFnnO1TaA8NIhqIo7IQkFLDI58zPx/WvEMTsfaJlAiPbPF789oiWHxPTX6A3f/kPGdmQEBKlCaGJUE+oiANJ9JvEAEeOL23/ldHvVmjUrt9d1WBSrJLaiRfMzCEqzcU8pPcDzmAMunSk8f699FxP7KqngvVK/R19ZKvDy+Qy5cvQ8z8la2xuhzII8+m9foF9+axOz0YRm3/dbP6PvtoWy7fZm1iIV6tAd1i4+W3BLUrR7Y1Jb+1T7eKqg41ccajj94JPPy4DskaoleZM8cRYmeUGyO1hm0Q6DRz5XMnj2KpV1jTcSYyOTnNzjc1Uw1eCwBpQIFhNWqfvhKCZDPZbCQoGK5eVhz82uJKYjBPDp/DFwhBswZnEcmT3YlnzV/jRbBzKVplFNDTeDXEnu3TLNeBpb44x3o20vksh8fQYU2d1GaF+nr3yBCc6SVOaQyl05gxYm/9rWMf1VCra5v9LU1BxoT/N+mCpSHB2HNzmP05neu4J14ltZKKqnIroLnPta8n2ycHHzsHAGqgPXPM4x8+QOBLzXeo6ntSMsiGaYbwDcFajg6QiA6k0M9EQM/NSJFb/CMqe/PDD0QTKrU976V8uMg3j74ifOg8IsNZX9bC1mYmHQJvOlqBJ7EcUPgw8EELFq5vn1WQKHmPaX6IwIXhzdJ3jfmnmPRJ95vgAJJqJfAf0Tgx3pMpGn7cW5oExIE0M0Y/GepzdgT65EfbrPvVZuKW7g6vlV+uO1lYurgWTtmGHIEo7QYxYhSlM6jlJf9UT6nNvtiBFj5+SjUNeRbrNWpLTBmRSiOc6h8bjfOlquya8TyEQDdN1+t4dOZvFsqXsjU3ob/rqVfMv5iGaijbdORO2ihUlshiqdu5RZ4Uqnix3wRBsWcSiawj/8/xAEqGSd8ye4vV8DS4e3EheEBWYmXAl7zJJTrAMvm1LaEpPLV0wLu8V7NxUJJwAVrS3egSdwy4zo7uwTWecCbbtetQNOQrLPDoOd1bp3v2bnbEXZaN+nFiQ1qjJ3WfFymZdN9rQ4tOcJM2CNzf/+ysH33gVuiLlIkpyTh7Q8tZgbGr9sI8RO9qfIBv27zAiEVYZQrGIvuAAAAAElFTkSuQmCC",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFt0lEQVRoBe1aa2xTVRz/3d7bBytdXddtbIN1sId7IG4yHhGICxluMohOAkGChhiMih/8IiSERImRaBD9YGIkGg0xypwo8YkajGyikxqemziyDbbhBoyN7kHLStfb6zm3u01v1zvaritrwn9Zz+Pec87v//j9z2lzGBBZYHpyttMt7IWAcgFCOu2brsKAuQoG9TqO2dFkO9zNjIE/JwiCabqCDoaLYRgbUeJB1qgu2E/ALw720jTvm8ELSOdo2EhAy6vKpKpiWf/zSdmzUMbIBgQ0IpnPN4ZgV033mA/QV9ak2Jk8wxOCrDfOGqo4wzsObtwrwMWahD4CjtlysuvHvQfukXgcq2LcEfchxPkbTIlQgcTzHzOV9VDwxL0HYkLiIn0qNqQVoyDBjMN9/+Kr3hZ4yF80ZEoVeNiYRYAXYb4+TcQ6KnigZlS44OjD25cb0eUcnLQOUVeAAlxlysH61PmYo0sUAbbeuoG63vM4MXwZm2YtwMa0B+Ahynx+rRm115rAkyNxpMI8t/6NoKMjIW4Cq8YnhY/DrNaLeKzDPfiytxnn7L0yfLkzkvCKZQVo2T4ygH1df5DSJnsnsKFE6KiSOJHViOA7SGhsbfkOuy7+Og48BUZBv3Thexy4ehYW4qX3C9ZgS3pJIOaQ2lELoXlJGWB5Hh/kVOH4UBf6k41ovdGNo5dOTQjEojNiZ/Yjojd2tB/F6ZtXJnw/8OGkPVCanovd5c9g76qtMOuN4vxqqGBzDuP5smq8Vv400vT3Ba7ra3c5h3Bs4JLY1rOybcn3zkSVSSmwMCMPu1ZsQq4pEz+2/Y2OQW+scwyL2uZj2Nd4CFnGVLxT+SJW5yl/7XZ5vClVzYSvgGyEElGCEZr8vAGDJkE0zusNn5Jw6YFWxYptTuW1y4nuFvxzvRPPllaS/ypkJprx0akj4wzqJhmJCsswsmeh4AnbA2pwWKbOx079Wrg9vLigATps1C0FJ3jtwZFUKondNYL3rN+IihSnZEvdspIXvPPQFByuyDwQzNKBE27Xr4ZJNRNnRzt9CrgYD7JYM+7nvL+JccQ7geLi3ZA8E/iMbnBU/BWn7VDwhK1ykkqPQ04rPnM2+hTwEAXedfyEi+7rsPOjyCb5vTI5h2LwCfUWq2BhXvBuRSzhTrgStgI8sZa080khxJHs4Sb76ZBwC3s6GnDT7cL2rOV4M6cCKWM8cXvcYMc44g/SwGlRYpgldmnGuOP//E51xe/ESu7jySGMI2mSytBth1hWzC1Fu60HDpcTS/hivNrWgOq0HKwx5+Pjghp8eOUkTl5pQx7JVpKka2diXUoRHkvOF8lPw6hjRPlspERodmHxyt3SpP5lZ3vwDaVcU4hOTx+6+BsYdNpBSVqZW4aKeQ/hmt2GW3YnEqDFFwNn0ESOEKWGdPFsZOQZ7G/5DSZWi22zF+HlOUtRSE6pThJa9IS6p+P3CY8T2bkZ/vB89bB34s26ZSjiMvDt7dOwjl4UJ0qbacK2RWtRnGLBn/+dx4HTv8AljIpK9Qz2YzGXhJqUAtBYl4h63eXA1wT4kf42jHhGfYDCrYStAM3/yzX5qNaUoJPvQ91tKzQkqCxsMpKyTNi8oIIA5UnGYaHjNOi+2Ye3jtfBTFLsC5llUBEiU+D1to5JnUIlRcNWQBqYTFLpBt0SzGVTCHwWAx4H6px/waZ1YkvJo9CrdWR3tpLYb5WGTEkpU0CJKEqEpohKOQv5ZHDO3UXoLeWn6GANBY9sI4tk2TME+N0UmQfuJpBI1w57I4t0oakaF/cKKO7EoVoskOBKxJPmC/d9aZxSGfceuEdiJdfGqj/uQ0i2kd2JgNSq0SZhJPP5j1GJdw9i5e8or0OxM/mJNQfJVYOnojx3TKYj9yVqVfTWB704EZMVo7jI2GWPHWzvSMtwpr7oIL04QVxiJmsYorhO1KcSw4ZhfiCGX0ev2/wPquz9nGykU2YAAAAASUVORK5CYII=",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB5CAYAAADyOOV3AAAFOklEQVR4Ae2dP2tUQRTFp7S385MofgRFiGBhKr9GuqBiI9iktwosCAnRLo0g8Q+ojSaNBomumESTIAqSLiPTTc4k7+bmztudu3sCAztv7p137/nNebtuREMIIXz9eXBluLO/NNzZe8sxCRrsL23tHlxObMP33b3ZzeHO0edv25FjcjRITBPbsPXj12+CnRywOcvENtC9kwk3gU5sQ048vf7775DDsQbIswAc+eNaAQJ2jU8unoBljVxHELBrfHLxBCxr5DqCgF3jk4snYFkj1xEE7BqfXDwByxq5jiBg1/jk4glY1sh1BAG7xicXT8CyRq4jCNg1Prl4ApY1ch1BwK7xycUTsKyR6wgCdo1PLp6AZY1cRxCwa3xy8QQsa+Q6goBd45OLJ2BZI9cRBOwan1w8AcsauY4gYNf45OIJWNbIdQQBu8YnF0/AskauIwjYNT65eAKWNXIdUQD+c2sm5iPemY2mIcnD/bsVMuqTs0yvQ7wQYtXRXb79XtxfpSEB4wH3foCgHwIGQSS+5qeddAOsxzgPOwsLMR9xsBhNQ2qA+3crZNQnZ5le89/o6Jbb3WrxKRovuOuIBR9TAHnSwcfk8T8hYP8MOzsg4E55/C8SsH+GnR0QcKc8/hcJ2D/Dzg4IuFMe/4sE7J9hZwcE3CmP/8WpAzz7cCnm48bdQaw58r3T63H/TB3gcG0+jnIQ8IgVGCXcdK9x/9DBPTuagEesADr43uBFrDlwf217+B5unV+fX4z5mPjfJiGA95vbsebA/bWAMb/6HJ/Z2gJbj0fBasJNe+H+Wj0wv/qcgG2ORiAErFXAGI8AWnfwo5U30TLmHq/GfPA92PiejAdIex4x33oAl9c+xnwQMAFrz2Rb8bUdgg7D/bXdYz7ur53n7k2v6WA6WHsm24qv7RB0FO6v7R7zcX/tnA42OhYFR0AErFXAGI8AEJB1jvtry8V8az2Fg/PvLdNr63ehmK9tuHZ8bQERAO6vrR/zcX/tvACMN6g91zZcOx770QomxeP+2voxX7qftE7A0/YejCeo9lx7omvHYz+SA7TruL+2fszX3h/jCwfn31um15bvQVMuFqxtGN/DrXOsBwWxznF/bb+Yb62nAIwXrDfAgq0N437WubU/zMd6rP3i/to58gx4QbshxtduGPezzrFe6xzrIWBBARSs9twKFPOxPqG9YhnzcX/tHA3bvIOtnwkwXyuYFI+ACoLCBcyX7ietuwMsNTTudQQk8CyWMd/aDwFP25+Dkbj1BOGJLI6scAHzrfX0nY/1Cu0Vy5hvrRd5Nv8ebG2473wEVBAULmC+tV4C5iO6rb9Gaj3RfeejAwXDFsuYb62XDqaD6WCNi9CBhUWFC5ivufdJsXQwHUwHn+SM066hAwXDFsuYf9p9znqdDqaD6zpY+/vc2if6rCf/vHFY77j7HbmDUQDt/LzCjypP248Ub62bgHt+REsApXUCrgzIKqgETLturad3B+PvX61za8N951v7w3xrvb0DthbIfNuHXAJu7BFf+0ATMAHbHhG1TyT30/Ggg+lg3Ymhw9rSiw6mg9s6kXxC6HjQwXSw7sTQYW3pRQfTwW2dSD4hdDzoYDpYd2LosLb0ooPp4LZOJJ8QOh50MB2sOzF0WFt60cF0cFsnkk8IHQ86mA7WnRg6rC296OBpd/Dqu0+Rw68GhYNXXq4f4UXOj//fQ171SGzD8tr60GsDrFs6iOvDcPP+k5mnrzYOKZYklq/1xDSxDWHmwcWr84NLz15v3H7+4csch38NEsvENLH9DwLs1co+Fv2iAAAAAElFTkSuQmCC",g=""+new URL("Retry-8b2ec896.png",import.meta.url).href,C=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGRklEQVRoBdVZ629URRQ/c2/b7e62Fii2FBqsSOQZpSEBQkJiSGtMfKFRv0gMSUU+mJj4xcTEhPDJxD9BbaIJflETUfETDZoQNYgiREtBHsHYF9At0H10n/d6frM73Xsvey+zW+22J7l7zsyZOa+ZOffcWUElsG1bTMfjr3NzgGzawrhF8RYJTpCgYbZlcEVr68dCCBt2Cfwkk8mudME6Sra9F+1FD0KcbDaN/dFodMJA5JeU8YguBxo2w3YRm5k5yFvmw0Uf9UoGCnrD4P6BSrwl0jcgYndn4mzsYjuwuvFLYAWWqvFwsqVB11W/cZZl0e9/XqKr10cplc74DavYH2kO0SM93dS7dQMZBmJZPczbARj/x8Wr1WvmGXBYzd3+2KaaZMzbAUQe0LdnB3V3dVRlxOjEDRo6dUauXq0O1LZuDjPVtqnWeIjo7uqUkpQMh1htct4OaGv6nwYueQe0zsDgF9/5xs/05VTHCNIx8PLTvsK0HECKQ7qsCmJ3iD47RmL4LznN3vIo0av7iNqXVSXmfulVy4GmBpPSWYv2P99PoaYmlwGffH7c1ZYNNl688z5RIjnHEz/+SnR+hOwP3q3ohDfKmWyWjn59gqA7CLTOQDQaljLiidkgWWUeR95p/BwDDoGnAUqX0u03RcuB9rY2OX/85pSfHFe/2jauzlIjiOccr3Qp3U6ek9ZyQOX4kWt/cykuP4ScMv5zGjqgC6B0+ynRcmAtv2Ej4RDvilk6N3LZT9Zcvzywcy03EcRTI6EDuqATuoNAywHTNGjXtq1Sztnhy3Ty57M0OnnLv3hDtmmJ3qsXfeBVALyNIROyoQMAndAdBPge0N4TF65cp9PnLpDl2EZmiT7wyjNuPZppVGWxgpCf51KGwfTObZtp8/oet8wKLa00quZB4OrOlQRHxidjvAKzZOXyiu3GyPdvHeCvVT1o5HQZaQ7T6lXt0vBlrS1aE6tyABIheHdvcTuhrSIIej7w2gtP1TQ9eIPVJHJhJ2mtQFCdEvye1HcmSIf3Le2UquVALbXQeOo2HfntS/pp4pLUt7trAx3e/hKtjix36r8vXZdaCMY/8c0RupMp10JfXfuFvh8bph+eO1zRCW+U61oLIfJO41WY0QeeDtStFsoUcnR67CKFbIOa+VFY0afHLlGu4JN6HZ7VpRZK5TI0NjNFhjDI5MeJQRcfQf/wmGyAE3WphRLZWZpMTvOLy6bejh6+5xHyrqeM2Snu6+14mEdYNJGIUTafc8S8TC54LZQRebqVust39Ww0R/rQpiepLRRlutguYiH7Dm3ql2NQjkzyYbdK7+q61UJ5ylHOKNCzfXvKIWTqVjpOH10covNTxbL48ZUP0cGNffRgc6tr3PETpyhsNZHNjitYsFoomU5RhiNpyMijGMOD6kdQZ7iN3ut90dHHpIOPFsYK/t7GCkaMMEUXqhbatW0LxWbjfBBz9O3QKTakuFWkTdLIIlU0GHS50vTSiDbY/f07qD3cSiGzUU3WwlpvYqekAt9OTKcTlLcKpaxSXHrs/VpAzcP5uZ1O0nI+O6EGfSeqcgD5+25mVn5WIk1isygMQ8obqLIrxc1V3GQYgfFqHuQAZjibPcBY1wntsMF4CId6lVVMXv5IKMROCIrFbst+0IrvxYoHjGeK5wBDhhoLp5CSsT11QGsF0pyv8ZLCMvPfmy65a9esoit8Q32G73xqAawAZKitpGQks6yvSVCjGWxiMJelpTkScMCrQCnavH6d5I2O3+TLr6zqrow9e6y5sYm613TQxnU99wQGAlKsN8I4yInAb2IYLl/57qBXNk6n13sIvHM8Dip2mDOTnxNYgQQ/rg9Q6EFRlretmv/6UcpdWAVCYRez1KjAy3DGE1yGNIh7Pp8SDbyth/lc7lSyYHyaDywuG/y2jRq7kDhb4MtlvmJpcJ5Bth0rMMiPdAD1CaKOIHgPK4zFIUaxBgxQNHBtADmYq8Ku6Mry8O4RhikzV0nfoMDf9dPxxBBfn+8tIOwMarpXfGlS3RFSrmkYJ1e0tvTxigh7aibzJoncp/wvwI66W6djgDDO5A16G7aLGwm7k89HN+YZVmofR5/v/ux1fP2GDHYfmO8aYa2VDKhSNLAHDJFiu65x7I9ZhnmsyG0c/xfNI5E629R1xgAAAABJRU5ErkJggg==",d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGKUlEQVRoBc2aX2xTVRzHv/fe/tnf7h+bG24y4yBZJAETTBhGQ5BKiMYXnoY8EEgw0RDBGYJvxAeNcyLEFyUGjaI88WIMREGsJmSgD0CiWXSDQFbWSV3XtVvXru29/n6n3HE7u97b3gv2JLc9vT33dz6/f+ece+6VQGUqoXWqanoQ0DZDQwefK1TajnrE6btvLhT6++GckxACpIAsuw+11EhBF8Nr2fR1gm82JZBU0yYPvIEwsNZPzNuIfZ3rnuXN4YlMYgUk6YEzWulAI4NrFDUuETZWrmAFZM1iy4fVTNssF4v5pRiSxApUQBjpYBROsl639E0hJCuV5YWSFJC4dSUkssHalAPWi8ThUxk5vAgtheMp05iQCbrWoyCSytE3ezXMLWShml652E/Rii7freQCIp1VLcs3VYCFN9a4IS8ZPlVNQzSRtq2EkF9N8rliKCpZJzpvLt80B9jyDP/jWAxPHftDHFznc/yf3SLkE/zc6Dnc+rBLHFxnhazIN/VAM1ufhDF8KJ4WvB31blw98CTYShHygp2iy2f4bCwoRCm+TnQPjCMTD+H20EpIbCc6+DuvThls6gE7cE5cS5FKU9X9scOYdvyfqQfqvQq8bkWE0FvfjQumoZe68HyPD7FUFgvprC3OOiWDquoaEULhb/cJWa0vn0Dt6u1Ikew49VGsmCrAuVUoiSNJFTvPxnD8uWq0VOUnYLEOjf+ps2HMfrULq147A6U2fznmWBLzUMmjDVuDhfLBlt95dgaXQmn0fz+HqaTRsUbE5etqPIzox36kRgO4/ekOJOcTi/K5LysjEEs39cByCBGC7v8hjtGoitUNMk5vq0ezRU8I+ON+ZMMjUFb2ovH185DrWpfrquj5spOYYU+/UI81TRLG4uSR8zGwUmaF4aeP+pGZJPh2e/DcV9kK8MWsxDd+UqJRwmgsg1cuzJASy69W1VgYkSGCD43AxfD7y7c898/FlgIsoLlKxtdbfeQJmTxBSlwsrATDTw3eg+ewecM+vCMKLCqxpUHkwg3yxMBwDB4aenmS4qNOzmDmk13ITIzA3dGLpoMEX19ezHN/xlJ2EhuF6HUOn4HLUXzpb0UTzR/GkolHaJmwA75XTzkGz/IdVYAFsuV9BH8hmMDB4Sk+hY/6WrC1swbJRAKzakkreHF9sQ/bObBUeJ07J5LhQ4msOHRFPFXVS5vb/u24AraJShTguAKp5LxA4LDpqFHEwXUus+nlh1jRoIwPR3MgG6VJamgXet45A5cvf20zTcuP3YEQPtiwAs1e5+zmmCSGv3vYj8T1AMaO0NqGEta4dtr98wQu/5PE7kuTdGtafIVZiiMc8QDD/32IJqngCDyP96L13fNQGvLHeYbeMzyJsVgaPXRDdHJTO3kif6gtBVxva9sDAn7Aj/QtmqS6CsNzZwx7sq8dPT4FY7MpUibkiCdsKcDwkwcI/jZZvrsXbe//1/K6pe4rsZKUcOHG3AL2XL5jW4myFchOhxHan7O86zGCHyT4xvywMcLrdfbE5xsfpTBy4SYpsffKHXCCl1ss5QDflfEOgb5vk5qfx839LyJxNQD3E73oOGYN3gg5TftKe38N4sbsAja21OCLTV2opVmci/P7QgX2bTIzEfw5sAMrjpyyZHkjvF5nJQ5fn8Bnz6xCkyd/iWF138nUA/pN/dS5c/hrX+6me82JE2jZvh3zcwnMafkd63BWv7209Kj3uhC4G8Xbv98Sl723thub2xqt3dT/JEGTiMG458J7MDIdfH7DtQl4HunAcFcXUsGg6MDb2Ym+8XExzju1L9R38Romk7k9pvYqN4a3rLckPy+JeZ+FC+8iclX/LU5W6IdrbSxVFE27N9lw2BhDiC/iZLNbWIaX3M1hYwwhq/JNc0DsCxVIYqv7NmYKLrfv5FgSM8DSYbSUYc5MAaP8mWxuPmhQFOe2160AONXm6V+uUQICvz273rJIe2Og5W6sNSznMW5lKSDGxNIGhopSoJwHiDLFHL17UBlFpgfpJT1MJ3ZymhSoDHyioEe44kmoZSB+6YPe+pAgRSxf8wAb8psAVj3AzMwu8ysrkuJeR+uH0/97OPGrDGYP0jnkiZWZmf1f1o7IN6awz1AAAAAASUVORK5CYII=",D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEs0lEQVRoBe1azWtUVxQ/781HkslHzQwpDfkQUUpdaHZtaUtTuhACYtC/wI22FHd+bMSlFNSdIhjcddFNKW0pZlfS0BayEdSFqAjRJMbGfBgTZ+JM8p7nd27ezMvkvsy7yUucAS+898479+P8zj3n3nvembGIy8xMttOhwiVy6RuX3HbwqrVYZE2SRUM2Jc5lMqlxaxX8Hdd109UKWofLsqxZVqLHxszXGngoBMzAbsNtdBrWBI+x29Xu8xtNJLDbGzWohbr3CrxrK8W3A4BtW9SYqqdEQg1fKCzT6+wSOY4bubjIFQD41g+ayLZL3hmrS1KSlZmbX4xciZKUiOYGMw/wfz/M0ldXnsgFGjzURV2sfRceF+3KhwPxCYdDQslhml+ImVq54KKlVwv6v7Pd9GFzXIA/f7Ui/T5qidE/Z3bT1MIyfXn5qfRBhb9/ptGmvv11dOLzFCVi0i3ULe560mVEBr/6lN4igW/+Nr5hRU+u8/TlfdlXqychr9QO8tQUTGcd+ul2TmT98EVK31nDtaamX1aWqukYxGpuaqB69nm4zfk/Xkizi0faqPfjFC29ydPCIoPUlH9H83T61gKlUzbdOt6qaaFnRa6AbhFDtOM4FRfxpzdmxNgj32X0aDXcyHchbJXYbTa1jTIa0502cgXUbLuBrqKZxCJrhffEgP2i2Kac2BYFyoWEfmc0pguyqhRwePusaQu4cW9bDW0z2hYLbDYWcmOmDkTRK6DbRsPGQuJC4SdfWm5bLDQ4sURdv07KBbpSLDT8f55c9oc0hxQmxciFCg7RtUdZ+v1ZnqbfOBIz+WMn0HePdhFCtpMjczSe4w6r9NixdprnffLA4CxzAlwlZlF/d530CXszUuDq4yzdfLqkgh+eKMDwLzuhA+ImAEIc5LCfl3YaNFajtNXZ1N+epFN7w8dBGNNIgd+m8gJgoKeFvs4k0H9daeZEDcrAZ61iBY/GcxfX3T8UPkxAn0rFKBb6ZHhW3OZBbzAI3SIGiDCxUCWwunojCzichPHZXzeefHFtOhbSjrgx00gBHDRhCgK6oLA5TH+TNkYKYAFWWzFSgOSory4VjBRQFgjnRjulptGxJ8FWiA9u7ET4tEy3NssFGrytlO9fLNLMynoXNlOAW1daB942iu/iGKdScIFWuaLNK/FnNk/fTr4kPP3FSIG2es7Gs9P99brgH2MN7eWFBl/lqOv+hFygK8VCawYJeIEFYAm/NYwOsh/ncnR9PldMo3hhgHpCqkWjB7uoPRkX4OMFlRfq5ETP2P4Omswv0557Y3IYKoywiAolpDe/+tNQHi1pm7KpznDcdDHdaBZKnNnVwPGMS78s5mlqhUMGBDUiX7mGCFKkwld+R/PVSwDzrQSf3ZPfMaQKRvCCrBEz+Mm/jaHLumJkgXW9NQwvLwS3OTmByJPjoo409bU0bJgX0gy1htX5RI0F5uFUUmYfVjDaRteMGPCCLDQSuQA81tJRbIVYCHVbKZ7bQAGvRK7AlvJCHirN0z/r/urIXcg/+E7QZWt7J0RGK+O9AtHOp/loHKHwfw9qtAC7zefDUI3i5wOOhmr/zx74ywr+9cE5nZ9rwZ2AEViBGdjfAhPs4mowdpbkAAAAAElFTkSuQmCC",u=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,Y={class:"policy-type-tag"},G=["src"],E=Q({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(T){const A=T,s={CircuitBreaker:B,FaultInjection:a,HealthCheck:c,MeshAccessLog:o,MeshCircuitBreaker:B,MeshFaultInjection:a,MeshHealthCheck:c,MeshProxyPatch:r,MeshRateLimit:i,MeshRetry:g,MeshTimeout:C,MeshTrace:D,MeshTrafficPermission:f,ProxyTemplate:r,RateLimit:i,Retry:g,Timeout:C,TrafficLog:o,TrafficPermission:f,TrafficRoute:d,TrafficTrace:D,VirtualOutbound:u};return(h,O)=>(e(),t("span",Y,[s[A.policyType]?(e(),t("img",{key:0,class:"policy-type-tag-icon",src:s[A.policyType],alt:""},null,8,G)):(e(),m(l(p),{key:1,icon:"brain",size:"24"})),n(),z(h.$slots,"default",{},()=>[n(v(A.policyType),1)],!0)]))}});const M=w(E,[["__scopeId","data-v-0e1cab5b"]]);export{M as P}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js rename to app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js index 4c1e50a2653e..b00887d90772 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js +++ b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js @@ -1,4 +1,4 @@ -import{_ as hn}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import{C as dn}from"./CopyButton-2ebae850.js";import{g as sn}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as mn,c as xn,o as gn,a as An,w as fe,h as vn,b as ce,g as yn,t as Cn}from"./index-c92949c1.js";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Se(e){return typeof e>"u"||e===null}function _n(e){return typeof e=="object"&&e!==null}function wn(e){return Array.isArray(e)?e:Se(e)?[]:[e]}function Sn(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;i"u"||e===null}function _n(e){return typeof e=="object"&&e!==null}function wn(e){return Array.isArray(e)?e:Se(e)?[]:[e]}function Sn(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 Q(e,n){return y.repeat(" ",n-e.length)+e}function Nn(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=$(e.buffer,l[o-c],r[o-c],e.position-(l[o]-l[o-c]),t),f=y.repeat(" ",n.indent)+Q((e.line-c+1).toString(),p)+" | "+a.str+` `+f;for(a=$(e.buffer,l[o],r[o],e.position,t),f+=y.repeat(" ",n.indent)+Q((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-ef4fc5d2.js b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js rename to app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js index 25ef07d12fc4..72eddf9d1703 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js @@ -1 +1 @@ -import{t as n}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as s,aa as i,J as l,A as m,o as c,e as d,g as f,t as p,F as u,f as _}from"./index-c92949c1.js";const B=s({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!1}},setup(r){const e=r,a=Symbol("route-title"),t=i(n);return typeof t<"u"&&(l(()=>e.title,o=>{o.length>0&&t.addTitle(o,a)},{immediate:!0}),m(()=>{t.removeTitle(a)})),(o,y)=>e.render?(c(),d(u,{key:0},[f(p(e.title),1)],64)):_("",!0)}});export{B as _}; +import{t as n}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{d as s,aa as i,J as l,A as m,o as c,e as d,g as f,t as p,F as u,f as _}from"./index-3bdd7748.js";const B=s({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!1}},setup(r){const e=r,a=Symbol("route-title"),t=i(n);return typeof t<"u"&&(l(()=>e.title,o=>{o.length>0&&t.addTitle(o,a)},{immediate:!0}),m(()=>{t.removeTitle(a)})),(o,y)=>e.render?(c(),d(u,{key:0},[f(p(e.title),1)],64)):_("",!0)}});export{B as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js rename to app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js index 922c39b22a76..0f267d5fb562 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js @@ -1,4 +1,4 @@ -import{d as g,o as n,a as m,B as T,w as l,z as L,q as e,g as t,b as r,E as K,c as b,U as i1,e as h,h as f,t as p,f as v,F as q,s as u1,v as O,Y as o1,p as j,m as Y,a0 as p1,a1 as A,j as $,J as C1,A as a1,a2 as y1,a3 as Z1,a4 as e1,a5 as x1,a6 as B1,D as N,M as h1,r as U,a7 as x,H as s1,V as w1,k as S1,y as k1,_ as G1,u as _1,n as z,a8 as A1,$ as H1,G as t1,l as R,a9 as B,C as b1,aa as V1,ab as M1,ac as $1,ad as F1,I as O1}from"./index-c92949c1.js";const S=(C,o)=>{const a=C.__vccOpts||C;for(const[i,s]of o)a[i]=s;return a},n1=g({__name:"EmptyBlock",setup(C){return(o,a)=>(n(),m(r(K),{"data-testid":"empty-state","cta-is-hidden":"",icon:"stateGruceo","icon-size":"96"},T({title:l(()=>[L(o.$slots,"title",{},()=>[e("p",null,[L(o.$slots,"default",{},()=>[t("There is no data to display.")])])])]),_:2},[o.$slots.message?{name:"message",fn:l(()=>[L(o.$slots,"message")]),key:"0"}:void 0,o.$slots.cta?{name:"cta",fn:l(()=>[L(o.$slots,"cta")]),key:"1"}:void 0]),1024))}}),g1=C=>(j("data-v-42969d87"),C=C(),Y(),C),U1={"data-testid":"error-state",class:"error-block"},I1=g1(()=>e("p",null,"An error has occurred while trying to load this data.",-1)),R1={key:1,class:"error-block-details"},D1=g1(()=>e("summary",null,"Details",-1)),P1={key:0},E1={key:1},N1={key:0,class:"badge-list"},z1=g({__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(C){const o=C,a=b(()=>o.error instanceof i1?o.error.invalidParameters:[]);return(i,s)=>(n(),h("div",U1,[f(r(K),{"cta-is-hidden":""},T({title:l(()=>[f(r(O),{class:"mb-3",icon:o.icon,color:o.icon==="warning"?"var(--black-500)":void 0,"secondary-color":o.icon==="warning"?"var(--yellow-300)":void 0,size:"42"},null,8,["icon","color","secondary-color"]),t(),L(i.$slots,"default",{},()=>[I1],!0)]),_:2},[i.$slots.message||C.error!==null||a.value.length>0?{name:"message",fn:l(()=>[i.$slots.message?L(i.$slots,"message",{key:0},void 0,!0):(n(),h("details",R1,[D1,t(),C.error!==null?(n(),h("p",P1,p(C.error.message),1)):v("",!0),t(),a.value.length>0?(n(),h("ul",E1,[(n(!0),h(q,null,u1(a.value,(c,u)=>(n(),h("li",{key:u},[e("b",null,[e("code",null,p(c.field),1)]),t(": "+p(c.reason),1)]))),128))])):v("",!0)]))]),key:"0"}:void 0]),1024),t(),C.error instanceof r(i1)?(n(),h("div",N1,[C.error.type?(n(),m(r(o1),{key:0,appearance:o.badgeAppearance},{default:l(()=>[t(p(C.error.type),1)]),_:1},8,["appearance"])):v("",!0),t(),f(r(o1),{appearance:o.badgeAppearance},{default:l(()=>[t(p(C.error.status),1)]),_:1},8,["appearance"])])):v("",!0)]))}});const T1=S(z1,[["__scopeId","data-v-42969d87"]]),K1=e("p",null,"Loading data …",-1),q1=g({__name:"LoadingBlock",setup(C){return(o,a)=>(n(),m(r(K),{"cta-is-hidden":"","data-testid":"loading-block"},{title:l(()=>[f(r(O),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),t(),L(o.$slots,"default",{},()=>[K1])]),_:3}))}}),[D,j1,m1,r4,C4,a4,k,Y1,W1]=p1(A.env,A.nav,A.api,A.store,A.router,A.bootstrap,A.i18n,A.logger,A.dataSourcePool),J1=e("span",{class:"visually-hidden"},null,-1),d1=g({__name:"DataSource",props:{src:{type:String,required:!0},shouldMakeRequest:{type:Boolean,default:!0}},emits:["change","error"],setup(C,{emit:o}){const a=C,i=W1(),s=$(void 0),c=$(!1),u=$(void 0);let d={};const H=Symbol(""),V=async M=>{if(s.value=void 0,d=y(d),d.src=M,M==="")return;c.value=!0,d.controller=new AbortController;const G=i.source(M,H);G.addEventListener("message",F=>{s.value=F.data,u.value=void 0,c.value=!1,o("change",s.value)},{signal:d.controller.signal}),G.addEventListener("error",F=>{u.value=F.error,c.value=!1,o("error",u.value)},{signal:d.controller.signal})},y=M=>(typeof M.controller<"u"&&M.controller.abort(),typeof M.src<"u"&&i.close(M.src,H),{});C1(()=>[a.src,a.shouldMakeRequest],function([M]){a.shouldMakeRequest&&V(M)},{immediate:!0}),a1(()=>{d=y(d)});const _=()=>{V(a.src)};return(M,G)=>(n(),h(q,null,[L(M.$slots,"default",{data:s.value,isLoading:c.value,error:u.value,refresh:_}),t(),J1],64))}});const Q1={},X1={class:"definition-card"},e6={class:"definition-card-title"},t6={class:"definition-card-container"};function o6(C,o){return n(),h("div",X1,[e("div",e6,[L(C.$slots,"icon",{},void 0,!0),t(),L(C.$slots,"title",{},void 0,!0)]),t(),e("div",t6,[L(C.$slots,"body",{},void 0,!0)])])}const r6=S(Q1,[["render",o6],["__scopeId","data-v-66a0bcec"]]),C6=g({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(C){const o=C,a=k(),i={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral",disabled:"neutral"};return(s,c)=>(n(),m(r(o1),{class:"status",appearance:i[o.status],"data-testid":"status-badge"},{default:l(()=>[t(p(r(a).t(`http.api.value.${o.status}`)),1)]),_:1},8,["appearance"]))}});const a6=S(C6,[["__scopeId","data-v-f28c5887"]]);function W(){return y1(A.store)}const l6=g({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const C={ref:"_"};for(const o in this.$props)C[Z1(o)]=this.$props[o];return e1("span",[x1(this.$slots,"default")?e1("a",C,this.$slots.default()):e1("a",C)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const C=this.$el.appendChild(document.createElement("span")),o=this;B1(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(a){a.render(C.appendChild(o.$refs._),function(i){try{C.parentNode.replaceChild(i,C)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),i6=e("p",null,"Unable to reach the API",-1),s6={key:0},n6=g({__name:"AppErrorMessage",setup(C){const o=m1();return(a,i)=>(n(),m(r(K),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:l(()=>[f(r(O),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),i6]),message:l(()=>[e("p",null,[t(` +import{d as g,o as n,a as m,B as T,w as l,z as L,q as e,g as t,b as r,E as K,c as b,U as i1,e as h,h as f,t as p,f as v,F as q,s as u1,v as O,Y as o1,p as j,m as Y,a0 as p1,a1 as A,j as $,J as C1,A as a1,a2 as y1,a3 as Z1,a4 as e1,a5 as x1,a6 as B1,D as N,M as h1,r as U,a7 as x,H as s1,V as w1,k as S1,y as k1,_ as G1,u as _1,n as z,a8 as A1,$ as H1,G as t1,l as R,a9 as B,C as b1,aa as V1,ab as M1,ac as $1,ad as F1,I as O1}from"./index-3bdd7748.js";const S=(C,o)=>{const a=C.__vccOpts||C;for(const[i,s]of o)a[i]=s;return a},n1=g({__name:"EmptyBlock",setup(C){return(o,a)=>(n(),m(r(K),{"data-testid":"empty-state","cta-is-hidden":"",icon:"stateGruceo","icon-size":"96"},T({title:l(()=>[L(o.$slots,"title",{},()=>[e("p",null,[L(o.$slots,"default",{},()=>[t("There is no data to display.")])])])]),_:2},[o.$slots.message?{name:"message",fn:l(()=>[L(o.$slots,"message")]),key:"0"}:void 0,o.$slots.cta?{name:"cta",fn:l(()=>[L(o.$slots,"cta")]),key:"1"}:void 0]),1024))}}),g1=C=>(j("data-v-42969d87"),C=C(),Y(),C),U1={"data-testid":"error-state",class:"error-block"},I1=g1(()=>e("p",null,"An error has occurred while trying to load this data.",-1)),R1={key:1,class:"error-block-details"},D1=g1(()=>e("summary",null,"Details",-1)),P1={key:0},E1={key:1},N1={key:0,class:"badge-list"},z1=g({__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(C){const o=C,a=b(()=>o.error instanceof i1?o.error.invalidParameters:[]);return(i,s)=>(n(),h("div",U1,[f(r(K),{"cta-is-hidden":""},T({title:l(()=>[f(r(O),{class:"mb-3",icon:o.icon,color:o.icon==="warning"?"var(--black-500)":void 0,"secondary-color":o.icon==="warning"?"var(--yellow-300)":void 0,size:"42"},null,8,["icon","color","secondary-color"]),t(),L(i.$slots,"default",{},()=>[I1],!0)]),_:2},[i.$slots.message||C.error!==null||a.value.length>0?{name:"message",fn:l(()=>[i.$slots.message?L(i.$slots,"message",{key:0},void 0,!0):(n(),h("details",R1,[D1,t(),C.error!==null?(n(),h("p",P1,p(C.error.message),1)):v("",!0),t(),a.value.length>0?(n(),h("ul",E1,[(n(!0),h(q,null,u1(a.value,(c,u)=>(n(),h("li",{key:u},[e("b",null,[e("code",null,p(c.field),1)]),t(": "+p(c.reason),1)]))),128))])):v("",!0)]))]),key:"0"}:void 0]),1024),t(),C.error instanceof r(i1)?(n(),h("div",N1,[C.error.type?(n(),m(r(o1),{key:0,appearance:o.badgeAppearance},{default:l(()=>[t(p(C.error.type),1)]),_:1},8,["appearance"])):v("",!0),t(),f(r(o1),{appearance:o.badgeAppearance},{default:l(()=>[t(p(C.error.status),1)]),_:1},8,["appearance"])])):v("",!0)]))}});const T1=S(z1,[["__scopeId","data-v-42969d87"]]),K1=e("p",null,"Loading data …",-1),q1=g({__name:"LoadingBlock",setup(C){return(o,a)=>(n(),m(r(K),{"cta-is-hidden":"","data-testid":"loading-block"},{title:l(()=>[f(r(O),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),t(),L(o.$slots,"default",{},()=>[K1])]),_:3}))}}),[D,j1,m1,r4,C4,a4,k,Y1,W1]=p1(A.env,A.nav,A.api,A.store,A.router,A.bootstrap,A.i18n,A.logger,A.dataSourcePool),J1=e("span",{class:"visually-hidden"},null,-1),d1=g({__name:"DataSource",props:{src:{type:String,required:!0},shouldMakeRequest:{type:Boolean,default:!0}},emits:["change","error"],setup(C,{emit:o}){const a=C,i=W1(),s=$(void 0),c=$(!1),u=$(void 0);let d={};const H=Symbol(""),V=async M=>{if(s.value=void 0,d=y(d),d.src=M,M==="")return;c.value=!0,d.controller=new AbortController;const G=i.source(M,H);G.addEventListener("message",F=>{s.value=F.data,u.value=void 0,c.value=!1,o("change",s.value)},{signal:d.controller.signal}),G.addEventListener("error",F=>{u.value=F.error,c.value=!1,o("error",u.value)},{signal:d.controller.signal})},y=M=>(typeof M.controller<"u"&&M.controller.abort(),typeof M.src<"u"&&i.close(M.src,H),{});C1(()=>[a.src,a.shouldMakeRequest],function([M]){a.shouldMakeRequest&&V(M)},{immediate:!0}),a1(()=>{d=y(d)});const _=()=>{V(a.src)};return(M,G)=>(n(),h(q,null,[L(M.$slots,"default",{data:s.value,isLoading:c.value,error:u.value,refresh:_}),t(),J1],64))}});const Q1={},X1={class:"definition-card"},e6={class:"definition-card-title"},t6={class:"definition-card-container"};function o6(C,o){return n(),h("div",X1,[e("div",e6,[L(C.$slots,"icon",{},void 0,!0),t(),L(C.$slots,"title",{},void 0,!0)]),t(),e("div",t6,[L(C.$slots,"body",{},void 0,!0)])])}const r6=S(Q1,[["render",o6],["__scopeId","data-v-66a0bcec"]]),C6=g({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(C){const o=C,a=k(),i={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral",disabled:"neutral"};return(s,c)=>(n(),m(r(o1),{class:"status",appearance:i[o.status],"data-testid":"status-badge"},{default:l(()=>[t(p(r(a).t(`http.api.value.${o.status}`)),1)]),_:1},8,["appearance"]))}});const a6=S(C6,[["__scopeId","data-v-f28c5887"]]);function W(){return y1(A.store)}const l6=g({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const C={ref:"_"};for(const o in this.$props)C[Z1(o)]=this.$props[o];return e1("span",[x1(this.$slots,"default")?e1("a",C,this.$slots.default()):e1("a",C)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const C=this.$el.appendChild(document.createElement("span")),o=this;B1(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(a){a.render(C.appendChild(o.$refs._),function(i){try{C.parentNode.replaceChild(i,C)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),i6=e("p",null,"Unable to reach the API",-1),s6={key:0},n6=g({__name:"AppErrorMessage",setup(C){const o=m1();return(a,i)=>(n(),m(r(K),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:l(()=>[f(r(O),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),i6]),message:l(()=>[e("p",null,[t(` Please double check to make sure it is up and running `),r(o).baseUrl?(n(),h("span",s6,[t(", and it is reachable at "),e("code",null,p(r(o).baseUrl),1)])):v("",!0)])]),_:1}))}}),d6={class:"upgrade-check"},c6={class:"alert-content"},f6=g({__name:"UpgradeCheck",setup(C){const o=m1(),a=D(),i=$(""),s=$(!1);u(a("KUMA_VERSION"));const c=(d,H)=>{const V=d.split("."),y=H.split(".");for(let _=0;_<3;_++){const M=Number(V[_]),G=Number(y[_]);if(M>G)return 1;if(G>M)return-1}return 0};async function u(d){if(d.match("^[0-9]+.[0-9]+.[0-9]+$")){try{i.value=await o.getLatestVersion()}catch(H){console.error(H);return}if(i.value!==""){const H=c(i.value,d);s.value=H===1}else{const V=new Date,y=new Date("2020-06-03 12:00:00"),_=new Date(y.getFullYear(),y.getMonth()+3,y.getDate());s.value=V.getTime()>=_.getTime()}}}return(d,H)=>(n(),h("div",d6,[s.value?(n(),m(r(h1),{key:0,class:"upgrade-check-alert",appearance:"warning",size:"small"},{alertMessage:l(()=>[e("div",c6,[e("div",null,p(r(a)("KUMA_PRODUCT_NAME"))+` update available `,1),t(),e("div",null,[f(r(N),{class:"warning-button",appearance:"primary",size:"small",to:r(a)("KUMA_INSTALL_URL")},{default:l(()=>[t(` Update diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-6d482352.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1b599133.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-6d482352.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1b599133.js index b8589eaf5426..11754cff2246 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-6d482352.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1b599133.js @@ -1 +1 @@ -import{d as x,r as V,o as a,e as k,h as s,w as e,q as w,g as r,t as u,b as n,a as p,f as L,G as S,B as R,F as E,s as F,N as K}from"./index-c92949c1.js";import{m as W,g as $,D as _,S as G,R as J,A as O,o as b,p as q,E as P,_ as j,f as H}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as M}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-57533ab0.js";import{T as Q}from"./TagList-5c49d2c8.js";import{T as A}from"./TextWithCopyButton-4f462743.js";import{_ as U}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{D as X,K as Y}from"./KFilterBar-047e6e83.js";import{T as Z}from"./TabsWidget-cb88da32.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import"./CopyButton-2ebae850.js";import"./AppCollection-fdcc3e8a.js";import"./dataplane-30467516.js";import"./notEmpty-7f452b20.js";const D={class:"stack"},ee={class:"columns",style:{"--columns":"3"}},te=x({__name:"ExternalServiceDetails",props:{serviceInsight:{},externalService:{}},setup(h){const t=h,l=W(),{t:v}=$();async function g(d){const{mesh:i,name:o}=t.externalService;return await l.getExternalService({mesh:i,name:o},d)}return(d,i)=>{const o=V("RouterLink");return a(),k("div",D,[s(n(S),null,{body:e(()=>[w("div",ee,[s(_,null,{title:e(()=>[r(u(n(v)("http.api.property.name")),1)]),body:e(()=>[s(A,{text:t.serviceInsight.name},{default:e(()=>[s(o,{to:{name:"service-detail-view",params:{service:t.serviceInsight.name,mesh:t.serviceInsight.mesh}}},{default:e(()=>[r(u(t.serviceInsight.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(v)("http.api.property.address")),1)]),body:e(()=>[r(u(t.externalService.networking.address),1)]),_:1}),r(),t.externalService.tags!==null?(a(),p(_,{key:0},{title:e(()=>[r(u(n(v)("http.api.property.tags")),1)]),body:e(()=>[s(Q,{tags:t.externalService.tags},null,8,["tags"])]),_:1})):L("",!0)])]),_:1}),r(),s(M,{id:"code-block-service",resource:t.externalService,"resource-fetcher":g,"is-searchable":""},null,8,["resource"])])}}}),se={class:"stack"},re={class:"columns",style:{"--columns":"4"}},ie=x({__name:"ServiceInsightDetails",props:{serviceInsight:{}},setup(h){const t=h,{t:l}=$();return(v,g)=>{const d=V("RouterLink");return a(),k("div",se,[s(n(S),null,{body:e(()=>{var i,o;return[w("div",re,[s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.status")),1)]),body:e(()=>[s(G,{status:t.serviceInsight.status??"not_available"},null,8,["status"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.name")),1)]),body:e(()=>[s(A,{text:t.serviceInsight.name},{default:e(()=>[s(d,{to:{name:"service-detail-view",params:{service:t.serviceInsight.name,mesh:t.serviceInsight.mesh}}},{default:e(()=>[r(u(t.serviceInsight.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.address")),1)]),body:e(()=>[r(u(t.serviceInsight.addressPort??n(l)("common.detail.none")),1)]),_:1}),r(),s(J,{online:((i=t.serviceInsight.dataplanes)==null?void 0:i.online)??0,total:((o=t.serviceInsight.dataplanes)==null?void 0:o.total)??0},{title:e(()=>[r(u(n(l)("http.api.property.dataPlaneProxies")),1)]),_:1},8,["online","total"])])]}),_:1})])}}}),ae=x({__name:"ServiceDetailView",props:{page:{},size:{},search:{},query:{},gatewayType:{},mesh:{},service:{}},setup(h){const t=h,{t:l}=$();function v(g){const d=[{hash:"#overview",title:l("services.routes.item.tabs.overview")}];return g.serviceType!=="external"&&d.push({hash:"#dataPlaneProxies",title:l("services.routes.item.tabs.data_plane_proxies")}),d}return(g,d)=>(a(),p(j,{name:"service-detail-view","data-testid":"service-detail-view"},{default:e(({route:i})=>[s(O,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:i.params.mesh}},text:i.params.mesh},{to:{name:"services-list-view",params:{mesh:i.params.mesh}},text:n(l)("services.routes.item.breadcrumbs")}]},{title:e(()=>[w("h1",null,[s(U,{title:n(l)("services.routes.item.title",{name:i.params.service}),render:!0},null,8,["title"])])]),default:e(()=>[r(),s(b,{src:`/meshes/${i.params.mesh}/service-insights/${i.params.service}`},{default:e(({data:o,error:I})=>[o===void 0?(a(),p(q,{key:0})):I?(a(),p(P,{key:1,error:I},null,8,["error"])):(a(),p(Z,{key:2,tabs:v(o)},R({overview:e(()=>[o.serviceType==="external"?(a(),p(b,{key:0,src:`/meshes/${i.params.mesh}/external-services/${i.params.service}`},{default:e(({data:c,error:y})=>[c===void 0?(a(),p(q,{key:0})):y?(a(),p(P,{key:1,error:y},null,8,["error"])):(a(),p(te,{key:2,"service-insight":o,"external-service":c},null,8,["service-insight","external-service"]))]),_:2},1032,["src"])):(a(),p(ie,{key:1,"service-insight":o},null,8,["service-insight"]))]),_:2},[o.serviceType!=="external"?{name:"dataPlaneProxies",fn:e(()=>[s(b,{src:`/meshes/${i.params.mesh}/dataplanes/for/${i.params.service}/of/${t.gatewayType}?page=${t.page}&size=${t.size}&search=${t.search}`},{default:e(({data:c,error:y})=>{var T,B,C,z;return[(a(!0),k(E,null,F([typeof((z=(C=(B=(T=c==null?void 0:c.items)==null?void 0:T[0])==null?void 0:B.dataplane)==null?void 0:C.networking)==null?void 0:z.gateway)>"u"],f=>(a(),p(n(S),{key:f},{body:e(()=>[s(X,{"data-testid":"data-plane-collection",class:"data-plane-collection","page-number":t.page,"page-size":t.size,total:c==null?void 0:c.total,items:c==null?void 0:c.items,error:y,gateways:f,onChange:({page:m,size:N})=>{i.update({page:String(m),size:String(N)})}},{toolbar:e(()=>[s(Y,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:t.query,fields:{name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},onFieldsChange:m=>i.update({query:m.query,s:m.query.length>0?JSON.stringify(m.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),r(),f?(a(),p(n(K),{key:0,label:"Type","overlay-label":!0,items:[{label:"All",value:"all"},{label:"Builtin",value:"builtin"},{label:"Delegated",value:"delegated"}].map(m=>({...m,selected:m.value===t.gatewayType})),appearance:"select",onSelected:m=>i.update({gatewayType:String(m.value)})},{"item-template":e(({item:m})=>[r(u(m.label),1)]),_:2},1032,["items","onSelected"])):L("",!0)]),_:2},1032,["page-number","page-size","total","items","error","gateways","onChange"])]),_:2},1024))),128))]}),_:2},1032,["src"])]),key:"0"}:void 0]),1032,["tabs"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});const fe=H(ae,[["__scopeId","data-v-978c7f7e"]]);export{fe as default}; +import{d as x,r as V,o as a,e as k,h as s,w as e,q as w,g as r,t as u,b as n,a as p,f as L,G as S,B as R,F as E,s as F,N as K}from"./index-3bdd7748.js";import{m as W,g as $,D as _,S as G,R as J,A as O,o as b,p as q,E as P,_ as j,f as H}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as M}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-f14268ab.js";import{T as Q}from"./TagList-4f13f92a.js";import{T as A}from"./TextWithCopyButton-f3a4a3be.js";import{_ as U}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{D as X,K as Y}from"./KFilterBar-83cec3c2.js";import{T as Z}from"./TabsWidget-1f2b437c.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import"./CopyButton-ae4c9de6.js";import"./AppCollection-81ee7359.js";import"./dataplane-30467516.js";import"./notEmpty-7f452b20.js";const D={class:"stack"},ee={class:"columns",style:{"--columns":"3"}},te=x({__name:"ExternalServiceDetails",props:{serviceInsight:{},externalService:{}},setup(h){const t=h,l=W(),{t:v}=$();async function g(d){const{mesh:i,name:o}=t.externalService;return await l.getExternalService({mesh:i,name:o},d)}return(d,i)=>{const o=V("RouterLink");return a(),k("div",D,[s(n(S),null,{body:e(()=>[w("div",ee,[s(_,null,{title:e(()=>[r(u(n(v)("http.api.property.name")),1)]),body:e(()=>[s(A,{text:t.serviceInsight.name},{default:e(()=>[s(o,{to:{name:"service-detail-view",params:{service:t.serviceInsight.name,mesh:t.serviceInsight.mesh}}},{default:e(()=>[r(u(t.serviceInsight.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(v)("http.api.property.address")),1)]),body:e(()=>[r(u(t.externalService.networking.address),1)]),_:1}),r(),t.externalService.tags!==null?(a(),p(_,{key:0},{title:e(()=>[r(u(n(v)("http.api.property.tags")),1)]),body:e(()=>[s(Q,{tags:t.externalService.tags},null,8,["tags"])]),_:1})):L("",!0)])]),_:1}),r(),s(M,{id:"code-block-service",resource:t.externalService,"resource-fetcher":g,"is-searchable":""},null,8,["resource"])])}}}),se={class:"stack"},re={class:"columns",style:{"--columns":"4"}},ie=x({__name:"ServiceInsightDetails",props:{serviceInsight:{}},setup(h){const t=h,{t:l}=$();return(v,g)=>{const d=V("RouterLink");return a(),k("div",se,[s(n(S),null,{body:e(()=>{var i,o;return[w("div",re,[s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.status")),1)]),body:e(()=>[s(G,{status:t.serviceInsight.status??"not_available"},null,8,["status"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.name")),1)]),body:e(()=>[s(A,{text:t.serviceInsight.name},{default:e(()=>[s(d,{to:{name:"service-detail-view",params:{service:t.serviceInsight.name,mesh:t.serviceInsight.mesh}}},{default:e(()=>[r(u(t.serviceInsight.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),r(),s(_,null,{title:e(()=>[r(u(n(l)("http.api.property.address")),1)]),body:e(()=>[r(u(t.serviceInsight.addressPort??n(l)("common.detail.none")),1)]),_:1}),r(),s(J,{online:((i=t.serviceInsight.dataplanes)==null?void 0:i.online)??0,total:((o=t.serviceInsight.dataplanes)==null?void 0:o.total)??0},{title:e(()=>[r(u(n(l)("http.api.property.dataPlaneProxies")),1)]),_:1},8,["online","total"])])]}),_:1})])}}}),ae=x({__name:"ServiceDetailView",props:{page:{},size:{},search:{},query:{},gatewayType:{},mesh:{},service:{}},setup(h){const t=h,{t:l}=$();function v(g){const d=[{hash:"#overview",title:l("services.routes.item.tabs.overview")}];return g.serviceType!=="external"&&d.push({hash:"#dataPlaneProxies",title:l("services.routes.item.tabs.data_plane_proxies")}),d}return(g,d)=>(a(),p(j,{name:"service-detail-view","data-testid":"service-detail-view"},{default:e(({route:i})=>[s(O,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:i.params.mesh}},text:i.params.mesh},{to:{name:"services-list-view",params:{mesh:i.params.mesh}},text:n(l)("services.routes.item.breadcrumbs")}]},{title:e(()=>[w("h1",null,[s(U,{title:n(l)("services.routes.item.title",{name:i.params.service}),render:!0},null,8,["title"])])]),default:e(()=>[r(),s(b,{src:`/meshes/${i.params.mesh}/service-insights/${i.params.service}`},{default:e(({data:o,error:I})=>[o===void 0?(a(),p(q,{key:0})):I?(a(),p(P,{key:1,error:I},null,8,["error"])):(a(),p(Z,{key:2,tabs:v(o)},R({overview:e(()=>[o.serviceType==="external"?(a(),p(b,{key:0,src:`/meshes/${i.params.mesh}/external-services/${i.params.service}`},{default:e(({data:c,error:y})=>[c===void 0?(a(),p(q,{key:0})):y?(a(),p(P,{key:1,error:y},null,8,["error"])):(a(),p(te,{key:2,"service-insight":o,"external-service":c},null,8,["service-insight","external-service"]))]),_:2},1032,["src"])):(a(),p(ie,{key:1,"service-insight":o},null,8,["service-insight"]))]),_:2},[o.serviceType!=="external"?{name:"dataPlaneProxies",fn:e(()=>[s(b,{src:`/meshes/${i.params.mesh}/dataplanes/for/${i.params.service}/of/${t.gatewayType}?page=${t.page}&size=${t.size}&search=${t.search}`},{default:e(({data:c,error:y})=>{var T,B,C,z;return[(a(!0),k(E,null,F([typeof((z=(C=(B=(T=c==null?void 0:c.items)==null?void 0:T[0])==null?void 0:B.dataplane)==null?void 0:C.networking)==null?void 0:z.gateway)>"u"],f=>(a(),p(n(S),{key:f},{body:e(()=>[s(X,{"data-testid":"data-plane-collection",class:"data-plane-collection","page-number":t.page,"page-size":t.size,total:c==null?void 0:c.total,items:c==null?void 0:c.items,error:y,gateways:f,onChange:({page:m,size:N})=>{i.update({page:String(m),size:String(N)})}},{toolbar:e(()=>[s(Y,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:t.query,fields:{name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},onFieldsChange:m=>i.update({query:m.query,s:m.query.length>0?JSON.stringify(m.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),r(),f?(a(),p(n(K),{key:0,label:"Type","overlay-label":!0,items:[{label:"All",value:"all"},{label:"Builtin",value:"builtin"},{label:"Delegated",value:"delegated"}].map(m=>({...m,selected:m.value===t.gatewayType})),appearance:"select",onSelected:m=>i.update({gatewayType:String(m.value)})},{"item-template":e(({item:m})=>[r(u(m.label),1)]),_:2},1032,["items","onSelected"])):L("",!0)]),_:2},1032,["page-number","page-size","total","items","error","gateways","onChange"])]),_:2},1024))),128))]}),_:2},1032,["src"])]),key:"0"}:void 0]),1032,["tabs"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});const fe=H(ae,[["__scopeId","data-v-978c7f7e"]]);export{fe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-33d2b049.js b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-f6d69844.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/ServiceListView-33d2b049.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceListView-f6d69844.js index b63c562d45eb..567c47b88748 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-33d2b049.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-f6d69844.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,V as h,D as w,v as x,H as S}from"./index-c92949c1.js";import{A as z}from"./AppCollection-fdcc3e8a.js";import{g as C,o as V,A,S as T,_ as B,f as L}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{T as N}from"./TextWithCopyButton-4f462743.js";import"./CopyButton-2ebae850.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(B,{name:"services-list-view"},{default:t(({route:v})=>[a(V,{src:`/meshes/${r.mesh}/service-insights?page=${r.page}&size=${r.size}`},{default:t(({data:n,error:y})=>[a(A,null,{title:t(()=>[b("h2",null,[a($,{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(T,{status:e.status||"not_available"},null,8,["status"])]),actions:t(({row:e})=>[a(s(h),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[a(s(w),{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 W=L(D,[["__scopeId","data-v-f88d71d6"]]);export{W 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,V as h,D as w,v as x,H as S}from"./index-3bdd7748.js";import{A as z}from"./AppCollection-81ee7359.js";import{g as C,o as V,A,S as T,_ as B,f as L}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as $}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{T as N}from"./TextWithCopyButton-f3a4a3be.js";import"./CopyButton-ae4c9de6.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(B,{name:"services-list-view"},{default:t(({route:v})=>[a(V,{src:`/meshes/${r.mesh}/service-insights?page=${r.page}&size=${r.size}`},{default:t(({data:n,error:y})=>[a(A,null,{title:t(()=>[b("h2",null,[a($,{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(T,{status:e.status||"not_available"},null,8,["status"])]),actions:t(({row:e})=>[a(s(h),{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[a(s(w),{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 W=L(D,[["__scopeId","data-v-f88d71d6"]]);export{W as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-910c3ab4.js b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-ddfced4a.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-910c3ab4.js rename to app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-ddfced4a.js index d7805abbfd79..094925e86fb2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-910c3ab4.js +++ b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader-ddfced4a.js @@ -1 +1 @@ -import{d as y,aa as T,j as I,c as b,o as r,e as d,q as s,z as g,g as n,h as x,w as A,f as S,T as L,n as w,ab as B,a as j,b as u,v as D,t as o,M as H,F as f,s as q,p as C,m as E}from"./index-c92949c1.js";import{f as h,g as O}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const N=["aria-expanded"],P={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},M=y({__name:"AccordionItem",setup(p){const e=T("parentAccordion"),t=I(null),i=b(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.includes(t.value):t.value===e.active.value);e!==void 0&&(t.value=e.count.value++);function a(){i.value?v():l()}function v(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.splice(e.active.value.indexOf(t.value),1):e.active.value=null)}function l(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.push(t.value):e.active.value=t.value)}function _(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function m(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,k)=>(r(),d("li",{class:w(["accordion-item",{active:i.value}])},[s("button",{class:"accordion-item-header",type:"button","aria-expanded":i.value?"true":"false","data-testid":"accordion-item-button",onClick:a},[g(c.$slots,"accordion-header",{},void 0,!0)],8,N),n(),x(L,{name:"accordion",onEnter:_,onAfterEnter:m,onBeforeLeave:_},{default:A(()=>[i.value?(r(),d("div",P,[g(c.$slots,"accordion-content",{},void 0,!0)])):S("",!0)]),_:3})],2))}});const re=h(M,[["__scopeId","data-v-dfd99690"]]),R={class:"accordion-list"},U=y({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(p){const e=p,t=I(0),i=I(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return B("parentAccordion",{multipleOpen:e.multipleOpen,active:i,count:t}),(a,v)=>(r(),d("ul",R,[g(a.$slots,"default",{},void 0,!0)]))}});const le=h(U,[["__scopeId","data-v-bdbadd5e"]]),V={class:"stack"},z={key:1},F={class:"row"},G={class:"header"},J={class:"header"},K={class:"header"},Q=["data-testid"],W={class:"type"},X=y({__name:"SubscriptionDetails",props:{subscription:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(p){const e=p,{t}=O(),i=b(()=>{var v;let a;if("controlPlaneInstanceId"in e.subscription){const{lastUpdateTime:l,total:_,...m}=e.subscription.status;a=m}else a=((v=e.subscription.status)==null?void 0:v.stat)??{};return a?Object.entries(a).map(([l,_])=>{const{responsesSent:m="0",responsesAcknowledged:c="0",responsesRejected:k="0"}=_;return{type:l,responsesSent:m,responsesAcknowledged:c,responsesRejected:k}}):[]});return(a,v)=>(r(),d("div",V,[i.value.length===0?(r(),j(u(H),{key:0,appearance:"info"},{alertIcon:A(()=>[x(u(D),{icon:"portal"})]),alertMessage:A(()=>[n(o(u(t)("common.detail.subscriptions.no_stats",{id:e.subscription.id})),1)]),_:1})):(r(),d("div",z,[s("div",F,[s("div",G,o(u(t)("common.detail.subscriptions.type")),1),n(),s("div",J,o(u(t)("http.api.property.responsesSent")),1),n(),s("div",K,o(u(t)("http.api.property.responsesAcknowledged")),1)]),n(),(r(!0),d(f,null,q(i.value,(l,_)=>(r(),d("div",{key:_,class:"row","data-testid":`subscription-status-${l.type}`},[s("div",W,o(u(t)(`http.api.property.${l.type}`)),1),n(),s("div",null,o(l.responsesSent),1),n(),s("div",null,o(l.responsesAcknowledged),1)],8,Q))),128))]))]))}});const ue=h(X,[["__scopeId","data-v-d4b22517"]]),Y=""+new URL("icon-deployed-code-e3c999ba.svg",import.meta.url).href,Z=""+new URL("icon-connected-037e001a.svg",import.meta.url).href,ee=""+new URL("icon-disconnected-ba3c2624.svg",import.meta.url).href,$=p=>(C("data-v-8fec847c"),p=p(),E(),p),te={class:"subscription-header"},se=$(()=>s("img",{src:Y},null,-1)),ne=$(()=>s("img",{src:Z},null,-1)),oe=$(()=>s("img",{src:ee},null,-1)),ie=y({__name:"SubscriptionHeader",props:{subscription:{type:Object,required:!0}},setup(p){const e=p,{t,formatIsoDate:i}=O(),a=b(()=>"globalInstanceId"in e.subscription?e.subscription.globalInstanceId:null),v=b(()=>"controlPlaneInstanceId"in e.subscription?e.subscription.controlPlaneInstanceId:null),l=b(()=>e.subscription.connectTime?i(e.subscription.connectTime):null),_=b(()=>e.subscription.disconnectTime?i(e.subscription.disconnectTime):null);return(m,c)=>(r(),d("header",te,[s("span",null,[se,n(),a.value?(r(),d(f,{key:0},[s("b",null,o(u(t)("http.api.property.globalInstanceId")),1),n(": "+o(a.value),1)],64)):v.value?(r(),d(f,{key:1},[s("b",null,o(u(t)("http.api.property.controlPlaneInstanceId")),1),n(": "+o(v.value),1)],64)):S("",!0)]),n(),s("span",null,[ne,n(),s("b",null,o(u(t)("common.detail.subscriptions.connect_time")),1),n(": "+o(l.value),1)]),n(),s("span",null,[_.value?(r(),d(f,{key:0},[oe,n(),s("b",null,o(u(t)("common.detail.subscriptions.disconnect_time")),1),n(": "+o(_.value),1)],64)):S("",!0)])]))}});const de=h(ie,[["__scopeId","data-v-8fec847c"]]);export{re as A,de as S,le as a,ue as b}; +import{d as y,aa as T,j as I,c as b,o as r,e as d,q as s,z as g,g as n,h as x,w as A,f as S,T as L,n as w,ab as B,a as j,b as u,v as D,t as o,M as H,F as f,s as q,p as C,m as E}from"./index-3bdd7748.js";import{f as h,g as O}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const N=["aria-expanded"],P={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},M=y({__name:"AccordionItem",setup(p){const e=T("parentAccordion"),t=I(null),i=b(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.includes(t.value):t.value===e.active.value);e!==void 0&&(t.value=e.count.value++);function a(){i.value?v():l()}function v(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.splice(e.active.value.indexOf(t.value),1):e.active.value=null)}function l(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.push(t.value):e.active.value=t.value)}function _(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function m(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,k)=>(r(),d("li",{class:w(["accordion-item",{active:i.value}])},[s("button",{class:"accordion-item-header",type:"button","aria-expanded":i.value?"true":"false","data-testid":"accordion-item-button",onClick:a},[g(c.$slots,"accordion-header",{},void 0,!0)],8,N),n(),x(L,{name:"accordion",onEnter:_,onAfterEnter:m,onBeforeLeave:_},{default:A(()=>[i.value?(r(),d("div",P,[g(c.$slots,"accordion-content",{},void 0,!0)])):S("",!0)]),_:3})],2))}});const re=h(M,[["__scopeId","data-v-dfd99690"]]),R={class:"accordion-list"},U=y({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(p){const e=p,t=I(0),i=I(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return B("parentAccordion",{multipleOpen:e.multipleOpen,active:i,count:t}),(a,v)=>(r(),d("ul",R,[g(a.$slots,"default",{},void 0,!0)]))}});const le=h(U,[["__scopeId","data-v-bdbadd5e"]]),V={class:"stack"},z={key:1},F={class:"row"},G={class:"header"},J={class:"header"},K={class:"header"},Q=["data-testid"],W={class:"type"},X=y({__name:"SubscriptionDetails",props:{subscription:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(p){const e=p,{t}=O(),i=b(()=>{var v;let a;if("controlPlaneInstanceId"in e.subscription){const{lastUpdateTime:l,total:_,...m}=e.subscription.status;a=m}else a=((v=e.subscription.status)==null?void 0:v.stat)??{};return a?Object.entries(a).map(([l,_])=>{const{responsesSent:m="0",responsesAcknowledged:c="0",responsesRejected:k="0"}=_;return{type:l,responsesSent:m,responsesAcknowledged:c,responsesRejected:k}}):[]});return(a,v)=>(r(),d("div",V,[i.value.length===0?(r(),j(u(H),{key:0,appearance:"info"},{alertIcon:A(()=>[x(u(D),{icon:"portal"})]),alertMessage:A(()=>[n(o(u(t)("common.detail.subscriptions.no_stats",{id:e.subscription.id})),1)]),_:1})):(r(),d("div",z,[s("div",F,[s("div",G,o(u(t)("common.detail.subscriptions.type")),1),n(),s("div",J,o(u(t)("http.api.property.responsesSent")),1),n(),s("div",K,o(u(t)("http.api.property.responsesAcknowledged")),1)]),n(),(r(!0),d(f,null,q(i.value,(l,_)=>(r(),d("div",{key:_,class:"row","data-testid":`subscription-status-${l.type}`},[s("div",W,o(u(t)(`http.api.property.${l.type}`)),1),n(),s("div",null,o(l.responsesSent),1),n(),s("div",null,o(l.responsesAcknowledged),1)],8,Q))),128))]))]))}});const ue=h(X,[["__scopeId","data-v-d4b22517"]]),Y=""+new URL("icon-deployed-code-e3c999ba.svg",import.meta.url).href,Z=""+new URL("icon-connected-037e001a.svg",import.meta.url).href,ee=""+new URL("icon-disconnected-ba3c2624.svg",import.meta.url).href,$=p=>(C("data-v-8fec847c"),p=p(),E(),p),te={class:"subscription-header"},se=$(()=>s("img",{src:Y},null,-1)),ne=$(()=>s("img",{src:Z},null,-1)),oe=$(()=>s("img",{src:ee},null,-1)),ie=y({__name:"SubscriptionHeader",props:{subscription:{type:Object,required:!0}},setup(p){const e=p,{t,formatIsoDate:i}=O(),a=b(()=>"globalInstanceId"in e.subscription?e.subscription.globalInstanceId:null),v=b(()=>"controlPlaneInstanceId"in e.subscription?e.subscription.controlPlaneInstanceId:null),l=b(()=>e.subscription.connectTime?i(e.subscription.connectTime):null),_=b(()=>e.subscription.disconnectTime?i(e.subscription.disconnectTime):null);return(m,c)=>(r(),d("header",te,[s("span",null,[se,n(),a.value?(r(),d(f,{key:0},[s("b",null,o(u(t)("http.api.property.globalInstanceId")),1),n(": "+o(a.value),1)],64)):v.value?(r(),d(f,{key:1},[s("b",null,o(u(t)("http.api.property.controlPlaneInstanceId")),1),n(": "+o(v.value),1)],64)):S("",!0)]),n(),s("span",null,[ne,n(),s("b",null,o(u(t)("common.detail.subscriptions.connect_time")),1),n(": "+o(l.value),1)]),n(),s("span",null,[_.value?(r(),d(f,{key:0},[oe,n(),s("b",null,o(u(t)("common.detail.subscriptions.disconnect_time")),1),n(": "+o(_.value),1)],64)):S("",!0)])]))}});const de=h(ie,[["__scopeId","data-v-8fec847c"]]);export{re as A,de as S,le as a,ue as b}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-cb88da32.js b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-1f2b437c.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/TabsWidget-cb88da32.js rename to app/kuma-ui/pkg/resources/data/assets/TabsWidget-1f2b437c.js index 95bff3627934..07936cdada8c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-cb88da32.js +++ b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-1f2b437c.js @@ -1 +1 @@ -import{d as g,j as h,c as f,o as m,a as b,B as w,s as v,w as c,z as y,h as S,b as l,v as T,g as x,W as B,a8 as V,p as W,m as I,q as N}from"./index-c92949c1.js";import{v as P,f as C}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";const i={get(e){const a=new URL(window.location.href).searchParams.get(e);return a!==null?a.replaceAll("+"," "):null},set(e,t){const a=new URL(window.location.href);t!=null?a.searchParams.set(e,String(t).replace(/\s/g,"+")):a.searchParams.has(e)&&a.searchParams.delete(e),window.history.replaceState({path:a.href},"",a.href)}},L=e=>(W("data-v-0ee53003"),e=e(),I(),e),k=L(()=>N("span",{class:"with-warnings"},"Warnings",-1)),q=g({__name:"TabsWidget",props:{tabs:{type:Array,required:!0}},emits:["on-tab-change"],setup(e,{emit:t}){const a=e,d=P(),r=h(""),u=f(()=>a.tabs.map(s=>s.hash.replace("#","")));function p(){const s=i.get("tab");s!==null&&(r.value=`#${s}`)}p();function _(s){i.set("tab",s.substring(1)),d.info(V.TABS_TAB_CHANGE,{data:{newActiveTabHash:s}}),t("on-tab-change",s)}return(s,n)=>(m(),b(l(B),{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=o=>r.value=o),tabs:e.tabs,onChanged:_},w({"warnings-anchor":c(()=>[S(l(T),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),x(),k]),_:2},[v(u.value,(o,A)=>({name:o,fn:c(()=>[y(s.$slots,o,{},void 0,!0)])}))]),1032,["modelValue","tabs"]))}});const E=C(q,[["__scopeId","data-v-0ee53003"]]);export{E as T}; +import{d as g,j as h,c as f,o as m,a as b,B as w,s as v,w as c,z as y,h as S,b as l,v as T,g as x,W as B,a8 as V,p as W,m as I,q as N}from"./index-3bdd7748.js";import{v as P,f as C}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";const i={get(e){const a=new URL(window.location.href).searchParams.get(e);return a!==null?a.replaceAll("+"," "):null},set(e,t){const a=new URL(window.location.href);t!=null?a.searchParams.set(e,String(t).replace(/\s/g,"+")):a.searchParams.has(e)&&a.searchParams.delete(e),window.history.replaceState({path:a.href},"",a.href)}},L=e=>(W("data-v-0ee53003"),e=e(),I(),e),k=L(()=>N("span",{class:"with-warnings"},"Warnings",-1)),q=g({__name:"TabsWidget",props:{tabs:{type:Array,required:!0}},emits:["on-tab-change"],setup(e,{emit:t}){const a=e,d=P(),r=h(""),u=f(()=>a.tabs.map(s=>s.hash.replace("#","")));function p(){const s=i.get("tab");s!==null&&(r.value=`#${s}`)}p();function _(s){i.set("tab",s.substring(1)),d.info(V.TABS_TAB_CHANGE,{data:{newActiveTabHash:s}}),t("on-tab-change",s)}return(s,n)=>(m(),b(l(B),{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=o=>r.value=o),tabs:e.tabs,onChanged:_},w({"warnings-anchor":c(()=>[S(l(T),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),x(),k]),_:2},[v(u.value,(o,A)=>({name:o,fn:c(()=>[y(s.$slots,o,{},void 0,!0)])}))]),1032,["modelValue","tabs"]))}});const E=C(q,[["__scopeId","data-v-0ee53003"]]);export{E as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TagList-5c49d2c8.js b/app/kuma-ui/pkg/resources/data/assets/TagList-4f13f92a.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/TagList-5c49d2c8.js rename to app/kuma-ui/pkg/resources/data/assets/TagList-4f13f92a.js index bac432e0e803..1d9f3e6e199e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TagList-5c49d2c8.js +++ b/app/kuma-ui/pkg/resources/data/assets/TagList-4f13f92a.js @@ -1 +1 @@ -import{d as f,u as b,I 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 T,Y as B}from"./index-c92949c1.js";import{f as z}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";function C(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const R={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:C(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",R,[(r(!0),i(h,null,k(_.value,(t,u)=>(r(),l(T(B),{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=z(j,[["__scopeId","data-v-2e356c8b"]]);export{D as T}; +import{d as f,u as b,I 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 T,Y as B}from"./index-3bdd7748.js";import{f as z}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";function C(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const R={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:C(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",R,[(r(!0),i(h,null,k(_.value,(t,u)=>(r(),l(T(B),{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=z(j,[["__scopeId","data-v-2e356c8b"]]);export{D as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f462743.js b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-f3a4a3be.js similarity index 71% rename from app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f462743.js rename to app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-f3a4a3be.js index f7758bc925a2..f9f53addf040 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f462743.js +++ b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-f3a4a3be.js @@ -1 +1 @@ -import{C as p}from"./CopyButton-2ebae850.js";import{g as r,f as a}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{d as u,o as _,e as i,z as x,g as o,t as d,h as l,b as s}from"./index-c92949c1.js";const m={class:"copy-button-wrapper"},y=u({__name:"TextWithCopyButton",props:{text:{type:String,required:!0}},setup(c){const t=c,e=r();return(n,f)=>(_(),i("div",m,[x(n.$slots,"default",{},()=>[o(d(t.text),1)],!0),o(),l(p,{text:t.text,"copy-text":s(e).t("common.copyText"),"tooltip-success-text":s(e).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const C=a(y,[["__scopeId","data-v-d7f8de3a"]]);export{C as T}; +import{C as p}from"./CopyButton-ae4c9de6.js";import{g as r,f as a}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{d as u,o as _,e as i,z as x,g as o,t as d,h as l,b as s}from"./index-3bdd7748.js";const m={class:"copy-button-wrapper"},y=u({__name:"TextWithCopyButton",props:{text:{type:String,required:!0}},setup(c){const t=c,e=r();return(n,f)=>(_(),i("div",m,[x(n.$slots,"default",{},()=>[o(d(t.text),1)],!0),o(),l(p,{text:t.text,"copy-text":s(e).t("common.copyText"),"tooltip-success-text":s(e).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const C=a(y,[["__scopeId","data-v-d7f8de3a"]]);export{C as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-c34f765e.js b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-48504256.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-c34f765e.js rename to app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-48504256.js index 762dadf17c35..5f5dc1a38473 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-c34f765e.js +++ b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-48504256.js @@ -1,4 +1,4 @@ -import{d as u,o as a,e as r,t,g as n,q as s,F as _,s as d,h as m,w as y,a as g,i as P,b as f,M as h}from"./index-c92949c1.js";import{f as D,e as O,h as C,i as N}from"./dataplane-30467516.js";const b=u({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,l)=>(a(),r("span",null,t(e.payload),1))}}),E=u({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,l)=>(a(),r("span",null,[n(` +import{d as u,o as a,e as r,t,g as n,q as s,F as _,s as d,h as m,w as y,a as g,i as P,b as f,M as h}from"./index-3bdd7748.js";import{f as D,e as O,h as C,i as N}from"./dataplane-30467516.js";const b=u({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,l)=>(a(),r("span",null,t(e.payload),1))}}),E=u({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,l)=>(a(),r("span",null,[n(` Envoy (`),s("strong",null,t(e.payload.envoy),1),n(") is unsupported by the current version of Kuma DP ("),s("strong",null,t(e.payload.kumaDp),1),n(") [Requirements: "),s("strong",null,t(e.payload.requirements),1),n(`]. `)]))}}),I=u({__name:"WarningUnsupportedKumaDPVersion",props:{payload:{type:Object,required:!0}},setup(e){return(o,l)=>(a(),r("span",null,[n(` Unsupported version of Kuma DP (`),s("strong",null,t(e.payload.kumaDp),1),n(`) diff --git a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-10f4c413.js b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-1ec5d934.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/WelcomeView-10f4c413.js rename to app/kuma-ui/pkg/resources/data/assets/WelcomeView-1ec5d934.js index a4860c08fe5d..50450d3de7f5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-10f4c413.js +++ b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-1ec5d934.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-c92949c1.js";import{O as $,a as H,b as I}from"./OnboardingPage-29599a9b.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-1a4646e6.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.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-3bdd7748.js";import{O as $,a as H,b as I}from"./OnboardingPage-1beccd77.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-062fa58d.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.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-deec38f8.js b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-fe7df8fc.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-deec38f8.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-fe7df8fc.js index f96b079c21e8..7449c420f650 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-deec38f8.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-fe7df8fc.js @@ -1,4 +1,4 @@ -import{d as Z,j as p,k as R,A as M,o as b,e as I,q as t,h as l,w as r,a as E,b as e,v as q,g as n,z as w,E as j,u as F,c as C,t as o,D as A,Q as H,R as Q,B as G,f as D,x as T,F as J,S as B,U as L}from"./index-c92949c1.js";import{_ as h}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import{r as W,g as N,e as U,m as X,A as Y,E as ee,_ as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as te}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{g as oe}from"./dataplane-30467516.js";const se={class:"scanner"},ae={class:"scanner-content"},re={class:"mb-2"},le=Z({__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(g,{emit:a}){const i=g,s=p(0),m=p(!1),_=p(!1),d=p(null);R(function(){z()}),M(function(){v()});function z(){m.value=!0,_.value=!1,v(),d.value=window.setInterval(async()=>{s.value++,await i.loaderFunction(),(s.value===i.retries||i.canComplete===!0)&&(v(),m.value=!1,_.value=!0,a("hide-siblings",!0))},i.interval)}function v(){d.value!==null&&window.clearInterval(d.value)}return(u,y)=>(b(),I("div",se,[t("div",ae,[l(e(j),{"cta-is-hidden":""},{title:r(()=>[t("div",re,[m.value?(b(),E(e(q),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):g.hasError?(b(),E(e(q),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(b(),E(e(q),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),n(),m.value?w(u.$slots,"loading-title",{key:0}):g.hasError?w(u.$slots,"error-title",{key:1}):w(u.$slots,"complete-title",{key:2})]),message:r(()=>[m.value?w(u.$slots,"loading-content",{key:0}):g.hasError?w(u.$slots,"error-content",{key:1}):w(u.$slots,"complete-content",{key:2})]),_:3})])]))}}),ie={href:"https://helm.sh/docs/intro/install/"},ue=t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1),ce={class:"k-input-label mt-4"},de={class:"mt-4"},me=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(g){const a=g,i=W(),s=N(),m=F(),_=U(),d=C(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),z=C(()=>{const v={zoneName:a.zoneName,globalKdsAddress:_.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof m.params.virtualControlPlaneId=="string"&&(v.controlPlaneId=m.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",v).trim()});return(v,u)=>(b(),I("div",null,[t("h3",null,"1. "+o(e(s).t("zones.form.kubernetes.prerequisites.title")),1),n(),t("ul",null,[t("li",null,[t("b",null,o(e(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+e(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: +import{d as Z,j as p,k as R,A as M,o as b,e as I,q as t,h as l,w as r,a as E,b as e,v as q,g as n,z as w,E as j,u as F,c as C,t as o,D as A,Q as H,R as Q,B as G,f as D,x as T,F as J,S as B,U as L}from"./index-3bdd7748.js";import{_ as h}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import{r as W,g as N,e as U,m as X,A as Y,E as ee,_ as ne}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as te}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{g as oe}from"./dataplane-30467516.js";const se={class:"scanner"},ae={class:"scanner-content"},re={class:"mb-2"},le=Z({__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(g,{emit:a}){const i=g,s=p(0),m=p(!1),_=p(!1),d=p(null);R(function(){z()}),M(function(){v()});function z(){m.value=!0,_.value=!1,v(),d.value=window.setInterval(async()=>{s.value++,await i.loaderFunction(),(s.value===i.retries||i.canComplete===!0)&&(v(),m.value=!1,_.value=!0,a("hide-siblings",!0))},i.interval)}function v(){d.value!==null&&window.clearInterval(d.value)}return(u,y)=>(b(),I("div",se,[t("div",ae,[l(e(j),{"cta-is-hidden":""},{title:r(()=>[t("div",re,[m.value?(b(),E(e(q),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):g.hasError?(b(),E(e(q),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(b(),E(e(q),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),n(),m.value?w(u.$slots,"loading-title",{key:0}):g.hasError?w(u.$slots,"error-title",{key:1}):w(u.$slots,"complete-title",{key:2})]),message:r(()=>[m.value?w(u.$slots,"loading-content",{key:0}):g.hasError?w(u.$slots,"error-content",{key:1}):w(u.$slots,"complete-content",{key:2})]),_:3})])]))}}),ie={href:"https://helm.sh/docs/intro/install/"},ue=t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1),ce={class:"k-input-label mt-4"},de={class:"mt-4"},me=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(g){const a=g,i=W(),s=N(),m=F(),_=U(),d=C(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),z=C(()=>{const v={zoneName:a.zoneName,globalKdsAddress:_.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof m.params.virtualControlPlaneId=="string"&&(v.controlPlaneId=m.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",v).trim()});return(v,u)=>(b(),I("div",null,[t("h3",null,"1. "+o(e(s).t("zones.form.kubernetes.prerequisites.title")),1),n(),t("ul",null,[t("li",null,[t("b",null,o(e(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+e(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: `+o(e(s).t("zones.form.kubernetes.prerequisites.step1Description",{productName:e(i)("KUMA_PRODUCT_NAME")})),1)]),n(),t("li",null,[t("b",null,o(e(s).t("zones.form.kubernetes.prerequisites.step2Label")),1),n(`: `+o(e(s).t("zones.form.kubernetes.prerequisites.step2Description")),1)]),n(),t("li",null,[t("a",ie,o(e(s).t("zones.form.kubernetes.prerequisites.step3LinkTitle")),1),n(" "+o(e(s).t("zones.form.kubernetes.prerequisites.step3Tail")),1)])]),n(),t("h3",null,"2. "+o(e(s).t("zones.form.kubernetes.helm.title")),1),n(),ue,n(),t("ol",null,[t("li",null,[n(o(e(s).t("zones.form.kubernetes.helm.step1Description"))+" ",1),l(h,{id:"zone-kubernetes-create-namespace",class:"mt-4",code:e(s).t("zones.form.kubernetes.helm.step1Command"),language:"bash"},null,8,["code"])]),n(),t("li",null,[n(o(e(s).t("zones.form.kubernetes.helm.step2Description"))+" ",1),l(h,{id:"zone-kubernetes-add-charts-repo",class:"mt-4",code:e(s).t("zones.form.kubernetes.helm.step2Command"),language:"bash"},null,8,["code"])]),n(),t("li",null,[n(o(e(s).t("zones.form.kubernetes.helm.step3Description"))+" ",1),l(h,{id:"zone-kubernetes-repo-update",class:"mt-4",code:e(s).t("zones.form.kubernetes.helm.step3Command"),language:"bash"},null,8,["code"])])]),n(),t("h3",null,"3. "+o(e(s).t("zones.form.kubernetes.secret.title")),1),n(),t("p",null,o(e(s).t("zones.form.kubernetes.secret.createSecretDescription")),1),n(),l(h,{id:"zone-kubernetes-create-secret",class:"mt-4",code:d.value,language:"bash"},null,8,["code"]),n(),t("h3",null,"4. "+o(e(s).t("zones.form.kubernetes.connectZone.title")),1),n(),t("p",null,o(e(s).t("zones.form.kubernetes.connectZone.configDescription")),1),n(),t("span",ce,o(e(s).t("zones.form.kubernetes.connectZone.configFileName")),1),n(),l(h,{id:"zone-kubernetes-config-code-block",code:z.value,language:"yaml"},null,8,["code"]),n(),t("p",de,o(e(s).t("zones.form.kubernetes.connectZone.connectDescription")),1),n(),l(h,{id:"zone-kubernetes-command-code-block",class:"mt-4",code:e(s).t("zones.form.kubernetes.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}}),pe={class:"k-input-label mt-4"},ve={class:"mt-4"},fe=Z({__name:"ZoneCreateUniversalInstructions",props:{zoneName:{type:String,required:!0},token:{type:String,required:!0}},setup(g){const a=g,i=N(),s=F(),m=U(),_=C(()=>i.t("zones.form.universal.saveToken.saveTokenCommand",{token:a.token}).trim()),d=C(()=>{const z={zoneName:a.zoneName,globalKdsAddress:m.state.globalKdsAddress};return typeof s.params.virtualControlPlaneId=="string"&&(z.controlPlaneId=s.params.virtualControlPlaneId),i.t("zones.form.universal.connectZone.config",z).trim()});return(z,v)=>(b(),I("div",null,[t("h3",null,"1. "+o(e(i).t("zones.form.universal.saveToken.title")),1),n(),t("p",null,o(e(i).t("zones.form.universal.saveToken.saveTokenDescription")),1),n(),l(h,{id:"zone-kubernetes-token",class:"mt-4",code:_.value,language:"bash"},null,8,["code"]),n(),t("h3",null,"2. "+o(e(i).t("zones.form.universal.connectZone.title")),1),n(),t("p",null,o(e(i).t("zones.form.universal.connectZone.configDescription")),1),n(),t("span",pe,o(e(i).t("zones.form.universal.connectZone.configFileName")),1),n(),l(h,{id:"zone-universal-config-code-block",class:"mt-4",code:d.value,language:"yaml"},null,8,["code"]),n(),t("p",ve,o(e(i).t("zones.form.universal.connectZone.connectDescription")),1),n(),l(h,{id:"zone-universal-connect-command-code-block",class:"mt-4",code:e(i).t("zones.form.universal.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}}),be={class:"form-content"},ze={class:"form-wrapper mt-4"},ge={key:1,class:"form-wrapper mt-4","data-testid":"connect-zone-instructions"},ke={class:"k-input-label"},he={class:"radio-button-group"},_e={class:"k-input-label"},ye={class:"radio-button-group"},Ee={class:"k-input-label"},Ce={class:"radio-button-group"},we={class:"mt-6"},Ie={class:"mt-2"},Ae=Z({__name:"ZoneCreateView",setup(g){const{t:a}=N(),i=X(),s=p(null),m=p(!1),_=p(null),d=p({error:null,title:null,icon:"warning",badgeAppearance:"warning"}),z=p(!1),v=p(null),u=p(""),y=p("kubernetes"),S=p(!0),V=p(!0),$=C(()=>s.value!==null&&s.value.token?s.value.token:""),K=C(()=>$.value!==""?window.btoa($.value):""),P=C(()=>u.value===""||m.value||s.value!==null);async function O(){m.value=!0,_.value=null;try{s.value=await i.createZone({name:u.value})}catch(c){c instanceof L&&[409,500].includes(c.status)?d.value={error:c,title:a(`zones.create.statusError.${c.status}.title`,{zoneName:u.value}),description:a(`zones.create.statusError.${c.status}.description`).trim(),icon:c.status===500?"warning":"errorFilled",badgeAppearance:c.status===500?"warning":"danger"}:c instanceof Error?d.value={error:c,title:c instanceof L?c.title:a("zones.create.generalError.title"),icon:"errorFilled",badgeAppearance:"danger"}:console.error(c)}finally{m.value=!1}}async function x(){z.value=!1,v.value=null;try{const c=await i.getZoneOverview({name:u.value}),f=oe(c.zoneInsight);z.value=f==="online"}catch(c){c instanceof Error?v.value=c:console.error(c)}}return(c,f)=>(b(),E(ne,{attrs:{class:"is-fullscreen"}},{default:r(()=>[l(Y,{fullscreen:!0,breadcrumbs:[]},{title:r(()=>[t("h1",null,[l(te,{title:e(a)("zones.routes.create.title"),render:!0},null,8,["title"])])]),actions:r(()=>[l(e(A),{appearance:"outline",to:{name:"zone-cp-list-view"}},{default:r(()=>[n(o(e(a)("zones.form.exit")),1)]),_:1})]),default:r(()=>[n(),n(),t("div",be,[t("h1",null,o(e(a)("zones.routes.create.title")),1),n(),t("div",ze,[t("div",null,[l(e(H),{for:"zone-name",required:"","tooltip-attributes":{placement:"right"}},{tooltip:r(()=>[n(o(e(a)("zones.form.name_tooltip")),1)]),default:r(()=>[n(o(e(a)("zones.form.nameLabel"))+" ",1)]),_:1}),n(),l(e(Q),{id:"zone-name",modelValue:u.value,"onUpdate:modelValue":f[0]||(f[0]=k=>u.value=k),type:"text",name:"zone-name","data-testid":"name-input",disabled:s.value!==null},null,8,["modelValue","disabled"])]),n(),l(e(A),{appearance:"creation",icon:m.value?"spinner":"plus",disabled:P.value,"data-testid":"create-zone-button",onClick:O},{default:r(()=>[n(o(e(a)("zones.form.createZoneButtonLabel")),1)]),_:1},8,["icon","disabled"])]),n(),d.value.error!==null?(b(),E(ee,{key:0,class:"mt-4",error:d.value.error,"badge-appearance":d.value.badgeAppearance,icon:d.value.icon,"data-testid":"create-zone-error"},G({default:r(()=>[t("p",null,o(d.value.title),1),n()]),_:2},[d.value.description?{name:"message",fn:r(()=>[t("p",null,o(d.value.description),1)]),key:"0"}:void 0]),1032,["error","badge-appearance","icon"])):D("",!0),n(),s.value!==null?(b(),I("div",ge,[t("div",null,[t("span",ke,o(e(a)("zones.form.environmentLabel"))+` * `,1),n(),t("div",he,[l(e(T),{id:"zone-environment-universal",modelValue:y.value,"onUpdate:modelValue":f[1]||(f[1]=k=>y.value=k),"selected-value":"universal",name:"zone-environment","data-testid":"environment-universal-radio-button"},{default:r(()=>[n(o(e(a)("zones.form.universalLabel")),1)]),_:1},8,["modelValue"]),n(),l(e(T),{id:"zone-environment-kubernetes",modelValue:y.value,"onUpdate:modelValue":f[2]||(f[2]=k=>y.value=k),"selected-value":"kubernetes",name:"zone-environment","data-testid":"environment-kubernetes-radio-button"},{default:r(()=>[n(o(e(a)("zones.form.kubernetesLabel")),1)]),_:1},8,["modelValue"])])]),n(),y.value==="kubernetes"?(b(),I(J,{key:0},[t("div",null,[t("span",_e,o(e(a)("zones.form.zoneIngressLabel"))+` * diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-a70f49a4.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-fe5d3ec3.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-a70f49a4.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-fe5d3ec3.js index d559e2da352e..fbb8c226aca1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-a70f49a4.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-fe5d3ec3.js @@ -1 +1 @@ -import{d as C,c as _,Z as I,r as V,o as r,a as c,w as e,q as m,f as B,g as n,h as t,b as a,G as z,t as u,M as D,e as T,F as $,s as E}from"./index-c92949c1.js";import{g as A,r as Z,s as L,D as g,S as R,f as q,A as M,o as G,p as J,E as P,q as j,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{a as W,A as H,S as K,b as U}from"./SubscriptionHeader-910c3ab4.js";import{_ as Q}from"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import{T as X}from"./TabsWidget-cb88da32.js";import{T as Y}from"./TextWithCopyButton-4f462743.js";import{_ as ee}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-c34f765e.js";import{f as te}from"./dataplane-30467516.js";import{_ as ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CopyButton-2ebae850.js";const se={class:"stack"},oe={class:"variable-columns"},ie=C({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(w){const o=w,{t:l}=A(),k=Z(),v=[{hash:"#overview",title:l("zone-cps.routes.item.tabs.overview")},{hash:"#insights",title:l("zone-cps.routes.item.tabs.insights")}],f=_(()=>{var i;for(const s of((i=o.zoneOverview.zoneInsight)==null?void 0:i.subscriptions)??[])if(s.config)return JSON.parse(s.config).environment;return"kubernetes"}),h=_(()=>L(o.zoneOverview)),b=_(()=>I(o.zoneOverview)),O=_(()=>{var p;const i=[],s=((p=o.zoneOverview.zoneInsight)==null?void 0:p.subscriptions)??[];if(s.length>0){const d=s[s.length-1],y=d.version.kumaCp.version||"-",{kumaCpGlobalCompatible:x=!0}=d.version.kumaCp;x||i.push({kind:te,payload:{zoneCpVersion:y,globalCpVersion:k("KUMA_VERSION")}})}return i}),S=_(()=>{var s;const i=((s=o.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];if(i.length>0){const p=i[i.length-1];if(p.config)return JSON.stringify(JSON.parse(p.config),null,2)}return null}),N=_(()=>{var s;const i=((s=o.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];return Array.from(i).reverse()});return(i,s)=>{const p=V("RouterLink");return r(),c(X,{tabs:v},{overview:e(()=>[m("div",se,[O.value.length>0?(r(),c(ee,{key:0,warnings:O.value},null,8,["warnings"])):B("",!0),n(),t(a(z),null,{body:e(()=>[m("div",oe,[t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.status")),1)]),body:e(()=>[t(R,{status:h.value},null,8,["status"])]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.name")),1)]),body:e(()=>[t(Y,{text:o.zoneOverview.name},{default:e(()=>[t(p,{to:{name:"zone-cp-detail-view",params:{zone:o.zoneOverview.name}}},{default:e(()=>[n(u(o.zoneOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.type")),1)]),body:e(()=>[n(u(f.value),1)]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.authenticationType")),1)]),body:e(()=>[n(u(b.value),1)]),_:1})])]),_:1}),n(),m("div",null,[m("h2",null,u(a(l)("zone-cps.detail.configuration_title")),1),n(),t(a(z),{class:"mt-4"},{body:e(()=>[S.value!==null?(r(),c(Q,{key:0,id:"code-block-zone-config",language:"json",code:S.value,"is-searchable":"","query-key":"zone-config"},null,8,["code"])):(r(),c(a(D),{key:1,class:"mt-4","data-testid":"warning-no-subscriptions",appearance:"warning"},{alertMessage:e(()=>[n(u(a(l)("zone-cps.detail.no_subscriptions")),1)]),_:1}))]),_:1})])])]),insights:e(()=>[t(a(z),null,{body:e(()=>[t(W,{"initially-open":0},{default:e(()=>[(r(!0),T($,null,E(N.value,(d,y)=>(r(),c(H,{key:y},{"accordion-header":e(()=>[t(K,{subscription:d},null,8,["subscription"])]),"accordion-content":e(()=>[t(U,{subscription:d},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}});const ae=q(ie,[["__scopeId","data-v-61561c57"]]),be=C({__name:"ZoneDetailView",setup(w){const{t:o}=A();return(l,k)=>(r(),c(F,{name:"zone-cp-detail-view","data-testid":"zone-cp-detail-view"},{default:e(({route:v})=>[t(M,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:a(o)("zone-cps.routes.item.breadcrumbs")}]},{title:e(()=>[m("h1",null,[t(ne,{title:a(o)("zone-cps.routes.item.title",{name:v.params.zone}),render:!0},null,8,["title"])])]),default:e(()=>[n(),t(G,{src:`/zone-cps/${v.params.zone}`},{default:e(({data:f,isLoading:h,error:b})=>[h?(r(),c(J,{key:0})):b!==void 0?(r(),c(P,{key:1,error:b},null,8,["error"])):f===void 0?(r(),c(j,{key:2})):(r(),c(ae,{key:3,"zone-overview":f,"data-testid":"detail-view-details"},null,8,["zone-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{be as default}; +import{d as C,c as _,Z as I,r as V,o as r,a as c,w as e,q as m,f as B,g as n,h as t,b as a,G as z,t as u,M as D,e as T,F as $,s as E}from"./index-3bdd7748.js";import{g as A,r as Z,s as L,D as g,S as R,f as q,A as M,o as G,p as J,E as P,q as j,_ as F}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{a as W,A as H,S as K,b as U}from"./SubscriptionHeader-ddfced4a.js";import{_ as Q}from"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import{T as X}from"./TabsWidget-1f2b437c.js";import{T as Y}from"./TextWithCopyButton-f3a4a3be.js";import{_ as ee}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-48504256.js";import{f as te}from"./dataplane-30467516.js";import{_ as ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CopyButton-ae4c9de6.js";const se={class:"stack"},oe={class:"variable-columns"},ie=C({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(w){const o=w,{t:l}=A(),k=Z(),v=[{hash:"#overview",title:l("zone-cps.routes.item.tabs.overview")},{hash:"#insights",title:l("zone-cps.routes.item.tabs.insights")}],f=_(()=>{var i;for(const s of((i=o.zoneOverview.zoneInsight)==null?void 0:i.subscriptions)??[])if(s.config)return JSON.parse(s.config).environment;return"kubernetes"}),h=_(()=>L(o.zoneOverview)),b=_(()=>I(o.zoneOverview)),O=_(()=>{var p;const i=[],s=((p=o.zoneOverview.zoneInsight)==null?void 0:p.subscriptions)??[];if(s.length>0){const d=s[s.length-1],y=d.version.kumaCp.version||"-",{kumaCpGlobalCompatible:x=!0}=d.version.kumaCp;x||i.push({kind:te,payload:{zoneCpVersion:y,globalCpVersion:k("KUMA_VERSION")}})}return i}),S=_(()=>{var s;const i=((s=o.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];if(i.length>0){const p=i[i.length-1];if(p.config)return JSON.stringify(JSON.parse(p.config),null,2)}return null}),N=_(()=>{var s;const i=((s=o.zoneOverview.zoneInsight)==null?void 0:s.subscriptions)??[];return Array.from(i).reverse()});return(i,s)=>{const p=V("RouterLink");return r(),c(X,{tabs:v},{overview:e(()=>[m("div",se,[O.value.length>0?(r(),c(ee,{key:0,warnings:O.value},null,8,["warnings"])):B("",!0),n(),t(a(z),null,{body:e(()=>[m("div",oe,[t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.status")),1)]),body:e(()=>[t(R,{status:h.value},null,8,["status"])]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.name")),1)]),body:e(()=>[t(Y,{text:o.zoneOverview.name},{default:e(()=>[t(p,{to:{name:"zone-cp-detail-view",params:{zone:o.zoneOverview.name}}},{default:e(()=>[n(u(o.zoneOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.type")),1)]),body:e(()=>[n(u(f.value),1)]),_:1}),n(),t(g,null,{title:e(()=>[n(u(a(l)("http.api.property.authenticationType")),1)]),body:e(()=>[n(u(b.value),1)]),_:1})])]),_:1}),n(),m("div",null,[m("h2",null,u(a(l)("zone-cps.detail.configuration_title")),1),n(),t(a(z),{class:"mt-4"},{body:e(()=>[S.value!==null?(r(),c(Q,{key:0,id:"code-block-zone-config",language:"json",code:S.value,"is-searchable":"","query-key":"zone-config"},null,8,["code"])):(r(),c(a(D),{key:1,class:"mt-4","data-testid":"warning-no-subscriptions",appearance:"warning"},{alertMessage:e(()=>[n(u(a(l)("zone-cps.detail.no_subscriptions")),1)]),_:1}))]),_:1})])])]),insights:e(()=>[t(a(z),null,{body:e(()=>[t(W,{"initially-open":0},{default:e(()=>[(r(!0),T($,null,E(N.value,(d,y)=>(r(),c(H,{key:y},{"accordion-header":e(()=>[t(K,{subscription:d},null,8,["subscription"])]),"accordion-content":e(()=>[t(U,{subscription:d},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}});const ae=q(ie,[["__scopeId","data-v-61561c57"]]),be=C({__name:"ZoneDetailView",setup(w){const{t:o}=A();return(l,k)=>(r(),c(F,{name:"zone-cp-detail-view","data-testid":"zone-cp-detail-view"},{default:e(({route:v})=>[t(M,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:a(o)("zone-cps.routes.item.breadcrumbs")}]},{title:e(()=>[m("h1",null,[t(ne,{title:a(o)("zone-cps.routes.item.title",{name:v.params.zone}),render:!0},null,8,["title"])])]),default:e(()=>[n(),t(G,{src:`/zone-cps/${v.params.zone}`},{default:e(({data:f,isLoading:h,error:b})=>[h?(r(),c(J,{key:0})):b!==void 0?(r(),c(P,{key:1,error:b},null,8,["error"])):f===void 0?(r(),c(j,{key:2})):(r(),c(ae,{key:3,"zone-overview":f,"data-testid":"detail-view-details"},null,8,["zone-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{be as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-a8327ed0.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1f33833a.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-a8327ed0.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1f33833a.js index b2b217b3dcab..4101badd2a25 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-a8327ed0.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1f33833a.js @@ -1 +1 @@ -import{d as h,c as b,r as x,o as a,a as i,w as e,h as s,b as r,G as u,q as f,g as n,t as c,e as O,F as B,s as S}from"./index-c92949c1.js";import{a as A,A as D,S as $,b as q}from"./SubscriptionHeader-910c3ab4.js";import{g as w,D as g,S as I,A as T,o as C,p as V,E as L,q as F,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{E as v}from"./EnvoyData-28992b07.js";import{T as R}from"./TabsWidget-cb88da32.js";import{T as W}from"./TextWithCopyButton-4f462743.js";import{g as Z}from"./dataplane-30467516.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import"./CopyButton-2ebae850.js";const G={class:"variable-columns"},H=h({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(_){const t=_,{t:o}=w(),y=[{hash:"#overview",title:o("zone-egresses.routes.item.tabs.overview")},{hash:"#insights",title:o("zone-egresses.routes.item.tabs.insights")},{hash:"#xds-configuration",title:o("zone-egresses.routes.item.tabs.xds_configuration")},{hash:"#envoy-stats",title:o("zone-egresses.routes.item.tabs.stats")},{hash:"#envoy-clusters",title:o("zone-egresses.routes.item.tabs.clusters")}],m=b(()=>Z(t.zoneEgressOverview.zoneEgressInsight)),d=b(()=>{var l;const p=((l=t.zoneEgressOverview.zoneEgressInsight)==null?void 0:l.subscriptions)??[];return Array.from(p).reverse()});return(p,l)=>{const E=x("RouterLink");return a(),i(R,{tabs:y},{overview:e(()=>[s(r(u),null,{body:e(()=>[f("div",G,[s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.status")),1)]),body:e(()=>[s(I,{status:m.value},null,8,["status"])]),_:1}),n(),s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.name")),1)]),body:e(()=>[s(W,{text:t.zoneEgressOverview.name},{default:e(()=>[s(E,{to:{name:"zone-egress-detail-view",params:{zoneEgress:t.zoneEgressOverview.name}}},{default:e(()=>[n(c(t.zoneEgressOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),n(),s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.type")),1)]),body:e(()=>[n(c(t.zoneEgressOverview.type),1)]),_:1})])]),_:1})]),insights:e(()=>[s(r(u),null,{body:e(()=>[s(A,{"initially-open":0},{default:e(()=>[(a(!0),O(B,null,S(d.value,(z,k)=>(a(),i(D,{key:k},{"accordion-header":e(()=>[s($,{subscription:z},null,8,["subscription"])]),"accordion-content":e(()=>[s(q,{subscription:z,"is-discovery-subscription":""},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),"xds-configuration":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"xds","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),"envoy-stats":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"stats","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),"envoy-clusters":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"clusters","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),_:1})}}}),te=h({__name:"ZoneEgressDetailView",setup(_){const{t}=w();return(o,y)=>(a(),i(N,{name:"zone-egress-detail-view","data-testid":"zone-egress-detail-view"},{default:e(({route:m})=>[s(T,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:r(t)("zone-egresses.routes.item.breadcrumbs")}]},{title:e(()=>[f("h1",null,[s(j,{title:r(t)("zone-egresses.routes.item.title",{name:m.params.zoneEgress}),render:!0},null,8,["title"])])]),default:e(()=>[n(),s(C,{src:`/zone-egresses/${m.params.zoneEgress}`},{default:e(({data:d,isLoading:p,error:l})=>[p?(a(),i(V,{key:0})):l!==void 0?(a(),i(L,{key:1,error:l},null,8,["error"])):d===void 0?(a(),i(F,{key:2})):(a(),i(H,{key:3,"zone-egress-overview":d,"data-testid":"detail-view-details"},null,8,["zone-egress-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{te as default}; +import{d as h,c as b,r as x,o as a,a as i,w as e,h as s,b as r,G as u,q as f,g as n,t as c,e as O,F as B,s as S}from"./index-3bdd7748.js";import{a as A,A as D,S as $,b as q}from"./SubscriptionHeader-ddfced4a.js";import{g as w,D as g,S as I,A as T,o as C,p as V,E as L,q as F,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{E as v}from"./EnvoyData-07b5f6c5.js";import{T as R}from"./TabsWidget-1f2b437c.js";import{T as W}from"./TextWithCopyButton-f3a4a3be.js";import{g as Z}from"./dataplane-30467516.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import"./CopyButton-ae4c9de6.js";const G={class:"variable-columns"},H=h({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(_){const t=_,{t:o}=w(),y=[{hash:"#overview",title:o("zone-egresses.routes.item.tabs.overview")},{hash:"#insights",title:o("zone-egresses.routes.item.tabs.insights")},{hash:"#xds-configuration",title:o("zone-egresses.routes.item.tabs.xds_configuration")},{hash:"#envoy-stats",title:o("zone-egresses.routes.item.tabs.stats")},{hash:"#envoy-clusters",title:o("zone-egresses.routes.item.tabs.clusters")}],m=b(()=>Z(t.zoneEgressOverview.zoneEgressInsight)),d=b(()=>{var l;const p=((l=t.zoneEgressOverview.zoneEgressInsight)==null?void 0:l.subscriptions)??[];return Array.from(p).reverse()});return(p,l)=>{const E=x("RouterLink");return a(),i(R,{tabs:y},{overview:e(()=>[s(r(u),null,{body:e(()=>[f("div",G,[s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.status")),1)]),body:e(()=>[s(I,{status:m.value},null,8,["status"])]),_:1}),n(),s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.name")),1)]),body:e(()=>[s(W,{text:t.zoneEgressOverview.name},{default:e(()=>[s(E,{to:{name:"zone-egress-detail-view",params:{zoneEgress:t.zoneEgressOverview.name}}},{default:e(()=>[n(c(t.zoneEgressOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),n(),s(g,null,{title:e(()=>[n(c(r(o)("http.api.property.type")),1)]),body:e(()=>[n(c(t.zoneEgressOverview.type),1)]),_:1})])]),_:1})]),insights:e(()=>[s(r(u),null,{body:e(()=>[s(A,{"initially-open":0},{default:e(()=>[(a(!0),O(B,null,S(d.value,(z,k)=>(a(),i(D,{key:k},{"accordion-header":e(()=>[s($,{subscription:z},null,8,["subscription"])]),"accordion-content":e(()=>[s(q,{subscription:z,"is-discovery-subscription":""},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),"xds-configuration":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"xds","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),"envoy-stats":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"stats","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),"envoy-clusters":e(()=>[s(r(u),null,{body:e(()=>[s(v,{"data-path":"clusters","zone-egress-name":t.zoneEgressOverview.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})]),_:1})}}}),te=h({__name:"ZoneEgressDetailView",setup(_){const{t}=w();return(o,y)=>(a(),i(N,{name:"zone-egress-detail-view","data-testid":"zone-egress-detail-view"},{default:e(({route:m})=>[s(T,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:r(t)("zone-egresses.routes.item.breadcrumbs")}]},{title:e(()=>[f("h1",null,[s(j,{title:r(t)("zone-egresses.routes.item.title",{name:m.params.zoneEgress}),render:!0},null,8,["title"])])]),default:e(()=>[n(),s(C,{src:`/zone-egresses/${m.params.zoneEgress}`},{default:e(({data:d,isLoading:p,error:l})=>[p?(a(),i(V,{key:0})):l!==void 0?(a(),i(L,{key:1,error:l},null,8,["error"])):d===void 0?(a(),i(F,{key:2})):(a(),i(H,{key:3,"zone-egress-overview":d,"data-testid":"detail-view-details"},null,8,["zone-egress-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{te as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-562f876a.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-55f524b1.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-562f876a.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-55f524b1.js index 1e4b883f7499..2beab95fad44 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-562f876a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-55f524b1.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,V as C,D as E,v as x,H as A}from"./index-c92949c1.js";import{A as L}from"./AppCollection-fdcc3e8a.js";import{g as N,A as B,o as I,S as R,_ as S,f as $}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{g as q}from"./dataplane-30467516.js";const D=w({__name:"ZoneEgressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const n=g,{t:r}=N();function f(p){return p.map(l=>{const{name:i}=l,c={name:"zone-egress-detail-view",params:{zoneEgress:i}},o=q(l.zoneEgressInsight??{});return{detailViewRoute:c,name:i,status:o}})}return(p,l)=>{const i=v("RouterLink");return m(),_(S,{name:"zone-egress-list-view"},{default:e(({route:c})=>[t(B,null,{title:e(()=>[k("h1",null,[t(T,{title:s(r)("zone-egresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[u(),t(I,{src:`/zone-egresses?size=${n.size}&page=${n.page}`},{default:e(({data:o,error:b})=>[t(s(h),null,{body:e(()=>[t(L,{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(),_(R,{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(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(A),{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 J=$(D,[["__scopeId","data-v-a6e152b9"]]);export{J 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,V as C,D as E,v as x,H as A}from"./index-3bdd7748.js";import{A as L}from"./AppCollection-81ee7359.js";import{g as N,A as B,o as I,S as R,_ as S,f as $}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as T}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{g as q}from"./dataplane-30467516.js";const D=w({__name:"ZoneEgressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const n=g,{t:r}=N();function f(p){return p.map(l=>{const{name:i}=l,c={name:"zone-egress-detail-view",params:{zoneEgress:i}},o=q(l.zoneEgressInsight??{});return{detailViewRoute:c,name:i,status:o}})}return(p,l)=>{const i=v("RouterLink");return m(),_(S,{name:"zone-egress-list-view"},{default:e(({route:c})=>[t(B,null,{title:e(()=>[k("h1",null,[t(T,{title:s(r)("zone-egresses.routes.items.title"),render:!0},null,8,["title"])])]),default:e(()=>[u(),t(I,{src:`/zone-egresses?size=${n.size}&page=${n.page}`},{default:e(({data:o,error:b})=>[t(s(h),null,{body:e(()=>[t(L,{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(),_(R,{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(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(A),{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 J=$(D,[["__scopeId","data-v-a6e152b9"]]);export{J as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-5e1338dd.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-b9d2e292.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-5e1338dd.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-b9d2e292.js index 3687bddd1cf1..640d0b986f0c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-5e1338dd.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-b9d2e292.js @@ -1 +1 @@ -import{d as h,c as b,r as x,o as a,a as i,w as e,h as s,b as n,G as u,q as f,g as o,t as c,e as O,F as B,s as S}from"./index-c92949c1.js";import{a as A,A as D,S as $,b as q}from"./SubscriptionHeader-910c3ab4.js";import{g as w,D as g,S as T,A as C,o as E,p as V,E as L,q as F,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{E as v}from"./EnvoyData-28992b07.js";import{T as R}from"./TabsWidget-cb88da32.js";import{T as W}from"./TextWithCopyButton-4f462743.js";import{g as Z}from"./dataplane-30467516.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-be60878f.js";import"./CopyButton-2ebae850.js";const G={class:"variable-columns"},H=h({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(_){const t=_,{t:r}=w(),y=[{hash:"#overview",title:r("zone-ingresses.routes.item.tabs.overview")},{hash:"#insights",title:r("zone-ingresses.routes.item.tabs.insights")},{hash:"#xds-configuration",title:r("zone-ingresses.routes.item.tabs.xds_configuration")},{hash:"#envoy-stats",title:r("zone-ingresses.routes.item.tabs.stats")},{hash:"#envoy-clusters",title:r("zone-ingresses.routes.item.tabs.clusters")}],m=b(()=>Z(t.zoneIngressOverview.zoneIngressInsight)),d=b(()=>{var l;const p=((l=t.zoneIngressOverview.zoneIngressInsight)==null?void 0:l.subscriptions)??[];return Array.from(p).reverse()});return(p,l)=>{const I=x("RouterLink");return a(),i(R,{tabs:y},{overview:e(()=>[s(n(u),null,{body:e(()=>[f("div",G,[s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.status")),1)]),body:e(()=>[s(T,{status:m.value},null,8,["status"])]),_:1}),o(),s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.name")),1)]),body:e(()=>[s(W,{text:t.zoneIngressOverview.name},{default:e(()=>[s(I,{to:{name:"zone-ingress-detail-view",params:{zoneIngress:t.zoneIngressOverview.name}}},{default:e(()=>[o(c(t.zoneIngressOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),o(),s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.type")),1)]),body:e(()=>[o(c(t.zoneIngressOverview.type),1)]),_:1})])]),_:1})]),insights:e(()=>[s(n(u),null,{body:e(()=>[s(A,{"initially-open":0},{default:e(()=>[(a(!0),O(B,null,S(d.value,(z,k)=>(a(),i(D,{key:k},{"accordion-header":e(()=>[s($,{subscription:z},null,8,["subscription"])]),"accordion-content":e(()=>[s(q,{subscription:z,"is-discovery-subscription":""},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),"xds-configuration":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"xds","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),"envoy-stats":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"stats","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),"envoy-clusters":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"clusters","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),_:1})}}}),te=h({__name:"ZoneIngressDetailView",setup(_){const{t}=w();return(r,y)=>(a(),i(N,{name:"zone-ingress-detail-view","data-testid":"zone-ingress-detail-view"},{default:e(({route:m})=>[s(C,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:n(t)("zone-ingresses.routes.item.breadcrumbs")}]},{title:e(()=>[f("h1",null,[s(j,{title:n(t)("zone-ingresses.routes.item.title",{name:m.params.zoneIngress}),render:!0},null,8,["title"])])]),default:e(()=>[o(),s(E,{src:`/zone-ingresses/${m.params.zoneIngress}`},{default:e(({data:d,isLoading:p,error:l})=>[p?(a(),i(V,{key:0})):l!==void 0?(a(),i(L,{key:1,error:l},null,8,["error"])):d===void 0?(a(),i(F,{key:2})):(a(),i(H,{key:3,"zone-ingress-overview":d,"data-testid":"detail-view-details"},null,8,["zone-ingress-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{te as default}; +import{d as h,c as b,r as x,o as a,a as i,w as e,h as s,b as n,G as u,q as f,g as o,t as c,e as O,F as B,s as S}from"./index-3bdd7748.js";import{a as A,A as D,S as $,b as q}from"./SubscriptionHeader-ddfced4a.js";import{g as w,D as g,S as T,A as C,o as E,p as V,E as L,q as F,_ as N}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{E as v}from"./EnvoyData-07b5f6c5.js";import{T as R}from"./TabsWidget-1f2b437c.js";import{T as W}from"./TextWithCopyButton-f3a4a3be.js";import{g as Z}from"./dataplane-30467516.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-33acb36c.js";import"./CopyButton-ae4c9de6.js";const G={class:"variable-columns"},H=h({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(_){const t=_,{t:r}=w(),y=[{hash:"#overview",title:r("zone-ingresses.routes.item.tabs.overview")},{hash:"#insights",title:r("zone-ingresses.routes.item.tabs.insights")},{hash:"#xds-configuration",title:r("zone-ingresses.routes.item.tabs.xds_configuration")},{hash:"#envoy-stats",title:r("zone-ingresses.routes.item.tabs.stats")},{hash:"#envoy-clusters",title:r("zone-ingresses.routes.item.tabs.clusters")}],m=b(()=>Z(t.zoneIngressOverview.zoneIngressInsight)),d=b(()=>{var l;const p=((l=t.zoneIngressOverview.zoneIngressInsight)==null?void 0:l.subscriptions)??[];return Array.from(p).reverse()});return(p,l)=>{const I=x("RouterLink");return a(),i(R,{tabs:y},{overview:e(()=>[s(n(u),null,{body:e(()=>[f("div",G,[s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.status")),1)]),body:e(()=>[s(T,{status:m.value},null,8,["status"])]),_:1}),o(),s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.name")),1)]),body:e(()=>[s(W,{text:t.zoneIngressOverview.name},{default:e(()=>[s(I,{to:{name:"zone-ingress-detail-view",params:{zoneIngress:t.zoneIngressOverview.name}}},{default:e(()=>[o(c(t.zoneIngressOverview.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),_:1}),o(),s(g,null,{title:e(()=>[o(c(n(r)("http.api.property.type")),1)]),body:e(()=>[o(c(t.zoneIngressOverview.type),1)]),_:1})])]),_:1})]),insights:e(()=>[s(n(u),null,{body:e(()=>[s(A,{"initially-open":0},{default:e(()=>[(a(!0),O(B,null,S(d.value,(z,k)=>(a(),i(D,{key:k},{"accordion-header":e(()=>[s($,{subscription:z},null,8,["subscription"])]),"accordion-content":e(()=>[s(q,{subscription:z,"is-discovery-subscription":""},null,8,["subscription"])]),_:2},1024))),128))]),_:1})]),_:1})]),"xds-configuration":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"xds","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),"envoy-stats":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"stats","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),"envoy-clusters":e(()=>[s(n(u),null,{body:e(()=>[s(v,{"data-path":"clusters","zone-ingress-name":t.zoneIngressOverview.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})]),_:1})}}}),te=h({__name:"ZoneIngressDetailView",setup(_){const{t}=w();return(r,y)=>(a(),i(N,{name:"zone-ingress-detail-view","data-testid":"zone-ingress-detail-view"},{default:e(({route:m})=>[s(C,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:n(t)("zone-ingresses.routes.item.breadcrumbs")}]},{title:e(()=>[f("h1",null,[s(j,{title:n(t)("zone-ingresses.routes.item.title",{name:m.params.zoneIngress}),render:!0},null,8,["title"])])]),default:e(()=>[o(),s(E,{src:`/zone-ingresses/${m.params.zoneIngress}`},{default:e(({data:d,isLoading:p,error:l})=>[p?(a(),i(V,{key:0})):l!==void 0?(a(),i(L,{key:1,error:l},null,8,["error"])):d===void 0?(a(),i(F,{key:2})):(a(),i(H,{key:3,"zone-ingress-overview":d,"data-testid":"detail-view-details"},null,8,["zone-ingress-overview"]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{te as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-a4a1aec9.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-91803880.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-a4a1aec9.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-91803880.js index 7264960a48da..f46db2e87920 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-a4a1aec9.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-91803880.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 V,F as I,V as C,D as S,v as x,H as A}from"./index-c92949c1.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-185be380.js";import{A as N}from"./AppCollection-fdcc3e8a.js";import{g as $,e as B,A as R,o as T,S as q,_ as D,f as F}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{_ as Z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";import{g as E}from"./dataplane-30467516.js";const G=w({__name:"ZoneIngressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const i=g,{t:c}=$(),f=B();function b(_){return _.map(m=>{const{name:r}=m,u={name:"zone-ingress-detail-view",params:{zoneIngress:r}},o=E(m.zoneIngressInsight??{});return{detailViewRoute:u,name:r,status:o}})}return(_,m)=>{const r=v("RouterLink");return n(),l(D,{name:"zone-ingress-list-view"},{default:e(({route:u})=>[t(R,null,{title:e(()=>[y("h1",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(L,{key:0})):(n(),l(T,{key:1,src:`/zone-ingresses?size=${i.size}&page=${i.page}`},{default:e(({data:o,error:z})=>[t(s(h),null,{body:e(()=>[t(N,{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(q,{key:0,status:a},null,8,["status"])):(n(),V(I,{key:1},[p(d(s(c)("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(S),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(A),{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 P=F(G,[["__scopeId","data-v-782687c6"]]);export{P 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 V,F as I,V as C,D as S,v as x,H as A}from"./index-3bdd7748.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-57bc485a.js";import{A as N}from"./AppCollection-81ee7359.js";import{g as $,e as B,A as R,o as T,S as q,_ as D,f as F}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{_ as Z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";import{g as E}from"./dataplane-30467516.js";const G=w({__name:"ZoneIngressListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(g){const i=g,{t:c}=$(),f=B();function b(_){return _.map(m=>{const{name:r}=m,u={name:"zone-ingress-detail-view",params:{zoneIngress:r}},o=E(m.zoneIngressInsight??{});return{detailViewRoute:u,name:r,status:o}})}return(_,m)=>{const r=v("RouterLink");return n(),l(D,{name:"zone-ingress-list-view"},{default:e(({route:u})=>[t(R,null,{title:e(()=>[y("h1",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(L,{key:0})):(n(),l(T,{key:1,src:`/zone-ingresses?size=${i.size}&page=${i.page}`},{default:e(({data:o,error:z})=>[t(s(h),null,{body:e(()=>[t(N,{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(q,{key:0,status:a},null,8,["status"])):(n(),V(I,{key:1},[p(d(s(c)("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(S),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:e(()=>[t(s(x),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:e(()=>[t(s(A),{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 P=F(G,[["__scopeId","data-v-782687c6"]]);export{P as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-55cb5f21.js b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-842a8b7a.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/ZoneListView-55cb5f21.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneListView-842a8b7a.js index 119b08f6cb2a..d725f2776cea 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-55cb5f21.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-842a8b7a.js @@ -1 +1 @@ -import{d as L,j as N,o as i,a as c,w as t,z as T,g as a,b as e,M as I,f as S,X as O,r as K,h as s,B as P,q as h,G as W,t as l,e as A,F as Z,L as G,v as $,V as U,D as B,H as D}from"./index-c92949c1.js";import{_ as j}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-185be380.js";import{r as H,g as J,m as X,e as Y,A as Q,o as ee,S as te,_ as oe,s as ne,f as ae}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{A as se}from"./AppCollection-fdcc3e8a.js";import{_ as ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ef4fc5d2.js";const le=L({__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 r=C,o=N(!1);async function w(){o.value=!1;try{await r.deleteFunction(),d("delete")}catch{o.value=!0}}return(p,m)=>(i(),c(e(O),{"action-button-text":r.actionButtonText,"confirmation-text":r.confirmationText,"is-visible":r.isVisible,"modal-id":r.modalId,title:r.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:m[0]||(m[0]=_=>d("cancel")),onProceed:w},{"body-content":t(()=>[T(p.$slots,"body-content"),a(),o.value?(i(),c(e(I),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:t(()=>[T(p.$slots,"error")]),_:3})):S("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),re=L({__name:"ZoneListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(C){const d=C,r=H(),{t:o}=J(),w=X(),p=Y(),m=N(!1),_=N("");function q(b){return b.map(g=>{var M;const{name:y}=g,V={name:"zone-cp-detail-view",params:{zone:y}};let u="",v="kubernetes",k=!0;(((M=g.zoneInsight)==null?void 0:M.subscriptions)??[]).forEach(f=>{if(f.version&&f.version.kumaCp){u=f.version.kumaCp.version;const{kumaCpGlobalCompatible:F=!0}=f.version.kumaCp;k=F}f.config&&(v=JSON.parse(f.config).environment)});const z=ne(g);return{detailViewRoute:V,name:y,status:z,zoneCpVersion:u,type:v,warnings:!k}})}async function E(){await w.deleteZone({name:_.value})}function x(){m.value=!m.value}function R(b){x(),_.value=b}return(b,g)=>{const y=K("RouterLink");return i(),c(oe,{name:"zone-cp-list-view"},{default:t(({route:V})=>[s(Q,null,P({title:t(()=>[h("h1",null,[s(ie,{title:e(o)("zone-cps.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[a(),a(),e(p).getters["config/getMulticlusterStatus"]===!1?(i(),c(j,{key:0})):(i(),c(ee,{key:1,src:`/zone-cps?size=${d.size}&page=${d.page}`},{default:t(({data:u,error:v,refresh:k})=>[s(e(W),null,{body:t(()=>[s(se,{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?q(u.items):void 0,error:v,onChange:V.update},{name:t(({row:n,rowValue:z})=>[s(y,{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?(i(),c(te,{key:0,status:n},null,8,["status"])):(i(),A(Z,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),warnings:t(({rowValue:n})=>[n?(i(),c(e(G),{key:0,label:e(o)("zone-cps.list.version_mismatch")},{default:t(()=>[s(e($),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(i(),A(Z,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),actions:t(({row:n})=>[s(e(U),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[s(e(B),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[s(e($),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[s(e(D),{item:{to:n.detailViewRoute,label:e(o)("common.collection.actions.view")}},null,8,["item"]),a(),e(r)("KUMA_ZONE_CREATION_FLOW")==="enabled"?(i(),c(e(D),{key:0,"has-divider":"","is-dangerous":"","data-testid":"dropdown-delete-item",onClick:z=>R(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?(i(),c(le,{key:0,"confirmation-text":_.value,"delete-function":E,"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:x,onDelete:()=>{x(),k()}},{"body-content":t(()=>[h("p",null,l(e(o)("zones.delete.confirmModal.text1",{zoneName:_.value})),1),a(),h("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},[e(r)("KUMA_ZONE_CREATION_FLOW")==="enabled"&&e(p).getters["config/getMulticlusterStatus"]?{name:"actions",fn:t(()=>[s(e(B),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"},"data-testid":"create-zone-link"},{default:t(()=>[a(l(e(o)("zones.index.create")),1)]),_:1})]),key:"0"}:void 0]),1024)]),_:1})}}});const fe=ae(re,[["__scopeId","data-v-bf5d087e"]]);export{fe as default}; +import{d as L,j as N,o as i,a as c,w as t,z as T,g as a,b as e,M as I,f as S,X as O,r as K,h as s,B as P,q as h,G as W,t as l,e as A,F as Z,L as G,v as $,V as U,D as B,H as D}from"./index-3bdd7748.js";import{_ as j}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-57bc485a.js";import{r as H,g as J,m as X,e as Y,A as Q,o as ee,S as te,_ as oe,s as ne,f as ae}from"./RouteView.vue_vue_type_script_setup_true_lang-062fa58d.js";import{A as se}from"./AppCollection-81ee7359.js";import{_ as ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-ec3404bb.js";const le=L({__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 r=C,o=N(!1);async function w(){o.value=!1;try{await r.deleteFunction(),d("delete")}catch{o.value=!0}}return(p,m)=>(i(),c(e(O),{"action-button-text":r.actionButtonText,"confirmation-text":r.confirmationText,"is-visible":r.isVisible,"modal-id":r.modalId,title:r.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:m[0]||(m[0]=_=>d("cancel")),onProceed:w},{"body-content":t(()=>[T(p.$slots,"body-content"),a(),o.value?(i(),c(e(I),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:t(()=>[T(p.$slots,"error")]),_:3})):S("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),re=L({__name:"ZoneListView",props:{page:{type:Number,required:!0},size:{type:Number,required:!0}},setup(C){const d=C,r=H(),{t:o}=J(),w=X(),p=Y(),m=N(!1),_=N("");function q(b){return b.map(g=>{var M;const{name:y}=g,V={name:"zone-cp-detail-view",params:{zone:y}};let u="",v="kubernetes",k=!0;(((M=g.zoneInsight)==null?void 0:M.subscriptions)??[]).forEach(f=>{if(f.version&&f.version.kumaCp){u=f.version.kumaCp.version;const{kumaCpGlobalCompatible:F=!0}=f.version.kumaCp;k=F}f.config&&(v=JSON.parse(f.config).environment)});const z=ne(g);return{detailViewRoute:V,name:y,status:z,zoneCpVersion:u,type:v,warnings:!k}})}async function E(){await w.deleteZone({name:_.value})}function x(){m.value=!m.value}function R(b){x(),_.value=b}return(b,g)=>{const y=K("RouterLink");return i(),c(oe,{name:"zone-cp-list-view"},{default:t(({route:V})=>[s(Q,null,P({title:t(()=>[h("h1",null,[s(ie,{title:e(o)("zone-cps.routes.items.title"),render:!0},null,8,["title"])])]),default:t(()=>[a(),a(),e(p).getters["config/getMulticlusterStatus"]===!1?(i(),c(j,{key:0})):(i(),c(ee,{key:1,src:`/zone-cps?size=${d.size}&page=${d.page}`},{default:t(({data:u,error:v,refresh:k})=>[s(e(W),null,{body:t(()=>[s(se,{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?q(u.items):void 0,error:v,onChange:V.update},{name:t(({row:n,rowValue:z})=>[s(y,{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?(i(),c(te,{key:0,status:n},null,8,["status"])):(i(),A(Z,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),warnings:t(({rowValue:n})=>[n?(i(),c(e(G),{key:0,label:e(o)("zone-cps.list.version_mismatch")},{default:t(()=>[s(e($),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"20","hide-title":""})]),_:1},8,["label"])):(i(),A(Z,{key:1},[a(l(e(o)("common.collection.none")),1)],64))]),actions:t(({row:n})=>[s(e(U),{class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:t(()=>[s(e(B),{class:"non-visual-button",appearance:"secondary",size:"small"},{icon:t(()=>[s(e($),{color:"var(--black-400)",icon:"more",size:"16"})]),_:1})]),items:t(()=>[s(e(D),{item:{to:n.detailViewRoute,label:e(o)("common.collection.actions.view")}},null,8,["item"]),a(),e(r)("KUMA_ZONE_CREATION_FLOW")==="enabled"?(i(),c(e(D),{key:0,"has-divider":"","is-dangerous":"","data-testid":"dropdown-delete-item",onClick:z=>R(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?(i(),c(le,{key:0,"confirmation-text":_.value,"delete-function":E,"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:x,onDelete:()=>{x(),k()}},{"body-content":t(()=>[h("p",null,l(e(o)("zones.delete.confirmModal.text1",{zoneName:_.value})),1),a(),h("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},[e(r)("KUMA_ZONE_CREATION_FLOW")==="enabled"&&e(p).getters["config/getMulticlusterStatus"]?{name:"actions",fn:t(()=>[s(e(B),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"},"data-testid":"create-zone-link"},{default:t(()=>[a(l(e(o)("zones.index.create")),1)]),_:1})]),key:"0"}:void 0]),1024)]),_:1})}}});const fe=ae(re,[["__scopeId","data-v-bf5d087e"]]);export{fe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-98724457.js b/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-86d9c9bd.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-98724457.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-86d9c9bd.js index ebb99c07dbcd..89d024b1dc2e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-98724457.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneTabsView-86d9c9bd.js @@ -1 +1 @@ -import{g as m,e as c,A as p,_}from"./RouteView.vue_vue_type_script_setup_true_lang-1a4646e6.js";import{N as g}from"./NavTabs-a631bf3c.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-c92949c1.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-062fa58d.js";import{N as g}from"./NavTabs-e94a1083.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-3bdd7748.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-c92949c1.js b/app/kuma-ui/pkg/resources/data/assets/index-3bdd7748.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/index-c92949c1.js rename to app/kuma-ui/pkg/resources/data/assets/index-3bdd7748.js index 38ed2b9cf360..50ab4932ac58 100644 --- a/app/kuma-ui/pkg/resources/data/assets/index-c92949c1.js +++ b/app/kuma-ui/pkg/resources/data/assets/index-3bdd7748.js @@ -1,4 +1,4 @@ -var _b=Object.defineProperty;var Db=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ct=(e,t,n)=>(Db(e,typeof t!="symbol"?t+"":t,n),n),rc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var re=(e,t,n)=>(rc(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)=>(rc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ve=(e,t,n)=>(rc(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 Mb="modulepreload",Tb=function(e,t){return e[0]==="."?new URL(e,t).href:e},wf={},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=Tb(o,r),o in wf)return;wf[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":Mb,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 J0(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=()=>{},Ab=()=>!1,Ob=/^on[^a-z]/,bu=e=>Ob.test(e),eh=e=>e.startsWith("onUpdate:"),Ot=Object.assign,th=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pb=Object.prototype.hasOwnProperty,at=(e,t)=>Pb.call(e,t),Be=Array.isArray,Co=e=>wu(e)==="[object Map]",sv=e=>wu(e)==="[object Set]",Ke=e=>typeof e=="function",Pt=e=>typeof e=="string",nh=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",lv=e=>bt(e)&&Ke(e.then)&&Ke(e.catch),uv=Object.prototype.toString,wu=e=>uv.call(e),Ib=e=>wu(e).slice(8,-1),cv=e=>wu(e)==="[object Object]",rh=e=>Pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,il=J0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ku=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bb=/-(\w)/g,fr=ku(e=>e.replace(Bb,(t,n)=>n?n.toUpperCase():"")),Nb=/\B([A-Z])/g,Ga=ku(e=>e.replace(Nb,"-$1").toLowerCase()),Cu=ku(e=>e.charAt(0).toUpperCase()+e.slice(1)),sl=ku(e=>e?`on${Cu(e)}`:""),es=(e,t)=>!Object.is(e,t),ll=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},nd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Lb=e=>{const t=Pt(e)?Number(e):NaN;return isNaN(t)?e:t};let kf;const rd=()=>kf||(kf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(Be(e)){const t={};for(let n=0;n{if(n){const r=n.split($b);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Pt(e))t=e;else if(Be(e))for(let n=0;nPt(e)?e:e==null?"":Be(e)||bt(e)&&(e.toString===uv||!Ke(e.toString))?JSON.stringify(e,hv,2):String(e),hv=(e,t)=>t&&t.__v_isRef?hv(e,t.value):Co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:sv(t)?{[`Set(${t.size})`]:[...t.values()]}:bt(t)&&!Be(t)&&!cv(t)?String(t):t;let bn;class fv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=bn;try{return bn=this,t()}finally{bn=n}}}on(){bn=this}off(){bn=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},mv=e=>(e.w&fa)>0,vv=e=>(e.n&fa)>0,Vb=({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":Be(e)?rh(n)&&s.push(i.get("length")):(s.push(i.get(Ha)),Co(e)&&s.push(i.get(od)));break;case"delete":Be(e)||(s.push(i.get(Ha)),Co(e)&&s.push(i.get(od)));break;case"set":Co(e)&&s.push(i.get(Ha));break}if(s.length===1)s[0]&&id(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);id(ah(l))}}function id(e,t){const n=Be(e)?e:[...e];for(const r of n)r.computed&&Ef(r);for(const r of n)r.computed||Ef(r)}function Ef(e,t){(e!==Zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Gb(e,t){var n;return(n=Dl.get(e))==null?void 0:n.get(t)}const Wb=J0("__proto__,__v_isRef,__isVue"),bv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nh)),qb=ih(),Qb=ih(!1,!0),Xb=ih(!0),xf=Jb();function Jb(){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 e3(e){const t=tt(this);return fn(t,"has",e),t.hasOwnProperty(e)}function ih(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?v3:xv:t?Ev:Cv).get(r))return r;const i=Be(r);if(!e){if(i&&at(xf,a))return Reflect.get(xf,a,o);if(a==="hasOwnProperty")return e3}const s=Reflect.get(r,a,o);return(nh(a)?bv.has(a):Wb(a))||(e||fn(r,"get",a),t)?s:Vt(s)?i&&rh(a)?s:s.value:bt(s)?e?_v(s):zr(s):s}}const t3=wv(),n3=wv(!0);function wv(e=!1){return function(n,r,a,o){let i=n[r];if(za(i)&&Vt(i)&&!Vt(a))return!1;if(!e&&(!Ml(a)&&!za(a)&&(i=tt(i),a=tt(a)),!Be(n)&&Vt(i)&&!Vt(a)))return i.value=a,!0;const s=Be(n)&&rh(r)?Number(r)e,Eu=e=>Reflect.getPrototypeOf(e);function Rs(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}=Eu(a),s=r?sh:n?ch:ts;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 $s(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 Hs(e,t=!1){return e=e.__v_raw,!t&&fn(tt(e),"iterate",Ha),Reflect.get(e,"size",e)}function Sf(e){e=tt(e);const t=tt(this);return Eu(t).has.call(t,e)||(t.add(e),Rr(t,"add",e,e)),this}function _f(e,t){t=tt(t);const n=tt(this),{has:r,get:a}=Eu(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?es(t,i)&&Rr(n,"set",e,t):Rr(n,"add",e,t),this}function Df(e){const t=tt(this),{has:n,get:r}=Eu(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 Mf(){const e=tt(this),t=e.size!==0,n=e.clear();return t&&Rr(e,"clear",void 0,void 0),n}function Fs(e,t){return function(r,a){const o=this,i=o.__v_raw,s=tt(i),l=t?sh:e?ch:ts;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?sh:t?ch:ts;return!t&&fn(o,"iterate",l?od: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 l3(){const e={get(o){return Rs(this,o)},get size(){return Hs(this)},has:$s,add:Sf,set:_f,delete:Df,clear:Mf,forEach:Fs(!1,!1)},t={get(o){return Rs(this,o,!1,!0)},get size(){return Hs(this)},has:$s,add:Sf,set:_f,delete:Df,clear:Mf,forEach:Fs(!1,!0)},n={get(o){return Rs(this,o,!0)},get size(){return Hs(this,!0)},has(o){return $s.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Fs(!0,!1)},r={get(o){return Rs(this,o,!0,!0)},get size(){return Hs(this,!0)},has(o){return $s.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Fs(!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[u3,c3,d3,h3]=l3();function lh(e,t){const n=t?e?h3:d3:e?c3:u3;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 f3={get:lh(!1,!1)},p3={get:lh(!1,!0)},m3={get:lh(!0,!1)},Cv=new WeakMap,Ev=new WeakMap,xv=new WeakMap,v3=new WeakMap;function g3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function y3(e){return e.__v_skip||!Object.isExtensible(e)?0:g3(Ib(e))}function zr(e){return za(e)?e:uh(e,!1,kv,f3,Cv)}function Sv(e){return uh(e,!1,s3,p3,Ev)}function _v(e){return uh(e,!0,i3,m3,xv)}function uh(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=y3(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 Ml(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 Mv(e){return _l(e,"__v_skip",!0),e}const ts=e=>bt(e)?zr(e):e,ch=e=>bt(e)?_v(e):e;function Tv(e){ua&&Zn&&(e=tt(e),yv(e.dep||(e.dep=ah())))}function Av(e,t){e=tt(e);const n=e.dep;n&&id(n)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function j(e){return Ov(e,!1)}function b3(e){return Ov(e,!0)}function Ov(e,t){return Vt(e)?e:new w3(e,t)}class w3{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:ts(t)}get value(){return Tv(this),this._value}set value(t){const n=this.__v_isShallow||Ml(t)||za(t);t=n?t:tt(t),es(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ts(t),Av(this))}}function he(e){return Vt(e)?e.value:e}const k3={get:(e,t,n)=>he(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 Pv(e){return Eo(e)?e:new Proxy(e,k3)}function C3(e){const t=Be(e)?new Array(e.length):{};for(const n in e)t[n]=x3(e,n);return t}class E3{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 Gb(tt(this._object),this._key)}}function x3(e,t,n){const r=e[t];return Vt(r)?r:new E3(e,t,n)}class S3{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 oh(t,()=>{this._dirty||(this._dirty=!0,Av(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tt(this);return Tv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function _3(e,t,n=!1){let r,a;const o=Ke(e);return o?(r=e,a=Vn):(r=e.get,a=e.set),new S3(r,a,o||!a,n)}function ca(e,t,n,r){let a;try{a=r?e(...r):e()}catch(o){xu(o,t,n)}return a}function Pn(e,t,n,r){if(Ke(e)){const o=ca(e,t,n,r);return o&&lv(o)&&o.catch(i=>{xu(i,t,n)}),o}const a=[];for(let o=0;o>>1;rs(Wt[r])cr&&Wt.splice(t,1)}function A3(e){Be(e)?xo.push(...e):(!Dr||!Dr.includes(e,e.allowRecurse?Aa+1:Aa))&&xo.push(e),Bv()}function Tf(e,t=ns?cr+1:0){for(;trs(n)-rs(r)),Aa=0;Aae.id==null?1/0:e.id,O3=(e,t)=>{const n=rs(e)-rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Lv(e){sd=!1,ns=!0,Wt.sort(O3);const t=Vn;try{for(cr=0;crPt(f)?f.trim():f)),d&&(a=n.map(nd))}let s,l=r[s=sl(t)]||r[s=sl(fr(t))];!l&&o&&(l=r[s=sl(Ga(t))]),l&&Pn(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,Pn(u,e,6,a)}}function Rv(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(!Ke(e)){const l=u=>{const c=Rv(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):(Be(o)?o.forEach(l=>i[l]=null):Ot(i,o),bt(e)&&r.set(e,i),i)}function Su(e,t){return!e||!bu(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,_u=null;function Tl(e){const t=Kt;return Kt=e,_u=e&&e.type.__scopeId||null,t}function Rn(e){_u=e}function $n(){_u=null}function z(e,t=Kt,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&zf(-1);const o=Tl(t);let i;try{i=e(...a)}finally{Tl(o),r._d&&zf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function ac(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=Tl(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:I3(l)}}catch(w){Hi.length=0,xu(w,e,1),v=G(Cn)}let m=v;if(p&&y!==!1){const w=Object.keys(p),{shapeFlag:M}=m;w.length&&M&7&&(i&&w.some(eh)&&(p=B3(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,Tl(b),v}const I3=e=>{let t;for(const n in e)(n==="class"||n==="style"||bu(n))&&((t||(t={}))[n]=e[n]);return t},B3=(e,t)=>{const n={};for(const r in e)(!eh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function N3(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?Af(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function $3(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):A3(e)}function $v(e,t){return Du(e,null,t)}function H3(e,t){return Du(e,null,{flush:"post"})}const js={};function Le(e,t,n){return Du(e,t,n)}function Du(e,t,{immediate:n,deep:r,flush:a,onTrack:o,onTrigger:i}=yt){var s;const l=pv()===((s=zt)==null?void 0:s.scope)?zt:null;let u,c=!1,d=!1;if(Vt(e)?(u=()=>e.value,c=Ml(e)):Eo(e)?(u=()=>e,r=!0):Be(e)?(d=!0,c=e.some(w=>Eo(w)||Ml(w)),u=()=>e.map(w=>{if(Vt(w))return w.value;if(Eo(w))return Ba(w);if(Ke(w))return ca(w,l,2)})):Ke(e)?t?u=()=>ca(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),Pn(e,l,3,[f])}:u=Vn,t&&r){const w=u;u=()=>Ba(w())}let h,f=w=>{h=b.onStop=()=>{ca(w,l,4)}},g;if(ss)if(f=Vn,t?n&&Pn(t,l,3,[u(),d?[]:void 0,f]):u(),a==="sync"){const w=D4();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Vn;let y=d?new Array(e.length).fill(js):js;const v=()=>{if(b.active)if(t){const w=b.run();(r||c||(d?w.some((M,B)=>es(M,y[B])):es(w,y)))&&(h&&h(),Pn(t,l,3,[w,y===js?void 0:d&&y[0]===js?[]: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=()=>hh(v));const b=new oh(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&&th(l.scope.effects,b)};return g&&g.push(m),m}function F3(e,t,n){const r=this.proxy,a=Pt(e)?e.includes(".")?Hv(r,e):()=>r[e]:e.bind(r,r);let o;Ke(t)?o=t:(o=t.handler,n=t);const i=zt;Lo(this);const s=Du(a,o.bind(r),n);return i?Lo(i):Fa(),s}function Hv(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{Ba(n,t)});else if(cv(e))for(const n in e)Ba(e[n],t);return e}function Al(e,t){const n=Kt;if(n===null)return e;const r=Pu(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const Sn=[Function,Array],zv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Sn,onEnter:Sn,onAfterEnter:Sn,onEnterCancelled:Sn,onBeforeLeave:Sn,onLeave:Sn,onAfterLeave:Sn,onLeaveCancelled:Sn,onBeforeAppear:Sn,onAppear:Sn,onAfterAppear:Sn,onAppearCancelled:Sn},z3={name:"BaseTransition",props:zv,setup(e,{slots:t}){const n=ws(),r=Fv();let a;return()=>{const o=t.default&&fh(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const y of o)if(y.type!==Cn){i=y;break}}const s=tt(e),{mode:l}=s;if(r.isLeaving)return oc(i);const u=Of(i);if(!u)return oc(i);const c=as(u,s,r,n);os(u,c);const d=n.subTree,h=d&&Of(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!==Cn&&(!Oa(u,h)||f)){const y=as(h,s,r,n);if(os(h,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},oc(i);l==="in-out"&&u.type!==Cn&&(y.delayLeave=(v,p,b)=>{const m=jv(r,h);m[String(h.key)]=h,v._leaveCb=()=>{p(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return i}}},j3=z3;function jv(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 as(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=jv(n,e),M=(D,x)=>{D&&Pn(D,r,9,x)},B=(D,x)=>{const C=x[1];M(D,x),Be(D)?D.every(A=>A.length<=1)&&C():D.length<=1&&C()},L={mode:o,persisted:i,beforeEnter(D){let x=s;if(!n.isMounted)if(a)x=y||s;else return;D._leaveCb&&D._leaveCb(!0);const C=w[m];C&&Oa(e,C)&&C.el._leaveCb&&C.el._leaveCb(),M(x,[D])},enter(D){let x=l,C=u,A=c;if(!n.isMounted)if(a)x=v||l,C=p||u,A=b||c;else return;let T=!1;const N=D._enterCb=ee=>{T||(T=!0,ee?M(A,[D]):M(C,[D]),L.delayedLeave&&L.delayedLeave(),D._enterCb=void 0)};x?B(x,[D,N]):N()},leave(D,x){const C=String(e.key);if(D._enterCb&&D._enterCb(!0),n.isUnmounting)return x();M(d,[D]);let A=!1;const T=D._leaveCb=N=>{A||(A=!0,x(),N?M(g,[D]):M(f,[D]),D._leaveCb=void 0,w[C]===e&&delete w[C])};w[C]=e,h?B(h,[D,T]):T()},clone(D){return as(D,t,n,r)}};return L}function oc(e){if(Mu(e))return e=$r(e),e.children=null,e}function Of(e){return Mu(e)?e.children?e.children[0]:void 0:e}function os(e,t){e.shapeFlag&6&&e.component?os(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fh(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 Li=e=>!!e.type.__asyncLoader,Mu=e=>e.type.__isKeepAlive;function U3(e,t){Uv(e,"a",t)}function Z3(e,t){Uv(e,"da",t)}function Uv(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;)Mu(a.parent.vnode)&&Y3(r,t,n,a),a=a.parent}}function Y3(e,t,n,r){const a=Tu(t,e,r,!0);gr(()=>{th(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=Pn(t,n,e,i);return Fa(),qo(),s});return r?a.unshift(o):a.push(o),o}}const jr=e=>(t,n=zt)=>(!ss||e==="sp")&&Tu(e,(...r)=>t(...r),n),V3=jr("bm"),ft=jr("m"),K3=jr("bu"),Zv=jr("u"),Wa=jr("bum"),gr=jr("um"),G3=jr("sp"),W3=jr("rtg"),q3=jr("rtc");function Q3(e,t=zt){Tu("ec",e,t)}const ph="components";function Gn(e,t){return Vv(ph,e,!0,t)||e}const Yv=Symbol.for("v-ndc");function va(e){return Pt(e)?Vv(ph,e,!1)||e:e||Yv}function Vv(e,t,n=!0,r=!1){const a=Kt||zt;if(a){const o=a.type;if(e===ph){const s=x4(o,!1);if(s&&(s===t||s===fr(t)||s===Cu(fr(t))))return o}const i=Pf(a[e]||o[e],t)||Pf(a.appContext[e],t);return!i&&r?o:i}}function Pf(e,t){return e&&(e[t]||e[fr(t)]||e[Cu(fr(t))])}function ot(e,t,n,r){let a;const o=n&&n[r];if(Be(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&&Li(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),k();const i=o&&Kv(o(n)),s=se(Ae,{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 Kv(e){return e.some(t=>Il(t)?!(t.type===Cn||t.type===Ae&&!Kv(t.children)):!0)?e:null}function ld(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sl(r)]=e[r];return n}const ud=e=>e?og(e)?Pu(e)||e.proxy:ud(e.parent):null,Ri=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=>ud(e.parent),$root:e=>ud(e.root),$emit:e=>e.emit,$options:e=>mh(e),$forceUpdate:e=>e.f||(e.f=()=>hh(e.update)),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>F3.bind(e)}),ic=(e,t)=>e!==yt&&!e.__isScriptSetup&&at(e,t),X3={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(ic(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];cd&&(i[t]=0)}}const c=Ri[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 ic(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)||ic(t,i)||(s=o[0])&&at(s,i)||at(r,i)||at(Ri,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 Gv().slots}function Xn(){return Gv().attrs}function Gv(){const e=ws();return e.setupContext||(e.setupContext=sg(e))}function If(e){return Be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cd=!0;function J3(e){const t=mh(e),n=e.proxy,r=e.ctx;cd=!1,t.beforeCreate&&Bf(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:M,renderTracked:B,renderTriggered:L,errorCaptured:D,serverPrefetch:x,expose:C,inheritAttrs:A,components:T,directives:N,filters:ee}=t;if(u&&e4(u,r,null),i)for(const Q in i){const ye=i[Q];Ke(ye)&&(r[Q]=ye.bind(n))}if(a){const Q=a.call(n,n);bt(Q)&&(e.data=zr(Q))}if(cd=!0,o)for(const Q in o){const ye=o[Q],_e=Ke(ye)?ye.bind(n,n):Ke(ye.get)?ye.get.bind(n,n):Vn,Re=!Ke(ye)&&Ke(ye.set)?ye.set.bind(n):Vn,Ze=I({get:_e,set:Re});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:ze=>Ze.value=ze})}if(s)for(const Q in s)Wv(s[Q],r,n,Q);if(l){const Q=Ke(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(ye=>{ul(ye,Q[ye])})}c&&Bf(c,e,"c");function oe(Q,ye){Be(ye)?ye.forEach(_e=>Q(_e.bind(n))):ye&&Q(ye.bind(n))}if(oe(V3,d),oe(ft,h),oe(K3,f),oe(Zv,g),oe(U3,y),oe(Z3,v),oe(Q3,D),oe(q3,B),oe(W3,L),oe(Wa,b),oe(gr,w),oe(G3,x),Be(C))if(C.length){const Q=e.exposed||(e.exposed={});C.forEach(ye=>{Object.defineProperty(Q,ye,{get:()=>n[ye],set:_e=>n[ye]=_e})})}else e.exposed||(e.exposed={});M&&e.render===Vn&&(e.render=M),A!=null&&(e.inheritAttrs=A),T&&(e.components=T),N&&(e.directives=N)}function e4(e,t,n=Vn){Be(e)&&(e=dd(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 Bf(e,t,n){Pn(Be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wv(e,t,n,r){const a=r.includes(".")?Hv(n,r):()=>n[r];if(Pt(e)){const o=t[e];Ke(o)&&Le(a,o)}else if(Ke(e))Le(a,e.bind(n));else if(bt(e))if(Be(e))e.forEach(o=>Wv(o,t,n,r));else{const o=Ke(e.handler)?e.handler.bind(n):t[e.handler];Ke(o)&&Le(a,o,e)}}function mh(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=>Ol(l,u,i,!0)),Ol(l,t,i)),bt(t)&&o.set(t,l),l}function Ol(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&Ol(e,o,n,!0),a&&a.forEach(i=>Ol(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const s=t4[i]||n&&n[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const t4={data:Nf,props:Lf,emits:Lf,methods:_i,computed:_i,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:_i,directives:_i,watch:r4,provide:Nf,inject:n4};function Nf(e,t){return t?e?function(){return Ot(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function n4(e,t){return _i(dd(e),dd(t))}function dd(e){if(Be(e)){const t={};for(let n=0;n1)return n&&Ke(t)?t.call(r&&r.proxy):t}}function i4(e,t,n,r=!1){const a={},o={};_l(o,Ou,1),e.propsDefaults=Object.create(null),Qv(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:Sv(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function s4(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]=Xv(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(Be(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 Rf(e){return e[0]!=="$"}function $f(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Hf(e,t){return $f(e)===$f(t)}function Ff(e,t){return Be(t)?t.findIndex(n=>Hf(n,e)):Ke(t)&&Hf(t,e)?0:-1}const Jv=e=>e[0]==="_"||e==="$stable",vh=e=>Be(e)?e.map(lr):[lr(e)],l4=(e,t,n)=>{if(t._n)return t;const r=z((...a)=>vh(t(...a)),n);return r._c=!1,r},eg=(e,t,n)=>{const r=e._ctx;for(const a in e){if(Jv(a))continue;const o=e[a];if(Ke(o))t[a]=l4(a,o,r);else if(o!=null){const i=vh(o);t[a]=()=>i}}},tg=(e,t)=>{const n=vh(t);e.slots.default=()=>n},u4=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tt(t),_l(t,"_",n)):eg(t,e.slots={})}else e.slots={},t&&tg(e,t);_l(e.slots,Ou,1)},c4=(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,eg(t,a)),i=t}else t&&(tg(e,t),i={default:1});if(o)for(const s in a)!Jv(s)&&!(s in i)&&delete a[s]};function fd(e,t,n,r,a=!1){if(Be(e)){e.forEach((h,f)=>fd(h,t&&(Be(t)?t[f]:t),n,r,a));return}if(Li(r)&&!a)return;const o=r.shapeFlag&4?Pu(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)),Ke(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?Be(y)&&th(y,o):Be(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=$3;function d4(e){return h4(e)}function h4(e,t){const n=rd();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 Au:v(E,_,P,Z);break;case Cn:p(E,_,P,Z);break;case $i:E==null&&b(_,P,Z,ce);break;case Ae:T(E,_,P,Z,Y,W,ce,le,de);break;default:be&1?M(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&&fd(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(_)},M=(E,_,P,Z,Y,W,ce,le,de)=>{ce=ce||_.type==="svg",E==null?B(_,P,Z,Y,W,ce,le,de):x(E,_,Y,W,ce,le,de)},B=(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&&D(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"&&!il(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?C(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)},C=(E,_,P,Z,Y,W,ce)=>{for(let le=0;le<_.length;le++){const de=E[le],ie=_[le],xe=de.el&&(de.type===Ae||!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)!il(le)&&!(le in Z)&&o(E,le,P[le],null,ce,_.children,Y,W,je);for(const le in Z){if(il(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)}},T=(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),D(_.children,P,xe,Y,W,ce,le,de)):be>0&&be&64&&Se&&E.dynamicChildren?(C(E.dynamicChildren,Se,P,Y,W,ce,le),(_.key!=null||Y&&_===Y.subTree)&&ng(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=w4(E,Z,Y);if(Mu(E)&&(le.ctx.renderer=K),k4(le),le.asyncDep){if(Y&&Y.registerDep(le,oe),!E.el){const de=le.subTree=G(Cn);p(null,de,_,P)}return}oe(le,E,_,P,Y,W,ce)},ae=(E,_,P)=>{const Z=_.component=E.component;if(N3(E,_,P))if(Z.asyncDep&&!Z.asyncResolved){Q(Z,_,P);return}else Z.next=_,T3(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&&ll(be),(me=xe.props&&xe.props.onVnodeBeforeUpdate)&&tr(me,Pe,xe,ne),wa(E,!0);const Oe=ac(E),X=E.subTree;E.subTree=Oe,y(X,Oe,d(X.el),U(X),E,Y,W),xe.el=Oe.el,ke===null&&L3(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=Li(_);if(wa(E,!1),Pe&&ll(Pe),!me&&(xe=Se&&Se.onVnodeBeforeMount)&&tr(xe,ke,_),wa(E,!0),be&&te){const Oe=()=>{E.subTree=ac(E),te(be,E.subTree,E,Y,null)};me?_.type.__asyncLoader().then(()=>!E.isUnmounted&&Oe()):Oe()}else{const Oe=E.subTree=ac(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&&Li(ke.vnode)&&ke.vnode.shapeFlag&256)&&E.a&&cn(E.a,Y),E.isMounted=!0,_=P=Z=null}},de=E.effect=new oh(le,()=>hh(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,s4(E,_.props,Z,P),c4(E,_.children,P),Wo(),Tf(),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&&D(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):D(_,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 Ye=ue?f4(ut):ko;for(me=Ye.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){Ze(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===Ae){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&&fd(le,null,P,E,!0),xe&256){_.ctx.deactivate(E);return}const Pe=xe&1&&Se,ne=!Li(E);let ke;if(ne&&(ke=ce&&ce.onVnodeBeforeUnmount)&&tr(ke,_,E),xe&6)De(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!==Ae||be>0&&be&64)?je(ie,_,P,!1,!0):(W===Ae&&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(_===Ae){$e(P,Z);return}if(_===$i){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(_)},De=(E,_,P)=>{const{bum:Z,scope:Y,update:W,subTree:ce,um:le}=E;Z&&ll(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),Tf(),Nv(),_._vnode=E},K={p:y,um:ze,m:Ze,r:fe,mt:ee,mc:D,pc:ye,pbc:C,n:U,o:e};let H,te;return t&&([H,te]=t(K)),{render:R,hydrate:H,createApp:o4(R,H)}}function wa({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ng(e,t,n=!1){const r=e.children,a=t.children;if(Be(r)&&Be(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 p4=e=>e.__isTeleport,Ae=Symbol.for("v-fgt"),Au=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),Hi=[];let Yn=null;function k(e=!1){Hi.push(Yn=e?null:[])}function m4(){Hi.pop(),Yn=Hi[Hi.length-1]||null}let is=1;function zf(e){is+=e}function rg(e){return e.dynamicChildren=is>0?Yn||ko:null,m4(),is>0&&Yn&&Yn.push(e),e}function S(e,t,n,r,a,o){return rg(O(e,t,n,r,a,o,!0))}function se(e,t,n,r,a){return rg(G(e,t,n,r,a,!0))}function Il(e){return e?e.__v_isVNode===!0:!1}function Oa(e,t){return e.type===t.type&&e.key===t.key}const Ou="__vInternal",ag=({key:e})=>e??null,cl=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pt(e)||Vt(e)||Ke(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,a=null,o=e===Ae?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ag(t),ref:t&&cl(t),scopeId:_u,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?(gh(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Pt(n)?8:16),is>0&&!i&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const G=v4;function v4(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===Yv)&&(e=Cn),Il(e)){const s=$r(e,t,!0);return n&&gh(s,n),is>0&&!o&&Yn&&(s.shapeFlag&6?Yn[Yn.indexOf(e)]=s:Yn.push(s)),s.patchFlag|=-2,s}if(S4(e)&&(e=e.__vccOpts),t){t=g4(t);let{class:s,style:l}=t;s&&!Pt(s)&&(t.class=q(s)),bt(l)&&(Dv(l)&&!Be(l)&&(l=Ot({},l)),t.style=Et(l))}const i=Pt(e)?1:R3(e)?128:p4(e)?64:bt(e)?4:Ke(e)?2:0;return O(e,t,n,r,a,i,o,!0)}function g4(e){return e?Dv(e)||Ou in e?Ot({},e):e:null}function $r(e,t,n=!1){const{props:r,ref:a,patchFlag:o,children:i}=e,s=t?Ge(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ag(s),ref:t&&t.ref?n&&a?Be(a)?a.concat(cl(t)):[a,cl(t)]:cl(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!==Ae?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(Au,null,e,t)}function une(e,t){const n=G($i,null,e);return n.staticCount=t,n}function $(e="",t=!1){return t?(k(),se(Cn,null,e)):G(Cn,null,e)}function lr(e){return e==null||typeof e=="boolean"?G(Cn):Be(e)?G(Ae,null,e.slice()):typeof e=="object"?na(e):G(Au,null,String(e))}function na(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function gh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Be(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),gh(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Ou in t)?t._ctx=Kt:a===3&&Kt&&(Kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(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 Ge(...e){const t={};for(let n=0;nzt||Kt;let yh,oo,jf="__VUE_INSTANCE_SETTERS__";(oo=rd()[jf])||(oo=rd()[jf]=[]),oo.push(e=>zt=e),yh=e=>{oo.length>1?oo.forEach(t=>t(e)):oo[0](e)};const Lo=e=>{yh(e),e.scope.on()},Fa=()=>{zt&&zt.scope.off(),yh(null)};function og(e){return e.vnode.shapeFlag&4}let ss=!1;function k4(e,t=!1){ss=t;const{props:n,children:r}=e.vnode,a=og(e);i4(e,n,a,t),u4(e,r);const o=a?C4(e,t):void 0;return ss=!1,o}function C4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Mv(new Proxy(e.ctx,X3));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?sg(e):null;Lo(e),Wo();const o=ca(r,e,0,[e.props,a]);if(qo(),Fa(),lv(o)){if(o.then(Fa,Fa),t)return o.then(i=>{Uf(e,i,t)}).catch(i=>{xu(i,e,0)});e.asyncDep=o}else Uf(e,o,t)}else ig(e,t)}function Uf(e,t,n){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=Pv(t)),ig(e,n)}let Zf;function ig(e,t,n){const r=e.type;if(!e.render){if(!t&&Zf&&!r.render){const a=r.template||mh(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=Zf(a,u)}}e.render=r.render||Vn}Lo(e),Wo(),J3(e),qo(),Fa()}function E4(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fn(e,"get","$attrs"),t[n]}}))}function sg(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return E4(e)},slots:e.slots,emit:e.emit,expose:t}}function Pu(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pv(Mv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ri)return Ri[n](e)},has(t,n){return n in t||n in Ri}}))}function x4(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function S4(e){return Ke(e)&&"__vccOpts"in e}const I=(e,t)=>_3(e,t,ss);function Te(e,t,n){const r=arguments.length;return r===2?bt(t)&&!Be(t)?Il(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Il(n)&&(n=[n]),G(e,t,n))}const _4=Symbol.for("v-scx"),D4=()=>Kn(_4),M4="3.3.4",T4="http://www.w3.org/2000/svg",Pa=typeof document<"u"?document:null,Yf=Pa&&Pa.createElement("template"),A4={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(T4,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{Yf.innerHTML=r?`${e}`:e;const s=Yf.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 O4(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 P4(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&&pd(r,o,"");for(const o in n)pd(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 Vf=/\s*!important$/;function pd(e,t,n){if(Be(n))n.forEach(r=>pd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=I4(e,t);Vf.test(n)?e.setProperty(Ga(r),n.replace(Vf,""),"important"):e[r]=n}}const Kf=["Webkit","Moz","ms"],sc={};function I4(e,t){const n=sc[t];if(n)return n;let r=fr(t);if(r!=="filter"&&r in e)return sc[t]=r;r=Cu(r);for(let a=0;alc||(H4.then(()=>lc=0),lc=Date.now());function z4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pn(j4(r,n.value),t,5,[r])};return n.value=e,n.attached=F4(),n}function j4(e,t){if(Be(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 qf=/^on[a-z]/,U4=(e,t,n,r,a=!1,o,i,s,l)=>{t==="class"?O4(e,r,a):t==="style"?P4(e,n,r):bu(t)?eh(t)||R4(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Z4(e,t,r,a))?N4(e,t,r,o,i,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),B4(e,t,r,a))};function Z4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&qf.test(t)&&Ke(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qf.test(t)&&Pt(n)?!1:t in e}function Qo(e){const t=ws();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>vd(o,a))},r=()=>{const a=e(t.proxy);md(t.subTree,a),n(a)};H3(r),ft(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),gr(()=>a.disconnect())})}function md(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{md(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vd(e.el,t);else if(e.type===Ae)e.children.forEach(n=>md(n,t));else if(e.type===$i){let{el:n,anchor:r}=e;for(;n&&(vd(n,t),n!==r);)n=n.nextSibling}}function vd(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Gr="transition",mi="animation",ja=(e,{slots:t})=>Te(j3,ug(e),t);ja.displayName="Transition";const lg={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},Y4=ja.props=Ot({},zv,lg),ka=(e,t=[])=>{Be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qf=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function ug(e){const t={};for(const T in e)T in lg||(t[T]=e[T]);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=V4(a),y=g&&g[0],v=g&&g[1],{onBeforeEnter:p,onEnter:b,onEnterCancelled:m,onLeave:w,onLeaveCancelled:M,onBeforeAppear:B=p,onAppear:L=b,onAppearCancelled:D=m}=t,x=(T,N,ee)=>{ea(T,N?c:s),ea(T,N?u:i),ee&&ee()},C=(T,N)=>{T._isLeaving=!1,ea(T,d),ea(T,f),ea(T,h),N&&N()},A=T=>(N,ee)=>{const ae=T?L:b,oe=()=>x(N,T,ee);ka(ae,[N,oe]),Xf(()=>{ea(N,T?l:o),_r(N,T?c:s),Qf(ae)||Jf(N,r,y,oe)})};return Ot(t,{onBeforeEnter(T){ka(p,[T]),_r(T,o),_r(T,i)},onBeforeAppear(T){ka(B,[T]),_r(T,l),_r(T,u)},onEnter:A(!1),onAppear:A(!0),onLeave(T,N){T._isLeaving=!0;const ee=()=>C(T,N);_r(T,d),dg(),_r(T,h),Xf(()=>{T._isLeaving&&(ea(T,d),_r(T,f),Qf(w)||Jf(T,r,v,ee))}),ka(w,[T,ee])},onEnterCancelled(T){x(T,!1),ka(m,[T])},onAppearCancelled(T){x(T,!0),ka(D,[T])},onLeaveCancelled(T){C(T),ka(M,[T])}})}function V4(e){if(e==null)return null;if(bt(e))return[uc(e.enter),uc(e.leave)];{const t=uc(e);return[t,t]}}function uc(e){return Lb(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 Xf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let K4=0;function Jf(e,t,n,r){const a=e._endId=++K4,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=cg(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=ep(a,o),s=r(`${mi}Delay`),l=r(`${mi}Duration`),u=ep(s,l);let c=null,d=0,h=0;t===Gr?i>0&&(c=Gr,d=i,h=o.length):t===mi?u>0&&(c=mi,d=u,h=l.length):(d=Math.max(i,u),c=d>0?i>u?Gr:mi: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 ep(e,t){for(;e.lengthtp(n)+tp(e[r])))}function tp(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function dg(){return document.body.offsetHeight}const hg=new WeakMap,fg=new WeakMap,pg={name:"TransitionGroup",props:Ot({},Y4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ws(),r=Fv();let a,o;return Zv(()=>{if(!a.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!J4(a[0].el,n.vnode.el,i))return;a.forEach(q4),a.forEach(Q4);const s=a.filter(X4);dg(),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=ug(i);let l=i.tag||Ae;a=o,o=t.default?fh(t.default()):[];for(let u=0;udelete e.mode;pg.props;const W4=pg;function q4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Q4(e){fg.set(e,e.el.getBoundingClientRect())}function X4(e){const t=hg.get(e),n=fg.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 J4(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}=cg(r);return a.removeChild(r),o}const np=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?n=>ll(t,n):t};function e8(e){e.target.composing=!0}function rp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const t8={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=np(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=nd(s)),e._assign(s)}),n&&fo(e,"change",()=>{e.value=e.value.trim()}),t||(fo(e,"compositionstart",e8),fo(e,"compositionend",rp),fo(e,"change",rp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},o){if(e._assign=np(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&nd(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},n8=["ctrl","shift","alt","meta"],r8={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)=>n8.some(n=>e[`${n}Key`]&&!t.includes(n))},Tt=(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||a8[a]===r))return e(n)},gd={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vi(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),vi(e,!0),r.enter(e)):r.leave(e,()=>{vi(e,!1)}):vi(e,t))},beforeUnmount(e,{value:t}){vi(e,t)}};function vi(e,t){e.style.display=t?e._vod:"none"}const o8=Ot({patchProp:U4},A4);let ap;function i8(){return ap||(ap=d4(o8))}const mg=(...e)=>{const t=i8().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=s8(r);if(!a)return;const o=t._component;!Ke(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 s8(e){return Pt(e)?document.querySelector(e):e}function l8(){return vg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function vg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const u8=typeof Proxy=="function",c8="devtools-plugin:setup",d8="plugin:settings:set";let io,yd;function h8(){var e;return io!==void 0||(typeof window<"u"&&window.performance?(io=!0,yd=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(io=!0,yd=global.perf_hooks.performance):io=!1),io}function f8(){return h8()?yd.now():Date.now()}class p8{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 f8()}},n&&n.on(d8,(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 m8(e,t){const n=e,r=vg(),a=l8(),o=u8&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(c8,e,t);else{const i=o?new p8(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*! +var _b=Object.defineProperty;var Db=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var st=(e,t,n)=>(Db(e,typeof t!="symbol"?t+"":t,n),n),rc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var re=(e,t,n)=>(rc(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)=>(rc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ve=(e,t,n)=>(rc(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 Mb="modulepreload",Tb=function(e,t){return e[0]==="."?new URL(e,t).href:e},wf={},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=Tb(o,r),o in wf)return;wf[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":Mb,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 J0(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=()=>{},Ab=()=>!1,Ob=/^on[^a-z]/,bu=e=>Ob.test(e),eh=e=>e.startsWith("onUpdate:"),Ot=Object.assign,th=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pb=Object.prototype.hasOwnProperty,at=(e,t)=>Pb.call(e,t),Be=Array.isArray,Co=e=>wu(e)==="[object Map]",sv=e=>wu(e)==="[object Set]",Ke=e=>typeof e=="function",Pt=e=>typeof e=="string",nh=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",lv=e=>bt(e)&&Ke(e.then)&&Ke(e.catch),uv=Object.prototype.toString,wu=e=>uv.call(e),Ib=e=>wu(e).slice(8,-1),cv=e=>wu(e)==="[object Object]",rh=e=>Pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,il=J0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ku=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bb=/-(\w)/g,fr=ku(e=>e.replace(Bb,(t,n)=>n?n.toUpperCase():"")),Nb=/\B([A-Z])/g,Ga=ku(e=>e.replace(Nb,"-$1").toLowerCase()),Cu=ku(e=>e.charAt(0).toUpperCase()+e.slice(1)),sl=ku(e=>e?`on${Cu(e)}`:""),es=(e,t)=>!Object.is(e,t),ll=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},nd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Lb=e=>{const t=Pt(e)?Number(e):NaN;return isNaN(t)?e:t};let kf;const rd=()=>kf||(kf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(Be(e)){const t={};for(let n=0;n{if(n){const r=n.split($b);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Pt(e))t=e;else if(Be(e))for(let n=0;nPt(e)?e:e==null?"":Be(e)||bt(e)&&(e.toString===uv||!Ke(e.toString))?JSON.stringify(e,hv,2):String(e),hv=(e,t)=>t&&t.__v_isRef?hv(e,t.value):Co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:sv(t)?{[`Set(${t.size})`]:[...t.values()]}:bt(t)&&!Be(t)&&!cv(t)?String(t):t;let bn;class fv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=bn;try{return bn=this,t()}finally{bn=n}}}on(){bn=this}off(){bn=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},mv=e=>(e.w&fa)>0,vv=e=>(e.n&fa)>0,Vb=({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":Be(e)?rh(n)&&s.push(i.get("length")):(s.push(i.get(Ha)),Co(e)&&s.push(i.get(od)));break;case"delete":Be(e)||(s.push(i.get(Ha)),Co(e)&&s.push(i.get(od)));break;case"set":Co(e)&&s.push(i.get(Ha));break}if(s.length===1)s[0]&&id(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);id(ah(l))}}function id(e,t){const n=Be(e)?e:[...e];for(const r of n)r.computed&&Ef(r);for(const r of n)r.computed||Ef(r)}function Ef(e,t){(e!==Zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Gb(e,t){var n;return(n=Dl.get(e))==null?void 0:n.get(t)}const Wb=J0("__proto__,__v_isRef,__isVue"),bv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nh)),qb=ih(),Qb=ih(!1,!0),Xb=ih(!0),xf=Jb();function Jb(){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 e3(e){const t=tt(this);return fn(t,"has",e),t.hasOwnProperty(e)}function ih(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?v3:xv:t?Ev:Cv).get(r))return r;const i=Be(r);if(!e){if(i&&at(xf,a))return Reflect.get(xf,a,o);if(a==="hasOwnProperty")return e3}const s=Reflect.get(r,a,o);return(nh(a)?bv.has(a):Wb(a))||(e||fn(r,"get",a),t)?s:Vt(s)?i&&rh(a)?s:s.value:bt(s)?e?_v(s):zr(s):s}}const t3=wv(),n3=wv(!0);function wv(e=!1){return function(n,r,a,o){let i=n[r];if(za(i)&&Vt(i)&&!Vt(a))return!1;if(!e&&(!Ml(a)&&!za(a)&&(i=tt(i),a=tt(a)),!Be(n)&&Vt(i)&&!Vt(a)))return i.value=a,!0;const s=Be(n)&&rh(r)?Number(r)e,Eu=e=>Reflect.getPrototypeOf(e);function Rs(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}=Eu(a),s=r?sh:n?ch:ts;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 $s(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 Hs(e,t=!1){return e=e.__v_raw,!t&&fn(tt(e),"iterate",Ha),Reflect.get(e,"size",e)}function Sf(e){e=tt(e);const t=tt(this);return Eu(t).has.call(t,e)||(t.add(e),Rr(t,"add",e,e)),this}function _f(e,t){t=tt(t);const n=tt(this),{has:r,get:a}=Eu(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?es(t,i)&&Rr(n,"set",e,t):Rr(n,"add",e,t),this}function Df(e){const t=tt(this),{has:n,get:r}=Eu(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 Mf(){const e=tt(this),t=e.size!==0,n=e.clear();return t&&Rr(e,"clear",void 0,void 0),n}function Fs(e,t){return function(r,a){const o=this,i=o.__v_raw,s=tt(i),l=t?sh:e?ch:ts;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?sh:t?ch:ts;return!t&&fn(o,"iterate",l?od: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 l3(){const e={get(o){return Rs(this,o)},get size(){return Hs(this)},has:$s,add:Sf,set:_f,delete:Df,clear:Mf,forEach:Fs(!1,!1)},t={get(o){return Rs(this,o,!1,!0)},get size(){return Hs(this)},has:$s,add:Sf,set:_f,delete:Df,clear:Mf,forEach:Fs(!1,!0)},n={get(o){return Rs(this,o,!0)},get size(){return Hs(this,!0)},has(o){return $s.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Fs(!0,!1)},r={get(o){return Rs(this,o,!0,!0)},get size(){return Hs(this,!0)},has(o){return $s.call(this,o,!0)},add:Kr("add"),set:Kr("set"),delete:Kr("delete"),clear:Kr("clear"),forEach:Fs(!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[u3,c3,d3,h3]=l3();function lh(e,t){const n=t?e?h3:d3:e?c3:u3;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 f3={get:lh(!1,!1)},p3={get:lh(!1,!0)},m3={get:lh(!0,!1)},Cv=new WeakMap,Ev=new WeakMap,xv=new WeakMap,v3=new WeakMap;function g3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function y3(e){return e.__v_skip||!Object.isExtensible(e)?0:g3(Ib(e))}function zr(e){return za(e)?e:uh(e,!1,kv,f3,Cv)}function Sv(e){return uh(e,!1,s3,p3,Ev)}function _v(e){return uh(e,!0,i3,m3,xv)}function uh(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=y3(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 Ml(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 Mv(e){return _l(e,"__v_skip",!0),e}const ts=e=>bt(e)?zr(e):e,ch=e=>bt(e)?_v(e):e;function Tv(e){ua&&Zn&&(e=tt(e),yv(e.dep||(e.dep=ah())))}function Av(e,t){e=tt(e);const n=e.dep;n&&id(n)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function j(e){return Ov(e,!1)}function b3(e){return Ov(e,!0)}function Ov(e,t){return Vt(e)?e:new w3(e,t)}class w3{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:ts(t)}get value(){return Tv(this),this._value}set value(t){const n=this.__v_isShallow||Ml(t)||za(t);t=n?t:tt(t),es(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ts(t),Av(this))}}function he(e){return Vt(e)?e.value:e}const k3={get:(e,t,n)=>he(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 Pv(e){return Eo(e)?e:new Proxy(e,k3)}function C3(e){const t=Be(e)?new Array(e.length):{};for(const n in e)t[n]=x3(e,n);return t}class E3{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 Gb(tt(this._object),this._key)}}function x3(e,t,n){const r=e[t];return Vt(r)?r:new E3(e,t,n)}class S3{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 oh(t,()=>{this._dirty||(this._dirty=!0,Av(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tt(this);return Tv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function _3(e,t,n=!1){let r,a;const o=Ke(e);return o?(r=e,a=Vn):(r=e.get,a=e.set),new S3(r,a,o||!a,n)}function ca(e,t,n,r){let a;try{a=r?e(...r):e()}catch(o){xu(o,t,n)}return a}function Pn(e,t,n,r){if(Ke(e)){const o=ca(e,t,n,r);return o&&lv(o)&&o.catch(i=>{xu(i,t,n)}),o}const a=[];for(let o=0;o>>1;rs(Wt[r])cr&&Wt.splice(t,1)}function A3(e){Be(e)?xo.push(...e):(!Dr||!Dr.includes(e,e.allowRecurse?Aa+1:Aa))&&xo.push(e),Bv()}function Tf(e,t=ns?cr+1:0){for(;trs(n)-rs(r)),Aa=0;Aae.id==null?1/0:e.id,O3=(e,t)=>{const n=rs(e)-rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Lv(e){sd=!1,ns=!0,Wt.sort(O3);const t=Vn;try{for(cr=0;crPt(f)?f.trim():f)),d&&(a=n.map(nd))}let s,l=r[s=sl(t)]||r[s=sl(fr(t))];!l&&o&&(l=r[s=sl(Ga(t))]),l&&Pn(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,Pn(u,e,6,a)}}function Rv(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(!Ke(e)){const l=u=>{const c=Rv(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):(Be(o)?o.forEach(l=>i[l]=null):Ot(i,o),bt(e)&&r.set(e,i),i)}function Su(e,t){return!e||!bu(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,_u=null;function Tl(e){const t=Kt;return Kt=e,_u=e&&e.type.__scopeId||null,t}function Rn(e){_u=e}function $n(){_u=null}function z(e,t=Kt,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&zf(-1);const o=Tl(t);let i;try{i=e(...a)}finally{Tl(o),r._d&&zf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function ac(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=Tl(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:I3(l)}}catch(w){Hi.length=0,xu(w,e,1),v=G(Cn)}let m=v;if(p&&y!==!1){const w=Object.keys(p),{shapeFlag:M}=m;w.length&&M&7&&(i&&w.some(eh)&&(p=B3(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,Tl(b),v}const I3=e=>{let t;for(const n in e)(n==="class"||n==="style"||bu(n))&&((t||(t={}))[n]=e[n]);return t},B3=(e,t)=>{const n={};for(const r in e)(!eh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function N3(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?Af(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function $3(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):A3(e)}function $v(e,t){return Du(e,null,t)}function H3(e,t){return Du(e,null,{flush:"post"})}const js={};function Le(e,t,n){return Du(e,t,n)}function Du(e,t,{immediate:n,deep:r,flush:a,onTrack:o,onTrigger:i}=yt){var s;const l=pv()===((s=zt)==null?void 0:s.scope)?zt:null;let u,c=!1,d=!1;if(Vt(e)?(u=()=>e.value,c=Ml(e)):Eo(e)?(u=()=>e,r=!0):Be(e)?(d=!0,c=e.some(w=>Eo(w)||Ml(w)),u=()=>e.map(w=>{if(Vt(w))return w.value;if(Eo(w))return Ba(w);if(Ke(w))return ca(w,l,2)})):Ke(e)?t?u=()=>ca(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),Pn(e,l,3,[f])}:u=Vn,t&&r){const w=u;u=()=>Ba(w())}let h,f=w=>{h=b.onStop=()=>{ca(w,l,4)}},g;if(ss)if(f=Vn,t?n&&Pn(t,l,3,[u(),d?[]:void 0,f]):u(),a==="sync"){const w=D4();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Vn;let y=d?new Array(e.length).fill(js):js;const v=()=>{if(b.active)if(t){const w=b.run();(r||c||(d?w.some((M,B)=>es(M,y[B])):es(w,y)))&&(h&&h(),Pn(t,l,3,[w,y===js?void 0:d&&y[0]===js?[]: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=()=>hh(v));const b=new oh(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&&th(l.scope.effects,b)};return g&&g.push(m),m}function F3(e,t,n){const r=this.proxy,a=Pt(e)?e.includes(".")?Hv(r,e):()=>r[e]:e.bind(r,r);let o;Ke(t)?o=t:(o=t.handler,n=t);const i=zt;Lo(this);const s=Du(a,o.bind(r),n);return i?Lo(i):Fa(),s}function Hv(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{Ba(n,t)});else if(cv(e))for(const n in e)Ba(e[n],t);return e}function Al(e,t){const n=Kt;if(n===null)return e;const r=Pu(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const Sn=[Function,Array],zv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Sn,onEnter:Sn,onAfterEnter:Sn,onEnterCancelled:Sn,onBeforeLeave:Sn,onLeave:Sn,onAfterLeave:Sn,onLeaveCancelled:Sn,onBeforeAppear:Sn,onAppear:Sn,onAfterAppear:Sn,onAppearCancelled:Sn},z3={name:"BaseTransition",props:zv,setup(e,{slots:t}){const n=ws(),r=Fv();let a;return()=>{const o=t.default&&fh(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const y of o)if(y.type!==Cn){i=y;break}}const s=tt(e),{mode:l}=s;if(r.isLeaving)return oc(i);const u=Of(i);if(!u)return oc(i);const c=as(u,s,r,n);os(u,c);const d=n.subTree,h=d&&Of(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!==Cn&&(!Oa(u,h)||f)){const y=as(h,s,r,n);if(os(h,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},oc(i);l==="in-out"&&u.type!==Cn&&(y.delayLeave=(v,p,b)=>{const m=jv(r,h);m[String(h.key)]=h,v._leaveCb=()=>{p(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return i}}},j3=z3;function jv(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 as(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=jv(n,e),M=(D,x)=>{D&&Pn(D,r,9,x)},B=(D,x)=>{const C=x[1];M(D,x),Be(D)?D.every(A=>A.length<=1)&&C():D.length<=1&&C()},L={mode:o,persisted:i,beforeEnter(D){let x=s;if(!n.isMounted)if(a)x=y||s;else return;D._leaveCb&&D._leaveCb(!0);const C=w[m];C&&Oa(e,C)&&C.el._leaveCb&&C.el._leaveCb(),M(x,[D])},enter(D){let x=l,C=u,A=c;if(!n.isMounted)if(a)x=v||l,C=p||u,A=b||c;else return;let T=!1;const N=D._enterCb=ee=>{T||(T=!0,ee?M(A,[D]):M(C,[D]),L.delayedLeave&&L.delayedLeave(),D._enterCb=void 0)};x?B(x,[D,N]):N()},leave(D,x){const C=String(e.key);if(D._enterCb&&D._enterCb(!0),n.isUnmounting)return x();M(d,[D]);let A=!1;const T=D._leaveCb=N=>{A||(A=!0,x(),N?M(g,[D]):M(f,[D]),D._leaveCb=void 0,w[C]===e&&delete w[C])};w[C]=e,h?B(h,[D,T]):T()},clone(D){return as(D,t,n,r)}};return L}function oc(e){if(Mu(e))return e=$r(e),e.children=null,e}function Of(e){return Mu(e)?e.children?e.children[0]:void 0:e}function os(e,t){e.shapeFlag&6&&e.component?os(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fh(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 Li=e=>!!e.type.__asyncLoader,Mu=e=>e.type.__isKeepAlive;function U3(e,t){Uv(e,"a",t)}function Z3(e,t){Uv(e,"da",t)}function Uv(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;)Mu(a.parent.vnode)&&Y3(r,t,n,a),a=a.parent}}function Y3(e,t,n,r){const a=Tu(t,e,r,!0);gr(()=>{th(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=Pn(t,n,e,i);return Fa(),qo(),s});return r?a.unshift(o):a.push(o),o}}const jr=e=>(t,n=zt)=>(!ss||e==="sp")&&Tu(e,(...r)=>t(...r),n),V3=jr("bm"),ft=jr("m"),K3=jr("bu"),Zv=jr("u"),Wa=jr("bum"),gr=jr("um"),G3=jr("sp"),W3=jr("rtg"),q3=jr("rtc");function Q3(e,t=zt){Tu("ec",e,t)}const ph="components";function Gn(e,t){return Vv(ph,e,!0,t)||e}const Yv=Symbol.for("v-ndc");function va(e){return Pt(e)?Vv(ph,e,!1)||e:e||Yv}function Vv(e,t,n=!0,r=!1){const a=Kt||zt;if(a){const o=a.type;if(e===ph){const s=x4(o,!1);if(s&&(s===t||s===fr(t)||s===Cu(fr(t))))return o}const i=Pf(a[e]||o[e],t)||Pf(a.appContext[e],t);return!i&&r?o:i}}function Pf(e,t){return e&&(e[t]||e[fr(t)]||e[Cu(fr(t))])}function ot(e,t,n,r){let a;const o=n&&n[r];if(Be(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&&Li(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),k();const i=o&&Kv(o(n)),s=se(Ae,{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 Kv(e){return e.some(t=>Il(t)?!(t.type===Cn||t.type===Ae&&!Kv(t.children)):!0)?e:null}function ld(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sl(r)]=e[r];return n}const ud=e=>e?og(e)?Pu(e)||e.proxy:ud(e.parent):null,Ri=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=>ud(e.parent),$root:e=>ud(e.root),$emit:e=>e.emit,$options:e=>mh(e),$forceUpdate:e=>e.f||(e.f=()=>hh(e.update)),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>F3.bind(e)}),ic=(e,t)=>e!==yt&&!e.__isScriptSetup&&at(e,t),X3={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(ic(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];cd&&(i[t]=0)}}const c=Ri[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 ic(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)||ic(t,i)||(s=o[0])&&at(s,i)||at(r,i)||at(Ri,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 Gv().slots}function Xn(){return Gv().attrs}function Gv(){const e=ws();return e.setupContext||(e.setupContext=sg(e))}function If(e){return Be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cd=!0;function J3(e){const t=mh(e),n=e.proxy,r=e.ctx;cd=!1,t.beforeCreate&&Bf(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:M,renderTracked:B,renderTriggered:L,errorCaptured:D,serverPrefetch:x,expose:C,inheritAttrs:A,components:T,directives:N,filters:ee}=t;if(u&&e4(u,r,null),i)for(const Q in i){const ye=i[Q];Ke(ye)&&(r[Q]=ye.bind(n))}if(a){const Q=a.call(n,n);bt(Q)&&(e.data=zr(Q))}if(cd=!0,o)for(const Q in o){const ye=o[Q],_e=Ke(ye)?ye.bind(n,n):Ke(ye.get)?ye.get.bind(n,n):Vn,Re=!Ke(ye)&&Ke(ye.set)?ye.set.bind(n):Vn,Ze=I({get:_e,set:Re});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:ze=>Ze.value=ze})}if(s)for(const Q in s)Wv(s[Q],r,n,Q);if(l){const Q=Ke(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(ye=>{ul(ye,Q[ye])})}c&&Bf(c,e,"c");function oe(Q,ye){Be(ye)?ye.forEach(_e=>Q(_e.bind(n))):ye&&Q(ye.bind(n))}if(oe(V3,d),oe(ft,h),oe(K3,f),oe(Zv,g),oe(U3,y),oe(Z3,v),oe(Q3,D),oe(q3,B),oe(W3,L),oe(Wa,b),oe(gr,w),oe(G3,x),Be(C))if(C.length){const Q=e.exposed||(e.exposed={});C.forEach(ye=>{Object.defineProperty(Q,ye,{get:()=>n[ye],set:_e=>n[ye]=_e})})}else e.exposed||(e.exposed={});M&&e.render===Vn&&(e.render=M),A!=null&&(e.inheritAttrs=A),T&&(e.components=T),N&&(e.directives=N)}function e4(e,t,n=Vn){Be(e)&&(e=dd(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 Bf(e,t,n){Pn(Be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wv(e,t,n,r){const a=r.includes(".")?Hv(n,r):()=>n[r];if(Pt(e)){const o=t[e];Ke(o)&&Le(a,o)}else if(Ke(e))Le(a,e.bind(n));else if(bt(e))if(Be(e))e.forEach(o=>Wv(o,t,n,r));else{const o=Ke(e.handler)?e.handler.bind(n):t[e.handler];Ke(o)&&Le(a,o,e)}}function mh(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=>Ol(l,u,i,!0)),Ol(l,t,i)),bt(t)&&o.set(t,l),l}function Ol(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&Ol(e,o,n,!0),a&&a.forEach(i=>Ol(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const s=t4[i]||n&&n[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const t4={data:Nf,props:Lf,emits:Lf,methods:_i,computed:_i,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:_i,directives:_i,watch:r4,provide:Nf,inject:n4};function Nf(e,t){return t?e?function(){return Ot(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function n4(e,t){return _i(dd(e),dd(t))}function dd(e){if(Be(e)){const t={};for(let n=0;n1)return n&&Ke(t)?t.call(r&&r.proxy):t}}function i4(e,t,n,r=!1){const a={},o={};_l(o,Ou,1),e.propsDefaults=Object.create(null),Qv(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:Sv(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function s4(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]=Xv(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(Be(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 Rf(e){return e[0]!=="$"}function $f(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Hf(e,t){return $f(e)===$f(t)}function Ff(e,t){return Be(t)?t.findIndex(n=>Hf(n,e)):Ke(t)&&Hf(t,e)?0:-1}const Jv=e=>e[0]==="_"||e==="$stable",vh=e=>Be(e)?e.map(lr):[lr(e)],l4=(e,t,n)=>{if(t._n)return t;const r=z((...a)=>vh(t(...a)),n);return r._c=!1,r},eg=(e,t,n)=>{const r=e._ctx;for(const a in e){if(Jv(a))continue;const o=e[a];if(Ke(o))t[a]=l4(a,o,r);else if(o!=null){const i=vh(o);t[a]=()=>i}}},tg=(e,t)=>{const n=vh(t);e.slots.default=()=>n},u4=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tt(t),_l(t,"_",n)):eg(t,e.slots={})}else e.slots={},t&&tg(e,t);_l(e.slots,Ou,1)},c4=(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,eg(t,a)),i=t}else t&&(tg(e,t),i={default:1});if(o)for(const s in a)!Jv(s)&&!(s in i)&&delete a[s]};function fd(e,t,n,r,a=!1){if(Be(e)){e.forEach((h,f)=>fd(h,t&&(Be(t)?t[f]:t),n,r,a));return}if(Li(r)&&!a)return;const o=r.shapeFlag&4?Pu(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)),Ke(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?Be(y)&&th(y,o):Be(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=$3;function d4(e){return h4(e)}function h4(e,t){const n=rd();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 Au:v(E,_,P,Z);break;case Cn:p(E,_,P,Z);break;case $i:E==null&&b(_,P,Z,ce);break;case Ae:T(E,_,P,Z,Y,W,ce,le,de);break;default:be&1?M(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&&fd(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(_)},M=(E,_,P,Z,Y,W,ce,le,de)=>{ce=ce||_.type==="svg",E==null?B(_,P,Z,Y,W,ce,le,de):x(E,_,Y,W,ce,le,de)},B=(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&&D(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"&&!il(me)&&o(de,me,null,be[me],W,E.children,Z,Y,Ue);"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?C(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)},C=(E,_,P,Z,Y,W,ce)=>{for(let le=0;le<_.length;le++){const de=E[le],ie=_[le],xe=de.el&&(de.type===Ae||!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)!il(le)&&!(le in Z)&&o(E,le,P[le],null,ce,_.children,Y,W,Ue);for(const le in Z){if(il(le))continue;const de=Z[le],ie=P[le];de!==ie&&le!=="value"&&o(E,le,ie,de,ce,_.children,Y,W,Ue)}"value"in Z&&o(E,"value",P.value,Z.value)}},T=(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),D(_.children,P,xe,Y,W,ce,le,de)):be>0&&be&64&&Se&&E.dynamicChildren?(C(E.dynamicChildren,Se,P,Y,W,ce,le),(_.key!=null||Y&&_===Y.subTree)&&ng(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=w4(E,Z,Y);if(Mu(E)&&(le.ctx.renderer=K),k4(le),le.asyncDep){if(Y&&Y.registerDep(le,oe),!E.el){const de=le.subTree=G(Cn);p(null,de,_,P)}return}oe(le,E,_,P,Y,W,ce)},ae=(E,_,P)=>{const Z=_.component=E.component;if(N3(E,_,P))if(Z.asyncDep&&!Z.asyncResolved){Q(Z,_,P);return}else Z.next=_,T3(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&&ll(be),(me=xe.props&&xe.props.onVnodeBeforeUpdate)&&tr(me,Pe,xe,ne),wa(E,!0);const Oe=ac(E),X=E.subTree;E.subTree=Oe,y(X,Oe,d(X.el),U(X),E,Y,W),xe.el=Oe.el,ke===null&&L3(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=Li(_);if(wa(E,!1),Pe&&ll(Pe),!me&&(xe=Se&&Se.onVnodeBeforeMount)&&tr(xe,ke,_),wa(E,!0),be&&te){const Oe=()=>{E.subTree=ac(E),te(be,E.subTree,E,Y,null)};me?_.type.__asyncLoader().then(()=>!E.isUnmounted&&Oe()):Oe()}else{const Oe=E.subTree=ac(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&&Li(ke.vnode)&&ke.vnode.shapeFlag&256)&&E.a&&cn(E.a,Y),E.isMounted=!0,_=P=Z=null}},de=E.effect=new oh(le,()=>hh(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,s4(E,_.props,Z,P),c4(E,_.children,P),Wo(),Tf(),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&&Ue(ie,Y,W),be!==ie&&c(P,be)):xe&16?Pe&16?Re(ie,be,P,Z,Y,W,ce,le,de):Ue(ie,Y,W,!0):(xe&8&&c(P,""),Pe&16&&D(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?Ue(E,Y,W,!0,!1,be):D(_,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 ct=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(ct[me-ne]===0&&Oa(Ne,_[me])){wt=me;break}wt===void 0?ze(Ne,Y,W,!0):(ct[wt-ne]=ie+1,wt>=Ce?Ce=wt:ue=!0,y(Ne,_[wt],P,null,Y,W,ce,le,de),Oe++)}const Ye=ue?f4(ct):ko;for(me=Ye.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){Ze(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===Ae){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&&fd(le,null,P,E,!0),xe&256){_.ctx.deactivate(E);return}const Pe=xe&1&&Se,ne=!Li(E);let ke;if(ne&&(ke=ce&&ce.onVnodeBeforeUnmount)&&tr(ke,_,E),xe&6)De(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!==Ae||be>0&&be&64)?Ue(ie,_,P,!1,!0):(W===Ae&&be&384||!Y&&xe&16)&&Ue(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(_===Ae){$e(P,Z);return}if(_===$i){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(_)},De=(E,_,P)=>{const{bum:Z,scope:Y,update:W,subTree:ce,um:le}=E;Z&&ll(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())},Ue=(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),Tf(),Nv(),_._vnode=E},K={p:y,um:ze,m:Ze,r:fe,mt:ee,mc:D,pc:ye,pbc:C,n:U,o:e};let H,te;return t&&([H,te]=t(K)),{render:R,hydrate:H,createApp:o4(R,H)}}function wa({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ng(e,t,n=!1){const r=e.children,a=t.children;if(Be(r)&&Be(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 p4=e=>e.__isTeleport,Ae=Symbol.for("v-fgt"),Au=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),Hi=[];let Yn=null;function k(e=!1){Hi.push(Yn=e?null:[])}function m4(){Hi.pop(),Yn=Hi[Hi.length-1]||null}let is=1;function zf(e){is+=e}function rg(e){return e.dynamicChildren=is>0?Yn||ko:null,m4(),is>0&&Yn&&Yn.push(e),e}function S(e,t,n,r,a,o){return rg(O(e,t,n,r,a,o,!0))}function se(e,t,n,r,a){return rg(G(e,t,n,r,a,!0))}function Il(e){return e?e.__v_isVNode===!0:!1}function Oa(e,t){return e.type===t.type&&e.key===t.key}const Ou="__vInternal",ag=({key:e})=>e??null,cl=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pt(e)||Vt(e)||Ke(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,a=null,o=e===Ae?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ag(t),ref:t&&cl(t),scopeId:_u,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?(gh(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Pt(n)?8:16),is>0&&!i&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const G=v4;function v4(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===Yv)&&(e=Cn),Il(e)){const s=$r(e,t,!0);return n&&gh(s,n),is>0&&!o&&Yn&&(s.shapeFlag&6?Yn[Yn.indexOf(e)]=s:Yn.push(s)),s.patchFlag|=-2,s}if(S4(e)&&(e=e.__vccOpts),t){t=g4(t);let{class:s,style:l}=t;s&&!Pt(s)&&(t.class=q(s)),bt(l)&&(Dv(l)&&!Be(l)&&(l=Ot({},l)),t.style=Et(l))}const i=Pt(e)?1:R3(e)?128:p4(e)?64:bt(e)?4:Ke(e)?2:0;return O(e,t,n,r,a,i,o,!0)}function g4(e){return e?Dv(e)||Ou in e?Ot({},e):e:null}function $r(e,t,n=!1){const{props:r,ref:a,patchFlag:o,children:i}=e,s=t?Ge(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ag(s),ref:t&&t.ref?n&&a?Be(a)?a.concat(cl(t)):[a,cl(t)]:cl(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!==Ae?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(Au,null,e,t)}function une(e,t){const n=G($i,null,e);return n.staticCount=t,n}function $(e="",t=!1){return t?(k(),se(Cn,null,e)):G(Cn,null,e)}function lr(e){return e==null||typeof e=="boolean"?G(Cn):Be(e)?G(Ae,null,e.slice()):typeof e=="object"?na(e):G(Au,null,String(e))}function na(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function gh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Be(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),gh(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Ou in t)?t._ctx=Kt:a===3&&Kt&&(Kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(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 Ge(...e){const t={};for(let n=0;nzt||Kt;let yh,oo,jf="__VUE_INSTANCE_SETTERS__";(oo=rd()[jf])||(oo=rd()[jf]=[]),oo.push(e=>zt=e),yh=e=>{oo.length>1?oo.forEach(t=>t(e)):oo[0](e)};const Lo=e=>{yh(e),e.scope.on()},Fa=()=>{zt&&zt.scope.off(),yh(null)};function og(e){return e.vnode.shapeFlag&4}let ss=!1;function k4(e,t=!1){ss=t;const{props:n,children:r}=e.vnode,a=og(e);i4(e,n,a,t),u4(e,r);const o=a?C4(e,t):void 0;return ss=!1,o}function C4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Mv(new Proxy(e.ctx,X3));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?sg(e):null;Lo(e),Wo();const o=ca(r,e,0,[e.props,a]);if(qo(),Fa(),lv(o)){if(o.then(Fa,Fa),t)return o.then(i=>{Uf(e,i,t)}).catch(i=>{xu(i,e,0)});e.asyncDep=o}else Uf(e,o,t)}else ig(e,t)}function Uf(e,t,n){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=Pv(t)),ig(e,n)}let Zf;function ig(e,t,n){const r=e.type;if(!e.render){if(!t&&Zf&&!r.render){const a=r.template||mh(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=Zf(a,u)}}e.render=r.render||Vn}Lo(e),Wo(),J3(e),qo(),Fa()}function E4(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fn(e,"get","$attrs"),t[n]}}))}function sg(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return E4(e)},slots:e.slots,emit:e.emit,expose:t}}function Pu(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pv(Mv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ri)return Ri[n](e)},has(t,n){return n in t||n in Ri}}))}function x4(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function S4(e){return Ke(e)&&"__vccOpts"in e}const I=(e,t)=>_3(e,t,ss);function Te(e,t,n){const r=arguments.length;return r===2?bt(t)&&!Be(t)?Il(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Il(n)&&(n=[n]),G(e,t,n))}const _4=Symbol.for("v-scx"),D4=()=>Kn(_4),M4="3.3.4",T4="http://www.w3.org/2000/svg",Pa=typeof document<"u"?document:null,Yf=Pa&&Pa.createElement("template"),A4={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(T4,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{Yf.innerHTML=r?`${e}`:e;const s=Yf.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 O4(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 P4(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&&pd(r,o,"");for(const o in n)pd(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 Vf=/\s*!important$/;function pd(e,t,n){if(Be(n))n.forEach(r=>pd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=I4(e,t);Vf.test(n)?e.setProperty(Ga(r),n.replace(Vf,""),"important"):e[r]=n}}const Kf=["Webkit","Moz","ms"],sc={};function I4(e,t){const n=sc[t];if(n)return n;let r=fr(t);if(r!=="filter"&&r in e)return sc[t]=r;r=Cu(r);for(let a=0;alc||(H4.then(()=>lc=0),lc=Date.now());function z4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pn(j4(r,n.value),t,5,[r])};return n.value=e,n.attached=F4(),n}function j4(e,t){if(Be(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 qf=/^on[a-z]/,U4=(e,t,n,r,a=!1,o,i,s,l)=>{t==="class"?O4(e,r,a):t==="style"?P4(e,n,r):bu(t)?eh(t)||R4(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Z4(e,t,r,a))?N4(e,t,r,o,i,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),B4(e,t,r,a))};function Z4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&qf.test(t)&&Ke(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qf.test(t)&&Pt(n)?!1:t in e}function Qo(e){const t=ws();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>vd(o,a))},r=()=>{const a=e(t.proxy);md(t.subTree,a),n(a)};H3(r),ft(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),gr(()=>a.disconnect())})}function md(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{md(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vd(e.el,t);else if(e.type===Ae)e.children.forEach(n=>md(n,t));else if(e.type===$i){let{el:n,anchor:r}=e;for(;n&&(vd(n,t),n!==r);)n=n.nextSibling}}function vd(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Gr="transition",mi="animation",ja=(e,{slots:t})=>Te(j3,ug(e),t);ja.displayName="Transition";const lg={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},Y4=ja.props=Ot({},zv,lg),ka=(e,t=[])=>{Be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qf=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function ug(e){const t={};for(const T in e)T in lg||(t[T]=e[T]);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=V4(a),y=g&&g[0],v=g&&g[1],{onBeforeEnter:p,onEnter:b,onEnterCancelled:m,onLeave:w,onLeaveCancelled:M,onBeforeAppear:B=p,onAppear:L=b,onAppearCancelled:D=m}=t,x=(T,N,ee)=>{ea(T,N?c:s),ea(T,N?u:i),ee&&ee()},C=(T,N)=>{T._isLeaving=!1,ea(T,d),ea(T,f),ea(T,h),N&&N()},A=T=>(N,ee)=>{const ae=T?L:b,oe=()=>x(N,T,ee);ka(ae,[N,oe]),Xf(()=>{ea(N,T?l:o),_r(N,T?c:s),Qf(ae)||Jf(N,r,y,oe)})};return Ot(t,{onBeforeEnter(T){ka(p,[T]),_r(T,o),_r(T,i)},onBeforeAppear(T){ka(B,[T]),_r(T,l),_r(T,u)},onEnter:A(!1),onAppear:A(!0),onLeave(T,N){T._isLeaving=!0;const ee=()=>C(T,N);_r(T,d),dg(),_r(T,h),Xf(()=>{T._isLeaving&&(ea(T,d),_r(T,f),Qf(w)||Jf(T,r,v,ee))}),ka(w,[T,ee])},onEnterCancelled(T){x(T,!1),ka(m,[T])},onAppearCancelled(T){x(T,!0),ka(D,[T])},onLeaveCancelled(T){C(T),ka(M,[T])}})}function V4(e){if(e==null)return null;if(bt(e))return[uc(e.enter),uc(e.leave)];{const t=uc(e);return[t,t]}}function uc(e){return Lb(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 Xf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let K4=0;function Jf(e,t,n,r){const a=e._endId=++K4,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=cg(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=ep(a,o),s=r(`${mi}Delay`),l=r(`${mi}Duration`),u=ep(s,l);let c=null,d=0,h=0;t===Gr?i>0&&(c=Gr,d=i,h=o.length):t===mi?u>0&&(c=mi,d=u,h=l.length):(d=Math.max(i,u),c=d>0?i>u?Gr:mi: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 ep(e,t){for(;e.lengthtp(n)+tp(e[r])))}function tp(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function dg(){return document.body.offsetHeight}const hg=new WeakMap,fg=new WeakMap,pg={name:"TransitionGroup",props:Ot({},Y4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ws(),r=Fv();let a,o;return Zv(()=>{if(!a.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!J4(a[0].el,n.vnode.el,i))return;a.forEach(q4),a.forEach(Q4);const s=a.filter(X4);dg(),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=ug(i);let l=i.tag||Ae;a=o,o=t.default?fh(t.default()):[];for(let u=0;udelete e.mode;pg.props;const W4=pg;function q4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Q4(e){fg.set(e,e.el.getBoundingClientRect())}function X4(e){const t=hg.get(e),n=fg.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 J4(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}=cg(r);return a.removeChild(r),o}const np=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?n=>ll(t,n):t};function e8(e){e.target.composing=!0}function rp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const t8={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=np(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=nd(s)),e._assign(s)}),n&&fo(e,"change",()=>{e.value=e.value.trim()}),t||(fo(e,"compositionstart",e8),fo(e,"compositionend",rp),fo(e,"change",rp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},o){if(e._assign=np(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&nd(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},n8=["ctrl","shift","alt","meta"],r8={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)=>n8.some(n=>e[`${n}Key`]&&!t.includes(n))},Tt=(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||a8[a]===r))return e(n)},gd={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vi(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),vi(e,!0),r.enter(e)):r.leave(e,()=>{vi(e,!1)}):vi(e,t))},beforeUnmount(e,{value:t}){vi(e,t)}};function vi(e,t){e.style.display=t?e._vod:"none"}const o8=Ot({patchProp:U4},A4);let ap;function i8(){return ap||(ap=d4(o8))}const mg=(...e)=>{const t=i8().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=s8(r);if(!a)return;const o=t._component;!Ke(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 s8(e){return Pt(e)?document.querySelector(e):e}function l8(){return vg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function vg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const u8=typeof Proxy=="function",c8="devtools-plugin:setup",d8="plugin:settings:set";let io,yd;function h8(){var e;return io!==void 0||(typeof window<"u"&&window.performance?(io=!0,yd=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(io=!0,yd=global.perf_hooks.performance):io=!1),io}function f8(){return h8()?yd.now():Date.now()}class p8{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 f8()}},n&&n.on(d8,(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 m8(e,t){const n=e,r=vg(),a=l8(),o=u8&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(c8,e,t);else{const i=o?new p8(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 @@ -6,7 +6,7 @@ var _b=Object.defineProperty;var Db=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,config * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const po=typeof window<"u";function N8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function dc(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 Fi=()=>{},Wn=Array.isArray,L8=/\/$/,R8=e=>e.replace(L8,"");function hc(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=z8(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:a,hash:i}}function $8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function sp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function H8(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(!F8(e[n],t[n]))return!1;return!0}function F8(e,t){return Wn(e)?lp(e,t):Wn(t)?lp(t,e):e===t}function lp(e,t){return Wn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function z8(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 ls;(function(e){e.pop="pop",e.push="push"})(ls||(ls={}));var zi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zi||(zi={}));function j8(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),R8(e)}const U8=/^[^#]+#/;function Z8(e,t){return e.replace(U8,"#")+t}function Y8(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 Bu=()=>({left:window.pageXOffset,top:window.pageYOffset});function V8(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=Y8(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 up(e,t){return(history.state?history.state.position-t:-1)+e}const wd=new Map;function K8(e,t){wd.set(e,t)}function G8(e){const t=wd.get(e);return wd.delete(e),t}let W8=()=>location.protocol+"//"+location.host;function Mg(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),sp(l,"")}return sp(n,e)+r+a}function q8(e,t,n,r){let a=[],o=[],i=null;const s=({state:h})=>{const f=Mg(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:ls.pop,direction:v?v>0?zi.forward:zi.back:zi.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:Bu()}),"")}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 cp(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Bu():null}}function Q8(e){const{history:t,location:n}=window,r={value:Mg(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:W8()+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,cp(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:Bu()});o(c.current,c,!0);const d=lt({},cp(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 X8(e){e=j8(e);const t=Q8(e),n=q8(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:Z8.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 J8(e){return typeof e=="string"||e&&typeof e=="object"}function Tg(e){return typeof e=="string"||typeof e=="symbol"}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ag=Symbol("");var dp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(dp||(dp={}));function $o(e,t){return lt(new Error,{type:e,[Ag]:!0},t)}function Er(e,t){return e instanceof Error&&Ag in e&&(t==null||!!(e.type&t))}const hp="[^/]+?",e6={sensitive:!1,strict:!1,start:!0,end:!0},t6=/[.+*?^${}()[\]/\\]/g;function n6(e,t){const n=lt({},e6,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 a6(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const o6={type:0,value:""},i6=/[a-zA-Z0-9_]/;function s6(e){if(!e)return[[]];if(e==="/")return[[o6]];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)}:Fi}function i(c){if(Tg(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||!Og(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!mp(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(pp(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&pp(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:h6(v)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:s,getRecordMatcher:a}}function pp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function c6(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:d6(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 d6(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 mp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function h6(e){return e.reduce((t,n)=>lt(t,n.meta),{})}function vp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Og(e,t){return t.children.some(n=>n===e||Og(e,n))}const Pg=/#/g,f6=/&/g,p6=/\//g,m6=/=/g,v6=/\?/g,Ig=/\+/g,g6=/%5B/g,y6=/%5D/g,Bg=/%5E/g,b6=/%60/g,Ng=/%7B/g,w6=/%7C/g,Lg=/%7D/g,k6=/%20/g;function Ch(e){return encodeURI(""+e).replace(w6,"|").replace(g6,"[").replace(y6,"]")}function C6(e){return Ch(e).replace(Ng,"{").replace(Lg,"}").replace(Bg,"^")}function kd(e){return Ch(e).replace(Ig,"%2B").replace(k6,"+").replace(Pg,"%23").replace(f6,"%26").replace(b6,"`").replace(Ng,"{").replace(Lg,"}").replace(Bg,"^")}function E6(e){return kd(e).replace(m6,"%3D")}function x6(e){return Ch(e).replace(Pg,"%23").replace(v6,"%3F")}function S6(e){return e==null?"":x6(e).replace(p6,"%2F")}function Nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function _6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&kd(o)):[r&&kd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function D6(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 M6=Symbol(""),yp=Symbol(""),Nu=Symbol(""),Eh=Symbol(""),Cd=Symbol("");function gi(){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):J8(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 fc(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(T6(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=N8(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 T6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bp(e){const t=Kn(Nu),n=Kn(Eh),r=I(()=>t.resolve(he(e.to))),a=I(()=>{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=wp(l[u-2]);return u>1&&wp(c)===f&&d[d.length-1].path!==f?d.findIndex(Ro.bind(null,l[u-2])):h}),o=I(()=>a.value>-1&&I6(n.params,r.value.params)),i=I(()=>a.value>-1&&a.value===n.matched.length-1&&Dg(n.params,r.value.params));function s(l={}){return P6(l)?t[he(e.replace)?"replace":"push"](he(e.to)).catch(Fi):Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:o,isExactActive:i,navigate:s}}const A6=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:bp,setup(e,{slots:t}){const n=zr(bp(e)),{options:r}=Kn(Nu),a=I(()=>({[kp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[kp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Te("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),O6=A6;function P6(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 I6(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 wp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kp=(e,t,n)=>e??t??n,B6=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(Cd),a=I(()=>e.route||r.value),o=Kn(yp,0),i=I(()=>{let u=he(o);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=I(()=>a.value.matched[i.value]);ul(yp,I(()=>i.value+1)),ul(M6,s),ul(Cd,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 Cp(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=Te(h,lt({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return Cp(n.default,{Component:v,route:u})||v}}});function Cp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const N6=B6;function L6(e){const t=u6(e.routes,e),n=e.parseQuery||_6,r=e.stringifyQuery||gp,a=e.history,o=gi(),i=gi(),s=gi(),l=b3(Wr);let u=Wr;po&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=dc.bind(null,U=>""+U),d=dc.bind(null,S6),h=dc.bind(null,Nl);function f(U,R){let K,H;return Tg(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=hc(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:Nl(P.hash),redirectedFrom:void 0,href:Y})}let K;if("path"in U)K=lt({},U,{path:hc(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=$8(r,lt({},U,{hash:C6(te),path:H.path})),_=a.createHref(E);return lt({fullPath:E,hash:te,query:r===gp?D6(U.query):U.query||{}},H,{redirectedFrom:void 0,href:_})}function b(U){return typeof U=="string"?hc(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 M(U){return w(lt(b(U),{replace:!0}))}function B(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=B(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&&H8(r,H,K)&&(Y=$o(16,{to:Z,from:H}),Ze(H,H,!0,!1)),(Y?Promise.resolve(Y):C(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=T(Z,H,!0,_,te);return A(Z,H,W),W})}function D(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 C(U,R){let K;const[H,te,E]=R6(U,R);K=fc(H.reverse(),"beforeRouteLeave",U,R);for(const P of H)P.leaveGuards.forEach(Z=>{K.push(ra(Z,U,R))});const _=D.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=fc(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=fc(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 T(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,Ze(U,R,K,_),Re()}let N;function ee(){N||(N=a.listen((U,R,K)=>{if(!De.listening)return;const H=p(U),te=B(H);if(te){L(lt(te,{replace:!0}),H).catch(Fi);return}u=H;const E=l.value;po&&K8(up(E.fullPath,K.delta),Bu()),C(H,E).catch(_=>Er(_,12)?_:Er(_,2)?(L(_.to,H).then(P=>{Er(P,20)&&!K.delta&&K.type===ls.pop&&a.go(-1,!1)}).catch(Fi),Promise.reject()):(K.delta&&a.go(-K.delta,!1),ye(_,H,E))).then(_=>{_=_||T(H,E,!1),_&&(K.delta&&!Er(_,8)?a.go(-K.delta,!1):K.type===ls.pop&&Er(_,20)&&a.go(-1,!1)),A(H,E,_)}).catch(Fi)}))}let ae=gi(),oe=gi(),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 Ze(U,R,K,H){const{scrollBehavior:te}=e;if(!po||!te)return Promise.resolve();const E=!K&&G8(up(U.fullPath,0))||(H||!K)&&history.state&&history.state.scroll||null;return on().then(()=>te(U,R,E)).then(_=>_&&V8(_)).catch(_=>ye(_,U,R))}const ze=U=>a.go(U);let fe;const $e=new Set,De={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,hasRoute:v,getRoutes:y,resolve:p,options:e,push:w,replace:M,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",O6),U.component("RouterView",N6),U.config.globalProperties.$router=R,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>he(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(Nu,R),U.provide(Eh,Sv(K)),U.provide(Cd,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 De}function R6(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 dne(){return Kn(Nu)}function $6(){return Kn(Eh)}var H6=Object.defineProperty,F6=(e,t,n)=>t in e?H6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t,n)=>(F6(e,typeof t!="symbol"?t+"":t,n),n);async function Rg(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 z6=ge({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:Rg})}}),Ep=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})}}),Lu=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 N8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ut=Object.assign;function dc(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 Fi=()=>{},Wn=Array.isArray,L8=/\/$/,R8=e=>e.replace(L8,"");function hc(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=z8(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:a,hash:i}}function $8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function sp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function H8(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(!F8(e[n],t[n]))return!1;return!0}function F8(e,t){return Wn(e)?lp(e,t):Wn(t)?lp(t,e):e===t}function lp(e,t){return Wn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function z8(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 ls;(function(e){e.pop="pop",e.push="push"})(ls||(ls={}));var zi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zi||(zi={}));function j8(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),R8(e)}const U8=/^[^#]+#/;function Z8(e,t){return e.replace(U8,"#")+t}function Y8(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 Bu=()=>({left:window.pageXOffset,top:window.pageYOffset});function V8(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=Y8(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 up(e,t){return(history.state?history.state.position-t:-1)+e}const wd=new Map;function K8(e,t){wd.set(e,t)}function G8(e){const t=wd.get(e);return wd.delete(e),t}let W8=()=>location.protocol+"//"+location.host;function Mg(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),sp(l,"")}return sp(n,e)+r+a}function q8(e,t,n,r){let a=[],o=[],i=null;const s=({state:h})=>{const f=Mg(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:ls.pop,direction:v?v>0?zi.forward:zi.back:zi.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(ut({},h.state,{scroll:Bu()}),"")}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 cp(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Bu():null}}function Q8(e){const{history:t,location:n}=window,r={value:Mg(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:W8()+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=ut({},t.state,cp(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=ut({},a.value,t.state,{forward:l,scroll:Bu()});o(c.current,c,!0);const d=ut({},cp(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 X8(e){e=j8(e);const t=Q8(e),n=q8(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const a=ut({location:"",base:e,go:r,createHref:Z8.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 J8(e){return typeof e=="string"||e&&typeof e=="object"}function Tg(e){return typeof e=="string"||typeof e=="symbol"}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ag=Symbol("");var dp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(dp||(dp={}));function $o(e,t){return ut(new Error,{type:e,[Ag]:!0},t)}function Er(e,t){return e instanceof Error&&Ag in e&&(t==null||!!(e.type&t))}const hp="[^/]+?",e6={sensitive:!1,strict:!1,start:!0,end:!0},t6=/[.+*?^${}()[\]/\\]/g;function n6(e,t){const n=ut({},e6,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 a6(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const o6={type:0,value:""},i6=/[a-zA-Z0-9_]/;function s6(e){if(!e)return[[]];if(e==="/")return[[o6]];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)}:Fi}function i(c){if(Tg(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||!Og(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!mp(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=ut(pp(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&pp(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=ut({},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:h6(v)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:s,getRecordMatcher:a}}function pp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function c6(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:d6(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 d6(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 mp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function h6(e){return e.reduce((t,n)=>ut(t,n.meta),{})}function vp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Og(e,t){return t.children.some(n=>n===e||Og(e,n))}const Pg=/#/g,f6=/&/g,p6=/\//g,m6=/=/g,v6=/\?/g,Ig=/\+/g,g6=/%5B/g,y6=/%5D/g,Bg=/%5E/g,b6=/%60/g,Ng=/%7B/g,w6=/%7C/g,Lg=/%7D/g,k6=/%20/g;function Ch(e){return encodeURI(""+e).replace(w6,"|").replace(g6,"[").replace(y6,"]")}function C6(e){return Ch(e).replace(Ng,"{").replace(Lg,"}").replace(Bg,"^")}function kd(e){return Ch(e).replace(Ig,"%2B").replace(k6,"+").replace(Pg,"%23").replace(f6,"%26").replace(b6,"`").replace(Ng,"{").replace(Lg,"}").replace(Bg,"^")}function E6(e){return kd(e).replace(m6,"%3D")}function x6(e){return Ch(e).replace(Pg,"%23").replace(v6,"%3F")}function S6(e){return e==null?"":x6(e).replace(p6,"%2F")}function Nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function _6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&kd(o)):[r&&kd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function D6(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 M6=Symbol(""),yp=Symbol(""),Nu=Symbol(""),Eh=Symbol(""),Cd=Symbol("");function gi(){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):J8(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 fc(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(T6(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=N8(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 T6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bp(e){const t=Kn(Nu),n=Kn(Eh),r=I(()=>t.resolve(he(e.to))),a=I(()=>{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=wp(l[u-2]);return u>1&&wp(c)===f&&d[d.length-1].path!==f?d.findIndex(Ro.bind(null,l[u-2])):h}),o=I(()=>a.value>-1&&I6(n.params,r.value.params)),i=I(()=>a.value>-1&&a.value===n.matched.length-1&&Dg(n.params,r.value.params));function s(l={}){return P6(l)?t[he(e.replace)?"replace":"push"](he(e.to)).catch(Fi):Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:o,isExactActive:i,navigate:s}}const A6=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:bp,setup(e,{slots:t}){const n=zr(bp(e)),{options:r}=Kn(Nu),a=I(()=>({[kp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[kp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Te("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),O6=A6;function P6(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 I6(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 wp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kp=(e,t,n)=>e??t??n,B6=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(Cd),a=I(()=>e.route||r.value),o=Kn(yp,0),i=I(()=>{let u=he(o);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=I(()=>a.value.matched[i.value]);ul(yp,I(()=>i.value+1)),ul(M6,s),ul(Cd,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 Cp(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=Te(h,ut({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return Cp(n.default,{Component:v,route:u})||v}}});function Cp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const N6=B6;function L6(e){const t=u6(e.routes,e),n=e.parseQuery||_6,r=e.stringifyQuery||gp,a=e.history,o=gi(),i=gi(),s=gi(),l=b3(Wr);let u=Wr;po&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=dc.bind(null,U=>""+U),d=dc.bind(null,S6),h=dc.bind(null,Nl);function f(U,R){let K,H;return Tg(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=ut({},R||l.value),typeof U=="string"){const P=hc(n,U,R.path),Z=t.resolve({path:P.path},R),Y=a.createHref(P.fullPath);return ut(P,Z,{params:h(Z.params),hash:Nl(P.hash),redirectedFrom:void 0,href:Y})}let K;if("path"in U)K=ut({},U,{path:hc(n,U.path,R.path).path});else{const P=ut({},U.params);for(const Z in P)P[Z]==null&&delete P[Z];K=ut({},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=$8(r,ut({},U,{hash:C6(te),path:H.path})),_=a.createHref(E);return ut({fullPath:E,hash:te,query:r===gp?D6(U.query):U.query||{}},H,{redirectedFrom:void 0,href:_})}function b(U){return typeof U=="string"?hc(n,U,l.value.path):ut({},U)}function m(U,R){if(u!==U)return $o(8,{from:R,to:U})}function w(U){return L(U)}function M(U){return w(ut(b(U),{replace:!0}))}function B(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={}),ut({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=B(K);if(P)return L(ut(b(P),{state:typeof P=="object"?ut({},te,P.state):te,force:E,replace:_}),R||K);const Z=K;Z.redirectedFrom=R;let Y;return!E&&H8(r,H,K)&&(Y=$o(16,{to:Z,from:H}),Ze(H,H,!0,!1)),(Y?Promise.resolve(Y):C(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(ut({replace:_},b(W.to),{state:typeof W.to=="object"?ut({},te,W.to.state):te,force:E}),R||Z)}else W=T(Z,H,!0,_,te);return A(Z,H,W),W})}function D(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 C(U,R){let K;const[H,te,E]=R6(U,R);K=fc(H.reverse(),"beforeRouteLeave",U,R);for(const P of H)P.leaveGuards.forEach(Z=>{K.push(ra(Z,U,R))});const _=D.bind(null,U,R);return K.push(_),Ue(K).then(()=>{K=[];for(const P of o.list())K.push(ra(P,U,R));return K.push(_),Ue(K)}).then(()=>{K=fc(te,"beforeRouteUpdate",U,R);for(const P of te)P.updateGuards.forEach(Z=>{K.push(ra(Z,U,R))});return K.push(_),Ue(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(_),Ue(K)}).then(()=>(U.matched.forEach(P=>P.enterCallbacks={}),K=fc(E,"beforeRouteEnter",U,R),K.push(_),Ue(K))).then(()=>{K=[];for(const P of i.list())K.push(ra(P,U,R));return K.push(_),Ue(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 T(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,ut({scroll:_&&P&&P.scroll},te)):a.push(U.fullPath,te)),l.value=U,Ze(U,R,K,_),Re()}let N;function ee(){N||(N=a.listen((U,R,K)=>{if(!De.listening)return;const H=p(U),te=B(H);if(te){L(ut(te,{replace:!0}),H).catch(Fi);return}u=H;const E=l.value;po&&K8(up(E.fullPath,K.delta),Bu()),C(H,E).catch(_=>Er(_,12)?_:Er(_,2)?(L(_.to,H).then(P=>{Er(P,20)&&!K.delta&&K.type===ls.pop&&a.go(-1,!1)}).catch(Fi),Promise.reject()):(K.delta&&a.go(-K.delta,!1),ye(_,H,E))).then(_=>{_=_||T(H,E,!1),_&&(K.delta&&!Er(_,8)?a.go(-K.delta,!1):K.type===ls.pop&&Er(_,20)&&a.go(-1,!1)),A(H,E,_)}).catch(Fi)}))}let ae=gi(),oe=gi(),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 Ze(U,R,K,H){const{scrollBehavior:te}=e;if(!po||!te)return Promise.resolve();const E=!K&&G8(up(U.fullPath,0))||(H||!K)&&history.state&&history.state.scroll||null;return on().then(()=>te(U,R,E)).then(_=>_&&V8(_)).catch(_=>ye(_,U,R))}const ze=U=>a.go(U);let fe;const $e=new Set,De={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,hasRoute:v,getRoutes:y,resolve:p,options:e,push:w,replace:M,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",O6),U.component("RouterView",N6),U.config.globalProperties.$router=R,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>he(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(Nu,R),U.provide(Eh,Sv(K)),U.provide(Cd,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 Ue(U){return U.reduce((R,K)=>R.then(()=>x(K)),Promise.resolve())}return De}function R6(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 dne(){return Kn(Nu)}function $6(){return Kn(Eh)}var H6=Object.defineProperty,F6=(e,t,n)=>t in e?H6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t,n)=>(F6(e,typeof t!="symbol"?t+"":t,n),n);async function Rg(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 z6=ge({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:Rg})}}),Ep=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})}}),Lu=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: @@ -469,13 +469,13 @@ var _b=Object.defineProperty;var Db=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,config * SOFTWARE. */var Cs=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",S9=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function _9(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function D9(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},S9))}}var M9=Cs&&window.Promise,T9=M9?_9:D9;function Yg(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 xh(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Es(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:Es(xh(e))}function Vg(e){return e&&e.referenceNode?e.referenceNode:e}var _p=Cs&&!!(window.MSInputMethodContext&&document.documentMode),Dp=Cs&&/MSIE 10/.test(navigator.userAgent);function Jo(e){return e===11?_p:e===10?Dp:_p||Dp}function Fo(e){if(!e)return document.documentElement;for(var t=Jo(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 A9(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Fo(e.firstElementChild)===e}function Ed(e){return e.parentNode!==null?Ed(e.parentNode):e}function $l(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 A9(i)?i:Fo(i);var s=Ed(e);return s.host?$l(s.host,t):$l(e,Ed(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 O9(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 Mp(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 Tp(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Jo(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Kg(e){var t=e.body,n=e.documentElement,r=Jo(10)&&getComputedStyle(n);return{height:Tp("Height",t,n,r),width:Tp("Width",t,n,r)}}var P9=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I9=function(){function e(t,n){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=Jo(10),a=t.nodeName==="HTML",o=xd(e),i=xd(t),s=Es(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=O9(d,t)),d}function B9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Sh(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 Gg(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ja(e,"position")==="fixed")return!0;var n=xh(e);return n?Gg(n):!1}function Wg(e){if(!e||!e.parentElement||Jo())return document.documentElement;for(var t=e.parentElement;t&&Ja(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function _h(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},i=a?Wg(e):$l(e,Vg(t));if(r==="viewport")o=B9(i,a);else{var s=void 0;r==="scrollParent"?(s=Es(xh(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=Sh(s,i,a);if(s.nodeName==="HTML"&&!Gg(i)){var u=Kg(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 N9(e){var t=e.width,n=e.height;return t*n}function qg(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=_h(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 On({key:h},s[h],{area:N9(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 Qg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=r?Wg(t):$l(t,Vg(n));return Sh(n,a,r)}function Xg(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 Hl(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 Jg(e,t,n){n=n.split("-")[0];var r=Xg(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[Hl(s)],a}function xs(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L9(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===n});var r=xs(e,function(a){return a[t]===n});return e.indexOf(r)}function e2(e,t,n){var r=n===void 0?e:e.slice(0,L9(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&&Yg(o)&&(t.offsets.popper=ma(t.offsets.popper),t.offsets.reference=ma(t.offsets.reference),t=o(t,a))}),t}function R9(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Qg(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=qg(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=Jg(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=e2(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function t2(e,t){return e.some(function(n){var r=n.name,a=n.enabled;return a&&r===t})}function Dh(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 q9(e){return e==="end"?"start":e==="start"?"end":e}var o2=["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"],yc=o2.slice(3);function Ap(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=yc.indexOf(e),r=yc.slice(n+1).concat(yc.slice(0,n));return t?r.reverse():r}var bc={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Q9(e,t){if(t2(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=_h(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=Hl(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case bc.FLIP:i=[r,a];break;case bc.CLOCKWISE:i=Ap(r);break;case bc.COUNTERCLOCKWISE:i=Ap(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=Hl(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),M=m||w;(h||p||M)&&(e.flipped=!0,(h||p)&&(r=i[l+1]),M&&(o=q9(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=On({},e.offsets.popper,Jg(e.instance.popper,e.offsets.reference,e.placement)),e=e2(e.instance.modifiers,e,"flip"))}),e}function X9(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 J9(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 ek(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(xs(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 J9(g,h,t,n)})}),u.forEach(function(c,d){c.forEach(function(h,f){Mh(h)&&(a[d]+=h*(c[f-1]==="-"?-1:1))})}),a}function tk(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 Mh(+n)?l=[+n,0]:l=ek(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 nk(e,t){var n=t.boundariesElement||Fo(e.instance.popper);e.instance.reference===n&&(n=Fo(n));var r=Dh("transform"),a=e.instance.popper.style,o=a.top,i=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=_h(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=On({},c,d[f](h))}),e.offsets.popper=c,e}function rk(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=On({},i,c[r])}return e}function ak(e){if(!a2(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=xs(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]:{};P9(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=T9(this.update.bind(this)),this.options=On({},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(On({},e.Defaults.modifiers,a.modifiers)).forEach(function(i){r.options.modifiers[i]=On({},e.Defaults.modifiers[i]||{},a.modifiers?a.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return On({name:i},r.options.modifiers[i])}).sort(function(i,s){return i.order-s.order}),this.modifiers.forEach(function(i){i.enabled&&Yg(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 I9(e,[{key:"update",value:function(){return R9.call(this)}},{key:"destroy",value:function(){return $9.call(this)}},{key:"enableEventListeners",value:function(){return F9.call(this)}},{key:"disableEventListeners",value:function(){return j9.call(this)}}]),e}();Hu.Utils=(typeof window<"u"?window:global).PopperUtils;Hu.placements=o2;Hu.Defaults=sk;const lk=Hu;var wc=new WeakMap,Op=0;function uk(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 dk(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function hk(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var fk=function(e){return fetch(e).then(function(t){return t.json()})};const kc={isOnline:dk,isDocumentVisible:hk,fetcher:fk};var Mr=globalThis&&globalThis.__assign||function(){return Mr=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},mk=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 gk(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 Pp=function(e,t,n,r){return n===void 0&&(n=i2),r===void 0&&(r=s2.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(!yk(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=Fl.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 Ip(){for(var e=this,t=[],n=0;n=1&&(r=t[0]),t.length>=2&&(a=t[1]),t.length>2&&(o=Mr(Mr({},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,M,B,L,D,x,C,A=this;return vo(this,function(T){switch(T.label){case 0:return w=f.data===void 0,M=h.value,M?(B=o.cache.get(M),L=B&&B.data,f.isValidating=!0,L&&(f.data=L.data,f.error=L.error),D=b||a,!D||!o.isDocumentVisible()&&!w||(m==null?void 0:m.forceRevalidate)!==void 0&&!(m!=null&&m.forceRevalidate)?(f.isValidating=!1,[2]):B&&(x=!!(Date.now()-B.createdAt>=o.dedupingInterval||m!=null&&m.forceRevalidate),!x)?(f.isValidating=!1,[2]):(C=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=Cc.get(M),N?[3,2]:(ee=Array.isArray(M)?M:[M],ae=D.apply(void 0,mk([],pk(ee),!1)),Cc.set(M,ae,o.dedupingInterval),[4,Pp(M,ae,o.cache,d)]);case 1:return Q.sent(),[3,4];case 2:return[4,Pp(M,N.data,o.cache,d)];case 3:Q.sent(),Q.label=4;case 4:return f.isValidating=!1,Cc.delete(M),f.error!==void 0&&(oe=!i&&o.shouldRetryOnError&&(m?m.shouldRetryOnError:!0),oe&&gk(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,C()];case 1:N.sent(),N.label=2;case 2:return[2]}})})},o.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,C()];case 2:T.sent(),T.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=Fl.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,vk(h.value,f,d),!c&&!s&&h.value&&g(),s=!1},{immediate:!0})}catch{}var p=Mr(Mr({},C3(f)),{mutate:function(b,m){return g(b,Mr(Mr({},m),{forceRevalidate:!0}))}});return p}function yk(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 mn(){return{useRequest:(e,t,n)=>{const r=typeof Ip=="function"?Ip:()=>({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:I(()=>{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 $v(()=>{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 bk={default:"default",success:"success",danger:"danger",info:"info",warning:"warning",custom:"custom",neutral:"neutral"},wk={rounded:"rounded",rectangular:"rectangular"},kk=["borderTop","noBorder","border"],Ck=["large","medium","small"],Ek=["leading","trailing"],xk=["date","time","dateTime","relative","relativeDate","relativeDateTime"],Sk=["menu","selectionMenu"],_k=["light","dark"],Dk=["left","center","right"],Mk=["default","offset"],Tk=["ascending","descending",""],Ak=["true","loading"],Ok=["small","medium","large"],Pk=["start","end"],Ik=["left","right"],Bk=["string","number","divider"],l2=["active","default","pending","completed","error"],Nk=["radio","card"],Lk=["info","warning","danger"],Rk=["click","hover"],u2=["auto","top","topStart","topEnd","left","leftStart","leftEnd","right","rightStart","rightEnd","bottom","bottomStart","bottomEnd"],$k=["table","card","form","spinner","fullscreen-kong","fullscreen-generic",""],Hk=["1","2","5","6","10","25","50","75","100"],Fk=["1","2"],zk=["dropdown","select","button"],c2=zg,jk=["get","post","put","patch","delete","head","options","trace","connect","custom"];var _d=(e=>(e.fontSize="font-size",e.fontWeight="font-weight",e.fontFamily="font-family",e.color="color",e.margin="margin",e.padding="padding",e))(_d||{});const Uk=["table","grid"],{getSizeFromString:Ec}=mn(),Zk=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=>u2.includes(e),default:"auto"},trigger:{type:String,default:"click",validator:e=>Rk.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:Ec(this.width),maxWidth:Ec(this.maxWidth),maxHeight:Ec(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 lk(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)}}}),Yk={key:0},Vk=["id"],Kk={key:0,class:"k-popover-header"},Gk={key:0,class:"k-popover-title"},Wk={key:1,class:"k-popover-actions"},qk={class:"k-popover-content"},Qk={key:1,class:"k-popover-footer"},Xk=["id"],Jk={key:0,class:"k-popover-header"},eC={key:0,class:"k-popover-title"},tC={key:1,class:"k-popover-actions"},nC={class:"k-popover-content"},rC={key:1,class:"k-popover-footer"};function aC(e,t,n,r,a,o){const i=Gn("KButton");return k(),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(Tt(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?(k(),S("div",Yk,[(k(),S("foreignObject",null,[Al(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?(k(),S("div",Kk,[e.$slots.title||e.title?(k(),S("div",Gk,[F(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(k(),S("div",Wk,[F(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",qk,[F(e.$slots,"content")]),e.$slots.footer?(k(),S("div",Qk,[F(e.$slots,"footer")])):$("",!0)],14,Vk),[[gd,e.isOpen]])]))])):(k(),se(ja,{key:1,name:"fade"},{default:z(()=>[Al(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?(k(),S("div",Jk,[e.$slots.title||e.title?(k(),S("div",eC,[F(e.$slots,"title",{},()=>[J(V(e.title),1)])])):$("",!0),e.$slots.actions?(k(),S("div",tC,[F(e.$slots,"actions")])):$("",!0)])):$("",!0),O("div",nC,[F(e.$slots,"content")]),e.$slots.footer?(k(),S("div",rC,[F(e.$slots,"footer")])):$("",!0)],14,Xk),[[gd,e.isOpen]])]),_:3}))]),_:3},40,["id","aria-controls","aria-expanded","role","onKeyup"])}const ei=Ee(Zk,[["render",aC]]),oC={role:"tooltip"},ti=ge({__name:"KTooltip",props:{label:{type:String,required:!1,default:""},placement:{type:String,default:"bottom",validator:e=>u2.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=I(()=>{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)=>(k(),se(ei,Ge(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",oC,[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"]))}}),iC=["aria-hidden","tabindex"],{getSizeFromString:sC}=mn(),lC={name:"KBadge",components:{KButton:We,KIcon:Ie,KTooltip:ti}},uC=ge({...lC,props:{appearance:{type:String,required:!1,validator:e=>Object.keys({...bk}).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({...wk}).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;Qo(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=I(()=>!!r.onClick),o=j(null),i=j(!1),s=()=>{i.value=!0,t("dismissed")},l=j(0),u=j(0),c=j(!1),d=I(()=>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=I(()=>sC(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):(k(),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},[(k(),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?(k(),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]=Tt(()=>{},["stop"]))]},{default:z(()=>[G(Ie,{color:e.color,icon:"close",size:he(Fg),title:"Remove"},null,8,["color","size"])]),_:1},8,["aria-hidden","is-rounded","tabindex"])):$("",!0)],14,iC))}}),Di=Ee(uC,[["__scopeId","data-v-67fa49a3"]]),cC={class:"k-breadcrumb-icon-wrapper"},dC={key:0,class:"k-breadcrumb-divider"},hC={inheritAttrs:!1},fC=ge({...hC,__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)=>(k(),S("ul",Ge({class:"k-breadcrumbs"},r.$attrs),[(k(!0),S(Ae,null,ot(e.items,(o,i)=>(k(),S("li",{key:n(o,i),class:"k-breadcrumbs-item"},[(k(),se(va(t(o).type),Ge(t(o).attrs,{class:"no-underline"}),{default:z(()=>[O("div",cC,[F(r.$slots,`icon-${n(o,i)}`,{},()=>[o.icon?(k(),se(Ie,{key:0,class:q(["k-breadcrumb-icon",{"has-no-text":!o.text}]),color:`var(--kui-color-text-decorative, ${he($7)})`,"hide-title":"",icon:o.icon,size:he(xt)},null,8,["class","color","icon","size"])):$("",!0)],!0)]),o.text?(k(),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(Ie,{color:`var(--grey-500, var(--kui-color-text-neutral-weak, ${he(Xa)}))`,"hide-title":"",icon:"chevronRight",size:he(xt)},null,8,["color","size"])],!0)])):$("",!0)]))),128))],16))}}),d2=Ee(fC,[["__scopeId","data-v-cca12c6d"]]),pC=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`)),()=>Te(d2,{...e,...t,...r},n)}}),mC=["aria-describedby","aria-label","aria-labelledby"],vC={key:0,class:"k-card-status-hat"},gC=["id"],yC={class:"k-card-actions"},bC=["id"],wC={class:"k-card-content"},kC=["id"],CC={key:0,class:"k-card-notifications"},EC=ge({__name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border",validator:e=>kk.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=I(()=>t.testMode?"test-title-id-1234":pa()),r=I(()=>t.testMode?"test-content-id-1234":pa()),a=It(),o=I(()=>!!(t.status||a.statusHat)),i=I(()=>!!a.actions||o.value||!o.value&&(!!t.title||!!a.title)),s=I(()=>!o.value&&(!!t.title||!!a.title)),l=I(()=>o.value&&(!!t.title||!!a.title));return(u,c)=>(k(),S("section",{"aria-describedby":r.value||void 0,"aria-label":e.title?e.title:void 0,"aria-labelledby":!e.title&&he(a).title?n.value:void 0,class:q(["kong-card",[e.borderVariant,{hover:e.hasHover,"kcard-shadow":e.hasShadow}]])},[i.value?(k(),S("div",{key:0,class:q(["k-card-header",{"has-status":e.status||he(a).statusHat}])},[e.status||he(a).statusHat?(k(),S("div",vC,[F(u.$slots,"statusHat",{},()=>[J(V(e.status),1)],!0)])):$("",!0),s.value?(k(),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,gC)):$("",!0),O("div",yC,[F(u.$slots,"actions",{},void 0,!0)])],2)):$("",!0),l.value?(k(),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,bC)):$("",!0),O("div",wC,[O("div",{id:r.value,class:"k-card-body"},[F(u.$slots,"body",{},()=>[J(V(e.body),1)],!0)],8,kC),he(a).notifications?(k(),S("div",CC,[F(u.$slots,"notifications",{},void 0,!0)])):$("",!0)])],10,mC))}}),Ah=Ee(EC,[["__scopeId","data-v-22c99869"]]),xC=ge({__name:"KSkeletonBox",props:{width:{type:String,default:"1",validator:e=>Hk.includes(e)},height:{type:String,default:"1",validator:e=>Fk.includes(e)}},setup(e){return(t,n)=>(k(),S("div",{class:q(["box",{[`width-${e.width}`]:!0,[`height-${e.height}`]:!0}])},null,2))}}),Mt=Ee(xC,[["__scopeId","data-v-3c50a4ad"]]),SC={class:"skeleton-loader"},_C=ge({__name:"SkeletonBase",setup(e){return(t,n)=>(k(),S("div",SC,[F(t.$slots,"default",{},()=>[G(Mt,{height:"1",width:"100"}),G(Mt,{height:"1",width:"100"}),G(Mt,{height:"1",width:"75"})],!0)]))}}),DC=Ee(_C,[["__scopeId","data-v-28ddd291"]]),MC=e=>(Rn("data-v-fdceaf4f"),e=e(),$n(),e),TC={class:"skeleton-card-wrapper"},AC={class:"skeleton-card"},OC={class:"skeleton-card-header"},PC=MC(()=>O("hr",null,null,-1)),IC={class:"skeleton-card-content"},BC={class:"skeleton-card-footer"},NC=ge({__name:"CardSkeleton",props:{cardCount:{type:Number,default:1}},setup(e){return(t,n)=>(k(),S("div",TC,[(k(!0),S(Ae,null,ot(e.cardCount,r=>(k(),S("div",{key:r,class:"skeleton-card-column"},[O("div",AC,[O("div",OC,[F(t.$slots,"card-header",{},()=>[G(Mt,{class:"card-header-content-1",height:"2",width:"25"}),G(Mt,{class:"card-header-content-2",height:"2",width:"75"}),PC],!0)]),O("div",IC,[F(t.$slots,"card-content",{},()=>[G(Mt,{width:"10"})],!0)]),O("div",BC,[F(t.$slots,"card-footer",{},()=>[G(Mt,{width:"5"}),G(Mt,{width:"5"})],!0)])])]))),128))]))}}),LC=Ee(NC,[["__scopeId","data-v-fdceaf4f"]]),RC={class:"skeleton-table-wrapper"},$C=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)=>(k(),S("div",RC,[(k(!0),S(Ae,null,ot(e.rows,a=>(k(),S("div",{key:a,class:"skeleton-table-row"},[F(n.$slots,"default",{},()=>[(k(!0),S(Ae,null,ot(e.columns,o=>(k(),se(Mt,{key:o,class:"skeleton-cell",width:t(o,e.columns||6)},null,8,["width"]))),128))],!0)]))),128))]))}}),HC=Ee($C,[["__scopeId","data-v-8bd8572d"]]),FC={class:"skeleton-form-wrapper"},zC={class:"skeleton-form-row"},jC={class:"skeleton-form-row"},UC={class:"skeleton-form-row"},ZC={class:"skeleton-form-row"},YC=ge({__name:"FormSkeleton",setup(e){return(t,n)=>(k(),S("div",FC,[O("div",zC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",jC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",UC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",ZC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})])]))}}),VC=Ee(YC,[["__scopeId","data-v-27fab520"]]),KC="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",GC={class:"fullscreen-loading-container","data-testid":"full-screen-loader"},WC=["src"],qC={key:0,class:"progress"},QC=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=I(()=>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)=>(k(),S("div",GC,[O("div",null,[O("img",{alt:"Loading",src:he(KC)},null,8,WC),e.hideProgress?$("",!0):(k(),S("div",qC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),XC=Ee(QC,[["__scopeId","data-v-5c71d015"]]),JC=e=>(Rn("data-v-5a15970d"),e=e(),$n(),e),eE={class:"fullscreen-loading-container","data-testid":"full-screen-spinner-loader"},tE=JC(()=>O("div",{class:"spinner-loader"},null,-1)),nE={key:0,class:"progress"},rE=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=I(()=>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)=>(k(),S("div",eE,[O("div",null,[tE,e.hideProgress?$("",!0):(k(),S("div",nE,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),aE=Ee(rE,[["__scopeId","data-v-5a15970d"]]),Oh=ge({__name:"KSkeleton",props:{delayMilliseconds:{type:Number,required:!1,default:0},type:{type:String,default:"",validator:e=>$k.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?(k(),S("div",{key:0,class:q(["k-skeleton-container",{"is-spinner":e.type!=="spinner"}])},[e.type==="card"?(k(),se(LC,{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"?(k(),se(HC,{key:1,columns:e.tableColumns,rows:e.tableRows},{default:z(()=>[F(r.$slots,"default")]),_:3},8,["columns","rows"])):e.type==="form"?(k(),se(VC,{key:2})):e.type==="fullscreen-kong"?(k(),se(XC,{key:3,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="fullscreen-generic"?(k(),se(aE,{key:4,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="spinner"?(k(),se(Ie,{key:5,color:"#000",icon:"spinner",size:"18"})):(k(),se(DC,{key:6}))],2)):$("",!0)}}),oE={class:"empty-state-title"},iE={key:1,class:"k-empty-state-title-header"},sE={class:"empty-state-content"},lE={key:0,class:"k-empty-state-message"},uE={class:"k-empty-state-cta"},cE=ge({__name:"KEmptyState",props:{isError:{type:Boolean,default:!1},iconSize:{type:String,default:U7},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)=>(k(),S("section",{class:q(["empty-state-wrapper",{"is-error":e.isError}])},[O("div",oE,[e.isError||e.icon?(k(),S("div",{key:0,class:q(["k-empty-state-icon card-icon",{"warning-icon":e.isError}])},[G(Ie,{color:e.isError?e.iconColor||`var(--black-70, var(--kui-color-text-neutral-strongest, ${he(H7)}))`: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?(k(),S("div",iE,[F(t.$slots,"title",{},void 0,!0)])):$("",!0)]),O("div",sE,[t.$slots.message?(k(),S("div",lE,[F(t.$slots,"message",{},void 0,!0)])):$("",!0),O("div",uE,[F(t.$slots,"cta",{},()=>[!e.ctaIsHidden&&e.ctaText?(k(),se(We,{key:0,appearance:"primary",size:"small",onClick:n[0]||(n[0]=Tt(()=>e.handleClick&&e.handleClick(),["prevent"]))},{default:z(()=>[J(V(e.ctaText),1)]),_:1})):$("",!0)],!0)])])],2))}}),us=Ee(cE,[["__scopeId","data-v-147e1e00"]]),dE={class:"k-input-label"},hE={key:0,class:"is-required"},fE=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=I(()=>!!(t.info||t.help||n.tooltip));return(a,o)=>(k(),S("label",dE,[F(a.$slots,"default",{},void 0,!0),e.required?(k(),S("span",hE,"*")):$("",!0),r.value?(k(),se(ti,Ge({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(Ie,{color:`var(--black-25, var(--kui-color-text-neutral-weak, ${he(Xa)}))`,"hide-title":"",icon:e.help?"help":"infoFilled",size:he(xt)},null,8,["color","icon","size"])]),_:3},16,["test-mode"])):$("",!0)]))}}),Ur=Ee(fE,[["__scopeId","data-v-5367d32d"]]),pE={class:"text-on-input"},mE=["for"],vE={key:0,class:"is-required"},gE=["id","aria-invalid","value"],yE=["id","aria-invalid","value"],bE=["aria-invalid","value"],wE={key:4,class:"help"},kE=["tabindex","onKeyup"],CE={inheritAttrs:!1},EE=ge({...CE,__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=>Ok.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=>Pk.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}=mn(),u=It(),c=Xn(),d=I(()=>(c==null?void 0:c.disabled)!==void 0&&String(c==null?void 0:c.disabled)!=="false"),h=I(()=>(c==null?void 0:c.readonly)!==void 0&&String(c==null?void 0:c.readonly)!=="false"),f=I(()=>(c==null?void 0:c.required)!==void 0&&String(c==null?void 0:c.required)!=="false"),g=I(()=>c.id?String(c.id):n.testMode?"test-input-id-1234":an()),y=I(()=>l(n.label,f.value)),v=I(()=>{var C,A;return!!((C=n.labelAttributes)!=null&&C.help||(A=n.labelAttributes)!=null&&A.info||u["label-tooltip"])}),p=I({get(){return n.modelValue},set(C){B({target:{value:C}})}}),b=I(()=>{const C={...c};return delete C.class,delete C.input,delete C.onInput,C}),m=I(()=>{var C,A;const T=((C=r.value)==null?void 0:C.toString().length)||0,N=((A=n.modelValue)==null?void 0:A.toString().length)||0;let ee=T;return!a.value&&N&&(ee=N),!!n.characterLimit&&ee>n.characterLimit}),w=I(()=>m.value?a.value?`${r.value.toString().length} / ${n.characterLimit}`:`${n.modelValue.toString().length} / ${n.characterLimit}`:""),M=I(()=>!!c["onIcon:click"]);Le(m,(C,A)=>{C!==A&&t("char-limit-exceeded",{value:r.value,length:r.value.length,characterLimit:n.characterLimit,limitExceeded:C})}),Le(p,(C,A)=>{C!==A&&B({target:{value:C}})});const B=C=>{var A;const T=JSON.parse(JSON.stringify((A=C==null?void 0:C.target)==null?void 0:A.value));L(T)},L=C=>{r.value=C,a.value=!0,t("input",C),t("update:modelValue",C)},D=()=>r.value||a.value?r.value:n.modelValue,x=C=>{if(M.value){const A=c["onIcon:click"];typeof A=="function"&&A(C)}};return ft(()=>{s.value&&M.value&&(s.value.role="button")}),(C,A)=>(k(),S("div",{class:q(["k-input-wrapper",[C.$attrs.class,{"input-error":m.value||e.hasError||String(C.$attrs.class||"").includes("input-error")}]])},[e.label&&e.overlayLabel?(k(),S("div",{key:0,class:q(`k-input-label-wrapper-${e.size}`)},[O("div",pE,[O("label",Ge(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?(k(),S("span",vE,"*")):$("",!0)],16,mE),O("input",Ge(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}`]:C.$slots.icon}],value:D(),onBlur:A[0]||(A[0]=()=>o.value=!1),onFocus:A[1]||(A[1]=()=>o.value=!0),onInput:B,onMouseenter:A[2]||(A[2]=()=>i.value=!0),onMouseleave:A[3]||(A[3]=()=>i.value=!1)}),null,16,gE)]),m.value||e.hasError?(k(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):e.label?(k(),S("div",{key:1,class:q(`k-input-label-wrapper-${e.size}`)},[G(Ur,Ge({for:g.value},e.labelAttributes,{required:f.value}),qa({default:z(()=>[J(V(y.value)+" ",1)]),_:2},[v.value?{name:"tooltip",fn:z(()=>[F(C.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("input",Ge(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}`]:C.$slots.icon}],value:D(),onInput:B}),null,16,yE),m.value||e.hasError?(k(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):(k(),S("input",Ge({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}`]:C.$slots.icon}],value:D(),onInput:B}),null,16,bE)),(m.value||e.hasError)&&!e.label?(k(),S("p",{key:3,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0),e.help?(k(),S("p",wE,V(e.help),1)):$("",!0),C.$slots.icon?(k(),S("div",{key:5,ref_key:"icon",ref:s,class:q(["input-icon",{clickable:M.value}]),tabindex:M.value?0:-1,onClick:x,onKeyup:jt(x,["enter"])},[F(C.$slots,"icon",{},void 0,!0)],42,kE)):$("",!0)],2))}}),Ss=Ee(EE,[["__scopeId","data-v-b216eb8a"]]),xE=["data-testid"],SE={class:"k-select-item-container",role:"option"},_E=["disabled","value"],DE={class:"k-select-item-label"},ME={class:"k-select-selected-icon-container"},TE=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)=>(k(),S("div",{key:e.item.key,class:"k-select-item","data-testid":`k-select-item-${e.item.value}`,onClick:r},[O("div",SE,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value},[O("span",DE,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",ME,[e.item.selected?(k(),se(Ie,{key:0,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,_E)])],8,xE))}}),zl=Ee(TE,[["__scopeId","data-v-bc67a10a"]]),AE={class:"k-select-group-title"},OE=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=I(()=>n.items.filter(s=>!s.group)),o=I(()=>[...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)=>(k(),S(Ae,null,[(k(!0),S(Ae,null,ot(a.value,u=>(k(),se(zl,{key:u.key,item:u,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(k(!0),S(Ae,null,ot(o.value,u=>(k(),S("div",{key:`${u}-group`,class:"k-select-group"},[O("span",AE,V(u),1),(k(!0),S(Ae,null,ot(i(u),c=>(k(),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))}}),PE=Ee(OE,[["__scopeId","data-v-39329325"]]),IE=e=>(Rn("data-v-222d3226"),e=e(),$n(),e),BE=["id"],NE={class:"k-select-selected-item-label"},LE=["onKeyup"],RE=["id"],$E=["id"],HE={key:0,class:"custom-selected-item"},FE={key:1,class:"k-select-list"},zE={class:"select-item-description"},jE=IE(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),UE={inheritAttrs:!1},ZE=ge({...UE,__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=>zk.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;Qo(R=>({d7f705e8:A.value}));const{getSizeFromString:r,stripRequiredLabel:a}=mn(),o={popoverClasses:"k-select-popover",popoverTimeout:0,placement:"bottomStart",hideCaret:!0},i=Xn(),s=It(),l=I(()=>i.required!==void 0&&String(i.required)!=="false"),u=I(()=>a(n.label,l.value)),c=I(()=>{var R,K;return!!((R=n.labelAttributes)!=null&&R.help||(K=n.labelAttributes)!=null&&K.info||s["label-tooltip"])}),d=j(""),h=I(()=>{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=I(()=>n.testMode?"test-select-id-1234":an()),y=I(()=>n.testMode?"test-select-input-id-1234":an()),v=I(()=>n.testMode?"test-select-text-id-1234":an()),p=j([]),b=j(!1),m=j(!1),w=j(null),M=I({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||Ze()}}),B=I(()=>n.autosuggest?!0:n.enableFiltering!==null?n.appearance==="button"?!1:n.enableFiltering:n.appearance==="dropdown"),L=I(()=>{let R="";return n.width?R=n.width:(R="205",n.appearance==="button"&&(R="230")),r(R)}),D=I(()=>({width:L.value})),x=I(()=>{const R={...i};return delete R.class,R}),C=I(()=>({...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=I(()=>r(n.dropdownMaxHeight)),T=I(()=>({...C.value})),N=I(()=>n.autosuggest?p.value:n.filterFunc({items:p.value,query:d.value})),ee=I(()=>n.placeholder?n.placeholder:i.placeholder?i.placeholder:n.appearance==="button"||!B.value?"Select an item":"Filter..."),ae=I(()=>n.buttonText&&f.value?n.buttonText:f.value?f.value.label:ee.value),oe=I(()=>n.appearance==="select"&&n.clearable&&!!f.value),Q=I(()=>!!(f.value&&n.appearance==="select"&&(s["selected-item-template"]||n.reuseItemTemplate&&s["item-template"]))),ye=R=>{if(!B.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)},Ze=()=>{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",""))},De=()=>{m.value=!1};Le(M,(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||Ze()}}),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)=>(k(),S("div",{class:q(["k-select",[R.$attrs.class]]),style:Et(D.value)},[e.label&&!e.overlayLabel?(k(),se(Ur,Ge({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"?(k(),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",NE,V(f.value.label),1)],!0),O("button",{class:"clear-selection-icon",onClick:Ze,onKeyup:jt(Ze,["enter"])},[G(Ie,{color:"currentColor",icon:"clear"})],40,LE)],2)):$("",!0),G(he(Lu),null,{default:z(({toggle:H,isToggled:te})=>[G(ei,Ge({ref_key:"popper",ref:w},T.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(Ie,{class:"k-select-loading","data-testid":"k-select-loading",icon:"spinner"})],!0):(k(),S("div",FE,[G(PE,{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?(k(),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?(k(),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",zE,[J(V(d.value)+" ",1),jE])]),_: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?(k(),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"?(k(),S("div",{key:0,id:y.value,class:"k-select-button","data-testid":"k-select-input",role:"listbox",style:{position:"relative"}},[G(We,Ge({id:v.value},x.value,{appearance:"btn-link","is-rounded":!1,"show-caret":"",style:D.value,onKeyup:E=>ze(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,RE)):(k(),S("div",{key:1,id:y.value,class:q(["select-input-container",{"k-select-input":e.appearance==="select","no-filter":!B.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?(k(),se(We,{key:0,class:"clear-selection-icon",onClick:Ze,onKeyup:jt(Ze,["enter"])},{default:z(()=>[G(Ie,{color:`var(--grey-500, ${he(Ho)})`,icon:"clear",size:he(xt)},null,8,["color","size"])]),_:1},8,["onKeyup"])):$("",!0),e.appearance==="select"?(k(),se(Ie,{key:1,class:q({"overlay-label-chevron":e.overlayLabel}),color:`var(--grey-500, ${he(Ho)})`,icon:"chevronDown",size:he(xt)},null,8,["class","color","size"])):$("",!0),G(Ss,Ge({id:v.value},x.value,{autocapitalize:"off",autocomplete:"off",class:["k-select-input",{"no-filter":!B.value,"input-placeholder-dark has-chevron":e.appearance==="select","input-placeholder-transparent":Q.value&&(!B.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"&&!B.value?f.value.label:ee.value,onBlur:De,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:z(()=>[Q.value&&(!B.value||!te.value)?(k(),S("div",HE,[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,$E))]),_:2},1040,["on-popover-click","position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,BE)],6))}}),h2=Ee(ZE,[["__scopeId","data-v-222d3226"]]),YE={class:"pagination-offset-button-container"},VE=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 k(),S("div",YE,[G(s,{"aria-label":"Go to the previous page",class:q(["pagination-button",{disabled:e.prevButtonDisabled}]),"data-testid":"prev-btn",onClick:Tt(a,["prevent"])},{icon:z(()=>[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.prevButtonDisabled}]),color:"currentColor",icon:"arrowLeft",size:he(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:Tt(r,["prevent"])},{icon:z(()=>[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.nextButtonDisabled}]),color:"currentColor",icon:"arrowRight",size:he(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"])])}}}),KE=Ee(VE,[["__scopeId","data-v-20a48d53"]]),GE={"aria-label":"Pagination Navigation","data-testid":"k-pagination-container"},WE={class:"card-pagination-bar"},qE={class:"pagination-text","data-testid":"visible-items"},QE={class:"pagination-text-pages"},XE={class:"pagination-button-container"},JE=["onClick"],ex={key:0,class:"pagination-button","data-testid":"page-1-btn"},tx={key:1,class:"pagination-button placeholder"},nx=["data-testid"],rx=["aria-current","aria-label","onClick"],ax={key:2,class:"pagination-button placeholder"},ox={key:3,class:"pagination-button"},ix=["onClick"],sx={class:"page-size-select","data-testid":"page-size-dropdown"},lx=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=I(()=>Math.ceil(n.totalCount/o.value)),s=n.pageSizes.map((A,T)=>({label:`${A}`,key:`size-${T}`,value:A})),l=j(""),u=(A,T,N,ee)=>{if(n.disablePageJump)return[];let ae=[...Array(T).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>T-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=I(()=>(a.value-1)*o.value+1),f=I(()=>{const A=h.value-1+o.value;return A>n.totalCount?n.totalCount:A}),g=I(()=>`${h.value} to ${f.value}`),y=I(()=>` of ${n.totalCount}`),v=I(()=>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())},M=()=>{c.value||(a.value--,L())},B=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 T=5+2*n.neighbors;i.value<=T?(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)})},D=A=>{o.value=A.value,l.value=o.value+" items per page",t("pageSizeChanged",{pageSize:o.value,pageCount:i.value}),n.currentPage!==1&&B(1)},x=()=>{t("getNextOffset")},C=()=>{t("getPrevOffset")};return Le(()=>n.currentPage,(A,T)=>{A!==T&&B(A)}),Le(i,(A,T)=>{A!==T&&(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,T)=>(k(),S("nav",GE,[O("div",WE,[e.paginationType==="default"?(k(),S(Ae,{key:0},[O("span",qE,[O("span",QE,V(g.value),1),J(" "+V(y.value),1)]),O("ul",XE,[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:Tt(M,["prevent"])},[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":c.value}]),color:"currentColor",icon:"arrowLeft",size:he(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,JE)],2),!e.disablePageJump&&p.value?(k(),S("li",ex,[O("a",{"aria-label":"Go to the first page",href:"#",onClick:T[0]||(T[0]=Tt(N=>B(1),["prevent"]))},"1")])):$("",!0),!e.disablePageJump&&p.value?(k(),S("li",tx," ... ")):$("",!0),(k(!0),S(Ae,null,ot(m.value,N=>(k(),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:Tt(ee=>B(N),["prevent"])},V(N),9,rx)],10,nx))),128)),!e.disablePageJump&&b.value?(k(),S("li",ax," ... ")):$("",!0),!e.disablePageJump&&b.value?(k(),S("li",ox,[O("a",{"aria-label":"Go to the last page","data-testid":"last-btn",href:"#",onClick:T[1]||(T[1]=Tt(N=>B(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:Tt(w,["prevent"])},[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":d.value}]),color:"currentColor",icon:"arrowRight",size:he(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,ix)],2)])],64)):(k(),se(KE,{key:1,"next-button-disabled":e.offsetNextButtonDisabled,"prev-button-disabled":e.offsetPrevButtonDisabled,onGetNextOffset:x,onGetPrevOffset:C},null,8,["next-button-disabled","prev-button-disabled"])),O("span",sx,[G(h2,{appearance:"button","button-text":l.value,items:he(s),"kpop-attributes":r,placeholder:`${o.value} items per page`,"position-fixed":"","test-mode":!!e.testMode||void 0,width:"205",onSelected:D},null,8,["button-text","items","placeholder","test-mode"])])])]))}}),Ph=Ee(lx,[["__scopeId","data-v-cb4f4c10"]]),ux=ge({__name:"KCatalogItem",props:{item:{type:Object,default:()=>({})},truncate:{type:Boolean,default:!0},testMode:{type:Boolean,default:!1}},emits:["card:click"],setup(e,{emit:t}){const n=(r,a)=>{t("card:click",{evt:r,item:a})};return(r,a)=>(k(),se(Ah,{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"]))}}),f2=Ee(ux,[["__scopeId","data-v-5a35cb8f"]]),cx={class:"k-card-catalog"},dx={key:0,class:"k-card-catalog-title","data-testid":"k-catalog-title"},hx={key:1,class:"k-catalog-toolbar","data-testid":"k-catalog-toolbar"},fx={class:"k-catalog-skeleton-footer-container"},px={key:3,class:"k-catalog-error-state","data-testid":"k-card-catalog-error-state"},mx={key:4,class:"k-catalog-empty-state","data-testid":"k-card-catalog-empty-state"},vx=["data-tableid"],gx={key:0,class:"card-pagination","data-testid":"k-catalog-pagination"},yx=ge({__name:"KCatalog",props:{isLoading:{type:Boolean,default:!1},cardSize:{type:String,default:"medium",validator:e=>Ck.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:["card:click","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}=mn(),i=It(),s=I(()=>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=I(()=>!!i.toolbar),v=I(()=>({pageSize:f.value})),p=j(!0),b=async()=>{var fe;const $e=n.searchInput,De=await n.fetcher({query:$e||d.value,pageSize:f.value,page:h.value});return u.value=De.data,c.value=n.paginationTotalItems||De.total||((fe=De.data)==null?void 0:fe.length),p.value=!1,De},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=I(()=>{if(!n.fetcher||!g.value)return"";let fe=s.value;return n.cacheIdentifier&&(fe=n.cacheIdentifier),n.fetcherCacheKey&&(fe+=`-${n.fetcherCacheKey}`),`k-catalog_${fe}`}),M=j(""),{debouncedFn:B,generateDebouncedFn:L}=a(fe=>{M.value=fe},350),D=L(0),{data:x,error:C,revalidate:A,isValidating:T}=r(()=>w.value,()=>b(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:N,hasData:ee,swrvState:ae}=o(x,C,T),oe=j(!0),Q=I(()=>({hasData:ee.value,state:N.value})),ye=I(()=>oe.value?"loading":C.value?"error":"success"),_e=({page:fe})=>{h.value=fe},Re=({pageSize:fe})=>{f.value=fe,h.value=1},Ze=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===""?D(fe):B(fe)},{immediate:!0});const ze=j(!1);return Le([M,h,f],async(fe,$e)=>{const De=$e==null?void 0:$e[0],je=fe[0],U=fe[1];je!==De&&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)=>(k(),S("div",cx,[e.title?(k(),S("div",dx,[O("h3",null,V(e.title),1)])):$("",!0),y.value?(k(),S("div",hx,[F(fe.$slots,"toolbar",{state:Q.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(oe.value||e.isLoading||ze.value)&&!e.hasError?(k(),se(Oh,{key:2,"card-count":4,class:"k-skeleton-grid","data-testid":"k-catalog-skeleton",type:"card"},{"card-header":z(()=>[G(Mt,{class:"k-catalog-skeleton-header",width:"6"})]),"card-content":z(()=>[G(Mt,{width:"75"})]),"card-footer":z(()=>[O("div",fx,[G(Mt,{width:"2"}),G(Mt,{width:"5"})])]),_:1})):e.hasError?(k(),S("div",px,[F(fe.$slots,"error-state",{},()=>[G(us,{"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?(k(),se(We,{key:0,appearance:"primary","data-testid":Ze(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:$e[0]||($e[0]=De=>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&&!ze.value&&u.value&&!u.value.length?(k(),S("div",mx,[F(fe.$slots,"empty-state",{},()=>[G(us,{"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?(k(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Ze(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:$e[1]||($e[1]=De=>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)])):(k(),S("div",{key:5,class:q(["k-catalog-page",`k-card-${e.cardSize}`]),"data-tableid":s.value},[F(fe.$slots,"body",{data:u.value},()=>[(k(!0),S(Ae,null,ot(u.value,(De,je)=>(k(),se(f2,{key:De.key?De.key:`k-catalog-item-${je}`,class:"catalog-item","data-testid":De.id?De.id:`k-catalog-item-${je}`,item:De,"test-mode":!!e.testMode||void 0,truncate:!e.noTruncation,onClick:U=>fe.$emit("card:click",De)},{cardTitle:z(()=>[F(fe.$slots,"cardTitle",{item:De},()=>[J(V(De.title),1)],!0)]),cardActions:z(()=>[F(fe.$slots,"cardActions",{item:De},void 0,!0)]),cardBody:z(()=>[F(fe.$slots,"cardBody",{item:De},()=>[J(V(De.description),1)],!0)]),_:2},1032,["data-testid","item","test-mode","truncate","onClick"]))),128))],!0),!e.disablePagination&&e.fetcher&&!(e.hidePaginationWhenOptional&&c.value<=e.paginationPageSizes[0])?(k(),S("div",gx,[G(Ph,{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,vx))]))}}),bx=Ee(yx,[["__scopeId","data-v-0284884b"]]),wx=["id","checked"],kx={key:1,class:"k-checkbox-description"},Cx={inheritAttrs:!1},Ex=ge({...Cx,__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=I(()=>a.id?String(a.id):n.testMode?"test-radio-input-id-1234":an()),i=I(()=>!!(n.label||r.default)),s=I(()=>(a==null?void 0:a.disabled)!==void 0&&String(a==null?void 0:a.disabled)!=="false"),l=I(()=>i.value&&(!!n.description||!!r.description)),u=I(()=>!!r.tooltip),c=I(()=>{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)=>(k(),S("div",{class:q(["k-checkbox",[h.$attrs.class,{disabled:s.value}]])},[O("input",Ge({id:o.value,checked:e.modelValue},c.value,{class:"k-input",type:"checkbox",onChange:d}),null,16,wx),i.value?(k(),se(Ur,Ge({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?(k(),S("div",kx,[F(h.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2))}}),xx=Ee(Ex,[["__scopeId","data-v-60490fce"]]);function Sx(e,t){let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},t)}}const _x=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class Dx{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){Mx(t,this.keyMap,this.commands)}}function Mx(e,t,n){const r=Tx(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 Tx(e){return _x.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}const eo=e=>(Rn("data-v-dad3afd6"),e=e(),$n(),e),Ax=["id"],Ox={key:0,class:"k-code-block-actions"},Px={class:"k-search-container"},Ix=["for"],Bx=eo(()=>O("span",{class:"visually-hidden"},"Search",-1)),Nx=[Bx],Lx=["id"],Rx={key:0,class:"k-code-block-search-error"},$x=eo(()=>O("span",{class:"visually-hidden"},"Clear query",-1)),Hx={class:"k-search-actions"},Fx=eo(()=>O("span",{class:"visually-hidden"},"RegExp mode enabled",-1)),zx=eo(()=>O("span",{class:"visually-hidden"},"Filter mode enabled",-1)),jx=eo(()=>O("span",{class:"visually-hidden"},"Previous match",-1)),Ux=eo(()=>O("span",{class:"visually-hidden"},"Next match",-1)),Zx={class:"k-code-block-content"},Yx={key:0,class:"k-filtered-code-block","data-testid":"k-code-block-filtered-code-block"},Vx={key:0,class:"k-line-number-rows"},Kx=["id","href"],Gx=["innerHTML"],Wx={key:0,class:"k-line-number-rows"},qx=["id","href"],Qx=["innerHTML"],Xx={key:2,class:"k-code-block-secondary-actions"},Jx=eo(()=>O("span",{class:"visually-hidden"},"Copy",-1)),eS=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=Sx(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=I(()=>Array.from({length:a.code.split(` +Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),()=>Te(d2,{...e,...t,...r},n)}}),mC=["aria-describedby","aria-label","aria-labelledby"],vC={key:0,class:"k-card-status-hat"},gC=["id"],yC={class:"k-card-actions"},bC=["id"],wC={class:"k-card-content"},kC=["id"],CC={key:0,class:"k-card-notifications"},EC=ge({__name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border",validator:e=>kk.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=I(()=>t.testMode?"test-title-id-1234":pa()),r=I(()=>t.testMode?"test-content-id-1234":pa()),a=It(),o=I(()=>!!(t.status||a.statusHat)),i=I(()=>!!a.actions||o.value||!o.value&&(!!t.title||!!a.title)),s=I(()=>!o.value&&(!!t.title||!!a.title)),l=I(()=>o.value&&(!!t.title||!!a.title));return(u,c)=>(k(),S("section",{"aria-describedby":r.value||void 0,"aria-label":e.title?e.title:void 0,"aria-labelledby":!e.title&&he(a).title?n.value:void 0,class:q(["kong-card",[e.borderVariant,{hover:e.hasHover,"kcard-shadow":e.hasShadow}]])},[i.value?(k(),S("div",{key:0,class:q(["k-card-header",{"has-status":e.status||he(a).statusHat}])},[e.status||he(a).statusHat?(k(),S("div",vC,[F(u.$slots,"statusHat",{},()=>[J(V(e.status),1)],!0)])):$("",!0),s.value?(k(),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,gC)):$("",!0),O("div",yC,[F(u.$slots,"actions",{},void 0,!0)])],2)):$("",!0),l.value?(k(),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,bC)):$("",!0),O("div",wC,[O("div",{id:r.value,class:"k-card-body"},[F(u.$slots,"body",{},()=>[J(V(e.body),1)],!0)],8,kC),he(a).notifications?(k(),S("div",CC,[F(u.$slots,"notifications",{},void 0,!0)])):$("",!0)])],10,mC))}}),Ah=Ee(EC,[["__scopeId","data-v-22c99869"]]),xC=ge({__name:"KSkeletonBox",props:{width:{type:String,default:"1",validator:e=>Hk.includes(e)},height:{type:String,default:"1",validator:e=>Fk.includes(e)}},setup(e){return(t,n)=>(k(),S("div",{class:q(["box",{[`width-${e.width}`]:!0,[`height-${e.height}`]:!0}])},null,2))}}),Mt=Ee(xC,[["__scopeId","data-v-3c50a4ad"]]),SC={class:"skeleton-loader"},_C=ge({__name:"SkeletonBase",setup(e){return(t,n)=>(k(),S("div",SC,[F(t.$slots,"default",{},()=>[G(Mt,{height:"1",width:"100"}),G(Mt,{height:"1",width:"100"}),G(Mt,{height:"1",width:"75"})],!0)]))}}),DC=Ee(_C,[["__scopeId","data-v-28ddd291"]]),MC=e=>(Rn("data-v-fdceaf4f"),e=e(),$n(),e),TC={class:"skeleton-card-wrapper"},AC={class:"skeleton-card"},OC={class:"skeleton-card-header"},PC=MC(()=>O("hr",null,null,-1)),IC={class:"skeleton-card-content"},BC={class:"skeleton-card-footer"},NC=ge({__name:"CardSkeleton",props:{cardCount:{type:Number,default:1}},setup(e){return(t,n)=>(k(),S("div",TC,[(k(!0),S(Ae,null,ot(e.cardCount,r=>(k(),S("div",{key:r,class:"skeleton-card-column"},[O("div",AC,[O("div",OC,[F(t.$slots,"card-header",{},()=>[G(Mt,{class:"card-header-content-1",height:"2",width:"25"}),G(Mt,{class:"card-header-content-2",height:"2",width:"75"}),PC],!0)]),O("div",IC,[F(t.$slots,"card-content",{},()=>[G(Mt,{width:"10"})],!0)]),O("div",BC,[F(t.$slots,"card-footer",{},()=>[G(Mt,{width:"5"}),G(Mt,{width:"5"})],!0)])])]))),128))]))}}),LC=Ee(NC,[["__scopeId","data-v-fdceaf4f"]]),RC={class:"skeleton-table-wrapper"},$C=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)=>(k(),S("div",RC,[(k(!0),S(Ae,null,ot(e.rows,a=>(k(),S("div",{key:a,class:"skeleton-table-row"},[F(n.$slots,"default",{},()=>[(k(!0),S(Ae,null,ot(e.columns,o=>(k(),se(Mt,{key:o,class:"skeleton-cell",width:t(o,e.columns||6)},null,8,["width"]))),128))],!0)]))),128))]))}}),HC=Ee($C,[["__scopeId","data-v-8bd8572d"]]),FC={class:"skeleton-form-wrapper"},zC={class:"skeleton-form-row"},jC={class:"skeleton-form-row"},UC={class:"skeleton-form-row"},ZC={class:"skeleton-form-row"},YC=ge({__name:"FormSkeleton",setup(e){return(t,n)=>(k(),S("div",FC,[O("div",zC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",jC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",UC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})]),O("div",ZC,[G(Mt,{height:"1",width:"10"}),G(Mt,{height:"2",width:"100"})])]))}}),VC=Ee(YC,[["__scopeId","data-v-27fab520"]]),KC="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",GC={class:"fullscreen-loading-container","data-testid":"full-screen-loader"},WC=["src"],qC={key:0,class:"progress"},QC=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=I(()=>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)=>(k(),S("div",GC,[O("div",null,[O("img",{alt:"Loading",src:he(KC)},null,8,WC),e.hideProgress?$("",!0):(k(),S("div",qC,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),XC=Ee(QC,[["__scopeId","data-v-5c71d015"]]),JC=e=>(Rn("data-v-5a15970d"),e=e(),$n(),e),eE={class:"fullscreen-loading-container","data-testid":"full-screen-spinner-loader"},tE=JC(()=>O("div",{class:"spinner-loader"},null,-1)),nE={key:0,class:"progress"},rE=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=I(()=>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)=>(k(),S("div",eE,[O("div",null,[tE,e.hideProgress?$("",!0):(k(),S("div",nE,[O("div",{class:"progress-bar",role:"progressbar",style:Et({width:`${a.value}%`}),title:"Loading"},null,4)]))])]))}}),aE=Ee(rE,[["__scopeId","data-v-5a15970d"]]),Oh=ge({__name:"KSkeleton",props:{delayMilliseconds:{type:Number,required:!1,default:0},type:{type:String,default:"",validator:e=>$k.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?(k(),S("div",{key:0,class:q(["k-skeleton-container",{"is-spinner":e.type!=="spinner"}])},[e.type==="card"?(k(),se(LC,{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"?(k(),se(HC,{key:1,columns:e.tableColumns,rows:e.tableRows},{default:z(()=>[F(r.$slots,"default")]),_:3},8,["columns","rows"])):e.type==="form"?(k(),se(VC,{key:2})):e.type==="fullscreen-kong"?(k(),se(XC,{key:3,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="fullscreen-generic"?(k(),se(aE,{key:4,"hide-progress":e.hideProgress,progress:e.progress},null,8,["hide-progress","progress"])):e.type==="spinner"?(k(),se(Ie,{key:5,color:"#000",icon:"spinner",size:"18"})):(k(),se(DC,{key:6}))],2)):$("",!0)}}),oE={class:"empty-state-title"},iE={key:1,class:"k-empty-state-title-header"},sE={class:"empty-state-content"},lE={key:0,class:"k-empty-state-message"},uE={class:"k-empty-state-cta"},cE=ge({__name:"KEmptyState",props:{isError:{type:Boolean,default:!1},iconSize:{type:String,default:U7},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)=>(k(),S("section",{class:q(["empty-state-wrapper",{"is-error":e.isError}])},[O("div",oE,[e.isError||e.icon?(k(),S("div",{key:0,class:q(["k-empty-state-icon card-icon",{"warning-icon":e.isError}])},[G(Ie,{color:e.isError?e.iconColor||`var(--black-70, var(--kui-color-text-neutral-strongest, ${he(H7)}))`: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?(k(),S("div",iE,[F(t.$slots,"title",{},void 0,!0)])):$("",!0)]),O("div",sE,[t.$slots.message?(k(),S("div",lE,[F(t.$slots,"message",{},void 0,!0)])):$("",!0),O("div",uE,[F(t.$slots,"cta",{},()=>[!e.ctaIsHidden&&e.ctaText?(k(),se(We,{key:0,appearance:"primary",size:"small",onClick:n[0]||(n[0]=Tt(()=>e.handleClick&&e.handleClick(),["prevent"]))},{default:z(()=>[J(V(e.ctaText),1)]),_:1})):$("",!0)],!0)])])],2))}}),us=Ee(cE,[["__scopeId","data-v-147e1e00"]]),dE={class:"k-input-label"},hE={key:0,class:"is-required"},fE=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=I(()=>!!(t.info||t.help||n.tooltip));return(a,o)=>(k(),S("label",dE,[F(a.$slots,"default",{},void 0,!0),e.required?(k(),S("span",hE,"*")):$("",!0),r.value?(k(),se(ti,Ge({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(Ie,{color:`var(--black-25, var(--kui-color-text-neutral-weak, ${he(Xa)}))`,"hide-title":"",icon:e.help?"help":"infoFilled",size:he(xt)},null,8,["color","icon","size"])]),_:3},16,["test-mode"])):$("",!0)]))}}),Ur=Ee(fE,[["__scopeId","data-v-5367d32d"]]),pE={class:"text-on-input"},mE=["for"],vE={key:0,class:"is-required"},gE=["id","aria-invalid","value"],yE=["id","aria-invalid","value"],bE=["aria-invalid","value"],wE={key:4,class:"help"},kE=["tabindex","onKeyup"],CE={inheritAttrs:!1},EE=ge({...CE,__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=>Ok.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=>Pk.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}=mn(),u=It(),c=Xn(),d=I(()=>(c==null?void 0:c.disabled)!==void 0&&String(c==null?void 0:c.disabled)!=="false"),h=I(()=>(c==null?void 0:c.readonly)!==void 0&&String(c==null?void 0:c.readonly)!=="false"),f=I(()=>(c==null?void 0:c.required)!==void 0&&String(c==null?void 0:c.required)!=="false"),g=I(()=>c.id?String(c.id):n.testMode?"test-input-id-1234":an()),y=I(()=>l(n.label,f.value)),v=I(()=>{var C,A;return!!((C=n.labelAttributes)!=null&&C.help||(A=n.labelAttributes)!=null&&A.info||u["label-tooltip"])}),p=I({get(){return n.modelValue},set(C){B({target:{value:C}})}}),b=I(()=>{const C={...c};return delete C.class,delete C.input,delete C.onInput,C}),m=I(()=>{var C,A;const T=((C=r.value)==null?void 0:C.toString().length)||0,N=((A=n.modelValue)==null?void 0:A.toString().length)||0;let ee=T;return!a.value&&N&&(ee=N),!!n.characterLimit&&ee>n.characterLimit}),w=I(()=>m.value?a.value?`${r.value.toString().length} / ${n.characterLimit}`:`${n.modelValue.toString().length} / ${n.characterLimit}`:""),M=I(()=>!!c["onIcon:click"]);Le(m,(C,A)=>{C!==A&&t("char-limit-exceeded",{value:r.value,length:r.value.length,characterLimit:n.characterLimit,limitExceeded:C})}),Le(p,(C,A)=>{C!==A&&B({target:{value:C}})});const B=C=>{var A;const T=JSON.parse(JSON.stringify((A=C==null?void 0:C.target)==null?void 0:A.value));L(T)},L=C=>{r.value=C,a.value=!0,t("input",C),t("update:modelValue",C)},D=()=>r.value||a.value?r.value:n.modelValue,x=C=>{if(M.value){const A=c["onIcon:click"];typeof A=="function"&&A(C)}};return ft(()=>{s.value&&M.value&&(s.value.role="button")}),(C,A)=>(k(),S("div",{class:q(["k-input-wrapper",[C.$attrs.class,{"input-error":m.value||e.hasError||String(C.$attrs.class||"").includes("input-error")}]])},[e.label&&e.overlayLabel?(k(),S("div",{key:0,class:q(`k-input-label-wrapper-${e.size}`)},[O("div",pE,[O("label",Ge(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?(k(),S("span",vE,"*")):$("",!0)],16,mE),O("input",Ge(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}`]:C.$slots.icon}],value:D(),onBlur:A[0]||(A[0]=()=>o.value=!1),onFocus:A[1]||(A[1]=()=>o.value=!0),onInput:B,onMouseenter:A[2]||(A[2]=()=>i.value=!0),onMouseleave:A[3]||(A[3]=()=>i.value=!1)}),null,16,gE)]),m.value||e.hasError?(k(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):e.label?(k(),S("div",{key:1,class:q(`k-input-label-wrapper-${e.size}`)},[G(Ur,Ge({for:g.value},e.labelAttributes,{required:f.value}),qa({default:z(()=>[J(V(y.value)+" ",1)]),_:2},[v.value?{name:"tooltip",fn:z(()=>[F(C.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"]),O("input",Ge(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}`]:C.$slots.icon}],value:D(),onInput:B}),null,16,yE),m.value||e.hasError?(k(),S("p",{key:0,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0)],2)):(k(),S("input",Ge({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}`]:C.$slots.icon}],value:D(),onInput:B}),null,16,bE)),(m.value||e.hasError)&&!e.label?(k(),S("p",{key:3,class:q(["has-error",{"over-char-limit":m.value}])},V(w.value||e.errorMessage),3)):$("",!0),e.help?(k(),S("p",wE,V(e.help),1)):$("",!0),C.$slots.icon?(k(),S("div",{key:5,ref_key:"icon",ref:s,class:q(["input-icon",{clickable:M.value}]),tabindex:M.value?0:-1,onClick:x,onKeyup:jt(x,["enter"])},[F(C.$slots,"icon",{},void 0,!0)],42,kE)):$("",!0)],2))}}),Ss=Ee(EE,[["__scopeId","data-v-b216eb8a"]]),xE=["data-testid"],SE={class:"k-select-item-container",role:"option"},_E=["disabled","value"],DE={class:"k-select-item-label"},ME={class:"k-select-selected-icon-container"},TE=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)=>(k(),S("div",{key:e.item.key,class:"k-select-item","data-testid":`k-select-item-${e.item.value}`,onClick:r},[O("div",SE,[O("button",{class:q({selected:e.item.selected}),disabled:e.item.disabled===!0?!0:void 0,type:"button",value:e.item.value},[O("span",DE,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",ME,[e.item.selected?(k(),se(Ie,{key:0,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,_E)])],8,xE))}}),zl=Ee(TE,[["__scopeId","data-v-bc67a10a"]]),AE={class:"k-select-group-title"},OE=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=I(()=>n.items.filter(s=>!s.group)),o=I(()=>[...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)=>(k(),S(Ae,null,[(k(!0),S(Ae,null,ot(a.value,u=>(k(),se(zl,{key:u.key,item:u,onSelected:r},{content:z(()=>[F(s.$slots,"content",{item:u},void 0,!0)]),_:2},1032,["item"]))),128)),(k(!0),S(Ae,null,ot(o.value,u=>(k(),S("div",{key:`${u}-group`,class:"k-select-group"},[O("span",AE,V(u),1),(k(!0),S(Ae,null,ot(i(u),c=>(k(),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))}}),PE=Ee(OE,[["__scopeId","data-v-39329325"]]),IE=e=>(Rn("data-v-222d3226"),e=e(),$n(),e),BE=["id"],NE={class:"k-select-selected-item-label"},LE=["onKeyup"],RE=["id"],$E=["id"],HE={key:0,class:"custom-selected-item"},FE={key:1,class:"k-select-list"},zE={class:"select-item-description"},jE=IE(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),UE={inheritAttrs:!1},ZE=ge({...UE,__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=>zk.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;Qo(R=>({d7f705e8:A.value}));const{getSizeFromString:r,stripRequiredLabel:a}=mn(),o={popoverClasses:"k-select-popover",popoverTimeout:0,placement:"bottomStart",hideCaret:!0},i=Xn(),s=It(),l=I(()=>i.required!==void 0&&String(i.required)!=="false"),u=I(()=>a(n.label,l.value)),c=I(()=>{var R,K;return!!((R=n.labelAttributes)!=null&&R.help||(K=n.labelAttributes)!=null&&K.info||s["label-tooltip"])}),d=j(""),h=I(()=>{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=I(()=>n.testMode?"test-select-id-1234":an()),y=I(()=>n.testMode?"test-select-input-id-1234":an()),v=I(()=>n.testMode?"test-select-text-id-1234":an()),p=j([]),b=j(!1),m=j(!1),w=j(null),M=I({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||Ze()}}),B=I(()=>n.autosuggest?!0:n.enableFiltering!==null?n.appearance==="button"?!1:n.enableFiltering:n.appearance==="dropdown"),L=I(()=>{let R="";return n.width?R=n.width:(R="205",n.appearance==="button"&&(R="230")),r(R)}),D=I(()=>({width:L.value})),x=I(()=>{const R={...i};return delete R.class,R}),C=I(()=>({...o,...n.kpopAttributes,popoverClasses:`${o.popoverClasses} ${n.kpopAttributes.popoverClasses} k-select-pop-${n.appearance}`,width:String(Ue.value),maxWidth:String(Ue.value),disabled:i.disabled!==void 0&&String(i.disabled)!=="false"||i.readonly!==void 0&&String(i.readonly)!=="false"})),A=I(()=>r(n.dropdownMaxHeight)),T=I(()=>({...C.value})),N=I(()=>n.autosuggest?p.value:n.filterFunc({items:p.value,query:d.value})),ee=I(()=>n.placeholder?n.placeholder:i.placeholder?i.placeholder:n.appearance==="button"||!B.value?"Select an item":"Filter..."),ae=I(()=>n.buttonText&&f.value?n.buttonText:f.value?f.value.label:ee.value),oe=I(()=>n.appearance==="select"&&n.clearable&&!!f.value),Q=I(()=>!!(f.value&&n.appearance==="select"&&(s["selected-item-template"]||n.reuseItemTemplate&&s["item-template"]))),ye=R=>{if(!B.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)},Ze=()=>{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",""))},De=()=>{m.value=!1};Le(M,(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||Ze()}}),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 Ue=j(0),U=()=>{const R=document.getElementById(y.value);R&&(Ue.value=R.offsetWidth)};return(R,K)=>(k(),S("div",{class:q(["k-select",[R.$attrs.class]]),style:Et(D.value)},[e.label&&!e.overlayLabel?(k(),se(Ur,Ge({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"?(k(),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",NE,V(f.value.label),1)],!0),O("button",{class:"clear-selection-icon",onClick:Ze,onKeyup:jt(Ze,["enter"])},[G(Ie,{color:"currentColor",icon:"clear"})],40,LE)],2)):$("",!0),G(he(Lu),null,{default:z(({toggle:H,isToggled:te})=>[G(ei,Ge({ref_key:"popper",ref:w},T.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(Ie,{class:"k-select-loading","data-testid":"k-select-loading",icon:"spinner"})],!0):(k(),S("div",FE,[G(PE,{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?(k(),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?(k(),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",zE,[J(V(d.value)+" ",1),jE])]),_: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?(k(),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"?(k(),S("div",{key:0,id:y.value,class:"k-select-button","data-testid":"k-select-input",role:"listbox",style:{position:"relative"}},[G(We,Ge({id:v.value},x.value,{appearance:"btn-link","is-rounded":!1,"show-caret":"",style:D.value,onKeyup:E=>ze(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,RE)):(k(),S("div",{key:1,id:y.value,class:q(["select-input-container",{"k-select-input":e.appearance==="select","no-filter":!B.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?(k(),se(We,{key:0,class:"clear-selection-icon",onClick:Ze,onKeyup:jt(Ze,["enter"])},{default:z(()=>[G(Ie,{color:`var(--grey-500, ${he(Ho)})`,icon:"clear",size:he(xt)},null,8,["color","size"])]),_:1},8,["onKeyup"])):$("",!0),e.appearance==="select"?(k(),se(Ie,{key:1,class:q({"overlay-label-chevron":e.overlayLabel}),color:`var(--grey-500, ${he(Ho)})`,icon:"chevronDown",size:he(xt)},null,8,["class","color","size"])):$("",!0),G(Ss,Ge({id:v.value},x.value,{autocapitalize:"off",autocomplete:"off",class:["k-select-input",{"no-filter":!B.value,"input-placeholder-dark has-chevron":e.appearance==="select","input-placeholder-transparent":Q.value&&(!B.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"&&!B.value?f.value.label:ee.value,onBlur:De,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:z(()=>[Q.value&&(!B.value||!te.value)?(k(),S("div",HE,[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,$E))]),_:2},1040,["on-popover-click","position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,BE)],6))}}),h2=Ee(ZE,[["__scopeId","data-v-222d3226"]]),YE={class:"pagination-offset-button-container"},VE=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 k(),S("div",YE,[G(s,{"aria-label":"Go to the previous page",class:q(["pagination-button",{disabled:e.prevButtonDisabled}]),"data-testid":"prev-btn",onClick:Tt(a,["prevent"])},{icon:z(()=>[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.prevButtonDisabled}]),color:"currentColor",icon:"arrowLeft",size:he(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:Tt(r,["prevent"])},{icon:z(()=>[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":e.nextButtonDisabled}]),color:"currentColor",icon:"arrowRight",size:he(xt),"view-box":"0 0 16 16"},null,8,["class","size"])]),_:1},8,["class","onClick"])])}}}),KE=Ee(VE,[["__scopeId","data-v-20a48d53"]]),GE={"aria-label":"Pagination Navigation","data-testid":"k-pagination-container"},WE={class:"card-pagination-bar"},qE={class:"pagination-text","data-testid":"visible-items"},QE={class:"pagination-text-pages"},XE={class:"pagination-button-container"},JE=["onClick"],ex={key:0,class:"pagination-button","data-testid":"page-1-btn"},tx={key:1,class:"pagination-button placeholder"},nx=["data-testid"],rx=["aria-current","aria-label","onClick"],ax={key:2,class:"pagination-button placeholder"},ox={key:3,class:"pagination-button"},ix=["onClick"],sx={class:"page-size-select","data-testid":"page-size-dropdown"},lx=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=I(()=>Math.ceil(n.totalCount/o.value)),s=n.pageSizes.map((A,T)=>({label:`${A}`,key:`size-${T}`,value:A})),l=j(""),u=(A,T,N,ee)=>{if(n.disablePageJump)return[];let ae=[...Array(T).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>T-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=I(()=>(a.value-1)*o.value+1),f=I(()=>{const A=h.value-1+o.value;return A>n.totalCount?n.totalCount:A}),g=I(()=>`${h.value} to ${f.value}`),y=I(()=>` of ${n.totalCount}`),v=I(()=>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())},M=()=>{c.value||(a.value--,L())},B=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 T=5+2*n.neighbors;i.value<=T?(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)})},D=A=>{o.value=A.value,l.value=o.value+" items per page",t("pageSizeChanged",{pageSize:o.value,pageCount:i.value}),n.currentPage!==1&&B(1)},x=()=>{t("getNextOffset")},C=()=>{t("getPrevOffset")};return Le(()=>n.currentPage,(A,T)=>{A!==T&&B(A)}),Le(i,(A,T)=>{A!==T&&(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,T)=>(k(),S("nav",GE,[O("div",WE,[e.paginationType==="default"?(k(),S(Ae,{key:0},[O("span",qE,[O("span",QE,V(g.value),1),J(" "+V(y.value),1)]),O("ul",XE,[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:Tt(M,["prevent"])},[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":c.value}]),color:"currentColor",icon:"arrowLeft",size:he(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,JE)],2),!e.disablePageJump&&p.value?(k(),S("li",ex,[O("a",{"aria-label":"Go to the first page",href:"#",onClick:T[0]||(T[0]=Tt(N=>B(1),["prevent"]))},"1")])):$("",!0),!e.disablePageJump&&p.value?(k(),S("li",tx," ... ")):$("",!0),(k(!0),S(Ae,null,ot(m.value,N=>(k(),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:Tt(ee=>B(N),["prevent"])},V(N),9,rx)],10,nx))),128)),!e.disablePageJump&&b.value?(k(),S("li",ax," ... ")):$("",!0),!e.disablePageJump&&b.value?(k(),S("li",ox,[O("a",{"aria-label":"Go to the last page","data-testid":"last-btn",href:"#",onClick:T[1]||(T[1]=Tt(N=>B(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:Tt(w,["prevent"])},[G(Ie,{class:q(["pagination-arrow-icon",{"is-direction-disabled":d.value}]),color:"currentColor",icon:"arrowRight",size:he(xt),"view-box":"0 0 16 14"},null,8,["class","size"])],8,ix)],2)])],64)):(k(),se(KE,{key:1,"next-button-disabled":e.offsetNextButtonDisabled,"prev-button-disabled":e.offsetPrevButtonDisabled,onGetNextOffset:x,onGetPrevOffset:C},null,8,["next-button-disabled","prev-button-disabled"])),O("span",sx,[G(h2,{appearance:"button","button-text":l.value,items:he(s),"kpop-attributes":r,placeholder:`${o.value} items per page`,"position-fixed":"","test-mode":!!e.testMode||void 0,width:"205",onSelected:D},null,8,["button-text","items","placeholder","test-mode"])])])]))}}),Ph=Ee(lx,[["__scopeId","data-v-cb4f4c10"]]),ux=ge({__name:"KCatalogItem",props:{item:{type:Object,default:()=>({})},truncate:{type:Boolean,default:!0},testMode:{type:Boolean,default:!1}},emits:["card:click"],setup(e,{emit:t}){const n=(r,a)=>{t("card:click",{evt:r,item:a})};return(r,a)=>(k(),se(Ah,{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"]))}}),f2=Ee(ux,[["__scopeId","data-v-5a35cb8f"]]),cx={class:"k-card-catalog"},dx={key:0,class:"k-card-catalog-title","data-testid":"k-catalog-title"},hx={key:1,class:"k-catalog-toolbar","data-testid":"k-catalog-toolbar"},fx={class:"k-catalog-skeleton-footer-container"},px={key:3,class:"k-catalog-error-state","data-testid":"k-card-catalog-error-state"},mx={key:4,class:"k-catalog-empty-state","data-testid":"k-card-catalog-empty-state"},vx=["data-tableid"],gx={key:0,class:"card-pagination","data-testid":"k-catalog-pagination"},yx=ge({__name:"KCatalog",props:{isLoading:{type:Boolean,default:!1},cardSize:{type:String,default:"medium",validator:e=>Ck.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:["card:click","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}=mn(),i=It(),s=I(()=>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=I(()=>!!i.toolbar),v=I(()=>({pageSize:f.value})),p=j(!0),b=async()=>{var fe;const $e=n.searchInput,De=await n.fetcher({query:$e||d.value,pageSize:f.value,page:h.value});return u.value=De.data,c.value=n.paginationTotalItems||De.total||((fe=De.data)==null?void 0:fe.length),p.value=!1,De},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=I(()=>{if(!n.fetcher||!g.value)return"";let fe=s.value;return n.cacheIdentifier&&(fe=n.cacheIdentifier),n.fetcherCacheKey&&(fe+=`-${n.fetcherCacheKey}`),`k-catalog_${fe}`}),M=j(""),{debouncedFn:B,generateDebouncedFn:L}=a(fe=>{M.value=fe},350),D=L(0),{data:x,error:C,revalidate:A,isValidating:T}=r(()=>w.value,()=>b(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:N,hasData:ee,swrvState:ae}=o(x,C,T),oe=j(!0),Q=I(()=>({hasData:ee.value,state:N.value})),ye=I(()=>oe.value?"loading":C.value?"error":"success"),_e=({page:fe})=>{h.value=fe},Re=({pageSize:fe})=>{f.value=fe,h.value=1},Ze=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===""?D(fe):B(fe)},{immediate:!0});const ze=j(!1);return Le([M,h,f],async(fe,$e)=>{const De=$e==null?void 0:$e[0],Ue=fe[0],U=fe[1];Ue!==De&&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)=>(k(),S("div",cx,[e.title?(k(),S("div",dx,[O("h3",null,V(e.title),1)])):$("",!0),y.value?(k(),S("div",hx,[F(fe.$slots,"toolbar",{state:Q.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(oe.value||e.isLoading||ze.value)&&!e.hasError?(k(),se(Oh,{key:2,"card-count":4,class:"k-skeleton-grid","data-testid":"k-catalog-skeleton",type:"card"},{"card-header":z(()=>[G(Mt,{class:"k-catalog-skeleton-header",width:"6"})]),"card-content":z(()=>[G(Mt,{width:"75"})]),"card-footer":z(()=>[O("div",fx,[G(Mt,{width:"2"}),G(Mt,{width:"5"})])]),_:1})):e.hasError?(k(),S("div",px,[F(fe.$slots,"error-state",{},()=>[G(us,{"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?(k(),se(We,{key:0,appearance:"primary","data-testid":Ze(e.errorStateActionMessage),to:e.errorStateActionRoute?e.errorStateActionRoute:void 0,onClick:$e[0]||($e[0]=De=>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&&!ze.value&&u.value&&!u.value.length?(k(),S("div",mx,[F(fe.$slots,"empty-state",{},()=>[G(us,{"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?(k(),se(We,{key:0,appearance:e.searchInput?"btn-link":"primary","data-testid":Ze(e.emptyStateActionMessage),icon:e.emptyStateActionButtonIcon,to:e.emptyStateActionRoute?e.emptyStateActionRoute:void 0,onClick:$e[1]||($e[1]=De=>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)])):(k(),S("div",{key:5,class:q(["k-catalog-page",`k-card-${e.cardSize}`]),"data-tableid":s.value},[F(fe.$slots,"body",{data:u.value},()=>[(k(!0),S(Ae,null,ot(u.value,(De,Ue)=>(k(),se(f2,{key:De.key?De.key:`k-catalog-item-${Ue}`,class:"catalog-item","data-testid":De.id?De.id:`k-catalog-item-${Ue}`,item:De,"test-mode":!!e.testMode||void 0,truncate:!e.noTruncation,onClick:U=>fe.$emit("card:click",De)},{cardTitle:z(()=>[F(fe.$slots,"cardTitle",{item:De},()=>[J(V(De.title),1)],!0)]),cardActions:z(()=>[F(fe.$slots,"cardActions",{item:De},void 0,!0)]),cardBody:z(()=>[F(fe.$slots,"cardBody",{item:De},()=>[J(V(De.description),1)],!0)]),_:2},1032,["data-testid","item","test-mode","truncate","onClick"]))),128))],!0),!e.disablePagination&&e.fetcher&&!(e.hidePaginationWhenOptional&&c.value<=e.paginationPageSizes[0])?(k(),S("div",gx,[G(Ph,{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,vx))]))}}),bx=Ee(yx,[["__scopeId","data-v-0284884b"]]),wx=["id","checked"],kx={key:1,class:"k-checkbox-description"},Cx={inheritAttrs:!1},Ex=ge({...Cx,__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=I(()=>a.id?String(a.id):n.testMode?"test-radio-input-id-1234":an()),i=I(()=>!!(n.label||r.default)),s=I(()=>(a==null?void 0:a.disabled)!==void 0&&String(a==null?void 0:a.disabled)!=="false"),l=I(()=>i.value&&(!!n.description||!!r.description)),u=I(()=>!!r.tooltip),c=I(()=>{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)=>(k(),S("div",{class:q(["k-checkbox",[h.$attrs.class,{disabled:s.value}]])},[O("input",Ge({id:o.value,checked:e.modelValue},c.value,{class:"k-input",type:"checkbox",onChange:d}),null,16,wx),i.value?(k(),se(Ur,Ge({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?(k(),S("div",kx,[F(h.$slots,"description",{},()=>[J(V(e.description),1)],!0)])):$("",!0)],2))}}),xx=Ee(Ex,[["__scopeId","data-v-60490fce"]]);function Sx(e,t){let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},t)}}const _x=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class Dx{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){Mx(t,this.keyMap,this.commands)}}function Mx(e,t,n){const r=Tx(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 Tx(e){return _x.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}const eo=e=>(Rn("data-v-dad3afd6"),e=e(),$n(),e),Ax=["id"],Ox={key:0,class:"k-code-block-actions"},Px={class:"k-search-container"},Ix=["for"],Bx=eo(()=>O("span",{class:"visually-hidden"},"Search",-1)),Nx=[Bx],Lx=["id"],Rx={key:0,class:"k-code-block-search-error"},$x=eo(()=>O("span",{class:"visually-hidden"},"Clear query",-1)),Hx={class:"k-search-actions"},Fx=eo(()=>O("span",{class:"visually-hidden"},"RegExp mode enabled",-1)),zx=eo(()=>O("span",{class:"visually-hidden"},"Filter mode enabled",-1)),jx=eo(()=>O("span",{class:"visually-hidden"},"Previous match",-1)),Ux=eo(()=>O("span",{class:"visually-hidden"},"Next match",-1)),Zx={class:"k-code-block-content"},Yx={key:0,class:"k-filtered-code-block","data-testid":"k-code-block-filtered-code-block"},Vx={key:0,class:"k-line-number-rows"},Kx=["id","href"],Gx=["innerHTML"],Wx={key:0,class:"k-line-number-rows"},qx=["id","href"],Qx=["innerHTML"],Xx={key:2,class:"k-code-block-secondary-actions"},Jx=eo(()=>O("span",{class:"visually-hidden"},"Copy",-1)),eS=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=Sx(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=I(()=>Array.from({length:a.code.split(` `).length},(H,te)=>te+1)),w=I(()=>m.value[m.value.length-1].toString().length+"ch"),M=I(()=>a.id.toLowerCase().replace(/\s+/g,"-")),B=I(()=>a.isProcessing||u.value),L=I(()=>d.value&&D.value!==""),D=I(()=>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("'","'"),C=I(()=>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"},T={toggleFilterMode:{trigger:De,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 Dx(A,T);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):Ze(H,te)}function Ze(H,te){const E=[];let _=0;for(;_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"},T={toggleFilterMode:{trigger:De,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:Ue,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 Dx(A,T);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):Ze(H,te)}function Ze(H,te){const E=[];let _=0;for(;_(k(),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?(k(),S("div",Ox,[O("p",{class:q(["k-code-block-search-results",{"k-code-block-search-results-has-query":l.value!==""}])},[l.value===""&&p.value.length===0?(k(),S(Ae,{key:0},[J("   ")],64)):p.value.length===0?(k(),S(Ae,{key:1},[J(" No results ")],64)):typeof b.value=="number"&&!L.value?(k(),S(Ae,{key:2},[J(V(b.value+1)+" of "+V(p.value.length),1)],64)):(k(),S(Ae,{key:3},[J(V(p.value.length)+" "+V(p.value.length===1?"result":"results"),1)],64))],2),O("div",Px,[G(Ie,{class:q(["k-search-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-search-icon",icon:"search",size:he(Rl)},null,8,["class","size"]),O("label",{class:"k-code-block-search-label",for:`${e.id}-search-input`},Nx,8,Ix),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,Lx),h.value!==null?(k(),S("p",Rx,V(h.value.message),1)):$("",!0),G(Ie,{class:q(["k-is-processing-icon",[`theme-${e.theme}`,{"k-is-processing-icon-is-visible":B.value}]]),color:"currentColor","data-testid":"k-code-block-is-processing-icon",icon:"spinner"},null,8,["class"]),l.value!==""?(k(),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},[$x,G(Ie,{class:q(["k-clear-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-clear-icon",icon:"clear",size:he(Rl)},null,8,["class","size"])])):$("",!0)]),O("div",Hx,[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 (${he(o)}+R)`,type:"button",onClick:$e},{default:z(()=>[Fx,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 (${he(o)}+F)`,type:"button",onClick:De},{icon:z(()=>[G(Ie,{class:"k-button-icon",color:"currentColor",icon:"filter",size:he(xt),title:`Filter results (${he(o)}+F)`},null,8,["size","title"])]),default:z(()=>[zx]),_: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(Ie,{class:"k-button-icon",color:"currentColor",icon:"chevronUp",size:he(xt),title:"Previous match (Shift+F3)"},null,8,["size"])]),default:z(()=>[jx]),_: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(Ie,{class:"k-button-icon",color:"currentColor",icon:"chevronDown",size:he(xt),title:"Next match (F3)"},null,8,["size"])]),default:z(()=>[Ux]),_:1},8,["disabled"])])])):$("",!0),O("div",Zx,[L.value?(k(),S("pre",Yx,[J(" "),e.isSingleLine?$("",!0):(k(),S("span",Vx,[J(` +`).length;_.push(Z)}return _}function fe(){g.value instanceof HTMLInputElement&&(g.value.value=""),ye("")}function $e(){c.value=!c.value,c.value||(h.value=null)}function De(){d.value=!d.value}function Ue(){R(1)}function U(){R(-1)}function R(H){if(p.value.length===0||!(f.value instanceof HTMLElement))return;typeof b.value=="number"?b.value=(b.value+H+p.value.length)%p.value.length:b.value=0;const te=p.value[b.value];if(!te)return;const E=f.value.querySelector(`#${M.value}-L${te}`);E instanceof HTMLElement&&typeof E.scrollIntoView=="function"&&E.scrollIntoView({block:"center"})}async function K(){const H=y.value.$el;await Rg(a.code)&&(H.setAttribute("data-tooltip-text","Copied code!"),window.setTimeout(function(){H.removeAttribute("data-tooltip-text")},1500))}return(H,te)=>(k(),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?(k(),S("div",Ox,[O("p",{class:q(["k-code-block-search-results",{"k-code-block-search-results-has-query":l.value!==""}])},[l.value===""&&p.value.length===0?(k(),S(Ae,{key:0},[J("   ")],64)):p.value.length===0?(k(),S(Ae,{key:1},[J(" No results ")],64)):typeof b.value=="number"&&!L.value?(k(),S(Ae,{key:2},[J(V(b.value+1)+" of "+V(p.value.length),1)],64)):(k(),S(Ae,{key:3},[J(V(p.value.length)+" "+V(p.value.length===1?"result":"results"),1)],64))],2),O("div",Px,[G(Ie,{class:q(["k-search-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-search-icon",icon:"search",size:he(Rl)},null,8,["class","size"]),O("label",{class:"k-code-block-search-label",for:`${e.id}-search-input`},Nx,8,Ix),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,Lx),h.value!==null?(k(),S("p",Rx,V(h.value.message),1)):$("",!0),G(Ie,{class:q(["k-is-processing-icon",[`theme-${e.theme}`,{"k-is-processing-icon-is-visible":B.value}]]),color:"currentColor","data-testid":"k-code-block-is-processing-icon",icon:"spinner"},null,8,["class"]),l.value!==""?(k(),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},[$x,G(Ie,{class:q(["k-clear-icon",[`theme-${e.theme}`]]),color:"currentColor","data-testid":"k-code-block-clear-icon",icon:"clear",size:he(Rl)},null,8,["class","size"])])):$("",!0)]),O("div",Hx,[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 (${he(o)}+R)`,type:"button",onClick:$e},{default:z(()=>[Fx,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 (${he(o)}+F)`,type:"button",onClick:De},{icon:z(()=>[G(Ie,{class:"k-button-icon",color:"currentColor",icon:"filter",size:he(xt),title:`Filter results (${he(o)}+F)`},null,8,["size","title"])]),default:z(()=>[zx]),_: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(Ie,{class:"k-button-icon",color:"currentColor",icon:"chevronUp",size:he(xt),title:"Previous match (Shift+F3)"},null,8,["size"])]),default:z(()=>[jx]),_: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:Ue},{icon:z(()=>[G(Ie,{class:"k-button-icon",color:"currentColor",icon:"chevronDown",size:he(xt),title:"Next match (F3)"},null,8,["size"])]),default:z(()=>[Ux]),_:1},8,["disabled"])])])):$("",!0),O("div",Zx,[L.value?(k(),S("pre",Yx,[J(" "),e.isSingleLine?$("",!0):(k(),S("span",Vx,[J(` `),(k(!0),S(Ae,null,ot(p.value,E=>(k(),S("span",{key:E,class:"k-line"},[J(` `),O("a",{id:`${M.value}-L${E}`,class:"k-line-anchor",href:e.showLineNumberLinks?`#${M.value}-L${E}`:void 0},V(E),9,Kx),J(` `)]))),128)),J(` @@ -487,7 +487,7 @@ Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),( `)],2))),128)),J(` `)])),J(` `),O("code",{innerHTML:C.value},null,8,Qx),J(` - `)],2)),e.showCopyButton||he(s)["secondary-actions"]?(k(),S("div",Xx,[e.showCopyButton?(k(),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 (${he(o)}+C)`,type:"button",onClick:K},{default:z(()=>[G(Ie,{color:"currentColor",icon:"copy",size:he(xt),title:`Copy (${he(o)}+C)`},null,8,["size","title"]),Jx]),_:1},8,["title"])):$("",!0),F(H.$slots,"secondary-actions",{},void 0,!0)])):$("",!0)])],14,Ax))}}),tS=Ee(eS,[["__scopeId","data-v-dad3afd6"]]),nS={class:"k-collapse"},rS={key:0,class:"k-collapse-trigger-label","data-testid":"k-collapse-trigger-label"},aS={key:0,class:"k-collapse-visible-content","data-testid":"k-collapse-visible-content"},oS={class:"k-collapse-hidden-content","data-testid":"k-collapse-hidden-content"},iS=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=>Ek.includes(e)}},emits:["toggled","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(!0),a=j(!1),o=It(),i=I(()=>n.triggerAlignment==="trailing"),s=I(()=>!!o["visible-content"]),l=I({get(){return n.modelValue},set(h){d(h)}}),u=I(()=>a.value?r.value:n.modelValue),c=I(()=>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)=>(k(),S("div",nS,[O("div",{class:q(["k-collapse-heading",{"has-trailing-trigger":i.value}])},[e.title?(k(),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]=Tt(g=>d(),["prevent","stop"]))},[F(h.$slots,"trigger-content",{},()=>[e.triggerLabel?(k(),S("span",rS,[G(Ie,{class:"k-collapse-trigger-chevron",icon:c.value,size:he(ks)},null,8,["icon","size"]),O("span",null,V(e.triggerLabel),1)])):(k(),se(Ie,{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?(k(),S("div",aS,[F(h.$slots,"visible-content",{},void 0,!0)])):$("",!0),Al(O("div",oS,[F(h.$slots,"default",{},void 0,!0)],512),[[gd,!u.value]])]))}}),sS=Ee(iS,[["__scopeId","data-v-1929b49b"]]);function jl(e){"@babel/helpers - typeof";return jl=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},jl(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||jl(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 lS(e,t){sn(2,arguments);var n=yr(e).getTime(),r=Ua(t);return new Date(n+r)}var uS={};function Fu(){return uS}function cS(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 dS(e){return sn(1,arguments),e instanceof Date||jl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hS(e){if(sn(1,arguments),!dS(e)&&typeof e!="number")return!1;var t=yr(e);return!isNaN(Number(t))}function fS(e,t){sn(2,arguments);var n=Ua(t);return lS(e,-n)}var pS=864e5;function mS(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/pS)+1}function Ul(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 vS(e){sn(1,arguments);var t=p2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ul(n);return r}var gS=6048e5;function yS(e){sn(1,arguments);var t=yr(e),n=Ul(t).getTime()-vS(t).getTime();return Math.round(n/gS)+1}function Zl(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=Fu(),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=Zl(g,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var p=Zl(v,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function bS(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=Fu(),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=m2(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var g=Zl(f,t);return g}var wS=6048e5;function kS(e,t){sn(1,arguments);var n=yr(e),r=Zl(n,t).getTime()-bS(n,t).getTime();return Math.round(r/wS)+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=CS;var lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ES={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=m2(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=p2(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=kS(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):st(a,t.length)},I:function(e,t,n){var r=yS(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=mS(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 Np(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 Np(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"+Bp(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"+Bp(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 Bp(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 Np(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 xS=ES;var Lp=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"})}},v2=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"})}},SS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Lp(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}}",Lp(r,t)).replace("{{time}}",v2(a,t))},_S={p:v2,P:SS};const DS=_S;var MS=["D","DD"],TS=["YY","YYYY"];function AS(e){return MS.indexOf(e)!==-1}function OS(e){return TS.indexOf(e)!==-1}function Rp(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 PS={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"}},IS=function(e,t,n){var r,a=PS[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 BS=IS;function xc(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 NS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$S={date:xc({formats:NS,defaultWidth:"full"}),time:xc({formats:LS,defaultWidth:"full"}),dateTime:xc({formats:RS,defaultWidth:"full"})};const HS=$S;var FS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zS=function(e,t,n,r){return FS[e]};const jS=zS;function yi(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 US={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YS={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"]},VS={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"]},KS={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"}},GS={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"}},WS=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"},qS={ordinalNumber:WS,era:yi({values:US,defaultWidth:"wide"}),quarter:yi({values:ZS,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:yi({values:YS,defaultWidth:"wide"}),day:yi({values:VS,defaultWidth:"wide"}),dayPeriod:yi({values:KS,defaultWidth:"wide",formattingValues:GS,defaultFormattingWidth:"wide"})};const QS=qS;function bi(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)?JS(s,function(d){return d.test(i)}):XS(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 XS(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function JS(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 t_=/^(\d+)(th|st|nd|rd)?/i,n_=/\d+/i,r_={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},a_={any:[/^b/i,/^(a|c)/i]},o_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},i_={any:[/1/i,/2/i,/3/i,/4/i]},s_={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},l_={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]},u_={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},c_={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]},d_={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},h_={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}},f_={ordinalNumber:e_({matchPattern:t_,parsePattern:n_,valueCallback:function(e){return parseInt(e,10)}}),era:bi({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:a_,defaultParseWidth:"any"}),quarter:bi({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bi({matchPatterns:s_,defaultMatchWidth:"wide",parsePatterns:l_,defaultParseWidth:"any"}),day:bi({matchPatterns:u_,defaultMatchWidth:"wide",parsePatterns:c_,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:d_,defaultMatchWidth:"any",parsePatterns:h_,defaultParseWidth:"any"})};const p_=f_;var m_={code:"en-US",formatDistance:BS,formatLong:HS,formatRelative:jS,localize:QS,match:p_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const v_=m_;var g_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b_=/^'([^]*?)'?$/,w_=/''/g,k_=/[a-zA-Z]/;function Sc(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 M=String(t),B=Fu(),L=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:B.locale)!==null&&r!==void 0?r:v_,D=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:B.firstWeekContainsDate)!==null&&i!==void 0?i:(d=B.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=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:B.weekStartsOn)!==null&&g!==void 0?g:(m=B.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 C=yr(e);if(!hS(C))throw new RangeError("Invalid time value");var A=cS(C),T=fS(C,A),N={firstWeekContainsDate:D,weekStartsOn:x,locale:L,_originalDate:C},ee=M.match(y_).map(function(ae){var oe=ae[0];if(oe==="p"||oe==="P"){var Q=DS[oe];return Q(ae,L.formatLong)}return ae}).join("").match(g_).map(function(ae){if(ae==="''")return"'";var oe=ae[0];if(oe==="'")return C_(ae);var Q=xS[oe];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&OS(ae)&&Rp(ae,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&AS(ae)&&Rp(ae,t,String(e)),Q(T,ae,L.localize,N);if(oe.match(k_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return ae}).join("");return ee}function C_(e){var t=e.match(b_);return t?t[1].replace(w_,"'"):e}var Dd={exports:{}},Md={exports:{}},g2={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})(g2);var St=g2.exports,Td={exports:{}},Ad={exports:{}},y2={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})(y2);var b2=y2.exports,Od={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})(Od,Od.exports);var ln=Od.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(b2),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})(Ad,Ad.exports);var E_=Ad.exports,Pd={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(b2),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})(Pd,Pd.exports);var br=Pd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(E_),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})(Td,Td.exports);var x_=Td.exports,Id={exports:{}},Bd={exports:{}},Nd={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})(Nd,Nd.exports);var to=Nd.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})(Bd,Bd.exports);var S_=Bd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(S_),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})(Id,Id.exports);var __=Id.exports,Ld={exports:{}},Rd={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})(Rd,Rd.exports);var D_=Rd.exports,$d={exports:{}},Hd={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})(zd,zd.exports);var w2=zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(w2),a=n(Ih),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})(Fd,Fd.exports);var M_=Fd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Ih),o=n(M_),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})($d,$d.exports);var T_=$d.exports,jd={exports:{}},Ud={exports:{}},no={};Object.defineProperty(no,"__esModule",{value:!0});no.getDefaultOptions=A_;no.setDefaultOptions=O_;var k2={};function A_(){return k2}function O_(e){k2=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),M=w.getUTCDay(),B=(M=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=new Date(0);L.setUTCFullYear(w+1,0,B),L.setUTCHours(0,0,0,0);var D=(0,o.default)(L,c),x=new Date(0);x.setUTCFullYear(w,0,B),x.setUTCHours(0,0,0,0);var C=(0,o.default)(x,c);return m.getTime()>=D.getTime()?w+1:m.getTime()>=C.getTime()?w:w-1}e.exports=t.default})(Yd,Yd.exports);var C2=Yd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(C2),a=n(ln),o=n(Bh),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),M=(0,r.default)(u,c),B=new Date(0);B.setUTCFullYear(M,0,w),B.setUTCHours(0,0,0,0);var L=(0,o.default)(B,c);return L}e.exports=t.default})(Zd,Zd.exports);var P_=Zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Bh),o=n(P_),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})(jd,jd.exports);var I_=jd.exports,Vd={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})(Kd,Kd.exports);var B_=Kd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(D_),a=n(T_),o=n(w2),i=n(I_),s=n(C2),l=n(E2),u=n(B_),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),M=w>0?w:1-w;if(p==="YY"){var B=M%100;return(0,l.default)(B,2)}return p==="Yo"?b.ordinalNumber(M,{unit:"year"}):(0,l.default)(M,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(),M=(w-m.weekStartsOn+8)%7||7;switch(p){case"e":return String(M);case"ee":return(0,l.default)(M,2);case"eo":return b.ordinalNumber(M,{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(),M=(w-m.weekStartsOn+8)%7||7;switch(p){case"c":return String(M);case"cc":return(0,l.default)(M,p.length);case"co":return b.ordinalNumber(M,{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,M=w.getTimezoneOffset();if(M===0)return"Z";switch(p){case"X":return f(M);case"XXXX":case"XX":return g(M);case"XXXXX":case"XXX":default:return g(M,":")}},x:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"x":return f(M);case"xxxx":case"xx":return g(M);case"xxxxx":case"xxx":default:return g(M,":")}},O:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"O":case"OO":case"OOO":return"GMT"+h(M,":");case"OOOO":default:return"GMT"+g(M,":")}},z:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"z":case"zz":case"zzz":return"GMT"+h(M,":");case"zzzz":default:return"GMT"+g(M,":")}},t:function(v,p,b,m){var w=m._originalDate||v,M=Math.floor(w.getTime()/1e3);return(0,l.default)(M,p.length)},T:function(v,p,b,m){var w=m._originalDate||v,M=w.getTime();return(0,l.default)(M,p.length)}};function h(v,p){var b=v>0?"-":"+",m=Math.abs(v),w=Math.floor(m/60),M=m%60;if(M===0)return b+String(w);var B=p||"";return b+String(w)+B+(0,l.default)(M,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),M=(0,l.default)(Math.floor(w/60),2),B=(0,l.default)(w%60,2);return m+M+b+B}var y=d;t.default=y,e.exports=t.default})(Ld,Ld.exports);var N_=Ld.exports,Gd={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})(Gd,Gd.exports);var L_=Gd.exports,Wd={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})(Wd,Wd.exports);var x2=Wd.exports,_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.isProtectedDayOfYearToken=H_;_s.isProtectedWeekYearToken=F_;_s.throwProtectedError=z_;var R_=["D","DD"],$_=["YY","YYYY"];function H_(e){return R_.indexOf(e)!==-1}function F_(e){return $_.indexOf(e)!==-1}function z_(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 qd={exports:{}},Qd={exports:{}},Xd={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})(Xd,Xd.exports);var j_=Xd.exports,Jd={exports:{}},e0={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})(e0,e0.exports);var U_=e0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(U_),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})(Jd,Jd.exports);var Z_=Jd.exports,t0={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})(t0,t0.exports);var Y_=t0.exports,n0={exports:{}},r0={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})(r0,r0.exports);var V_=r0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(V_),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})(n0,n0.exports);var K_=n0.exports,a0={exports:{}},o0={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})(i0,i0.exports);var W_=i0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(G_),a=n(W_),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})(a0,a0.exports);var q_=a0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(j_),a=n(Z_),o=n(Y_),i=n(K_),s=n(q_),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})(Qd,Qd.exports);var Q_=Qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Q_),a=r.default;t.default=a,e.exports=t.default})(qd,qd.exports);var X_=qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(x_),a=n(__),o=n(br),i=n(N_),s=n(L_),l=n(x2),u=_s,c=n(to),d=n(ln),h=no,f=n(X_),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,b=/[a-zA-Z]/;function m(M,B,L){var D,x,C,A,T,N,ee,ae,oe,Q,ye,_e,Re,Ze,ze,fe,$e,De;(0,d.default)(2,arguments);var je=String(B),U=(0,h.getDefaultOptions)(),R=(D=(x=L==null?void 0:L.locale)!==null&&x!==void 0?x:U.locale)!==null&&D!==void 0?D:f.default,K=(0,c.default)((C=(A=(T=(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&&T!==void 0?T: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&&C!==void 0?C: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=(Ze=L==null?void 0:L.weekStartsOn)!==null&&Ze!==void 0?Ze: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||(De=$e.options)===null||De===void 0?void 0:De.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)(M);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,B,String(M)),!(L!=null&&L.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Y)&&(0,u.throwProtectedError)(Y,B,String(M)),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(M){var B=M.match(v);return B?B[1].replace(p,"'"):M}e.exports=t.default})(Md,Md.exports);var J_=Md.exports,s0={exports:{}},l0={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})(l0,l0.exports);var eD=l0.exports,u0={exports:{}},c0={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})(c0,c0.exports);var tD=c0.exports,d0={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})(d0,d0.exports);var S2=d0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(tD),r=a(S2);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 M=parseInt(b[2],10);return h(w,M)?(m=Math.abs(w)*o+M*i,w>0?-m:m):NaN}if(g(y)){v=new Date(v||Date.now());var B=p?v:u(v),L=c(B,y),D=p?L:d(v,L,y);return-D}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 M=c(new Date(m),p);return w===M?w:Math.max(w,M)}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})(u0,u0.exports);var Ds=u0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(eD),r=a(Ds);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})(s0,s0.exports);var nD=s0.exports,h0={exports:{}},f0={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})(f0,f0.exports);var _2=f0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=i(to),r=i(x2),a=i(Ds),o=i(_2);function i(D){return D&&D.__esModule?D:{default:D}}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(D,x){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(D===null)return new Date(NaN);var C=x||{},A=C.additionalDigits==null?u:(0,n.default)(C.additionalDigits);if(A!==2&&A!==1&&A!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(D instanceof Date||typeof D=="object"&&Object.prototype.toString.call(D)==="[object Date]")return new Date(D.getTime());if(typeof D=="number"||Object.prototype.toString.call(D)==="[object Number]")return new Date(D);if(!(typeof D=="string"||Object.prototype.toString.call(D)==="[object String]"))return new Date(NaN);var T=h(D),N=f(T.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(T.time&&(ye=y(T.time),isNaN(ye)))return new Date(NaN);if(T.timeZone||C.timeZone){if(_e=(0,a.default)(T.timeZone||C.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(D){var x={},C=c.dateTimePattern.exec(D),A;if(C?(x.date=C[1],A=C[3]):(C=c.datePattern.exec(D),C?(x.date=C[1],A=C[2]):(x.date=null,A=D)),A){var T=c.timeZone.exec(A);T?(x.time=A.replace(T[1],""),x.timeZone=T[1].trim()):x.time=A}return x}function f(D,x){var C=c.YYY[x],A=c.YYYYY[x],T;if(T=c.YYYY.exec(D)||A.exec(D),T){var N=T[1];return{year:parseInt(N,10),restDateString:D.slice(N.length)}}if(T=c.YY.exec(D)||C.exec(D),T){var ee=T[1];return{year:parseInt(ee,10)*100,restDateString:D.slice(ee.length)}}return{year:null}}function g(D,x){if(x===null)return null;var C,A,T,N;if(D.length===0)return A=new Date(0),A.setUTCFullYear(x),A;if(C=c.MM.exec(D),C)return A=new Date(0),T=parseInt(C[1],10)-1,w(x,T)?(A.setUTCFullYear(x,T),A):new Date(NaN);if(C=c.DDD.exec(D),C){A=new Date(0);var ee=parseInt(C[1],10);return M(x,ee)?(A.setUTCFullYear(x,0,ee),A):new Date(NaN)}if(C=c.MMDD.exec(D),C){A=new Date(0),T=parseInt(C[1],10)-1;var ae=parseInt(C[2],10);return w(x,T,ae)?(A.setUTCFullYear(x,T,ae),A):new Date(NaN)}if(C=c.Www.exec(D),C)return N=parseInt(C[1],10)-1,B(x,N)?v(x,N):new Date(NaN);if(C=c.WwwD.exec(D),C){N=parseInt(C[1],10)-1;var oe=parseInt(C[2],10)-1;return B(x,N,oe)?v(x,N,oe):new Date(NaN)}return null}function y(D){var x,C,A;if(x=c.HH.exec(D),x)return C=parseFloat(x[1].replace(",",".")),L(C)?C%24*s:NaN;if(x=c.HHMM.exec(D),x)return C=parseInt(x[1],10),A=parseFloat(x[2].replace(",",".")),L(C,A)?C%24*s+A*l:NaN;if(x=c.HHMMSS.exec(D),x){C=parseInt(x[1],10),A=parseInt(x[2],10);var T=parseFloat(x[3].replace(",","."));return L(C,A,T)?C%24*s+A*l+T*1e3:NaN}return null}function v(D,x,C){x=x||0,C=C||0;var A=new Date(0);A.setUTCFullYear(D,0,4);var T=A.getUTCDay()||7,N=x*7+C+1-T;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(D){return D%400===0||D%4===0&&D%100!==0}function w(D,x,C){if(x<0||x>11)return!1;if(C!=null){if(C<1)return!1;var A=m(D);if(A&&C>b[x]||!A&&C>p[x])return!1}return!0}function M(D,x){if(x<1)return!1;var C=m(D);return!(C&&x>366||!C&&x>365)}function B(D,x,C){return!(x<0||x>52||C!=null&&(C<0||C>6))}function L(D,x,C){return!(D!=null&&(D<0||D>=25)||x!=null&&(x<0||x>=60)||C!=null&&(C<0||C>=60))}e.exports=t.default})(h0,h0.exports);var zu=h0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=o(J_),r=o(nD),a=o(zu);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})(Dd,Dd.exports);var D2=Dd.exports,p0={exports:{}},m0={exports:{}},v0={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})(v0,v0.exports);var rD=v0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(rD);function a(o){return(0,r.default)({},o)}e.exports=t.default})(m0,m0.exports);var M2=m0.exports,g0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(Ds),r=a(zu);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})(g0,g0.exports);var T2=g0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(M2),r=o(D2),a=o(T2);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})(p0,p0.exports);var aD=p0.exports,y0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ds);function r(o){return o&&o.__esModule?o:{default:o}}function a(o,i){return-(0,n.default)(o,i)}e.exports=t.default})(y0,y0.exports);var oD=y0.exports,b0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(M2),r=s(zu),a=s(_2),o=s(Ds),i=s(S2);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})(b0,b0.exports);var iD=b0.exports,_c={format:D2,formatInTimeZone:aD,getTimezoneOffset:oD,toDate:zu,utcToZonedTime:T2,zonedTimeToUtc:iD};function cs(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 Hn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView:window}return e}function Nh(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ds(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lD(e){return e===Hn(e)||!wr(e)?Nh(e):sD(e)}function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function ga(e){return(ds(e)?e.ownerDocument:e.document).documentElement}function A2(e){return cs(ga(e)).left+Nh(e).scrollLeft}function Ms(e){return Hn(e).getComputedStyle(e)}function Lh(e){var t=Ms(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function O2(e,t,n){n===void 0&&(n=!1);var r=ga(t),a=cs(e),o={scrollLeft:0,scrollTop:0},i={x:0,y:0};return n||((Zr(t)!=="body"||Lh(r))&&(o=lD(t)),wr(t)?(i=cs(t),i.x+=t.clientLeft,i.y+=t.clientTop):r&&(i.x=A2(r))),{x:a.left+o.scrollLeft-i.x,y:a.top+o.scrollTop-i.y,width:a.width,height:a.height}}function Rh(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function P2(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ga(e)}function I2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:wr(e)&&Lh(e)?e:I2(P2(e))}function ji(e,t){t===void 0&&(t=[]);var n=I2(e),r=Zr(n)==="body",a=Hn(n),o=r?[a].concat(a.visualViewport||[],Lh(n)?n:[]):n,i=t.concat(o);return r?i:i.concat(ji(P2(o)))}function uD(e){return["table","td","th"].indexOf(Zr(e))>=0}function $p(e){return!wr(e)||Ms(e).position==="fixed"?null:e.offsetParent}function Ts(e){for(var t=Hn(e),n=$p(e);n&&uD(n);)n=$p(n);return n&&Zr(n)==="body"&&Ms(n).position==="static"?t:n||t}var Bn="top",qn="bottom",Qn="right",Nn="left",$h="auto",As=[Bn,qn,Qn,Nn],Uo="start",Hh="end",cD="clippingParents",B2="viewport",wi="popper",dD="reference",Hp=As.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Hh])},[]),N2=[].concat(As,[$h]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Hh])},[]),hD="beforeRead",fD="read",pD="afterRead",mD="beforeMain",vD="main",gD="afterMain",yD="beforeWrite",bD="write",wD="afterWrite",kD=[hD,fD,pD,mD,vD,gD,yD,bD,wD];function CD(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 ED(e){var t=CD(e);return kD.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function xD(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 SD(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 Fp={placement:"bottom",modifiers:[],strategy:"absolute"};function zp(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function L2(e){var t=e.reference,n=e.element,r=e.placement,a=r?dr(r):null,o=r?hs(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 Nn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?Fh(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 Hh:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function TD(e){var t=e.state,n=e.name;t.modifiersData[n]=L2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const AD={name:"popperOffsets",enabled:!0,phase:"read",fn:TD,data:{}};var OD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PD(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 jp(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=PD(o),c=u.x,d=u.y,h=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),g=Nn,y=Bn,v=window;if(l){var p=Ts(n);p===Hn(n)&&(p=ga(n)),a===Bn&&(y=qn,d-=p.clientHeight-r.height,d*=s?1:-1),a===Nn&&(g=Qn,c-=p.clientWidth-r.width,c*=s?1:-1)}var b=Object.assign({position:i},l&&OD);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 ID(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,{},jp(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,{},jp(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 BD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ID,data:{}};function ND(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 LD(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 RD={name:"applyStyles",enabled:!0,phase:"write",fn:ND,effect:LD,requires:["computeStyles"]};function $D(e,t,n){var r=dr(e),a=[Nn,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,[Nn,Qn].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function HD(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=N2.reduce(function(c,d){return c[d]=$D(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 FD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HD};var zD={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return zD[t]})}var jD={start:"end",end:"start"};function Up(e){return e.replace(/start|end/g,function(t){return jD[t]})}function UD(e){var t=Hn(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 ZD(e){var t=Hn(e),n=Nh(e),r=O2(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 Ys(e){return parseFloat(e)||0}function YD(e){var t=wr(e)?Ms(e):{};return{top:Ys(t.borderTopWidth),right:Ys(t.borderRightWidth),bottom:Ys(t.borderBottomWidth),left:Ys(t.borderLeftWidth)}}function VD(e){var t=Hn(e),n=YD(e),r=Zr(e)==="html",a=A2(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 R2(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 w0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zp(e,t){return t===B2?w0(UD(e)):wr(t)?cs(t):w0(ZD(ga(e)))}function KD(e){var t=ji(e),n=["absolute","fixed"].indexOf(Ms(e).position)>=0,r=n&&wr(e)?Ts(e):e;return ds(r)?t.filter(function(a){return ds(a)&&R2(a,r)}):[]}function GD(e,t,n){var r=t==="clippingParents"?KD(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(s,l){var u=Zp(e,l),c=VD(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},Zp(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 $2(){return{top:0,right:0,bottom:0,left:0}}function H2(e){return Object.assign({},$2(),{},e)}function F2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function fs(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?cD:o,s=n.rootBoundary,l=s===void 0?B2:s,u=n.elementContext,c=u===void 0?wi:u,d=n.altBoundary,h=d===void 0?!1:d,f=n.padding,g=f===void 0?0:f,y=H2(typeof g!="number"?g:F2(g,As)),v=c===wi?dD:wi,p=e.elements.reference,b=e.rects.popper,m=e.elements[h?v:c],w=GD(ds(m)?m:m.contextElement||ga(e.elements.popper),i,l),M=cs(p),B=L2({reference:M,element:b,strategy:"absolute",placement:a}),L=w0(Object.assign({},b,{},B)),D=c===wi?L:M,x={top:w.top-D.top+y.top,bottom:D.bottom-w.bottom+y.bottom,left:w.left-D.left+y.left,right:D.right-w.right+y.right},C=e.modifiersData.offset;if(c===wi&&C){var A=C[a];Object.keys(x).forEach(function(T){var N=[Qn,qn].indexOf(T)>=0?1:-1,ee=[Bn,qn].indexOf(T)>=0?"y":"x";x[T]+=A[ee]*N})}return x}function WD(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?N2:l,c=hs(r),d=(c?s?Hp:Hp.filter(function(f){return hs(f)===c}):As).filter(function(f){return u.indexOf(f)>=0}),h=d.reduce(function(f,g){return f[g]=fs(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 qD(e){if(dr(e)===$h)return[];var t=dl(e);return[Up(e),t,Up(t)]}function QD(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?[dl(v)]:qD(v)),w=[v].concat(m).reduce(function($e,De){return $e.concat(dr(De)===$h?WD(t,{placement:De,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):De)},[]),M=t.rects.reference,B=t.rects.popper,L=new Map,D=!0,x=w[0],C=0;C=0,ae=ee?"width":"height",oe=fs(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),Q=ee?N?Qn:Nn:N?qn:Bn;M[ae]>B[ae]&&(Q=dl(Q));var ye=dl(Q),_e=[];if(o&&_e.push(oe[T]<=0),s&&_e.push(oe[Q]<=0,oe[ye]<=0),_e.every(function($e){return $e})){x=A,D=!1;break}L.set(A,_e)}if(D)for(var Re=g?3:1,Ze=function($e){var De=w.find(function(je){var U=L.get(je);if(U)return U.slice(0,$e).every(function(R){return R})});if(De)return x=De,"break"},ze=Re;ze>0;ze--){var fe=Ze(ze);if(fe==="break")break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}const XD={name:"flip",enabled:!0,phase:"main",fn:QD,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e){return e==="x"?"y":"x"}function hl(e,t,n){return Math.max(e,Math.min(t,n))}function eM(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=fs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=dr(t.placement),b=hs(t.placement),m=!b,w=Fh(p),M=JD(w),B=t.modifiersData.popperOffsets,L=t.rects.reference,D=t.rects.popper,x=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C={x:0,y:0};if(B){if(o){var A=w==="y"?Bn:Nn,T=w==="y"?qn:Qn,N=w==="y"?"height":"width",ee=B[w],ae=B[w]+v[A],oe=B[w]-v[T],Q=f?-D[N]/2:0,ye=b===Uo?L[N]:D[N],_e=b===Uo?-D[N]:-L[N],Re=t.elements.arrow,Ze=f&&Re?Rh(Re):{width:0,height:0},ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$2(),fe=ze[A],$e=ze[T],De=hl(0,L[N],Ze[N]),je=m?L[N]/2-Q-De-fe-x:ye-De-fe-x,U=m?-L[N]/2+Q+De+$e+x:_e+De+$e+x,R=t.elements.arrow&&Ts(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=B[w]+je-H-K,E=B[w]+U-H,_=hl(f?Math.min(ae,te):ae,ee,f?Math.max(oe,E):oe);B[w]=_,C[w]=_-ee}if(s){var P=w==="x"?Bn:Nn,Z=w==="x"?qn:Qn,Y=B[M],W=Y+v[P],ce=Y-v[Z],le=hl(W,Y,ce);B[M]=le,C[M]=le-Y}t.modifiersData[r]=C}}const tM={name:"preventOverflow",enabled:!0,phase:"main",fn:eM,requiresIfExists:["offset"]};function nM(e){var t,n=e.state,r=e.name,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=dr(n.placement),s=Fh(i),l=[Nn,Qn].indexOf(i)>=0,u=l?"height":"width";if(!(!a||!o)){var c=n.modifiersData[r+"#persistent"].padding,d=Rh(a),h=s==="y"?Bn:Nn,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=Ts(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],M=p/2-d[u]/2+b,B=hl(m,M,w),L=s;n.modifiersData[r]=(t={},t[L]=B,t.centerOffset=B-M,t)}}function rM(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(!R2(t.elements.popper,o))return;t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:H2(typeof s!="number"?s:F2(s,As))}}}const aM={name:"arrow",enabled:!0,phase:"main",fn:nM,effect:rM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yp(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 Vp(e){return[Bn,Qn,qn,Nn].some(function(t){return e[t]>=0})}function oM(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=fs(t,{elementContext:"reference"}),s=fs(t,{altBoundary:!0}),l=Yp(i,r),u=Yp(s,a,o),c=Vp(l),d=Vp(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 iM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oM};var sM=[MD,AD,BD,RD,FD,XD,tM,aM,iM],lM=_D({defaultModifiers:sM}),uM=Object.defineProperty,cM=Object.defineProperties,dM=Object.getOwnPropertyDescriptors,Yl=Object.getOwnPropertySymbols,z2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,Kp=(e,t,n)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))z2.call(t,n)&&Kp(e,n,t[n]);if(Yl)for(var n of Yl(t))j2.call(t,n)&&Kp(e,n,t[n]);return e},et=(e,t)=>cM(e,dM(t)),hM=(e,t)=>{var n={};for(var r in e)z2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yl)for(var r of Yl(e))t.indexOf(r)<0&&j2.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 k0(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 Gp(e,t){qt(2,arguments);var n=pr(t);return k0(e,n*12)}var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fM=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,U2=fM,pM=U2,mM=typeof self=="object"&&self&&self.Object===Object&&self,vM=pM||mM||Function("return this")(),kr=vM,gM=kr,yM=gM.Symbol,ni=yM,Wp=ni,Z2=Object.prototype,bM=Z2.hasOwnProperty,wM=Z2.toString,ki=Wp?Wp.toStringTag:void 0;function kM(e){var t=bM.call(e,ki),n=e[ki];try{e[ki]=void 0;var r=!0}catch{}var a=wM.call(e);return r&&(t?e[ki]=n:delete e[ki]),a}var CM=kM,EM=Object.prototype,xM=EM.toString;function SM(e){return xM.call(e)}var _M=SM,qp=ni,DM=CM,MM=_M,TM="[object Null]",AM="[object Undefined]",Qp=qp?qp.toStringTag:void 0;function OM(e){return e==null?e===void 0?AM:TM:Qp&&Qp in Object(e)?DM(e):MM(e)}var Cr=OM;function PM(e){return e!=null&&typeof e=="object"}var En=PM,IM=Cr,BM=En,NM="[object Boolean]";function LM(e){return e===!0||e===!1||BM(e)&&IM(e)==NM}var RM=LM,$M=Cr,HM=En,FM="[object Number]";function zM(e){return typeof e=="number"||HM(e)&&$M(e)==FM}var Ui=zM,jM=Array.isArray,xn=jM,UM=Cr,ZM=xn,YM=En,VM="[object String]";function KM(e){return typeof e=="string"||!ZM(e)&&YM(e)&&UM(e)==VM}var sa=KM;function GM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fn=GM,WM=Cr,qM=Fn,QM="[object AsyncFunction]",XM="[object Function]",JM="[object GeneratorFunction]",eT="[object Proxy]";function tT(e){if(!qM(e))return!1;var t=WM(e);return t==XM||t==JM||t==QM||t==eT}var Br=tT,nT=9007199254740991;function rT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nT}var zh=rT,aT=Br,oT=zh;function iT(e){return e!=null&&oT(e.length)&&!aT(e)}var Os=iT,sT=Os,lT=En;function uT(e){return lT(e)&&sT(e)}var hn=uT;function cT(e){return e===void 0}var dT=cT,hT=Cr,fT=En,pT="[object Date]";function mT(e){return fT(e)&&hT(e)==pT}var vT=mT;function gT(e){return function(t){return e(t)}}var ju=gT,Zo={exports:{}};(function(e,t){var n=U2,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 yT=vT,bT=ju,Xp=Zo.exports,Jp=Xp&&Xp.isDate,wT=Jp?bT(Jp):yT,kT=wT;function CT(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var ET=CT,xT=Cr,ST=En,_T="[object Symbol]";function DT(e){return typeof e=="symbol"||ST(e)&&xT(e)==_T}var Uu=DT,e1=Fn,MT=Uu,t1=0/0,TT=/^\s+|\s+$/g,AT=/^[-+]0x[0-9a-f]+$/i,OT=/^0b[01]+$/i,PT=/^0o[0-7]+$/i,IT=parseInt;function BT(e){if(typeof e=="number")return e;if(MT(e))return t1;if(e1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=e1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TT,"");var n=OT.test(e);return n||PT.test(e)?IT(e.slice(2),n?2:8):AT.test(e)?t1:+e}var NT=BT,LT=ET,Dc=NT;function RT(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Dc(n),n=n===n?n:0),t!==void 0&&(t=Dc(t),t=t===t?t:0),LT(Dc(e),t,n)}var $T=RT,HT=xn,FT=Uu,zT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jT=/^\w*$/;function UT(e,t){if(HT(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||FT(e)?!0:jT.test(e)||!zT.test(e)||t!=null&&e in Object(t)}var jh=UT,ZT=kr,YT=ZT["__core-js_shared__"],VT=YT,Mc=VT,n1=function(){var e=/[^.]+$/.exec(Mc&&Mc.keys&&Mc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KT(e){return!!n1&&n1 in e}var GT=KT,WT=Function.prototype,qT=WT.toString;function QT(e){if(e!=null){try{return qT.call(e)}catch{}try{return e+""}catch{}}return""}var Y2=QT,XT=Br,JT=GT,eA=Fn,tA=Y2,nA=/[\\^$.*+?()[\]{}|]/g,rA=/^\[object .+?Constructor\]$/,aA=Function.prototype,oA=Object.prototype,iA=aA.toString,sA=oA.hasOwnProperty,lA=RegExp("^"+iA.call(sA).replace(nA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uA(e){if(!eA(e)||JT(e))return!1;var t=XT(e)?lA:rA;return t.test(tA(e))}var cA=uA;function dA(e,t){return e==null?void 0:e[t]}var hA=dA,fA=cA,pA=hA;function mA(e,t){var n=pA(e,t);return fA(n)?n:void 0}var ro=mA,vA=ro,gA=vA(Object,"create"),Zu=gA,r1=Zu;function yA(){this.__data__=r1?r1(null):{},this.size=0}var bA=yA;function wA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kA=wA,CA=Zu,EA="__lodash_hash_undefined__",xA=Object.prototype,SA=xA.hasOwnProperty;function _A(e){var t=this.__data__;if(CA){var n=t[e];return n===EA?void 0:n}return SA.call(t,e)?t[e]:void 0}var DA=_A,MA=Zu,TA=Object.prototype,AA=TA.hasOwnProperty;function OA(e){var t=this.__data__;return MA?t[e]!==void 0:AA.call(t,e)}var PA=OA,IA=Zu,BA="__lodash_hash_undefined__";function NA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=IA&&t===void 0?BA:t,this}var LA=NA,RA=bA,$A=kA,HA=DA,FA=PA,zA=LA;function ri(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var aO=rO,oO=Yu;function iO(e,t){var n=this.__data__,r=oO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sO=iO,lO=ZA,uO=XA,cO=tO,dO=aO,hO=sO;function oi(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&YB?new zB:void 0;for(o.set(e,t),o.set(t,e);++d0){if(++t>=qR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e$=JR,t$=WR,n$=e$,r$=n$(t$),y5=r$,a$=Xh,o$=g5,i$=y5;function s$(e,t){return i$(o$(e,t,a$),e+"")}var Jh=s$,l$=ai,u$=Os,c$=qu,d$=Fn;function h$(e,t,n){if(!d$(n))return!1;var r=typeof t;return(r=="number"?u$(n)&&c$(t,n.length):r=="string"&&t in n)?l$(n[t],e):!1}var ef=h$;function f$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var p$=f$,m$=Fn,v$=Wh,g$=p$,y$=Object.prototype,b$=y$.hasOwnProperty;function w$(e){if(!m$(e))return g$(e);var t=v$(e),n=[];for(var r in e)r=="constructor"&&(t||!b$.call(e,r))||n.push(r);return n}var k$=w$,C$=X2,E$=k$,x$=Os;function S$(e){return x$(e)?C$(e,!0):E$(e)}var hi=S$,_$=Jh,D$=ai,M$=ef,T$=hi,b5=Object.prototype,A$=b5.hasOwnProperty,O$=_$(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&M$(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&&BH(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r0&&n(s)?t>1?A5(s,t-1,n,r,a):oF(a,s):r||(a[a.length]=s)}return a}var sF=A5,lF=sF;function uF(e){var t=e==null?0:e.length;return t?lF(e,1):[]}var cF=uF,dF=cF,hF=g5,fF=y5;function pF(e){return fF(hF(e,void 0,dF),e+"")}var O5=pF,mF=eF,vF=O5,gF=vF(function(e,t){return e==null?{}:mF(e,t)}),yF=gF;function bF(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}),cU(e,fU(e),n),r&&(n=sU(n,pU|mU|vU,dU));for(var a=t.length;a--;)lU(n,t[a]);return n}),D0=gU,yU=Object.prototype,bU=yU.hasOwnProperty;function wU(e,t){return e!=null&&bU.call(e,t)}var kU=wU,CU=kU,EU=f5;function xU(e,t){return e!=null&&EU(e,t,CU)}var R5=xU,SU=Os;function _U(e,t){return function(n,r){if(n==null)return n;if(!SU(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=>kT(e)&&!isNaN(e.getTime()),In=e=>jU(e)==="Object",af=R5,M0=(e,t)=>H5(t,n=>R5(e,n)),UU=H5,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},wn=e=>!!(e&&e.month&&e.year),Mi=(e,t)=>!wn(e)||!wn(t)?!1:e.year===t.year?e.month!wn(e)||!wn(t)?!1:e.year===t.year?e.month>t.month:e.year>t.year,F5=(e,t,n)=>(e||!1)&&!Mi(e,t)&&!Yi(e,n),Oc=(e,t)=>!e&&t||e&&!t?!1:!e&&!t?!0:e.month===t.month&&e.year===t.year,Tr=({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}},YU=(e,t)=>{if(!wn(e)||!wn(t))return[];const n=[];for(;!Yi(e,t);)n.push(e),e=Tr(e,1);return n};function Pc(e,t){const n=da(e),r=da(t);return!n&&!r?!0:n!==r?!1:e.getTime()===t.getTime()}const An=e=>hn(e)&&e.length>0,G1=(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&&In(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)},Vi=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),z5=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Gl=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`};function VU(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 KU={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 GU(e,t,n,r,a,o){return k(),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 j5=pi(KU,[["render",GU]]);const T0={name:"Popover",emits:["before-show","after-show","before-hide","after-hide"],render(){return Te("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[Te(j5,{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?Te("div",{tabindex:-1,class:["vc-popover-content",`direction-${this.direction}`,this.contentClass],style:this.contentStyle},[this.content,Te("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 Br(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||!Vi(this.popoverEl,e.relatedTarget))&&(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(e){!this.$refs.popover||!this.ref||Vi(this.popoverEl,e.target)||Vi(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,D0(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,D0(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=lM(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)}}},WU={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))}}},qU=["base","start","end","startEnd"],QU=["class","contentClass","style","contentStyle","color","fillMode"],XU={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 W1{constructor(t){Object.assign(this,XU,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(In(t))M0(t,qU)?a=we({},t):a={base:we({},t),start:we({},t),end:we({},t)};else return null;return Zi(a,{start:a.startEnd,end:a.startEnd},o),fl(a).forEach(([i,s])=>{let l=r;s===!0||sa(s)?(l=sa(s)?s:l,a[i]={color:l}):In(s)&&(M0(s,QU)?a[i]=we({},s):a[i]={}),af(a,`${i}.color`)||$P(a,`${i}.color`,l)}),a}normalizeHighlight(t){const n=this.normalizeAttr({config:t,type:"highlight"});return fl(n).forEach(([r,a])=>{const o=Zi(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 fl(a).forEach(([o,i])=>{Zi(i,{isDark:this.isDark,color:this.color}),i.style=we(we({},r(i)),i.style)}),a}}var ml=6e4;function q1(e){return e.getTime()%ml}function Wl(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0,a=r?(ml+q1(t))%ml:q1(t);return n*ml+a}function JU(e,t){var n=rZ(t);return n.formatToParts?tZ(n,e):nZ(n,e)}var eZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function tZ(e,t){for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[o]=parseInt(n[a].value,10))}return r}function nZ(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 Ic={};function rZ(e){if(!Ic[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";Ic[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 Ic[e]}var Q1=36e5,aZ=6e4,Gs={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function X1(e,t){var n,r;if(n=Gs.timezoneZ.exec(e),n)return 0;var a;if(n=Gs.timezoneHH.exec(e),n)return a=parseInt(n[2],10),J1()?(r=a*Q1,n[1]==="+"?-r:r):NaN;if(n=Gs.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return J1(a,o)?(r=a*Q1+o*aZ,n[1]==="+"?-r:r):NaN}if(n=Gs.timezoneIANA.exec(e),n){var i=JU(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 J1(e,t){return!(t!=null&&(t<0||t>59))}var Bc=36e5,em=6e4,oZ=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 tm(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?oZ: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=iZ(e),o=sZ(a.date,r),i=o.year,s=o.restDateString,l=lZ(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=uZ(a.time),isNaN(c)))return new Date(NaN);if(a.timezone||n.timeZone){if(d=X1(a.timezone||n.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN);if(d=X1(a.timezone||n.timeZone,new Date(u+c+d)),isNaN(d))return new Date(NaN)}else d=Wl(new Date(u+c)),d=Wl(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function iZ(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 sZ(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 lZ(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,rm(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 hZ(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 rm(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,am(t,o)?nm(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 am(t,o,l)?nm(t,o,l):new Date(NaN)}return null}function uZ(e){var t,n,r;if(t=Yt.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Nc(n)?n%24*Bc:NaN;if(t=Yt.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Nc(n,r)?n%24*Bc+r*em: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 Nc(n,r,a)?n%24*Bc+r*em+a*1e3:NaN}return null}function nm(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 cZ=[31,28,31,30,31,30,31,31,30,31,30,31],dZ=[31,29,31,30,31,30,31,31,30,31,30,31];function U5(e){return e%400===0||e%4===0&&e%100!==0}function rm(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=U5(e);if(r&&n>dZ[t]||!r&&n>cZ[t])return!1}return!0}function hZ(e,t){if(t<1)return!1;var n=U5(e);return!(n&&t>366||!n&&t>365)}function am(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Nc(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 pZ(e){qt(1,arguments);var t=fZ(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=ql(n);return r}var mZ=6048e5;function vZ(e){qt(1,arguments);var t=Yr(e),n=ql(t).getTime()-pZ(t).getTime();return Math.round(n/mZ)+1}function gZ(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 yZ(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=gZ(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 bZ=6048e5;function wZ(e,t){qt(1,arguments);var n=Yr(e),r=Za(n,t).getTime()-yZ(n,t).getTime();return Math.round(r/bZ)+1}var kZ=6048e5;function CZ(e,t,n){qt(2,arguments);var r=Za(e,n),a=Za(t,n),o=r.getTime()-Wl(r),i=a.getTime()-Wl(a);return Math.round((o-i)/kZ)}function EZ(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 xZ(e){qt(1,arguments);var t=Yr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function SZ(e,t){return qt(1,arguments),CZ(EZ(e),xZ(e),t)+1}const _Z=24*60*60*1e3;let Ar=class Un{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,!In(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=G1(t,{},Un.patternProps);if(s.assigned&&(this.on={and:s.target}),t.on){const l=(hn(t.on)?t.on:[t.on]).map(u=>{if(Br(u))return u;const c=G1(u,{},Un.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 Un(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)/_Z)}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(Un.patterns).map(t=>({name:t,validate:Un.patterns[t].validate}))}static testConfig(t,n,r){return Br(t)?t(n):In(t)?Object.keys(t).every(a=>Un.patterns[a].test(n,t[a],r)):null}iterateDatesInRange({start:t,end:n},r){if(!t||!n||!Br(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 Un(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&&!Un.testConfig(this.on.and,t,this)||this.on.or&&!this.on.or.some(n=>Un.testConfig(n,t,this))):!0}toRange(){return new Un({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 Ln={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"}};Ln.en=Ln["en-US"];Ln.es=Ln["es-ES"];Ln.no=Ln.nb;Ln.zh=Ln["zh-CN"];fl(Ln).forEach(([e,{dow:t,L:n}])=>{Ln[e]={id:e,firstDayOfWeek:t,masks:{L:n}}});const Qr={DATE_TIME:1,DATE:2,TIME:3},DZ={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},om=/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?/,MZ=/\d{3}/,TZ=/\d{4}/,Ci=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,AZ=/\[([^]*?)\]/gm,im=()=>{},sm=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substring(1).toLowerCase());~a&&(t.month=a)},OZ=["L","iso"],Qt=7,PZ=[31,28,31,30,31,30,31,31,30,31,30,31],IZ=[{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"}],lm={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+Ci.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Xr,im],W:[Ci,im],M:[Xr,(e,t)=>{e.month=t-1}],MMM:[Ci,sm("monthNamesShort")],MMMM:[Ci,sm("monthNames")],YY:[Xr,(e,t)=>{const n=+new Date().getFullYear().toString().substring(0,2);e.year=`${t>68?n-1:n}${t}`}],YYYY:[TZ,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.millisecond=t*100}],SS:[/\d{2}/,(e,t)=>{e.millisecond=t*10}],SSS:[MZ,(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:[Ci,(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 BZ(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sa(e)?r=e:af(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=In(e)?rf(e,i):i,e}class Ql{constructor(t,{locales:n=Ln,timezone:r}={}){const{id:a,firstDayOfWeek:o,masks:i}=BZ(t,n);this.id=a,this.daysInWeek=Qt,this.firstDayOfWeek=$T(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(AZ,(i,s)=>(r.push(s),"??"));const a=/Z$/.test(n)?"utc":this.timezone,o=this.getDateParts(t,a);return n=n.replace(om,i=>i in lm?lm[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(om,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(An(t)&&t||[sa(t)&&t||"YYYY-MM-DD"]).map(n=>OZ.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(Ui(t)?(a="number",r=new Date(+t)):sa(t)?(a="string",r=t?this.parse(t,i||"iso"):null):In(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)),yF(this.getDateParts(r),DZ[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(In(n)){const a=n.min||0,o=n.max||24;return a<=t&&o>=t}return n(t,r)}getHourOptions(t,n){return IZ.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 tm(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=tm(d,{timeZone:this.timezone})}else u=new Date(n,r-1,a,o,i,s,l);return(u-c)/6e4}toPage(t,n){return Ui(t)?Tr(n,t):sa(t)?this.getDateParts(this.normalizeDate(t)):da(t)?this.getDateParts(t):In(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:PZ[t-1],u=this.firstDayOfWeek-1,c=SZ(i,{weekStartsOn:u}),d=[],h=[];for(let f=0;f(ae,oe,Q,ye)=>this.normalizeDate({year:T,month:N,day:ee,hours:ae,minutes:oe,seconds:Q,milliseconds:ye});for(let T=1;T<=t;T++){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,M=n.month,B=n.year,d=!1,h=!0);const ae=A(B,M,y),oe={start:ae(0,0,0),end:ae(23,59,59,999)},Q=oe.start,ye=`${rt(B,4)}-${rt(M,2)}-${rt(y,2)}`,_e=N,Re=Qt-N,Ze=u[T-1],ze=l[T-1],fe=y===D&&M===x&&B===C,$e=h&&y===1,De=h&&y===n.days,je=T===1,U=T===t,R=N===1,K=N===Qt;o.push({id:ye,label:y.toString(),ariaLabel:g.format(new Date(B,M-1,y)),day:y,dayFromEnd:v,weekday:ee,weekdayPosition:_e,weekdayPositionFromEnd:Re,weekdayOrdinal:p,weekdayOrdinalFromEnd:b,week:m,weekFromEnd:w,weeknumber:Ze,isoWeeknumber:ze,month:M,year:B,dateFromTime:ae,date:Q,range:oe,isToday:fe,isFirstDay:$e,isLastDay:De,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":De,"in-month":h,"in-prev-month":d,"in-next-month":f,"on-top":je,"on-bottom":U,"on-left":R,"on-right":K}]}),h&&De?(h=!1,f=!0,y=1,v=a.days,p=1,b=Math.floor((a.days-y)/Qt+1),m=1,w=a.weeks,M=a.month,B=a.year):(y++,v--,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1))}m++,w--}return o}}class Z5{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=dT(t)?Gl():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=!!An(this.dates),this.excludeDates=y.normalizeDates(u,this.dateOpts),this.hasExcludeDates=!!An(this.excludeDates),this.excludeMode=c||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new Ar({},this.dateOpts)),this.hasDates=!0),this.isComplex=UU(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 NZ=300,LZ=60,RZ=80;var $Z={maxSwipeTime:NZ,minHorizontalSwipeDistance:LZ,maxVerticalSwipeDistance:RZ};const HZ="MMMM YYYY",FZ="W",zZ="MMM",jZ=["L","YYYY-MM-DD","YYYY/MM/DD"],UZ=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],ZZ=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],YZ=["h:mm A"],VZ=["HH:mm"],KZ="WWW, MMM D, YYYY",GZ=["L","YYYY-MM-DD","YYYY/MM/DD"],WZ="iso",qZ="YYYY-MM-DDTHH:mm:ss.SSSZ";var QZ={title:HZ,weekdays:FZ,navMonths:zZ,input:jZ,inputDateTime:UZ,inputDateTime24hr:ZZ,inputTime:YZ,inputTime24hr:VZ,dayPopover:KZ,data:GZ,model:WZ,iso:qZ};const XZ="640px",JZ="768px",eY="1024px",tY="1280px";var nY={sm:XZ,md:JZ,lg:eY,xl:tY};const rY={componentPrefix:"v",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:$Z,masks:QZ,screens:nY,locales:Ln,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}},A0=zr(rY),aY=I(()=>xR(A0.locales,e=>(e.masks=rf(e.masks,A0.masks),e))),ha=e=>window&&af(window.__vcalendar__,e)?ps(window.__vcalendar__,e):ps(A0,e),oY={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 W1?this.theme:new W1({color:this.color,isDark:this.isDark})},$locale(){if(this.locale instanceof Ql)return this.locale;const e=In(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new Ql(e,{locales:aY.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 Z5({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)}}},iY={methods:{safeSlot(e,t,n=null){return Br(this.$slots[e])?this.$slots[e](t):n}}},Ju=WU,Y5=oY,of=iY,sY={name:"PopoverRow",mixins:[Ju],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}}},lY={class:"vc-day-popover-row"},uY={key:0,class:"vc-day-popover-row-indicator"},cY={class:"vc-day-popover-row-content"};function dY(e,t,n,r,a,o){return k(),S("div",lY,[o.indicator?(k(),S("div",uY,[O("span",{style:Et(o.indicator.style),class:q(o.indicator.class)},null,6)])):$("",!0),O("div",cY,[F(e.$slots,"default",{},()=>[J(V(n.attribute.popover?n.attribute.popover.label:"No content provided"),1)])])])}var hY=pi(sY,[["render",dY]]);const Ws="26px",fY="0 0 32 32",pY={"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"}},mY={props:["name"],data(){return{width:Ws,height:Ws,viewBox:fY,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const e=pY[this.name];e&&(this.width=e.width||Ws,this.height=e.height||Ws,this.viewBox=e.viewBox,this.path=e.path)}}},vY=["width","height","viewBox"],gY=["d"];function yY(e,t,n,r,a,o){return k(),S("svg",{class:"vc-svg-icon",width:a.width,height:a.height,viewBox:a.viewBox},[O("path",{d:a.path},null,8,gY)],8,vY)}var V5=pi(mY,[["render",yY]]);const Lc=12,bY={name:"CalendarNav",emits:["input"],components:{SvgIcon:V5},mixins:[Ju],props:{value:{type:Object,default:()=>({month:0,year:0})},validator:{type:Function,default:()=>()=>!0}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:z5}},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 $5(this.yearItems.map(e=>e.year))},lastYear(){return ms(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/Lc)},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*Lc,a=r+Lc,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++}}},wY={class:"vc-nav-container",ref:"navContainer"},kY={class:"vc-nav-header"},CY=["tabindex"],EY=["tabindex"],xY={class:"vc-nav-items"},SY=["data-id","aria-label","tabindex","onClick","onKeydown"];function _Y(e,t,n,r,a,o){const i=Gn("svg-icon");return k(),S("div",wY,[O("div",kY,[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,CY),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,EY)]),O("div",xY,[(k(!0),S(Ae,null,ot(o.activeItems,s=>(k(),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,SY))),128))])],512)}var DY=pi(bY,[["render",_Y]]);function O0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function P0(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function K5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function MY(e){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:e}))}function Xl(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,K5(e),c.stopPropagation())},[u.mousemove](c){e.ref=c.currentTarget,i||(i=!0,(r||a)&&O0(e))},[u.mouseleave](c){e.ref=c.target,i&&(i=!1,(r||a&&!s)&&P0(e))},[u.focusin](c){e.ref=c.currentTarget,s||(s=!0,(o||a)&&O0(e))},[u.focusout](c){e.ref=c.currentTarget,s&&!Vi(e.ref,c.relatedTarget)&&(s=!1,(o||a&&!i)&&P0(e))}}}const TY={name:"CalendarDay",emits:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown"],mixins:[Ju,of],inheritAttrs:!1,render(){const e=()=>this.hasBackgrounds&&Te("div",{class:"vc-highlights vc-day-layer"},this.backgrounds.map(({key:a,wrapperClass:o,class:i,style:s})=>Te("div",{key:a,class:o},[Te("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})||Te("span",et(we(et(we({},this.dayContentProps),{class:this.dayContentClass,style:this.dayContentStyle}),this.dayContentEvents),{ref:"content"}),[this.day.label]),n=()=>this.hasDots&&Te("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Te("div",{class:"vc-dots"},this.dots.map(({key:a,class:o,style:i})=>Te("span",{key:a,class:o,style:i})))]),r=()=>this.hasBars&&Te("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Te("div",{class:"vc-bars"},this.bars.map(({key:a,class:o,style:i})=>Te("span",{key:a,class:o,style:i})))]);return Te("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!!An(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!An(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!An(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!An(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},ps(ms(this.content),"class")||""]},dayContentStyle(){return ps(ms(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=Zi({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={};An(this.popovers)&&(e=Xl(Zi({id:this.dayPopoverId,data:this.day,isRenderFn:!0},...this.popovers))),this.dayContentEvents=ZU({onClick:this.click,onMouseenter:this.mouseenter,onMouseleave:this.mouseleave,onFocusin:this.focusin,onFocusout:this.focusout,onKeydown:this.keydown},e),MY({id:this.dayPopoverId,data:this.day})}}},AY={name:"CalendarPane",emits:["update:page","weeknumberclick"],mixins:[Ju,of],inheritAttrs:!1,render(){const e=this.safeSlot("header",this.page)||Te("div",{class:`vc-header align-${this.titlePosition}`},[Te("div",we({class:"vc-title"},this.navPopoverEvents),[this.safeSlot("header-title",this.page,this.page.title)])]),t=this.weekdayLabels.map((l,u)=>Te("div",{key:u+1,class:"vc-weekday"},[l])),n=this.showWeeknumbers_.startsWith("left"),r=this.showWeeknumbers_.startsWith("right");n?t.unshift(Te("div",{class:"vc-weekday"})):r&&t.push(Te("div",{class:"vc-weekday"}));const a=l=>Te("div",{class:["vc-weeknumber"]},[Te("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(Te(TY,et(we({},this.$attrs),{day:l}),this.$slots)),r&&c===i-1&&o.push(a(l[this.weeknumberKey]))});const s=Te("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":n,"is-right":r}},[t,o]);return Te("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?"":RM(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 Xl({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 OY{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 An(t)&&t.forEach((l,u)=>{if(!l||!l.dates)return;const c=l.key?l.key.toString():u.toString(),d=l.order||0,h=VU(JSON.stringify(l));let f=this.map[c];!n&&f&&f.hashcode===h?s.delete(c):(f=new Z5(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 PY=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Br(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)}},IY={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 Te(AY,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=>z5(l,o),s=a?!this.canMovePrev:!this.canMoveNext;return Te("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}))||Te(V5,{name:a?"left-arrow":"right-arrow"})])},n=()=>Te(T0,{id:this.sharedState.navPopoverId,contentClass:"vc-nav-popover-container",ref:"navPopover"},{default:({data:a})=>{const{position:o,page:i}=a;return Te(DY,{value:i,position:o,validator:s=>this.canMove(s,{position:o}),onInput:s=>this.move(s)},we({},this.$slots))}}),r=()=>Te(T0,{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},Te("div",[l.dayPopover&&Te("div",{class:["vc-day-popover-header"]},[c]),s.map(d=>Te(hY,{key:d.key,attribute:d}))]))}});return Te("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(),Te("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[Te(j5,{name:this.transitionName,"on-before-enter":()=>{this.inTransition=!0},"on-after-enter":()=>{this.inTransition=!1}},{default:()=>Te("div",et(we({},this.$attrs),{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},key:this.firstPage?this.firstPage.key:""}),e)}),Te("div",{class:[`vc-arrows-container title-${this.titlePosition}`]},[t(!0),t(!1)]),this.$slots.footer&&this.$slots.footer()]),r()])},mixins:[Y5,of],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:Gl(),dayPopoverId:Gl(),theme:{},masks:{},locale:{}}}},computed:{firstPage(){return $5(this.pages)},lastPage(){return ms(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];Oc(e,t)||this.refreshPages()},toPage(e){const t=this.pages&&this.pages[this.pages.length-1];Oc(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=PY(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(Ui(e)&&(r=1),!r)if(Mi(n,this.firstPage))r=-1;else if(Yi(n,this.lastPage))r=1;else return!0;return Object.assign(t,this.getTargetPageRange(n,{position:r,force:!0})),YU(t.fromPage,t.toPage).some(a=>F5(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&&!Oc(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(In(e)){const{month:i,year:s}=e,{from:l,to:u}=e;Ui(i)&&Ui(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 Yi(r,a)&&(o=Tr(r,-(this.pages.length-1))),Mi(o,n)&&(o=n),this.refreshPages(et(we({},t),{page:o}))},getTargetPageRange(e,{position:t,force:n}={}){let r=null,a=null;if(wn(e)){let o=0;t=+t,isNaN(t)||(o=t>0?1-t:-(this.count+t)),r=Tr(e,o)}else r=this.getDefaultInitialPage();return a=Tr(r,this.count-1),n||(Mi(r,this.minPage_)?r=this.minPage_:Yi(a,this.maxPage_)&&(r=Tr(this.maxPage_,1-this.count)),a=Tr(r,this.count-1)),{fromPage:r,toPage:a}},getDefaultInitialPage(){let e=this.fromPage||this.pageForDate(this.fromDate);if(!wn(e)){const t=this.toPage||this.pageForDate(this.toPage);wn(t)&&(e=Tr(t,1-this.count))}return wn(e)||(e=this.getPageForAttributes()),wn(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||!wn(e)||!wn(t))return"fade";const r=Mi(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 OY(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(e=[],t=[],n=[],r){An(e)&&e.forEach(a=>{a.days.forEach(o=>{let i=!1,s={};r?i=!0:M0(o.attributesMap,n)?(s=D0(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=Gp(r,-1):a=k0(r,-1);break}case"PageDown":{n.altKey?a=Gp(r,1):a=k0(r,1);break}}a&&(n.preventDefault(),this.focusDate(a).catch())}}},BY={inheritAttrs:!1,emits:["update:modelValue"],props:{options:Array,modelValue:null}},NY={class:"vc-select"},LY=["value"],RY=["value","disabled"],$Y=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 HY(e,t,n,r,a,o){return k(),S("div",NY,[O("select",Ge(e.$attrs,{value:n.modelValue,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.value))}),[(k(!0),S(Ae,null,ot(n.options,i=>(k(),S("option",{key:i.value,value:i.value,disabled:i.disabled},V(i.label),9,RY))),128))],16,LY),$Y])}var FY=pi(BY,[["render",HY]]);const zY=[{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"}],jY=[{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"}],UY={name:"TimePicker",components:{TimeSelect:FY},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 zY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},pmHourOptions(){return jY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!An(this.amHourOptions)},pmDisabled(){return!An(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}))}}},ZY=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),YY={class:"vc-time-content"},VY={key:0,class:"vc-time-date"},KY={class:"vc-time-weekday"},GY={class:"vc-time-month"},WY={class:"vc-time-day"},qY={class:"vc-time-year"},QY={class:"vc-time-select"},XY=O("span",{style:{margin:"0 4px"}},":",-1),JY={key:0,class:"vc-am-pm"};function eV(e,t,n,r,a,o){const i=Gn("time-select");return k(),S("div",{class:q(["vc-time-picker",[{"vc-invalid":!n.modelValue.isValid,"vc-bordered":n.showBorder}]])},[ZY,O("div",YY,[o.date?(k(),S("div",VY,[O("span",KY,V(n.locale.format(o.date,"WWW")),1),O("span",GY,V(n.locale.format(o.date,"MMM")),1),O("span",WY,V(n.locale.format(o.date,"D")),1),O("span",qY,V(n.locale.format(o.date,"YYYY")),1)])):$("",!0),O("div",QY,[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"]),XY,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):(k(),S("div",JY,[O("button",{class:q({active:o.isAM,"vc-disabled":o.amDisabled}),onClick:t[2]||(t[2]=Tt(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]=Tt(s=>o.isAM=!1,["prevent"])),type:"button"}," PM ",2)]))])])],2)}var tV=pi(UY,[["render",eV]]);const um={type:"auto",mask:"iso",timeAdjust:""},nV=[um,um],qs={DATE:"date",DATE_TIME:"datetime",TIME:"time"},vn={NONE:0,START:1,END:2,BOTH:3},rV={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?Te(o,i):i},t=()=>{if(!this.dateParts)return null;const a=this.isRange?this.dateParts:[this.dateParts[0]];return Te("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 Te(tV,{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=()=>Te(IY,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?Te("div",{class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-dark":this.$theme.isDark}]},e(t(),"div")):n();return this.$slots.default?Te("div",[this.$slots.default(this.slotArgs),Te(T0,{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:[Y5],props:{mode:{type:String,default:qs.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:Gl()}},computed:{isDate(){return this.mode.toLowerCase()===qs.DATE},isDateTime(){return this.mode.toLowerCase()===qs.DATE_TIME},isTime(){return this.mode.toLowerCase()===qs.TIME},isDragging(){return!!this.dragValue},modelConfig_(){return this.normalizeConfig(this.modelConfig,nV)},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},Xl(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:Xl}},popover_(){return rf(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,vn.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)&&!Vi(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?vn.NONE:vn.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:vn.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?vn.START:vn.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?vn.START:vn.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=hM(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=vn.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?In(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=vn.NONE){const{start:n,end:r}=e;if(n>r)switch(t){case vn.START:return{start:n,end:n};case vn.END:return{start:r,end:r};case vn.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:Pc(e.start,t.start)&&Pc(e.end,t.end)}return Pc(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={}){O0(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},hidePopover(e={}){P0(et(we(we({hideDelay:10},this.showPopover_),e),{id:this.datePickerPopoverId}))},togglePopover(e){K5(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&&!F5(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"))}}},aV=e=>e.every(t=>t.value!==void 0),oV=e=>{const t=[];return e.forEach(n=>t.push(n.value+"")),t},iV=e=>{const t=oV(e),n=new Set(t);return t.length===n.size},G5=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})),sV=e=>{const t=typeof e[0]=="string",n=G5(e),r=iV(n);return t?r&&aV(e):r},lV={},uV=ge({...lV,__name:"KSegmentedControl",props:{modelValue:{type:[String,Number,Boolean],required:!0},options:{type:Array,required:!0,validator:e=>!e.length||sV(e)},isDisabled:{type:Boolean,default:!1},allowPointerEvents:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(G5(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)=>(k(),S("div",{class:q(["k-segmented-control",{"allow-pointer-events":e.allowPointerEvents}])},[(k(!0),S(Ae,null,ot(r.value,u=>(k(),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))}}),W5=Ee(uV,[["__scopeId","data-v-f8d80387"]]),cV=["innerHTML"],dV={key:1,class:"range-display"},hV={key:3,class:"relative-periods-container"},fV={class:"timeframe-section-title"},pV={class:"timeframe-buttons"},mV={class:"datetime-picker-footer-container"},vV=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(xk).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=I(()=>a.mode!=="relative"),c=I(()=>{var D;return((D=a==null?void 0:a.timePeriods)==null?void 0:D.length)>0}),d=I(()=>v.tabName==="custom"||!c.value),h=I(()=>a.range||c.value?!v.selectedRange.start||!v.selectedRange.end:!v.selectedRange.start),f=I(()=>({width:a.width==="auto"||a.width.endsWith("%")||a.width.endsWith("px")?a.width:a.width+"px"})),g=I(()=>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=D=>{let x,C;D&&(D.start&&D.end?(x=new Date(D.start),C=new Date(D.end)):(x=new Date(Number(D)),C=0),v.selectedRange=v.previouslySelectedRange={start:x,end:C,timePeriodsKey:""})},b=D=>{v.selectedTimeframe=v.previouslySelectedTimeframe=D;const x=v.selectedTimeframe.start(),C=v.selectedTimeframe.end();v.selectedRange={start:new Date(x),end:new Date(C),timePeriodsKey:v.selectedTimeframe.key},v.fullRangeDisplay=w(v.selectedRange,!1)},m=()=>{var D;l.value="",v.abbreviatedDisplay=a.placeholder,v.fullRangeDisplay="",v.selectedRange={start:0,end:0,timePeriodsKey:""},c.value&&(v.selectedTimeframe=(D=a.timePeriods[0])==null?void 0:D.values[0]),a.range||a.mode==="relative"?(t("change",v.selectedRange),t("update:modelValue",v.selectedRange)):(t("change",""),t("update:modelValue",""))},w=(D,x)=>{const{start:C,end:A}=D;let T="PP hh:mm a";const N=_c.formatInTimeZone(C,y,"(z)");return!u.value&&c.value?T="PP hh:mm a":a.mode==="date"&&(T="PP"),a.range?x?`
${Sc(C,T)} - 
${_c.formatInTimeZone(A,y,T)} ${N}
`:`${Sc(C,T)} - ${_c.formatInTimeZone(A,y,T)} ${N}`:C?`${Sc(C,T)} ${N}`:""},M=async()=>{if(a.range||c.value)t("change",v.selectedRange),t("update:modelValue",v.selectedRange);else{const D=new Date(v.selectedRange.start);t("change",D),t("update:modelValue",D)}v.hidePopover=!0,B()},B=()=>{a.range&&c.value&&!d.value?v.abbreviatedDisplay=v.selectedTimeframe.display:v.abbreviatedDisplay=w(v.selectedRange,!0)},L=D=>D.charAt(0).toUpperCase()+D.slice(1);return Le(l,(D,x)=>{D!==void 0&&D!==x&&p(D)},{immediate:!0}),Le(()=>v.tabName,(D,x)=>{x!==void 0&&D==="relative"?b(v.previouslySelectedTimeframe):x!==void 0&&D==="custom"&&p(v.previouslySelectedRange)}),ft(()=>{if(a.modelValue)if("timePeriodsKey"in a.modelValue){v.tabName="relative";for(const D of a.timePeriods){const x=D.values.find(C=>C.key===a.modelValue.timePeriodsKey);if(x){b(x),B();break}}}else v.tabName="custom",p(a.modelValue),B()}),(D,x)=>(k(),S("div",{class:q(["k-datetime-picker",{"set-min-width":c.value}]),style:Et(f.value)},[G(ei,{"hide-caret":"","hide-popover":v.hidePopover,placement:"bottomStart","position-fixed":"",width:"auto",onOpened:x[5]||(x[5]=C=>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?(k(),se(Ie,{key:0,class:"calendar-icon",color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"calendar",size:he(xt)},null,8,["color","size"])):$("",!0),O("div",{class:"timepicker-display","data-testid":"k-datetime-picker-display",innerHTML:v.abbreviatedDisplay},null,8,cV)]),_:1},8,["class","style"])]),_:2},[v.hidePopover?void 0:{name:"content",fn:z(()=>[c.value&&u.value?(k(),se(W5,{key:0,modelValue:v.tabName,"onUpdate:modelValue":x[0]||(x[0]=C=>v.tabName=C),class:"datetime-picker-toggle","data-testid":"k-datetime-picker-toggle",options:[{label:"Relative",value:"relative"},{label:"Custom",value:"custom"}],onClick:x[1]||(x[1]=C=>v.tabName=C)},null,8,["modelValue"])):$("",!0),d.value?$("",!0):(k(),S("p",dV,V(v.fullRangeDisplay),1)),u.value&&d.value?(k(),se(he(rV),{key:2,modelValue:l.value,"onUpdate:modelValue":x[2]||(x[2]=C=>l.value=C),"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?(k(),S("div",hV,[(k(!0),S(Ae,null,ot(e.timePeriods,(C,A)=>(k(),S("div",{key:`section-${String(C.section||A)}`,class:"timeframe-section"},[O("div",fV,V(C.section),1),O("div",pV,[(k(!0),S(Ae,null,ot(C.values,(T,N)=>(k(),se(We,{key:`time-${N}`,appearance:"outline",class:q(["timeframe-btn",{"selected-option":T.key===v.selectedTimeframe.key}]),"data-testid":"select-timeframe-"+T.timeframeLength(),"is-rounded":!1,size:"medium",onClick:ee=>b(T)},{default:z(()=>[J(V(L(T.timeframeText)),1)]),_:2},1032,["class","data-testid","onClick"]))),128))])]))),128))])):$("",!0)]),key:"0"},v.hidePopover?void 0:{name:"footer",fn:z(()=>[O("div",mV,[e.clearButton?(k(),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]=C=>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]=C=>M())},{default:z(()=>[J(" Apply ")]),_:1},8,["disabled"])])]),key:"1"}]),1032,["hide-popover"])],6))}}),gV=["data-testid"],yV=["title"],q5=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=$6(),a=I(()=>{var h;return(h=n.item)!=null&&h.to?"link":typeof n.onClick<"u"||n.selectionMenuChild?"button":"default"}),o=I(()=>{var h;return((h=n.item)==null?void 0:h.label)||""}),i=I(()=>r?r.path:""),s=I(()=>{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=I(()=>{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=I(()=>({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)=>(k(),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,"-")}`},[(k(),se(va(d.value[c.value].tag),Ge({"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,yV)]),_:3},16,["onClick"]))],10,gV))}}),bV={class:"k-dropdown-list dropdown-list","data-testid":"k-dropdown-list"},wV=ge({__name:"KDropdownMenu",props:{appearance:{type:String,default:"menu",validator:e=>Sk.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=I(()=>r.disabledTooltip?ti:"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)=>(k(),S("div",{class:q(["k-dropdown k-dropdown-menu",{"selection-dropdown-menu":e.appearance==="selectionMenu"}])},[G(he(Lu),null,{default:z(({toggle:g,isToggled:y})=>[G(ei,Ge(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",bV,[F(h.$slots,"items",{closeDropdown:c,handleSelection:u,items:e.items},()=>[(k(!0),S(Ae,null,ot(e.items,(v,p)=>(k(),se(q5,Ge(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(()=>[(k(),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?(k(),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))}}),kV=Ee(wV,[["__scopeId","data-v-a29da198"]]),CV={class:"k-file-upload"},EV=["onClick"],xV=["onKeyup"],SV=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:$u},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=I(()=>n.testMode?"test-file-upload-id-1234":pa()),a=I(()=>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)=>(k(),S("div",CV,[e.label?(k(),se(Ur,Ge({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),(k(),se(Ss,{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"?(k(),se(Ie,{key:1,class:"image-upload-icon",color:e.iconColor,icon:e.icon,size:e.iconSize,onClick:Tt(d,["prevent"])},null,8,["color","icon","size","onClick"])):$("",!0),e.type==="image"?(k(),S("a",{key:2,class:"image-upload-description",href:"#",onClick:Tt(d,["prevent"])},V(l.value?l.value:e.placeholder),9,EV)):$("",!0),l.value&&e.removable?(k(),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(Ie,{icon:"close",size:"16"})]),_:1},8,["class","onKeyup"])):$("",!0),e.type==="file"?(k(),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"?(k(),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,xV)):$("",!0)]))}}),_V=Ee(SV,[["__scopeId","data-v-5a033b1f"]]),DV=["id"],MV=["onKeyup"],TV=["id"],AV=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=I(()=>"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(_d).reduce((y,v)=>(y[v]=g.getPropertyValue(_d[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||he(s)["secondary-actions"]?(k(),S("div",Xx,[e.showCopyButton?(k(),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 (${he(o)}+C)`,type:"button",onClick:K},{default:z(()=>[G(Ie,{color:"currentColor",icon:"copy",size:he(xt),title:`Copy (${he(o)}+C)`},null,8,["size","title"]),Jx]),_:1},8,["title"])):$("",!0),F(H.$slots,"secondary-actions",{},void 0,!0)])):$("",!0)])],14,Ax))}}),tS=Ee(eS,[["__scopeId","data-v-dad3afd6"]]),nS={class:"k-collapse"},rS={key:0,class:"k-collapse-trigger-label","data-testid":"k-collapse-trigger-label"},aS={key:0,class:"k-collapse-visible-content","data-testid":"k-collapse-visible-content"},oS={class:"k-collapse-hidden-content","data-testid":"k-collapse-hidden-content"},iS=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=>Ek.includes(e)}},emits:["toggled","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(!0),a=j(!1),o=It(),i=I(()=>n.triggerAlignment==="trailing"),s=I(()=>!!o["visible-content"]),l=I({get(){return n.modelValue},set(h){d(h)}}),u=I(()=>a.value?r.value:n.modelValue),c=I(()=>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)=>(k(),S("div",nS,[O("div",{class:q(["k-collapse-heading",{"has-trailing-trigger":i.value}])},[e.title?(k(),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]=Tt(g=>d(),["prevent","stop"]))},[F(h.$slots,"trigger-content",{},()=>[e.triggerLabel?(k(),S("span",rS,[G(Ie,{class:"k-collapse-trigger-chevron",icon:c.value,size:he(ks)},null,8,["icon","size"]),O("span",null,V(e.triggerLabel),1)])):(k(),se(Ie,{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?(k(),S("div",aS,[F(h.$slots,"visible-content",{},void 0,!0)])):$("",!0),Al(O("div",oS,[F(h.$slots,"default",{},void 0,!0)],512),[[gd,!u.value]])]))}}),sS=Ee(iS,[["__scopeId","data-v-1929b49b"]]);function jl(e){"@babel/helpers - typeof";return jl=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},jl(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||jl(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 lS(e,t){sn(2,arguments);var n=yr(e).getTime(),r=Ua(t);return new Date(n+r)}var uS={};function Fu(){return uS}function cS(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 dS(e){return sn(1,arguments),e instanceof Date||jl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hS(e){if(sn(1,arguments),!dS(e)&&typeof e!="number")return!1;var t=yr(e);return!isNaN(Number(t))}function fS(e,t){sn(2,arguments);var n=Ua(t);return lS(e,-n)}var pS=864e5;function mS(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/pS)+1}function Ul(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 vS(e){sn(1,arguments);var t=p2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ul(n);return r}var gS=6048e5;function yS(e){sn(1,arguments);var t=yr(e),n=Ul(t).getTime()-vS(t).getTime();return Math.round(n/gS)+1}function Zl(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=Fu(),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=Zl(g,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var p=Zl(v,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function bS(e,t){var n,r,a,o,i,s,l,u;sn(1,arguments);var c=Fu(),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=m2(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var g=Zl(f,t);return g}var wS=6048e5;function kS(e,t){sn(1,arguments);var n=yr(e),r=Zl(n,t).getTime()-bS(n,t).getTime();return Math.round(r/wS)+1}function lt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return lt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):lt(n+1,2)},d:function(e,t){return lt(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 lt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return lt(e.getUTCHours(),t.length)},m:function(e,t){return lt(e.getUTCMinutes(),t.length)},s:function(e,t){return lt(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 lt(a,t.length)}};const qr=CS;var lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ES={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=m2(e,r),o=a>0?a:1-a;if(t==="YY"){var i=o%100;return lt(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):lt(o,t.length)},R:function(e,t){var n=p2(e);return lt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return lt(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 lt(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 lt(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 lt(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=kS(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):lt(a,t.length)},I:function(e,t,n){var r=yS(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):lt(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=mS(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):lt(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 lt(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 lt(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 lt(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"}):lt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):lt(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 Np(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 Np(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"+Bp(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"+Bp(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 lt(o,t.length)},T:function(e,t,n,r){var a=r._originalDate||e,o=a.getTime();return lt(o,t.length)}};function Bp(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+lt(o,2)}function Np(e,t){if(e%60===0){var n=e>0?"-":"+";return n+lt(Math.abs(e)/60,2)}return Sa(e,t)}function Sa(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),o=lt(Math.floor(a/60),2),i=lt(a%60,2);return r+o+n+i}const xS=ES;var Lp=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"})}},v2=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"})}},SS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Lp(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}}",Lp(r,t)).replace("{{time}}",v2(a,t))},_S={p:v2,P:SS};const DS=_S;var MS=["D","DD"],TS=["YY","YYYY"];function AS(e){return MS.indexOf(e)!==-1}function OS(e){return TS.indexOf(e)!==-1}function Rp(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 PS={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"}},IS=function(e,t,n){var r,a=PS[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 BS=IS;function xc(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 NS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$S={date:xc({formats:NS,defaultWidth:"full"}),time:xc({formats:LS,defaultWidth:"full"}),dateTime:xc({formats:RS,defaultWidth:"full"})};const HS=$S;var FS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zS=function(e,t,n,r){return FS[e]};const jS=zS;function yi(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 US={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YS={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"]},VS={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"]},KS={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"}},GS={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"}},WS=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"},qS={ordinalNumber:WS,era:yi({values:US,defaultWidth:"wide"}),quarter:yi({values:ZS,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:yi({values:YS,defaultWidth:"wide"}),day:yi({values:VS,defaultWidth:"wide"}),dayPeriod:yi({values:KS,defaultWidth:"wide",formattingValues:GS,defaultFormattingWidth:"wide"})};const QS=qS;function bi(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)?JS(s,function(d){return d.test(i)}):XS(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 XS(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function JS(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 t_=/^(\d+)(th|st|nd|rd)?/i,n_=/\d+/i,r_={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},a_={any:[/^b/i,/^(a|c)/i]},o_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},i_={any:[/1/i,/2/i,/3/i,/4/i]},s_={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},l_={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]},u_={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},c_={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]},d_={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},h_={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}},f_={ordinalNumber:e_({matchPattern:t_,parsePattern:n_,valueCallback:function(e){return parseInt(e,10)}}),era:bi({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:a_,defaultParseWidth:"any"}),quarter:bi({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bi({matchPatterns:s_,defaultMatchWidth:"wide",parsePatterns:l_,defaultParseWidth:"any"}),day:bi({matchPatterns:u_,defaultMatchWidth:"wide",parsePatterns:c_,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:d_,defaultMatchWidth:"any",parsePatterns:h_,defaultParseWidth:"any"})};const p_=f_;var m_={code:"en-US",formatDistance:BS,formatLong:HS,formatRelative:jS,localize:QS,match:p_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const v_=m_;var g_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b_=/^'([^]*?)'?$/,w_=/''/g,k_=/[a-zA-Z]/;function Sc(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 M=String(t),B=Fu(),L=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:B.locale)!==null&&r!==void 0?r:v_,D=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:B.firstWeekContainsDate)!==null&&i!==void 0?i:(d=B.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=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:B.weekStartsOn)!==null&&g!==void 0?g:(m=B.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 C=yr(e);if(!hS(C))throw new RangeError("Invalid time value");var A=cS(C),T=fS(C,A),N={firstWeekContainsDate:D,weekStartsOn:x,locale:L,_originalDate:C},ee=M.match(y_).map(function(ae){var oe=ae[0];if(oe==="p"||oe==="P"){var Q=DS[oe];return Q(ae,L.formatLong)}return ae}).join("").match(g_).map(function(ae){if(ae==="''")return"'";var oe=ae[0];if(oe==="'")return C_(ae);var Q=xS[oe];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&OS(ae)&&Rp(ae,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&AS(ae)&&Rp(ae,t,String(e)),Q(T,ae,L.localize,N);if(oe.match(k_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return ae}).join("");return ee}function C_(e){var t=e.match(b_);return t?t[1].replace(w_,"'"):e}var Dd={exports:{}},Md={exports:{}},g2={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})(g2);var St=g2.exports,Td={exports:{}},Ad={exports:{}},y2={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})(y2);var b2=y2.exports,Od={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})(Od,Od.exports);var ln=Od.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(b2),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})(Ad,Ad.exports);var E_=Ad.exports,Pd={exports:{}};(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(b2),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})(Pd,Pd.exports);var br=Pd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(E_),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})(Td,Td.exports);var x_=Td.exports,Id={exports:{}},Bd={exports:{}},Nd={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})(Nd,Nd.exports);var to=Nd.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})(Bd,Bd.exports);var S_=Bd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(S_),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})(Id,Id.exports);var __=Id.exports,Ld={exports:{}},Rd={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})(Rd,Rd.exports);var D_=Rd.exports,$d={exports:{}},Hd={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})(zd,zd.exports);var w2=zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(w2),a=n(Ih),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})(Fd,Fd.exports);var M_=Fd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Ih),o=n(M_),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})($d,$d.exports);var T_=$d.exports,jd={exports:{}},Ud={exports:{}},no={};Object.defineProperty(no,"__esModule",{value:!0});no.getDefaultOptions=A_;no.setDefaultOptions=O_;var k2={};function A_(){return k2}function O_(e){k2=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),M=w.getUTCDay(),B=(M=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=new Date(0);L.setUTCFullYear(w+1,0,B),L.setUTCHours(0,0,0,0);var D=(0,o.default)(L,c),x=new Date(0);x.setUTCFullYear(w,0,B),x.setUTCHours(0,0,0,0);var C=(0,o.default)(x,c);return m.getTime()>=D.getTime()?w+1:m.getTime()>=C.getTime()?w:w-1}e.exports=t.default})(Yd,Yd.exports);var C2=Yd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(C2),a=n(ln),o=n(Bh),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),M=(0,r.default)(u,c),B=new Date(0);B.setUTCFullYear(M,0,w),B.setUTCHours(0,0,0,0);var L=(0,o.default)(B,c);return L}e.exports=t.default})(Zd,Zd.exports);var P_=Zd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(br),a=n(Bh),o=n(P_),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})(jd,jd.exports);var I_=jd.exports,Vd={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})(Kd,Kd.exports);var B_=Kd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(D_),a=n(T_),o=n(w2),i=n(I_),s=n(C2),l=n(E2),u=n(B_),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),M=w>0?w:1-w;if(p==="YY"){var B=M%100;return(0,l.default)(B,2)}return p==="Yo"?b.ordinalNumber(M,{unit:"year"}):(0,l.default)(M,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(),M=(w-m.weekStartsOn+8)%7||7;switch(p){case"e":return String(M);case"ee":return(0,l.default)(M,2);case"eo":return b.ordinalNumber(M,{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(),M=(w-m.weekStartsOn+8)%7||7;switch(p){case"c":return String(M);case"cc":return(0,l.default)(M,p.length);case"co":return b.ordinalNumber(M,{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,M=w.getTimezoneOffset();if(M===0)return"Z";switch(p){case"X":return f(M);case"XXXX":case"XX":return g(M);case"XXXXX":case"XXX":default:return g(M,":")}},x:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"x":return f(M);case"xxxx":case"xx":return g(M);case"xxxxx":case"xxx":default:return g(M,":")}},O:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"O":case"OO":case"OOO":return"GMT"+h(M,":");case"OOOO":default:return"GMT"+g(M,":")}},z:function(v,p,b,m){var w=m._originalDate||v,M=w.getTimezoneOffset();switch(p){case"z":case"zz":case"zzz":return"GMT"+h(M,":");case"zzzz":default:return"GMT"+g(M,":")}},t:function(v,p,b,m){var w=m._originalDate||v,M=Math.floor(w.getTime()/1e3);return(0,l.default)(M,p.length)},T:function(v,p,b,m){var w=m._originalDate||v,M=w.getTime();return(0,l.default)(M,p.length)}};function h(v,p){var b=v>0?"-":"+",m=Math.abs(v),w=Math.floor(m/60),M=m%60;if(M===0)return b+String(w);var B=p||"";return b+String(w)+B+(0,l.default)(M,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),M=(0,l.default)(Math.floor(w/60),2),B=(0,l.default)(w%60,2);return m+M+b+B}var y=d;t.default=y,e.exports=t.default})(Ld,Ld.exports);var N_=Ld.exports,Gd={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})(Gd,Gd.exports);var L_=Gd.exports,Wd={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})(Wd,Wd.exports);var x2=Wd.exports,_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.isProtectedDayOfYearToken=H_;_s.isProtectedWeekYearToken=F_;_s.throwProtectedError=z_;var R_=["D","DD"],$_=["YY","YYYY"];function H_(e){return R_.indexOf(e)!==-1}function F_(e){return $_.indexOf(e)!==-1}function z_(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 qd={exports:{}},Qd={exports:{}},Xd={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})(Xd,Xd.exports);var j_=Xd.exports,Jd={exports:{}},e0={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})(e0,e0.exports);var U_=e0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(U_),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})(Jd,Jd.exports);var Z_=Jd.exports,t0={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})(t0,t0.exports);var Y_=t0.exports,n0={exports:{}},r0={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})(r0,r0.exports);var V_=r0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(V_),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})(n0,n0.exports);var K_=n0.exports,a0={exports:{}},o0={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})(i0,i0.exports);var W_=i0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(G_),a=n(W_),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})(a0,a0.exports);var q_=a0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(j_),a=n(Z_),o=n(Y_),i=n(K_),s=n(q_),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})(Qd,Qd.exports);var Q_=Qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Q_),a=r.default;t.default=a,e.exports=t.default})(qd,qd.exports);var X_=qd.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(x_),a=n(__),o=n(br),i=n(N_),s=n(L_),l=n(x2),u=_s,c=n(to),d=n(ln),h=no,f=n(X_),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,b=/[a-zA-Z]/;function m(M,B,L){var D,x,C,A,T,N,ee,ae,oe,Q,ye,_e,Re,Ze,ze,fe,$e,De;(0,d.default)(2,arguments);var Ue=String(B),U=(0,h.getDefaultOptions)(),R=(D=(x=L==null?void 0:L.locale)!==null&&x!==void 0?x:U.locale)!==null&&D!==void 0?D:f.default,K=(0,c.default)((C=(A=(T=(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&&T!==void 0?T: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&&C!==void 0?C: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=(Ze=L==null?void 0:L.weekStartsOn)!==null&&Ze!==void 0?Ze: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||(De=$e.options)===null||De===void 0?void 0:De.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)(M);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=Ue.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,B,String(M)),!(L!=null&&L.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Y)&&(0,u.throwProtectedError)(Y,B,String(M)),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(M){var B=M.match(v);return B?B[1].replace(p,"'"):M}e.exports=t.default})(Md,Md.exports);var J_=Md.exports,s0={exports:{}},l0={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})(l0,l0.exports);var eD=l0.exports,u0={exports:{}},c0={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})(c0,c0.exports);var tD=c0.exports,d0={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})(d0,d0.exports);var S2=d0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(tD),r=a(S2);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 M=parseInt(b[2],10);return h(w,M)?(m=Math.abs(w)*o+M*i,w>0?-m:m):NaN}if(g(y)){v=new Date(v||Date.now());var B=p?v:u(v),L=c(B,y),D=p?L:d(v,L,y);return-D}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 M=c(new Date(m),p);return w===M?w:Math.max(w,M)}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})(u0,u0.exports);var Ds=u0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(eD),r=a(Ds);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})(s0,s0.exports);var nD=s0.exports,h0={exports:{}},f0={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})(f0,f0.exports);var _2=f0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=i(to),r=i(x2),a=i(Ds),o=i(_2);function i(D){return D&&D.__esModule?D:{default:D}}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(D,x){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(D===null)return new Date(NaN);var C=x||{},A=C.additionalDigits==null?u:(0,n.default)(C.additionalDigits);if(A!==2&&A!==1&&A!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(D instanceof Date||typeof D=="object"&&Object.prototype.toString.call(D)==="[object Date]")return new Date(D.getTime());if(typeof D=="number"||Object.prototype.toString.call(D)==="[object Number]")return new Date(D);if(!(typeof D=="string"||Object.prototype.toString.call(D)==="[object String]"))return new Date(NaN);var T=h(D),N=f(T.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(T.time&&(ye=y(T.time),isNaN(ye)))return new Date(NaN);if(T.timeZone||C.timeZone){if(_e=(0,a.default)(T.timeZone||C.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(D){var x={},C=c.dateTimePattern.exec(D),A;if(C?(x.date=C[1],A=C[3]):(C=c.datePattern.exec(D),C?(x.date=C[1],A=C[2]):(x.date=null,A=D)),A){var T=c.timeZone.exec(A);T?(x.time=A.replace(T[1],""),x.timeZone=T[1].trim()):x.time=A}return x}function f(D,x){var C=c.YYY[x],A=c.YYYYY[x],T;if(T=c.YYYY.exec(D)||A.exec(D),T){var N=T[1];return{year:parseInt(N,10),restDateString:D.slice(N.length)}}if(T=c.YY.exec(D)||C.exec(D),T){var ee=T[1];return{year:parseInt(ee,10)*100,restDateString:D.slice(ee.length)}}return{year:null}}function g(D,x){if(x===null)return null;var C,A,T,N;if(D.length===0)return A=new Date(0),A.setUTCFullYear(x),A;if(C=c.MM.exec(D),C)return A=new Date(0),T=parseInt(C[1],10)-1,w(x,T)?(A.setUTCFullYear(x,T),A):new Date(NaN);if(C=c.DDD.exec(D),C){A=new Date(0);var ee=parseInt(C[1],10);return M(x,ee)?(A.setUTCFullYear(x,0,ee),A):new Date(NaN)}if(C=c.MMDD.exec(D),C){A=new Date(0),T=parseInt(C[1],10)-1;var ae=parseInt(C[2],10);return w(x,T,ae)?(A.setUTCFullYear(x,T,ae),A):new Date(NaN)}if(C=c.Www.exec(D),C)return N=parseInt(C[1],10)-1,B(x,N)?v(x,N):new Date(NaN);if(C=c.WwwD.exec(D),C){N=parseInt(C[1],10)-1;var oe=parseInt(C[2],10)-1;return B(x,N,oe)?v(x,N,oe):new Date(NaN)}return null}function y(D){var x,C,A;if(x=c.HH.exec(D),x)return C=parseFloat(x[1].replace(",",".")),L(C)?C%24*s:NaN;if(x=c.HHMM.exec(D),x)return C=parseInt(x[1],10),A=parseFloat(x[2].replace(",",".")),L(C,A)?C%24*s+A*l:NaN;if(x=c.HHMMSS.exec(D),x){C=parseInt(x[1],10),A=parseInt(x[2],10);var T=parseFloat(x[3].replace(",","."));return L(C,A,T)?C%24*s+A*l+T*1e3:NaN}return null}function v(D,x,C){x=x||0,C=C||0;var A=new Date(0);A.setUTCFullYear(D,0,4);var T=A.getUTCDay()||7,N=x*7+C+1-T;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(D){return D%400===0||D%4===0&&D%100!==0}function w(D,x,C){if(x<0||x>11)return!1;if(C!=null){if(C<1)return!1;var A=m(D);if(A&&C>b[x]||!A&&C>p[x])return!1}return!0}function M(D,x){if(x<1)return!1;var C=m(D);return!(C&&x>366||!C&&x>365)}function B(D,x,C){return!(x<0||x>52||C!=null&&(C<0||C>6))}function L(D,x,C){return!(D!=null&&(D<0||D>=25)||x!=null&&(x<0||x>=60)||C!=null&&(C<0||C>=60))}e.exports=t.default})(h0,h0.exports);var zu=h0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=o(J_),r=o(nD),a=o(zu);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})(Dd,Dd.exports);var D2=Dd.exports,p0={exports:{}},m0={exports:{}},v0={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})(v0,v0.exports);var rD=v0.exports;(function(e,t){var n=St.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(rD);function a(o){return(0,r.default)({},o)}e.exports=t.default})(m0,m0.exports);var M2=m0.exports,g0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(Ds),r=a(zu);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})(g0,g0.exports);var T2=g0.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(M2),r=o(D2),a=o(T2);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})(p0,p0.exports);var aD=p0.exports,y0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ds);function r(o){return o&&o.__esModule?o:{default:o}}function a(o,i){return-(0,n.default)(o,i)}e.exports=t.default})(y0,y0.exports);var oD=y0.exports,b0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(M2),r=s(zu),a=s(_2),o=s(Ds),i=s(S2);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})(b0,b0.exports);var iD=b0.exports,_c={format:D2,formatInTimeZone:aD,getTimezoneOffset:oD,toDate:zu,utcToZonedTime:T2,zonedTimeToUtc:iD};function cs(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 Hn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView:window}return e}function Nh(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ds(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lD(e){return e===Hn(e)||!wr(e)?Nh(e):sD(e)}function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function ga(e){return(ds(e)?e.ownerDocument:e.document).documentElement}function A2(e){return cs(ga(e)).left+Nh(e).scrollLeft}function Ms(e){return Hn(e).getComputedStyle(e)}function Lh(e){var t=Ms(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function O2(e,t,n){n===void 0&&(n=!1);var r=ga(t),a=cs(e),o={scrollLeft:0,scrollTop:0},i={x:0,y:0};return n||((Zr(t)!=="body"||Lh(r))&&(o=lD(t)),wr(t)?(i=cs(t),i.x+=t.clientLeft,i.y+=t.clientTop):r&&(i.x=A2(r))),{x:a.left+o.scrollLeft-i.x,y:a.top+o.scrollTop-i.y,width:a.width,height:a.height}}function Rh(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function P2(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ga(e)}function I2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:wr(e)&&Lh(e)?e:I2(P2(e))}function ji(e,t){t===void 0&&(t=[]);var n=I2(e),r=Zr(n)==="body",a=Hn(n),o=r?[a].concat(a.visualViewport||[],Lh(n)?n:[]):n,i=t.concat(o);return r?i:i.concat(ji(P2(o)))}function uD(e){return["table","td","th"].indexOf(Zr(e))>=0}function $p(e){return!wr(e)||Ms(e).position==="fixed"?null:e.offsetParent}function Ts(e){for(var t=Hn(e),n=$p(e);n&&uD(n);)n=$p(n);return n&&Zr(n)==="body"&&Ms(n).position==="static"?t:n||t}var Bn="top",qn="bottom",Qn="right",Nn="left",$h="auto",As=[Bn,qn,Qn,Nn],Uo="start",Hh="end",cD="clippingParents",B2="viewport",wi="popper",dD="reference",Hp=As.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Hh])},[]),N2=[].concat(As,[$h]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Hh])},[]),hD="beforeRead",fD="read",pD="afterRead",mD="beforeMain",vD="main",gD="afterMain",yD="beforeWrite",bD="write",wD="afterWrite",kD=[hD,fD,pD,mD,vD,gD,yD,bD,wD];function CD(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 ED(e){var t=CD(e);return kD.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function xD(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 SD(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 Fp={placement:"bottom",modifiers:[],strategy:"absolute"};function zp(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function L2(e){var t=e.reference,n=e.element,r=e.placement,a=r?dr(r):null,o=r?hs(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 Nn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?Fh(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 Hh:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function TD(e){var t=e.state,n=e.name;t.modifiersData[n]=L2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const AD={name:"popperOffsets",enabled:!0,phase:"read",fn:TD,data:{}};var OD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PD(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 jp(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=PD(o),c=u.x,d=u.y,h=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),g=Nn,y=Bn,v=window;if(l){var p=Ts(n);p===Hn(n)&&(p=ga(n)),a===Bn&&(y=qn,d-=p.clientHeight-r.height,d*=s?1:-1),a===Nn&&(g=Qn,c-=p.clientWidth-r.width,c*=s?1:-1)}var b=Object.assign({position:i},l&&OD);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 ID(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,{},jp(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,{},jp(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 BD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ID,data:{}};function ND(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 LD(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 RD={name:"applyStyles",enabled:!0,phase:"write",fn:ND,effect:LD,requires:["computeStyles"]};function $D(e,t,n){var r=dr(e),a=[Nn,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,[Nn,Qn].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function HD(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=N2.reduce(function(c,d){return c[d]=$D(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 FD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HD};var zD={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return zD[t]})}var jD={start:"end",end:"start"};function Up(e){return e.replace(/start|end/g,function(t){return jD[t]})}function UD(e){var t=Hn(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 ZD(e){var t=Hn(e),n=Nh(e),r=O2(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 Ys(e){return parseFloat(e)||0}function YD(e){var t=wr(e)?Ms(e):{};return{top:Ys(t.borderTopWidth),right:Ys(t.borderRightWidth),bottom:Ys(t.borderBottomWidth),left:Ys(t.borderLeftWidth)}}function VD(e){var t=Hn(e),n=YD(e),r=Zr(e)==="html",a=A2(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 R2(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 w0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zp(e,t){return t===B2?w0(UD(e)):wr(t)?cs(t):w0(ZD(ga(e)))}function KD(e){var t=ji(e),n=["absolute","fixed"].indexOf(Ms(e).position)>=0,r=n&&wr(e)?Ts(e):e;return ds(r)?t.filter(function(a){return ds(a)&&R2(a,r)}):[]}function GD(e,t,n){var r=t==="clippingParents"?KD(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(s,l){var u=Zp(e,l),c=VD(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},Zp(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 $2(){return{top:0,right:0,bottom:0,left:0}}function H2(e){return Object.assign({},$2(),{},e)}function F2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function fs(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?cD:o,s=n.rootBoundary,l=s===void 0?B2:s,u=n.elementContext,c=u===void 0?wi:u,d=n.altBoundary,h=d===void 0?!1:d,f=n.padding,g=f===void 0?0:f,y=H2(typeof g!="number"?g:F2(g,As)),v=c===wi?dD:wi,p=e.elements.reference,b=e.rects.popper,m=e.elements[h?v:c],w=GD(ds(m)?m:m.contextElement||ga(e.elements.popper),i,l),M=cs(p),B=L2({reference:M,element:b,strategy:"absolute",placement:a}),L=w0(Object.assign({},b,{},B)),D=c===wi?L:M,x={top:w.top-D.top+y.top,bottom:D.bottom-w.bottom+y.bottom,left:w.left-D.left+y.left,right:D.right-w.right+y.right},C=e.modifiersData.offset;if(c===wi&&C){var A=C[a];Object.keys(x).forEach(function(T){var N=[Qn,qn].indexOf(T)>=0?1:-1,ee=[Bn,qn].indexOf(T)>=0?"y":"x";x[T]+=A[ee]*N})}return x}function WD(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?N2:l,c=hs(r),d=(c?s?Hp:Hp.filter(function(f){return hs(f)===c}):As).filter(function(f){return u.indexOf(f)>=0}),h=d.reduce(function(f,g){return f[g]=fs(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 qD(e){if(dr(e)===$h)return[];var t=dl(e);return[Up(e),t,Up(t)]}function QD(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?[dl(v)]:qD(v)),w=[v].concat(m).reduce(function($e,De){return $e.concat(dr(De)===$h?WD(t,{placement:De,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):De)},[]),M=t.rects.reference,B=t.rects.popper,L=new Map,D=!0,x=w[0],C=0;C=0,ae=ee?"width":"height",oe=fs(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),Q=ee?N?Qn:Nn:N?qn:Bn;M[ae]>B[ae]&&(Q=dl(Q));var ye=dl(Q),_e=[];if(o&&_e.push(oe[T]<=0),s&&_e.push(oe[Q]<=0,oe[ye]<=0),_e.every(function($e){return $e})){x=A,D=!1;break}L.set(A,_e)}if(D)for(var Re=g?3:1,Ze=function($e){var De=w.find(function(Ue){var U=L.get(Ue);if(U)return U.slice(0,$e).every(function(R){return R})});if(De)return x=De,"break"},ze=Re;ze>0;ze--){var fe=Ze(ze);if(fe==="break")break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}const XD={name:"flip",enabled:!0,phase:"main",fn:QD,requiresIfExists:["offset"],data:{_skip:!1}};function JD(e){return e==="x"?"y":"x"}function hl(e,t,n){return Math.max(e,Math.min(t,n))}function eM(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=fs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=dr(t.placement),b=hs(t.placement),m=!b,w=Fh(p),M=JD(w),B=t.modifiersData.popperOffsets,L=t.rects.reference,D=t.rects.popper,x=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C={x:0,y:0};if(B){if(o){var A=w==="y"?Bn:Nn,T=w==="y"?qn:Qn,N=w==="y"?"height":"width",ee=B[w],ae=B[w]+v[A],oe=B[w]-v[T],Q=f?-D[N]/2:0,ye=b===Uo?L[N]:D[N],_e=b===Uo?-D[N]:-L[N],Re=t.elements.arrow,Ze=f&&Re?Rh(Re):{width:0,height:0},ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$2(),fe=ze[A],$e=ze[T],De=hl(0,L[N],Ze[N]),Ue=m?L[N]/2-Q-De-fe-x:ye-De-fe-x,U=m?-L[N]/2+Q+De+$e+x:_e+De+$e+x,R=t.elements.arrow&&Ts(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=B[w]+Ue-H-K,E=B[w]+U-H,_=hl(f?Math.min(ae,te):ae,ee,f?Math.max(oe,E):oe);B[w]=_,C[w]=_-ee}if(s){var P=w==="x"?Bn:Nn,Z=w==="x"?qn:Qn,Y=B[M],W=Y+v[P],ce=Y-v[Z],le=hl(W,Y,ce);B[M]=le,C[M]=le-Y}t.modifiersData[r]=C}}const tM={name:"preventOverflow",enabled:!0,phase:"main",fn:eM,requiresIfExists:["offset"]};function nM(e){var t,n=e.state,r=e.name,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=dr(n.placement),s=Fh(i),l=[Nn,Qn].indexOf(i)>=0,u=l?"height":"width";if(!(!a||!o)){var c=n.modifiersData[r+"#persistent"].padding,d=Rh(a),h=s==="y"?Bn:Nn,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=Ts(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],M=p/2-d[u]/2+b,B=hl(m,M,w),L=s;n.modifiersData[r]=(t={},t[L]=B,t.centerOffset=B-M,t)}}function rM(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(!R2(t.elements.popper,o))return;t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:H2(typeof s!="number"?s:F2(s,As))}}}const aM={name:"arrow",enabled:!0,phase:"main",fn:nM,effect:rM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yp(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 Vp(e){return[Bn,Qn,qn,Nn].some(function(t){return e[t]>=0})}function oM(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=fs(t,{elementContext:"reference"}),s=fs(t,{altBoundary:!0}),l=Yp(i,r),u=Yp(s,a,o),c=Vp(l),d=Vp(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 iM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oM};var sM=[MD,AD,BD,RD,FD,XD,tM,aM,iM],lM=_D({defaultModifiers:sM}),uM=Object.defineProperty,cM=Object.defineProperties,dM=Object.getOwnPropertyDescriptors,Yl=Object.getOwnPropertySymbols,z2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,Kp=(e,t,n)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))z2.call(t,n)&&Kp(e,n,t[n]);if(Yl)for(var n of Yl(t))j2.call(t,n)&&Kp(e,n,t[n]);return e},et=(e,t)=>cM(e,dM(t)),hM=(e,t)=>{var n={};for(var r in e)z2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yl)for(var r of Yl(e))t.indexOf(r)<0&&j2.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 k0(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 Gp(e,t){qt(2,arguments);var n=pr(t);return k0(e,n*12)}var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fM=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,U2=fM,pM=U2,mM=typeof self=="object"&&self&&self.Object===Object&&self,vM=pM||mM||Function("return this")(),kr=vM,gM=kr,yM=gM.Symbol,ni=yM,Wp=ni,Z2=Object.prototype,bM=Z2.hasOwnProperty,wM=Z2.toString,ki=Wp?Wp.toStringTag:void 0;function kM(e){var t=bM.call(e,ki),n=e[ki];try{e[ki]=void 0;var r=!0}catch{}var a=wM.call(e);return r&&(t?e[ki]=n:delete e[ki]),a}var CM=kM,EM=Object.prototype,xM=EM.toString;function SM(e){return xM.call(e)}var _M=SM,qp=ni,DM=CM,MM=_M,TM="[object Null]",AM="[object Undefined]",Qp=qp?qp.toStringTag:void 0;function OM(e){return e==null?e===void 0?AM:TM:Qp&&Qp in Object(e)?DM(e):MM(e)}var Cr=OM;function PM(e){return e!=null&&typeof e=="object"}var En=PM,IM=Cr,BM=En,NM="[object Boolean]";function LM(e){return e===!0||e===!1||BM(e)&&IM(e)==NM}var RM=LM,$M=Cr,HM=En,FM="[object Number]";function zM(e){return typeof e=="number"||HM(e)&&$M(e)==FM}var Ui=zM,jM=Array.isArray,xn=jM,UM=Cr,ZM=xn,YM=En,VM="[object String]";function KM(e){return typeof e=="string"||!ZM(e)&&YM(e)&&UM(e)==VM}var sa=KM;function GM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fn=GM,WM=Cr,qM=Fn,QM="[object AsyncFunction]",XM="[object Function]",JM="[object GeneratorFunction]",eT="[object Proxy]";function tT(e){if(!qM(e))return!1;var t=WM(e);return t==XM||t==JM||t==QM||t==eT}var Br=tT,nT=9007199254740991;function rT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nT}var zh=rT,aT=Br,oT=zh;function iT(e){return e!=null&&oT(e.length)&&!aT(e)}var Os=iT,sT=Os,lT=En;function uT(e){return lT(e)&&sT(e)}var hn=uT;function cT(e){return e===void 0}var dT=cT,hT=Cr,fT=En,pT="[object Date]";function mT(e){return fT(e)&&hT(e)==pT}var vT=mT;function gT(e){return function(t){return e(t)}}var ju=gT,Zo={exports:{}};(function(e,t){var n=U2,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 yT=vT,bT=ju,Xp=Zo.exports,Jp=Xp&&Xp.isDate,wT=Jp?bT(Jp):yT,kT=wT;function CT(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var ET=CT,xT=Cr,ST=En,_T="[object Symbol]";function DT(e){return typeof e=="symbol"||ST(e)&&xT(e)==_T}var Uu=DT,e1=Fn,MT=Uu,t1=0/0,TT=/^\s+|\s+$/g,AT=/^[-+]0x[0-9a-f]+$/i,OT=/^0b[01]+$/i,PT=/^0o[0-7]+$/i,IT=parseInt;function BT(e){if(typeof e=="number")return e;if(MT(e))return t1;if(e1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=e1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TT,"");var n=OT.test(e);return n||PT.test(e)?IT(e.slice(2),n?2:8):AT.test(e)?t1:+e}var NT=BT,LT=ET,Dc=NT;function RT(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Dc(n),n=n===n?n:0),t!==void 0&&(t=Dc(t),t=t===t?t:0),LT(Dc(e),t,n)}var $T=RT,HT=xn,FT=Uu,zT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jT=/^\w*$/;function UT(e,t){if(HT(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||FT(e)?!0:jT.test(e)||!zT.test(e)||t!=null&&e in Object(t)}var jh=UT,ZT=kr,YT=ZT["__core-js_shared__"],VT=YT,Mc=VT,n1=function(){var e=/[^.]+$/.exec(Mc&&Mc.keys&&Mc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KT(e){return!!n1&&n1 in e}var GT=KT,WT=Function.prototype,qT=WT.toString;function QT(e){if(e!=null){try{return qT.call(e)}catch{}try{return e+""}catch{}}return""}var Y2=QT,XT=Br,JT=GT,eA=Fn,tA=Y2,nA=/[\\^$.*+?()[\]{}|]/g,rA=/^\[object .+?Constructor\]$/,aA=Function.prototype,oA=Object.prototype,iA=aA.toString,sA=oA.hasOwnProperty,lA=RegExp("^"+iA.call(sA).replace(nA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uA(e){if(!eA(e)||JT(e))return!1;var t=XT(e)?lA:rA;return t.test(tA(e))}var cA=uA;function dA(e,t){return e==null?void 0:e[t]}var hA=dA,fA=cA,pA=hA;function mA(e,t){var n=pA(e,t);return fA(n)?n:void 0}var ro=mA,vA=ro,gA=vA(Object,"create"),Zu=gA,r1=Zu;function yA(){this.__data__=r1?r1(null):{},this.size=0}var bA=yA;function wA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kA=wA,CA=Zu,EA="__lodash_hash_undefined__",xA=Object.prototype,SA=xA.hasOwnProperty;function _A(e){var t=this.__data__;if(CA){var n=t[e];return n===EA?void 0:n}return SA.call(t,e)?t[e]:void 0}var DA=_A,MA=Zu,TA=Object.prototype,AA=TA.hasOwnProperty;function OA(e){var t=this.__data__;return MA?t[e]!==void 0:AA.call(t,e)}var PA=OA,IA=Zu,BA="__lodash_hash_undefined__";function NA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=IA&&t===void 0?BA:t,this}var LA=NA,RA=bA,$A=kA,HA=DA,FA=PA,zA=LA;function ri(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var aO=rO,oO=Yu;function iO(e,t){var n=this.__data__,r=oO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sO=iO,lO=ZA,uO=XA,cO=tO,dO=aO,hO=sO;function oi(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&YB?new zB:void 0;for(o.set(e,t),o.set(t,e);++d0){if(++t>=qR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e$=JR,t$=WR,n$=e$,r$=n$(t$),y5=r$,a$=Xh,o$=g5,i$=y5;function s$(e,t){return i$(o$(e,t,a$),e+"")}var Jh=s$,l$=ai,u$=Os,c$=qu,d$=Fn;function h$(e,t,n){if(!d$(n))return!1;var r=typeof t;return(r=="number"?u$(n)&&c$(t,n.length):r=="string"&&t in n)?l$(n[t],e):!1}var ef=h$;function f$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var p$=f$,m$=Fn,v$=Wh,g$=p$,y$=Object.prototype,b$=y$.hasOwnProperty;function w$(e){if(!m$(e))return g$(e);var t=v$(e),n=[];for(var r in e)r=="constructor"&&(t||!b$.call(e,r))||n.push(r);return n}var k$=w$,C$=X2,E$=k$,x$=Os;function S$(e){return x$(e)?C$(e,!0):E$(e)}var hi=S$,_$=Jh,D$=ai,M$=ef,T$=hi,b5=Object.prototype,A$=b5.hasOwnProperty,O$=_$(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&M$(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&&BH(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r0&&n(s)?t>1?A5(s,t-1,n,r,a):oF(a,s):r||(a[a.length]=s)}return a}var sF=A5,lF=sF;function uF(e){var t=e==null?0:e.length;return t?lF(e,1):[]}var cF=uF,dF=cF,hF=g5,fF=y5;function pF(e){return fF(hF(e,void 0,dF),e+"")}var O5=pF,mF=eF,vF=O5,gF=vF(function(e,t){return e==null?{}:mF(e,t)}),yF=gF;function bF(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}),cU(e,fU(e),n),r&&(n=sU(n,pU|mU|vU,dU));for(var a=t.length;a--;)lU(n,t[a]);return n}),D0=gU,yU=Object.prototype,bU=yU.hasOwnProperty;function wU(e,t){return e!=null&&bU.call(e,t)}var kU=wU,CU=kU,EU=f5;function xU(e,t){return e!=null&&EU(e,t,CU)}var R5=xU,SU=Os;function _U(e,t){return function(n,r){if(n==null)return n;if(!SU(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=>kT(e)&&!isNaN(e.getTime()),In=e=>jU(e)==="Object",af=R5,M0=(e,t)=>H5(t,n=>R5(e,n)),UU=H5,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},wn=e=>!!(e&&e.month&&e.year),Mi=(e,t)=>!wn(e)||!wn(t)?!1:e.year===t.year?e.month!wn(e)||!wn(t)?!1:e.year===t.year?e.month>t.month:e.year>t.year,F5=(e,t,n)=>(e||!1)&&!Mi(e,t)&&!Yi(e,n),Oc=(e,t)=>!e&&t||e&&!t?!1:!e&&!t?!0:e.month===t.month&&e.year===t.year,Tr=({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}},YU=(e,t)=>{if(!wn(e)||!wn(t))return[];const n=[];for(;!Yi(e,t);)n.push(e),e=Tr(e,1);return n};function Pc(e,t){const n=da(e),r=da(t);return!n&&!r?!0:n!==r?!1:e.getTime()===t.getTime()}const An=e=>hn(e)&&e.length>0,G1=(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&&In(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)},Vi=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),z5=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Gl=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`};function VU(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 KU={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 GU(e,t,n,r,a,o){return k(),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 j5=pi(KU,[["render",GU]]);const T0={name:"Popover",emits:["before-show","after-show","before-hide","after-hide"],render(){return Te("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[Te(j5,{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?Te("div",{tabindex:-1,class:["vc-popover-content",`direction-${this.direction}`,this.contentClass],style:this.contentStyle},[this.content,Te("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 Br(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||!Vi(this.popoverEl,e.relatedTarget))&&(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(e){!this.$refs.popover||!this.ref||Vi(this.popoverEl,e.target)||Vi(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,D0(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,D0(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=lM(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)}}},WU={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))}}},qU=["base","start","end","startEnd"],QU=["class","contentClass","style","contentStyle","color","fillMode"],XU={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 W1{constructor(t){Object.assign(this,XU,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(In(t))M0(t,qU)?a=we({},t):a={base:we({},t),start:we({},t),end:we({},t)};else return null;return Zi(a,{start:a.startEnd,end:a.startEnd},o),fl(a).forEach(([i,s])=>{let l=r;s===!0||sa(s)?(l=sa(s)?s:l,a[i]={color:l}):In(s)&&(M0(s,QU)?a[i]=we({},s):a[i]={}),af(a,`${i}.color`)||$P(a,`${i}.color`,l)}),a}normalizeHighlight(t){const n=this.normalizeAttr({config:t,type:"highlight"});return fl(n).forEach(([r,a])=>{const o=Zi(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 fl(a).forEach(([o,i])=>{Zi(i,{isDark:this.isDark,color:this.color}),i.style=we(we({},r(i)),i.style)}),a}}var ml=6e4;function q1(e){return e.getTime()%ml}function Wl(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0,a=r?(ml+q1(t))%ml:q1(t);return n*ml+a}function JU(e,t){var n=rZ(t);return n.formatToParts?tZ(n,e):nZ(n,e)}var eZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function tZ(e,t){for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[o]=parseInt(n[a].value,10))}return r}function nZ(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 Ic={};function rZ(e){if(!Ic[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";Ic[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 Ic[e]}var Q1=36e5,aZ=6e4,Gs={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function X1(e,t){var n,r;if(n=Gs.timezoneZ.exec(e),n)return 0;var a;if(n=Gs.timezoneHH.exec(e),n)return a=parseInt(n[2],10),J1()?(r=a*Q1,n[1]==="+"?-r:r):NaN;if(n=Gs.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return J1(a,o)?(r=a*Q1+o*aZ,n[1]==="+"?-r:r):NaN}if(n=Gs.timezoneIANA.exec(e),n){var i=JU(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 J1(e,t){return!(t!=null&&(t<0||t>59))}var Bc=36e5,em=6e4,oZ=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 tm(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?oZ: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=iZ(e),o=sZ(a.date,r),i=o.year,s=o.restDateString,l=lZ(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=uZ(a.time),isNaN(c)))return new Date(NaN);if(a.timezone||n.timeZone){if(d=X1(a.timezone||n.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN);if(d=X1(a.timezone||n.timeZone,new Date(u+c+d)),isNaN(d))return new Date(NaN)}else d=Wl(new Date(u+c)),d=Wl(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function iZ(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 sZ(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 lZ(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,rm(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 hZ(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 rm(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,am(t,o)?nm(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 am(t,o,l)?nm(t,o,l):new Date(NaN)}return null}function uZ(e){var t,n,r;if(t=Yt.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Nc(n)?n%24*Bc:NaN;if(t=Yt.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Nc(n,r)?n%24*Bc+r*em: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 Nc(n,r,a)?n%24*Bc+r*em+a*1e3:NaN}return null}function nm(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 cZ=[31,28,31,30,31,30,31,31,30,31,30,31],dZ=[31,29,31,30,31,30,31,31,30,31,30,31];function U5(e){return e%400===0||e%4===0&&e%100!==0}function rm(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=U5(e);if(r&&n>dZ[t]||!r&&n>cZ[t])return!1}return!0}function hZ(e,t){if(t<1)return!1;var n=U5(e);return!(n&&t>366||!n&&t>365)}function am(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Nc(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 pZ(e){qt(1,arguments);var t=fZ(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=ql(n);return r}var mZ=6048e5;function vZ(e){qt(1,arguments);var t=Yr(e),n=ql(t).getTime()-pZ(t).getTime();return Math.round(n/mZ)+1}function gZ(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 yZ(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=gZ(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 bZ=6048e5;function wZ(e,t){qt(1,arguments);var n=Yr(e),r=Za(n,t).getTime()-yZ(n,t).getTime();return Math.round(r/bZ)+1}var kZ=6048e5;function CZ(e,t,n){qt(2,arguments);var r=Za(e,n),a=Za(t,n),o=r.getTime()-Wl(r),i=a.getTime()-Wl(a);return Math.round((o-i)/kZ)}function EZ(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 xZ(e){qt(1,arguments);var t=Yr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function SZ(e,t){return qt(1,arguments),CZ(EZ(e),xZ(e),t)+1}const _Z=24*60*60*1e3;let Ar=class Un{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,!In(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=G1(t,{},Un.patternProps);if(s.assigned&&(this.on={and:s.target}),t.on){const l=(hn(t.on)?t.on:[t.on]).map(u=>{if(Br(u))return u;const c=G1(u,{},Un.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 Un(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)/_Z)}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(Un.patterns).map(t=>({name:t,validate:Un.patterns[t].validate}))}static testConfig(t,n,r){return Br(t)?t(n):In(t)?Object.keys(t).every(a=>Un.patterns[a].test(n,t[a],r)):null}iterateDatesInRange({start:t,end:n},r){if(!t||!n||!Br(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 Un(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&&!Un.testConfig(this.on.and,t,this)||this.on.or&&!this.on.or.some(n=>Un.testConfig(n,t,this))):!0}toRange(){return new Un({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 Ln={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"}};Ln.en=Ln["en-US"];Ln.es=Ln["es-ES"];Ln.no=Ln.nb;Ln.zh=Ln["zh-CN"];fl(Ln).forEach(([e,{dow:t,L:n}])=>{Ln[e]={id:e,firstDayOfWeek:t,masks:{L:n}}});const Qr={DATE_TIME:1,DATE:2,TIME:3},DZ={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},om=/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?/,MZ=/\d{3}/,TZ=/\d{4}/,Ci=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,AZ=/\[([^]*?)\]/gm,im=()=>{},sm=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substring(1).toLowerCase());~a&&(t.month=a)},OZ=["L","iso"],Qt=7,PZ=[31,28,31,30,31,30,31,31,30,31,30,31],IZ=[{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"}],lm={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+Ci.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Xr,im],W:[Ci,im],M:[Xr,(e,t)=>{e.month=t-1}],MMM:[Ci,sm("monthNamesShort")],MMMM:[Ci,sm("monthNames")],YY:[Xr,(e,t)=>{const n=+new Date().getFullYear().toString().substring(0,2);e.year=`${t>68?n-1:n}${t}`}],YYYY:[TZ,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.millisecond=t*100}],SS:[/\d{2}/,(e,t)=>{e.millisecond=t*10}],SSS:[MZ,(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:[Ci,(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 BZ(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sa(e)?r=e:af(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=In(e)?rf(e,i):i,e}class Ql{constructor(t,{locales:n=Ln,timezone:r}={}){const{id:a,firstDayOfWeek:o,masks:i}=BZ(t,n);this.id=a,this.daysInWeek=Qt,this.firstDayOfWeek=$T(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(AZ,(i,s)=>(r.push(s),"??"));const a=/Z$/.test(n)?"utc":this.timezone,o=this.getDateParts(t,a);return n=n.replace(om,i=>i in lm?lm[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(om,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(An(t)&&t||[sa(t)&&t||"YYYY-MM-DD"]).map(n=>OZ.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(Ui(t)?(a="number",r=new Date(+t)):sa(t)?(a="string",r=t?this.parse(t,i||"iso"):null):In(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)),yF(this.getDateParts(r),DZ[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(In(n)){const a=n.min||0,o=n.max||24;return a<=t&&o>=t}return n(t,r)}getHourOptions(t,n){return IZ.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 tm(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=tm(d,{timeZone:this.timezone})}else u=new Date(n,r-1,a,o,i,s,l);return(u-c)/6e4}toPage(t,n){return Ui(t)?Tr(n,t):sa(t)?this.getDateParts(this.normalizeDate(t)):da(t)?this.getDateParts(t):In(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:PZ[t-1],u=this.firstDayOfWeek-1,c=SZ(i,{weekStartsOn:u}),d=[],h=[];for(let f=0;f(ae,oe,Q,ye)=>this.normalizeDate({year:T,month:N,day:ee,hours:ae,minutes:oe,seconds:Q,milliseconds:ye});for(let T=1;T<=t;T++){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,M=n.month,B=n.year,d=!1,h=!0);const ae=A(B,M,y),oe={start:ae(0,0,0),end:ae(23,59,59,999)},Q=oe.start,ye=`${rt(B,4)}-${rt(M,2)}-${rt(y,2)}`,_e=N,Re=Qt-N,Ze=u[T-1],ze=l[T-1],fe=y===D&&M===x&&B===C,$e=h&&y===1,De=h&&y===n.days,Ue=T===1,U=T===t,R=N===1,K=N===Qt;o.push({id:ye,label:y.toString(),ariaLabel:g.format(new Date(B,M-1,y)),day:y,dayFromEnd:v,weekday:ee,weekdayPosition:_e,weekdayPositionFromEnd:Re,weekdayOrdinal:p,weekdayOrdinalFromEnd:b,week:m,weekFromEnd:w,weeknumber:Ze,isoWeeknumber:ze,month:M,year:B,dateFromTime:ae,date:Q,range:oe,isToday:fe,isFirstDay:$e,isLastDay:De,inMonth:h,inPrevMonth:d,inNextMonth:f,onTop:Ue,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":De,"in-month":h,"in-prev-month":d,"in-next-month":f,"on-top":Ue,"on-bottom":U,"on-left":R,"on-right":K}]}),h&&De?(h=!1,f=!0,y=1,v=a.days,p=1,b=Math.floor((a.days-y)/Qt+1),m=1,w=a.weeks,M=a.month,B=a.year):(y++,v--,p=Math.floor((y-1)/Qt+1),b=Math.floor((n.days-y)/Qt+1))}m++,w--}return o}}class Z5{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=dT(t)?Gl():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=!!An(this.dates),this.excludeDates=y.normalizeDates(u,this.dateOpts),this.hasExcludeDates=!!An(this.excludeDates),this.excludeMode=c||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new Ar({},this.dateOpts)),this.hasDates=!0),this.isComplex=UU(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 NZ=300,LZ=60,RZ=80;var $Z={maxSwipeTime:NZ,minHorizontalSwipeDistance:LZ,maxVerticalSwipeDistance:RZ};const HZ="MMMM YYYY",FZ="W",zZ="MMM",jZ=["L","YYYY-MM-DD","YYYY/MM/DD"],UZ=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],ZZ=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],YZ=["h:mm A"],VZ=["HH:mm"],KZ="WWW, MMM D, YYYY",GZ=["L","YYYY-MM-DD","YYYY/MM/DD"],WZ="iso",qZ="YYYY-MM-DDTHH:mm:ss.SSSZ";var QZ={title:HZ,weekdays:FZ,navMonths:zZ,input:jZ,inputDateTime:UZ,inputDateTime24hr:ZZ,inputTime:YZ,inputTime24hr:VZ,dayPopover:KZ,data:GZ,model:WZ,iso:qZ};const XZ="640px",JZ="768px",eY="1024px",tY="1280px";var nY={sm:XZ,md:JZ,lg:eY,xl:tY};const rY={componentPrefix:"v",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:$Z,masks:QZ,screens:nY,locales:Ln,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}},A0=zr(rY),aY=I(()=>xR(A0.locales,e=>(e.masks=rf(e.masks,A0.masks),e))),ha=e=>window&&af(window.__vcalendar__,e)?ps(window.__vcalendar__,e):ps(A0,e),oY={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 W1?this.theme:new W1({color:this.color,isDark:this.isDark})},$locale(){if(this.locale instanceof Ql)return this.locale;const e=In(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new Ql(e,{locales:aY.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 Z5({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)}}},iY={methods:{safeSlot(e,t,n=null){return Br(this.$slots[e])?this.$slots[e](t):n}}},Ju=WU,Y5=oY,of=iY,sY={name:"PopoverRow",mixins:[Ju],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}}},lY={class:"vc-day-popover-row"},uY={key:0,class:"vc-day-popover-row-indicator"},cY={class:"vc-day-popover-row-content"};function dY(e,t,n,r,a,o){return k(),S("div",lY,[o.indicator?(k(),S("div",uY,[O("span",{style:Et(o.indicator.style),class:q(o.indicator.class)},null,6)])):$("",!0),O("div",cY,[F(e.$slots,"default",{},()=>[J(V(n.attribute.popover?n.attribute.popover.label:"No content provided"),1)])])])}var hY=pi(sY,[["render",dY]]);const Ws="26px",fY="0 0 32 32",pY={"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"}},mY={props:["name"],data(){return{width:Ws,height:Ws,viewBox:fY,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const e=pY[this.name];e&&(this.width=e.width||Ws,this.height=e.height||Ws,this.viewBox=e.viewBox,this.path=e.path)}}},vY=["width","height","viewBox"],gY=["d"];function yY(e,t,n,r,a,o){return k(),S("svg",{class:"vc-svg-icon",width:a.width,height:a.height,viewBox:a.viewBox},[O("path",{d:a.path},null,8,gY)],8,vY)}var V5=pi(mY,[["render",yY]]);const Lc=12,bY={name:"CalendarNav",emits:["input"],components:{SvgIcon:V5},mixins:[Ju],props:{value:{type:Object,default:()=>({month:0,year:0})},validator:{type:Function,default:()=>()=>!0}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:z5}},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 $5(this.yearItems.map(e=>e.year))},lastYear(){return ms(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/Lc)},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*Lc,a=r+Lc,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++}}},wY={class:"vc-nav-container",ref:"navContainer"},kY={class:"vc-nav-header"},CY=["tabindex"],EY=["tabindex"],xY={class:"vc-nav-items"},SY=["data-id","aria-label","tabindex","onClick","onKeydown"];function _Y(e,t,n,r,a,o){const i=Gn("svg-icon");return k(),S("div",wY,[O("div",kY,[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,CY),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,EY)]),O("div",xY,[(k(!0),S(Ae,null,ot(o.activeItems,s=>(k(),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,SY))),128))])],512)}var DY=pi(bY,[["render",_Y]]);function O0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function P0(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function K5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function MY(e){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:e}))}function Xl(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,K5(e),c.stopPropagation())},[u.mousemove](c){e.ref=c.currentTarget,i||(i=!0,(r||a)&&O0(e))},[u.mouseleave](c){e.ref=c.target,i&&(i=!1,(r||a&&!s)&&P0(e))},[u.focusin](c){e.ref=c.currentTarget,s||(s=!0,(o||a)&&O0(e))},[u.focusout](c){e.ref=c.currentTarget,s&&!Vi(e.ref,c.relatedTarget)&&(s=!1,(o||a&&!i)&&P0(e))}}}const TY={name:"CalendarDay",emits:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown"],mixins:[Ju,of],inheritAttrs:!1,render(){const e=()=>this.hasBackgrounds&&Te("div",{class:"vc-highlights vc-day-layer"},this.backgrounds.map(({key:a,wrapperClass:o,class:i,style:s})=>Te("div",{key:a,class:o},[Te("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})||Te("span",et(we(et(we({},this.dayContentProps),{class:this.dayContentClass,style:this.dayContentStyle}),this.dayContentEvents),{ref:"content"}),[this.day.label]),n=()=>this.hasDots&&Te("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Te("div",{class:"vc-dots"},this.dots.map(({key:a,class:o,style:i})=>Te("span",{key:a,class:o,style:i})))]),r=()=>this.hasBars&&Te("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Te("div",{class:"vc-bars"},this.bars.map(({key:a,class:o,style:i})=>Te("span",{key:a,class:o,style:i})))]);return Te("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!!An(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!An(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!An(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!An(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},ps(ms(this.content),"class")||""]},dayContentStyle(){return ps(ms(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=Zi({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={};An(this.popovers)&&(e=Xl(Zi({id:this.dayPopoverId,data:this.day,isRenderFn:!0},...this.popovers))),this.dayContentEvents=ZU({onClick:this.click,onMouseenter:this.mouseenter,onMouseleave:this.mouseleave,onFocusin:this.focusin,onFocusout:this.focusout,onKeydown:this.keydown},e),MY({id:this.dayPopoverId,data:this.day})}}},AY={name:"CalendarPane",emits:["update:page","weeknumberclick"],mixins:[Ju,of],inheritAttrs:!1,render(){const e=this.safeSlot("header",this.page)||Te("div",{class:`vc-header align-${this.titlePosition}`},[Te("div",we({class:"vc-title"},this.navPopoverEvents),[this.safeSlot("header-title",this.page,this.page.title)])]),t=this.weekdayLabels.map((l,u)=>Te("div",{key:u+1,class:"vc-weekday"},[l])),n=this.showWeeknumbers_.startsWith("left"),r=this.showWeeknumbers_.startsWith("right");n?t.unshift(Te("div",{class:"vc-weekday"})):r&&t.push(Te("div",{class:"vc-weekday"}));const a=l=>Te("div",{class:["vc-weeknumber"]},[Te("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(Te(TY,et(we({},this.$attrs),{day:l}),this.$slots)),r&&c===i-1&&o.push(a(l[this.weeknumberKey]))});const s=Te("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":n,"is-right":r}},[t,o]);return Te("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?"":RM(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 Xl({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 OY{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 An(t)&&t.forEach((l,u)=>{if(!l||!l.dates)return;const c=l.key?l.key.toString():u.toString(),d=l.order||0,h=VU(JSON.stringify(l));let f=this.map[c];!n&&f&&f.hashcode===h?s.delete(c):(f=new Z5(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 PY=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Br(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)}},IY={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 Te(AY,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=>z5(l,o),s=a?!this.canMovePrev:!this.canMoveNext;return Te("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}))||Te(V5,{name:a?"left-arrow":"right-arrow"})])},n=()=>Te(T0,{id:this.sharedState.navPopoverId,contentClass:"vc-nav-popover-container",ref:"navPopover"},{default:({data:a})=>{const{position:o,page:i}=a;return Te(DY,{value:i,position:o,validator:s=>this.canMove(s,{position:o}),onInput:s=>this.move(s)},we({},this.$slots))}}),r=()=>Te(T0,{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},Te("div",[l.dayPopover&&Te("div",{class:["vc-day-popover-header"]},[c]),s.map(d=>Te(hY,{key:d.key,attribute:d}))]))}});return Te("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(),Te("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[Te(j5,{name:this.transitionName,"on-before-enter":()=>{this.inTransition=!0},"on-after-enter":()=>{this.inTransition=!1}},{default:()=>Te("div",et(we({},this.$attrs),{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},key:this.firstPage?this.firstPage.key:""}),e)}),Te("div",{class:[`vc-arrows-container title-${this.titlePosition}`]},[t(!0),t(!1)]),this.$slots.footer&&this.$slots.footer()]),r()])},mixins:[Y5,of],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:Gl(),dayPopoverId:Gl(),theme:{},masks:{},locale:{}}}},computed:{firstPage(){return $5(this.pages)},lastPage(){return ms(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];Oc(e,t)||this.refreshPages()},toPage(e){const t=this.pages&&this.pages[this.pages.length-1];Oc(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=PY(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(Ui(e)&&(r=1),!r)if(Mi(n,this.firstPage))r=-1;else if(Yi(n,this.lastPage))r=1;else return!0;return Object.assign(t,this.getTargetPageRange(n,{position:r,force:!0})),YU(t.fromPage,t.toPage).some(a=>F5(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&&!Oc(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(In(e)){const{month:i,year:s}=e,{from:l,to:u}=e;Ui(i)&&Ui(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 Yi(r,a)&&(o=Tr(r,-(this.pages.length-1))),Mi(o,n)&&(o=n),this.refreshPages(et(we({},t),{page:o}))},getTargetPageRange(e,{position:t,force:n}={}){let r=null,a=null;if(wn(e)){let o=0;t=+t,isNaN(t)||(o=t>0?1-t:-(this.count+t)),r=Tr(e,o)}else r=this.getDefaultInitialPage();return a=Tr(r,this.count-1),n||(Mi(r,this.minPage_)?r=this.minPage_:Yi(a,this.maxPage_)&&(r=Tr(this.maxPage_,1-this.count)),a=Tr(r,this.count-1)),{fromPage:r,toPage:a}},getDefaultInitialPage(){let e=this.fromPage||this.pageForDate(this.fromDate);if(!wn(e)){const t=this.toPage||this.pageForDate(this.toPage);wn(t)&&(e=Tr(t,1-this.count))}return wn(e)||(e=this.getPageForAttributes()),wn(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||!wn(e)||!wn(t))return"fade";const r=Mi(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 OY(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(e=[],t=[],n=[],r){An(e)&&e.forEach(a=>{a.days.forEach(o=>{let i=!1,s={};r?i=!0:M0(o.attributesMap,n)?(s=D0(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=Gp(r,-1):a=k0(r,-1);break}case"PageDown":{n.altKey?a=Gp(r,1):a=k0(r,1);break}}a&&(n.preventDefault(),this.focusDate(a).catch())}}},BY={inheritAttrs:!1,emits:["update:modelValue"],props:{options:Array,modelValue:null}},NY={class:"vc-select"},LY=["value"],RY=["value","disabled"],$Y=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 HY(e,t,n,r,a,o){return k(),S("div",NY,[O("select",Ge(e.$attrs,{value:n.modelValue,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.value))}),[(k(!0),S(Ae,null,ot(n.options,i=>(k(),S("option",{key:i.value,value:i.value,disabled:i.disabled},V(i.label),9,RY))),128))],16,LY),$Y])}var FY=pi(BY,[["render",HY]]);const zY=[{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"}],jY=[{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"}],UY={name:"TimePicker",components:{TimeSelect:FY},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 zY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},pmHourOptions(){return jY.filter(e=>this.hourOptions.some(t=>t.value===e.value))},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!An(this.amHourOptions)},pmDisabled(){return!An(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}))}}},ZY=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),YY={class:"vc-time-content"},VY={key:0,class:"vc-time-date"},KY={class:"vc-time-weekday"},GY={class:"vc-time-month"},WY={class:"vc-time-day"},qY={class:"vc-time-year"},QY={class:"vc-time-select"},XY=O("span",{style:{margin:"0 4px"}},":",-1),JY={key:0,class:"vc-am-pm"};function eV(e,t,n,r,a,o){const i=Gn("time-select");return k(),S("div",{class:q(["vc-time-picker",[{"vc-invalid":!n.modelValue.isValid,"vc-bordered":n.showBorder}]])},[ZY,O("div",YY,[o.date?(k(),S("div",VY,[O("span",KY,V(n.locale.format(o.date,"WWW")),1),O("span",GY,V(n.locale.format(o.date,"MMM")),1),O("span",WY,V(n.locale.format(o.date,"D")),1),O("span",qY,V(n.locale.format(o.date,"YYYY")),1)])):$("",!0),O("div",QY,[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"]),XY,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):(k(),S("div",JY,[O("button",{class:q({active:o.isAM,"vc-disabled":o.amDisabled}),onClick:t[2]||(t[2]=Tt(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]=Tt(s=>o.isAM=!1,["prevent"])),type:"button"}," PM ",2)]))])])],2)}var tV=pi(UY,[["render",eV]]);const um={type:"auto",mask:"iso",timeAdjust:""},nV=[um,um],qs={DATE:"date",DATE_TIME:"datetime",TIME:"time"},vn={NONE:0,START:1,END:2,BOTH:3},rV={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?Te(o,i):i},t=()=>{if(!this.dateParts)return null;const a=this.isRange?this.dateParts:[this.dateParts[0]];return Te("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 Te(tV,{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=()=>Te(IY,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?Te("div",{class:["vc-container",`vc-${this.$theme.color}`,{"vc-is-dark":this.$theme.isDark}]},e(t(),"div")):n();return this.$slots.default?Te("div",[this.$slots.default(this.slotArgs),Te(T0,{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:[Y5],props:{mode:{type:String,default:qs.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:Gl()}},computed:{isDate(){return this.mode.toLowerCase()===qs.DATE},isDateTime(){return this.mode.toLowerCase()===qs.DATE_TIME},isTime(){return this.mode.toLowerCase()===qs.TIME},isDragging(){return!!this.dragValue},modelConfig_(){return this.normalizeConfig(this.modelConfig,nV)},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},Xl(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:Xl}},popover_(){return rf(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,vn.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)&&!Vi(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?vn.NONE:vn.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:vn.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?vn.START:vn.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?vn.START:vn.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=hM(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=vn.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?In(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=vn.NONE){const{start:n,end:r}=e;if(n>r)switch(t){case vn.START:return{start:n,end:n};case vn.END:return{start:r,end:r};case vn.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:Pc(e.start,t.start)&&Pc(e.end,t.end)}return Pc(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={}){O0(et(we(we({ref:this.$el},this.popover_),e),{isInteractive:!0,id:this.datePickerPopoverId}))},hidePopover(e={}){P0(et(we(we({hideDelay:10},this.showPopover_),e),{id:this.datePickerPopoverId}))},togglePopover(e){K5(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&&!F5(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"))}}},aV=e=>e.every(t=>t.value!==void 0),oV=e=>{const t=[];return e.forEach(n=>t.push(n.value+"")),t},iV=e=>{const t=oV(e),n=new Set(t);return t.length===n.size},G5=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})),sV=e=>{const t=typeof e[0]=="string",n=G5(e),r=iV(n);return t?r&&aV(e):r},lV={},uV=ge({...lV,__name:"KSegmentedControl",props:{modelValue:{type:[String,Number,Boolean],required:!0},options:{type:Array,required:!0,validator:e=>!e.length||sV(e)},isDisabled:{type:Boolean,default:!1},allowPointerEvents:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(e,{emit:t}){const n=e,r=j(G5(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)=>(k(),S("div",{class:q(["k-segmented-control",{"allow-pointer-events":e.allowPointerEvents}])},[(k(!0),S(Ae,null,ot(r.value,u=>(k(),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))}}),W5=Ee(uV,[["__scopeId","data-v-f8d80387"]]),cV=["innerHTML"],dV={key:1,class:"range-display"},hV={key:3,class:"relative-periods-container"},fV={class:"timeframe-section-title"},pV={class:"timeframe-buttons"},mV={class:"datetime-picker-footer-container"},vV=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(xk).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=I(()=>a.mode!=="relative"),c=I(()=>{var D;return((D=a==null?void 0:a.timePeriods)==null?void 0:D.length)>0}),d=I(()=>v.tabName==="custom"||!c.value),h=I(()=>a.range||c.value?!v.selectedRange.start||!v.selectedRange.end:!v.selectedRange.start),f=I(()=>({width:a.width==="auto"||a.width.endsWith("%")||a.width.endsWith("px")?a.width:a.width+"px"})),g=I(()=>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=D=>{let x,C;D&&(D.start&&D.end?(x=new Date(D.start),C=new Date(D.end)):(x=new Date(Number(D)),C=0),v.selectedRange=v.previouslySelectedRange={start:x,end:C,timePeriodsKey:""})},b=D=>{v.selectedTimeframe=v.previouslySelectedTimeframe=D;const x=v.selectedTimeframe.start(),C=v.selectedTimeframe.end();v.selectedRange={start:new Date(x),end:new Date(C),timePeriodsKey:v.selectedTimeframe.key},v.fullRangeDisplay=w(v.selectedRange,!1)},m=()=>{var D;l.value="",v.abbreviatedDisplay=a.placeholder,v.fullRangeDisplay="",v.selectedRange={start:0,end:0,timePeriodsKey:""},c.value&&(v.selectedTimeframe=(D=a.timePeriods[0])==null?void 0:D.values[0]),a.range||a.mode==="relative"?(t("change",v.selectedRange),t("update:modelValue",v.selectedRange)):(t("change",""),t("update:modelValue",""))},w=(D,x)=>{const{start:C,end:A}=D;let T="PP hh:mm a";const N=_c.formatInTimeZone(C,y,"(z)");return!u.value&&c.value?T="PP hh:mm a":a.mode==="date"&&(T="PP"),a.range?x?`
${Sc(C,T)} - 
${_c.formatInTimeZone(A,y,T)} ${N}
`:`${Sc(C,T)} - ${_c.formatInTimeZone(A,y,T)} ${N}`:C?`${Sc(C,T)} ${N}`:""},M=async()=>{if(a.range||c.value)t("change",v.selectedRange),t("update:modelValue",v.selectedRange);else{const D=new Date(v.selectedRange.start);t("change",D),t("update:modelValue",D)}v.hidePopover=!0,B()},B=()=>{a.range&&c.value&&!d.value?v.abbreviatedDisplay=v.selectedTimeframe.display:v.abbreviatedDisplay=w(v.selectedRange,!0)},L=D=>D.charAt(0).toUpperCase()+D.slice(1);return Le(l,(D,x)=>{D!==void 0&&D!==x&&p(D)},{immediate:!0}),Le(()=>v.tabName,(D,x)=>{x!==void 0&&D==="relative"?b(v.previouslySelectedTimeframe):x!==void 0&&D==="custom"&&p(v.previouslySelectedRange)}),ft(()=>{if(a.modelValue)if("timePeriodsKey"in a.modelValue){v.tabName="relative";for(const D of a.timePeriods){const x=D.values.find(C=>C.key===a.modelValue.timePeriodsKey);if(x){b(x),B();break}}}else v.tabName="custom",p(a.modelValue),B()}),(D,x)=>(k(),S("div",{class:q(["k-datetime-picker",{"set-min-width":c.value}]),style:Et(f.value)},[G(ei,{"hide-caret":"","hide-popover":v.hidePopover,placement:"bottomStart","position-fixed":"",width:"auto",onOpened:x[5]||(x[5]=C=>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?(k(),se(Ie,{key:0,class:"calendar-icon",color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"calendar",size:he(xt)},null,8,["color","size"])):$("",!0),O("div",{class:"timepicker-display","data-testid":"k-datetime-picker-display",innerHTML:v.abbreviatedDisplay},null,8,cV)]),_:1},8,["class","style"])]),_:2},[v.hidePopover?void 0:{name:"content",fn:z(()=>[c.value&&u.value?(k(),se(W5,{key:0,modelValue:v.tabName,"onUpdate:modelValue":x[0]||(x[0]=C=>v.tabName=C),class:"datetime-picker-toggle","data-testid":"k-datetime-picker-toggle",options:[{label:"Relative",value:"relative"},{label:"Custom",value:"custom"}],onClick:x[1]||(x[1]=C=>v.tabName=C)},null,8,["modelValue"])):$("",!0),d.value?$("",!0):(k(),S("p",dV,V(v.fullRangeDisplay),1)),u.value&&d.value?(k(),se(he(rV),{key:2,modelValue:l.value,"onUpdate:modelValue":x[2]||(x[2]=C=>l.value=C),"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?(k(),S("div",hV,[(k(!0),S(Ae,null,ot(e.timePeriods,(C,A)=>(k(),S("div",{key:`section-${String(C.section||A)}`,class:"timeframe-section"},[O("div",fV,V(C.section),1),O("div",pV,[(k(!0),S(Ae,null,ot(C.values,(T,N)=>(k(),se(We,{key:`time-${N}`,appearance:"outline",class:q(["timeframe-btn",{"selected-option":T.key===v.selectedTimeframe.key}]),"data-testid":"select-timeframe-"+T.timeframeLength(),"is-rounded":!1,size:"medium",onClick:ee=>b(T)},{default:z(()=>[J(V(L(T.timeframeText)),1)]),_:2},1032,["class","data-testid","onClick"]))),128))])]))),128))])):$("",!0)]),key:"0"},v.hidePopover?void 0:{name:"footer",fn:z(()=>[O("div",mV,[e.clearButton?(k(),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]=C=>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]=C=>M())},{default:z(()=>[J(" Apply ")]),_:1},8,["disabled"])])]),key:"1"}]),1032,["hide-popover"])],6))}}),gV=["data-testid"],yV=["title"],q5=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=$6(),a=I(()=>{var h;return(h=n.item)!=null&&h.to?"link":typeof n.onClick<"u"||n.selectionMenuChild?"button":"default"}),o=I(()=>{var h;return((h=n.item)==null?void 0:h.label)||""}),i=I(()=>r?r.path:""),s=I(()=>{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=I(()=>{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=I(()=>({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)=>(k(),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,"-")}`},[(k(),se(va(d.value[c.value].tag),Ge({"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,yV)]),_:3},16,["onClick"]))],10,gV))}}),bV={class:"k-dropdown-list dropdown-list","data-testid":"k-dropdown-list"},wV=ge({__name:"KDropdownMenu",props:{appearance:{type:String,default:"menu",validator:e=>Sk.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=I(()=>r.disabledTooltip?ti:"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)=>(k(),S("div",{class:q(["k-dropdown k-dropdown-menu",{"selection-dropdown-menu":e.appearance==="selectionMenu"}])},[G(he(Lu),null,{default:z(({toggle:g,isToggled:y})=>[G(ei,Ge(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",bV,[F(h.$slots,"items",{closeDropdown:c,handleSelection:u,items:e.items},()=>[(k(!0),S(Ae,null,ot(e.items,(v,p)=>(k(),se(q5,Ge(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(()=>[(k(),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?(k(),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))}}),kV=Ee(wV,[["__scopeId","data-v-a29da198"]]),CV={class:"k-file-upload"},EV=["onClick"],xV=["onKeyup"],SV=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:$u},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=I(()=>n.testMode?"test-file-upload-id-1234":pa()),a=I(()=>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)=>(k(),S("div",CV,[e.label?(k(),se(Ur,Ge({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),(k(),se(Ss,{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"?(k(),se(Ie,{key:1,class:"image-upload-icon",color:e.iconColor,icon:e.icon,size:e.iconSize,onClick:Tt(d,["prevent"])},null,8,["color","icon","size","onClick"])):$("",!0),e.type==="image"?(k(),S("a",{key:2,class:"image-upload-description",href:"#",onClick:Tt(d,["prevent"])},V(l.value?l.value:e.placeholder),9,EV)):$("",!0),l.value&&e.removable?(k(),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(Ie,{icon:"close",size:"16"})]),_:1},8,["class","onKeyup"])):$("",!0),e.type==="file"?(k(),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"?(k(),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,xV)):$("",!0)]))}}),_V=Ee(SV,[["__scopeId","data-v-5a033b1f"]]),DV=["id"],MV=["onKeyup"],TV=["id"],AV=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=I(()=>"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(_d).reduce((y,v)=>(y[v]=g.getPropertyValue(_d[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: @@ -505,7 +505,7 @@ Kongponent Docs: https://kongponents.konghq.com/components/breadcrumbs.html`)),( * focus-trap-vue v3.3.1 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const AK={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},OK=ge({props:Object.assign({active:{type:Boolean,default:!0}},AK),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(e,{slots:t,emit:n}){let r;const a=j(null),o=I(()=>{const s=a.value;return s&&(s instanceof HTMLElement?s:s.$el)}),i=()=>r||(r=TK(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!==Cn);return!s||!s.length||s.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),s):$r(s[0],{ref:a})}}}}),PK=["aria-label"],IK={class:"k-modal-dialog modal-dialog"},BK={key:0,class:"close-button"},NK={class:"k-modal-content modal-content"},LK={key:0,class:"k-modal-header-image"},RK={class:"k-modal-footer modal-footer"},$K={class:"k-modal-action-buttons"},HK=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=>_k.includes(e)},content:{type:String,default:""},textAlign:{type:String,default:"center",validator:e=>Dk.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=I(()=>!!r["header-image"]),s=I(()=>n.dismissButtonTheme==="light"?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:`var(--grey-600, var(--kui-color-text-neutral-stronger, ${Hg}))`),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")};$v(()=>{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?(k(),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(he(OK),{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",IK,[i.value&&!e.hideDismissIcon?(k(),S("div",BK,[G(We,{"aria-label":"Close",onClick:f[0]||(f[0]=y=>u(!0))},{default:z(()=>[G(Ie,{color:s.value,icon:"close",size:he(xt)},null,8,["color","size"])]),_:1})])):$("",!0),O("div",NK,[i.value?(k(),S("div",LK,[F(h.$slots,"header-image",{},void 0,!0)])):$("",!0),h.$slots["header-content"]||!e.hideTitle?(k(),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",RK,[F(h.$slots,"footer-content",{},()=>[e.hideCancelButton?$("",!0):(k(),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",$K,[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,PK)):$("",!0)}}}),oy=Ee(HK,[["__scopeId","data-v-1dc4b697"]]),FK=["aria-label","onKeyup"],zK={class:"k-modal-fullscreen-body-header"},jK={key:0,class:"body-header"},UK={key:1,class:"body-header-description"},ZK={class:"k-modal-fullscreen-body"},YK={class:"k-modal-fullscreen-header"},VK={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},KK={class:"k-modal-fullscreen-title"},GK={class:"header-icon"},WK={class:"header-content"},qK={class:"k-modal-fullscreen-action"},QK={class:"k-modal-fullscreen-action-buttons"},XK={key:0,class:"k-modal-fullscreen-footer"},JK={class:"k-modal-fullscreen-action"},eG={class:"k-modal-fullscreen-action-buttons"},tG=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=I(()=>!!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?(k(),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",zK,[l.$slots["body-header"]||e.bodyHeader?(k(),S("div",jK,[F(l.$slots,"body-header",{},()=>[J(V(e.bodyHeader),1)],!0)])):$("",!0),l.$slots["body-header-description"]||e.bodyHeaderDescription?(k(),S("div",UK,[F(l.$slots,"body-header-description",{},()=>[J(V(e.bodyHeaderDescription),1)],!0)])):$("",!0)]),O("div",ZK,[F(l.$slots,"default",{},void 0,!0)]),O("div",YK,[O("div",VK,[O("div",KK,[O("span",GK,[F(l.$slots,"header-icon",{},()=>[G(Ie,{icon:e.iconString},null,8,["icon"])],!0)]),O("span",WK,[F(l.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)])]),O("div",qK,[O("div",QK,[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"]?(k(),S("div",XK,[F(l.$slots,"footer-content",{},void 0,!0),O("div",JK,[O("div",eG,[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,FK)):$("",!0)}}),nG=Ee(tG,[["__scopeId","data-v-0b0d49d9"]]),rG=["data-testid"],aG={class:"k-multiselect-item-container",role:"option"},oG=["disabled","value"],iG={class:"k-multiselect-item-label"},sG={class:"k-multiselect-selected-icon-container"},lG=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)=>(k(),S("div",{key:e.item.key,class:"k-multiselect-item","data-testid":`k-multiselect-item-${e.item.value}`,role:"listitem"},[O("div",aG,[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",iG,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",sG,[e.item.disabled?(k(),se(va(e.item.disabledTooltipText?"KTooltip":"span"),{key:0,label:e.item.disabledTooltipText?e.item.disabledTooltipText:void 0,placement:"left"},{default:z(()=>[G(Ie,{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, ${he(Xa)}))`,"hide-title":"",icon:"lock",size:he(ks)},null,8,["class","color","size"])]),_:1},8,["label"])):e.item.selected?(k(),se(Ie,{key:1,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,oG)])],8,rG))}}),ru=Ee(lG,[["__scopeId","data-v-136b50e2"]]),uG={class:"k-multiselect-group-title"},cG=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=I(()=>n.items.filter(s=>!s.group)),o=I(()=>[...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)=>(k(),S(Ae,null,[(k(!0),S(Ae,null,ot(a.value,(u,c)=>(k(),se(ru,{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)),(k(!0),S(Ae,null,ot(o.value,u=>(k(),S("div",{key:`${u}-group`,class:"k-multiselect-group-container"},[O("span",uG,V(u),1),(k(!0),S(Ae,null,ot(i(u),(c,d)=>(k(),se(ru,{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))}}),dG=Ee(cG,[["__scopeId","data-v-6516d010"]]),sf=e=>(Rn("data-v-09b6212d"),e=e(),$n(),e),hG=["id"],fG=["id"],pG={class:"k-multiselect-icon"},mG=["id"],vG={class:"select-item-description"},gG=sf(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),yG=sf(()=>O("div",{class:"select-item-label"}," No results found ",-1)),bG=sf(()=>O("div",{class:"select-item-desc"}," Please adjust the criteria and try again ",-1)),wG={key:1,"aria-hidden":"true",class:"staging-area"},kG=["id"],CG=e=>{const t=[];return e.forEach(n=>t.push(n.value)),t},EG=e=>{const t=CG(e),n=new Set(t);return t.length===n.size},xG={inheritAttrs:!1},SG=ge({...xG,__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)&&EG(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;Qo(X=>({"1517299a":U.value}));const r=Xn(),a=It(),{getSizeFromString:o,cloneDeep:i,stripRequiredLabel:s}=mn(),l=34,u=I(()=>r.required!==void 0&&String(r.required)!=="false"),c=I(()=>s(n.label,u.value)),d=I(()=>{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=I(()=>n.testMode?"test-multiselect-id-1234":an()),v=I(()=>n.testMode?"test-multiselect-input-id-1234":an()),p=I(()=>n.testMode?"test-multiselect-text-id-1234":an()),b=I(()=>n.testMode?"test-multiselect-selected-id-1234":an()),m=I(()=>n.testMode?"test-multiselect-selected-staging-id-1234":an()),w=j(null),M=j(null),B=I(()=>n.selectedRowCount*l),L=j(""),D=I(()=>!(!L.value||C.value.filter(X=>X.label===L.value).length)),x=j(null),C=j([]),A=j([]),T=j([]),N=j([]),ee=j([]),ae=new Set,oe=j([]),Q=j([]),ye=I(()=>Q.value.map(X=>X.label).join(", ")),_e=j(!1),Re=j(!1),Ze=j(!1),ze=I(()=>(r==null?void 0:r.disabled)!==void 0&&String(r==null?void 0:r.disabled)!=="false"),fe=I(()=>(r==null?void 0:r.readonly)!==void 0&&String(r==null?void 0:r.readonly)!=="false"),$e=I({get(){return n.modelValue},set(X){const ue=C.value.filter(Ce=>X.includes(Ce.value));ue.length?ce(ue):X.length||be()}}),De=I(()=>{const X={...r};return delete X.class,X}),je=I(()=>({...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=I(()=>o(n.dropdownMaxHeight)),R=I(()=>({...je.value})),K=I(()=>{const X=n.width?n.width:"300";return o(X)}),H=I(()=>({width:K.value})),te=I(()=>({width:ke.value+"px"})),E=I(()=>({width:ke.value-30+"px",maxHeight:B.value+"px",paddingRight:0})),_=X=>T.value.length&&!X?T.value.length===1?`${T.value.length} item selected`:`${T.value.length} items selected`:n.placeholder?n.placeholder:r.placeholder?String(r.placeholder||""):"Filter...",P=I(()=>n.autosuggest?C.value:n.filterFunc({items:C.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>B.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 Ye=((Ce=C.value.filter(Ne=>Ne.value===ue.value))==null?void 0:Ce[0])||null;Ye.selected=!0,Ye.key=(ut=Ye==null?void 0:Ye.key)!=null&&ut.includes("-selected")?Ye.key:`${Ye.key}-selected`,T.value.filter(Ne=>Ne.value===Ye.value).length||(T.value.push(Ye),N.value.push(Ye))}),W()},le=(X,ue)=>{var Ce,ut,Ye,Ne;let wt=!1,pt=ue?X:((Ce=C.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=T.value.filter(Nt=>Nt.value===X.value))==null?void 0:ut[0])||null),pt===null)return;if(pt.selected){if(T.value=T.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=(Ye=pt.key)==null?void 0:Ye.replace(/-selected/gi,""),ee.value.length){const Nt=ee.value.pop();Nt&&(N.value.push(Nt),ae.delete(Nt.value))}wt&&(C.value=C.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`,T.value.push(pt),N.value.push(pt),ue&&(pt.custom=!0,C.value.push(pt)),n.expandSelected&&ie();W();const Sb=T.value.map(Nt=>Nt.value);t("selected",T.value),t("change",X),t("update:modelValue",Sb)},de=()=>{var X;if(!n.enableItemCreation||!L.value||!D.value)return;const ue=C.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=M.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=()=>{C.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)}),C.value=C.value.filter(X=>!X.custom),T.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=()=>{Ze.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>B.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=C.value.filter(ut=>X.includes(ut.value));Ce.length?ce(Ce):X.length||be()}}),Le(()=>n.items,(X,ue)=>{var Ce,ut,Ye;if(JSON.stringify(X)!==JSON.stringify(ue)){C.value=i(n.items);for(let Ne=0;Nept.value===wt.value).length||T.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)=>(k(),S("div",{class:q(["k-multiselect",[X.$attrs.class]]),style:Et(H.value)},[e.label?(k(),se(Ur,Ge({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(he(Lu),null,{default:z(({isToggled:Ce,toggle:ut})=>[G(ei,Ge({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]=()=>Ze.value=!1),onClick:ue[6]||(ue[6]=Tt(()=>{},["stop"])),onFocus:ue[7]||(ue[7]=Ye=>Ze.value=!0),onMouseenter:ue[8]||(ue[8]=()=>Re.value=!0),onMouseleave:ue[9]||(ue[9]=()=>Re.value=!1)},[G(dG,{items:A.value,onSelected:le},{content:z(({item:Ye})=>[F(X.$slots,"item-template",{class:"k-multiselect-item",item:Ye},void 0,!0)]),_:3},8,["items"]),e.enableItemCreation&&D.value?(k(),se(ru,{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",vG,[J(V(L.value)+" ",1),gG])]),_:1},8,["item"])):$("",!0),!A.value.length&&!X.$slots.empty&&!e.enableItemCreation?(k(),se(ru,{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(()=>[yG,bG]),_: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?(k(),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:Ze.value,hovered:Re.value,disabled:ze.value,readonly:fe.value}]),"data-testid":"k-multiselect-trigger",role:"listbox",onClick:Z},[T.value.length&&(Ce.value||e.expandSelected||e.collapsedContext)?(k(),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)},[(k(!0),S(Ae,null,ot(oe.value,(Ye,Ne)=>(k(),se(Di,{key:`${Ye.key?Ye.key:Ne}-badge`,class:q(["k-multiselect-selection-badge",{"expand-selected":e.expandSelected,"resize-badge":Ye.selected&&Ye.disabled}]),dismissable:Ye.selected&&!Ye.disabled,shape:"rectangular","truncation-tooltip":Ye.label,onClick:ue[0]||(ue[0]=Tt(()=>{},["stop"])),onDismissed:wt=>le(Ye)},{default:z(()=>[J(V(Ye.label),1)]),_:2},1032,["class","dismissable","truncation-tooltip","onDismissed"]))),128)),!e.expandSelected&&Q.value.length?(k(),se(Di,{key:0,class:"hidden-selection-count","force-tooltip":"",shape:"rectangular","truncation-tooltip":ye.value,onClick:ue[1]||(ue[1]=Tt(()=>{},["stop"]))},{default:z(()=>[J(" +"+V(Q.value.length),1)]),_:1},8,["truncation-tooltip"])):$("",!0),e.expandSelected?(k(),S("div",{key:1,ref_key:"selectionBottomRef",ref:M},null,512)):$("",!0)],14,fG)):$("",!0),O("div",pG,[!e.loading&&T.value.length&&Ce.value?(k(),se(We,{key:0,class:"k-multiselect-clear-icon","data-testid":"k-multiselect-clear-icon",onClick:be,onKeyup:jt(be,["enter"])},{default:z(()=>[G(Ie,{color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"close",size:he(ks),title:"Clear all selections"},null,8,["color","size"])]),_:1},8,["onKeyup"])):(k(),se(Ie,{key:1,class:q(["k-multiselect-chevron-icon",{"in-selection-box":T.value.length}]),color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:e.loading?"spinner":"chevronDown",size:he(xt)},null,8,["class","color","icon","size"]))]),O("div",{id:v.value,style:Et(te.value)},[!e.expandSelected&&!e.collapsedContext||(e.expandSelected||e.collapsedContext)&&(!T.value.length||Ce.value)?(k(),se(Ss,Ge({key:0,id:p.value},De.value,{autocapitalize:"off",autocomplete:"off",class:["k-multiselect-input input-placeholder-dark",{"is-toggled":Ce.value&&T.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]=()=>Ze.value=!1),onClick:Ye=>{Ce.value&&Ye.stopPropagation()},onFocus:ne,onKeyup:Ye=>Pe(Ye,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,mG)],2)]),_:2},1040,["position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,hG),e.expandSelected?$("",!0):(k(),S("div",wG,[(k(),S("div",{id:m.value,key:g.value,class:"k-multiselect-selections staging",style:Et(te.value),tabindex:"-1"},[(k(!0),S(Ae,null,ot(N.value,(Ce,ut)=>(k(),se(Di,{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(Di,{class:"hidden-selection-count",hidden:"",shape:"rectangular"},{default:z(()=>[J(" +"+V(ee.value.length),1)]),_:1})],12,kG))]))],6))}}),_G=Ee(SG,[["__scopeId","data-v-09b6212d"]]),iy=e=>(Rn("data-v-f2763501"),e=e(),$n(),e),DG={class:"k-prompt-header"},MG={class:"k-prompt-header-content"},TG={class:"close-button"},AG=iy(()=>O("hr",{class:"divider"},null,-1)),OG={class:"k-prompt-body"},PG={class:"k-prompt-body-content"},IG={key:0,class:"k-prompt-confirm-text"},BG={class:"confirm-text"},NG=iy(()=>O("hr",{class:"divider"},null,-1)),LG={class:"k-prompt-action-buttons"},RG=ge({__name:"KPrompt",props:{title:{type:String,default:""},type:{type:String,default:"info",validator:e=>Lk.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=I(()=>n.title?n.type==="warning"?"Warning: "+n.title:n.title:n.type==="info"?"Information":s(n.type)),u=I(()=>n.actionPending?!0:n.confirmationText.length?n.confirmationText!==r.value:!1);return ft(()=>{document.addEventListener("keydown",i)}),Wa(()=>{document.removeEventListener("keydown",i)}),(c,d)=>(k(),se(oy,{class:"k-prompt","is-visible":e.isVisible,"tabbable-options":e.tabbableOptions,"text-align":"left",title:l.value},{"header-content":z(()=>[O("div",DG,[O("div",MG,[F(c.$slots,"header-content",{},()=>[e.type==="warning"?(k(),se(Ie,{key:0,class:"warning-icon",color:`var(--white, var(--kui-color-text-inverse, ${he(Ru)}))`,icon:"warning","secondary-color":"currentColor",size:he(Rl)},null,8,["color","size"])):$("",!0),J(" "+V(l.value),1)],!0),O("div",TG,[G(We,{"aria-label":"Close",onClick:a},{default:z(()=>[G(Ie,{color:`var(--grey-600, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"close",size:he(xt)},null,8,["color","size"])]),_:1})])]),AG])]),"body-content":z(()=>[O("div",OG,[O("div",PG,[F(c.$slots,"body-content",{},()=>[J(V(e.message),1)],!0),e.confirmationText?(k(),S("div",IG,[J(' Type "'),O("span",BG,V(e.confirmationText),1),J('" to confirm your action. '),G(Ss,{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)]),NG])]),"footer-content":z(()=>[O("div",LG,[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?(k(),se(Ie,{key:0,color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${he(Xa)}))`,icon:"spinner",size:he(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"]))}}),$G=Ee(RG,[["__scopeId","data-v-f2763501"]]),HG=["checked"],FG=["id","checked","disabled"],zG={key:0,class:"k-radio-description"},jG=["for"],UG={inheritAttrs:!1},ZG=ge({...UG,__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=>Nk.includes(e)},testMode:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=I(()=>h.id?String(h.id):n.testMode?"test-radio-input-id-1234":an()),o=I(()=>(h==null?void 0:h.disabled)!==void 0&&String(h==null?void 0:h.disabled)!=="false"),i=I(()=>!!(n.label||r.default)),s=I(()=>!!(n.description||r.description)),l=I(()=>!!r.tooltip),u=I(()=>n.selectedValue===n.modelValue),c=I(()=>n.type==="radio"),d=()=>{t("change",n.selectedValue),t("update:modelValue",n.selectedValue)},h=Xn(),f=I(()=>{const g={...h};return delete g.class,g});return(g,y)=>(k(),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",Ge({id:a.value,checked:u.value},f.value,{class:"k-input",disabled:o.value,type:"radio",onClick:d}),null,16,FG),c.value&&i.value?(k(),se(Ur,Ge({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?(k(),S("div",zG,[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?(k(),S("label",{key:1,for:a.value},[F(g.$slots,"default")],8,jG)):$("",!0)],10,HG))}});var vm;const sy=typeof window<"u",YG=e=>typeof e=="string",ly=()=>{},VG=sy&&((vm=window==null?void 0:window.navigator)==null?void 0:vm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uy(e){return typeof e=="function"?e():he(e)}function KG(e){return e}function GG(e){return pv()?(Yb(e),!0):!1}function Ti(e){var t;const n=uy(e);return(t=n==null?void 0:n.$el)!=null?t:n}const cy=sy?window:void 0;function $c(...e){let t,n,r,a;if(YG(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=cy):[t,n,r,a]=e,!t)return ly;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(c=>c()),o.length=0},s=(c,d,h,f)=>(c.addEventListener(d,h,f),()=>c.removeEventListener(d,h,f)),l=Le(()=>[Ti(t),uy(a)],([c,d])=>{i(),c&&o.push(...n.flatMap(h=>r.map(f=>s(c,h,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return GG(u),u}let gm=!1;function WG(e,t,n={}){const{window:r=cy,ignore:a=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return;VG&&!gm&&(gm=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",ly)));let s=!0;const l=c=>a.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(h=>h===c.target||c.composedPath().includes(h));{const h=Ti(d);return h&&(c.target===h||c.composedPath().includes(h))}}),u=[$c(r,"click",c=>{const d=Ti(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(s=!l(c)),!s){s=!0;return}t(c)}},{passive:!0,capture:o}),$c(r,"pointerdown",c=>{const d=Ti(e);d&&(s=!c.composedPath().includes(d)&&!l(c))},{passive:!0}),i&&$c(r,"blur",c=>{var d;const h=Ti(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>u.forEach(c=>c())}const ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bm="__vueuse_ssr_handlers__";ym[bm]=ym[bm]||{};var wm;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(wm||(wm={}));var qG=Object.defineProperty,km=Object.getOwnPropertySymbols,QG=Object.prototype.hasOwnProperty,XG=Object.prototype.propertyIsEnumerable,Cm=(e,t,n)=>t in e?qG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JG=(e,t)=>{for(var n in t||(t={}))QG.call(t,n)&&Cm(e,n,t[n]);if(km)for(var n of km(t))XG.call(t,n)&&Cm(e,n,t[n]);return e};const eW={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};JG({linear:KG},eW);const tW={class:"k-slideout"},nW={class:"k-slideout-header-content"},rW={key:0,class:"k-slideout-before-title"},aW={class:"k-slideout-main-title"},oW=["title"],iW={key:1,class:"k-slideout-after-title"},sW=["data-testid"],lW={class:"content"},uW=ge({__name:"KSlideout",props:{isVisible:{type:Boolean,default:!1},closeButtonAlignment:{type:String,default:"start",validator:e=>["start","end"].includes(e)},hasOverlay:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},title:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e;Qo(c=>({"08432194":u.value}));const r=It(),a=I(()=>!!r["before-title"]),o=I(()=>!!r["after-title"]),{getSizeFromString:i}=mn(),s=j(null);WG(s,c=>{c.isTrusted&&t("close")});const l=(c,d=!1)=>{(n.isVisible&&c.keyCode===27||d)&&t("close")};ft(()=>{document.addEventListener("keydown",l)}),gr(()=>{document.removeEventListener("keydown",l)});const u=I(()=>i(String(n.offsetTop)));return(c,d)=>(k(),S("div",tW,[G(ja,{name:"fade"},{default:z(()=>[e.isVisible?(k(),S("div",{key:0,class:q(e.hasOverlay?"panel-background":"panel-background-transparent")},null,2)):$("",!0)]),_:1}),G(ja,{name:"slide"},{default:z(()=>[e.isVisible?(k(),S("div",{key:0,ref_key:"slideOutRef",ref:s,class:q(["panel",{"is-visible":e.isVisible,"border-styles":!e.hasOverlay}]),"data-testid":"slideout-panel"},[O("div",nW,[a.value?(k(),S("div",rW,[F(c.$slots,"before-title",{},void 0,!0)])):$("",!0),O("div",aW,[O("p",{class:"k-slideout-title","data-testid":"k-slideout-title",title:e.title},V(e.title),9,oW)]),o.value?(k(),S("div",iW,[F(c.$slots,"after-title",{},void 0,!0)])):$("",!0)]),O("button",{class:q(e.closeButtonAlignment==="start"?"close-button-start":"close-button-end"),"data-testid":e.closeButtonAlignment==="start"?"close-button-start":"close-button-end",onClick:d[0]||(d[0]=h=>t("close"))},[G(Ie,{color:`var(--kui-color-text-neutral-stronger, ${he(Hg)})`,icon:"close",size:he($u)},null,8,["color","size"])],10,sW),O("div",lW,[G(Ah,{"border-variant":"noBorder"},{body:z(()=>[F(c.$slots,"default",{},void 0,!0)]),_:3})])],2)):$("",!0)]),_:3})]))}}),cW=Ee(uW,[["__scopeId","data-v-eb76f306"]]),dW=e=>(Rn("data-v-b19dacc6"),e=e(),$n(),e),hW={class:"k-step-state-icon","data-testid":"k-step-active",fill:"none",viewBox:"0 0 24 24"},fW=dW(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),pW=ge({__name:"KActiveState",props:{title:{type:String,default:"Active"}},setup(e){return(t,n)=>(k(),S("svg",hW,[O("title",null,V(e.title),1),fW]))}}),mW=Ee(pW,[["__scopeId","data-v-b19dacc6"]]),lf=e=>(Rn("data-v-be532e68"),e=e(),$n(),e),vW={class:"k-step-state-icon","data-testid":"k-step-completed",fill:"none",viewBox:"0 0 24 24"},gW=lf(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),yW=lf(()=>O("path",{class:"k-step-icon-primary",d:"M16 9L10 15L7 12.0001"},null,-1)),bW=lf(()=>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)),wW=ge({__name:"KCompletedState",props:{title:{type:String,default:"Completed"}},setup(e){return(t,n)=>(k(),S("svg",vW,[O("title",null,V(e.title),1),gW,yW,bW]))}}),kW=Ee(wW,[["__scopeId","data-v-be532e68"]]),CW=e=>(Rn("data-v-7f1024a4"),e=e(),$n(),e),EW={class:"k-step-state-icon","data-testid":"k-step-default",fill:"none",viewBox:"0 0 24 24"},xW=CW(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),SW=ge({__name:"KDefaultState",props:{title:{type:String,default:"Default"}},setup(e){return(t,n)=>(k(),S("svg",EW,[O("title",null,V(e.title),1),xW]))}}),_W=Ee(SW,[["__scopeId","data-v-7f1024a4"]]),dy=e=>(Rn("data-v-d93db193"),e=e(),$n(),e),DW={class:"k-step-state-icon","data-testid":"k-step-error",fill:"none",viewBox:"0 0 24 24"},MW=dy(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),TW=dy(()=>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)),AW=ge({__name:"KErrorState",props:{title:{type:String,default:"Error"}},setup(e){return(t,n)=>(k(),S("svg",DW,[O("title",null,V(e.title),1),MW,TW]))}}),OW=Ee(AW,[["__scopeId","data-v-d93db193"]]),PW=e=>(Rn("data-v-e3d948f6"),e=e(),$n(),e),IW={class:"k-step-spinner"},BW={class:"k-step-state-icon","data-testid":"k-step-pending",viewBox:"0 0 50 50"},NW=PW(()=>O("circle",{cx:"25",cy:"25",fill:"none",r:"20","stroke-width":"5"},null,-1)),LW=ge({__name:"KPendingState",props:{title:{type:String,default:"Pending"}},setup(e){return(t,n)=>(k(),S("div",IW,[(k(),S("svg",BW,[J(V(e.title)+" ",1),NW]))]))}}),RW=Ee(LW,[["__scopeId","data-v-e3d948f6"]]),$W={class:"k-step-state"},HW=ge({__name:"KStepState",props:{state:{type:String,default:"default",required:!1,validator:e=>l2.includes(e)}},setup(e){const t=e,n=I(()=>{let r=_W;switch(t.state){case"active":r=mW;break;case"completed":r=kW;break;case"error":r=OW;break;case"pending":r=RW;break}return r});return(r,a)=>(k(),S("div",$W,[(k(),se(va(n.value)))]))}}),FW=Ee(HW,[["__scopeId","data-v-0c4d4434"]]),zW={class:"k-step"},jW=ge({__name:"KStep",props:{label:{type:String,required:!0},state:{type:String,default:"default",validator:e=>l2.includes(e)},maxLabelWidth:{type:String,default:"170"}},setup(e){const t=e,{getSizeFromString:n}=mn(),r=I(()=>({maxWidth:n(t.maxLabelWidth)}));return(a,o)=>(k(),S("li",zW,[O("div",{class:q(["k-step-container",{completed:e.state==="completed"}])},[G(FW,{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)]))}}),UW=Ee(jW,[["__scopeId","data-v-b79ad9dc"]]),ZW={key:0,class:"k-stepper"},YW=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?(k(),S("ol",ZW,[(k(!0),S(Ae,null,ot(e.steps,r=>(k(),se(UW,{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)}}),VW=Ee(YW,[["__scopeId","data-v-5beeaa04"]]),KW={class:"k-table-container"},GW={key:0,class:"k-table-toolbar","data-testid":"k-table-toolbar"},WW={key:2,class:"k-table-error-state","data-testid":"k-table-error-state"},qW={key:3,class:"k-table-empty-state","data-testid":"k-table-empty-state"},QW=["data-tableid"],XW=["aria-sort","onClick"],JW={class:"k-table-headers-container"},eq=["role","tabindex"],{clientSideSorter:tq}=mn(),Em=(e,t,n,r)=>tq(e,t,n,r),nq=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=>Tk.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=>Mk.includes(e)},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:String,default:void 0,validator:e=>Ak.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}=mn(),i=Xn(),s=It(),l=I(()=>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([]),M=j(!1),B=j(!1),L=j(!1),D=I(()=>!!s.toolbar),x=ne=>`column-${ne}`,C=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 Ye=ut.split(ne);Ce[Ye[1]]=Ne=>ue[ut](Ne,me,Oe)}return Ce},{})},T=I(()=>(ne,ke)=>{const me=A("onRow:",i)(ke,"row"),Oe=A("onCell:",i)(ne,"cell"),X=["a","button","input","select"];return me.click&&(M.value=!0),{...me,...Oe,click(ue){const Ce=ue.target.className;let ut=X.includes(ue.target.tagName.toLowerCase()),Ye=!1;typeof Ce=="string"||Array.isArray(Ce)?Ye=Ce.includes("k-popover"):typeof Ce=="object"&&(Ye=Object.keys(Ce).includes("k-popover")),ue.target.closest(".k-popover-content")!==null&&(Ye=!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&&Em(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),B.value=!0},oe=I(()=>w.value[g.value-1]),Q=I(()=>{if(!n.fetcher||!B.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),Ze=Re(0),{data:ze,error:fe,revalidate:$e,isValidating:De}=a(()=>Q.value,()=>ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:je,hasData:U,swrvState:R}=o(ze,fe,De),K=j(!0),H=I(()=>({hasData:U.value,state:je.value})),te=I(()=>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}):Em(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=I(()=>({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=I(()=>!!(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===""?Ze(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),B.value&&!N.value&&(Pe.value=!0,Oe!==""&&Oe!==me?await E():await P(),Pe.value=!1)},{deep:!0,immediate:!0}),ft(()=>{ae()}),(ne,ke)=>(k(),S("div",KW,[D.value?(k(),S("div",GW,[F(ne.$slots,"toolbar",{state:H.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(K.value||e.isLoading||Pe.value)&&!e.hasError?(k(),se(Oh,{key:1,"data-testid":"k-table-skeleton",type:"table"})):e.hasError?(k(),S("div",WW,[F(ne.$slots,"error-state",{},()=>[G(us,{"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?(k(),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?(k(),S("div",qW,[F(ne.$slots,"empty-state",{},()=>[G(us,{"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?(k(),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)])):(k(),S("section",{key:4,class:"k-table-wrapper",onScrollPassive:ce},[O("table",{class:q(["k-table",{"has-hover":e.hasHover,"is-clickable":M.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})},[(k(!0),S(Ae,null,ot(d.value,(me,Oe)=>(k(),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",JW,[F(ne.$slots,x(me.key),{column:C(me)},()=>[O("span",{class:q({"sr-only":me.hideLabel})},V(me.label?me.label:me.key),3)],!0),!e.disableSorting&&!me.hideLabel&&me.sortable?(k(),se(Ie,{key:0,"aria-hidden":"true",class:"caret",color:`var(--KTableColor, var(--black-70, var(--kui-color-text, ${he(L7)})))`,icon:"chevronDown",size:he(ks)},null,8,["color","size"])):$("",!0)])],10,XW))),128))],2)],2),O("tbody",null,[(k(!0),S(Ae,null,ot(c.value,(me,Oe)=>(k(),S("tr",Ge(e.rowAttrs(me),{key:`k-table-${l.value}-row-${Oe}`,role:M.value?"link":null,tabindex:M.value?0:null},ld(e.hasSideBorder?T.value(me,me):{},!0)),[(k(!0),S(Ae,null,ot(d.value,(X,ue)=>(k(),S("td",Ge(e.cellAttrs({headerKey:X.key,row:me,rowIndex:Oe,colIndex:ue}),{key:`k-table-${l.value}-cell-${ue}`},ld(T.value(me[X.key],me),!0)),[F(ne.$slots,X.key,{row:C(me),rowKey:Oe,rowValue:me[X.key]},()=>[J(V(me[X.key]),1)],!0)],16))),128))],16,eq))),128))])],10,QW),be.value?(k(),se(Ph,{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))]))}}),rq=Ee(nq,[["__scopeId","data-v-f15c4906"]]),aq={class:"k-tabs"},oq={"aria-label":"Tabs",role:"tablist"},iq=["id","aria-controls","aria-selected","role","onClick","onKeydown"],sq=["id","aria-labelledby"],lq=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)=>(k(),S("div",aq,[O("ul",oq,[(k(!0),S(Ae,null,ot(e.tabs,(s,l)=>(k(),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(Tt(u=>a(s.hash),["prevent"]),["enter"]),jt(Tt(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,iq))),128))]),e.hasPanels?(k(!0),S(Ae,{key:0},ot(e.tabs,(s,l)=>(k(),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,sq))),128)):$("",!0)]))}}),uq=Ee(lq,[["__scopeId","data-v-2ddf6190"]]),cq=["cols","rows","value"],dq={key:1,class:"k-textarea"},hq={class:"text-on-input"},fq=["for"],pq={key:0,class:"is-required"},mq=["id","aria-invalid","cols","rows","value"],vq={key:2,class:"k-textarea"},gq=["id","aria-invalid","cols","rows","value"],yq={inheritAttrs:!1},bq=ge({...yq,__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}=mn(),i=I(()=>(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=I(()=>o(n.label,i.value)),d=I(()=>{var b,m;return!!((b=n.labelAttributes)!=null&&b.help||(m=n.labelAttributes)!=null&&m.info||a["label-tooltip"])}),h=I({get(){return n.modelValue},set(b){v({target:{value:b}})}}),f=I(()=>r.id?String(r.id):n.testMode?"test-textArea-id-1234":an()),g=I(()=>{const b={...r};return delete b.class,b}),y=I(()=>!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)=>(k(),S("div",{class:q(["k-input-wrapper",[b.$attrs.class,{"input-error":e.hasError||y.value}]])},[e.label?e.label&&e.overlayLabel?(k(),S("div",dq,[O("div",hq,[O("label",Ge(e.labelAttributes,{class:{focused:l.value,hovered:u.value},for:f.value}),[O("span",null,V(c.value),1),i.value?(k(),S("span",pq,"*")):$("",!0)],16,fq),O("textarea",Ge(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,mq)])])):(k(),S("div",vq,[G(Ur,Ge({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",Ge(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,gq)])):(k(),S("textarea",Ge({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,cq)),e.disableCharacterLimit?$("",!0):(k(),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))}}),wq=Ee(bq,[["__scopeId","data-v-02ecb1b8"]]),kq={class:"message"},Cq=ge({__name:"KToaster",props:{toasterState:{type:Array,default:[],required:!0}},emits:["close"],setup(e){return(t,n)=>(k(),se(W4,{class:"toaster-container-outer",name:"toaster",tag:"div"},{default:z(()=>[(k(!0),S(Ae,null,ot(e.toasterState,r=>(k(),S("div",{key:r.key,class:"toaster-item"},[G(jg,{appearance:r.appearance,"dismiss-type":"icon","has-left-border":"",onClosed:a=>t.$emit("close",r.key)},{alertMessage:z(()=>[O("div",kq,V(r.message),1)]),_:2},1032,["appearance","onClosed"])]))),128))]),_:1}))}}),hy=Ee(Cq,[["__scopeId","data-v-b9facd38"]]),Eq=Object.keys(c2),Hc={id:"toaster-container",timeout:5e3,appearance:c2.info};class xq{constructor(t=Hc.id,n=Hc.timeout,r=Hc.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=Te(hy,{toasterState:this.toasters.value,onClose:r=>this.close(r)});mg(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&&Eq.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 Sq=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 AK={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},OK=ge({props:Object.assign({active:{type:Boolean,default:!0}},AK),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(e,{slots:t,emit:n}){let r;const a=j(null),o=I(()=>{const s=a.value;return s&&(s instanceof HTMLElement?s:s.$el)}),i=()=>r||(r=TK(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!==Cn);return!s||!s.length||s.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),s):$r(s[0],{ref:a})}}}}),PK=["aria-label"],IK={class:"k-modal-dialog modal-dialog"},BK={key:0,class:"close-button"},NK={class:"k-modal-content modal-content"},LK={key:0,class:"k-modal-header-image"},RK={class:"k-modal-footer modal-footer"},$K={class:"k-modal-action-buttons"},HK=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=>_k.includes(e)},content:{type:String,default:""},textAlign:{type:String,default:"center",validator:e=>Dk.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=I(()=>!!r["header-image"]),s=I(()=>n.dismissButtonTheme==="light"?`var(--grey-400, var(--kui-color-text-neutral-weak, ${Xa}))`:`var(--grey-600, var(--kui-color-text-neutral-stronger, ${Hg}))`),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")};$v(()=>{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?(k(),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(he(OK),{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",IK,[i.value&&!e.hideDismissIcon?(k(),S("div",BK,[G(We,{"aria-label":"Close",onClick:f[0]||(f[0]=y=>u(!0))},{default:z(()=>[G(Ie,{color:s.value,icon:"close",size:he(xt)},null,8,["color","size"])]),_:1})])):$("",!0),O("div",NK,[i.value?(k(),S("div",LK,[F(h.$slots,"header-image",{},void 0,!0)])):$("",!0),h.$slots["header-content"]||!e.hideTitle?(k(),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",RK,[F(h.$slots,"footer-content",{},()=>[e.hideCancelButton?$("",!0):(k(),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",$K,[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,PK)):$("",!0)}}}),oy=Ee(HK,[["__scopeId","data-v-1dc4b697"]]),FK=["aria-label","onKeyup"],zK={class:"k-modal-fullscreen-body-header"},jK={key:0,class:"body-header"},UK={key:1,class:"body-header-description"},ZK={class:"k-modal-fullscreen-body"},YK={class:"k-modal-fullscreen-header"},VK={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},KK={class:"k-modal-fullscreen-title"},GK={class:"header-icon"},WK={class:"header-content"},qK={class:"k-modal-fullscreen-action"},QK={class:"k-modal-fullscreen-action-buttons"},XK={key:0,class:"k-modal-fullscreen-footer"},JK={class:"k-modal-fullscreen-action"},eG={class:"k-modal-fullscreen-action-buttons"},tG=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=I(()=>!!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?(k(),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",zK,[l.$slots["body-header"]||e.bodyHeader?(k(),S("div",jK,[F(l.$slots,"body-header",{},()=>[J(V(e.bodyHeader),1)],!0)])):$("",!0),l.$slots["body-header-description"]||e.bodyHeaderDescription?(k(),S("div",UK,[F(l.$slots,"body-header-description",{},()=>[J(V(e.bodyHeaderDescription),1)],!0)])):$("",!0)]),O("div",ZK,[F(l.$slots,"default",{},void 0,!0)]),O("div",YK,[O("div",VK,[O("div",KK,[O("span",GK,[F(l.$slots,"header-icon",{},()=>[G(Ie,{icon:e.iconString},null,8,["icon"])],!0)]),O("span",WK,[F(l.$slots,"header-content",{},()=>[J(V(e.title),1)],!0)])]),O("div",qK,[O("div",QK,[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"]?(k(),S("div",XK,[F(l.$slots,"footer-content",{},void 0,!0),O("div",JK,[O("div",eG,[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,FK)):$("",!0)}}),nG=Ee(tG,[["__scopeId","data-v-0b0d49d9"]]),rG=["data-testid"],aG={class:"k-multiselect-item-container",role:"option"},oG=["disabled","value"],iG={class:"k-multiselect-item-label"},sG={class:"k-multiselect-selected-icon-container"},lG=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)=>(k(),S("div",{key:e.item.key,class:"k-multiselect-item","data-testid":`k-multiselect-item-${e.item.value}`,role:"listitem"},[O("div",aG,[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",iG,[F(a.$slots,"content",{},()=>[J(V(e.item.label),1)],!0)]),O("span",sG,[e.item.disabled?(k(),se(va(e.item.disabledTooltipText?"KTooltip":"span"),{key:0,label:e.item.disabledTooltipText?e.item.disabledTooltipText:void 0,placement:"left"},{default:z(()=>[G(Ie,{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, ${he(Xa)}))`,"hide-title":"",icon:"lock",size:he(ks)},null,8,["class","color","size"])]),_:1},8,["label"])):e.item.selected?(k(),se(Ie,{key:1,class:"selected-item-icon",color:"currentColor",icon:"check"})):$("",!0)])],10,oG)])],8,rG))}}),ru=Ee(lG,[["__scopeId","data-v-136b50e2"]]),uG={class:"k-multiselect-group-title"},cG=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=I(()=>n.items.filter(s=>!s.group)),o=I(()=>[...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)=>(k(),S(Ae,null,[(k(!0),S(Ae,null,ot(a.value,(u,c)=>(k(),se(ru,{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)),(k(!0),S(Ae,null,ot(o.value,u=>(k(),S("div",{key:`${u}-group`,class:"k-multiselect-group-container"},[O("span",uG,V(u),1),(k(!0),S(Ae,null,ot(i(u),(c,d)=>(k(),se(ru,{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))}}),dG=Ee(cG,[["__scopeId","data-v-6516d010"]]),sf=e=>(Rn("data-v-09b6212d"),e=e(),$n(),e),hG=["id"],fG=["id"],pG={class:"k-multiselect-icon"},mG=["id"],vG={class:"select-item-description"},gG=sf(()=>O("span",{class:"select-item-new-indicator"},"(Add new value)",-1)),yG=sf(()=>O("div",{class:"select-item-label"}," No results found ",-1)),bG=sf(()=>O("div",{class:"select-item-desc"}," Please adjust the criteria and try again ",-1)),wG={key:1,"aria-hidden":"true",class:"staging-area"},kG=["id"],CG=e=>{const t=[];return e.forEach(n=>t.push(n.value)),t},EG=e=>{const t=CG(e),n=new Set(t);return t.length===n.size},xG={inheritAttrs:!1},SG=ge({...xG,__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)&&EG(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;Qo(X=>({"1517299a":U.value}));const r=Xn(),a=It(),{getSizeFromString:o,cloneDeep:i,stripRequiredLabel:s}=mn(),l=34,u=I(()=>r.required!==void 0&&String(r.required)!=="false"),c=I(()=>s(n.label,u.value)),d=I(()=>{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=I(()=>n.testMode?"test-multiselect-id-1234":an()),v=I(()=>n.testMode?"test-multiselect-input-id-1234":an()),p=I(()=>n.testMode?"test-multiselect-text-id-1234":an()),b=I(()=>n.testMode?"test-multiselect-selected-id-1234":an()),m=I(()=>n.testMode?"test-multiselect-selected-staging-id-1234":an()),w=j(null),M=j(null),B=I(()=>n.selectedRowCount*l),L=j(""),D=I(()=>!(!L.value||C.value.filter(X=>X.label===L.value).length)),x=j(null),C=j([]),A=j([]),T=j([]),N=j([]),ee=j([]),ae=new Set,oe=j([]),Q=j([]),ye=I(()=>Q.value.map(X=>X.label).join(", ")),_e=j(!1),Re=j(!1),Ze=j(!1),ze=I(()=>(r==null?void 0:r.disabled)!==void 0&&String(r==null?void 0:r.disabled)!=="false"),fe=I(()=>(r==null?void 0:r.readonly)!==void 0&&String(r==null?void 0:r.readonly)!=="false"),$e=I({get(){return n.modelValue},set(X){const ue=C.value.filter(Ce=>X.includes(Ce.value));ue.length?ce(ue):X.length||be()}}),De=I(()=>{const X={...r};return delete X.class,X}),Ue=I(()=>({...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=I(()=>o(n.dropdownMaxHeight)),R=I(()=>({...Ue.value})),K=I(()=>{const X=n.width?n.width:"300";return o(X)}),H=I(()=>({width:K.value})),te=I(()=>({width:ke.value+"px"})),E=I(()=>({width:ke.value-30+"px",maxHeight:B.value+"px",paddingRight:0})),_=X=>T.value.length&&!X?T.value.length===1?`${T.value.length} item selected`:`${T.value.length} items selected`:n.placeholder?n.placeholder:r.placeholder?String(r.placeholder||""):"Filter...",P=I(()=>n.autosuggest?C.value:n.filterFunc({items:C.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>B.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,ct;const Ye=((Ce=C.value.filter(Ne=>Ne.value===ue.value))==null?void 0:Ce[0])||null;Ye.selected=!0,Ye.key=(ct=Ye==null?void 0:Ye.key)!=null&&ct.includes("-selected")?Ye.key:`${Ye.key}-selected`,T.value.filter(Ne=>Ne.value===Ye.value).length||(T.value.push(Ye),N.value.push(Ye))}),W()},le=(X,ue)=>{var Ce,ct,Ye,Ne;let wt=!1,pt=ue?X:((Ce=C.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=((ct=T.value.filter(Nt=>Nt.value===X.value))==null?void 0:ct[0])||null),pt===null)return;if(pt.selected){if(T.value=T.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=(Ye=pt.key)==null?void 0:Ye.replace(/-selected/gi,""),ee.value.length){const Nt=ee.value.pop();Nt&&(N.value.push(Nt),ae.delete(Nt.value))}wt&&(C.value=C.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`,T.value.push(pt),N.value.push(pt),ue&&(pt.custom=!0,C.value.push(pt)),n.expandSelected&&ie();W();const Sb=T.value.map(Nt=>Nt.value);t("selected",T.value),t("change",X),t("update:modelValue",Sb)},de=()=>{var X;if(!n.enableItemCreation||!L.value||!D.value)return;const ue=C.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=M.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=()=>{C.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)}),C.value=C.value.filter(X=>!X.custom),T.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=()=>{Ze.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>B.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=C.value.filter(ct=>X.includes(ct.value));Ce.length?ce(Ce):X.length||be()}}),Le(()=>n.items,(X,ue)=>{var Ce,ct,Ye;if(JSON.stringify(X)!==JSON.stringify(ue)){C.value=i(n.items);for(let Ne=0;Nept.value===wt.value).length||T.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)=>(k(),S("div",{class:q(["k-multiselect",[X.$attrs.class]]),style:Et(H.value)},[e.label?(k(),se(Ur,Ge({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(he(Lu),null,{default:z(({isToggled:Ce,toggle:ct})=>[G(ei,Ge({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,ct),onOpened:()=>Y(!0,Ce,ct)}),{content:z(()=>[O("div",{class:"k-multiselect-list",onBlur:ue[5]||(ue[5]=()=>Ze.value=!1),onClick:ue[6]||(ue[6]=Tt(()=>{},["stop"])),onFocus:ue[7]||(ue[7]=Ye=>Ze.value=!0),onMouseenter:ue[8]||(ue[8]=()=>Re.value=!0),onMouseleave:ue[9]||(ue[9]=()=>Re.value=!1)},[G(dG,{items:A.value,onSelected:le},{content:z(({item:Ye})=>[F(X.$slots,"item-template",{class:"k-multiselect-item",item:Ye},void 0,!0)]),_:3},8,["items"]),e.enableItemCreation&&D.value?(k(),se(ru,{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",vG,[J(V(L.value)+" ",1),gG])]),_:1},8,["item"])):$("",!0),!A.value.length&&!X.$slots.empty&&!e.enableItemCreation?(k(),se(ru,{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(()=>[yG,bG]),_: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?(k(),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:Ze.value,hovered:Re.value,disabled:ze.value,readonly:fe.value}]),"data-testid":"k-multiselect-trigger",role:"listbox",onClick:Z},[T.value.length&&(Ce.value||e.expandSelected||e.collapsedContext)?(k(),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)},[(k(!0),S(Ae,null,ot(oe.value,(Ye,Ne)=>(k(),se(Di,{key:`${Ye.key?Ye.key:Ne}-badge`,class:q(["k-multiselect-selection-badge",{"expand-selected":e.expandSelected,"resize-badge":Ye.selected&&Ye.disabled}]),dismissable:Ye.selected&&!Ye.disabled,shape:"rectangular","truncation-tooltip":Ye.label,onClick:ue[0]||(ue[0]=Tt(()=>{},["stop"])),onDismissed:wt=>le(Ye)},{default:z(()=>[J(V(Ye.label),1)]),_:2},1032,["class","dismissable","truncation-tooltip","onDismissed"]))),128)),!e.expandSelected&&Q.value.length?(k(),se(Di,{key:0,class:"hidden-selection-count","force-tooltip":"",shape:"rectangular","truncation-tooltip":ye.value,onClick:ue[1]||(ue[1]=Tt(()=>{},["stop"]))},{default:z(()=>[J(" +"+V(Q.value.length),1)]),_:1},8,["truncation-tooltip"])):$("",!0),e.expandSelected?(k(),S("div",{key:1,ref_key:"selectionBottomRef",ref:M},null,512)):$("",!0)],14,fG)):$("",!0),O("div",pG,[!e.loading&&T.value.length&&Ce.value?(k(),se(We,{key:0,class:"k-multiselect-clear-icon","data-testid":"k-multiselect-clear-icon",onClick:be,onKeyup:jt(be,["enter"])},{default:z(()=>[G(Ie,{color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"close",size:he(ks),title:"Clear all selections"},null,8,["color","size"])]),_:1},8,["onKeyup"])):(k(),se(Ie,{key:1,class:q(["k-multiselect-chevron-icon",{"in-selection-box":T.value.length}]),color:`var(--grey-500, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:e.loading?"spinner":"chevronDown",size:he(xt)},null,8,["class","color","icon","size"]))]),O("div",{id:v.value,style:Et(te.value)},[!e.expandSelected&&!e.collapsedContext||(e.expandSelected||e.collapsedContext)&&(!T.value.length||Ce.value)?(k(),se(Ss,Ge({key:0,id:p.value},De.value,{autocapitalize:"off",autocomplete:"off",class:["k-multiselect-input input-placeholder-dark",{"is-toggled":Ce.value&&T.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]=()=>Ze.value=!1),onClick:Ye=>{Ce.value&&Ye.stopPropagation()},onFocus:ne,onKeyup:Ye=>Pe(Ye,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,mG)],2)]),_:2},1040,["position-fixed","target","test-mode","onClosed","onOpened"])]),_:3})],8,hG),e.expandSelected?$("",!0):(k(),S("div",wG,[(k(),S("div",{id:m.value,key:g.value,class:"k-multiselect-selections staging",style:Et(te.value),tabindex:"-1"},[(k(!0),S(Ae,null,ot(N.value,(Ce,ct)=>(k(),se(Di,{key:`${Ce.key?Ce.key:ct}-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(Di,{class:"hidden-selection-count",hidden:"",shape:"rectangular"},{default:z(()=>[J(" +"+V(ee.value.length),1)]),_:1})],12,kG))]))],6))}}),_G=Ee(SG,[["__scopeId","data-v-09b6212d"]]),iy=e=>(Rn("data-v-f2763501"),e=e(),$n(),e),DG={class:"k-prompt-header"},MG={class:"k-prompt-header-content"},TG={class:"close-button"},AG=iy(()=>O("hr",{class:"divider"},null,-1)),OG={class:"k-prompt-body"},PG={class:"k-prompt-body-content"},IG={key:0,class:"k-prompt-confirm-text"},BG={class:"confirm-text"},NG=iy(()=>O("hr",{class:"divider"},null,-1)),LG={class:"k-prompt-action-buttons"},RG=ge({__name:"KPrompt",props:{title:{type:String,default:""},type:{type:String,default:"info",validator:e=>Lk.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=I(()=>n.title?n.type==="warning"?"Warning: "+n.title:n.title:n.type==="info"?"Information":s(n.type)),u=I(()=>n.actionPending?!0:n.confirmationText.length?n.confirmationText!==r.value:!1);return ft(()=>{document.addEventListener("keydown",i)}),Wa(()=>{document.removeEventListener("keydown",i)}),(c,d)=>(k(),se(oy,{class:"k-prompt","is-visible":e.isVisible,"tabbable-options":e.tabbableOptions,"text-align":"left",title:l.value},{"header-content":z(()=>[O("div",DG,[O("div",MG,[F(c.$slots,"header-content",{},()=>[e.type==="warning"?(k(),se(Ie,{key:0,class:"warning-icon",color:`var(--white, var(--kui-color-text-inverse, ${he(Ru)}))`,icon:"warning","secondary-color":"currentColor",size:he(Rl)},null,8,["color","size"])):$("",!0),J(" "+V(l.value),1)],!0),O("div",TG,[G(We,{"aria-label":"Close",onClick:a},{default:z(()=>[G(Ie,{color:`var(--grey-600, var(--kui-color-text-neutral, ${he(Ho)}))`,icon:"close",size:he(xt)},null,8,["color","size"])]),_:1})])]),AG])]),"body-content":z(()=>[O("div",OG,[O("div",PG,[F(c.$slots,"body-content",{},()=>[J(V(e.message),1)],!0),e.confirmationText?(k(),S("div",IG,[J(' Type "'),O("span",BG,V(e.confirmationText),1),J('" to confirm your action. '),G(Ss,{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)]),NG])]),"footer-content":z(()=>[O("div",LG,[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?(k(),se(Ie,{key:0,color:`var(--grey-400, var(--kui-color-text-neutral-weak, ${he(Xa)}))`,icon:"spinner",size:he(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"]))}}),$G=Ee(RG,[["__scopeId","data-v-f2763501"]]),HG=["checked"],FG=["id","checked","disabled"],zG={key:0,class:"k-radio-description"},jG=["for"],UG={inheritAttrs:!1},ZG=ge({...UG,__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=>Nk.includes(e)},testMode:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,r=It(),a=I(()=>h.id?String(h.id):n.testMode?"test-radio-input-id-1234":an()),o=I(()=>(h==null?void 0:h.disabled)!==void 0&&String(h==null?void 0:h.disabled)!=="false"),i=I(()=>!!(n.label||r.default)),s=I(()=>!!(n.description||r.description)),l=I(()=>!!r.tooltip),u=I(()=>n.selectedValue===n.modelValue),c=I(()=>n.type==="radio"),d=()=>{t("change",n.selectedValue),t("update:modelValue",n.selectedValue)},h=Xn(),f=I(()=>{const g={...h};return delete g.class,g});return(g,y)=>(k(),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",Ge({id:a.value,checked:u.value},f.value,{class:"k-input",disabled:o.value,type:"radio",onClick:d}),null,16,FG),c.value&&i.value?(k(),se(Ur,Ge({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?(k(),S("div",zG,[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?(k(),S("label",{key:1,for:a.value},[F(g.$slots,"default")],8,jG)):$("",!0)],10,HG))}});var vm;const sy=typeof window<"u",YG=e=>typeof e=="string",ly=()=>{},VG=sy&&((vm=window==null?void 0:window.navigator)==null?void 0:vm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uy(e){return typeof e=="function"?e():he(e)}function KG(e){return e}function GG(e){return pv()?(Yb(e),!0):!1}function Ti(e){var t;const n=uy(e);return(t=n==null?void 0:n.$el)!=null?t:n}const cy=sy?window:void 0;function $c(...e){let t,n,r,a;if(YG(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=cy):[t,n,r,a]=e,!t)return ly;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(c=>c()),o.length=0},s=(c,d,h,f)=>(c.addEventListener(d,h,f),()=>c.removeEventListener(d,h,f)),l=Le(()=>[Ti(t),uy(a)],([c,d])=>{i(),c&&o.push(...n.flatMap(h=>r.map(f=>s(c,h,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return GG(u),u}let gm=!1;function WG(e,t,n={}){const{window:r=cy,ignore:a=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return;VG&&!gm&&(gm=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",ly)));let s=!0;const l=c=>a.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(h=>h===c.target||c.composedPath().includes(h));{const h=Ti(d);return h&&(c.target===h||c.composedPath().includes(h))}}),u=[$c(r,"click",c=>{const d=Ti(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(s=!l(c)),!s){s=!0;return}t(c)}},{passive:!0,capture:o}),$c(r,"pointerdown",c=>{const d=Ti(e);d&&(s=!c.composedPath().includes(d)&&!l(c))},{passive:!0}),i&&$c(r,"blur",c=>{var d;const h=Ti(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>u.forEach(c=>c())}const ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bm="__vueuse_ssr_handlers__";ym[bm]=ym[bm]||{};var wm;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(wm||(wm={}));var qG=Object.defineProperty,km=Object.getOwnPropertySymbols,QG=Object.prototype.hasOwnProperty,XG=Object.prototype.propertyIsEnumerable,Cm=(e,t,n)=>t in e?qG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JG=(e,t)=>{for(var n in t||(t={}))QG.call(t,n)&&Cm(e,n,t[n]);if(km)for(var n of km(t))XG.call(t,n)&&Cm(e,n,t[n]);return e};const eW={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};JG({linear:KG},eW);const tW={class:"k-slideout"},nW={class:"k-slideout-header-content"},rW={key:0,class:"k-slideout-before-title"},aW={class:"k-slideout-main-title"},oW=["title"],iW={key:1,class:"k-slideout-after-title"},sW=["data-testid"],lW={class:"content"},uW=ge({__name:"KSlideout",props:{isVisible:{type:Boolean,default:!1},closeButtonAlignment:{type:String,default:"start",validator:e=>["start","end"].includes(e)},hasOverlay:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},title:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e;Qo(c=>({"08432194":u.value}));const r=It(),a=I(()=>!!r["before-title"]),o=I(()=>!!r["after-title"]),{getSizeFromString:i}=mn(),s=j(null);WG(s,c=>{c.isTrusted&&t("close")});const l=(c,d=!1)=>{(n.isVisible&&c.keyCode===27||d)&&t("close")};ft(()=>{document.addEventListener("keydown",l)}),gr(()=>{document.removeEventListener("keydown",l)});const u=I(()=>i(String(n.offsetTop)));return(c,d)=>(k(),S("div",tW,[G(ja,{name:"fade"},{default:z(()=>[e.isVisible?(k(),S("div",{key:0,class:q(e.hasOverlay?"panel-background":"panel-background-transparent")},null,2)):$("",!0)]),_:1}),G(ja,{name:"slide"},{default:z(()=>[e.isVisible?(k(),S("div",{key:0,ref_key:"slideOutRef",ref:s,class:q(["panel",{"is-visible":e.isVisible,"border-styles":!e.hasOverlay}]),"data-testid":"slideout-panel"},[O("div",nW,[a.value?(k(),S("div",rW,[F(c.$slots,"before-title",{},void 0,!0)])):$("",!0),O("div",aW,[O("p",{class:"k-slideout-title","data-testid":"k-slideout-title",title:e.title},V(e.title),9,oW)]),o.value?(k(),S("div",iW,[F(c.$slots,"after-title",{},void 0,!0)])):$("",!0)]),O("button",{class:q(e.closeButtonAlignment==="start"?"close-button-start":"close-button-end"),"data-testid":e.closeButtonAlignment==="start"?"close-button-start":"close-button-end",onClick:d[0]||(d[0]=h=>t("close"))},[G(Ie,{color:`var(--kui-color-text-neutral-stronger, ${he(Hg)})`,icon:"close",size:he($u)},null,8,["color","size"])],10,sW),O("div",lW,[G(Ah,{"border-variant":"noBorder"},{body:z(()=>[F(c.$slots,"default",{},void 0,!0)]),_:3})])],2)):$("",!0)]),_:3})]))}}),cW=Ee(uW,[["__scopeId","data-v-eb76f306"]]),dW=e=>(Rn("data-v-b19dacc6"),e=e(),$n(),e),hW={class:"k-step-state-icon","data-testid":"k-step-active",fill:"none",viewBox:"0 0 24 24"},fW=dW(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),pW=ge({__name:"KActiveState",props:{title:{type:String,default:"Active"}},setup(e){return(t,n)=>(k(),S("svg",hW,[O("title",null,V(e.title),1),fW]))}}),mW=Ee(pW,[["__scopeId","data-v-b19dacc6"]]),lf=e=>(Rn("data-v-be532e68"),e=e(),$n(),e),vW={class:"k-step-state-icon","data-testid":"k-step-completed",fill:"none",viewBox:"0 0 24 24"},gW=lf(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),yW=lf(()=>O("path",{class:"k-step-icon-primary",d:"M16 9L10 15L7 12.0001"},null,-1)),bW=lf(()=>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)),wW=ge({__name:"KCompletedState",props:{title:{type:String,default:"Completed"}},setup(e){return(t,n)=>(k(),S("svg",vW,[O("title",null,V(e.title),1),gW,yW,bW]))}}),kW=Ee(wW,[["__scopeId","data-v-be532e68"]]),CW=e=>(Rn("data-v-7f1024a4"),e=e(),$n(),e),EW={class:"k-step-state-icon","data-testid":"k-step-default",fill:"none",viewBox:"0 0 24 24"},xW=CW(()=>O("circle",{cx:"12.375",cy:"12",r:"11","stroke-width":"2"},null,-1)),SW=ge({__name:"KDefaultState",props:{title:{type:String,default:"Default"}},setup(e){return(t,n)=>(k(),S("svg",EW,[O("title",null,V(e.title),1),xW]))}}),_W=Ee(SW,[["__scopeId","data-v-7f1024a4"]]),dy=e=>(Rn("data-v-d93db193"),e=e(),$n(),e),DW={class:"k-step-state-icon","data-testid":"k-step-error",fill:"none",viewBox:"0 0 24 24"},MW=dy(()=>O("circle",{class:"k-step-icon-primary",cx:"12",cy:"12",r:"12"},null,-1)),TW=dy(()=>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)),AW=ge({__name:"KErrorState",props:{title:{type:String,default:"Error"}},setup(e){return(t,n)=>(k(),S("svg",DW,[O("title",null,V(e.title),1),MW,TW]))}}),OW=Ee(AW,[["__scopeId","data-v-d93db193"]]),PW=e=>(Rn("data-v-e3d948f6"),e=e(),$n(),e),IW={class:"k-step-spinner"},BW={class:"k-step-state-icon","data-testid":"k-step-pending",viewBox:"0 0 50 50"},NW=PW(()=>O("circle",{cx:"25",cy:"25",fill:"none",r:"20","stroke-width":"5"},null,-1)),LW=ge({__name:"KPendingState",props:{title:{type:String,default:"Pending"}},setup(e){return(t,n)=>(k(),S("div",IW,[(k(),S("svg",BW,[J(V(e.title)+" ",1),NW]))]))}}),RW=Ee(LW,[["__scopeId","data-v-e3d948f6"]]),$W={class:"k-step-state"},HW=ge({__name:"KStepState",props:{state:{type:String,default:"default",required:!1,validator:e=>l2.includes(e)}},setup(e){const t=e,n=I(()=>{let r=_W;switch(t.state){case"active":r=mW;break;case"completed":r=kW;break;case"error":r=OW;break;case"pending":r=RW;break}return r});return(r,a)=>(k(),S("div",$W,[(k(),se(va(n.value)))]))}}),FW=Ee(HW,[["__scopeId","data-v-0c4d4434"]]),zW={class:"k-step"},jW=ge({__name:"KStep",props:{label:{type:String,required:!0},state:{type:String,default:"default",validator:e=>l2.includes(e)},maxLabelWidth:{type:String,default:"170"}},setup(e){const t=e,{getSizeFromString:n}=mn(),r=I(()=>({maxWidth:n(t.maxLabelWidth)}));return(a,o)=>(k(),S("li",zW,[O("div",{class:q(["k-step-container",{completed:e.state==="completed"}])},[G(FW,{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)]))}}),UW=Ee(jW,[["__scopeId","data-v-b79ad9dc"]]),ZW={key:0,class:"k-stepper"},YW=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?(k(),S("ol",ZW,[(k(!0),S(Ae,null,ot(e.steps,r=>(k(),se(UW,{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)}}),VW=Ee(YW,[["__scopeId","data-v-5beeaa04"]]),KW={class:"k-table-container"},GW={key:0,class:"k-table-toolbar","data-testid":"k-table-toolbar"},WW={key:2,class:"k-table-error-state","data-testid":"k-table-error-state"},qW={key:3,class:"k-table-empty-state","data-testid":"k-table-empty-state"},QW=["data-tableid"],XW=["aria-sort","onClick"],JW={class:"k-table-headers-container"},eq=["role","tabindex"],{clientSideSorter:tq}=mn(),Em=(e,t,n,r)=>tq(e,t,n,r),nq=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=>Tk.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=>Mk.includes(e)},hidePaginationWhenOptional:{type:Boolean,default:!1},testMode:{type:String,default:void 0,validator:e=>Ak.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}=mn(),i=Xn(),s=It(),l=I(()=>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([]),M=j(!1),B=j(!1),L=j(!1),D=I(()=>!!s.toolbar),x=ne=>`column-${ne}`,C=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,ct)=>{if(ct.indexOf(ne)===0){const Ye=ct.split(ne);Ce[Ye[1]]=Ne=>ue[ct](Ne,me,Oe)}return Ce},{})},T=I(()=>(ne,ke)=>{const me=A("onRow:",i)(ke,"row"),Oe=A("onCell:",i)(ne,"cell"),X=["a","button","input","select"];return me.click&&(M.value=!0),{...me,...Oe,click(ue){const Ce=ue.target.className;let ct=X.includes(ue.target.tagName.toLowerCase()),Ye=!1;typeof Ce=="string"||Array.isArray(Ce)?Ye=Ce.includes("k-popover"):typeof Ce=="object"&&(Ye=Object.keys(Ce).includes("k-popover")),ue.target.closest(".k-popover-content")!==null&&(Ye=!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&&Em(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),B.value=!0},oe=I(()=>w.value[g.value-1]),Q=I(()=>{if(!n.fetcher||!B.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),Ze=Re(0),{data:ze,error:fe,revalidate:$e,isValidating:De}=a(()=>Q.value,()=>ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:Ue,hasData:U,swrvState:R}=o(ze,fe,De),K=j(!0),H=I(()=>({hasData:U.value,state:Ue.value})),te=I(()=>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}):Em(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=I(()=>({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=I(()=>!!(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(Ue,()=>{switch(Ue.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===""?Ze(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),B.value&&!N.value&&(Pe.value=!0,Oe!==""&&Oe!==me?await E():await P(),Pe.value=!1)},{deep:!0,immediate:!0}),ft(()=>{ae()}),(ne,ke)=>(k(),S("div",KW,[D.value?(k(),S("div",GW,[F(ne.$slots,"toolbar",{state:H.value},void 0,!0)])):$("",!0),(!e.testMode||e.testMode==="loading")&&(K.value||e.isLoading||Pe.value)&&!e.hasError?(k(),se(Oh,{key:1,"data-testid":"k-table-skeleton",type:"table"})):e.hasError?(k(),S("div",WW,[F(ne.$slots,"error-state",{},()=>[G(us,{"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?(k(),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?(k(),S("div",qW,[F(ne.$slots,"empty-state",{},()=>[G(us,{"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?(k(),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)])):(k(),S("section",{key:4,class:"k-table-wrapper",onScrollPassive:ce},[O("table",{class:q(["k-table",{"has-hover":e.hasHover,"is-clickable":M.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})},[(k(!0),S(Ae,null,ot(d.value,(me,Oe)=>(k(),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",JW,[F(ne.$slots,x(me.key),{column:C(me)},()=>[O("span",{class:q({"sr-only":me.hideLabel})},V(me.label?me.label:me.key),3)],!0),!e.disableSorting&&!me.hideLabel&&me.sortable?(k(),se(Ie,{key:0,"aria-hidden":"true",class:"caret",color:`var(--KTableColor, var(--black-70, var(--kui-color-text, ${he(L7)})))`,icon:"chevronDown",size:he(ks)},null,8,["color","size"])):$("",!0)])],10,XW))),128))],2)],2),O("tbody",null,[(k(!0),S(Ae,null,ot(c.value,(me,Oe)=>(k(),S("tr",Ge(e.rowAttrs(me),{key:`k-table-${l.value}-row-${Oe}`,role:M.value?"link":null,tabindex:M.value?0:null},ld(e.hasSideBorder?T.value(me,me):{},!0)),[(k(!0),S(Ae,null,ot(d.value,(X,ue)=>(k(),S("td",Ge(e.cellAttrs({headerKey:X.key,row:me,rowIndex:Oe,colIndex:ue}),{key:`k-table-${l.value}-cell-${ue}`},ld(T.value(me[X.key],me),!0)),[F(ne.$slots,X.key,{row:C(me),rowKey:Oe,rowValue:me[X.key]},()=>[J(V(me[X.key]),1)],!0)],16))),128))],16,eq))),128))])],10,QW),be.value?(k(),se(Ph,{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))]))}}),rq=Ee(nq,[["__scopeId","data-v-f15c4906"]]),aq={class:"k-tabs"},oq={"aria-label":"Tabs",role:"tablist"},iq=["id","aria-controls","aria-selected","role","onClick","onKeydown"],sq=["id","aria-labelledby"],lq=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)=>(k(),S("div",aq,[O("ul",oq,[(k(!0),S(Ae,null,ot(e.tabs,(s,l)=>(k(),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(Tt(u=>a(s.hash),["prevent"]),["enter"]),jt(Tt(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,iq))),128))]),e.hasPanels?(k(!0),S(Ae,{key:0},ot(e.tabs,(s,l)=>(k(),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,sq))),128)):$("",!0)]))}}),uq=Ee(lq,[["__scopeId","data-v-2ddf6190"]]),cq=["cols","rows","value"],dq={key:1,class:"k-textarea"},hq={class:"text-on-input"},fq=["for"],pq={key:0,class:"is-required"},mq=["id","aria-invalid","cols","rows","value"],vq={key:2,class:"k-textarea"},gq=["id","aria-invalid","cols","rows","value"],yq={inheritAttrs:!1},bq=ge({...yq,__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}=mn(),i=I(()=>(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=I(()=>o(n.label,i.value)),d=I(()=>{var b,m;return!!((b=n.labelAttributes)!=null&&b.help||(m=n.labelAttributes)!=null&&m.info||a["label-tooltip"])}),h=I({get(){return n.modelValue},set(b){v({target:{value:b}})}}),f=I(()=>r.id?String(r.id):n.testMode?"test-textArea-id-1234":an()),g=I(()=>{const b={...r};return delete b.class,b}),y=I(()=>!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)=>(k(),S("div",{class:q(["k-input-wrapper",[b.$attrs.class,{"input-error":e.hasError||y.value}]])},[e.label?e.label&&e.overlayLabel?(k(),S("div",dq,[O("div",hq,[O("label",Ge(e.labelAttributes,{class:{focused:l.value,hovered:u.value},for:f.value}),[O("span",null,V(c.value),1),i.value?(k(),S("span",pq,"*")):$("",!0)],16,fq),O("textarea",Ge(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,mq)])])):(k(),S("div",vq,[G(Ur,Ge({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",Ge(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,gq)])):(k(),S("textarea",Ge({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,cq)),e.disableCharacterLimit?$("",!0):(k(),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))}}),wq=Ee(bq,[["__scopeId","data-v-02ecb1b8"]]),kq={class:"message"},Cq=ge({__name:"KToaster",props:{toasterState:{type:Array,default:[],required:!0}},emits:["close"],setup(e){return(t,n)=>(k(),se(W4,{class:"toaster-container-outer",name:"toaster",tag:"div"},{default:z(()=>[(k(!0),S(Ae,null,ot(e.toasterState,r=>(k(),S("div",{key:r.key,class:"toaster-item"},[G(jg,{appearance:r.appearance,"dismiss-type":"icon","has-left-border":"",onClosed:a=>t.$emit("close",r.key)},{alertMessage:z(()=>[O("div",kq,V(r.message),1)]),_:2},1032,["appearance","onClosed"])]))),128))]),_:1}))}}),hy=Ee(Cq,[["__scopeId","data-v-b9facd38"]]),Eq=Object.keys(c2),Hc={id:"toaster-container",timeout:5e3,appearance:c2.info};class xq{constructor(t=Hc.id,n=Hc.timeout,r=Hc.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=Te(hy,{toasterState:this.toasters.value,onClose:r=>this.close(r)});mg(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&&Eq.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 Sq=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`)),()=>Te(ti,{...e,...t,...r},n)}});/*! * vue-draggable-next v2.2.0 @@ -516,7 +516,7 @@ Kongponent Docs: https://kongponents.konghq.com/components/tooltip.html`)),()=>T * @author RubaXa * @author owenm * @license MIT - */function xm(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 Mq(e,t){if(e==null)return{};var n=Dq(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 Tq="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),Is=Nr(/Edge/i),Sm=Nr(/firefox/i),Gi=Nr(/safari/i)&&!Nr(/chrome/i)&&!Nr(/android/i),fy=Nr(/iP(ad|od|hone)/i),Aq=Nr(/chrome/i)&&Nr(/android/i),py={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Vr&&py)}function nt(e,t,n){e.removeEventListener(t,n,!Vr&&py)}function au(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 Oq(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&&au(e,t):au(e,t))||r&&e===n)return e;if(e===n)break}while(e=Oq(e))}return null}var _m=/\s+/g;function gn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_m," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_m," ")}}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 my(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=Mq(n,Hq);Bs.pluginEvent.bind(Fe)(e,t,mr({dragEl:pe,parentEl:_t,ghostEl:Ve,rootEl:kt,nextEl:Da,lastDownEl:gl,cloneEl:Dt,cloneHidden:oa,dragStarted:Ai,putSortable:Zt,activeSortable:Fe.active,originalEvent:r,oldIndex:bo,oldDraggableIndex:qi,newIndex:yn,newDraggableIndex:aa,hideGhostForTarget:Cy,unhideGhostForTarget:Ey,cloneNowHidden:function(){oa=!0},cloneNowShown:function(){oa=!1},dispatchSortableEvent:function(o){Jt({sortable:t,name:o,originalEvent:r})}},a))};function Jt(e){$q(mr({putSortable:Zt,cloneEl:Dt,targetEl:pe,rootEl:kt,oldIndex:bo,oldDraggableIndex:qi,newIndex:yn,newDraggableIndex:aa},e))}var pe,_t,Ve,kt,Da,gl,Dt,oa,bo,yn,qi,aa,Xs,Zt,go=!1,ou=!1,iu=[],Ca,jn,jc,Uc,Tm,Am,Ai,ho,Qi,Xi=!1,Js=!1,yl,Gt,Zc=[],B0=!1,su=[],ec=typeof document<"u",el=fy,Om=Is||Vr?"cssFloat":"float",Fq=ec&&!Aq&&!fy&&"draggable"in document.createElement("div"),by=function(){if(ec){if(Vr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),wy=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[Om]==="none"||o&&n[Om]==="none"&&l+u>r)?"vertical":"horizontal"},zq=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},jq=function(e,t){var n;return iu.some(function(r){var a=r[kn].options.emptyInsertThreshold;if(!(!a||uf(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},ky=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||vl(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},Cy=function(){!by&&Ve&&He(Ve,"display","none")},Ey=function(){!by&&Ve&&He(Ve,"display","")};ec&&document.addEventListener("click",function(e){if(ou)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ou=!1,!1},!0);var Ea=function(e){if(pe){e=e.touches?e.touches[0]:e;var t=jq(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[kn]._onDragOver(n)}}},Uq=function(e){pe&&pe.parentNode[kn]._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[kn]=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 wy(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&&!Gi,emptyInsertThreshold:5};Bs.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);ky(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:Fq,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)),iu.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Hr(this,Nq())}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,pe):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(Qq(n),!pe&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Gi&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=rr(s,r.draggable,n,!1),!(s&&s.animated)&&gl!==s)){if(bo=Mn(s),qi=Mn(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&&!pe&&n.parentNode===a){var l=Rt(n);if(kt=a,pe=n,_t=pe.parentNode,Da=pe.nextSibling,gl=n,Xs=o.group,Fe.dragged=pe,Ca={target:pe,clientX:(t||e).clientX,clientY:(t||e).clientY},Tm=Ca.clientX-l.left,Am=Ca.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,pe.style["will-change"]="all",s=function(){if(un("delayEnded",r,{evt:e}),Fe.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Sm&&r.nativeDraggable&&(pe.draggable=!0),r._triggerDragStart(e,t),Jt({sortable:r,name:"choose",originalEvent:e}),gn(pe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){my(pe,u.trim(),Yc)}),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),Sm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,pe.draggable=!0),un("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Is||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(){pe&&Yc(pe),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(pe,"dragend",this),it(kt,"dragstart",this._onDragStart));try{document.selection?bl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(go=!1,kt&&pe){un("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",Uq);var n=this.options;!e&&gn(pe,n.dragClass,!1),gn(pe,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Jt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(jn){this._lastX=jn.clientX,this._lastY=jn.clientY,Cy();for(var e=document.elementFromPoint(jn.clientX,jn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(jn.clientX,jn.clientY),e!==t);)t=e;if(pe.parentNode[kn]._isOutsideThisEl(e),t)do{if(t[kn]){var n=void 0;if(n=t[kn]._onDragOver({clientX:jn.clientX,clientY:jn.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ey()}},_onTouchMove:function(e){if(Ca){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,o=Ve&&So(Ve,!0),i=Ve&&o&&o.a,s=Ve&&o&&o.d,l=el&&Gt&&Mm(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()):yn!==bo&&yn>=0&&(Jt({sortable:this,name:"update",toEl:_t,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),Fe.active&&((yn==null||yn===-1)&&(yn=bo,aa=qi),Jt({sortable:this,name:"end",toEl:_t,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){un("nulling",this),kt=pe=_t=Ve=Da=Dt=gl=oa=Ca=jn=Ai=yn=aa=bo=qi=ho=Qi=Zt=Xs=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,su.forEach(function(e){e.checked=!0}),su.length=jc=Uc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":pe&&(this._onDragOver(e),Zq(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 Gq(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&&ylc+u*o/2:ld-yl)return-Qi}else if(l>c+u*(1-a)/2&&ld-u*o/2)?l>c+u/2?1:-1:0}function Wq(e){return Mn(pe)e.replace(nQ,(t,n)=>n?n.toUpperCase():""));function Wc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Bm(e,t,n){const r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function rQ(e,t){return Object.values(e).indexOf(t)}function aQ(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 Sy(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function oQ(e){return t=>{this.realList!==null&&this["onDrag"+e](t),Sy.call(this,e,t)}}function iQ(e){return["transition-group","TransitionGroup"].includes(e)}function sQ(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?iQ(t.name):!1}function lQ(e,t){return t?{...t.props,...t.attrs}:e}const $0=["Start","Add","Remove","Update","End"],H0=["Choose","Unchoose","Sort","Filter","Clone"],uQ=["Move",...$0,...H0].map(e=>"on"+e);let qc=null;const cQ={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}},dQ=ge({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...$0.map(e=>e.toLowerCase()),...H0.map(e=>e.toLowerCase())],props:cQ,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=lQ(this.$attrs,this.componentData);return e?(this.transitionMode=sQ(e),Te(this.getTag(),t,e)):Te(this.getTag(),t,[])},created(){this.list!==null&&this.modelValue!==null&&eQ.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};$0.forEach(a=>{e["on"+a]=oQ.call(this,a)}),H0.forEach(a=>{e["on"+a]=Sy.bind(this,a)});const t=Object.keys(this.$attrs).reduce((a,o)=>(a[Im(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=Im(t);uQ.indexOf(n)===-1&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=aQ(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=rQ(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),qc=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;Wc(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(Bm(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){Wc(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){Wc(e.item),Bm(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(),qc=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(qc)!==-1||!t.willInsertAfter?a:a+1}}}),hQ=["data-testid","onClick"],fQ={key:0,class:"k-tree-item-icon","data-testid":"k-tree-item-icon"},pQ={class:"k-tree-item-label","data-testid":"k-tree-item-label"},hf=e=>e.every(t=>{var n;return t.name!==void 0&&t.id!==void 0&&(!((n=t.children)!=null&&n.length)||hf(t.children))}),mQ=ge({__name:"KTreeItem",props:{item:{type:Object,required:!0,validator:e=>hf([e])},disabled:{type:Boolean,default:!1}},emits:["selected"],setup(e,{emit:t}){const n=e,r=It(),a=I(()=>n.item.icon!=="none"||!!r["item-icon"]),o=I(()=>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, ${$g}))`},s=()=>{t("selected",n.item)};return(l,u)=>(k(),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:Tt(s,["prevent"])},[a.value?(k(),S("div",fQ,[F(l.$slots,"item-icon",{},()=>[G(Ie,{icon:o.value,"secondary-color":i,size:he(Rl)},null,8,["icon","size"])],!0)])):$("",!0),O("div",pQ,[F(l.$slots,"item-label",{},()=>[J(V(e.item.name),1)],!0)])],10,hQ))}}),vQ=Ee(mQ,[["__scopeId","data-v-8ad5e7b2"]]),ff=({children:e=[]})=>e.length===0?0:1+Math.max(...e.map(ff)),gQ=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, ${$g}))`},c=w=>{var M,B;return!((B=(M=a.value.filter(L=>L.id===w.id))==null?void 0:M[0].children)!=null&&B.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=I(()=>n.level>n.maxDepth-1),v=w=>{var M,B,L,D;const x=((B=(M=w.relatedContext)==null?void 0:M.component)==null?void 0:B.$attrs.level)||0,C=(L=w.draggedContext)==null?void 0:L.element;let A=0;return(D=C.children)!=null&&D.length&&(A=ff(C)),!(x+A>n.maxDepth-1)},p=w=>{var M,B;const L=((B=(M=w.item)==null?void 0:M._underlying_vm_)==null?void 0:B.id)||"",D=a.value.find(x=>x.id===L);i.value=!0,D&&t("selected",D),m(!0)},b=()=>{i.value=!1,m(!1),r.value++},m=w=>{const M=document==null?void 0:document.getElementsByTagName("html").item(0);M&&M.classList.toggle("k-tree-list-grabbing",w)};return Le(()=>n.items,(w,M)=>{JSON.stringify(w)!==JSON.stringify(M)&&(a.value=w,a.value.forEach(B=>{B.children||(B.children=[])}))}),ft(()=>{a.value=n.items,a.value.forEach(w=>{w.children||(w.children=[])})}),(w,M)=>{const B=Gn("KTreeDraggable",!0);return k(),se(he(dQ),Ge(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(()=>[(k(!0),S(Ae,null,ot(a.value,L=>(k(),S("div",{key:L.id,class:q(["k-tree-item-container",{"has-no-children":c(L)}])},[(k(),se(vQ,{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"?(k(),se(Ie,{key:0,icon:L.icon?L.icon:"documentList","secondary-color":u(L),size:he($u)},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"])),(k(),se(B,{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:D})=>[F(w.$slots,"item-icon",{item:D},void 0,!0)]),[l]:z(({item:D})=>[F(w.$slots,"item-label",{item:D},void 0,!0)]),_:2},1032,["disable-drag","items","level","max-depth","parent-id"]))],2))),128))]),_:3},16,["disabled","group","level","list"])}}}),yQ=Ee(gQ,[["__scopeId","data-v-e7acd9b9"]]),_y=(e,t)=>(e.forEach(n=>{var r;t.push(n.id),(r=n.children)!=null&&r.length&&_y(n.children,t)}),t),bQ=e=>{const t=_y(e,[]),n=new Set(t);return t.length===n.size},wQ=(e,t)=>{let n=!0;return e.forEach(r=>{n=n&&(!r.children||ff(r)<=t)}),n},Nm=e=>hf(e)&&bQ(e),kQ=ge({__name:"KTreeList",props:{modelValue:{type:Array,default:null,validator:e=>!e.length||Nm(e)},items:{type:Array,default:null,validator:e=>!e.length||Nm(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=I({get(){return n.modelValue},set(c){r.value=c}}),{getSizeFromString:o}=mn(),i=I(()=>({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),wQ(r.value,n.maxDepth)||console.warn("KTreeList: Provided list depth exceeds `maxDepth`"),r.value.forEach(c=>{c.children||(c.children=[])})}),(c,d)=>(k(),S("div",{class:"k-tree-list","data-testid":"k-tree-list",style:Et(e.width?i.value:void 0)},[G(yQ,{"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))}}),CQ={class:"icon"},EQ={class:"dots"},xQ={class:"lines"},SQ=ge({__name:"KViewSwitcher",props:{view:{type:String,default:"table",required:!0,validator:e=>Uk.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)=>(k(),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",CQ,[O("div",EQ,[(k(),S(Ae,null,ot(4,s=>O("i",{key:s})),64))]),O("div",xQ,[(k(),S(Ae,null,ot(4,s=>O("i",{key:s})),64))])])]),_:1},8,["class","title"]))}}),_Q=Ee(SQ,[["__scopeId","data-v-6e32a59a"]]),Lm=e=>{try{return new URL(e),!0}catch{return!1}},DQ=["href"],MQ=ge({__name:"KExternalLink",props:{href:{type:String,required:!0,validator:e=>!!Lm(e)},hideIcon:{type:Boolean,default:!1}},setup(e){const t=e,n=I(()=>!!Lm(t.href)),r=j(!1),a=I(()=>r.value?`var(--KExternalLinkColorHover, var(--blue-600, var(--kui-color-text-primary-strong, ${F7})))`:`var(--KExternalLinkColor, var(--kui-color-text-primary, ${Ll}))`);return(o,i)=>{const s=Gn("KIcon");return n.value?(k(),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):(k(),se(s,{key:0,color:a.value,icon:"externalLink",size:"12"},null,8,["color"]))],40,DQ)):$("",!0)}}}),TQ=Ee(MQ,[["__scopeId","data-v-27871540"]]),AQ={key:0,class:"k-truncate-expand-controls"},OQ={key:0,"data-testid":"expand-trigger-wrapper"},PQ={key:0,"data-testid":"collapse-trigger-wrapper"},IQ={key:0,"data-testid":"expand-trigger-wrapper"},BQ={key:1},NQ=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;Qo(p=>({b2b587b4:u.value,"1d00c262":he(c),c3af62ea:t.rows}));const{getSizeFromString:n}=mn(),r=j(t.isExpanded),a=j(!1),o=j(),i=j(),s=j(),l=j(),u=j("0px"),c=l9,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 B=0;Bw?b[B].offsetHeight:w;const M=(t.rows===1?0:(t.rows-1)*m)+w*t.rows+6;u.value=i.value.offsetHeight>M?`${M}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=I(()=>({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 k(),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?(k(),S("div",AQ,[r.value?$("",!0):(k(),S("div",OQ,[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?(k(),S("div",PQ,[F(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"primary",class:"collapse-trigger","is-rounded":"",onClick:y},{default:z(()=>[G(Ie,{color:`var(--KTruncateCollapseIconColor, var(--blue-500, var(--kui-color-text-primary, ${he(Ll)})))`,icon:"chevronUp",size:he(Fg),title:"Show less"},null,8,["color","size"])]),_:1})],!0)])):$("",!0)],512),e.isTextContent&&(a.value||r.value)?(k(),S("div",{key:1,ref_key:"textToggleControls",ref:l,class:"k-truncate-collapse-controls"},[r.value?$("",!0):(k(),S("div",IQ,[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?(k(),S("div",BQ,[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)}}}),LQ=Ee(NQ,[["__scopeId","data-v-791c716f"]]),RQ={key:0},$Q=ge({__name:"KMethodBadge",props:{method:{type:String,required:!0,validator:e=>jk.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;Qo(s=>({"4851d9e3":o.value[e.method].color}));const r=j(n.modelValue),a=I(()=>n.label||n.method.toUpperCase()),o=I(()=>({get:{color:`var(--petrol-200, var(--kui-method-color-text-get, ${t9}))`,backgroundColor:`var(--petrol-100, var(--kui-method-color-background-get, ${V7}))`},post:{color:`var(--green-700, var(--kui-method-color-text-post, ${o9}))`,backgroundColor:`var(--green-100, var(--kui-method-color-background-post, ${q7}))`},put:{color:`var(--yellow-600, var(--kui-method-color-text-put, ${i9}))`,backgroundColor:`var(--yellow-100, var(--kui-method-color-background-put, ${Q7}))`},patch:{color:`var(--teal-500, var(--kui-method-color-text-patch, ${a9}))`,backgroundColor:`var(--teal-100, var(--kui-method-color-background-patch, ${W7}))`},delete:{color:`var(--red-700, var(--kui-method-color-text-delete, ${e9}))`,backgroundColor:`var(--red-100, var(--kui-method-color-background-delete, ${Y7}))`},head:{color:`var(--yellow-600, var(--kui-method-color-text-head, ${n9}))`,backgroundColor:`var(--yellow-200, var(--kui-method-color-background-head, ${K7}))`},options:{color:`var(--steel-700, var(--kui-method-color-text-options, ${r9}))`,backgroundColor:`var(--steel-200, var(--kui-method-color-background-options, ${G7}))`},trace:{color:`var(--white, var(--kui-method-color-text-trace, ${s9}))`,backgroundColor:`var(--steel-500, var(--kui-method-color-background-trace, ${X7}))`},connect:{color:`var(--purple-400, var(--kui-method-color-text-connect, ${J7}))`,backgroundColor:`var(--purple-100, var(--kui-method-color-background-connect, ${Z7}))`},custom:{color:`var(--white, var(--kui-color-text-inverse, ${Ru}))`,backgroundColor:`var(--steel-500, var(--kui-color-background-neutral-strong, ${N7}))`}})),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 k(),se(c,Ge({"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"},ld({click:e.isToggle?i:void 0})),{default:z(()=>[e.isToggle?$("",!0):(k(),S("span",RQ,V(a.value),1)),e.isToggle?(k(),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"])}}}),HQ=Ee($Q,[["__scopeId","data-v-65b300cb"]]),Rm=Object.freeze(Object.defineProperty({__proto__:null,KAlert:jg,KBadge:Di,KBreadcrumbs:d2,KButton:We,KCard:Ah,KCatalog:bx,KCatalogItem:f2,KCheckbox:xx,KClipboardProvider:z6,KCodeBlock:tS,KCollapse:sS,KComponent:Ep,KDateTimePicker:vV,KDropdownItem:q5,KDropdownMenu:kV,KEmptyState:us,KExternalLink:TQ,KFileUpload:_V,KIcon:Ie,KInlineEdit:OV,KInput:Ss,KInputSwitch:jV,KLabel:Ur,KMenu:rK,KMenuItem:X5,KMethodBadge:HQ,KModal:oy,KModalFullscreen:nG,KMultiselect:_G,KPagination:Ph,KPop:ei,KPrompt:$G,KRadio:ZG,KSegmentedControl:W5,KSelect:h2,KSkeleton:Oh,KSkeletonBox:Mt,KSlideout:cW,KStepper:VW,KTable:rq,KTabs:uq,KTextArea:wq,KToaster:hy,KToggle:Lu,KTooltip:ti,KTreeList:kQ,KTruncate:LQ,KViewSwitcher:_Q,Komponent:Ep,Kooltip:Sq,Krumbs:pC,ToastManager:xq},Symbol.toStringTag,{value:"Module"})),FQ={install:e=>{for(const t in Rm)e.component(t,Rm[t])}};function zQ(e,t){return async n=>{const r=mg(n);return r.use(e,gg),r.use(t),r.use(FQ),r}}function jQ(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap")]):e.state.defaultVisibility.appError=!1}}const UQ=e=>{const t=(n,r)=>typeof e[n]<"u"?e[n](t,r):!1;return t};var Qc=new WeakMap,Dy=new Map,ZQ=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 YQ=class{constructor(e){this.impl=e,this.type=Va.Constant}},VQ=class{constructor(e){this.impl=e,this.type=Va.Factory}},KQ=e=>e.type===Va.Factory,tc=class{constructor(e){this.impl=e,this.type=Va.Instance}},GQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Container,this.cache=new WeakMap}},WQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Resolution}},qQ=class extends tc{constructor(e){super(e),this.impl=e,this.scope=Fr.Singleton}},QQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Transient}},XQ=e=>e.type===Va.Instance,JQ=e=>e.scope===Fr.Container,eX=e=>e.scope===Fr.Resolution,tX=e=>e.scope===Fr.Singleton,nX=e=>Symbol(e),Ue=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},Ii=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=Ii.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))}},My=Ii;My.notag=nX("NO_TAG");var rX=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 Ty){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 XQ(e)?tX(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):JQ(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):eX(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):KQ(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(a=>kl.resolveInitialization(a,n,e.impl.initializer)):kl.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=Qc.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const a=e(...n);return Qc.set(e,!0),a}catch{const o=new e(...n);return Qc.set(e,!1),o}}getParameters(e,t){const n=Dy.get(e);if(n)return this.resolveTokens(n,t,ZQ.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}},lX=()=>new kl,uX=(e,...t)=>(Dy.set(e,t),e),hne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dX=function(t){return hX(t)&&!fX(t)};function hX(e){return!!e&&typeof e=="object"}function fX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||vX(e)}var pX=typeof Symbol=="function"&&Symbol.for,mX=pX?Symbol.for("react.element"):60103;function vX(e){return e.$$typeof===mX}function gX(e){return Array.isArray(e)?[]:{}}function vs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ko(gX(e),e,t):e}function yX(e,t,n){return e.concat(t).map(function(r){return vs(r,n)})}function bX(e,t){if(!t.customMerge)return Ko;var n=t.customMerge(e);return typeof n=="function"?n:Ko}function wX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $m(e){return Object.keys(e).concat(wX(e))}function Ay(e,t){try{return t in e}catch{return!1}}function kX(e,t){return Ay(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function CX(e,t,n){var r={};return n.isMergeableObject(e)&&$m(e).forEach(function(a){r[a]=vs(e[a],n)}),$m(t).forEach(function(a){kX(e,a)||(Ay(e,a)&&n.isMergeableObject(t[a])?r[a]=bX(a,n)(e[a],t[a],n):r[a]=vs(t[a],n))}),r}function Ko(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||yX,n.isMergeableObject=n.isMergeableObject||dX,n.cloneUnlessOtherwiseSpecified=vs;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):CX(e,t,n):vs(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 EX=Ko,xX=EX;const SX=cX(xX),pf=lX(),_X=(...e)=>[...new Map([...e.flat()]).entries()],DX=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=Ue("inner"),u=Ue("inner.wrapper");t.set(l,{...s}),t.set(u,{service:()=>()=>Ns(l)}),t.set(a,{...r,arguments:[u],labels:i})}r.decorates=void 0}}),[...t.entries()]},Ns=e=>pf.get(e),MX=(...e)=>(DX(_X(...e)).forEach(n=>Oy(...n)),Ns),TX=(...e)=>e.map(t=>()=>Ns(t)),nl=new WeakMap,Oy=(e,t)=>{const n=pf.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=>{nl.has(r)||(nl.set(r,[]),Oy(r,{service:()=>nl.get(r).reduce((o,i)=>{const s=Ns(i);return Array.isArray(s)?o.concat(s):s instanceof Object?SX(o,s):o},[])})),nl.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}]`)}),uX(t.service,...t.arguments))},AX=(e,t)=>{const n=Ue(t.description);return pf.bind(n).toConstant(e),n},uu={can:Ue("application.can"),features:Ue("application.can.features")},OX=e=>[[uu.can,{service:UQ,arguments:[uu.features]}]],PX=uu,[fne]=TX(uu.can);var Ji=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"}},IX=/[$_\p{ID_Start}]/u,BX=/[$_\u200C\u200D\p{ID_Continue}]/u,z0=".*";function NX(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function Py(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:M}=n[i];throw new TypeError(`Unexpected ${w} at ${M}, 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 Ji(3,"","",f(g),"",3)),g="")},p=(b,m,w,M,B)=>{let L=3;switch(B){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 Ji(3,"","",f(b),"",L));return}let D;w?w==="*"?D=z0:D=w:D=r;let x=2;D===r?(x=1,D=""):D===z0&&(x=0,D="");let C;if(m?C=m:w&&(C=o++),s.has(C))throw new TypeError(`Duplicate name '${C}'.`);s.add(C),a.push(new Ji(x,C,f(b),D,f(M),L))};for(;i-1)}return i||(r+=`(?=${o}|${a})`),new RegExp(r,Hm(n))}var ta={delimiter:"",prefixes:"",sensitive:!0,strict:!0},RX={delimiter:".",prefixes:"",sensitive:!0,strict:!0},$X={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function HX(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Ny(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function FX(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function Ly(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var Ry=["ftp","file","http","https","ws","wss"];function $y(e){if(!e)return!0;for(let t of Ry)if(e.test(t))return!0;return!1}function zX(e,t){if(e=Ny(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 jX(e,t){if(e=Ny(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 UX(e,t){return t||e===""?e:Ly(e)?zy(e):Fy(e)}function ZX(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.password=e,n.password}function YX(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.username=e,n.username}function VX(e,t,n){if(n||e==="")return e;if(t&&!Ry.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 KX(e,t,n){return Hy(t)===e&&(e=""),n||e===""?e:jy(e)}function GX(e,t){return e=FX(e,":"),t||e===""?e:mf(e)}function Hy(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function mf(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function WX(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function qX(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function Fy(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 zy(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function jy(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function QX(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 XX(e){return e===""?e:new URL(`data:${e}`).pathname}function JX(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function eJ(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var Do,en,Ct,mt,La,Mo,Pr,To,Ao,Oo,At,Lt,cu,Uy,ys,j0,Ra,Bi,Po,Cl,dn,Dn,bs,U0,du,Zy,Io,El,hu,Yy,fu,Vy,Bo,xl,ia,yo,Ir,Ma,pu,Ky,mu,Gy,vu,Wy,gu,qy,Tn,nr,yu,Qy,ov,tJ=(ov=class{constructor(e){qe(this,At);qe(this,cu);qe(this,ys);qe(this,Ra);qe(this,Po);qe(this,dn);qe(this,bs);qe(this,du);qe(this,Io);qe(this,hu);qe(this,fu);qe(this,Bo);qe(this,ia);qe(this,Ir);qe(this,pu);qe(this,mu);qe(this,vu);qe(this,gu);qe(this,Tn);qe(this,yu);qe(this,Do,void 0);qe(this,en,[]);qe(this,Ct,{});qe(this,mt,0);qe(this,La,1);qe(this,Mo,0);qe(this,Pr,0);qe(this,To,0);qe(this,Ao,0);qe(this,Oo,!1);$t(this,Do,e)}get result(){return re(this,Ct)}parse(){for($t(this,en,Py(re(this,Do),!0));re(this,mt)0)if(ve(this,mu,Gy).call(this))$t(this,To,re(this,To)-1);else continue;if(ve(this,pu,Ky).call(this)){$t(this,To,re(this,To)+1);continue}switch(re(this,Pr)){case 0:ve(this,bs,U0).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,Bi).call(this,1));break;case 1:if(ve(this,bs,U0).call(this)){ve(this,yu,Qy).call(this);let e=7,t=1;re(this,Oo)&&(re(this,Ct).pathname="/"),ve(this,du,Zy).call(this)?(e=2,t=3):re(this,Oo)&&(e=2),ve(this,At,Lt).call(this,e,t)}break;case 2:ve(this,Io,El).call(this)?ve(this,Ra,Bi).call(this,3):(ve(this,Bo,xl).call(this)||ve(this,ia,yo).call(this)||ve(this,Ir,Ma).call(this))&&ve(this,Ra,Bi).call(this,5);break;case 3:ve(this,hu,Yy).call(this)?ve(this,At,Lt).call(this,4,1):ve(this,Io,El).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 4:ve(this,Io,El).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 5:ve(this,vu,Wy).call(this)?$t(this,Ao,re(this,Ao)+1):ve(this,gu,qy).call(this)&&$t(this,Ao,re(this,Ao)-1),ve(this,fu,Vy).call(this)&&!re(this,Ao)?ve(this,At,Lt).call(this,6,1):ve(this,Bo,xl).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,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 6:ve(this,Bo,xl).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,Ir,Ma).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,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 8:ve(this,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break}}}},Do=new WeakMap,en=new WeakMap,Ct=new WeakMap,mt=new WeakMap,La=new WeakMap,Mo=new WeakMap,Pr=new WeakMap,To=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,Tn,nr).call(this);break;case 2:break;case 3:re(this,Ct).username=ve(this,Tn,nr).call(this);break;case 4:re(this,Ct).password=ve(this,Tn,nr).call(this);break;case 5:re(this,Ct).hostname=ve(this,Tn,nr).call(this);break;case 6:re(this,Ct).port=ve(this,Tn,nr).call(this);break;case 7:re(this,Ct).pathname=ve(this,Tn,nr).call(this);break;case 8:re(this,Ct).search=ve(this,Tn,nr).call(this);break;case 9:re(this,Ct).hash=ve(this,Tn,nr).call(this);break}ve(this,cu,Uy).call(this,e,t)},cu=new WeakSet,Uy=function(e,t){$t(this,Pr,e),$t(this,Mo,re(this,mt)+t),$t(this,mt,re(this,mt)+t),$t(this,La,0)},ys=new WeakSet,j0=function(){$t(this,mt,re(this,Mo)),$t(this,La,0)},Ra=new WeakSet,Bi=function(e){ve(this,ys,j0).call(this),$t(this,Pr,e)},Po=new WeakSet,Cl=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=VX(e.pathname,e.protocol,n)}return typeof t.search=="string"&&(e.search=jX(t.search,n)),typeof t.hash=="string"&&(e.hash=zX(t.hash,n)),e}function Ni(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function nJ(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function rJ(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=`[^${nJ(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+=Ni(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+=Ni(s.suffix),u&&(o+="}"),s.modifier!==3&&(o+=wo(s.modifier))}return o}var ir,$a,No,Ht,sr,iv,Xy=(iv=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 tJ(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,xi({pathname:Jr,protocol:Jr,username:Jr,password:Jr,hostname:Jr,port:Jr,search:Jr,hash:Jr},t,!0)),Hy(re(this,ir).protocol)===re(this,ir).port&&(re(this,ir).port="");let s;for(s of Xc){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=mf;break;case"username":Object.assign(l,ta),l.encodePart=WX;break;case"password":Object.assign(l,ta),l.encodePart=qX;break;case"hostname":Object.assign(l,RX),Ly(u)?l.encodePart=zy:l.encodePart=Fy;break;case"port":Object.assign(l,ta),l.encodePart=jy;break;case"pathname":$y(re(this,$a).protocol)?(Object.assign(l,$X,o),l.encodePart=QX):(Object.assign(l,ta,o),l.encodePart=XX);break;case"search":Object.assign(l,ta,o),l.encodePart=JX;break;case"hash":Object.assign(l,ta,o),l.encodePart=eJ;break}try{re(this,sr)[s]=Iy(u,l),re(this,$a)[s]=By(re(this,sr)[s],re(this,No)[s],l),re(this,Ht)[s]=rJ(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=xi(r,t,!1):r=xi(r,Fm(t,n),!1)}catch{return!1}let a;for(a of Xc)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=xi(r,t,!1):r=xi(r,Fm(t,n),!1)}catch{return null}let a={};n?a.inputs=[t,n]:a.inputs=[t];let o;for(o of Xc){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 Xy({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 oJ{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 iJ{constructor(t,{create:n,destroy:r}){ct(this,"cache",new Map);ct(this,"pool");const a=new aJ(t);this.pool=new oJ(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 sJ=0,lJ=1,Ta=2,uJ=e=>e.readyState===Ta;class cJ extends EventTarget{constructor(n,r={}){super();ct(this,"url","");ct(this,"withCredentials",!1);ct(this,"CONNECTING",sJ);ct(this,"OPEN",lJ);ct(this,"CLOSED",Ta);ct(this,"onerror",null);ct(this,"onmessage",null);ct(this,"onopen",null);ct(this,"readyState",Ta);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===Ta)break;n.readyState=Ta}catch(r){n.dispatchEvent(new ErrorEvent("error",{error:r}))}})(this)}open(){this.readyState!==Ta&&this._open()}close(){this.readyState=Ta}}const dJ=(e,t)=>{const[n,r]=e.split("?"),a=new URLSearchParams(r),o=t.match(n);return new cJ(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),uJ(this)||await new Promise(s=>setTimeout(s,5e3))})},hJ=(e,t)=>{t&&t.close()},fJ={create:dJ,destroy:hJ},pJ=["protocol","service","zone"];function Z0(e){const t=new Map;for(const[n,r]of e){const a=pJ.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 mJ=e=>({"/meshes/:mesh/dataplanes":async(t,n)=>{n.close();const{mesh:r,size:a}=t,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})},"/meshes/:mesh/dataplane-overviews/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getDataplaneOverviewFromMesh({mesh:r,name:a})},"/meshes/: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(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})}}),Lr=50,Y0=500,zm="Disabled",vne="kuma.io/zone";function Ft(e,t=0){const n=vJ(e);return n!==void 0?parseInt(n):t}function vJ(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const gJ=()=>({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-9f3b5196.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./DataPlaneListView-fdf93228.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-f3e13ebd.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./PolicyTypeTag-ec10d2a9.css","./TagList-d344db8e.css","./CopyButton-1cf75ef1.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./TextWithCopyButton-a5db4e55.css","./DataPlaneDetailView-a94fe2a6.css"],import.meta.url)}]}]}),yJ={sources:Ue("mesh.sources")},bJ=e=>[[yJ.sources,{service:mJ,arguments:[e.api],labels:[e.sources]}]],wJ=e=>({"/config":async(t,n)=>(n.close(),await e.getConfig())}),kJ=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>Qe(()=>import("./DiagnosticsView-c6629797.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],CJ={sources:Ue("diagnostics.sources")},EJ=e=>[[CJ.sources,{service:wJ,arguments:[e.api],labels:[e.sources]}]],xJ=e=>({"/meshes/: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})},"/meshes/: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})}}),SJ=()=>({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-fd414d1c.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./GatewayListView-1b0cf5f0.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-f3e13ebd.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./PolicyTypeTag-ec10d2a9.css","./TagList-d344db8e.css","./CopyButton-1cf75ef1.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./TextWithCopyButton-a5db4e55.css","./DataPlaneDetailView-a94fe2a6.css"],import.meta.url)}]}]}),_J={sources:Ue("gateway.sources")},DJ=e=>[[_J.sources,{service:xJ,arguments:[e.api],labels:[e.sources]}]];function MJ(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"}]}function vf(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 vf(e[r[0]],r.slice(1),n)}async function jm(e){try{let t=null,n=0,r=[],a=null;for(;;){const o={size:Y0,offset:n},{total:i,items:s,next:l}=await e(o);if(Array.isArray(s)&&(r=r.concat(s)),t===null&&(t=i),!l||a===l)break;a=l,n+=Y0}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function gne(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const a=JSON.parse(r.config);return vf(a,"dpServer.auth.type",zm)}}return zm}const TJ=e=>({"/all-mesh-insights":(t,n)=>(n.close(),jm(e.getAllMeshInsights.bind(e))),"/all-zone-overviews":(t,n)=>(n.close(),jm(e.getAllZoneOverviews.bind(e)))}),AJ={sources:Ue("main-overview.sources")},OJ=e=>[[AJ.sources,{service:TJ,arguments:[e.api],labels:[e.sources]}]],PJ=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":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return e.getAllMeshInsights({size:r,offset:a})},"/mesh-insights/:name":async(t,n)=>{n.close();const{name:r}=t;return e.getMeshInsights({name:r})}}),IJ=(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-f540dc11.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./MeshListView-2076e6f0.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>Qe(()=>import("./MeshIndexView-6370d7df.js"),["./RouteView-a23fe6a9.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-c79b4d9f.js"),["./RouteView-a23fe6a9.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>Qe(()=>import("./MeshDetailView-1e661f43.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./MeshDetailView-a91ce85e.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")]}]}],BJ={sources:Ue("mesh.sources")},NJ=e=>[[BJ.sources,{service:PJ,arguments:[e.api],labels:[e.sources]}]],LJ=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>Qe(()=>import("./OnboardingView-13f83364.js"),["./RouteView-a23fe6a9.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./WelcomeView-10f4c413.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./WelcomeView-13de7acd.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./DeploymentTypes-7f14040c.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-1fd3474f.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./ConfigurationTypes-e7576fcb.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./MultiZoneView-81f1f626.js"),["./RouteView-a23fe6a9.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-2271f396.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./CreateMesh-eaf572f8.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./AddNewServices-ea61fddc.js"),["./RouteView-a23fe6a9.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-7e82f6b3.js"),["./RouteView-a23fe6a9.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-9ab57ec2.js"),["./RouteView-a23fe6a9.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./CompletedView-11e42628.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],RJ=e=>({"/*/policy-types":(t,n)=>(n.close(),e.getPolicyTypes()),"/meshes/:mesh/policy-path/: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})},"/meshes/:mesh/policy-path/:path/policy/:name":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getSinglePolicyEntity({mesh:r,path:a,name:o})},"/meshes/:mesh/policy-path/:path/policy/:name/dataplanes":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getPolicyConnections({mesh:r,path:a,name:o})}}),$J=()=>({items:(t="policies")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${t}`,redirect:n=>({...n,params:{...n.params,policyPath:"circuit-breakers"},name:"policies-list-view"}),children:[{path:":policyPath",name:`${t}-list-view`,component:()=>Qe(()=>import("./PolicyListView-72cfd89a.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./PolicyTypeTag-ec10d2a9.css","./PolicyListView-c1417016.css"],import.meta.url),props:n=>({page:Ft(n.query.page,1),size:Ft(n.query.size,Lr)})}]}]}],item:(t="policy")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${t==="policy"?":policyPath/":""}:policy`,name:`${t}-detail-view`,component:()=>Qe(()=>import("./PolicyDetailView-8ca0e7e8.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TabsWidget-9c4a5c98.css"],import.meta.url)}]}]}),HJ={sources:Ue("policy.sources")},FJ=e=>[[HJ.sources,{service:RJ,arguments:[e.api],labels:[e.sources]}]],zJ=e=>({"/meshes/:mesh/service-insights":(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})},"/meshes/:mesh/service-insights/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getServiceInsight({mesh:r,name:a})},"/meshes/:mesh/external-services/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getExternalServiceByServiceInsightName(r,a)}}),jJ=()=>({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-33d2b049.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./ServiceListView-1bd8210d.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-6d482352.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TagList-d344db8e.css","./TextWithCopyButton-a5db4e55.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./TabsWidget-9c4a5c98.css","./ServiceDetailView-d31f84eb.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||""))})}]}]}),UJ={sources:Ue("service.sources")},ZJ=e=>[[UJ.sources,{service:zJ,arguments:[e.api],labels:[e.sources]}]],YJ=e=>({"use zones":()=>e("KUMA_MODE")==="global","create zones":t=>t("use zones")&&e("KUMA_ZONE_CREATION_FLOW")==="enabled"}),VJ=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})}}),KJ=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>Qe(()=>import("./ZoneCreateView-deec38f8.js"),["./CodeBlock-7d9027b4.css","./RouteView-a23fe6a9.css"],import.meta.url)}],GJ=e=>[...e,{path:"/zones",name:"zone-index-view",redirect:{name:"zone-cp-list-view"},children:[{path:"zone-cps",name:"zone-cps",children:[{path:"",name:"zone-cp-tabs-view",meta:{module:"zone-cps"},component:()=>Qe(()=>import("./ZoneTabsView-98724457.js"),["./RouteView-a23fe6a9.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-55cb5f21.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneListView-a41b6e25.css"],import.meta.url)}]},{path:":zone",name:"zone-cp-detail-view",component:()=>Qe(()=>import("./ZoneDetailView-a70f49a4.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./ZoneDetailView-2bf29461.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-98724457.js"),["./RouteView-a23fe6a9.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-a4a1aec9.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneIngressListView-a0bcc7ae.css"],import.meta.url)}]},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>Qe(()=>import("./ZoneIngressDetailView-5e1338dd.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.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-98724457.js"),["./RouteView-a23fe6a9.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-562f876a.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneEgressListView-75d2da94.css"],import.meta.url)}]},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>Qe(()=>import("./ZoneEgressDetailView-a8327ed0.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css"],import.meta.url)}]}]}],Um={sources:Ue("zone.sources"),features:Ue("zone.features")},WJ=e=>[[Um.sources,{service:VJ,arguments:[e.api],labels:[e.sources]}],[Um.features,{service:YJ,arguments:[e.env],labels:[e.features]}]],qJ={common:{product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"}}},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",documentation:"Documentation",emptyState:{title:"No data",message:"There are no {type} present."},collection:{none:" ",actions:{delete:"Delete",edit:"Edit",view:"View details"}},detail:{subscriptions:{no_stats:"There are no statistics for subscription “{id}”",connect_time:"Connect time",disconnect_time:"Disconnect time",type:"Type"},none:"—",created:"Created",modified:"Modified"}}},QJ={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},XJ={http:{api:{property:{tls:"TLS",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",authenticationType:"Authentication type"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available",disabled:"disabled"}}}},JJ={"data-planes":{routes:{item:{title:"{name}",breadcrumbs:"Data Plane Proxies",tabs:{overview:"Overview",insights:"Insights",policies:"Policies",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},items:{title:"Data Plane Proxies"}},href:{docs:{"mutual-tls":"{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}"}},list:{version_mismatch:"Version mismatch"},detail:{mtls:"Certificate",no_mtls:"This Data Plane Proxy does not have mTLS configured, yet",no_mtls_learn_more:"Learn about certificates in {product}",configuration:"Configuration"}}},eee={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},tee={gateways:{routes:{item:{title:"{name}",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},nee={"main-overview":{routes:{item:{title:"Overview"}},detail:{health:{title:"Global Control Plane health",view_all:"(view all)",zone_control_planes:"Zones",meshes:"Meshes",services:"Services",data_plane_proxies:"Data Plane Proxies"},zone_control_planes:{title:"Zones",empty_state:{title:"No Zones yet …",message:"Create your first Zone to start managing your Mesh"},table:{name:"Name",status:"Status"}},meshes:{title:"Meshes",table:{name:"Name",services:"Services",data_plane_proxies:"Data Plane Proxies"}}}}},ree={meshes:{routes:{item:{title:"{name}",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"}},detail:{services:"Services",data_plane_proxies:"Data Plane Proxies",policies:"Policies",disabled:"Disabled"}}},aee={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"}}}},oee={policies:{routes:{item:{title:"{name}",breadcrumbs:"Policies"},items:{title:"Policies"}},href:{docs:"{KUMA_DOCS_URL}/policies/{name}?{KUMA_UTM_QUERY_PARAMS}"},collection:{beta:"Beta",title:"About {name}",description:"Use policies to apply filters to incoming or outgoing traffic of Data Plane Proxies. To generate the Envoy configuration of a proxy the control-plane uses its data-plane configuration with the policies matching it.",inbound:"Inbound",outbound:"Outbound"}}},iee={services:{routes:{item:{title:"{name}",breadcrumbs:"Services",tabs:{overview:"Overview",data_plane_proxies:"Data Plane Proxies"}},items:{title:"Services"}}}},see={"zone-cps":{routes:{item:{title:"{name}",breadcrumbs:"Zone Control Planes",tabs:{overview:"Overview",insights:"Insights"}},items:{title:"Zone Control Planes",breadcrumbs:"Zone Control Planes"}},list:{version_mismatch:"Version mismatch"},detail:{configuration_title:"Configuration",no_subscriptions:"This zone has no subscriptions"}},"zone-ingresses":{routes:{item:{title:"{name}",breadcrumbs:"Ingresses",tabs:{overview:"Overview",insights:"Zone Ingress insights",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},items:{title:"Ingresses",breadcrumbs:"Ingresses"}}},"zone-egresses":{routes:{item:{title:"{name}",breadcrumbs:"Egresses",tabs:{overview:"Overview",insights:"Zone Egress insights",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},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",name_tooltip:"Zone names may contain lowercase alphanumerical characters, dashes (-), and underscores (_).",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 xm(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 Mq(e,t){if(e==null)return{};var n=Dq(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 Tq="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),Is=Nr(/Edge/i),Sm=Nr(/firefox/i),Gi=Nr(/safari/i)&&!Nr(/chrome/i)&&!Nr(/android/i),fy=Nr(/iP(ad|od|hone)/i),Aq=Nr(/chrome/i)&&Nr(/android/i),py={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Vr&&py)}function nt(e,t,n){e.removeEventListener(t,n,!Vr&&py)}function au(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 Oq(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&&au(e,t):au(e,t))||r&&e===n)return e;if(e===n)break}while(e=Oq(e))}return null}var _m=/\s+/g;function gn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_m," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_m," ")}}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 my(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=Mq(n,Hq);Bs.pluginEvent.bind(Fe)(e,t,mr({dragEl:pe,parentEl:_t,ghostEl:Ve,rootEl:kt,nextEl:Da,lastDownEl:gl,cloneEl:Dt,cloneHidden:oa,dragStarted:Ai,putSortable:Zt,activeSortable:Fe.active,originalEvent:r,oldIndex:bo,oldDraggableIndex:qi,newIndex:yn,newDraggableIndex:aa,hideGhostForTarget:Cy,unhideGhostForTarget:Ey,cloneNowHidden:function(){oa=!0},cloneNowShown:function(){oa=!1},dispatchSortableEvent:function(o){Jt({sortable:t,name:o,originalEvent:r})}},a))};function Jt(e){$q(mr({putSortable:Zt,cloneEl:Dt,targetEl:pe,rootEl:kt,oldIndex:bo,oldDraggableIndex:qi,newIndex:yn,newDraggableIndex:aa},e))}var pe,_t,Ve,kt,Da,gl,Dt,oa,bo,yn,qi,aa,Xs,Zt,go=!1,ou=!1,iu=[],Ca,jn,jc,Uc,Tm,Am,Ai,ho,Qi,Xi=!1,Js=!1,yl,Gt,Zc=[],B0=!1,su=[],ec=typeof document<"u",el=fy,Om=Is||Vr?"cssFloat":"float",Fq=ec&&!Aq&&!fy&&"draggable"in document.createElement("div"),by=function(){if(ec){if(Vr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),wy=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[Om]==="none"||o&&n[Om]==="none"&&l+u>r)?"vertical":"horizontal"},zq=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},jq=function(e,t){var n;return iu.some(function(r){var a=r[kn].options.emptyInsertThreshold;if(!(!a||uf(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},ky=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||vl(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},Cy=function(){!by&&Ve&&He(Ve,"display","none")},Ey=function(){!by&&Ve&&He(Ve,"display","")};ec&&document.addEventListener("click",function(e){if(ou)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ou=!1,!1},!0);var Ea=function(e){if(pe){e=e.touches?e.touches[0]:e;var t=jq(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[kn]._onDragOver(n)}}},Uq=function(e){pe&&pe.parentNode[kn]._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[kn]=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 wy(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&&!Gi,emptyInsertThreshold:5};Bs.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);ky(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:Fq,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)),iu.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Hr(this,Nq())}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,pe):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(Qq(n),!pe&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Gi&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=rr(s,r.draggable,n,!1),!(s&&s.animated)&&gl!==s)){if(bo=Mn(s),qi=Mn(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&&!pe&&n.parentNode===a){var l=Rt(n);if(kt=a,pe=n,_t=pe.parentNode,Da=pe.nextSibling,gl=n,Xs=o.group,Fe.dragged=pe,Ca={target:pe,clientX:(t||e).clientX,clientY:(t||e).clientY},Tm=Ca.clientX-l.left,Am=Ca.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,pe.style["will-change"]="all",s=function(){if(un("delayEnded",r,{evt:e}),Fe.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Sm&&r.nativeDraggable&&(pe.draggable=!0),r._triggerDragStart(e,t),Jt({sortable:r,name:"choose",originalEvent:e}),gn(pe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){my(pe,u.trim(),Yc)}),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),Sm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,pe.draggable=!0),un("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Is||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(){pe&&Yc(pe),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(pe,"dragend",this),it(kt,"dragstart",this._onDragStart));try{document.selection?bl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(go=!1,kt&&pe){un("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",Uq);var n=this.options;!e&&gn(pe,n.dragClass,!1),gn(pe,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Jt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(jn){this._lastX=jn.clientX,this._lastY=jn.clientY,Cy();for(var e=document.elementFromPoint(jn.clientX,jn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(jn.clientX,jn.clientY),e!==t);)t=e;if(pe.parentNode[kn]._isOutsideThisEl(e),t)do{if(t[kn]){var n=void 0;if(n=t[kn]._onDragOver({clientX:jn.clientX,clientY:jn.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ey()}},_onTouchMove:function(e){if(Ca){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,o=Ve&&So(Ve,!0),i=Ve&&o&&o.a,s=Ve&&o&&o.d,l=el&&Gt&&Mm(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()):yn!==bo&&yn>=0&&(Jt({sortable:this,name:"update",toEl:_t,originalEvent:e}),Jt({sortable:this,name:"sort",toEl:_t,originalEvent:e})),Fe.active&&((yn==null||yn===-1)&&(yn=bo,aa=qi),Jt({sortable:this,name:"end",toEl:_t,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){un("nulling",this),kt=pe=_t=Ve=Da=Dt=gl=oa=Ca=jn=Ai=yn=aa=bo=qi=ho=Qi=Zt=Xs=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,su.forEach(function(e){e.checked=!0}),su.length=jc=Uc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":pe&&(this._onDragOver(e),Zq(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 Gq(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&&ylc+u*o/2:ld-yl)return-Qi}else if(l>c+u*(1-a)/2&&ld-u*o/2)?l>c+u/2?1:-1:0}function Wq(e){return Mn(pe)e.replace(nQ,(t,n)=>n?n.toUpperCase():""));function Wc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Bm(e,t,n){const r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function rQ(e,t){return Object.values(e).indexOf(t)}function aQ(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 Sy(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function oQ(e){return t=>{this.realList!==null&&this["onDrag"+e](t),Sy.call(this,e,t)}}function iQ(e){return["transition-group","TransitionGroup"].includes(e)}function sQ(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?iQ(t.name):!1}function lQ(e,t){return t?{...t.props,...t.attrs}:e}const $0=["Start","Add","Remove","Update","End"],H0=["Choose","Unchoose","Sort","Filter","Clone"],uQ=["Move",...$0,...H0].map(e=>"on"+e);let qc=null;const cQ={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}},dQ=ge({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...$0.map(e=>e.toLowerCase()),...H0.map(e=>e.toLowerCase())],props:cQ,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=lQ(this.$attrs,this.componentData);return e?(this.transitionMode=sQ(e),Te(this.getTag(),t,e)):Te(this.getTag(),t,[])},created(){this.list!==null&&this.modelValue!==null&&eQ.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};$0.forEach(a=>{e["on"+a]=oQ.call(this,a)}),H0.forEach(a=>{e["on"+a]=Sy.bind(this,a)});const t=Object.keys(this.$attrs).reduce((a,o)=>(a[Im(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=Im(t);uQ.indexOf(n)===-1&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=aQ(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=rQ(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),qc=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;Wc(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(Bm(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){Wc(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){Wc(e.item),Bm(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(),qc=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(qc)!==-1||!t.willInsertAfter?a:a+1}}}),hQ=["data-testid","onClick"],fQ={key:0,class:"k-tree-item-icon","data-testid":"k-tree-item-icon"},pQ={class:"k-tree-item-label","data-testid":"k-tree-item-label"},hf=e=>e.every(t=>{var n;return t.name!==void 0&&t.id!==void 0&&(!((n=t.children)!=null&&n.length)||hf(t.children))}),mQ=ge({__name:"KTreeItem",props:{item:{type:Object,required:!0,validator:e=>hf([e])},disabled:{type:Boolean,default:!1}},emits:["selected"],setup(e,{emit:t}){const n=e,r=It(),a=I(()=>n.item.icon!=="none"||!!r["item-icon"]),o=I(()=>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, ${$g}))`},s=()=>{t("selected",n.item)};return(l,u)=>(k(),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:Tt(s,["prevent"])},[a.value?(k(),S("div",fQ,[F(l.$slots,"item-icon",{},()=>[G(Ie,{icon:o.value,"secondary-color":i,size:he(Rl)},null,8,["icon","size"])],!0)])):$("",!0),O("div",pQ,[F(l.$slots,"item-label",{},()=>[J(V(e.item.name),1)],!0)])],10,hQ))}}),vQ=Ee(mQ,[["__scopeId","data-v-8ad5e7b2"]]),ff=({children:e=[]})=>e.length===0?0:1+Math.max(...e.map(ff)),gQ=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, ${$g}))`},c=w=>{var M,B;return!((B=(M=a.value.filter(L=>L.id===w.id))==null?void 0:M[0].children)!=null&&B.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=I(()=>n.level>n.maxDepth-1),v=w=>{var M,B,L,D;const x=((B=(M=w.relatedContext)==null?void 0:M.component)==null?void 0:B.$attrs.level)||0,C=(L=w.draggedContext)==null?void 0:L.element;let A=0;return(D=C.children)!=null&&D.length&&(A=ff(C)),!(x+A>n.maxDepth-1)},p=w=>{var M,B;const L=((B=(M=w.item)==null?void 0:M._underlying_vm_)==null?void 0:B.id)||"",D=a.value.find(x=>x.id===L);i.value=!0,D&&t("selected",D),m(!0)},b=()=>{i.value=!1,m(!1),r.value++},m=w=>{const M=document==null?void 0:document.getElementsByTagName("html").item(0);M&&M.classList.toggle("k-tree-list-grabbing",w)};return Le(()=>n.items,(w,M)=>{JSON.stringify(w)!==JSON.stringify(M)&&(a.value=w,a.value.forEach(B=>{B.children||(B.children=[])}))}),ft(()=>{a.value=n.items,a.value.forEach(w=>{w.children||(w.children=[])})}),(w,M)=>{const B=Gn("KTreeDraggable",!0);return k(),se(he(dQ),Ge(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(()=>[(k(!0),S(Ae,null,ot(a.value,L=>(k(),S("div",{key:L.id,class:q(["k-tree-item-container",{"has-no-children":c(L)}])},[(k(),se(vQ,{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"?(k(),se(Ie,{key:0,icon:L.icon?L.icon:"documentList","secondary-color":u(L),size:he($u)},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"])),(k(),se(B,{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:D})=>[F(w.$slots,"item-icon",{item:D},void 0,!0)]),[l]:z(({item:D})=>[F(w.$slots,"item-label",{item:D},void 0,!0)]),_:2},1032,["disable-drag","items","level","max-depth","parent-id"]))],2))),128))]),_:3},16,["disabled","group","level","list"])}}}),yQ=Ee(gQ,[["__scopeId","data-v-e7acd9b9"]]),_y=(e,t)=>(e.forEach(n=>{var r;t.push(n.id),(r=n.children)!=null&&r.length&&_y(n.children,t)}),t),bQ=e=>{const t=_y(e,[]),n=new Set(t);return t.length===n.size},wQ=(e,t)=>{let n=!0;return e.forEach(r=>{n=n&&(!r.children||ff(r)<=t)}),n},Nm=e=>hf(e)&&bQ(e),kQ=ge({__name:"KTreeList",props:{modelValue:{type:Array,default:null,validator:e=>!e.length||Nm(e)},items:{type:Array,default:null,validator:e=>!e.length||Nm(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=I({get(){return n.modelValue},set(c){r.value=c}}),{getSizeFromString:o}=mn(),i=I(()=>({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),wQ(r.value,n.maxDepth)||console.warn("KTreeList: Provided list depth exceeds `maxDepth`"),r.value.forEach(c=>{c.children||(c.children=[])})}),(c,d)=>(k(),S("div",{class:"k-tree-list","data-testid":"k-tree-list",style:Et(e.width?i.value:void 0)},[G(yQ,{"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))}}),CQ={class:"icon"},EQ={class:"dots"},xQ={class:"lines"},SQ=ge({__name:"KViewSwitcher",props:{view:{type:String,default:"table",required:!0,validator:e=>Uk.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)=>(k(),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",CQ,[O("div",EQ,[(k(),S(Ae,null,ot(4,s=>O("i",{key:s})),64))]),O("div",xQ,[(k(),S(Ae,null,ot(4,s=>O("i",{key:s})),64))])])]),_:1},8,["class","title"]))}}),_Q=Ee(SQ,[["__scopeId","data-v-6e32a59a"]]),Lm=e=>{try{return new URL(e),!0}catch{return!1}},DQ=["href"],MQ=ge({__name:"KExternalLink",props:{href:{type:String,required:!0,validator:e=>!!Lm(e)},hideIcon:{type:Boolean,default:!1}},setup(e){const t=e,n=I(()=>!!Lm(t.href)),r=j(!1),a=I(()=>r.value?`var(--KExternalLinkColorHover, var(--blue-600, var(--kui-color-text-primary-strong, ${F7})))`:`var(--KExternalLinkColor, var(--kui-color-text-primary, ${Ll}))`);return(o,i)=>{const s=Gn("KIcon");return n.value?(k(),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):(k(),se(s,{key:0,color:a.value,icon:"externalLink",size:"12"},null,8,["color"]))],40,DQ)):$("",!0)}}}),TQ=Ee(MQ,[["__scopeId","data-v-27871540"]]),AQ={key:0,class:"k-truncate-expand-controls"},OQ={key:0,"data-testid":"expand-trigger-wrapper"},PQ={key:0,"data-testid":"collapse-trigger-wrapper"},IQ={key:0,"data-testid":"expand-trigger-wrapper"},BQ={key:1},NQ=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;Qo(p=>({b2b587b4:u.value,"1d00c262":he(c),c3af62ea:t.rows}));const{getSizeFromString:n}=mn(),r=j(t.isExpanded),a=j(!1),o=j(),i=j(),s=j(),l=j(),u=j("0px"),c=l9,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 B=0;Bw?b[B].offsetHeight:w;const M=(t.rows===1?0:(t.rows-1)*m)+w*t.rows+6;u.value=i.value.offsetHeight>M?`${M}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=I(()=>({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 k(),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?(k(),S("div",AQ,[r.value?$("",!0):(k(),S("div",OQ,[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?(k(),S("div",PQ,[F(p.$slots,"collapse-trigger",{collapse:y},()=>[G(m,{appearance:"primary",class:"collapse-trigger","is-rounded":"",onClick:y},{default:z(()=>[G(Ie,{color:`var(--KTruncateCollapseIconColor, var(--blue-500, var(--kui-color-text-primary, ${he(Ll)})))`,icon:"chevronUp",size:he(Fg),title:"Show less"},null,8,["color","size"])]),_:1})],!0)])):$("",!0)],512),e.isTextContent&&(a.value||r.value)?(k(),S("div",{key:1,ref_key:"textToggleControls",ref:l,class:"k-truncate-collapse-controls"},[r.value?$("",!0):(k(),S("div",IQ,[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?(k(),S("div",BQ,[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)}}}),LQ=Ee(NQ,[["__scopeId","data-v-791c716f"]]),RQ={key:0},$Q=ge({__name:"KMethodBadge",props:{method:{type:String,required:!0,validator:e=>jk.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;Qo(s=>({"4851d9e3":o.value[e.method].color}));const r=j(n.modelValue),a=I(()=>n.label||n.method.toUpperCase()),o=I(()=>({get:{color:`var(--petrol-200, var(--kui-method-color-text-get, ${t9}))`,backgroundColor:`var(--petrol-100, var(--kui-method-color-background-get, ${V7}))`},post:{color:`var(--green-700, var(--kui-method-color-text-post, ${o9}))`,backgroundColor:`var(--green-100, var(--kui-method-color-background-post, ${q7}))`},put:{color:`var(--yellow-600, var(--kui-method-color-text-put, ${i9}))`,backgroundColor:`var(--yellow-100, var(--kui-method-color-background-put, ${Q7}))`},patch:{color:`var(--teal-500, var(--kui-method-color-text-patch, ${a9}))`,backgroundColor:`var(--teal-100, var(--kui-method-color-background-patch, ${W7}))`},delete:{color:`var(--red-700, var(--kui-method-color-text-delete, ${e9}))`,backgroundColor:`var(--red-100, var(--kui-method-color-background-delete, ${Y7}))`},head:{color:`var(--yellow-600, var(--kui-method-color-text-head, ${n9}))`,backgroundColor:`var(--yellow-200, var(--kui-method-color-background-head, ${K7}))`},options:{color:`var(--steel-700, var(--kui-method-color-text-options, ${r9}))`,backgroundColor:`var(--steel-200, var(--kui-method-color-background-options, ${G7}))`},trace:{color:`var(--white, var(--kui-method-color-text-trace, ${s9}))`,backgroundColor:`var(--steel-500, var(--kui-method-color-background-trace, ${X7}))`},connect:{color:`var(--purple-400, var(--kui-method-color-text-connect, ${J7}))`,backgroundColor:`var(--purple-100, var(--kui-method-color-background-connect, ${Z7}))`},custom:{color:`var(--white, var(--kui-color-text-inverse, ${Ru}))`,backgroundColor:`var(--steel-500, var(--kui-color-background-neutral-strong, ${N7}))`}})),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 k(),se(c,Ge({"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"},ld({click:e.isToggle?i:void 0})),{default:z(()=>[e.isToggle?$("",!0):(k(),S("span",RQ,V(a.value),1)),e.isToggle?(k(),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"])}}}),HQ=Ee($Q,[["__scopeId","data-v-65b300cb"]]),Rm=Object.freeze(Object.defineProperty({__proto__:null,KAlert:jg,KBadge:Di,KBreadcrumbs:d2,KButton:We,KCard:Ah,KCatalog:bx,KCatalogItem:f2,KCheckbox:xx,KClipboardProvider:z6,KCodeBlock:tS,KCollapse:sS,KComponent:Ep,KDateTimePicker:vV,KDropdownItem:q5,KDropdownMenu:kV,KEmptyState:us,KExternalLink:TQ,KFileUpload:_V,KIcon:Ie,KInlineEdit:OV,KInput:Ss,KInputSwitch:jV,KLabel:Ur,KMenu:rK,KMenuItem:X5,KMethodBadge:HQ,KModal:oy,KModalFullscreen:nG,KMultiselect:_G,KPagination:Ph,KPop:ei,KPrompt:$G,KRadio:ZG,KSegmentedControl:W5,KSelect:h2,KSkeleton:Oh,KSkeletonBox:Mt,KSlideout:cW,KStepper:VW,KTable:rq,KTabs:uq,KTextArea:wq,KToaster:hy,KToggle:Lu,KTooltip:ti,KTreeList:kQ,KTruncate:LQ,KViewSwitcher:_Q,Komponent:Ep,Kooltip:Sq,Krumbs:pC,ToastManager:xq},Symbol.toStringTag,{value:"Module"})),FQ={install:e=>{for(const t in Rm)e.component(t,Rm[t])}};function zQ(e,t){return async n=>{const r=mg(n);return r.use(e,gg),r.use(t),r.use(FQ),r}}function jQ(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap")]):e.state.defaultVisibility.appError=!1}}const UQ=e=>{const t=(n,r)=>typeof e[n]<"u"?e[n](t,r):!1;return t};var Qc=new WeakMap,Dy=new Map,ZQ=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 YQ=class{constructor(e){this.impl=e,this.type=Va.Constant}},VQ=class{constructor(e){this.impl=e,this.type=Va.Factory}},KQ=e=>e.type===Va.Factory,tc=class{constructor(e){this.impl=e,this.type=Va.Instance}},GQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Container,this.cache=new WeakMap}},WQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Resolution}},qQ=class extends tc{constructor(e){super(e),this.impl=e,this.scope=Fr.Singleton}},QQ=class extends tc{constructor(){super(...arguments),this.scope=Fr.Transient}},XQ=e=>e.type===Va.Instance,JQ=e=>e.scope===Fr.Container,eX=e=>e.scope===Fr.Resolution,tX=e=>e.scope===Fr.Singleton,nX=e=>Symbol(e),je=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},Ii=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=Ii.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))}},My=Ii;My.notag=nX("NO_TAG");var rX=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 Ty){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 XQ(e)?tX(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):JQ(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):eX(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):KQ(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(a=>kl.resolveInitialization(a,n,e.impl.initializer)):kl.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=Qc.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const a=e(...n);return Qc.set(e,!0),a}catch{const o=new e(...n);return Qc.set(e,!1),o}}getParameters(e,t){const n=Dy.get(e);if(n)return this.resolveTokens(n,t,ZQ.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}},lX=()=>new kl,uX=(e,...t)=>(Dy.set(e,t),e),hne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dX=function(t){return hX(t)&&!fX(t)};function hX(e){return!!e&&typeof e=="object"}function fX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||vX(e)}var pX=typeof Symbol=="function"&&Symbol.for,mX=pX?Symbol.for("react.element"):60103;function vX(e){return e.$$typeof===mX}function gX(e){return Array.isArray(e)?[]:{}}function vs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ko(gX(e),e,t):e}function yX(e,t,n){return e.concat(t).map(function(r){return vs(r,n)})}function bX(e,t){if(!t.customMerge)return Ko;var n=t.customMerge(e);return typeof n=="function"?n:Ko}function wX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $m(e){return Object.keys(e).concat(wX(e))}function Ay(e,t){try{return t in e}catch{return!1}}function kX(e,t){return Ay(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function CX(e,t,n){var r={};return n.isMergeableObject(e)&&$m(e).forEach(function(a){r[a]=vs(e[a],n)}),$m(t).forEach(function(a){kX(e,a)||(Ay(e,a)&&n.isMergeableObject(t[a])?r[a]=bX(a,n)(e[a],t[a],n):r[a]=vs(t[a],n))}),r}function Ko(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||yX,n.isMergeableObject=n.isMergeableObject||dX,n.cloneUnlessOtherwiseSpecified=vs;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):CX(e,t,n):vs(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 EX=Ko,xX=EX;const SX=cX(xX),pf=lX(),_X=(...e)=>[...new Map([...e.flat()]).entries()],DX=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=je("inner"),u=je("inner.wrapper");t.set(l,{...s}),t.set(u,{service:()=>()=>Ns(l)}),t.set(a,{...r,arguments:[u],labels:i})}r.decorates=void 0}}),[...t.entries()]},Ns=e=>pf.get(e),MX=(...e)=>(DX(_X(...e)).forEach(n=>Oy(...n)),Ns),TX=(...e)=>e.map(t=>()=>Ns(t)),nl=new WeakMap,Oy=(e,t)=>{const n=pf.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=>{nl.has(r)||(nl.set(r,[]),Oy(r,{service:()=>nl.get(r).reduce((o,i)=>{const s=Ns(i);return Array.isArray(s)?o.concat(s):s instanceof Object?SX(o,s):o},[])})),nl.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}]`)}),uX(t.service,...t.arguments))},AX=(e,t)=>{const n=je(t.description);return pf.bind(n).toConstant(e),n},uu={can:je("application.can"),features:je("application.can.features")},OX=e=>[[uu.can,{service:UQ,arguments:[uu.features]}]],PX=uu,[fne]=TX(uu.can);var Ji=class{constructor(t,n,r,a,o,i){st(this,"type",3);st(this,"name","");st(this,"prefix","");st(this,"value","");st(this,"suffix","");st(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"}},IX=/[$_\p{ID_Start}]/u,BX=/[$_\u200C\u200D\p{ID_Continue}]/u,z0=".*";function NX(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function Py(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:M}=n[i];throw new TypeError(`Unexpected ${w} at ${M}, 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 Ji(3,"","",f(g),"",3)),g="")},p=(b,m,w,M,B)=>{let L=3;switch(B){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 Ji(3,"","",f(b),"",L));return}let D;w?w==="*"?D=z0:D=w:D=r;let x=2;D===r?(x=1,D=""):D===z0&&(x=0,D="");let C;if(m?C=m:w&&(C=o++),s.has(C))throw new TypeError(`Duplicate name '${C}'.`);s.add(C),a.push(new Ji(x,C,f(b),D,f(M),L))};for(;i-1)}return i||(r+=`(?=${o}|${a})`),new RegExp(r,Hm(n))}var ta={delimiter:"",prefixes:"",sensitive:!0,strict:!0},RX={delimiter:".",prefixes:"",sensitive:!0,strict:!0},$X={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function HX(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Ny(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function FX(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function Ly(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var Ry=["ftp","file","http","https","ws","wss"];function $y(e){if(!e)return!0;for(let t of Ry)if(e.test(t))return!0;return!1}function zX(e,t){if(e=Ny(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 jX(e,t){if(e=Ny(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 UX(e,t){return t||e===""?e:Ly(e)?zy(e):Fy(e)}function ZX(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.password=e,n.password}function YX(e,t){if(t||e==="")return e;let n=new URL("https://example.com");return n.username=e,n.username}function VX(e,t,n){if(n||e==="")return e;if(t&&!Ry.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 KX(e,t,n){return Hy(t)===e&&(e=""),n||e===""?e:jy(e)}function GX(e,t){return e=FX(e,":"),t||e===""?e:mf(e)}function Hy(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function mf(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function WX(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function qX(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function Fy(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 zy(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function jy(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function QX(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 XX(e){return e===""?e:new URL(`data:${e}`).pathname}function JX(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function eJ(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var Do,en,Ct,mt,La,Mo,Pr,To,Ao,Oo,At,Lt,cu,Uy,ys,j0,Ra,Bi,Po,Cl,dn,Dn,bs,U0,du,Zy,Io,El,hu,Yy,fu,Vy,Bo,xl,ia,yo,Ir,Ma,pu,Ky,mu,Gy,vu,Wy,gu,qy,Tn,nr,yu,Qy,ov,tJ=(ov=class{constructor(e){qe(this,At);qe(this,cu);qe(this,ys);qe(this,Ra);qe(this,Po);qe(this,dn);qe(this,bs);qe(this,du);qe(this,Io);qe(this,hu);qe(this,fu);qe(this,Bo);qe(this,ia);qe(this,Ir);qe(this,pu);qe(this,mu);qe(this,vu);qe(this,gu);qe(this,Tn);qe(this,yu);qe(this,Do,void 0);qe(this,en,[]);qe(this,Ct,{});qe(this,mt,0);qe(this,La,1);qe(this,Mo,0);qe(this,Pr,0);qe(this,To,0);qe(this,Ao,0);qe(this,Oo,!1);$t(this,Do,e)}get result(){return re(this,Ct)}parse(){for($t(this,en,Py(re(this,Do),!0));re(this,mt)0)if(ve(this,mu,Gy).call(this))$t(this,To,re(this,To)-1);else continue;if(ve(this,pu,Ky).call(this)){$t(this,To,re(this,To)+1);continue}switch(re(this,Pr)){case 0:ve(this,bs,U0).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,Bi).call(this,1));break;case 1:if(ve(this,bs,U0).call(this)){ve(this,yu,Qy).call(this);let e=7,t=1;re(this,Oo)&&(re(this,Ct).pathname="/"),ve(this,du,Zy).call(this)?(e=2,t=3):re(this,Oo)&&(e=2),ve(this,At,Lt).call(this,e,t)}break;case 2:ve(this,Io,El).call(this)?ve(this,Ra,Bi).call(this,3):(ve(this,Bo,xl).call(this)||ve(this,ia,yo).call(this)||ve(this,Ir,Ma).call(this))&&ve(this,Ra,Bi).call(this,5);break;case 3:ve(this,hu,Yy).call(this)?ve(this,At,Lt).call(this,4,1):ve(this,Io,El).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 4:ve(this,Io,El).call(this)&&ve(this,At,Lt).call(this,5,1);break;case 5:ve(this,vu,Wy).call(this)?$t(this,Ao,re(this,Ao)+1):ve(this,gu,qy).call(this)&&$t(this,Ao,re(this,Ao)-1),ve(this,fu,Vy).call(this)&&!re(this,Ao)?ve(this,At,Lt).call(this,6,1):ve(this,Bo,xl).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,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 6:ve(this,Bo,xl).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,Ir,Ma).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,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break;case 8:ve(this,Ir,Ma).call(this)&&ve(this,At,Lt).call(this,9,1);break}}}},Do=new WeakMap,en=new WeakMap,Ct=new WeakMap,mt=new WeakMap,La=new WeakMap,Mo=new WeakMap,Pr=new WeakMap,To=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,Tn,nr).call(this);break;case 2:break;case 3:re(this,Ct).username=ve(this,Tn,nr).call(this);break;case 4:re(this,Ct).password=ve(this,Tn,nr).call(this);break;case 5:re(this,Ct).hostname=ve(this,Tn,nr).call(this);break;case 6:re(this,Ct).port=ve(this,Tn,nr).call(this);break;case 7:re(this,Ct).pathname=ve(this,Tn,nr).call(this);break;case 8:re(this,Ct).search=ve(this,Tn,nr).call(this);break;case 9:re(this,Ct).hash=ve(this,Tn,nr).call(this);break}ve(this,cu,Uy).call(this,e,t)},cu=new WeakSet,Uy=function(e,t){$t(this,Pr,e),$t(this,Mo,re(this,mt)+t),$t(this,mt,re(this,mt)+t),$t(this,La,0)},ys=new WeakSet,j0=function(){$t(this,mt,re(this,Mo)),$t(this,La,0)},Ra=new WeakSet,Bi=function(e){ve(this,ys,j0).call(this),$t(this,Pr,e)},Po=new WeakSet,Cl=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=VX(e.pathname,e.protocol,n)}return typeof t.search=="string"&&(e.search=jX(t.search,n)),typeof t.hash=="string"&&(e.hash=zX(t.hash,n)),e}function Ni(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function nJ(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function rJ(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=`[^${nJ(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+=Ni(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+=Ni(s.suffix),u&&(o+="}"),s.modifier!==3&&(o+=wo(s.modifier))}return o}var ir,$a,No,Ht,sr,iv,Xy=(iv=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 tJ(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,xi({pathname:Jr,protocol:Jr,username:Jr,password:Jr,hostname:Jr,port:Jr,search:Jr,hash:Jr},t,!0)),Hy(re(this,ir).protocol)===re(this,ir).port&&(re(this,ir).port="");let s;for(s of Xc){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=mf;break;case"username":Object.assign(l,ta),l.encodePart=WX;break;case"password":Object.assign(l,ta),l.encodePart=qX;break;case"hostname":Object.assign(l,RX),Ly(u)?l.encodePart=zy:l.encodePart=Fy;break;case"port":Object.assign(l,ta),l.encodePart=jy;break;case"pathname":$y(re(this,$a).protocol)?(Object.assign(l,$X,o),l.encodePart=QX):(Object.assign(l,ta,o),l.encodePart=XX);break;case"search":Object.assign(l,ta,o),l.encodePart=JX;break;case"hash":Object.assign(l,ta,o),l.encodePart=eJ;break}try{re(this,sr)[s]=Iy(u,l),re(this,$a)[s]=By(re(this,sr)[s],re(this,No)[s],l),re(this,Ht)[s]=rJ(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=xi(r,t,!1):r=xi(r,Fm(t,n),!1)}catch{return!1}let a;for(a of Xc)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=xi(r,t,!1):r=xi(r,Fm(t,n),!1)}catch{return null}let a={};n?a.inputs=[t,n]:a.inputs=[t];let o;for(o of Xc){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 Xy({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 oJ{constructor(t,n){st(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 iJ{constructor(t,{create:n,destroy:r},a){st(this,"cache",new Map);st(this,"pool");st(this,"getCacheKeyPrefix");const o=new aJ(t);this.pool=new oJ(i=>n(i,o),(i,s)=>{r(i,s)}),this.getCacheKeyPrefix=a}source(t,n){const r=this.getCacheKeyPrefix()+t,a=this.pool.acquire(t,n);return a.addEventListener("message",o=>{this.cache.set(r,o.data)}),this.cache.has(r)&&Promise.resolve().then(()=>{a==null||a.dispatchEvent(new MessageEvent("message",{data:this.cache.get(r)}))}),a}close(t,n){return this.pool.release(t,n)}}const sJ=0,lJ=1,Ta=2,uJ=e=>e.readyState===Ta;class cJ extends EventTarget{constructor(n,r={}){super();st(this,"url","");st(this,"withCredentials",!1);st(this,"CONNECTING",sJ);st(this,"OPEN",lJ);st(this,"CLOSED",Ta);st(this,"onerror",null);st(this,"onmessage",null);st(this,"onopen",null);st(this,"readyState",Ta);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===Ta)break;n.readyState=Ta}catch(r){n.dispatchEvent(new ErrorEvent("error",{error:r}))}})(this)}open(){this.readyState!==Ta&&this._open()}close(){this.readyState=Ta}}const dJ=(e,t)=>{const[n,r]=e.split("?"),a=new URLSearchParams(r),o=t.match(n);return new cJ(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),uJ(this)||await new Promise(s=>setTimeout(s,5e3))})},hJ=(e,t)=>{t&&t.close()},fJ={create:dJ,destroy:hJ},pJ=["protocol","service","zone"];function Z0(e){const t=new Map;for(const[n,r]of e){const a=pJ.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 mJ=e=>({"/meshes/:mesh/dataplanes":async(t,n)=>{n.close();const{mesh:r,size:a}=t,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})},"/meshes/:mesh/dataplane-overviews/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getDataplaneOverviewFromMesh({mesh:r,name:a})},"/meshes/: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(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})}}),Lr=50,Y0=500,zm="Disabled",vne="kuma.io/zone";function Ft(e,t=0){const n=vJ(e);return n!==void 0?parseInt(n):t}function vJ(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const gJ=()=>({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-feb794ea.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./DataPlaneListView-fdf93228.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-3c529acf.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./PolicyTypeTag-ec10d2a9.css","./TagList-d344db8e.css","./CopyButton-1cf75ef1.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./TextWithCopyButton-a5db4e55.css","./DataPlaneDetailView-a94fe2a6.css"],import.meta.url)}]}]}),yJ={sources:je("mesh.sources")},bJ=e=>[[yJ.sources,{service:mJ,arguments:[e.api],labels:[e.sources]}]],wJ=e=>({"/config":async(t,n)=>(n.close(),await e.getConfig())}),kJ=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>Qe(()=>import("./DiagnosticsView-ec2b9ac0.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],CJ={sources:je("diagnostics.sources")},EJ=e=>[[CJ.sources,{service:wJ,arguments:[e.api],labels:[e.sources]}]],xJ=e=>({"/meshes/: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})},"/meshes/: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})}}),SJ=()=>({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-9c58351c.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./GatewayListView-1b0cf5f0.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-3c529acf.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./PolicyTypeTag-ec10d2a9.css","./TagList-d344db8e.css","./CopyButton-1cf75ef1.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./TextWithCopyButton-a5db4e55.css","./DataPlaneDetailView-a94fe2a6.css"],import.meta.url)}]}]}),_J={sources:je("gateway.sources")},DJ=e=>[[_J.sources,{service:xJ,arguments:[e.api],labels:[e.sources]}]];function MJ(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"}]}function vf(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 vf(e[r[0]],r.slice(1),n)}async function jm(e){try{let t=null,n=0,r=[],a=null;for(;;){const o={size:Y0,offset:n},{total:i,items:s,next:l}=await e(o);if(Array.isArray(s)&&(r=r.concat(s)),t===null&&(t=i),!l||a===l)break;a=l,n+=Y0}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function gne(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const a=JSON.parse(r.config);return vf(a,"dpServer.auth.type",zm)}}return zm}const TJ=e=>({"/all-mesh-insights":(t,n)=>(n.close(),jm(e.getAllMeshInsights.bind(e))),"/all-zone-overviews":(t,n)=>(n.close(),jm(e.getAllZoneOverviews.bind(e)))}),AJ={sources:je("main-overview.sources")},OJ=e=>[[AJ.sources,{service:TJ,arguments:[e.api],labels:[e.sources]}]],PJ=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":async(t,n)=>{n.close();const{size:r}=t,a=t.size*(t.page-1);return e.getAllMeshInsights({size:r,offset:a})},"/mesh-insights/:name":async(t,n)=>{n.close();const{name:r}=t;return e.getMeshInsights({name:r})}}),IJ=(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-4c96d1bc.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./MeshListView-2076e6f0.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>Qe(()=>import("./MeshIndexView-d49d2ccf.js"),["./RouteView-a23fe6a9.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-ffe85c0f.js"),["./RouteView-a23fe6a9.css","./NavTabs-423b9d69.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>Qe(()=>import("./MeshDetailView-5c9626ba.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./MeshDetailView-a91ce85e.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")]}]}],BJ={sources:je("mesh.sources")},NJ=e=>[[BJ.sources,{service:PJ,arguments:[e.api],labels:[e.sources]}]],LJ=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>Qe(()=>import("./OnboardingView-b08c4dd1.js"),["./RouteView-a23fe6a9.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./WelcomeView-1ec5d934.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./WelcomeView-13de7acd.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./DeploymentTypes-1df08813.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-1fd3474f.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./ConfigurationTypes-7ea41f87.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./MultiZoneView-d7227424.js"),["./RouteView-a23fe6a9.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-1efc09e7.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./CreateMesh-eaf572f8.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./AddNewServices-f0abba95.js"),["./RouteView-a23fe6a9.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-91120ed4.js"),["./RouteView-a23fe6a9.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-8be2a342.js"),["./RouteView-a23fe6a9.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>Qe(()=>import("./CompletedView-f717fc90.js"),["./RouteView-a23fe6a9.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],RJ=e=>({"/*/policy-types":(t,n)=>(n.close(),e.getPolicyTypes()),"/meshes/:mesh/policy-path/: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})},"/meshes/:mesh/policy-path/:path/policy/:name":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getSinglePolicyEntity({mesh:r,path:a,name:o})},"/meshes/:mesh/policy-path/:path/policy/:name/dataplanes":(t,n)=>{n.close();const{mesh:r,path:a,name:o}=t;return e.getPolicyConnections({mesh:r,path:a,name:o})}}),$J=()=>({items:(t="policies")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${t}`,redirect:n=>({...n,params:{...n.params,policyPath:"circuit-breakers"},name:"policies-list-view"}),children:[{path:":policyPath",name:`${t}-list-view`,component:()=>Qe(()=>import("./PolicyListView-ee80cbbd.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./PolicyTypeTag-ec10d2a9.css","./PolicyListView-c1417016.css"],import.meta.url),props:n=>({page:Ft(n.query.page,1),size:Ft(n.query.size,Lr)})}]}]}],item:(t="policy")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${t==="policy"?":policyPath/":""}:policy`,name:`${t}-detail-view`,component:()=>Qe(()=>import("./PolicyDetailView-883f672d.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TabsWidget-9c4a5c98.css"],import.meta.url)}]}]}),HJ={sources:je("policy.sources")},FJ=e=>[[HJ.sources,{service:RJ,arguments:[e.api],labels:[e.sources]}]],zJ=e=>({"/meshes/:mesh/service-insights":(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})},"/meshes/:mesh/service-insights/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getServiceInsight({mesh:r,name:a})},"/meshes/:mesh/external-services/:name":(t,n)=>{n.close();const{mesh:r,name:a}=t;return e.getExternalServiceByServiceInsightName(r,a)}}),jJ=()=>({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-f6d69844.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./ServiceListView-1bd8210d.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-1b599133.js"),["./RouteView-a23fe6a9.css","./CodeBlock-7d9027b4.css","./CopyButton-1cf75ef1.css","./TagList-d344db8e.css","./TextWithCopyButton-a5db4e55.css","./AppCollection-767f7e2c.css","./KFilterBar-0b1f9c18.css","./TabsWidget-9c4a5c98.css","./ServiceDetailView-d31f84eb.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||""))})}]}]}),UJ={sources:je("service.sources")},ZJ=e=>[[UJ.sources,{service:zJ,arguments:[e.api],labels:[e.sources]}]],YJ=e=>({"use zones":()=>e("KUMA_MODE")==="global","create zones":t=>t("use zones")&&e("KUMA_ZONE_CREATION_FLOW")==="enabled"}),VJ=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})}}),KJ=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>Qe(()=>import("./ZoneCreateView-fe7df8fc.js"),["./CodeBlock-7d9027b4.css","./RouteView-a23fe6a9.css"],import.meta.url)}],GJ=e=>[...e,{path:"/zones",name:"zone-index-view",redirect:{name:"zone-cp-list-view"},children:[{path:"zone-cps",name:"zone-cps",children:[{path:"",name:"zone-cp-tabs-view",meta:{module:"zone-cps"},component:()=>Qe(()=>import("./ZoneTabsView-86d9c9bd.js"),["./RouteView-a23fe6a9.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-842a8b7a.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneListView-a41b6e25.css"],import.meta.url)}]},{path:":zone",name:"zone-cp-detail-view",component:()=>Qe(()=>import("./ZoneDetailView-fe5d3ec3.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css","./ZoneDetailView-2bf29461.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-86d9c9bd.js"),["./RouteView-a23fe6a9.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-91803880.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneIngressListView-a0bcc7ae.css"],import.meta.url)}]},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>Qe(()=>import("./ZoneIngressDetailView-b9d2e292.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.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-86d9c9bd.js"),["./RouteView-a23fe6a9.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-55f524b1.js"),["./RouteView-a23fe6a9.css","./AppCollection-767f7e2c.css","./ZoneEgressListView-75d2da94.css"],import.meta.url)}]},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>Qe(()=>import("./ZoneEgressDetailView-1f33833a.js"),["./RouteView-a23fe6a9.css","./SubscriptionHeader-5354ab5d.css","./CodeBlock-7d9027b4.css","./EnvoyData-5367f20b.css","./TabsWidget-9c4a5c98.css","./CopyButton-1cf75ef1.css","./TextWithCopyButton-a5db4e55.css"],import.meta.url)}]}]}],Um={sources:je("zone.sources"),features:je("zone.features")},WJ=e=>[[Um.sources,{service:VJ,arguments:[e.api],labels:[e.sources]}],[Um.features,{service:YJ,arguments:[e.env],labels:[e.features]}]],qJ={common:{product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"}}},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",documentation:"Documentation",emptyState:{title:"No data",message:"There are no {type} present."},collection:{none:" ",actions:{delete:"Delete",edit:"Edit",view:"View details"}},detail:{subscriptions:{no_stats:"There are no statistics for subscription “{id}”",connect_time:"Connect time",disconnect_time:"Disconnect time",type:"Type"},none:"—",created:"Created",modified:"Modified"}}},QJ={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},XJ={http:{api:{property:{tls:"TLS",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",authenticationType:"Authentication type"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available",disabled:"disabled"}}}},JJ={"data-planes":{routes:{item:{title:"{name}",breadcrumbs:"Data Plane Proxies",tabs:{overview:"Overview",insights:"Insights",policies:"Policies",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},items:{title:"Data Plane Proxies"}},href:{docs:{"mutual-tls":"{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}"}},list:{version_mismatch:"Version mismatch"},detail:{mtls:"Certificate",no_mtls:"This Data Plane Proxy does not have mTLS configured, yet",no_mtls_learn_more:"Learn about certificates in {product}",configuration:"Configuration"}}},eee={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},tee={gateways:{routes:{item:{title:"{name}",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},nee={"main-overview":{routes:{item:{title:"Overview"}},detail:{health:{title:"Global Control Plane health",view_all:"(view all)",zone_control_planes:"Zones",meshes:"Meshes",services:"Services",data_plane_proxies:"Data Plane Proxies"},zone_control_planes:{title:"Zones",empty_state:{title:"No Zones yet …",message:"Create your first Zone to start managing your Mesh"},table:{name:"Name",status:"Status"}},meshes:{title:"Meshes",table:{name:"Name",services:"Services",data_plane_proxies:"Data Plane Proxies"}}}}},ree={meshes:{routes:{item:{title:"{name}",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"}},detail:{services:"Services",data_plane_proxies:"Data Plane Proxies",policies:"Policies",disabled:"Disabled"}}},aee={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"}}}},oee={policies:{routes:{item:{title:"{name}",breadcrumbs:"Policies"},items:{title:"Policies"}},href:{docs:"{KUMA_DOCS_URL}/policies/{name}?{KUMA_UTM_QUERY_PARAMS}"},collection:{beta:"Beta",title:"About {name}",description:"Use policies to apply filters to incoming or outgoing traffic of Data Plane Proxies. To generate the Envoy configuration of a proxy the control-plane uses its data-plane configuration with the policies matching it.",inbound:"Inbound",outbound:"Outbound"}}},iee={services:{routes:{item:{title:"{name}",breadcrumbs:"Services",tabs:{overview:"Overview",data_plane_proxies:"Data Plane Proxies"}},items:{title:"Services"}}}},see={"zone-cps":{routes:{item:{title:"{name}",breadcrumbs:"Zone Control Planes",tabs:{overview:"Overview",insights:"Insights"}},items:{title:"Zone Control Planes",breadcrumbs:"Zone Control Planes"}},list:{version_mismatch:"Version mismatch"},detail:{configuration_title:"Configuration",no_subscriptions:"This zone has no subscriptions"}},"zone-ingresses":{routes:{item:{title:"{name}",breadcrumbs:"Ingresses",tabs:{overview:"Overview",insights:"Zone Ingress insights",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},items:{title:"Ingresses",breadcrumbs:"Ingresses"}}},"zone-egresses":{routes:{item:{title:"{name}",breadcrumbs:"Egresses",tabs:{overview:"Overview",insights:"Zone Egress insights",xds_configuration:"XDS Configuration",stats:"Stats",clusters:"Clusters"}},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",name_tooltip:"Zone names may contain lowercase alphanumerical characters, dashes (-), and underscores (_).",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,7 +553,7 @@ 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:{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"}}}},lee={...qJ,...XJ,...QJ,...nee,...aee,...eee,...ree,...iee,...oee,...JJ,...tee,...see};class uee{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 uee(window.localStorage);function cee(e,t,n="/"){const r=L6({history:X8(n),routes:e});return r.beforeEach(dee()),r.beforeEach(Jy(t)),r}const dee=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},Jy=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()},hee=(e,t,n,r)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>Qe(()=>import("./AppNotFoundView-7e935df4.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>Qe(()=>import("./MainOverviewView-a0f0a5f6.js"),["./RouteView-a23fe6a9.css"],import.meta.url)},...e,...t,...n,...r];function fee(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.3.0",product:"Kuma",mode:"global",environment:"universal",apiReadOnly:!1}}class pee{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=vee(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=fee(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=mee(n.apiUrl),n}}function eb(e){return e.endsWith("/")?eb(e.slice(0,-1)):e}function mee(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,eb(e)}function vee(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 V0=function(e,t){return V0=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])},V0(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");V0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=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(See,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(cb.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Ym.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Ym,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=Me(Me({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Me(Me({},t),Vm(o)));continue}if(ub.test(a.stem)){t=Me(Me({},t),Vm(a.stem));continue}var i=db(a.stem);i&&(t=Me(Me({},t),i));var s=_ee(a.stem);s&&(t=Me(Me({},t),s))}return t}var rl={"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 Mee(e,t){for(var n="",r=0;r>1),l="a",u=Tee(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 Tee(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=rl[r||""]||rl[n||""]||rl["".concat(n,"-001")]||rl["001"];return a[0]}var Jc,Aee=new RegExp("^".concat(lb.source,"*")),Oee=new RegExp("".concat(lb.source,"*$"));function Je(e,t){return{start:e,end:t}}var Pee=!!String.prototype.startsWith,Iee=!!String.fromCodePoint,Bee=!!Object.fromEntries,Nee=!!String.prototype.codePointAt,Lee=!!String.prototype.trimStart,Ree=!!String.prototype.trimEnd,$ee=!!Number.isSafeInteger,Hee=$ee?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},G0=!0;try{var Fee=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G0=((Jc=Fee.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{G0=!1}var Gm=Pee?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},W0=Iee?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},Wm=Bee?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}},zee=Lee?function(e){return e.trimStart()}:function(e){return e.replace(Aee,"")},jee=Ree?function(e){return e.trimEnd()}:function(e){return e.replace(Oee,"")};function fb(e,t){return new RegExp(e,t)}var q0;if(G0){var qm=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q0=function(e,t){var n;qm.lastIndex=t;var r=qm.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else q0=function(e,t){for(var n=[];;){var r=hb(e,t);if(r===void 0||pb(r)||Vee(r))break;n.push(r),t+=r>=65536?2:1}return W0.apply(void 0,n)};var Uee=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&&Q0(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()&&Yee(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||!Zee(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 W0.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(),W0(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=q0(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=jee(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&&Gm(u==null?void 0:u.style,"::",0)){var v=zee(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=Mee(v,this.locale));var h={type:Go.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kee(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,Me({},m)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),M=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(),M=d.val}var B=this.tryParsePluralOrSelectOptions(t,s,n,w);if(B.err)return B;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:Wm(B.val),location:L},err:null}:{val:{type:gt.plural,value:r,options:Wm(B.val),offset:M,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=Eee(t)}catch{return this.error(Xe.INVALID_NUMBER_SKELETON,n)}return{val:{type:Go.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Dee(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,Hee(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=hb(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(Gm(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()&&pb(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 Q0(e){return e>=97&&e<=122||e>=65&&e<=90}function Zee(e){return Q0(e)||e===47}function Yee(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 pb(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Vee(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 X0(e){e.forEach(function(t){if(delete t.location,ab(t)||ob(t))for(var n in t.options)delete t.options[n].location,X0(t.options[n].value);else tb(t)&&sb(t.style)||(nb(t)||rb(t))&&K0(t.style)?delete t.style.location:ib(t)&&X0(t.children)})}function Kee(e,t){t===void 0&&(t={}),t=Me({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Uee(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||X0(n.val),n.val}function ar(e,t){var n=t&&t.cache?t.cache:Jee,r=t&&t.serializer?t.serializer:Xee,a=t&&t.strategy?t.strategy:Wee;return a(e,{cache:n,serializer:r})}function Gee(e){return e==null||typeof e=="number"||typeof e=="boolean"}function mb(e,t,n,r){var a=Gee(r)?r:n(r),o=t.get(a);return typeof o>"u"&&(o=e.call(this,r),t.set(a,o)),o}function vb(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 gf(e,t,n,r,a){return n.bind(t,e,r,a)}function Wee(e,t){var n=e.length===1?mb:vb;return gf(e,this,n,t.cache.create(),t.serializer)}function qee(e,t){return gf(e,this,vb,t.cache.create(),t.serializer)}function Qee(e,t){return gf(e,this,mb,t.cache.create(),t.serializer)}var Xee=function(){return JSON.stringify(arguments)};function yf(){this.cache=Object.create(null)}yf.prototype.get=function(e){return this.cache[e]};yf.prototype.set=function(e,t){this.cache[e]=t};var Jee={create:function(){return new yf}},or={variadic:qee,monadic:Qee},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),Qm=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),ete=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),tte=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 nte(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 rte(e){return typeof e=="function"}function Sl(e,t,n,r,a,o,i){if(e.length===1&&Zm(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()},Jy=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()},hee=(e,t,n,r)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>Qe(()=>import("./AppNotFoundView-be68dbc1.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>Qe(()=>import("./MainOverviewView-a9a403a6.js"),["./RouteView-a23fe6a9.css"],import.meta.url)},...e,...t,...n,...r];function fee(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.3.0",product:"Kuma",mode:"global",environment:"universal",apiReadOnly:!1}}class pee{constructor(t){st(this,"env");let n=t;const r=(s,l="")=>this.var(s,(n==null?void 0:n[s])??l),a=this.getConfig(),o=vee(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=fee(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=mee(n.apiUrl),n}}function eb(e){return e.endsWith("/")?eb(e.slice(0,-1)):e}function mee(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,eb(e)}function vee(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 V0=function(e,t){return V0=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])},V0(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");V0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=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(See,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(cb.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Ym.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Ym,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=Me(Me({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Me(Me({},t),Vm(o)));continue}if(ub.test(a.stem)){t=Me(Me({},t),Vm(a.stem));continue}var i=db(a.stem);i&&(t=Me(Me({},t),i));var s=_ee(a.stem);s&&(t=Me(Me({},t),s))}return t}var rl={"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 Mee(e,t){for(var n="",r=0;r>1),l="a",u=Tee(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 Tee(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=rl[r||""]||rl[n||""]||rl["".concat(n,"-001")]||rl["001"];return a[0]}var Jc,Aee=new RegExp("^".concat(lb.source,"*")),Oee=new RegExp("".concat(lb.source,"*$"));function Je(e,t){return{start:e,end:t}}var Pee=!!String.prototype.startsWith,Iee=!!String.fromCodePoint,Bee=!!Object.fromEntries,Nee=!!String.prototype.codePointAt,Lee=!!String.prototype.trimStart,Ree=!!String.prototype.trimEnd,$ee=!!Number.isSafeInteger,Hee=$ee?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},G0=!0;try{var Fee=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G0=((Jc=Fee.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{G0=!1}var Gm=Pee?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},W0=Iee?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},Wm=Bee?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}},zee=Lee?function(e){return e.trimStart()}:function(e){return e.replace(Aee,"")},jee=Ree?function(e){return e.trimEnd()}:function(e){return e.replace(Oee,"")};function fb(e,t){return new RegExp(e,t)}var q0;if(G0){var qm=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q0=function(e,t){var n;qm.lastIndex=t;var r=qm.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else q0=function(e,t){for(var n=[];;){var r=hb(e,t);if(r===void 0||pb(r)||Vee(r))break;n.push(r),t+=r>=65536?2:1}return W0.apply(void 0,n)};var Uee=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&&Q0(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()&&Yee(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||!Zee(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 W0.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(),W0(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=q0(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=jee(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&&Gm(u==null?void 0:u.style,"::",0)){var v=zee(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=Mee(v,this.locale));var h={type:Go.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kee(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,Me({},m)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),M=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(),M=d.val}var B=this.tryParsePluralOrSelectOptions(t,s,n,w);if(B.err)return B;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:Wm(B.val),location:L},err:null}:{val:{type:gt.plural,value:r,options:Wm(B.val),offset:M,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=Eee(t)}catch{return this.error(Xe.INVALID_NUMBER_SKELETON,n)}return{val:{type:Go.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Dee(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,Hee(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=hb(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(Gm(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()&&pb(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 Q0(e){return e>=97&&e<=122||e>=65&&e<=90}function Zee(e){return Q0(e)||e===47}function Yee(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 pb(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Vee(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 X0(e){e.forEach(function(t){if(delete t.location,ab(t)||ob(t))for(var n in t.options)delete t.options[n].location,X0(t.options[n].value);else tb(t)&&sb(t.style)||(nb(t)||rb(t))&&K0(t.style)?delete t.style.location:ib(t)&&X0(t.children)})}function Kee(e,t){t===void 0&&(t={}),t=Me({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Uee(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||X0(n.val),n.val}function ar(e,t){var n=t&&t.cache?t.cache:Jee,r=t&&t.serializer?t.serializer:Xee,a=t&&t.strategy?t.strategy:Wee;return a(e,{cache:n,serializer:r})}function Gee(e){return e==null||typeof e=="number"||typeof e=="boolean"}function mb(e,t,n,r){var a=Gee(r)?r:n(r),o=t.get(a);return typeof o>"u"&&(o=e.call(this,r),t.set(a,o)),o}function vb(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 gf(e,t,n,r,a){return n.bind(t,e,r,a)}function Wee(e,t){var n=e.length===1?mb:vb;return gf(e,this,n,t.cache.create(),t.serializer)}function qee(e,t){return gf(e,this,vb,t.cache.create(),t.serializer)}function Qee(e,t){return gf(e,this,mb,t.cache.create(),t.serializer)}var Xee=function(){return JSON.stringify(arguments)};function yf(){this.cache=Object.create(null)}yf.prototype.get=function(e){return this.cache[e]};yf.prototype.set=function(e,t){this.cache[e]=t};var Jee={create:function(){return new yf}},or={variadic:qee,monadic:Qee},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),Qm=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),ete=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),tte=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 nte(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 rte(e){return typeof e=="function"}function Sl(e,t,n,r,a,o,i){if(e.length===1&&Zm(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=Kee,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 Ls=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?` @@ -574,4 +574,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules" Try polyfilling it using "@formatjs/intl-relativetimeformat" `,vr.MISSING_INTL_API));try{return Mte(e,t,a).format(n,r)}catch(i){e.onError(new zn("Error formatting relative time.",e.locale,i))}return String(n)}var Ate=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function kb(e,t,n){var r=e.locale,a=e.formats,o=e.onError;n===void 0&&(n={});var i=n.format,s=i&&bf(a,"number",i,o)||{},l=ao(n,Ate,s);return t(r,l)}function Ote(e,t,n,r){r===void 0&&(r={});try{return kb(e,t,r).format(n)}catch(a){e.onError(new zn("Error formatting number.",e.locale,a))}return String(n)}function Pte(e,t,n,r){r===void 0&&(r={});try{return kb(e,t,r).formatToParts(n)}catch(a){e.onError(new zn("Error formatting number.",e.locale,a))}return[]}function Ite(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Bte(e){e.onWarn&&e.defaultRichTextElements&&Ite(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. Please consider using "@formatjs/cli" to pre-compile your messages for performance. -For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Nte(e,t){var n=fte(t),r=Me(Me({},hte),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new Xm('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 Xm('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 lte('"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"),Bte(r),Me(Me({},r),{formatters:n,formatNumber:Ote.bind(null,r,n.getNumberFormat),formatNumberToParts:Pte.bind(null,r,n.getNumberFormat),formatRelativeTime:Tte.bind(null,r,n.getRelativeTimeFormat),formatDate:mte.bind(null,r,n.getDateTimeFormat),formatDateToParts:yte.bind(null,r,n.getDateTimeFormat),formatTime:vte.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:gte.bind(null,r,n.getDateTimeFormat),formatTimeToParts:bte.bind(null,r,n.getDateTimeFormat),formatPlural:_te.bind(null,r,n.getPluralRules),formatMessage:tv.bind(null,r,n),$t:tv.bind(null,r,n),formatList:xte.bind(null,r,n.getListFormat),formatListToParts:wb.bind(null,r,n.getListFormat),formatDisplayName:kte.bind(null,r,n.getDisplayNames)})}var Lte=gs;gs.flatten=gs;gs.unflatten=xb;function Cb(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Eb(e){return e}function gs(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,a=t.transformKey||Eb,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=Cb(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]=xb(e[u],t)}),o}const Rte=yb(),$te=(e,t,n=!1)=>{const r=Nte({...typeof n=="boolean"?null:n,locale:e,messages:Lte.flatten(t,{safe:!0})},Rte),{$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 Hte(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}class rv extends Error{get key(){return this.message}}const Fte=(e,t)=>{const n=$te("en-us",e,!0);return{...n,t:function(...r){const a=r[0];try{if(typeof vf(e,a)>"u")throw a.startsWith("http.api.")?new rv(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 rv:return Hte(o.key.split(".").pop());default:throw o}}}}};class zte{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}}class jte extends zte{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},{name:n});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 Ute 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 Zte(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 Yte(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 Vte(i,u)}function Yte(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function Vte(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 Ute({status:n,type:r,title:a,detail:o,instance:i,invalidParameters:s})}class Kte{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=av(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=av(o);return Zte(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,n)}}function av(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 Gte={status:null,clientConfig:null},Wte={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t},qte={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"},Qte=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)})}}),Xte=e=>({namespaced:!0,state:()=>Gte,getters:qte,mutations:Wte,actions:Qte(e)}),Jte={isCompleted:_o.get("onboardingIsCompleted")==="true",step:_o.get("onboardingStep")||"onboarding-welcome",mode:"demo"},ene={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},tne={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)}},nne={namespaced:!0,state:()=>Jte,mutations:ene,actions:tne},rne={globalLoading:!0,defaultVisibility:{appError:!0,onboardingNotification:!0},meshes:{total:0,items:[],next:null},totalDataplaneCount:0,globalKdsAddress:"grpcs://:5685"},ane=e=>({modules:{config:Xte(e),onboarding:nne},state:()=>rne,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_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:Y0};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)}},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),one={...PX,EnvVars:Ue("EnvVars"),Env:Ue("Env"),env:Ue("env"),i18n:Ue("i18n"),enUs:Ue("i18n.locale.enUs"),kumaEnUs:Ue("kuma.locale.enUs"),httpClient:Ue("httpClient"),api:Ue("KumaApi"),dataSourcePool:Ue("DataSourcePool"),dataSourceLifecycle:Ue("DataSourceLifecycle"),sources:Ue("sources"),storeConfig:Ue("storeOptions"),store:Ue("store"),router:Ue("router"),routes:Ue("vue.routes"),navigationGuards:Ue("vue.routes.navigation.guards"),meshRoutes:Ue("kuma.mesh.routes"),dataplaneRoutes:Ue("kuma.dataplane.routes"),gatewayRoutes:Ue("kuma.gateway.routes"),serviceRoutes:Ue("kuma.service.routes"),policyRoutes:Ue("kuma.policy.routes"),zoneRoutes:Ue("kuma.zone.routes"),diagnosticsRoutes:Ue("kuma.diagnostics.routes"),onboardingRoutes:Ue("kuma.onboarding.routes"),onboardingRouteGuards:Ue("kuma.onboarding.routes"),nav:Ue("nav"),logger:Ue("logger"),app:Ue("app"),bootstrap:Ue("bootstrap")},ine=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:pee,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>Ns(e.Env).var(...t)}],[e.i18n,{service:Fte,arguments:[e.enUs,e.env]}],[e.kumaEnUs,{constant:lee,labels:[e.enUs]}],[e.httpClient,{service:Kte,arguments:[e.env]}],[e.dataSourceLifecycle,{constant:fJ}],[e.dataSourcePool,{service:iJ,arguments:[e.sources,e.dataSourceLifecycle]}],[e.api,{service:jte,arguments:[e.httpClient,e.env]}],[e.logger,{service:B8}],[e.storeConfig,{service:ane,arguments:[e.api]}],[e.store,{service:P8,arguments:[e.storeConfig]}],[e.router,{service:(t,n,r)=>cee(t,n,r("KUMA_BASE_PATH")),arguments:[e.routes,e.store,e.env]}],[e.nav,{service:()=>t=>MJ(t)}],[e.app,{service:zQ,arguments:[e.store,e.router]}],[e.bootstrap,{service:jQ,arguments:[e.store]}],[e.onboardingRouteGuards,{service:t=>[Jy(t)],arguments:[e.store],labels:[e.navigationGuards]}],[e.routes,{service:hee,arguments:[e.zoneRoutes,e.meshRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:IJ,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:gJ}],[e.gatewayRoutes,{service:SJ}],[e.serviceRoutes,{service:jJ}],[e.policyRoutes,{service:$J}],[e.zoneRoutes,{service:GJ,arguments:[AX([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?KJ():[]],{description:"kuma.zone.action.routes"})]}],[e.onboardingRoutes,{service:LJ}],[e.diagnosticsRoutes,{service:kJ}],...OX(),...OJ(e),...WJ(e),...NJ(e),...ZJ(e),...bJ(e),...DJ(e),...FJ(e),...EJ(e)],ol=one;async function sne(){const e=MX(ine(ol),[]);(await e(ol.app)((await Qe(()=>import("./App-b22c5bd4.js"),["./RouteView-a23fe6a9.css","./App-0a6d594d.css"],import.meta.url)).default)).mount("#app");const n=e(ol.store);await n.dispatch("updateGlobalLoading",!0),await e(ol.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}sne();export{rq as $,Wa as A,qa as B,It as C,We as D,us as E,Ae as F,Ah as G,q5 as H,dne as I,Le as J,vne as K,ti as L,jg as M,h2 as N,Al as O,t8 as P,Ur as Q,Ss as R,jV as S,ja as T,Ute as U,kV as V,uq as W,$G as X,Di as Y,gne as Z,Et as _,se as a,TX as a0,ol as a1,Ns as a2,Ga as a3,Te as a4,at as a5,Qe as a6,ei as a7,cne as a8,AX as a9,Kn as aa,ul as ab,d2 as ac,fne as ad,hne as ae,cX as af,_o as ag,tS as ah,z6 as ai,he as b,I as c,ge as d,S as e,$ as f,J as g,G as h,va as i,j,ft as k,une as l,$n as m,q as n,k as o,Rn as p,O as q,Gn as r,ot as s,V as t,$6 as u,Ie as v,z as w,ZG as x,gr as y,F as z}; +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Nte(e,t){var n=fte(t),r=Me(Me({},hte),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new Xm('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 Xm('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 lte('"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"),Bte(r),Me(Me({},r),{formatters:n,formatNumber:Ote.bind(null,r,n.getNumberFormat),formatNumberToParts:Pte.bind(null,r,n.getNumberFormat),formatRelativeTime:Tte.bind(null,r,n.getRelativeTimeFormat),formatDate:mte.bind(null,r,n.getDateTimeFormat),formatDateToParts:yte.bind(null,r,n.getDateTimeFormat),formatTime:vte.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:gte.bind(null,r,n.getDateTimeFormat),formatTimeToParts:bte.bind(null,r,n.getDateTimeFormat),formatPlural:_te.bind(null,r,n.getPluralRules),formatMessage:tv.bind(null,r,n),$t:tv.bind(null,r,n),formatList:xte.bind(null,r,n.getListFormat),formatListToParts:wb.bind(null,r,n.getListFormat),formatDisplayName:kte.bind(null,r,n.getDisplayNames)})}var Lte=gs;gs.flatten=gs;gs.unflatten=xb;function Cb(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Eb(e){return e}function gs(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,a=t.transformKey||Eb,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=Cb(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]=xb(e[u],t)}),o}const Rte=yb(),$te=(e,t,n=!1)=>{const r=Nte({...typeof n=="boolean"?null:n,locale:e,messages:Lte.flatten(t,{safe:!0})},Rte),{$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 Hte(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}class rv extends Error{get key(){return this.message}}const Fte=(e,t)=>{const n=$te("en-us",e,!0);return{...n,t:function(...r){const a=r[0];try{if(typeof vf(e,a)>"u")throw a.startsWith("http.api.")?new rv(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 rv:return Hte(o.key.split(".").pop());default:throw o}}}}};class zte{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}}class jte extends zte{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},{name:n});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 Ute extends Error{constructor({status:n,type:r=null,title:a,detail:o=null,instance:i=null,invalidParameters:s=[]}){super(a);st(this,"status");st(this,"type");st(this,"title");st(this,"detail");st(this,"instance");st(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 Zte(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 Yte(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 Vte(i,u)}function Yte(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function Vte(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 Ute({status:n,type:r,title:a,detail:o,instance:i,invalidParameters:s})}class Kte{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=av(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=av(o);return Zte(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,n)}}function av(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 Gte={status:null,clientConfig:null},Wte={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t},qte={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"},Qte=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)})}}),Xte=e=>({namespaced:!0,state:()=>Gte,getters:qte,mutations:Wte,actions:Qte(e)}),Jte={isCompleted:_o.get("onboardingIsCompleted")==="true",step:_o.get("onboardingStep")||"onboarding-welcome",mode:"demo"},ene={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},tne={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)}},nne={namespaced:!0,state:()=>Jte,mutations:ene,actions:tne},rne={globalLoading:!0,defaultVisibility:{appError:!0,onboardingNotification:!0},meshes:{total:0,items:[],next:null},totalDataplaneCount:0,globalKdsAddress:"grpcs://:5685"},ane=e=>({modules:{config:Xte(e),onboarding:nne},state:()=>rne,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_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:Y0};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)}},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),one={...PX,EnvVars:je("EnvVars"),Env:je("Env"),env:je("env"),i18n:je("i18n"),enUs:je("i18n.locale.enUs"),kumaEnUs:je("kuma.locale.enUs"),httpClient:je("httpClient"),api:je("KumaApi"),getDataSourceCacheKeyPrefix:je("getDataSourceCacheKeyPrefix"),dataSourcePool:je("DataSourcePool"),dataSourceLifecycle:je("DataSourceLifecycle"),sources:je("sources"),storeConfig:je("storeOptions"),store:je("store"),router:je("router"),routes:je("vue.routes"),navigationGuards:je("vue.routes.navigation.guards"),meshRoutes:je("kuma.mesh.routes"),dataplaneRoutes:je("kuma.dataplane.routes"),gatewayRoutes:je("kuma.gateway.routes"),serviceRoutes:je("kuma.service.routes"),policyRoutes:je("kuma.policy.routes"),zoneRoutes:je("kuma.zone.routes"),diagnosticsRoutes:je("kuma.diagnostics.routes"),onboardingRoutes:je("kuma.onboarding.routes"),onboardingRouteGuards:je("kuma.onboarding.routes"),nav:je("nav"),logger:je("logger"),app:je("app"),bootstrap:je("bootstrap")},ine=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:pee,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>Ns(e.Env).var(...t)}],[e.i18n,{service:Fte,arguments:[e.enUs,e.env]}],[e.kumaEnUs,{constant:lee,labels:[e.enUs]}],[e.httpClient,{service:Kte,arguments:[e.env]}],[e.dataSourceLifecycle,{constant:fJ}],[e.getDataSourceCacheKeyPrefix,{service:()=>()=>"",arguments:[e.router]}],[e.dataSourcePool,{service:iJ,arguments:[e.sources,e.dataSourceLifecycle,e.getDataSourceCacheKeyPrefix]}],[e.api,{service:jte,arguments:[e.httpClient,e.env]}],[e.logger,{service:B8}],[e.storeConfig,{service:ane,arguments:[e.api]}],[e.store,{service:P8,arguments:[e.storeConfig]}],[e.router,{service:(t,n,r)=>cee(t,n,r("KUMA_BASE_PATH")),arguments:[e.routes,e.store,e.env]}],[e.nav,{service:()=>t=>MJ(t)}],[e.app,{service:zQ,arguments:[e.store,e.router]}],[e.bootstrap,{service:jQ,arguments:[e.store]}],[e.onboardingRouteGuards,{service:t=>[Jy(t)],arguments:[e.store],labels:[e.navigationGuards]}],[e.routes,{service:hee,arguments:[e.zoneRoutes,e.meshRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:IJ,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:gJ}],[e.gatewayRoutes,{service:SJ}],[e.serviceRoutes,{service:jJ}],[e.policyRoutes,{service:$J}],[e.zoneRoutes,{service:GJ,arguments:[AX([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?KJ():[]],{description:"kuma.zone.action.routes"})]}],[e.onboardingRoutes,{service:LJ}],[e.diagnosticsRoutes,{service:kJ}],...OX(),...OJ(e),...WJ(e),...NJ(e),...ZJ(e),...bJ(e),...DJ(e),...FJ(e),...EJ(e)],ol=one;async function sne(){const e=MX(ine(ol),[]);(await e(ol.app)((await Qe(()=>import("./App-abd0b226.js"),["./RouteView-a23fe6a9.css","./App-0a6d594d.css"],import.meta.url)).default)).mount("#app");const n=e(ol.store);await n.dispatch("updateGlobalLoading",!0),await e(ol.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}sne();export{rq as $,Wa as A,qa as B,It as C,We as D,us as E,Ae as F,Ah as G,q5 as H,dne as I,Le as J,vne as K,ti as L,jg as M,h2 as N,Al as O,t8 as P,Ur as Q,Ss as R,jV as S,ja as T,Ute as U,kV as V,uq as W,$G as X,Di as Y,gne as Z,Et as _,se as a,TX as a0,ol as a1,Ns as a2,Ga as a3,Te as a4,at as a5,Qe as a6,ei as a7,cne as a8,AX as a9,Kn as aa,ul as ab,d2 as ac,fne as ad,hne as ae,cX as af,_o as ag,tS as ah,z6 as ai,he as b,I as c,ge as d,S as e,$ as f,J as g,G as h,va as i,j,ft as k,une as l,$n as m,q as n,k as o,Rn as p,O as q,Gn as r,ot as s,V as t,$6 as u,Ie as v,z as w,ZG as x,gr as y,F as z}; diff --git a/app/kuma-ui/pkg/resources/data/index.html b/app/kuma-ui/pkg/resources/data/index.html index 48d7277ba08b..f9c3bfbbea98 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