diff --git a/css/0.15feb0bd.css b/css/0.15feb0bd.css
deleted file mode 100644
index 2a67ef0..0000000
--- a/css/0.15feb0bd.css
+++ /dev/null
@@ -1 +0,0 @@
-.q-item--active[data-v-bc215e44],.q-item.q-router-link--active[data-v-bc215e44]{background-color:#fff}.body--dark .q-item--active[data-v-bc215e44],.body--dark .q-item.q-router-link--active[data-v-bc215e44]{background-color:#111827;color:#fff}
\ No newline at end of file
diff --git a/css/543.1a5aed88.css b/css/440.1a5aed88.css
similarity index 100%
rename from css/543.1a5aed88.css
rename to css/440.1a5aed88.css
diff --git a/css/870.c4866c3f.css b/css/870.c4866c3f.css
new file mode 100644
index 0000000..849a698
--- /dev/null
+++ b/css/870.c4866c3f.css
@@ -0,0 +1 @@
+.q-item--active[data-v-292be728],.q-item.q-router-link--active[data-v-292be728]{background-color:#fff}.body--dark .q-item--active[data-v-292be728],.body--dark .q-item.q-router-link--active[data-v-292be728]{background-color:#111827;color:#fff}
\ No newline at end of file
diff --git a/index.html b/index.html
index 6f3dc1a..83fd813 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
Typesense-Dashboard
\ No newline at end of file
+Typesense-Dashboard
\ No newline at end of file
diff --git a/js/0.f9f2159b.js b/js/0.f9f2159b.js
deleted file mode 100644
index 07f9784..0000000
--- a/js/0.f9f2159b.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[0],{21e3:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var l=a(59835),o=a(86970);function n(e,t,a,n,r,s){const i=(0,l.up)("q-btn"),u=(0,l.up)("q-toolbar-title"),d=(0,l.up)("q-icon"),c=(0,l.up)("server-history"),m=(0,l.up)("q-menu"),w=(0,l.up)("q-separator"),_=(0,l.up)("q-toolbar"),p=(0,l.up)("q-header"),f=(0,l.up)("nav-menu"),W=(0,l.up)("q-drawer"),y=(0,l.up)("q-banner"),b=(0,l.up)("router-view"),h=(0,l.up)("q-page-container"),k=(0,l.up)("q-layout");return(0,l.wg)(),(0,l.j4)(k,{view:"hHh Lpr lFf"},{default:(0,l.w5)((()=>[(0,l.Wm)(p,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",dense:"",round:"",icon:e.leftDrawerOpen?"sym_s_menu_open":"sym_s_menu","aria-label":"Menu",onClick:e.toggleLeftDrawer},null,8,["icon","onClick"]),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Typesense Dashboard ")])),_:1}),(0,l.Wm)(i,{padding:"xs md",flat:"",dense:"","no-caps":""},{default:(0,l.w5)((()=>{var t;return[(0,l.Uk)((0,o.zw)(null===(t=e.$store.state.node.loginData)||void 0===t?void 0:t.node.host)+" ",1),(0,l.Wm)(d,{right:"",name:"sym_s_switch_account"}),(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c,{"show-logout":!0})])),_:1})]})),_:1}),(0,l.Wm)(w,{dark:"",vertical:"",spaced:"",inset:""}),(0,l.Wm)(i,{onClick:t[0]||(t[0]=t=>e.$q.dark.toggle()),flat:"",dense:"",icon:e.$q.dark.isActive?"sym_s_light_mode":"sym_s_dark_mode",title:"Toggle Dark Mode"},null,8,["icon"])])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:e.leftDrawerOpen,"onUpdate:modelValue":t[1]||(t[1]=t=>e.leftDrawerOpen=t),"show-if-above":"",side:"left",width:250,class:"bg-primary text-white"},{default:(0,l.w5)((()=>[(0,l.Wm)(f)])),_:1},8,["modelValue"]),(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[e.$store.state.node.error?((0,l.wg)(),(0,l.j4)(y,{key:0,"inline-actions":"",class:"text-white bg-red fixed-top z-max"},{action:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",color:"white",label:"Dismiss",onClick:t[2]||(t[2]=t=>e.dismiss())})])),default:(0,l.w5)((()=>[(0,l.Uk)((0,o.zw)(e.$store.state.node.error)+" ",1)])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(b)])),_:1})])),_:1})}function r(e,t,a,o,n,r){const s=(0,l.up)("q-icon"),i=(0,l.up)("q-item-section"),u=(0,l.up)("q-item"),d=(0,l.up)("q-item-label"),c=(0,l.up)("q-separator"),m=(0,l.up)("q-select"),w=(0,l.up)("q-list"),_=(0,l.Q2)("ripple");return(0,l.wg)(),(0,l.j4)(w,null,{default:(0,l.w5)((()=>{var a,o,n,r,w;return[(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dns"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Server Status ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/collections",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_grid_view"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Uk)("Collections")])),_:1})])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/aliases",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_call_split"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Aliases ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/apikeys",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_key"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" API Keys ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/analyticsrules",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_query_stats"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Analytics Rules ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/searchpresets",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_manage_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search Presets ")])),_:1})])),_:1})),[[_]]),(0,l.Wm)(c,{spaced:""}),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,{borderless:"",modelValue:e.currentCollection,"onUpdate:modelValue":t[0]||(t[0]=t=>e.currentCollection=t),options:e.$store.state.node.data.collections,label:"Collection","option-label":"name",color:"white","label-color":"white",dark:""},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(a=e.currentCollection)||void 0===a?void 0:a.name}/search`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(o=e.currentCollection)||void 0===o?void 0:o.name}/synonyms`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dataset_linked"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Synonyms ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(n=e.currentCollection)||void 0===n?void 0:n.name}/curations`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_low_priority"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Curations ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(r=e.currentCollection)||void 0===r?void 0:r.name}/schema`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_data_object"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Schema ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(w=e.currentCollection)||void 0===w?void 0:w.name}/document`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_library_add"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Add Document ")])),_:1})])),_:1},8,["to","disable"])),[[_]])]})),_:1})}const s=(0,l.aZ)({name:"NavMenu",data(){return{model:"",options:["abc","def"]}},computed:{currentCollection:{get(){return this.$store.state.node.currentCollection},set(e){this.$store.dispatch("node/loadCurrentCollection",e)}}}});var i=a(11639),u=a(13246),d=a(490),c=a(76749),m=a(22857),w=a(33115),_=a(50926),p=a(67887),f=a(9684),W=a(69984),y=a.n(W);const b=(0,i.Z)(s,[["render",r],["__scopeId","data-v-bc215e44"]]),h=b;y()(s,"components",{QList:u.Z,QItem:d.Z,QItemSection:c.Z,QIcon:m.Z,QItemLabel:w.Z,QSeparator:_.Z,QSelect:p.Z}),y()(s,"directives",{Ripple:f.Z});var k=a(46115);const v=(0,l.aZ)({name:"MainLayout",components:{NavMenu:h,ServerHistory:k.Z},data(){return{leftDrawerOpen:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},logout(){this.$store.dispatch("node/logout")},dismiss(){this.$store.commit("node/setError",null)},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var g=a(20249),C=a(16602),Z=a(51663),q=a(24455),Q=a(81973),$=a(47447),x=a(10906),U=a(12133),j=a(47128);const D=(0,i.Z)(v,[["render",n]]),S=D;y()(v,"components",{QLayout:g.Z,QHeader:C.Z,QToolbar:Z.Z,QBtn:q.Z,QToolbarTitle:Q.Z,QIcon:m.Z,QMenu:$.Z,QSeparator:_.Z,QDrawer:x.Z,QPageContainer:U.Z,QBanner:j.Z})}}]);
\ No newline at end of file
diff --git a/js/210.f3d8b8b0.js b/js/210.f3d8b8b0.js
new file mode 100644
index 0000000..c379fdc
--- /dev/null
+++ b/js/210.f3d8b8b0.js
@@ -0,0 +1 @@
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[210],{24210:(e,t,o)=>{o.r(t),o.d(t,{default:()=>v});var s=o(59835),l=o(86970);const d={class:"text-h6"};function a(e,t,o,a,r,n){const i=(0,s.up)("q-input"),p=(0,s.up)("q-btn"),c=(0,s.up)("q-select"),u=(0,s.up)("q-card-section"),m=(0,s.up)("q-banner"),w=(0,s.up)("q-card-actions"),f=(0,s.up)("q-card"),h=(0,s.up)("q-expansion-item"),S=(0,s.up)("q-icon"),_=(0,s.up)("q-chip"),b=(0,s.up)("q-td"),g=(0,s.up)("q-table"),y=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(y,{padding:""},{default:(0,s.w5)((()=>[(0,s.Wm)(h,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Stopwords Set","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":t[4]||(t[4]=t=>e.expanded=t)},{default:(0,s.w5)((()=>[(0,s.Wm)(f,{class:"bg-surface column"},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{class:"q-col-gutter-md row"},{default:(0,s.w5)((()=>[(0,s.Wm)(i,{class:"col-12 col-sm-6",modelValue:e.stopwordsSet.id,"onUpdate:modelValue":t[0]||(t[0]=t=>e.stopwordsSet.id=t),label:"ID",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"]),(0,s.Wm)(i,{filled:"",label:"Locale",modelValue:e.stopwordsSet.locale,"onUpdate:modelValue":t[1]||(t[1]=t=>e.stopwordsSet.locale=t),class:"col-12 col-sm-4"},null,8,["modelValue"]),(0,s.Wm)(p,{type:"a",icon:"sym_s_help","no-caps":"",color:"info",flat:"",dense:"",href:`https://typesense.org/docs/${e.$store.state.node.data.debug.version}/api/stopwords.html`,target:"_blank"},{default:(0,s.w5)((()=>[(0,s.Uk)(" Documentation ")])),_:1},8,["href"]),(0,s.Wm)(c,{class:"col-12",filled:"",modelValue:e.stopwordsSet.stopwords,"onUpdate:modelValue":t[2]||(t[2]=t=>e.stopwordsSet.stopwords=t),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Stopwords",hint:"Enter a stopword and press enter"},null,8,["modelValue"])])),_:1}),e.jsonError?((0,s.wg)(),(0,s.j4)(m,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,s.w5)((()=>[(0,s.Uk)(" Invalid Format: "+(0,l.zw)(e.jsonError),1)])),_:1})):(0,s.kq)("",!0),(0,s.Wm)(w,{align:"right",class:"bg-primary"},{default:(0,s.w5)((()=>[(0,s.Wm)(p,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[3]||(t[3]=t=>e.createStopwordsSet())},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(e.isUpdate?"Update":"Add")+" Set ",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,s.Wm)(g,{class:"q-mt-md",title:"Search Presets",flat:"",bordered:"","wrap-cells":"",filter:e.filter,rows:e.$store.state.node.data.stopwords,columns:e.columns,"row-key":"id"},{"top-left":(0,s.w5)((()=>[(0,s._)("div",d,[(0,s.Wm)(S,{size:"md",name:"sym_s_playlist_remove"}),(0,s.Uk)(" Stopwords Sets ")])])),"top-right":(0,s.w5)((()=>[(0,s.Wm)(i,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[5]||(t[5]=t=>e.filter=t),placeholder:"Search"},{append:(0,s.w5)((()=>[(0,s.Wm)(S,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-stopwords":(0,s.w5)((e=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row.stopwords,(e=>((0,s.wg)(),(0,s.j4)(_,{key:e},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(e),1)])),_:2},1024)))),128))])),_:2},1024)])),"body-cell-actions_op":(0,s.w5)((t=>[(0,s.Wm)(b,{class:"text-right text-no-wrap"},{default:(0,s.w5)((()=>[(0,s.Wm)(p,{flat:"",color:"primary",onClick:o=>e.editStopwordsSet(t.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,s.Wm)(p,{flat:"",color:"negative",onClick:o=>e.deleteStopwordsSet(t.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var r=function(e,t,o,s){function l(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,d){function a(e){try{n(s.next(e))}catch(t){d(t)}}function r(e){try{n(s["throw"](e))}catch(t){d(t)}}function n(e){e.done?o(e.value):l(e.value).then(a,r)}n((s=s.apply(e,t||[])).next())}))};const n=(0,s.aZ)({name:"Stopwords",data(){return{jsonError:null,stopwordsSet:{id:"stopword_set1",locale:"en",stopwords:["states","united","france","germany","italy"]},expanded:0===this.$store.state.node.data.stopwords.length,filter:"",columns:[{label:"ID",name:"id",field:"id",sortable:!0,align:"left"},{label:"Locale",name:"locale",field:"locale",sortable:!0,align:"left"},{label:"Stopwords",name:"stopwords",field:"stopwords",sortable:!0,align:"left"},{label:"Actions",name:"actions_op",align:"right"}]}},computed:{isUpdate(){return this.$store.state.node.data.stopwords.map((e=>e.id)).includes(this.stopwordsSet.id)}},mounted(){this.$store.dispatch("node/getStopwords")},methods:{createStopwordsSet(){return r(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/upsertStopwords",JSON.parse(JSON.stringify(this.stopwordsSet)))}))},editStopwordsSet(e){this.stopwordsSet=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteStopwordsSet(e){this.$q.dialog({title:"Confirm",message:`Delete stopwords set ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteStopwords",e)}))}}});var i=o(11639),p=o(69885),c=o(61123),u=o(44458),m=o(63190),w=o(66611),f=o(24455),h=o(26384),S=o(47128),_=o(11821),b=o(86008),g=o(22857),y=o(67220),k=o(57691),q=o(69984),W=o.n(q);const x=(0,i.Z)(n,[["render",a]]),v=x;W()(n,"components",{QPage:p.Z,QExpansionItem:c.Z,QCard:u.Z,QCardSection:m.Z,QInput:w.Z,QBtn:f.Z,QSelect:h.Z,QBanner:S.Z,QCardActions:_.Z,QTable:b.Z,QIcon:g.Z,QTd:y.Z,QChip:k.Z})}}]);
\ No newline at end of file
diff --git a/js/417.cc591dbf.js b/js/417.1dae2e68.js
similarity index 98%
rename from js/417.cc591dbf.js
rename to js/417.1dae2e68.js
index 28bfdcf..adaa956 100644
--- a/js/417.cc591dbf.js
+++ b/js/417.1dae2e68.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[417],{39417:(e,a,l)=>{l.r(a),l.d(a,{default:()=>k});var t=l(59835),n=l(86970);const s={class:"text-h6"};function i(e,a,l,i,o,d){const c=(0,t.up)("q-input"),m=(0,t.up)("q-select"),r=(0,t.up)("q-card-section"),u=(0,t.up)("q-btn"),p=(0,t.up)("q-card-actions"),f=(0,t.up)("q-card"),_=(0,t.up)("q-expansion-item"),h=(0,t.up)("q-icon"),b=(0,t.up)("q-td"),g=(0,t.up)("q-table"),w=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(w,{padding:""},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Alias","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":a[3]||(a[3]=a=>e.expanded=a)},{default:(0,t.w5)((()=>[(0,t.Wm)(f,{class:"bg-surface column"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:e.alias.name,"onUpdate:modelValue":a[0]||(a[0]=a=>e.alias.name=a),label:"Alias name",filled:"",rules:[a=>!e.collectionNames.includes(a)||"Must not be a collection name"]},null,8,["modelValue","rules"]),(0,t.Wm)(m,{modelValue:e.alias.collection_name,"onUpdate:modelValue":a[1]||(a[1]=a=>e.alias.collection_name=a),label:"Target Collection",filled:"",options:e.collectionNames},null,8,["modelValue","options"])])),_:1}),(0,t.Wm)(p,{align:"right",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:a[2]||(a[2]=a=>e.createAlias())},{default:(0,t.w5)((()=>[(0,t.Uk)((0,n.zw)(e.isUpdate?"Update":"Add")+" Alias",1)])),_:1})])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,t.Wm)(g,{class:"q-mt-md",title:"Aliases",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.aliases,columns:e.columns,"row-key":"name","visible-columns":["name","collection_name","actions"],pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,t.w5)((()=>[(0,t._)("div",s,[(0,t.Wm)(h,{size:"md",name:"sym_s_call_split"}),(0,t.Uk)(" Aliases")])])),"top-right":(0,t.w5)((()=>[(0,t.Wm)(c,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":a[4]||(a[4]=a=>e.filter=a),placeholder:"Search"},{append:(0,t.w5)((()=>[(0,t.Wm)(h,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,t.w5)((a=>[(0,t.Wm)(b,{class:"text-right"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{flat:"",color:"primary",onClick:l=>e.editAlias(a.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,t.Wm)(u,{flat:"",color:"negative",onClick:l=>e.deleteAlias(a.row.name),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var o=function(e,a,l,t){function n(e){return e instanceof l?e:new l((function(a){a(e)}))}return new(l||(l=Promise))((function(l,s){function i(e){try{d(t.next(e))}catch(a){s(a)}}function o(e){try{d(t["throw"](e))}catch(a){s(a)}}function d(e){e.done?l(e.value):n(e.value).then(i,o)}d((t=t.apply(e,a||[])).next())}))};const d=(0,t.aZ)({name:"Aliases",data(){return{alias:{name:"",collection_name:""},expanded:0===this.$store.state.node.data.aliases.length,filter:"",columns:[{label:"Alias Name",name:"name",field:"name",align:"left",sortable:!0},{label:"Collection Name",name:"collection_name",field:"collection_name",align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{collectionNames(){return this.$store.state.node.data.collections.map((e=>e.name))},isUpdate(){return this.$store.state.node.data.aliases.map((e=>e.name)).includes(this.alias.name)}},methods:{createAlias(){return o(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/createAlias",{name:this.alias.name,collection_name:this.alias.collection_name}),this.alias={name:"",collection_name:""},this.expanded=!1}))},editAlias(e){this.alias=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteAlias(e){this.$q.dialog({title:"Confirm",message:`Delete alias ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteAlias",e)}))}}});var c=l(11639),m=l(69885),r=l(61123),u=l(44458),p=l(63190),f=l(66611),_=l(67887),h=l(11821),b=l(24455),g=l(86008),w=l(22857),y=l(67220),A=l(69984),x=l.n(A);const W=(0,c.Z)(d,[["render",i]]),k=W;x()(d,"components",{QPage:m.Z,QExpansionItem:r.Z,QCard:u.Z,QCardSection:p.Z,QInput:f.Z,QSelect:_.Z,QCardActions:h.Z,QBtn:b.Z,QTable:g.Z,QIcon:w.Z,QTd:y.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[417],{39417:(e,a,l)=>{l.r(a),l.d(a,{default:()=>k});var t=l(59835),n=l(86970);const s={class:"text-h6"};function i(e,a,l,i,o,d){const c=(0,t.up)("q-input"),m=(0,t.up)("q-select"),r=(0,t.up)("q-card-section"),u=(0,t.up)("q-btn"),p=(0,t.up)("q-card-actions"),f=(0,t.up)("q-card"),_=(0,t.up)("q-expansion-item"),h=(0,t.up)("q-icon"),b=(0,t.up)("q-td"),g=(0,t.up)("q-table"),w=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(w,{padding:""},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Alias","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":a[3]||(a[3]=a=>e.expanded=a)},{default:(0,t.w5)((()=>[(0,t.Wm)(f,{class:"bg-surface column"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:e.alias.name,"onUpdate:modelValue":a[0]||(a[0]=a=>e.alias.name=a),label:"Alias name",filled:"",rules:[a=>!e.collectionNames.includes(a)||"Must not be a collection name"]},null,8,["modelValue","rules"]),(0,t.Wm)(m,{modelValue:e.alias.collection_name,"onUpdate:modelValue":a[1]||(a[1]=a=>e.alias.collection_name=a),label:"Target Collection",filled:"",options:e.collectionNames},null,8,["modelValue","options"])])),_:1}),(0,t.Wm)(p,{align:"right",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:a[2]||(a[2]=a=>e.createAlias())},{default:(0,t.w5)((()=>[(0,t.Uk)((0,n.zw)(e.isUpdate?"Update":"Add")+" Alias",1)])),_:1})])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,t.Wm)(g,{class:"q-mt-md",title:"Aliases",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.aliases,columns:e.columns,"row-key":"name","visible-columns":["name","collection_name","actions"],pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,t.w5)((()=>[(0,t._)("div",s,[(0,t.Wm)(h,{size:"md",name:"sym_s_call_split"}),(0,t.Uk)(" Aliases")])])),"top-right":(0,t.w5)((()=>[(0,t.Wm)(c,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":a[4]||(a[4]=a=>e.filter=a),placeholder:"Search"},{append:(0,t.w5)((()=>[(0,t.Wm)(h,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,t.w5)((a=>[(0,t.Wm)(b,{class:"text-right"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{flat:"",color:"primary",onClick:l=>e.editAlias(a.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,t.Wm)(u,{flat:"",color:"negative",onClick:l=>e.deleteAlias(a.row.name),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var o=function(e,a,l,t){function n(e){return e instanceof l?e:new l((function(a){a(e)}))}return new(l||(l=Promise))((function(l,s){function i(e){try{d(t.next(e))}catch(a){s(a)}}function o(e){try{d(t["throw"](e))}catch(a){s(a)}}function d(e){e.done?l(e.value):n(e.value).then(i,o)}d((t=t.apply(e,a||[])).next())}))};const d=(0,t.aZ)({name:"Aliases",data(){return{alias:{name:"",collection_name:""},expanded:0===this.$store.state.node.data.aliases.length,filter:"",columns:[{label:"Alias Name",name:"name",field:"name",align:"left",sortable:!0},{label:"Collection Name",name:"collection_name",field:"collection_name",align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{collectionNames(){return this.$store.state.node.data.collections.map((e=>e.name))},isUpdate(){return this.$store.state.node.data.aliases.map((e=>e.name)).includes(this.alias.name)}},methods:{createAlias(){return o(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/createAlias",{name:this.alias.name,collection_name:this.alias.collection_name}),this.alias={name:"",collection_name:""},this.expanded=!1}))},editAlias(e){this.alias=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteAlias(e){this.$q.dialog({title:"Confirm",message:`Delete alias ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteAlias",e)}))}}});var c=l(11639),m=l(69885),r=l(61123),u=l(44458),p=l(63190),f=l(66611),_=l(26384),h=l(11821),b=l(24455),g=l(86008),w=l(22857),y=l(67220),A=l(69984),x=l.n(A);const W=(0,c.Z)(d,[["render",i]]),k=W;x()(d,"components",{QPage:m.Z,QExpansionItem:r.Z,QCard:u.Z,QCardSection:p.Z,QInput:f.Z,QSelect:_.Z,QCardActions:h.Z,QBtn:b.Z,QTable:g.Z,QIcon:w.Z,QTd:y.Z})}}]);
\ No newline at end of file
diff --git a/js/543.201f6764.js b/js/440.d8386022.js
similarity index 98%
rename from js/543.201f6764.js
rename to js/440.d8386022.js
index 04d4099..6e979a6 100644
--- a/js/543.201f6764.js
+++ b/js/440.d8386022.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[543],{40758:(e,t,s)=>{s.r(t),s.d(t,{default:()=>pe});var i=s(59835);function n(e,t,s,n,a,r){const l=(0,i.up)("q-tab"),o=(0,i.up)("q-tabs"),c=(0,i.up)("q-separator"),u=(0,i.up)("search-instant-search"),m=(0,i.up)("q-tab-panel"),d=(0,i.up)("search-json"),h=(0,i.up)("q-tab-panels"),p=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(p,{padding:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),dense:"",class:"bg-primary text-white",align:"justify","narrow-indicator":""},{default:(0,i.w5)((()=>[(0,i.Wm)(l,{name:"form",label:"InstantSearch Mode"}),(0,i.Wm)(l,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,i.Wm)(c),(0,i.Wm)(h,{modelValue:e.tab,"onUpdate:modelValue":t[1]||(t[1]=t=>e.tab=t),animated:"","keep-alive":""},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{name:"form"},{default:(0,i.w5)((()=>[(0,i.Wm)(u)])),_:1}),(0,i.Wm)(m,{name:"json",class:"q-pa-none"},{default:(0,i.w5)((()=>[(0,i.Wm)(d)])),_:1})])),_:1},8,["modelValue"])])),_:1})}var a=s(86970);const r={class:"row"},l={class:"col-9"},o={class:"col-3"},c={class:"q-mt-md"},u={key:1,class:"ais-Hits q-mt-md"},m={class:"ais-Hits-list"},d={key:2,class:"text-h5 q-mt-md"},h={key:3};function p(e,t,s,n,p,f){const g=(0,i.up)("monaco-editor"),w=(0,i.up)("q-item-label"),y=(0,i.up)("q-item-section"),b=(0,i.up)("q-item"),v=(0,i.up)("q-list"),_=(0,i.up)("q-scroll-area"),k=(0,i.up)("q-banner"),W=(0,i.up)("q-btn"),C=(0,i.up)("search-result-item"),q=(0,i.Q2)("ripple");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",r,[(0,i._)("div",l,[(0,i.Wm)(g,{modelValue:e.searchParametersJson,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchParametersJson=t),style:{height:"30vh","min-height":"200px"}},null,8,["modelValue"])]),(0,i._)("div",o,[(0,i.Wm)(_,{style:{height:"100%"}},{default:(0,i.w5)((()=>[(0,i.Wm)(v,{bordered:"",separator:"",dense:""},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{header:""},{default:(0,i.w5)((()=>[(0,i.Uk)("History")])),_:1}),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.history,(t=>(0,i.wy)(((0,i.wg)(),(0,i.j4)(b,{clickable:"",key:t,title:t,onClick:s=>e.searchParametersJson=t},{default:(0,i.w5)((()=>[(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.slice(0,60)),1)])),_:2},1024)])),_:2},1032,["title","onClick"])),[[q]]))),128))])),_:1})])),_:1})])]),e.jsonError?((0,i.wg)(),(0,i.j4)(k,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,i.w5)((()=>[(0,i.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,i.kq)("",!0),(0,i._)("div",c,[(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[1]||(t[1]=t=>e.search())},{default:(0,i.w5)((()=>[(0,i.Uk)("Run Query")])),_:1},8,["disable"]),(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"accent",class:"q-ml-sm",disable:!e.results||!e.results.hits,onClick:t[2]||(t[2]=t=>e.exportHits())},{default:(0,i.w5)((()=>[(0,i.Uk)("Export Hits")])),_:1},8,["disable"]),(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"accent",class:"q-ml-sm",disable:!e.results,onClick:t[3]||(t[3]=t=>e.exportResults())},{default:(0,i.w5)((()=>[(0,i.Uk)("Export Raw Results")])),_:1},8,["disable"])]),e.hits?((0,i.wg)(),(0,i.iD)("div",u,[(0,i._)("ol",m,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.hits,(e=>((0,i.wg)(),(0,i.iD)("li",{class:"ais-Hits-item",key:e.id},[(0,i.Wm)(C,{item:e},null,8,["item"])])))),128))])])):(0,i.kq)("",!0),e.results&&e.results.hits&&0===e.results.hits.length?((0,i.wg)(),(0,i.iD)("div",d," No match found ")):(0,i.kq)("",!0),e.results&&!e.results.hits?((0,i.wg)(),(0,i.iD)("pre",h," "+(0,a.zw)(e.resultsJson)+"\n ",1)):(0,i.kq)("",!0)],64)}var f=s(66531);const g={key:0,class:"column no-wrap search-result-item"},w={key:0},y={key:0,class:"array-field"},b=["innerHTML"],v={key:1},_={key:0},k={key:0},W={key:1};function C(e,t,s,n,r,l){const o=(0,i.up)("q-item-label"),c=(0,i.up)("ais-highlight"),u=(0,i.up)("q-img"),m=(0,i.up)("q-item-section"),d=(0,i.up)("q-btn"),h=(0,i.up)("q-item"),p=(0,i.up)("q-separator"),f=(0,i.up)("q-list"),C=(0,i.up)("q-space");return e.currentCollection?((0,i.wg)(),(0,i.iD)("div",g,[(0,i.Wm)(f,{dense:""},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.currentCollection.fields,(t=>((0,i.wg)(),(0,i.j4)(h,{key:t.name},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{side:"",class:"q-mt-sm text-body2"},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{caption:""},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.name)+" ",1),e.item&&Array.isArray(e.item[t.name])?((0,i.wg)(),(0,i.iD)("span",w,"["+(0,a.zw)(e.item[t.name].length)+"]",1)):(0,i.kq)("",!0)])),_:2},1024),(0,i.Wm)(o,{class:"overflow-hidden text-no-wrap text-ellipsis",title:e.item[t.name]},{default:(0,i.w5)((()=>[e.item&&Array.isArray(e.item._highlightResult[t.name])?((0,i.wg)(),(0,i.iD)("div",y,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.item._highlightResult[t.name],((e,t)=>((0,i.wg)(),(0,i.iD)("div",{innerHTML:e.value,key:t},null,8,b)))),128))])):((0,i.wg)(),(0,i.iD)("div",v,[t.name.includes(".*")?((0,i.wg)(),(0,i.iD)("div",_,[e.item&&Array.isArray(e.item[t.name])?((0,i.wg)(),(0,i.iD)("div",k,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.item[t.name],((e,t)=>((0,i.wg)(),(0,i.iD)("div",{key:t},(0,a.zw)(e),1)))),128))])):((0,i.wg)(),(0,i.iD)("div",W,(0,a.zw)(e.item&&e.item[t.name]),1))])):((0,i.wg)(),(0,i.j4)(c,{key:1,attribute:t.name,hit:e.item},null,8,["attribute","hit"]))]))])),_:2},1032,["title"]),e.item&&e.isImage(e.item[t.name])?((0,i.wg)(),(0,i.j4)(o,{key:0,caption:"",class:"img-preview"},{default:(0,i.w5)((()=>[(0,i.Wm)(u,{src:e.item[t.name],fit:"contain",class:"img-preview"},null,8,["src"])])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024),e.item&&e.isUrl(e.item[t.name])?((0,i.wg)(),(0,i.j4)(m,{key:0,side:"",top:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",href:e.item[t.name],target:"_blank",size:"sm",padding:"sm",icon:"sym_s_open_in_new",title:"open"},null,8,["href"])])),_:2},1024)])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024)))),128)),(0,i.Wm)(p),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.fieldsNotInSchema,(t=>((0,i.wg)(),(0,i.j4)(h,{key:t},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{side:"",class:"q-mt-sm text-body2"},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{caption:""},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t),1)])),_:2},1024),(0,i.Wm)(o,{class:"overflow-hidden text-no-wrap text-ellipsis",title:JSON.stringify(e.item[t],null,2)},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(e.item[t]),1)])),_:2},1032,["title"]),e.isImage(e.item[t])?((0,i.wg)(),(0,i.j4)(o,{key:0,caption:"",class:"img-preview"},{default:(0,i.w5)((()=>[(0,i.Wm)(u,{src:e.item[t],fit:"contain",class:"img-preview"},null,8,["src"])])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024),e.isUrl(e.item[t])?((0,i.wg)(),(0,i.j4)(m,{key:0,side:"",top:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",href:e.item[t],target:"_blank",size:"sm",padding:"sm",icon:"sym_s_open_in_new",title:"open"},null,8,["href"])])),_:2},1024)])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024)))),128))])),_:1}),(0,i.Wm)(C),(0,i.Wm)(p),(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",size:"sm",padding:"sm",onClick:t[0]||(t[0]=t=>e.editDocument()),icon:"sym_s_edit",title:"Edit"})])),_:1})])),_:1}),(0,i.Wm)(m,{side:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",size:"sm",padding:"sm",onClick:t[1]||(t[1]=t=>e.deleteDocumentById(e.item.id)),icon:"sym_s_delete_forever",title:"Delete"})])),_:1})])),_:1})])),_:1})])):(0,i.kq)("",!0)}const q=(0,i.aZ)({name:"SearchResultItem",props:{item:{type:Object}},computed:{currentCollection(){return this.$store.state.node.currentCollection},fieldsNotInSchema(){if(!this.item||!this.currentCollection||!this.currentCollection.fields)return[];const e=this.currentCollection.fields.map((e=>e.name)).concat(["objectID","text_match"]);return Object.keys(this.item).filter((t=>!t.startsWith("_")&&!e.includes(t)))}},methods:{isUrl(e){return!!e&&(e=String(e),e.startsWith("http://")||e.startsWith("https://"))},isImage(e){var t;if(!e)return!1;e=String(e);const s=["jpg","jpeg","png","gif","bmp","svg","webp"],i=(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())||"";return s.includes(i)},editDocument(){const e={};this.item&&(Object.keys(this.item).forEach((t=>{if(!t.startsWith("_")&&!["objectID","text_match"].includes(t)){if(!this.item)return;e[t]=this.item[t]}})),this.$store.dispatch("node/editDocuments",[JSON.parse(JSON.stringify(e))]))},deleteDocumentById(e){this.$q.dialog({title:"Confirm",message:`Delete document with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteDocumentById",e)}))}}});var S=s(11639),x=s(13246),D=s(490),Z=s(76749),j=s(33115),I=s(70335),Q=s(24455),H=s(50926),$=s(90136),E=s(69984),z=s.n(E);const P=(0,S.Z)(q,[["render",C]]),J=P;z()(q,"components",{QList:x.Z,QItem:D.Z,QItemSection:Z.Z,QItemLabel:j.Z,QImg:I.Z,QBtn:Q.Z,QSeparator:H.Z,QSpace:$.Z});var U=s(92180),O=function(e,t,s,i){function n(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function r(e){try{o(i.next(e))}catch(t){a(t)}}function l(e){try{o(i["throw"](e))}catch(t){a(t)}}function o(e){e.done?s(e.value):n(e.value).then(r,l)}o((i=i.apply(e,t||[])).next())}))};const T="typesense-search-history",N=(0,i.aZ)({components:{SearchResultItem:J,MonacoEditor:f.Z},name:"Search",data(){return{tab:"form",history:[],searchParameters:{q:"stark",query_by:"company_name",filter_by:"num_employees:>100",sort_by:"num_employees:desc",page:1,per_page:10,exhaustive_search:!0},jsonError:null,results:null}},computed:{currentCollection(){return this.$store.state.node.currentCollection},searchParametersJson:{get(){return JSON.stringify(this.searchParameters,null,2)},set(e){try{this.searchParameters=JSON.parse(e),this.jsonError=null}catch(t){this.jsonError=t.message}}},hits(){return this.results&&this.results.hits?this.results.hits.map((e=>{const t=Object.assign({},e.document);return t._highlightResult=Object.keys(e.document).reduce(((t,s)=>(t[s]={value:String(e.document[s])},t)),{}),e.highlights.forEach((e=>{t._highlightResult[e.field]={value:e.snippet}})),t})):[]},resultsJson(){return JSON.stringify(this.results,null,2)}},methods:{exportResults(){return O(this,void 0,void 0,(function*(){this.results&&(yield this.$store.dispatch("node/exportToJson",this.results))}))},exportHits(){return O(this,void 0,void 0,(function*(){if(this.results&&this.results.hits){const e=this.results.hits.map((e=>e.document));yield this.$store.dispatch("node/exportToJson",e)}}))},search(){return O(this,void 0,void 0,(function*(){this.results=null,this.jsonError=null,this.addToHistory();try{this.results=yield this.$store.dispatch("node/search",this.searchParameters)}catch(e){this.jsonError=e.message}}))},addToHistory(){const e=this.searchParametersJson,t=this.history.indexOf(e);0!==t&&(t>0&&this.history.splice(t,1),this.history.unshift(e),this.saveHistory())},loadHistory(){var e;this.history=U.Z.getItem(`${T}-${(null===(e=this.currentCollection)||void 0===e?void 0:e.name)||""}`)||[]},saveHistory(){var e;U.Z.set(`${T}-${(null===(e=this.currentCollection)||void 0===e?void 0:e.name)||""}`,this.history.slice(0,20))}},watch:{currentCollection:{handler(){this.loadHistory()},immediate:!0}}});var R=s(66663),B=s(47128),K=s(9684);const V=(0,S.Z)(N,[["render",p]]),Y=V;z()(N,"components",{QScrollArea:R.Z,QList:x.Z,QItemLabel:j.Z,QItem:D.Z,QItemSection:Z.Z,QBanner:B.Z,QBtn:Q.Z}),z()(N,"directives",{Ripple:K.Z});const A={class:"row q-mt-md"},L={class:"col-3 q-pr-sm"},F=(0,i._)("div",{class:"text-subtitle2 q-pt-md"},"Sort By",-1),M={class:"text-subtitle2 q-pt-md"},G={class:"text-subtitle2 q-pt-md"},X={class:"col-9"},ee={key:1};function te(e,t,s,n,r,l){const o=(0,i.up)("ais-configure"),c=(0,i.up)("ais-search-box"),u=(0,i.up)("ais-stats"),m=(0,i.up)("ais-current-refinements"),d=(0,i.up)("ais-hits-per-page"),h=(0,i.up)("q-btn"),p=(0,i.up)("ais-sort-by"),f=(0,i.up)("ais-range-input"),g=(0,i.up)("ais-refinement-list"),w=(0,i.up)("ais-pagination"),y=(0,i.up)("search-result-item"),b=(0,i.up)("ais-hits"),v=(0,i.up)("ais-instant-search"),_=(0,i.up)("q-banner");return e.searchClient&&e.currentCollection?((0,i.wg)(),(0,i.j4)(v,{key:0,"search-client":e.searchClient,"index-name":e.currentCollection.name,middlewares:e.middlewares},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{hitsPerPage:12}),(0,i.Wm)(c,{placeholder:""}),(0,i.Wm)(u),(0,i.Wm)(m),(0,i._)("div",A,[(0,i._)("div",L,[(0,i.Wm)(d,{items:[{label:"12 hits per page",value:12,default:!0},{label:"48 hits per page",value:48},{label:"100 hits per page",value:100},{label:"250 hits per page",value:250}]}),(0,i.Wm)(h,{flat:"",onClick:t[0]||(t[0]=t=>e.exportPage())},{default:(0,i.w5)((()=>[(0,i.Uk)("export current page")])),_:1}),F,(0,i.Wm)(p,{items:e.sortBy},null,8,["items"]),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.facetNumberFields,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"q-mb-sm",key:e},[(0,i._)("div",M,(0,a.zw)(e),1),(0,i.Wm)(f,{searchable:!0,attribute:e},null,8,["attribute"])])))),128)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.facetStringFields,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"q-mb-sm",key:e},[(0,i._)("div",G,(0,a.zw)(e),1),(0,i.Wm)(g,{class:"q-mb-sm",searchable:!0,attribute:e},null,8,["attribute"])])))),128))]),(0,i._)("div",X,[(0,i.Wm)(w,{class:"q-mb-md"}),(0,i.Wm)(b,null,(0,i.Nv)({_:2},[e.currentCollection?{name:"item",fn:(0,i.w5)((({item:e})=>[(0,i.Wm)(y,{item:e},null,8,["item"])])),key:"0"}:void 0]),1024),(0,i.Wm)(w,{class:"q-my-md"})])])])),_:1},8,["search-client","index-name","middlewares"])):e.searchClientError?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i.Wm)(_,{"inline-actions":"",class:"text-white bg-red"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(e.searchClientError),1)])),_:1})])):(0,i.kq)("",!0)}var se=s(53317),ie=function(e,t,s,i){function n(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function r(e){try{o(i.next(e))}catch(t){a(t)}}function l(e){try{o(i["throw"](e))}catch(t){a(t)}}function o(e){e.done?s(e.value):n(e.value).then(r,l)}o((i=i.apply(e,t||[])).next())}))};const ne=(0,i.aZ)({components:{SearchResultItem:J},name:"SearchInstantSearch",data(){const e={searchClient:null,instantSearchInstance:null,searchClientError:null,middlewares:[({instantSearchInstance:t})=>({subscribe(){e.instantSearchInstance=t},unsubscribe(){e.instantSearchInstance=null}})]};return e},computed:{currentCollection(){return this.$store.state.node.currentCollection},facetNumberFields(){return this.currentCollection&&this.currentCollection.fields?this.currentCollection.fields.filter((e=>e.facet&&["int32","int64","float","int32[]","int64[]","float[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)):[]},facetStringFields(){return this.currentCollection&&this.currentCollection.fields?this.currentCollection.fields.filter((e=>e.facet&&["string","string[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)):[]},sortBy(){if(!this.currentCollection||!this.currentCollection.fields)return[];const e=[{value:this.currentCollection.name,label:"Default"}];return this.currentCollection.fields.filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort)).forEach((t=>{this.currentCollection&&(e.push({value:`${this.currentCollection.name}/sort/${t.name}:asc`,label:`${t.name} asc`}),e.push({value:`${this.currentCollection.name}/sort/${t.name}:desc`,label:`${t.name} desc`}))})),e}},methods:{exportPage(){return ie(this,void 0,void 0,(function*(){this.instantSearchInstance&&this.currentCollection&&(yield this.$store.dispatch("node/exportToJson",this.instantSearchInstance.renderState[this.currentCollection.name].hits.results.hits))}))}},watch:{currentCollection:{handler(){this.searchClient=null,this.searchClientError=null,window.setTimeout((()=>{var e;if(!this.$store.state.node.loginData||!this.currentCollection)return;const t=((null===(e=this.currentCollection)||void 0===e?void 0:e.fields)||[]).filter((e=>e.index&&["string","string[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)).join(",");try{const e=new se.Z({server:{nodes:[Object.assign({},this.$store.state.node.loginData.node)],apiKey:this.$store.state.node.loginData.apiKey},additionalSearchParameters:{exhaustive_search:!0,query_by:t}});this.searchClient=e.searchClient}catch(s){this.searchClientError=s.message+"Using query_by: "+t,console.error(s)}}))},immediate:!0}}}),ae=(0,S.Z)(ne,[["render",te]]),re=ae;z()(ne,"components",{QBtn:Q.Z,QBanner:B.Z});const le=(0,i.aZ)({components:{SearchJson:Y,SearchInstantSearch:re},name:"Search",data(){return{tab:"form"}}});var oe=s(69885),ce=s(47817),ue=s(70900),me=s(89800),de=s(84106);const he=(0,S.Z)(le,[["render",n]]),pe=he;z()(le,"components",{QPage:oe.Z,QTabs:ce.Z,QTab:ue.Z,QSeparator:H.Z,QTabPanels:me.Z,QTabPanel:de.Z})}}]);
\ No newline at end of file
+(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[440],{40758:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>pe});var i=s(59835);function n(e,t,s,n,a,r){const l=(0,i.up)("q-tab"),o=(0,i.up)("q-tabs"),c=(0,i.up)("q-separator"),u=(0,i.up)("search-instant-search"),m=(0,i.up)("q-tab-panel"),d=(0,i.up)("search-json"),h=(0,i.up)("q-tab-panels"),p=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(p,{padding:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),dense:"",class:"bg-primary text-white",align:"justify","narrow-indicator":""},{default:(0,i.w5)((()=>[(0,i.Wm)(l,{name:"form",label:"InstantSearch Mode"}),(0,i.Wm)(l,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,i.Wm)(c),(0,i.Wm)(h,{modelValue:e.tab,"onUpdate:modelValue":t[1]||(t[1]=t=>e.tab=t),animated:"","keep-alive":""},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{name:"form"},{default:(0,i.w5)((()=>[(0,i.Wm)(u)])),_:1}),(0,i.Wm)(m,{name:"json",class:"q-pa-none"},{default:(0,i.w5)((()=>[(0,i.Wm)(d)])),_:1})])),_:1},8,["modelValue"])])),_:1})}var a=s(86970);const r={class:"row"},l={class:"col-9"},o={class:"col-3"},c={class:"q-mt-md"},u={key:1,class:"ais-Hits q-mt-md"},m={class:"ais-Hits-list"},d={key:2,class:"text-h5 q-mt-md"},h={key:3};function p(e,t,s,n,p,f){const g=(0,i.up)("monaco-editor"),w=(0,i.up)("q-item-label"),y=(0,i.up)("q-item-section"),b=(0,i.up)("q-item"),v=(0,i.up)("q-list"),_=(0,i.up)("q-scroll-area"),k=(0,i.up)("q-banner"),W=(0,i.up)("q-btn"),C=(0,i.up)("search-result-item"),q=(0,i.Q2)("ripple");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",r,[(0,i._)("div",l,[(0,i.Wm)(g,{modelValue:e.searchParametersJson,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchParametersJson=t),style:{height:"30vh","min-height":"200px"}},null,8,["modelValue"])]),(0,i._)("div",o,[(0,i.Wm)(_,{style:{height:"100%"}},{default:(0,i.w5)((()=>[(0,i.Wm)(v,{bordered:"",separator:"",dense:""},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{header:""},{default:(0,i.w5)((()=>[(0,i.Uk)("History")])),_:1}),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.history,(t=>(0,i.wy)(((0,i.wg)(),(0,i.j4)(b,{clickable:"",key:t,title:t,onClick:s=>e.searchParametersJson=t},{default:(0,i.w5)((()=>[(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.slice(0,60)),1)])),_:2},1024)])),_:2},1032,["title","onClick"])),[[q]]))),128))])),_:1})])),_:1})])]),e.jsonError?((0,i.wg)(),(0,i.j4)(k,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,i.w5)((()=>[(0,i.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,i.kq)("",!0),(0,i._)("div",c,[(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[1]||(t[1]=t=>e.search())},{default:(0,i.w5)((()=>[(0,i.Uk)("Run Query")])),_:1},8,["disable"]),(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"accent",class:"q-ml-sm",disable:!e.results||!e.results.hits,onClick:t[2]||(t[2]=t=>e.exportHits())},{default:(0,i.w5)((()=>[(0,i.Uk)("Export Hits")])),_:1},8,["disable"]),(0,i.Wm)(W,{size:"md",padding:"sm lg",unelevated:"",color:"accent",class:"q-ml-sm",disable:!e.results,onClick:t[3]||(t[3]=t=>e.exportResults())},{default:(0,i.w5)((()=>[(0,i.Uk)("Export Raw Results")])),_:1},8,["disable"])]),e.hits?((0,i.wg)(),(0,i.iD)("div",u,[(0,i._)("ol",m,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.hits,(e=>((0,i.wg)(),(0,i.iD)("li",{class:"ais-Hits-item",key:e.id},[(0,i.Wm)(C,{item:e},null,8,["item"])])))),128))])])):(0,i.kq)("",!0),e.results&&e.results.hits&&0===e.results.hits.length?((0,i.wg)(),(0,i.iD)("div",d," No match found ")):(0,i.kq)("",!0),e.results&&!e.results.hits?((0,i.wg)(),(0,i.iD)("pre",h," "+(0,a.zw)(e.resultsJson)+"\n ",1)):(0,i.kq)("",!0)],64)}var f=s(66531);const g={key:0,class:"column no-wrap search-result-item"},w={key:0},y={key:0,class:"array-field"},b=["innerHTML"],v={key:1},_={key:0},k={key:0},W={key:1};function C(e,t,s,n,r,l){const o=(0,i.up)("q-item-label"),c=(0,i.up)("ais-highlight"),u=(0,i.up)("q-img"),m=(0,i.up)("q-item-section"),d=(0,i.up)("q-btn"),h=(0,i.up)("q-item"),p=(0,i.up)("q-separator"),f=(0,i.up)("q-list"),C=(0,i.up)("q-space");return e.currentCollection?((0,i.wg)(),(0,i.iD)("div",g,[(0,i.Wm)(f,{dense:""},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.currentCollection.fields,(t=>((0,i.wg)(),(0,i.j4)(h,{key:t.name},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{side:"",class:"q-mt-sm text-body2"},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{caption:""},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.name)+" ",1),e.item&&Array.isArray(e.item[t.name])?((0,i.wg)(),(0,i.iD)("span",w,"["+(0,a.zw)(e.item[t.name].length)+"]",1)):(0,i.kq)("",!0)])),_:2},1024),(0,i.Wm)(o,{class:"overflow-hidden text-no-wrap text-ellipsis",title:e.item[t.name]},{default:(0,i.w5)((()=>[e.item&&Array.isArray(e.item._highlightResult[t.name])?((0,i.wg)(),(0,i.iD)("div",y,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.item._highlightResult[t.name],((e,t)=>((0,i.wg)(),(0,i.iD)("div",{innerHTML:e.value,key:t},null,8,b)))),128))])):((0,i.wg)(),(0,i.iD)("div",v,[t.name.includes(".*")?((0,i.wg)(),(0,i.iD)("div",_,[e.item&&Array.isArray(e.item[t.name])?((0,i.wg)(),(0,i.iD)("div",k,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.item[t.name],((e,t)=>((0,i.wg)(),(0,i.iD)("div",{key:t},(0,a.zw)(e),1)))),128))])):((0,i.wg)(),(0,i.iD)("div",W,(0,a.zw)(e.item&&e.item[t.name]),1))])):((0,i.wg)(),(0,i.j4)(c,{key:1,attribute:t.name,hit:e.item},null,8,["attribute","hit"]))]))])),_:2},1032,["title"]),e.item&&e.isImage(e.item[t.name])?((0,i.wg)(),(0,i.j4)(o,{key:0,caption:"",class:"img-preview"},{default:(0,i.w5)((()=>[(0,i.Wm)(u,{src:e.item[t.name],fit:"contain",class:"img-preview"},null,8,["src"])])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024),e.item&&e.isUrl(e.item[t.name])?((0,i.wg)(),(0,i.j4)(m,{key:0,side:"",top:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",href:e.item[t.name],target:"_blank",size:"sm",padding:"sm",icon:"sym_s_open_in_new",title:"open"},null,8,["href"])])),_:2},1024)])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024)))),128)),(0,i.Wm)(p),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.fieldsNotInSchema,(t=>((0,i.wg)(),(0,i.j4)(h,{key:t},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{side:"",class:"q-mt-sm text-body2"},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{caption:""},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t),1)])),_:2},1024),(0,i.Wm)(o,{class:"overflow-hidden text-no-wrap text-ellipsis",title:JSON.stringify(e.item[t],null,2)},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(e.item[t]),1)])),_:2},1032,["title"]),e.isImage(e.item[t])?((0,i.wg)(),(0,i.j4)(o,{key:0,caption:"",class:"img-preview"},{default:(0,i.w5)((()=>[(0,i.Wm)(u,{src:e.item[t],fit:"contain",class:"img-preview"},null,8,["src"])])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024),e.isUrl(e.item[t])?((0,i.wg)(),(0,i.j4)(m,{key:0,side:"",top:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",href:e.item[t],target:"_blank",size:"sm",padding:"sm",icon:"sym_s_open_in_new",title:"open"},null,8,["href"])])),_:2},1024)])),_:2},1024)):(0,i.kq)("",!0)])),_:2},1024)))),128))])),_:1}),(0,i.Wm)(C),(0,i.Wm)(p),(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",size:"sm",padding:"sm",onClick:t[0]||(t[0]=t=>e.editDocument()),icon:"sym_s_edit",title:"Edit"})])),_:1})])),_:1}),(0,i.Wm)(m,{side:""},{default:(0,i.w5)((()=>[(0,i.Wm)(o,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,{flat:"",size:"sm",padding:"sm",onClick:t[1]||(t[1]=t=>e.deleteDocumentById(e.item.id)),icon:"sym_s_delete_forever",title:"Delete"})])),_:1})])),_:1})])),_:1})])):(0,i.kq)("",!0)}const q=(0,i.aZ)({name:"SearchResultItem",props:{item:{type:Object}},computed:{currentCollection(){return this.$store.state.node.currentCollection},fieldsNotInSchema(){if(!this.item||!this.currentCollection||!this.currentCollection.fields)return[];const e=this.currentCollection.fields.map((e=>e.name)).concat(["objectID","text_match"]);return Object.keys(this.item).filter((t=>!t.startsWith("_")&&!e.includes(t)))}},methods:{isUrl(e){return!!e&&(e=String(e),e.startsWith("http://")||e.startsWith("https://"))},isImage(e){var t;if(!e)return!1;e=String(e);const s=["jpg","jpeg","png","gif","bmp","svg","webp"],i=(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())||"";return s.includes(i)},editDocument(){const e={};this.item&&(Object.keys(this.item).forEach((t=>{if(!t.startsWith("_")&&!["objectID","text_match"].includes(t)){if(!this.item)return;e[t]=this.item[t]}})),this.$store.dispatch("node/editDocuments",[JSON.parse(JSON.stringify(e))]))},deleteDocumentById(e){this.$q.dialog({title:"Confirm",message:`Delete document with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteDocumentById",e)}))}}});var S=s(11639),x=s(13246),D=s(490),Z=s(76749),j=s(33115),I=s(70335),Q=s(24455),H=s(50926),$=s(90136),E=s(69984),z=s.n(E);const P=(0,S.Z)(q,[["render",C]]),J=P;z()(q,"components",{QList:x.Z,QItem:D.Z,QItemSection:Z.Z,QItemLabel:j.Z,QImg:I.Z,QBtn:Q.Z,QSeparator:H.Z,QSpace:$.Z});var U=s(92180),O=function(e,t,s,i){function n(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function r(e){try{o(i.next(e))}catch(t){a(t)}}function l(e){try{o(i["throw"](e))}catch(t){a(t)}}function o(e){e.done?s(e.value):n(e.value).then(r,l)}o((i=i.apply(e,t||[])).next())}))};const T="typesense-search-history",N=(0,i.aZ)({components:{SearchResultItem:J,MonacoEditor:f.Z},name:"Search",data(){return{tab:"form",history:[],searchParameters:{q:"stark",query_by:"company_name",filter_by:"num_employees:>100",sort_by:"num_employees:desc",page:1,per_page:10,exhaustive_search:!0},jsonError:null,results:null}},computed:{currentCollection(){return this.$store.state.node.currentCollection},searchParametersJson:{get(){return JSON.stringify(this.searchParameters,null,2)},set(e){try{this.searchParameters=JSON.parse(e),this.jsonError=null}catch(t){this.jsonError=t.message}}},hits(){return this.results&&this.results.hits?this.results.hits.map((e=>{const t=Object.assign({},e.document);return t._highlightResult=Object.keys(e.document).reduce(((t,s)=>(t[s]={value:String(e.document[s])},t)),{}),e.highlights.forEach((e=>{t._highlightResult[e.field]={value:e.snippet}})),t})):[]},resultsJson(){return JSON.stringify(this.results,null,2)}},methods:{exportResults(){return O(this,void 0,void 0,(function*(){this.results&&(yield this.$store.dispatch("node/exportToJson",this.results))}))},exportHits(){return O(this,void 0,void 0,(function*(){if(this.results&&this.results.hits){const e=this.results.hits.map((e=>e.document));yield this.$store.dispatch("node/exportToJson",e)}}))},search(){return O(this,void 0,void 0,(function*(){this.results=null,this.jsonError=null,this.addToHistory();try{this.results=yield this.$store.dispatch("node/search",this.searchParameters)}catch(e){this.jsonError=e.message}}))},addToHistory(){const e=this.searchParametersJson,t=this.history.indexOf(e);0!==t&&(t>0&&this.history.splice(t,1),this.history.unshift(e),this.saveHistory())},loadHistory(){var e;this.history=U.Z.getItem(`${T}-${(null===(e=this.currentCollection)||void 0===e?void 0:e.name)||""}`)||[]},saveHistory(){var e;U.Z.set(`${T}-${(null===(e=this.currentCollection)||void 0===e?void 0:e.name)||""}`,this.history.slice(0,20))}},watch:{currentCollection:{handler(){this.loadHistory()},immediate:!0}}});var R=s(66663),B=s(47128),K=s(9684);const V=(0,S.Z)(N,[["render",p]]),Y=V;z()(N,"components",{QScrollArea:R.Z,QList:x.Z,QItemLabel:j.Z,QItem:D.Z,QItemSection:Z.Z,QBanner:B.Z,QBtn:Q.Z}),z()(N,"directives",{Ripple:K.Z});const A={class:"row q-mt-md"},L={class:"col-3 q-pr-sm"},F=(0,i._)("div",{class:"text-subtitle2 q-pt-md"},"Sort By",-1),M={class:"text-subtitle2 q-pt-md"},G={class:"text-subtitle2 q-pt-md"},X={class:"col-9"},ee={key:1};function te(e,t,s,n,r,l){const o=(0,i.up)("ais-configure"),c=(0,i.up)("ais-search-box"),u=(0,i.up)("ais-stats"),m=(0,i.up)("ais-current-refinements"),d=(0,i.up)("ais-hits-per-page"),h=(0,i.up)("q-btn"),p=(0,i.up)("ais-sort-by"),f=(0,i.up)("ais-range-input"),g=(0,i.up)("ais-refinement-list"),w=(0,i.up)("ais-pagination"),y=(0,i.up)("search-result-item"),b=(0,i.up)("ais-hits"),v=(0,i.up)("ais-instant-search"),_=(0,i.up)("q-banner");return e.searchClient&&e.currentCollection?((0,i.wg)(),(0,i.j4)(v,{key:0,"search-client":e.searchClient,"index-name":e.currentCollection.name,middlewares:e.middlewares},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{hitsPerPage:12}),(0,i.Wm)(c,{placeholder:""}),(0,i.Wm)(u),(0,i.Wm)(m),(0,i._)("div",A,[(0,i._)("div",L,[(0,i.Wm)(d,{items:[{label:"12 hits per page",value:12,default:!0},{label:"48 hits per page",value:48},{label:"100 hits per page",value:100},{label:"250 hits per page",value:250}]}),(0,i.Wm)(h,{flat:"",onClick:t[0]||(t[0]=t=>e.exportPage())},{default:(0,i.w5)((()=>[(0,i.Uk)("export current page")])),_:1}),F,(0,i.Wm)(p,{items:e.sortBy},null,8,["items"]),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.facetNumberFields,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"q-mb-sm",key:e},[(0,i._)("div",M,(0,a.zw)(e),1),(0,i.Wm)(f,{searchable:!0,attribute:e},null,8,["attribute"])])))),128)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.facetStringFields,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"q-mb-sm",key:e},[(0,i._)("div",G,(0,a.zw)(e),1),(0,i.Wm)(g,{class:"q-mb-sm",searchable:!0,attribute:e},null,8,["attribute"])])))),128))]),(0,i._)("div",X,[(0,i.Wm)(w,{class:"q-mb-md"}),(0,i.Wm)(b,null,(0,i.Nv)({_:2},[e.currentCollection?{name:"item",fn:(0,i.w5)((({item:e})=>[(0,i.Wm)(y,{item:e},null,8,["item"])])),key:"0"}:void 0]),1024),(0,i.Wm)(w,{class:"q-my-md"})])])])),_:1},8,["search-client","index-name","middlewares"])):e.searchClientError?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i.Wm)(_,{"inline-actions":"",class:"text-white bg-red"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(e.searchClientError),1)])),_:1})])):(0,i.kq)("",!0)}var se=s(53317),ie=function(e,t,s,i){function n(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function r(e){try{o(i.next(e))}catch(t){a(t)}}function l(e){try{o(i["throw"](e))}catch(t){a(t)}}function o(e){e.done?s(e.value):n(e.value).then(r,l)}o((i=i.apply(e,t||[])).next())}))};const ne=(0,i.aZ)({components:{SearchResultItem:J},name:"SearchInstantSearch",data(){const e={searchClient:null,instantSearchInstance:null,searchClientError:null,middlewares:[({instantSearchInstance:t})=>({subscribe(){e.instantSearchInstance=t},unsubscribe(){e.instantSearchInstance=null}})]};return e},computed:{currentCollection(){return this.$store.state.node.currentCollection},facetNumberFields(){return this.currentCollection&&this.currentCollection.fields?this.currentCollection.fields.filter((e=>e.facet&&["int32","int64","float","int32[]","int64[]","float[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)):[]},facetStringFields(){return this.currentCollection&&this.currentCollection.fields?this.currentCollection.fields.filter((e=>e.facet&&["string","string[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)):[]},sortBy(){if(!this.currentCollection||!this.currentCollection.fields)return[];const e=[{value:this.currentCollection.name,label:"Default"}];return this.currentCollection.fields.filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort)).forEach((t=>{this.currentCollection&&(e.push({value:`${this.currentCollection.name}/sort/${t.name}:asc`,label:`${t.name} asc`}),e.push({value:`${this.currentCollection.name}/sort/${t.name}:desc`,label:`${t.name} desc`}))})),e}},methods:{exportPage(){return ie(this,void 0,void 0,(function*(){this.instantSearchInstance&&this.currentCollection&&(yield this.$store.dispatch("node/exportToJson",this.instantSearchInstance.renderState[this.currentCollection.name].hits.results.hits))}))}},watch:{currentCollection:{handler(){this.searchClient=null,this.searchClientError=null,window.setTimeout((()=>{var e;if(!this.$store.state.node.loginData||!this.currentCollection)return;const t=((null===(e=this.currentCollection)||void 0===e?void 0:e.fields)||[]).filter((e=>e.index&&["string","string[]"].includes(e.type)&&!e.name.includes(".*"))).map((e=>e.name)).join(",");try{const e=new se.Z({server:{nodes:[Object.assign({},this.$store.state.node.loginData.node)],apiKey:this.$store.state.node.loginData.apiKey},additionalSearchParameters:{exhaustive_search:!0,query_by:t}});this.searchClient=e.searchClient}catch(s){this.searchClientError=s.message+"Using query_by: "+t,console.error(s)}}))},immediate:!0}}}),ae=(0,S.Z)(ne,[["render",te]]),re=ae;z()(ne,"components",{QBtn:Q.Z,QBanner:B.Z});const le=(0,i.aZ)({components:{SearchJson:Y,SearchInstantSearch:re},name:"Search",data(){return{tab:"form"}}});var oe=s(69885),ce=s(47817),ue=s(70900),me=s(89800),de=s(84106);const he=(0,S.Z)(le,[["render",n]]),pe=he;z()(le,"components",{QPage:oe.Z,QTabs:ce.Z,QTab:ue.Z,QSeparator:H.Z,QTabPanels:me.Z,QTabPanel:de.Z})},36486:()=>{}}]);
\ No newline at end of file
diff --git a/js/631.a99a86a9.js b/js/631.2d2604af.js
similarity index 98%
rename from js/631.a99a86a9.js
rename to js/631.2d2604af.js
index 7539c8a..6f509b3 100644
--- a/js/631.a99a86a9.js
+++ b/js/631.2d2604af.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[631],{70648:(t,e,s)=>{s.r(e),s.d(e,{default:()=>x});var o=s(59835),n=s(86970);const i={class:"row justify-between q-mb-md"},r={class:"text-h5"},a={key:0},l={class:"row q-mb-md bg-primary text-white justify-between"},d={class:"row col-auto"},c={key:0},u={key:1};function m(t,e,s,m,p,h){const g=(0,o.up)("q-icon"),y=(0,o.up)("q-btn"),w=(0,o.up)("monaco-editor"),f=(0,o.up)("q-banner"),b=(0,o.up)("q-select"),v=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(v,{padding:"",class:"column"},{default:(0,o.w5)((()=>{var s;return[(0,o._)("div",i,[(0,o._)("div",r,[(0,o.Wm)(g,{size:"md",name:"sym_s_library_add"}),(0,o.Uk)(" Add Documents to "+(0,n.zw)(null===(s=t.$store.state.node.currentCollection)||void 0===s?void 0:s.name),1)]),(0,o.Wm)(y,{unelevated:"",onClick:e[0]||(e[0]=e=>t.importFile()),disable:!t.$q.platform.is.electron,icon:"sym_s_attach_file"},{default:(0,o.w5)((()=>[(0,o.Uk)(" Import from file "),t.$q.platform.is.electron?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("span",a," (only desktop version)"))])),_:1},8,["disable"])]),(0,o.Wm)(w,{modelValue:t.documentsJson,"onUpdate:modelValue":e[1]||(e[1]=e=>t.documentsJson=e),style:{"min-height":"200px"}},null,8,["modelValue"]),t.jsonError?((0,o.wg)(),(0,o.j4)(f,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,o.w5)((()=>[(0,o.Uk)(" Invalid Format: "+(0,n.zw)(t.jsonError),1)])),_:1})):(0,o.kq)("",!0),(0,o._)("div",l,[(0,o.Wm)(y,{unelevated:"",size:"md",padding:"sm lg",color:"primary",onClick:e[2]||(e[2]=e=>t.addEmptyDocument())},{default:(0,o.w5)((()=>[(0,o.Uk)("Add empty Document")])),_:1}),(0,o._)("div",d,[(0,o.Wm)(b,{dark:"",modelValue:t.action,"onUpdate:modelValue":e[3]||(e[3]=e=>t.action=e),"bottom-slots":"",label:"Action mode",filled:"",style:{width:"300px"},options:t.actionOptions},{hint:(0,o.w5)((()=>[(0,o._)("div",null,(0,n.zw)(t.actionDesciptions[t.action]),1)])),_:1},8,["modelValue","options"]),(0,o.Wm)(y,{unelevated:"",size:"md",padding:"sm xl",color:"primary",onClick:e[4]||(e[4]=e=>t.importDocuments()),disable:!!t.jsonError},{default:(0,o.w5)((()=>[(0,o.Uk)("Import")])),_:1},8,["disable"])])]),(0,o._)("div",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.results,((t,e)=>((0,o.wg)(),(0,o.j4)(f,{key:e,class:(0,n.C_)(["text-white",{"bg-green":t.success,"bg-red":t.error}])},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e)+": ",1),t.success?((0,o.wg)(),(0,o.iD)("span",c,(0,n.zw)(t.success),1)):((0,o.wg)(),(0,o.iD)("span",u,(0,n.zw)(t.error),1))])),_:2},1032,["class"])))),128))])]})),_:1})}var p=s(66531),h=function(t,e,s,o){function n(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,i){function r(t){try{l(o.next(t))}catch(e){i(e)}}function a(t){try{l(o["throw"](t))}catch(e){i(e)}}function l(t){t.done?s(t.value):n(t.value).then(r,a)}l((o=o.apply(t,e||[])).next())}))};const g=(0,o.aZ)({name:"Document",components:{MonacoEditor:p.Z},data(){return{jsonError:null,documents:[],results:[],action:"upsert",actionOptions:["create","upsert","update"],actionDesciptions:{create:"Create a new document. Fails if id exists.",upsert:"Create a new document or update an existing document.",update:"Update an existing document. Partial document allowed."}}},computed:{documentsJson:{get(){return JSON.stringify(this.documents,null,2)},set(t){try{this.documents=JSON.parse(t),this.jsonError=null}catch(e){this.jsonError=e.message}}},currentCollection(){return this.$store.state.node.currentCollection},documentsToEdit(){return this.$store.state.node.documentsToEdit}},methods:{importFile(){var t;return h(this,void 0,void 0,(function*(){this.results=[];try{this.$q.loading.show({message:"Uploading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"});let e=yield this.$store.getters["node/api"].importFile(null===(t=this.currentCollection)||void 0===t?void 0:t.name,this.action);Array.isArray(e)||(e=[{error:e}]),this.results=e}catch(e){this.results=[{error:e.message}]}this.$q.loading.hide()}))},importDocuments(){return h(this,void 0,void 0,(function*(){this.results=[];try{this.$q.loading.show({message:"Uploading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"}),this.results=yield this.$store.dispatch("node/importDocuments",{action:this.action,documents:JSON.parse(JSON.stringify(this.documents))})}catch(t){this.results=[{error:t.message}]}this.$q.loading.hide()}))},addEmptyDocument(){let t={};this.currentCollection&&this.currentCollection.fields&&(t=this.currentCollection.fields.reduce(((t,e)=>(t[e.name]=e.type.includes("[]")?[]:e.type.includes("string")?"":!e.type.includes("bool")&&0,t)),{})),this.documents.push(t)}},watch:{currentCollection:{handler(){this.documents=[],this.addEmptyDocument()},immediate:!0},documentsToEdit:{handler(){this.documentsToEdit&&this.documentsToEdit.length>0&&(this.documents=this.$store.state.node.documentsToEdit||[],this.action="upsert",this.$store.commit("node/setDocumentsToEdit",[]))},immediate:!0}}});var y=s(11639),w=s(69885),f=s(22857),b=s(24455),v=s(47128),k=s(67887),_=s(69984),C=s.n(_);const E=(0,y.Z)(g,[["render",m]]),x=E;C()(g,"components",{QPage:w.Z,QIcon:f.Z,QBtn:b.Z,QBanner:v.Z,QSelect:k.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[631],{70648:(t,e,s)=>{s.r(e),s.d(e,{default:()=>x});var o=s(59835),n=s(86970);const i={class:"row justify-between q-mb-md"},r={class:"text-h5"},a={key:0},l={class:"row q-mb-md bg-primary text-white justify-between"},d={class:"row col-auto"},c={key:0},u={key:1};function m(t,e,s,m,p,h){const g=(0,o.up)("q-icon"),y=(0,o.up)("q-btn"),w=(0,o.up)("monaco-editor"),f=(0,o.up)("q-banner"),b=(0,o.up)("q-select"),v=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(v,{padding:"",class:"column"},{default:(0,o.w5)((()=>{var s;return[(0,o._)("div",i,[(0,o._)("div",r,[(0,o.Wm)(g,{size:"md",name:"sym_s_library_add"}),(0,o.Uk)(" Add Documents to "+(0,n.zw)(null===(s=t.$store.state.node.currentCollection)||void 0===s?void 0:s.name),1)]),(0,o.Wm)(y,{unelevated:"",onClick:e[0]||(e[0]=e=>t.importFile()),disable:!t.$q.platform.is.electron,icon:"sym_s_attach_file"},{default:(0,o.w5)((()=>[(0,o.Uk)(" Import from file "),t.$q.platform.is.electron?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("span",a," (only desktop version)"))])),_:1},8,["disable"])]),(0,o.Wm)(w,{modelValue:t.documentsJson,"onUpdate:modelValue":e[1]||(e[1]=e=>t.documentsJson=e),style:{"min-height":"200px"}},null,8,["modelValue"]),t.jsonError?((0,o.wg)(),(0,o.j4)(f,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,o.w5)((()=>[(0,o.Uk)(" Invalid Format: "+(0,n.zw)(t.jsonError),1)])),_:1})):(0,o.kq)("",!0),(0,o._)("div",l,[(0,o.Wm)(y,{unelevated:"",size:"md",padding:"sm lg",color:"primary",onClick:e[2]||(e[2]=e=>t.addEmptyDocument())},{default:(0,o.w5)((()=>[(0,o.Uk)("Add empty Document")])),_:1}),(0,o._)("div",d,[(0,o.Wm)(b,{dark:"",modelValue:t.action,"onUpdate:modelValue":e[3]||(e[3]=e=>t.action=e),"bottom-slots":"",label:"Action mode",filled:"",style:{width:"300px"},options:t.actionOptions},{hint:(0,o.w5)((()=>[(0,o._)("div",null,(0,n.zw)(t.actionDesciptions[t.action]),1)])),_:1},8,["modelValue","options"]),(0,o.Wm)(y,{unelevated:"",size:"md",padding:"sm xl",color:"primary",onClick:e[4]||(e[4]=e=>t.importDocuments()),disable:!!t.jsonError},{default:(0,o.w5)((()=>[(0,o.Uk)("Import")])),_:1},8,["disable"])])]),(0,o._)("div",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.results,((t,e)=>((0,o.wg)(),(0,o.j4)(f,{key:e,class:(0,n.C_)(["text-white",{"bg-green":t.success,"bg-red":t.error}])},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e)+": ",1),t.success?((0,o.wg)(),(0,o.iD)("span",c,(0,n.zw)(t.success),1)):((0,o.wg)(),(0,o.iD)("span",u,(0,n.zw)(t.error),1))])),_:2},1032,["class"])))),128))])]})),_:1})}var p=s(66531),h=function(t,e,s,o){function n(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,i){function r(t){try{l(o.next(t))}catch(e){i(e)}}function a(t){try{l(o["throw"](t))}catch(e){i(e)}}function l(t){t.done?s(t.value):n(t.value).then(r,a)}l((o=o.apply(t,e||[])).next())}))};const g=(0,o.aZ)({name:"Document",components:{MonacoEditor:p.Z},data(){return{jsonError:null,documents:[],results:[],action:"upsert",actionOptions:["create","upsert","update"],actionDesciptions:{create:"Create a new document. Fails if id exists.",upsert:"Create a new document or update an existing document.",update:"Update an existing document. Partial document allowed."}}},computed:{documentsJson:{get(){return JSON.stringify(this.documents,null,2)},set(t){try{this.documents=JSON.parse(t),this.jsonError=null}catch(e){this.jsonError=e.message}}},currentCollection(){return this.$store.state.node.currentCollection},documentsToEdit(){return this.$store.state.node.documentsToEdit}},methods:{importFile(){var t;return h(this,void 0,void 0,(function*(){this.results=[];try{this.$q.loading.show({message:"Uploading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"});let e=yield this.$store.getters["node/api"].importFile(null===(t=this.currentCollection)||void 0===t?void 0:t.name,this.action);Array.isArray(e)||(e=[{error:e}]),this.results=e}catch(e){this.results=[{error:e.message}]}this.$q.loading.hide()}))},importDocuments(){return h(this,void 0,void 0,(function*(){this.results=[];try{this.$q.loading.show({message:"Uploading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"}),this.results=yield this.$store.dispatch("node/importDocuments",{action:this.action,documents:JSON.parse(JSON.stringify(this.documents))})}catch(t){this.results=[{error:t.message}]}this.$q.loading.hide()}))},addEmptyDocument(){let t={};this.currentCollection&&this.currentCollection.fields&&(t=this.currentCollection.fields.reduce(((t,e)=>(t[e.name]=e.type.includes("[]")?[]:e.type.includes("string")?"":!e.type.includes("bool")&&0,t)),{})),this.documents.push(t)}},watch:{currentCollection:{handler(){this.documents=[],this.addEmptyDocument()},immediate:!0},documentsToEdit:{handler(){this.documentsToEdit&&this.documentsToEdit.length>0&&(this.documents=this.$store.state.node.documentsToEdit||[],this.action="upsert",this.$store.commit("node/setDocumentsToEdit",[]))},immediate:!0}}});var y=s(11639),w=s(69885),f=s(22857),b=s(24455),v=s(47128),k=s(26384),_=s(69984),C=s.n(_);const E=(0,y.Z)(g,[["render",m]]),x=E;C()(g,"components",{QPage:w.Z,QIcon:f.Z,QBtn:b.Z,QBanner:v.Z,QSelect:k.Z})}}]);
\ No newline at end of file
diff --git a/js/870.4ac51965.js b/js/870.4ac51965.js
new file mode 100644
index 0000000..95a8a86
--- /dev/null
+++ b/js/870.4ac51965.js
@@ -0,0 +1 @@
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[870],{80870:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var l=a(59835),o=a(86970);function n(e,t,a,n,r,s){const i=(0,l.up)("q-btn"),u=(0,l.up)("q-toolbar-title"),d=(0,l.up)("q-icon"),c=(0,l.up)("server-history"),m=(0,l.up)("q-menu"),w=(0,l.up)("q-separator"),_=(0,l.up)("q-toolbar"),p=(0,l.up)("q-header"),f=(0,l.up)("nav-menu"),W=(0,l.up)("q-drawer"),y=(0,l.up)("q-banner"),b=(0,l.up)("router-view"),h=(0,l.up)("q-page-container"),k=(0,l.up)("q-layout");return(0,l.wg)(),(0,l.j4)(k,{view:"hHh Lpr lFf"},{default:(0,l.w5)((()=>[(0,l.Wm)(p,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",dense:"",round:"",icon:e.leftDrawerOpen?"sym_s_menu_open":"sym_s_menu","aria-label":"Menu",onClick:e.toggleLeftDrawer},null,8,["icon","onClick"]),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Typesense Dashboard ")])),_:1}),(0,l.Wm)(i,{padding:"xs md",flat:"",dense:"","no-caps":""},{default:(0,l.w5)((()=>{var t;return[(0,l.Uk)((0,o.zw)(null===(t=e.$store.state.node.loginData)||void 0===t?void 0:t.node.host)+" ",1),(0,l.Wm)(d,{right:"",name:"sym_s_switch_account"}),(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c,{"show-logout":!0})])),_:1})]})),_:1}),(0,l.Wm)(w,{dark:"",vertical:"",spaced:"",inset:""}),(0,l.Wm)(i,{onClick:t[0]||(t[0]=t=>e.$q.dark.toggle()),flat:"",dense:"",icon:e.$q.dark.isActive?"sym_s_light_mode":"sym_s_dark_mode",title:"Toggle Dark Mode"},null,8,["icon"])])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:e.leftDrawerOpen,"onUpdate:modelValue":t[1]||(t[1]=t=>e.leftDrawerOpen=t),"show-if-above":"",side:"left",width:250,class:"bg-primary text-white"},{default:(0,l.w5)((()=>[(0,l.Wm)(f)])),_:1},8,["modelValue"]),(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[e.$store.state.node.error?((0,l.wg)(),(0,l.j4)(y,{key:0,"inline-actions":"",class:"text-white bg-red fixed-top z-max"},{action:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",color:"white",label:"Dismiss",onClick:t[2]||(t[2]=t=>e.dismiss())})])),default:(0,l.w5)((()=>[(0,l.Uk)((0,o.zw)(e.$store.state.node.error)+" ",1)])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(b)])),_:1})])),_:1})}function r(e,t,a,o,n,r){const s=(0,l.up)("q-icon"),i=(0,l.up)("q-item-section"),u=(0,l.up)("q-item"),d=(0,l.up)("q-item-label"),c=(0,l.up)("q-separator"),m=(0,l.up)("q-select"),w=(0,l.up)("q-list"),_=(0,l.Q2)("ripple");return(0,l.wg)(),(0,l.j4)(w,null,{default:(0,l.w5)((()=>{var a,o,n,r,w;return[(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dns"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Server Status ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/collections",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_grid_view"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Uk)("Collections")])),_:1})])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/aliases",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_call_split"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Aliases ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/apikeys",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_key"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" API Keys ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/analyticsrules",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_query_stats"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Analytics Rules ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/searchpresets",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_manage_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search Presets ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/stopwords",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_playlist_remove"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Stopwords ")])),_:1})])),_:1})),[[_]]),(0,l.Wm)(c,{spaced:""}),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,{borderless:"",modelValue:e.currentCollection,"onUpdate:modelValue":t[0]||(t[0]=t=>e.currentCollection=t),options:e.$store.state.node.data.collections,label:"Collection","option-label":"name",color:"white","label-color":"white",dark:""},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(a=e.currentCollection)||void 0===a?void 0:a.name}/search`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(o=e.currentCollection)||void 0===o?void 0:o.name}/synonyms`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dataset_linked"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Synonyms ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(n=e.currentCollection)||void 0===n?void 0:n.name}/curations`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_low_priority"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Curations ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(r=e.currentCollection)||void 0===r?void 0:r.name}/schema`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_data_object"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Schema ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(w=e.currentCollection)||void 0===w?void 0:w.name}/document`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_library_add"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Add Document ")])),_:1})])),_:1},8,["to","disable"])),[[_]])]})),_:1})}const s=(0,l.aZ)({name:"NavMenu",data(){return{model:"",options:["abc","def"]}},computed:{currentCollection:{get(){return this.$store.state.node.currentCollection},set(e){this.$store.dispatch("node/loadCurrentCollection",e)}}}});var i=a(11639),u=a(13246),d=a(490),c=a(76749),m=a(22857),w=a(33115),_=a(50926),p=a(26384),f=a(9684),W=a(69984),y=a.n(W);const b=(0,i.Z)(s,[["render",r],["__scopeId","data-v-292be728"]]),h=b;y()(s,"components",{QList:u.Z,QItem:d.Z,QItemSection:c.Z,QIcon:m.Z,QItemLabel:w.Z,QSeparator:_.Z,QSelect:p.Z}),y()(s,"directives",{Ripple:f.Z});var k=a(46115);const v=(0,l.aZ)({name:"MainLayout",components:{NavMenu:h,ServerHistory:k.Z},data(){return{leftDrawerOpen:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},logout(){this.$store.dispatch("node/logout")},dismiss(){this.$store.commit("node/setError",null)},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var g=a(20249),C=a(16602),Z=a(51663),q=a(24455),Q=a(81973),$=a(47447),x=a(10906),U=a(12133),j=a(47128);const D=(0,i.Z)(v,[["render",n]]),S=D;y()(v,"components",{QLayout:g.Z,QHeader:C.Z,QToolbar:Z.Z,QBtn:q.Z,QToolbarTitle:Q.Z,QIcon:m.Z,QMenu:$.Z,QSeparator:_.Z,QDrawer:x.Z,QPageContainer:U.Z,QBanner:j.Z})}}]);
\ No newline at end of file
diff --git a/js/925.63fa641e.js b/js/925.f47ffaf2.js
similarity index 99%
rename from js/925.63fa641e.js
rename to js/925.f47ffaf2.js
index cede713..17c34a0 100644
--- a/js/925.63fa641e.js
+++ b/js/925.f47ffaf2.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[925],{51925:(e,n,l)=>{l.r(n),l.d(n,{default:()=>O});var o=l(59835),t=l(86970);const s=(0,o._)("div",{class:"text-overline"},"Optional",-1),a={class:"text-h6"};function i(e,n,l,i,d,m){const y=(0,o.up)("q-input"),r=(0,o.up)("q-option-group"),u=(0,o.up)("q-select"),c=(0,o.up)("q-card-section"),p=(0,o.up)("q-separator"),_=(0,o.up)("q-btn"),h=(0,o.up)("q-card-actions"),b=(0,o.up)("q-card"),f=(0,o.up)("q-expansion-item"),g=(0,o.up)("q-icon"),w=(0,o.up)("q-td"),x=(0,o.up)("q-table"),W=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(W,{padding:""},{default:(0,o.w5)((()=>[(0,o.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Synonym","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":n[7]||(n[7]=n=>e.expanded=n)},{default:(0,o.w5)((()=>[(0,o.Wm)(b,{class:"bg-surface column"},{default:(0,o.w5)((()=>[(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[(0,o.Wm)(y,{label:"ID",modelValue:e.id,"onUpdate:modelValue":n[0]||(n[0]=n=>e.id=n),filled:"",class:"q-mb-md"},null,8,["modelValue"]),(0,o.Wm)(r,{filled:"",modelValue:e.type,"onUpdate:modelValue":n[1]||(n[1]=n=>e.type=n),options:e.typeOptions,color:"primary",inline:"",class:"q-mb-md"},null,8,["modelValue","options"]),e.type===e.types.ONE_WAY?((0,o.wg)(),(0,o.j4)(y,{key:0,filled:"","stack-label":"",label:"Root",modelValue:e.synonym.root,"onUpdate:modelValue":n[2]||(n[2]=n=>e.synonym.root=n),class:"q-mb-md"},null,8,["modelValue"])):(0,o.kq)("",!0),(0,o.Wm)(u,{filled:"",modelValue:e.synonym.synonyms,"onUpdate:modelValue":n[3]||(n[3]=n=>e.synonym.synonyms=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Synonyms",hint:"Enter a synonym and press enter"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(p),(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[s,(0,o.Wm)(u,{filled:"",modelValue:e.synonym.symbols_to_index,"onUpdate:modelValue":n[4]||(n[4]=n=>e.synonym.symbols_to_index=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Symbols to Index",hint:"Enter a symbol (eg: +, - ) and press enter"},null,8,["modelValue"]),(0,o.Wm)(y,{filled:"","stack-label":"",label:"Locale",modelValue:e.synonym.locale,"onUpdate:modelValue":n[5]||(n[5]=n=>e.synonym.locale=n),class:"q-mb-md",hint:"Leave blank to auto-detect"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(h,{align:"right",class:"bg-primary"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!e.isValid,onClick:n[6]||(n[6]=n=>e.createSynonym())},{default:(0,o.w5)((()=>[(0,o.Uk)((0,t.zw)(e.isUpdate?"Update":"Add")+" Synonym",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,o.Wm)(x,{class:"q-mt-md",title:"Synonyms",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.synonyms,columns:e.columns,"row-key":"id",pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,o.w5)((()=>[(0,o._)("div",a,[(0,o.Wm)(g,{size:"md",name:"sym_s_dataset_linked"}),(0,o.Uk)(" Synonyms")])])),"top-right":(0,o.w5)((()=>[(0,o.Wm)(y,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":n[8]||(n[8]=n=>e.filter=n),placeholder:"Search"},{append:(0,o.w5)((()=>[(0,o.Wm)(g,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,o.w5)((n=>[(0,o.Wm)(w,{class:"text-right"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{flat:"",color:"primary",onClick:l=>e.editSynonym(n.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,o.Wm)(_,{flat:"",color:"negative",onClick:l=>e.deleteSynonym(n.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var d,m=l(21345),y=function(e,n,l,o){function t(e){return e instanceof l?e:new l((function(n){n(e)}))}return new(l||(l=Promise))((function(l,s){function a(e){try{d(o.next(e))}catch(n){s(n)}}function i(e){try{d(o["throw"](e))}catch(n){s(n)}}function d(e){e.done?l(e.value):t(e.value).then(a,i)}d((o=o.apply(e,n||[])).next())}))};(function(e){e["ONE_WAY"]="one-way",e["MULTI_WAY"]="multi-way"})(d||(d={}));const r=(0,o.aZ)({name:"Synonyms",data(){return{expanded:0===this.$store.state.node.data.synonyms.length,filter:"",type:d.MULTI_WAY,types:d,typeOptions:[{label:"Multi-way synonyms",value:d.MULTI_WAY},{label:"One-way synonym",value:d.ONE_WAY}],synonym:{root:"",synonyms:[],locale:"",symbols_to_index:[]},id:(0,m.x0)(),columns:[{label:"ID",name:"id",field:"id",align:"left"},{label:"Type",name:"type",align:"left",field:e=>e.root?d.ONE_WAY:d.MULTI_WAY,sortable:!0},{label:"Root",name:"root",field:"root",align:"left",sortable:!0},{label:"Synonyms",name:"synonyms",field:e=>e.synonyms.join(", "),align:"left",sortable:!0},{label:"Symbols to Index",name:"symbols_to_index",field:e=>{var n;return null===(n=e.symbols_to_index)||void 0===n?void 0:n.join(", ")},align:"left",sortable:!0},{label:"Locale",name:"locale",field:"locale",align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{isValid(){return this.synonym.synonyms.length>0&&this.id.length>0},isUpdate(){return this.$store.state.node.data.synonyms.map((e=>e.id)).includes(this.id)}},methods:{createSynonym(){return y(this,void 0,void 0,(function*(){const e={synonyms:JSON.parse(JSON.stringify(this.synonym.synonyms))};this.type===this.types.ONE_WAY&&(e.root=this.synonym.root),this.synonym.locale&&(e.locale=this.synonym.locale),this.synonym.symbols_to_index&&this.synonym.symbols_to_index.length>0&&(e.symbols_to_index=this.synonym.symbols_to_index),yield this.$store.dispatch("node/createSynonym",{id:this.id,synonym:e}),this.id=(0,m.x0)(),this.synonym={root:"",synonyms:[],locale:"",symbols_to_index:[]},this.expanded=!1}))},editSynonym(e){this.id=e.id||(0,m.x0)(),this.synonym=JSON.parse(JSON.stringify(e)),this.type=this.synonym.root?d.ONE_WAY:d.MULTI_WAY,this.synonym.locale=this.synonym.locale||"",this.synonym.symbols_to_index=this.synonym.symbols_to_index||[],this.expanded=!0},deleteSynonym(e){this.$q.dialog({title:"Confirm",message:`Delete synonym with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteSynonym",e)}))}}});var u=l(11639),c=l(69885),p=l(61123),_=l(44458),h=l(63190),b=l(66611),f=l(8830),g=l(67887),w=l(50926),x=l(11821),W=l(24455),V=l(86008),S=l(22857),k=l(67220),v=l(69984),q=l.n(v);const U=(0,u.Z)(r,[["render",i]]),O=U;q()(r,"components",{QPage:c.Z,QExpansionItem:p.Z,QCard:_.Z,QCardSection:h.Z,QInput:b.Z,QOptionGroup:f.Z,QSelect:g.Z,QSeparator:w.Z,QCardActions:x.Z,QBtn:W.Z,QTable:V.Z,QIcon:S.Z,QTd:k.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[925],{51925:(e,n,l)=>{l.r(n),l.d(n,{default:()=>O});var o=l(59835),t=l(86970);const s=(0,o._)("div",{class:"text-overline"},"Optional",-1),a={class:"text-h6"};function i(e,n,l,i,d,m){const y=(0,o.up)("q-input"),r=(0,o.up)("q-option-group"),u=(0,o.up)("q-select"),c=(0,o.up)("q-card-section"),p=(0,o.up)("q-separator"),_=(0,o.up)("q-btn"),h=(0,o.up)("q-card-actions"),b=(0,o.up)("q-card"),f=(0,o.up)("q-expansion-item"),g=(0,o.up)("q-icon"),w=(0,o.up)("q-td"),x=(0,o.up)("q-table"),W=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(W,{padding:""},{default:(0,o.w5)((()=>[(0,o.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Synonym","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":n[7]||(n[7]=n=>e.expanded=n)},{default:(0,o.w5)((()=>[(0,o.Wm)(b,{class:"bg-surface column"},{default:(0,o.w5)((()=>[(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[(0,o.Wm)(y,{label:"ID",modelValue:e.id,"onUpdate:modelValue":n[0]||(n[0]=n=>e.id=n),filled:"",class:"q-mb-md"},null,8,["modelValue"]),(0,o.Wm)(r,{filled:"",modelValue:e.type,"onUpdate:modelValue":n[1]||(n[1]=n=>e.type=n),options:e.typeOptions,color:"primary",inline:"",class:"q-mb-md"},null,8,["modelValue","options"]),e.type===e.types.ONE_WAY?((0,o.wg)(),(0,o.j4)(y,{key:0,filled:"","stack-label":"",label:"Root",modelValue:e.synonym.root,"onUpdate:modelValue":n[2]||(n[2]=n=>e.synonym.root=n),class:"q-mb-md"},null,8,["modelValue"])):(0,o.kq)("",!0),(0,o.Wm)(u,{filled:"",modelValue:e.synonym.synonyms,"onUpdate:modelValue":n[3]||(n[3]=n=>e.synonym.synonyms=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Synonyms",hint:"Enter a synonym and press enter"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(p),(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[s,(0,o.Wm)(u,{filled:"",modelValue:e.synonym.symbols_to_index,"onUpdate:modelValue":n[4]||(n[4]=n=>e.synonym.symbols_to_index=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Symbols to Index",hint:"Enter a symbol (eg: +, - ) and press enter"},null,8,["modelValue"]),(0,o.Wm)(y,{filled:"","stack-label":"",label:"Locale",modelValue:e.synonym.locale,"onUpdate:modelValue":n[5]||(n[5]=n=>e.synonym.locale=n),class:"q-mb-md",hint:"Leave blank to auto-detect"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(h,{align:"right",class:"bg-primary"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!e.isValid,onClick:n[6]||(n[6]=n=>e.createSynonym())},{default:(0,o.w5)((()=>[(0,o.Uk)((0,t.zw)(e.isUpdate?"Update":"Add")+" Synonym",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,o.Wm)(x,{class:"q-mt-md",title:"Synonyms",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.synonyms,columns:e.columns,"row-key":"id",pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,o.w5)((()=>[(0,o._)("div",a,[(0,o.Wm)(g,{size:"md",name:"sym_s_dataset_linked"}),(0,o.Uk)(" Synonyms")])])),"top-right":(0,o.w5)((()=>[(0,o.Wm)(y,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":n[8]||(n[8]=n=>e.filter=n),placeholder:"Search"},{append:(0,o.w5)((()=>[(0,o.Wm)(g,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,o.w5)((n=>[(0,o.Wm)(w,{class:"text-right"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{flat:"",color:"primary",onClick:l=>e.editSynonym(n.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,o.Wm)(_,{flat:"",color:"negative",onClick:l=>e.deleteSynonym(n.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var d,m=l(21345),y=function(e,n,l,o){function t(e){return e instanceof l?e:new l((function(n){n(e)}))}return new(l||(l=Promise))((function(l,s){function a(e){try{d(o.next(e))}catch(n){s(n)}}function i(e){try{d(o["throw"](e))}catch(n){s(n)}}function d(e){e.done?l(e.value):t(e.value).then(a,i)}d((o=o.apply(e,n||[])).next())}))};(function(e){e["ONE_WAY"]="one-way",e["MULTI_WAY"]="multi-way"})(d||(d={}));const r=(0,o.aZ)({name:"Synonyms",data(){return{expanded:0===this.$store.state.node.data.synonyms.length,filter:"",type:d.MULTI_WAY,types:d,typeOptions:[{label:"Multi-way synonyms",value:d.MULTI_WAY},{label:"One-way synonym",value:d.ONE_WAY}],synonym:{root:"",synonyms:[],locale:"",symbols_to_index:[]},id:(0,m.x0)(),columns:[{label:"ID",name:"id",field:"id",align:"left"},{label:"Type",name:"type",align:"left",field:e=>e.root?d.ONE_WAY:d.MULTI_WAY,sortable:!0},{label:"Root",name:"root",field:"root",align:"left",sortable:!0},{label:"Synonyms",name:"synonyms",field:e=>e.synonyms.join(", "),align:"left",sortable:!0},{label:"Symbols to Index",name:"symbols_to_index",field:e=>{var n;return null===(n=e.symbols_to_index)||void 0===n?void 0:n.join(", ")},align:"left",sortable:!0},{label:"Locale",name:"locale",field:"locale",align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{isValid(){return this.synonym.synonyms.length>0&&this.id.length>0},isUpdate(){return this.$store.state.node.data.synonyms.map((e=>e.id)).includes(this.id)}},methods:{createSynonym(){return y(this,void 0,void 0,(function*(){const e={synonyms:JSON.parse(JSON.stringify(this.synonym.synonyms))};this.type===this.types.ONE_WAY&&(e.root=this.synonym.root),this.synonym.locale&&(e.locale=this.synonym.locale),this.synonym.symbols_to_index&&this.synonym.symbols_to_index.length>0&&(e.symbols_to_index=this.synonym.symbols_to_index),yield this.$store.dispatch("node/createSynonym",{id:this.id,synonym:e}),this.id=(0,m.x0)(),this.synonym={root:"",synonyms:[],locale:"",symbols_to_index:[]},this.expanded=!1}))},editSynonym(e){this.id=e.id||(0,m.x0)(),this.synonym=JSON.parse(JSON.stringify(e)),this.type=this.synonym.root?d.ONE_WAY:d.MULTI_WAY,this.synonym.locale=this.synonym.locale||"",this.synonym.symbols_to_index=this.synonym.symbols_to_index||[],this.expanded=!0},deleteSynonym(e){this.$q.dialog({title:"Confirm",message:`Delete synonym with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteSynonym",e)}))}}});var u=l(11639),c=l(69885),p=l(61123),_=l(44458),h=l(63190),b=l(66611),f=l(8830),g=l(26384),w=l(50926),x=l(11821),W=l(24455),V=l(86008),S=l(22857),k=l(67220),v=l(69984),q=l.n(v);const U=(0,u.Z)(r,[["render",i]]),O=U;q()(r,"components",{QPage:c.Z,QExpansionItem:p.Z,QCard:_.Z,QCardSection:h.Z,QInput:b.Z,QOptionGroup:f.Z,QSelect:g.Z,QSeparator:w.Z,QCardActions:x.Z,QBtn:W.Z,QTable:V.Z,QIcon:S.Z,QTd:k.Z})}}]);
\ No newline at end of file
diff --git a/js/931.9ae2cd2e.js b/js/931.593e48b7.js
similarity index 98%
rename from js/931.9ae2cd2e.js
rename to js/931.593e48b7.js
index 24fb1fb..025ddfe 100644
--- a/js/931.9ae2cd2e.js
+++ b/js/931.593e48b7.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[931],{25931:(e,o,l)=>{l.r(o),l.d(o,{default:()=>Q});var t=l(59835),a=l(86970);const r={class:"fullscreen row bg-primary text-center q-pa-md flex flex-center"},n={class:"col col-md-4"},s=(0,t._)("div",null,[(0,t._)("h5",{class:"text-h5 text-white q-my-md"},"Typesense Dashboard")],-1),d={key:0},p={key:1},i={class:"text-left"},u={class:"text-red"};function c(e,o,l,c,m,h){const y=(0,t.up)("q-input"),g=(0,t.up)("q-select"),f=(0,t.up)("q-toggle"),w=(0,t.up)("q-form"),b=(0,t.up)("q-card-section"),q=(0,t.up)("q-btn"),V=(0,t.up)("server-history"),_=(0,t.up)("q-menu"),v=(0,t.up)("q-card-actions"),W=(0,t.up)("q-card");return(0,t.wg)(),(0,t.iD)("div",r,[(0,t._)("div",n,[s,(0,t._)("div",null,[(0,t.Wm)(W,{bordered:"",class:"q-pa-lg shadow-1"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,null,{default:(0,t.w5)((()=>[(0,t.Wm)(w,{class:"q-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(y,{filled:"",modelValue:e.apiKey,"onUpdate:modelValue":o[0]||(o[0]=o=>e.apiKey=o),type:"password",label:"Api Key"},null,8,["modelValue"]),e.$q.platform.is.electron?((0,t.wg)(),(0,t.iD)("p",d," requires server with cors enabled only for search function. ")):((0,t.wg)(),(0,t.iD)("p",p,"requires server with cors enabled.")),(0,t.Wm)(g,{filled:"",modelValue:e.node.protocol,"onUpdate:modelValue":o[1]||(o[1]=o=>e.node.protocol=o),options:e.protocolOptions,label:"Protocol"},null,8,["modelValue","options"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.host,"onUpdate:modelValue":o[2]||(o[2]=o=>e.node.host=o),type:"text",label:"host"},null,8,["modelValue"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.port,"onUpdate:modelValue":o[3]||(o[3]=o=>e.node.port=o),type:"number",label:"port"},null,8,["modelValue"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.path,"onUpdate:modelValue":o[4]||(o[4]=o=>e.node.path=o),type:"text",label:"path",hint:"optional: leave blank or start with / and end without /"},null,8,["modelValue"]),(0,t._)("div",i,[e.$q.platform.is.electron&&"https"===e.node.protocol?((0,t.wg)(),(0,t.j4)(f,{key:0,label:"Check TLS",modelValue:e.node.tls,"onUpdate:modelValue":o[5]||(o[5]=o=>e.node.tls=o)},null,8,["modelValue"])):(0,t.kq)("",!0)])])),_:1})])),_:1}),e.error?((0,t.wg)(),(0,t.j4)(b,{key:0},{default:(0,t.w5)((()=>[(0,t._)("p",u,(0,a.zw)(e.error),1)])),_:1})):(0,t.kq)("",!0),(0,t.Wm)(v,{class:"q-px-md row"},{default:(0,t.w5)((()=>[(0,t.Wm)(q,{unelevated:"",color:"primary",size:"lg",style:{flex:"1"},label:"Login",onClick:o[6]||(o[6]=o=>e.login())}),(0,t.Wm)(q,{color:"primary",size:"lg",icon:"sym_s_history"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,null,{default:(0,t.w5)((()=>[(0,t.Wm)(V)])),_:1})])),_:1})])),_:1})])),_:1})])])])}var m=l(46115);const h=(0,t.aZ)({name:"Login",components:{ServerHistory:m.Z},data(){return{apiKey:"",node:{host:"localhost",port:"8108",protocol:"http",path:"",tls:!0},protocolOptions:["http","https"]}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{login(){this.$store.dispatch("node/login",{apiKey:this.apiKey,node:this.node})},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var y=l(11639),g=l(44458),f=l(63190),w=l(8326),b=l(66611),q=l(67887),V=l(23175),_=l(11821),v=l(24455),W=l(47447),k=l(69984),Z=l.n(k);const x=(0,y.Z)(h,[["render",c]]),Q=x;Z()(h,"components",{QCard:g.Z,QCardSection:f.Z,QForm:w.Z,QInput:b.Z,QSelect:q.Z,QToggle:V.Z,QCardActions:_.Z,QBtn:v.Z,QMenu:W.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[931],{25931:(e,o,l)=>{l.r(o),l.d(o,{default:()=>Q});var t=l(59835),a=l(86970);const r={class:"fullscreen row bg-primary text-center q-pa-md flex flex-center"},n={class:"col col-md-4"},s=(0,t._)("div",null,[(0,t._)("h5",{class:"text-h5 text-white q-my-md"},"Typesense Dashboard")],-1),d={key:0},p={key:1},i={class:"text-left"},u={class:"text-red"};function c(e,o,l,c,m,h){const y=(0,t.up)("q-input"),g=(0,t.up)("q-select"),f=(0,t.up)("q-toggle"),w=(0,t.up)("q-form"),b=(0,t.up)("q-card-section"),q=(0,t.up)("q-btn"),V=(0,t.up)("server-history"),_=(0,t.up)("q-menu"),v=(0,t.up)("q-card-actions"),W=(0,t.up)("q-card");return(0,t.wg)(),(0,t.iD)("div",r,[(0,t._)("div",n,[s,(0,t._)("div",null,[(0,t.Wm)(W,{bordered:"",class:"q-pa-lg shadow-1"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,null,{default:(0,t.w5)((()=>[(0,t.Wm)(w,{class:"q-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(y,{filled:"",modelValue:e.apiKey,"onUpdate:modelValue":o[0]||(o[0]=o=>e.apiKey=o),type:"password",label:"Api Key"},null,8,["modelValue"]),e.$q.platform.is.electron?((0,t.wg)(),(0,t.iD)("p",d," requires server with cors enabled only for search function. ")):((0,t.wg)(),(0,t.iD)("p",p,"requires server with cors enabled.")),(0,t.Wm)(g,{filled:"",modelValue:e.node.protocol,"onUpdate:modelValue":o[1]||(o[1]=o=>e.node.protocol=o),options:e.protocolOptions,label:"Protocol"},null,8,["modelValue","options"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.host,"onUpdate:modelValue":o[2]||(o[2]=o=>e.node.host=o),type:"text",label:"host"},null,8,["modelValue"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.port,"onUpdate:modelValue":o[3]||(o[3]=o=>e.node.port=o),type:"number",label:"port"},null,8,["modelValue"]),(0,t.Wm)(y,{filled:"",modelValue:e.node.path,"onUpdate:modelValue":o[4]||(o[4]=o=>e.node.path=o),type:"text",label:"path",hint:"optional: leave blank or start with / and end without /"},null,8,["modelValue"]),(0,t._)("div",i,[e.$q.platform.is.electron&&"https"===e.node.protocol?((0,t.wg)(),(0,t.j4)(f,{key:0,label:"Check TLS",modelValue:e.node.tls,"onUpdate:modelValue":o[5]||(o[5]=o=>e.node.tls=o)},null,8,["modelValue"])):(0,t.kq)("",!0)])])),_:1})])),_:1}),e.error?((0,t.wg)(),(0,t.j4)(b,{key:0},{default:(0,t.w5)((()=>[(0,t._)("p",u,(0,a.zw)(e.error),1)])),_:1})):(0,t.kq)("",!0),(0,t.Wm)(v,{class:"q-px-md row"},{default:(0,t.w5)((()=>[(0,t.Wm)(q,{unelevated:"",color:"primary",size:"lg",style:{flex:"1"},label:"Login",onClick:o[6]||(o[6]=o=>e.login())}),(0,t.Wm)(q,{color:"primary",size:"lg",icon:"sym_s_history"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,null,{default:(0,t.w5)((()=>[(0,t.Wm)(V)])),_:1})])),_:1})])),_:1})])),_:1})])])])}var m=l(46115);const h=(0,t.aZ)({name:"Login",components:{ServerHistory:m.Z},data(){return{apiKey:"",node:{host:"localhost",port:"8108",protocol:"http",path:"",tls:!0},protocolOptions:["http","https"]}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{login(){this.$store.dispatch("node/login",{apiKey:this.apiKey,node:this.node})},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var y=l(11639),g=l(44458),f=l(63190),w=l(8326),b=l(66611),q=l(26384),V=l(23175),_=l(11821),v=l(24455),W=l(47447),k=l(69984),Z=l.n(k);const x=(0,y.Z)(h,[["render",c]]),Q=x;Z()(h,"components",{QCard:g.Z,QCardSection:f.Z,QForm:w.Z,QInput:b.Z,QSelect:q.Z,QToggle:V.Z,QCardActions:_.Z,QBtn:v.Z,QMenu:W.Z})}}]);
\ No newline at end of file
diff --git a/js/942.0aa44c9a.js b/js/942.01ab8f9f.js
similarity index 97%
rename from js/942.0aa44c9a.js
rename to js/942.01ab8f9f.js
index a5f4246..140031f 100644
--- a/js/942.0aa44c9a.js
+++ b/js/942.01ab8f9f.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[942],{1942:(e,l,t)=>{t.r(l),t.d(l,{default:()=>x});var a=t(59835),o=t(86970);const n={class:"text-h6"};function s(e,l,t,s,i,r){const d=(0,a.up)("q-input"),c=(0,a.up)("q-card-section"),u=(0,a.up)("q-select"),m=(0,a.up)("q-btn"),p=(0,a.up)("q-card-actions"),f=(0,a.up)("q-card"),h=(0,a.up)("q-expansion-item"),y=(0,a.up)("q-icon"),b=(0,a.up)("q-td"),g=(0,a.up)("q-table"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,{padding:""},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Analytics Rule","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":l[6]||(l[6]=l=>e.expanded=l)},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"bg-surface column"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.name,"onUpdate:modelValue":l[0]||(l[0]=l=>e.rule.name=l),label:"Rule Name",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"]),(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.type,"onUpdate:modelValue":l[1]||(l[1]=l=>e.rule.type=l),label:"Rule Type",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"])])),_:1}),(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{class:"col-12 col-sm-6",modelValue:e.rule.params.source.collections,"onUpdate:modelValue":l[2]||(l[2]=l=>e.rule.params.source.collections=l),label:"Source Collection(s)",filled:"",options:e.collectionNames,multiple:"",hint:"Track searches sent to these collections"},null,8,["modelValue","options"]),(0,a.Wm)(u,{class:"col-12 col-sm-6",modelValue:e.rule.params.destination.collection,"onUpdate:modelValue":l[3]||(l[3]=l=>e.rule.params.destination.collection=l),label:"Destination Collection",filled:"",options:e.collectionNames},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.params.limit,"onUpdate:modelValue":l[4]||(l[4]=l=>e.rule.params.limit=l),label:"Limit",filled:"",type:"number",min:"0"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(p,{align:"right",class:"bg-primary"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.createRule())},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.isUpdate?"Update":"Add")+" Rule",1)])),_:1})])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,a.Wm)(g,{class:"q-mt-md",title:"Analytics Rules",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.analyticsRules,columns:e.columns,"row-key":"name",pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Wm)(y,{size:"md",name:"sym_s_query_stats"}),(0,a.Uk)(" Analytics Rules ")])])),"top-right":(0,a.w5)((()=>[(0,a.Wm)(d,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":l[7]||(l[7]=l=>e.filter=l),placeholder:"Search"},{append:(0,a.w5)((()=>[(0,a.Wm)(y,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,a.w5)((l=>[(0,a.Wm)(b,{class:"text-right"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{flat:"",color:"primary",onClick:t=>e.editRule(l.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,a.Wm)(m,{flat:"",color:"negative",onClick:t=>e.deleteRule(l.row.name),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var i=function(e,l,t,a){function o(e){return e instanceof t?e:new t((function(l){l(e)}))}return new(t||(t=Promise))((function(t,n){function s(e){try{r(a.next(e))}catch(l){n(l)}}function i(e){try{r(a["throw"](e))}catch(l){n(l)}}function r(e){e.done?t(e.value):o(e.value).then(s,i)}r((a=a.apply(e,l||[])).next())}))};function r(){return{name:"",type:"popular_queries",params:{source:{collections:[]},destination:{collection:""},limit:100}}}const d=(0,a.aZ)({name:"AnalyticsRules",data(){return{rule:r(),expanded:0===this.$store.state.node.data.aliases.length,filter:"",columns:[{label:"Rule Name",name:"name",field:"name",align:"left",sortable:!0},{label:"Rule Type",name:"type",field:"type",align:"left",sortable:!0},{label:"Source Collection(s)",name:"source",field:e=>e.params.source.collections.join(", "),align:"left",sortable:!0},{label:"Destination Collection",name:"destination",field:e=>e.params.destination.collection,align:"left",sortable:!0},{label:"Limit",name:"limit",field:e=>e.params.limit,align:"right",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},mounted(){this.$store.dispatch("node/getAnalyticsRules")},computed:{collectionNames(){return this.$store.state.node.data.collections.map((e=>e.name))},isUpdate(){return this.$store.state.node.data.analyticsRules.map((e=>e.name)).includes(this.rule.name)}},methods:{createRule(){return i(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/createAnalyticsRule",this.rule),this.expanded=!1,this.rule=r()}))},editRule(e){this.rule=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteRule(e){this.$q.dialog({title:"Confirm",message:`Delete analytics rule ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteAnalyticsRule",e)}))}}});var c=t(11639),u=t(69885),m=t(61123),p=t(44458),f=t(63190),h=t(66611),y=t(67887),b=t(11821),g=t(24455),_=t(86008),w=t(22857),V=t(67220),q=t(69984),R=t.n(q);const W=(0,c.Z)(d,[["render",s]]),x=W;R()(d,"components",{QPage:u.Z,QExpansionItem:m.Z,QCard:p.Z,QCardSection:f.Z,QInput:h.Z,QSelect:y.Z,QCardActions:b.Z,QBtn:g.Z,QTable:_.Z,QIcon:w.Z,QTd:V.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[942],{1942:(e,l,t)=>{t.r(l),t.d(l,{default:()=>x});var a=t(59835),o=t(86970);const n={class:"text-h6"};function s(e,l,t,s,i,r){const d=(0,a.up)("q-input"),c=(0,a.up)("q-card-section"),u=(0,a.up)("q-select"),m=(0,a.up)("q-btn"),p=(0,a.up)("q-card-actions"),f=(0,a.up)("q-card"),h=(0,a.up)("q-expansion-item"),y=(0,a.up)("q-icon"),b=(0,a.up)("q-td"),g=(0,a.up)("q-table"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,{padding:""},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Analytics Rule","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":l[6]||(l[6]=l=>e.expanded=l)},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"bg-surface column"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.name,"onUpdate:modelValue":l[0]||(l[0]=l=>e.rule.name=l),label:"Rule Name",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"]),(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.type,"onUpdate:modelValue":l[1]||(l[1]=l=>e.rule.type=l),label:"Rule Type",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"])])),_:1}),(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{class:"col-12 col-sm-6",modelValue:e.rule.params.source.collections,"onUpdate:modelValue":l[2]||(l[2]=l=>e.rule.params.source.collections=l),label:"Source Collection(s)",filled:"",options:e.collectionNames,multiple:"",hint:"Track searches sent to these collections"},null,8,["modelValue","options"]),(0,a.Wm)(u,{class:"col-12 col-sm-6",modelValue:e.rule.params.destination.collection,"onUpdate:modelValue":l[3]||(l[3]=l=>e.rule.params.destination.collection=l),label:"Destination Collection",filled:"",options:e.collectionNames},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(c,{class:"row q-col-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{class:"col-12 col-sm-6",modelValue:e.rule.params.limit,"onUpdate:modelValue":l[4]||(l[4]=l=>e.rule.params.limit=l),label:"Limit",filled:"",type:"number",min:"0"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(p,{align:"right",class:"bg-primary"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.createRule())},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.isUpdate?"Update":"Add")+" Rule",1)])),_:1})])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,a.Wm)(g,{class:"q-mt-md",title:"Analytics Rules",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.analyticsRules,columns:e.columns,"row-key":"name",pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Wm)(y,{size:"md",name:"sym_s_query_stats"}),(0,a.Uk)(" Analytics Rules ")])])),"top-right":(0,a.w5)((()=>[(0,a.Wm)(d,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":l[7]||(l[7]=l=>e.filter=l),placeholder:"Search"},{append:(0,a.w5)((()=>[(0,a.Wm)(y,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,a.w5)((l=>[(0,a.Wm)(b,{class:"text-right"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{flat:"",color:"primary",onClick:t=>e.editRule(l.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,a.Wm)(m,{flat:"",color:"negative",onClick:t=>e.deleteRule(l.row.name),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var i=function(e,l,t,a){function o(e){return e instanceof t?e:new t((function(l){l(e)}))}return new(t||(t=Promise))((function(t,n){function s(e){try{r(a.next(e))}catch(l){n(l)}}function i(e){try{r(a["throw"](e))}catch(l){n(l)}}function r(e){e.done?t(e.value):o(e.value).then(s,i)}r((a=a.apply(e,l||[])).next())}))};function r(){return{name:"",type:"popular_queries",params:{source:{collections:[]},destination:{collection:""},limit:100}}}const d=(0,a.aZ)({name:"AnalyticsRules",data(){return{rule:r(),expanded:0===this.$store.state.node.data.aliases.length,filter:"",columns:[{label:"Rule Name",name:"name",field:"name",align:"left",sortable:!0},{label:"Rule Type",name:"type",field:"type",align:"left",sortable:!0},{label:"Source Collection(s)",name:"source",field:e=>e.params.source.collections.join(", "),align:"left",sortable:!0},{label:"Destination Collection",name:"destination",field:e=>e.params.destination.collection,align:"left",sortable:!0},{label:"Limit",name:"limit",field:e=>e.params.limit,align:"right",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},mounted(){this.$store.dispatch("node/getAnalyticsRules")},computed:{collectionNames(){return this.$store.state.node.data.collections.map((e=>e.name))},isUpdate(){return this.$store.state.node.data.analyticsRules.map((e=>e.name)).includes(this.rule.name)}},methods:{createRule(){return i(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/createAnalyticsRule",this.rule),this.expanded=!1,this.rule=r()}))},editRule(e){this.rule=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteRule(e){this.$q.dialog({title:"Confirm",message:`Delete analytics rule ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteAnalyticsRule",e)}))}}});var c=t(11639),u=t(69885),m=t(61123),p=t(44458),f=t(63190),h=t(66611),y=t(26384),b=t(11821),g=t(24455),_=t(86008),w=t(22857),V=t(67220),q=t(69984),R=t.n(q);const W=(0,c.Z)(d,[["render",s]]),x=W;R()(d,"components",{QPage:u.Z,QExpansionItem:m.Z,QCard:p.Z,QCardSection:f.Z,QInput:h.Z,QSelect:y.Z,QCardActions:b.Z,QBtn:g.Z,QTable:_.Z,QIcon:w.Z,QTd:V.Z})}}]);
\ No newline at end of file
diff --git a/js/app.29bbb05e.js b/js/app.29bbb05e.js
new file mode 100644
index 0000000..ff8ac61
--- /dev/null
+++ b/js/app.29bbb05e.js
@@ -0,0 +1 @@
+(()=>{var e={34658:(e,t,o)=>{"use strict";var n=o(61957),i=o(71947),r=o(60499),s=o(59835);function a(e,t,o,n,i,r){const a=(0,s.up)("router-view");return(0,s.wg)(),(0,s.j4)(a)}const l=(0,s.aZ)({name:"App"});var c=o(11639);const d=(0,c.Z)(l,[["render",a]]),u=d;var p=o(62465),m=o(23340),v=o(28339);const h=[{path:"/",component:()=>Promise.all([o.e(736),o.e(64),o.e(870)]).then(o.bind(o,80870)),children:[{path:"",component:()=>Promise.all([o.e(736),o.e(467)]).then(o.bind(o,43467))},{path:"aliases",component:()=>Promise.all([o.e(736),o.e(417)]).then(o.bind(o,39417))},{path:"apikeys",component:()=>Promise.all([o.e(736),o.e(64),o.e(928)]).then(o.bind(o,39002))},{path:"analyticsrules",component:()=>Promise.all([o.e(736),o.e(942)]).then(o.bind(o,1942))},{path:"searchpresets",component:()=>Promise.all([o.e(736),o.e(64),o.e(122)]).then(o.bind(o,24496))},{path:"stopwords",component:()=>Promise.all([o.e(736),o.e(210)]).then(o.bind(o,24210))},{path:"collections",component:()=>Promise.all([o.e(736),o.e(64),o.e(69)]).then(o.bind(o,33057))},{path:"collection/:name/document",component:()=>Promise.all([o.e(736),o.e(64),o.e(631)]).then(o.bind(o,70648))},{path:"collection/:name/search",component:()=>Promise.all([o.e(736),o.e(64),o.e(440)]).then(o.bind(o,40758))},{path:"collection/:name/schema",component:()=>Promise.all([o.e(736),o.e(64),o.e(165)]).then(o.bind(o,58067))},{path:"collection/:name/synonyms",component:()=>Promise.all([o.e(736),o.e(925)]).then(o.bind(o,51925))},{path:"collection/:name/curations",component:()=>Promise.all([o.e(736),o.e(64),o.e(370)]).then(o.bind(o,16074))}]},{path:"/login",name:"Login",component:()=>Promise.all([o.e(736),o.e(64),o.e(931)]).then(o.bind(o,25931))},{path:"/:catchAll(.*)*",component:()=>Promise.all([o.e(736),o.e(983)]).then(o.bind(o,48983))}],y=h;var g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const f=(0,m.BC)((function({store:e}){const t=v.r5,o=(0,v.p7)({scrollBehavior:()=>({left:0,top:0}),routes:y,history:t("/typesense-dashboard/")});return e.dispatch("node/connectionCheck"),o.beforeEach(((t,o,n)=>g(this,void 0,void 0,(function*(){"Login"===t.name||e.state.node.isConnected?t.params.name?(e.state.node.currentCollection&&e.state.node.currentCollection.name===t.params.name||(yield e.dispatch("node/loadCurrentCollectionByName",t.params.name)),n()):n():(e.commit("node/setPreviousRoute",t),n({name:"Login"}))})))),o}));async function C(e,t){const n=e(u);n.use(i.Z,t);const s="function"===typeof p.Z?await(0,p.Z)({}):p.Z,{storeKey:a}=await Promise.resolve().then(o.bind(o,62465)),l=(0,r.Xl)("function"===typeof f?await f({store:s}):f);return s.$router=l,{app:n,store:s,storeKey:a,router:l}}var b=o(92180),w=o(93809),S=o(15162),P=o(31012);const A={config:{dark:"auto"},plugins:{LocalStorage:b.Z,Dialog:w.Z,Loading:S.Z,Notify:P.Z}},D="/typesense-dashboard/",E=/\/\//,O=e=>(D+e).replace(E,"/");async function k({app:e,router:t,store:o,storeKey:n},i){let r=!1;const s=e=>{try{return O(t.resolve(e).href)}catch(o){}return Object(e)===e?null:e},a=e=>{if(r=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=s(e);null!==t&&(window.location.href=t,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let d=0;!1===r&&d{const[t,n]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(o.bind(o,34136)),Promise.resolve().then(o.bind(o,14703)),Promise.resolve().then(o.bind(o,65692)),Promise.resolve().then(o.bind(o,85409))]).then((t=>{const o=n(t).filter((e=>"function"===typeof e));k(e,o)}))}))},34136:(e,t,o)=>{"use strict";o.r(t),o.d(t,{api:()=>r,default:()=>s});var n=o(23340),i=o(76081);const r=i.Z.create({baseURL:"https://api.example.com"}),s=(0,n.xr)((({app:e})=>{e.config.globalProperties.$axios=i.Z,e.config.globalProperties.$api=r}))},85409:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(23340),i=o(76081),r=o(39180);const s=(0,n.xr)((({store:e})=>{r.Z.is.electron||i.Z.get("config.json").then((t=>{e.dispatch("node/login",t.data)}))}))},65692:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>l});var n=o(23340),i=o(92180),r=o(46337),s=o(59835);const a="typesense-dark-mode",l=(0,n.xr)((()=>{const e=i.Z.getItem(a);null!==e&&r.Z.set(e),(0,s.YP)((()=>r.Z.isActive),(e=>{i.Z.set(a,e)}))}))},14703:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var n=o(23340),i=o(64706);const r=(0,n.xr)((({app:e})=>{e.use(i.ZP)}))},62465:(e,t,o)=>{"use strict";o.d(t,{Z:()=>O,storeKey:()=>E});var n=o(23340),i=o(33100),r=o(92180);const s="typesense-logindata",a="typesense-loginhistory";function l(){return{loginData:r.Z.getItem(s),loginHistory:r.Z.getItem(a)||[],forceHomeRedirect:!1,isConnected:!1,previousRoute:null,error:null,currentCollection:null,documentsToEdit:[],data:{debug:{},metrics:{},stats:{},collections:[],aliases:[],apiKeys:[],analyticsRules:[],searchPresets:[],stopwords:[],overrides:[],synonyms:[]}}}const c=l;var d=o(31012),u=o(42049),p=o.n(u),m=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const v={connectionCheck(e){e.state.loginData?e.getters.api.get("/metrics.json").then((t=>m(this,void 0,void 0,(function*(){e.commit("setData",{metrics:t.data}),yield Promise.all([e.dispatch("getCollections"),e.dispatch("getAliases"),e.dispatch("getApiKeys"),e.dispatch("getDebug")]),e.commit("setIsConnected",!0),e.commit("saveHistory"),e.commit("setError",null)})))).catch((t=>{e.commit("setIsConnected",!1),e.commit("setError",t.message)})):e.commit("setIsConnected",!1)},refreshServerStatus(e){e.getters.api.get("/metrics.json").then((t=>{e.commit("setData",{metrics:t.data})})).catch((()=>{e.dispatch("connectionCheck")})),e.getters.api.get("/stats.json").then((t=>{e.commit("setData",{stats:t.data})})).catch((()=>{e.dispatch("connectionCheck")}))},getDebug(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getDebug().then((t=>{e.commit("setData",{debug:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getCollections(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getCollections().then((t=>{e.commit("setData",{collections:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAliases(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getAliases().then((t=>{e.commit("setData",{aliases:t.aliases})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getApiKeys(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getApiKeys().then((t=>{e.commit("setData",{apiKeys:t.keys})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAnalyticsRules(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getAnalyticsRules().then((t=>{e.commit("setData",{analyticsRules:t.rules})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteAnalyticsRule(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteAnalyticsRule(t),e.dispatch("getAnalyticsRules")}))},createAnalyticsRule(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAnalyticsRule(t.name,t),e.dispatch("getAnalyticsRules")}catch(o){e.commit("setError",o.message)}}))},getSearchPresets(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getSearchPresets().then((t=>{e.commit("setData",{searchPresets:t.presets})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteSearchPreset(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteSearchPreset(t),e.dispatch("getSearchPresets")}))},upsertSearchPreset(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSearchPreset(t.name,t),e.dispatch("getSearchPresets")}catch(o){e.commit("setError",o.message)}}))},getStopwords(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getStopwords().then((t=>{e.commit("setData",{stopwords:t.stopwords})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},upsertStopwords(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertStopwords(t.id,t),e.dispatch("getStopwords")}catch(o){e.commit("setError",o.message)}}))},deleteStopwords(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteStopwords(t),e.dispatch("getStopwords")}))},getSynonyms(e,t){e.getters.api.getSynonyms(t).then((t=>{e.commit("setData",{synonyms:t.synonyms})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},getOverrides(e,t){e.getters.api.getOverrides(t).then((t=>{e.commit("setData",{overrides:t.overrides})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},login(e,t){const{apiKey:o,node:n,forceHomeRedirect:i=!1}=t;e.commit("setForceRedirect",i),e.commit("setNodeData",{apiKey:o,node:n}),e.dispatch("connectionCheck")},logout(e){r.Z.remove(s),e.commit("setIsConnected",!1)},loadCurrentCollection(e,t){var o;if(e.commit("setCurrentCollection",t),e.dispatch("getSynonyms",t.name),e.dispatch("getOverrides",t.name),null===(o=this.$router.currentRoute.value.params)||void 0===o?void 0:o.name){const e=Object.assign(Object.assign({},this.$router.currentRoute.value.params),{name:t.name});this.$router.push({name:this.$router.currentRoute.value.name,params:e})}},loadCurrentCollectionByName(e,t){return e.dispatch("loadCurrentCollection",e.state.data.collections.find((e=>e.name===t)))},dropCollection(e,t){return m(this,void 0,void 0,(function*(){e.commit("setCurrentCollection",null),yield e.getters.api.dropCollection(t),e.dispatch("getCollections")}))},createCollection(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createCollection(JSON.parse(JSON.stringify(t)));e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${o.name}/schema`)}catch(o){e.commit("setError",o.message)}}))},updateCollection(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.updateCollection(t.collectionName,t.schema);const o=yield e.getters.api.getCollection(t.collectionName);e.commit("setData",{collections:e.state.data.collections.map((e=>e.name===t.collectionName?o:e))}),e.commit("setCurrentCollection",o)}catch(o){e.commit("setError",o.message)}}))},cloneCollectionSchema(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.post(`/collections?src_name=${t.collectionName}`,{name:t.destinationName});const o=yield e.getters.api.getCollection(t.destinationName);e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${t.destinationName}/schema`)}catch(o){e.commit("setError",o.message)}}))},deleteAlias(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteAlias(t),e.dispatch("getAliases")}))},createAlias(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAlias(t),e.dispatch("getAliases")}catch(o){e.commit("setError",o.message)}}))},createApiKey(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createApiKey(t);return e.dispatch("getApiKeys"),o}catch(o){throw e.commit("setError",o.message),o}}))},deleteApiKey(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteApiKey(t),e.dispatch("getApiKeys")}))},createSynonym(e,t){var o,n;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.synonym),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteSynonym(e,t){var o,n;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},createOverride(e,t){var o,n;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.override),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteOverride(e,t){var o,n;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},deleteDocumentById(e,t){var o;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteDocumentById(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t)}))},search(e,t){var o;return e.getters.api.search((null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||"",JSON.parse(JSON.stringify(t)))},importDocuments(e,t){var o;return e.getters.api.importDocuments(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.documents,t.action)},exportDocuments(e,t){return m(this,void 0,void 0,(function*(){return e.getters.api.exportDocuments(t).then((e=>{const o=new Blob([e],{type:"text/plain;charset=utf-8"});p().saveAs(o,`${t}.ljson`)}))}))},editDocuments(e,t){var o;e.commit("setDocumentsToEdit",t),this.$router.push(`/collection/${(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||""}/document`)},exportToJson(e,t){const o=new Blob([JSON.stringify(t,null,2)],{type:"application/json;charset=utf-8"});p().saveAs(o,"export.json")},operationCompactDB(e){var t;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.post("/operations/db/compact");(null===(t=o.data)||void 0===t?void 0:t.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Compact DB: Server responded with success"})}catch(o){e.commit("setError",o.message)}}))},clearCache(e){var t;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.post("/operations/cache/clear");(null===(t=o.data)||void 0===t?void 0:t.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Clear Cache: Server responded with success"})}catch(o){e.commit("setError",o.message)}}))},slowQueryThreshold(e,t){var o;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const n=yield e.getters.api.post("/config",{"log-slow-requests-time-ms":t});(null===(o=n.data)||void 0===o?void 0:o.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:`Set Slow Request Threshold to: ${t}`})}catch(n){e.commit("setError",n.message)}}))}},h=v;var y=o(76081),g=o(86953),f=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class C{init({node:e,apiKey:t}){this.axiosClient=y.Z.create({baseURL:`${e.protocol}://${e.host}:${e.port}${e.path||""}`,headers:{"x-typesense-api-key":t}}),this.typesenseClient=new g.Client({nodes:[Object.assign({},e)],apiKey:t})}getDebug(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.debug.retrieve()}getCollections(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.collections().retrieve()}createCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections().create(e)}getCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).retrieve()}dropCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).delete()}updateCollection(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).update(t)}getAliases(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.aliases().retrieve()}upsertAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases().upsert(e.name,{collection_name:e.collection_name})}deleteAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases(e).delete()}getApiKeys(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.keys().retrieve()}createApiKey(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.keys().create(e)}deleteApiKey(e){return f(this,void 0,void 0,(function*(){this.typesenseClient&&(yield this.typesenseClient.keys(parseInt(e,10)).delete())}))}getAnalyticsRules(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.analytics.rules().retrieve()}upsertAnalyticsRule(e,t){var o;return(null===(o=this.typesenseClient)||void 0===o?void 0:o.analytics.rules()).upsert(e,t)}deleteAnalyticsRule(e){var t;return(null===(t=this.typesenseClient)||void 0===t?void 0:t.analytics.rules(e)).delete()}getSearchPresets(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.presets().retrieve()}upsertSearchPreset(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.presets().upsert(e,t)}deleteSearchPreset(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.presets(e).delete()}getStopwords(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.stopwords().retrieve()}upsertStopwords(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.stopwords().upsert(e,t)}deleteStopwords(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.stopwords(e).delete()}getSynonyms(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).synonyms().retrieve()}upsertSynonym(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).synonyms().upsert(t,o)}deleteSynonym(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).synonyms(t).delete()}getOverrides(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).overrides().retrieve()}upsertOverride(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).overrides().upsert(t,o)}deleteOverride(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).overrides(t).delete()}deleteDocumentById(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents(t).delete()}importDocuments(e,t,o){var n;if(this.typesenseClient)return(null===(n=this.typesenseClient.collections(e))||void 0===n?void 0:n.documents()).import(t,{action:o}).catch((e=>e.importResults))}exportDocuments(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).documents().export()}search(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents().search(t)}get(e){var t;return null===(t=this.axiosClient)||void 0===t?void 0:t.get(e).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}post(e,t){var o;return null===(o=this.axiosClient)||void 0===o?void 0:o.post(e,t).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}}const b={api(e){if(e.loginData){const t=window.electron;let o=new C;return t&&(o=t,t.rejectTLS(Number(e.loginData.node.tls))),o.init({node:Object.assign({},e.loginData.node),apiKey:e.loginData.apiKey}),o}}},w=b,S={setNodeData(e,t){e.loginData=t,r.Z.set(s,t)},setIsConnected(e,t){var o,n,i,r,s;const a=null===(o=this.$router)||void 0===o?void 0:o.currentRoute.value;t&&!e.isConnected&&(e.previousRoute?(null===(n=this.$router)||void 0===n||n.push(e.previousRoute),e.previousRoute=null):null===(i=this.$router)||void 0===i||i.push("/")),t||"Login"===(null===a||void 0===a?void 0:a.name)||null===(r=this.$router)||void 0===r||r.push("/login"),t&&e.forceHomeRedirect&&(null===(s=this.$router)||void 0===s||s.push("/"),d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Server changed"}),e.forceHomeRedirect=!1,e.currentCollection=null),e.isConnected=t},saveHistory(e){const t=JSON.stringify(e.loginData),o=e.loginHistory.indexOf(t);0!==o&&(o>0&&e.loginHistory.splice(o,1),e.loginHistory.unshift(t),r.Z.set(a,e.loginHistory))},clearHistory(e){e.loginHistory=[],r.Z.set(a,[])},setForceRedirect(e,t){e.forceHomeRedirect=t},setPreviousRoute(e,t){e.previousRoute=t},setData(e,t){for(const o in t)e.data[o]=t[o]},setError(e,t){e.error=t},setCurrentCollection(e,t){var o;e.currentCollection=t,t||null===(o=this.$router)||void 0===o||o.push("/collections")},setDocumentsToEdit(e,t){e.documentsToEdit=t}},P=S,A={namespaced:!0,actions:h,getters:w,mutations:P,state:c},D=A,E=Symbol("vuex-key"),O=(0,n.h)((function(){const e=(0,i.MT)({modules:{node:D},strict:!1});return e}))},99964:()=>{}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.m=e,(()=>{o.amdO={}})(),(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var s=1/0;for(d=0;d=r)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,i,r]}})(),(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[]))})(),(()=>{o.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{64:"53ae1f74",69:"17604466",122:"a579347e",165:"cf22055f",210:"f3d8b8b0",370:"436ccbf8",417:"1dae2e68",440:"d8386022",467:"20d02189",631:"2d2604af",870:"4ac51965",925:"f47ffaf2",928:"5538f7a6",931:"593e48b7",942:"01ab8f9f",983:"5ed6e3a3"}[e]+".js"})(),(()=>{o.miniCssF=e=>"css/"+e+"."+{69:"954a317a",122:"954a317a",165:"954a317a",370:"954a317a",440:"1a5aed88",631:"954a317a",870:"c4866c3f",928:"954a317a"}[e]+".css"})(),(()=>{o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="typesense-dashboard:";o.l=(n,i,r,s)=>{if(e[n])e[n].push(i);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(m);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(o))),t)return t(o)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),(()=>{o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{o.p="/typesense-dashboard/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var s=o=>{if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),i(l)}};return r.onerror=r.onload=s,r.href=t,o?o.parentNode.insertBefore(r,o.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var o=document.getElementsByTagName("link"),n=0;nnew Promise(((i,r)=>{var s=o.miniCssF(n),a=o.p+s;if(t(s,a))return i();e(n,a,null,i,r)})),i={143:0};o.f.miniCss=(e,t)=>{var o={69:1,122:1,165:1,370:1,440:1,631:1,870:1,928:1};i[e]?t.push(i[e]):0!==i[e]&&o[e]&&t.push(i[e]=n(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))}}})(),(()=>{var e={143:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((o,n)=>i=e[t]=[o,n]));n.push(i[2]=r);var s=o.p+o.u(t),a=new Error,l=n=>{if(o.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}};o.l(s,l,"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(l)var d=l(o)}for(t&&t(n);co(34658)));n=o.O(n)})();
\ No newline at end of file
diff --git a/js/app.6a7f717f.js b/js/app.6a7f717f.js
deleted file mode 100644
index 2c15f3c..0000000
--- a/js/app.6a7f717f.js
+++ /dev/null
@@ -1 +0,0 @@
-(()=>{var e={34658:(e,t,o)=>{"use strict";var n=o(61957),i=o(71947),r=o(60499),s=o(59835);function a(e,t,o,n,i,r){const a=(0,s.up)("router-view");return(0,s.wg)(),(0,s.j4)(a)}const l=(0,s.aZ)({name:"App"});var c=o(11639);const d=(0,c.Z)(l,[["render",a]]),u=d;var p=o(62465),m=o(23340),v=o(28339);const h=[{path:"/",component:()=>Promise.all([o.e(736),o.e(64),o.e(0)]).then(o.bind(o,21e3)),children:[{path:"",component:()=>Promise.all([o.e(736),o.e(467)]).then(o.bind(o,43467))},{path:"aliases",component:()=>Promise.all([o.e(736),o.e(417)]).then(o.bind(o,39417))},{path:"apikeys",component:()=>Promise.all([o.e(736),o.e(64),o.e(928)]).then(o.bind(o,39002))},{path:"analyticsrules",component:()=>Promise.all([o.e(736),o.e(942)]).then(o.bind(o,1942))},{path:"searchpresets",component:()=>Promise.all([o.e(736),o.e(64),o.e(122)]).then(o.bind(o,24496))},{path:"collections",component:()=>Promise.all([o.e(736),o.e(64),o.e(69)]).then(o.bind(o,33057))},{path:"collection/:name/document",component:()=>Promise.all([o.e(736),o.e(64),o.e(631)]).then(o.bind(o,70648))},{path:"collection/:name/search",component:()=>Promise.all([o.e(736),o.e(64),o.e(543)]).then(o.bind(o,40758))},{path:"collection/:name/schema",component:()=>Promise.all([o.e(736),o.e(64),o.e(165)]).then(o.bind(o,58067))},{path:"collection/:name/synonyms",component:()=>Promise.all([o.e(736),o.e(925)]).then(o.bind(o,51925))},{path:"collection/:name/curations",component:()=>Promise.all([o.e(736),o.e(64),o.e(370)]).then(o.bind(o,16074))}]},{path:"/login",name:"Login",component:()=>Promise.all([o.e(736),o.e(64),o.e(931)]).then(o.bind(o,25931))},{path:"/:catchAll(.*)*",component:()=>Promise.all([o.e(736),o.e(983)]).then(o.bind(o,48983))}],y=h;var g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const f=(0,m.BC)((function({store:e}){const t=v.r5,o=(0,v.p7)({scrollBehavior:()=>({left:0,top:0}),routes:y,history:t("/typesense-dashboard/")});return e.dispatch("node/connectionCheck"),o.beforeEach(((t,o,n)=>g(this,void 0,void 0,(function*(){"Login"===t.name||e.state.node.isConnected?t.params.name?(e.state.node.currentCollection&&e.state.node.currentCollection.name===t.params.name||(yield e.dispatch("node/loadCurrentCollectionByName",t.params.name)),n()):n():(e.commit("node/setPreviousRoute",t),n({name:"Login"}))})))),o}));async function C(e,t){const n=e(u);n.use(i.Z,t);const s="function"===typeof p.Z?await(0,p.Z)({}):p.Z,{storeKey:a}=await Promise.resolve().then(o.bind(o,62465)),l=(0,r.Xl)("function"===typeof f?await f({store:s}):f);return s.$router=l,{app:n,store:s,storeKey:a,router:l}}var b=o(92180),w=o(93809),P=o(15162),S=o(31012);const A={config:{dark:"auto"},plugins:{LocalStorage:b.Z,Dialog:w.Z,Loading:P.Z,Notify:S.Z}},D="/typesense-dashboard/",E=/\/\//,O=e=>(D+e).replace(E,"/");async function k({app:e,router:t,store:o,storeKey:n},i){let r=!1;const s=e=>{try{return O(t.resolve(e).href)}catch(o){}return Object(e)===e?null:e},a=e=>{if(r=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=s(e);null!==t&&(window.location.href=t,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let d=0;!1===r&&d{const[t,n]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(o.bind(o,34136)),Promise.resolve().then(o.bind(o,14703)),Promise.resolve().then(o.bind(o,65692)),Promise.resolve().then(o.bind(o,85409))]).then((t=>{const o=n(t).filter((e=>"function"===typeof e));k(e,o)}))}))},34136:(e,t,o)=>{"use strict";o.r(t),o.d(t,{api:()=>r,default:()=>s});var n=o(23340),i=o(76081);const r=i.Z.create({baseURL:"https://api.example.com"}),s=(0,n.xr)((({app:e})=>{e.config.globalProperties.$axios=i.Z,e.config.globalProperties.$api=r}))},85409:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(23340),i=o(76081),r=o(39180);const s=(0,n.xr)((({store:e})=>{r.Z.is.electron||i.Z.get("config.json").then((t=>{e.dispatch("node/login",t.data)}))}))},65692:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>l});var n=o(23340),i=o(92180),r=o(46337),s=o(59835);const a="typesense-dark-mode",l=(0,n.xr)((()=>{const e=i.Z.getItem(a);null!==e&&r.Z.set(e),(0,s.YP)((()=>r.Z.isActive),(e=>{i.Z.set(a,e)}))}))},14703:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var n=o(23340),i=o(64706);const r=(0,n.xr)((({app:e})=>{e.use(i.ZP)}))},62465:(e,t,o)=>{"use strict";o.d(t,{Z:()=>O,storeKey:()=>E});var n=o(23340),i=o(33100),r=o(92180);const s="typesense-logindata",a="typesense-loginhistory";function l(){return{loginData:r.Z.getItem(s),loginHistory:r.Z.getItem(a)||[],forceHomeRedirect:!1,isConnected:!1,previousRoute:null,error:null,currentCollection:null,documentsToEdit:[],data:{debug:{},metrics:{},stats:{},collections:[],aliases:[],apiKeys:[],analyticsRules:[],searchPresets:[],overrides:[],synonyms:[]}}}const c=l;var d=o(31012),u=o(42049),p=o.n(u),m=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const v={connectionCheck(e){e.state.loginData?e.getters.api.get("/metrics.json").then((t=>m(this,void 0,void 0,(function*(){e.commit("setData",{metrics:t.data}),yield Promise.all([e.dispatch("getCollections"),e.dispatch("getAliases"),e.dispatch("getApiKeys"),e.dispatch("getDebug")]),e.commit("setIsConnected",!0),e.commit("saveHistory"),e.commit("setError",null)})))).catch((t=>{e.commit("setIsConnected",!1),e.commit("setError",t.message)})):e.commit("setIsConnected",!1)},refreshServerStatus(e){e.getters.api.get("/metrics.json").then((t=>{e.commit("setData",{metrics:t.data})})).catch((()=>{e.dispatch("connectionCheck")})),e.getters.api.get("/stats.json").then((t=>{e.commit("setData",{stats:t.data})})).catch((()=>{e.dispatch("connectionCheck")}))},getDebug(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getDebug().then((t=>{e.commit("setData",{debug:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getCollections(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getCollections().then((t=>{e.commit("setData",{collections:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAliases(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getAliases().then((t=>{e.commit("setData",{aliases:t.aliases})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getApiKeys(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getApiKeys().then((t=>{e.commit("setData",{apiKeys:t.keys})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAnalyticsRules(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getAnalyticsRules().then((t=>{e.commit("setData",{analyticsRules:t.rules})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteAnalyticsRule(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteAnalyticsRule(t),e.dispatch("getAnalyticsRules")}))},createAnalyticsRule(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAnalyticsRule(t.name,t),e.dispatch("getAnalyticsRules")}catch(o){e.commit("setError",o.message)}}))},getSearchPresets(e){return m(this,void 0,void 0,(function*(){yield e.getters.api.getSearchPresets().then((t=>{e.commit("setData",{searchPresets:t.presets})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteSearchPreset(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteSearchPreset(t),e.dispatch("getSearchPresets")}))},upsertSearchPreset(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSearchPreset(t.name,t),e.dispatch("getSearchPresets")}catch(o){e.commit("setError",o.message)}}))},getSynonyms(e,t){e.getters.api.getSynonyms(t).then((t=>{e.commit("setData",{synonyms:t.synonyms})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},getOverrides(e,t){e.getters.api.getOverrides(t).then((t=>{e.commit("setData",{overrides:t.overrides})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},login(e,t){const{apiKey:o,node:n,forceHomeRedirect:i=!1}=t;e.commit("setForceRedirect",i),e.commit("setNodeData",{apiKey:o,node:n}),e.dispatch("connectionCheck")},logout(e){r.Z.remove(s),e.commit("setIsConnected",!1)},loadCurrentCollection(e,t){var o;if(e.commit("setCurrentCollection",t),e.dispatch("getSynonyms",t.name),e.dispatch("getOverrides",t.name),null===(o=this.$router.currentRoute.value.params)||void 0===o?void 0:o.name){const e=Object.assign(Object.assign({},this.$router.currentRoute.value.params),{name:t.name});this.$router.push({name:this.$router.currentRoute.value.name,params:e})}},loadCurrentCollectionByName(e,t){return e.dispatch("loadCurrentCollection",e.state.data.collections.find((e=>e.name===t)))},dropCollection(e,t){return m(this,void 0,void 0,(function*(){e.commit("setCurrentCollection",null),yield e.getters.api.dropCollection(t),e.dispatch("getCollections")}))},createCollection(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createCollection(JSON.parse(JSON.stringify(t)));e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${o.name}/schema`)}catch(o){e.commit("setError",o.message)}}))},updateCollection(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.updateCollection(t.collectionName,t.schema);const o=yield e.getters.api.getCollection(t.collectionName);e.commit("setData",{collections:e.state.data.collections.map((e=>e.name===t.collectionName?o:e))}),e.commit("setCurrentCollection",o)}catch(o){e.commit("setError",o.message)}}))},cloneCollectionSchema(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.post(`/collections?src_name=${t.collectionName}`,{name:t.destinationName});const o=yield e.getters.api.getCollection(t.destinationName);e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${t.destinationName}/schema`)}catch(o){e.commit("setError",o.message)}}))},deleteAlias(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteAlias(t),e.dispatch("getAliases")}))},createAlias(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAlias(t),e.dispatch("getAliases")}catch(o){e.commit("setError",o.message)}}))},createApiKey(e,t){return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createApiKey(t);return e.dispatch("getApiKeys"),o}catch(o){throw e.commit("setError",o.message),o}}))},deleteApiKey(e,t){return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteApiKey(t),e.dispatch("getApiKeys")}))},createSynonym(e,t){var o,n;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.synonym),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteSynonym(e,t){var o,n;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},createOverride(e,t){var o,n;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.override),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteOverride(e,t){var o,n;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},deleteDocumentById(e,t){var o;return m(this,void 0,void 0,(function*(){yield e.getters.api.deleteDocumentById(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t)}))},search(e,t){var o;return e.getters.api.search((null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||"",JSON.parse(JSON.stringify(t)))},importDocuments(e,t){var o;return e.getters.api.importDocuments(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.documents,t.action)},exportDocuments(e,t){return m(this,void 0,void 0,(function*(){return e.getters.api.exportDocuments(t).then((e=>{const o=new Blob([e],{type:"text/plain;charset=utf-8"});p().saveAs(o,`${t}.ljson`)}))}))},editDocuments(e,t){var o;e.commit("setDocumentsToEdit",t),this.$router.push(`/collection/${(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||""}/document`)},exportToJson(e,t){const o=new Blob([JSON.stringify(t,null,2)],{type:"application/json;charset=utf-8"});p().saveAs(o,"export.json")},operationCompactDB(e){var t;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.post("/operations/db/compact");(null===(t=o.data)||void 0===t?void 0:t.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Compact DB: Server responded with success"})}catch(o){e.commit("setError",o.message)}}))},clearCache(e){var t;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.post("/operations/cache/clear");(null===(t=o.data)||void 0===t?void 0:t.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Clear Cache: Server responded with success"})}catch(o){e.commit("setError",o.message)}}))},slowQueryThreshold(e,t){var o;return m(this,void 0,void 0,(function*(){try{e.commit("setError",null);const n=yield e.getters.api.post("/config",{"log-slow-requests-time-ms":t});(null===(o=n.data)||void 0===o?void 0:o.success)&&d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:`Set Slow Request Threshold to: ${t}`})}catch(n){e.commit("setError",n.message)}}))}},h=v;var y=o(76081),g=o(86953),f=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class C{init({node:e,apiKey:t}){this.axiosClient=y.Z.create({baseURL:`${e.protocol}://${e.host}:${e.port}${e.path||""}`,headers:{"x-typesense-api-key":t}}),this.typesenseClient=new g.Client({nodes:[Object.assign({},e)],apiKey:t})}getDebug(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.debug.retrieve()}getCollections(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.collections().retrieve()}createCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections().create(e)}getCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).retrieve()}dropCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).delete()}updateCollection(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).update(t)}getAliases(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.aliases().retrieve()}upsertAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases().upsert(e.name,{collection_name:e.collection_name})}deleteAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases(e).delete()}getApiKeys(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.keys().retrieve()}createApiKey(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.keys().create(e)}deleteApiKey(e){return f(this,void 0,void 0,(function*(){this.typesenseClient&&(yield this.typesenseClient.keys(parseInt(e,10)).delete())}))}getAnalyticsRules(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.analytics.rules().retrieve()}upsertAnalyticsRule(e,t){var o;return(null===(o=this.typesenseClient)||void 0===o?void 0:o.analytics.rules()).upsert(e,t)}deleteAnalyticsRule(e){var t;return(null===(t=this.typesenseClient)||void 0===t?void 0:t.analytics.rules(e)).delete()}getSearchPresets(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.presets().retrieve()}upsertSearchPreset(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.presets().upsert(e,t)}deleteSearchPreset(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.presets(e).delete()}getSynonyms(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).synonyms().retrieve()}upsertSynonym(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).synonyms().upsert(t,o)}deleteSynonym(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).synonyms(t).delete()}getOverrides(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).overrides().retrieve()}upsertOverride(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).overrides().upsert(t,o)}deleteOverride(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).overrides(t).delete()}deleteDocumentById(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents(t).delete()}importDocuments(e,t,o){var n;if(this.typesenseClient)return(null===(n=this.typesenseClient.collections(e))||void 0===n?void 0:n.documents()).import(t,{action:o}).catch((e=>e.importResults))}exportDocuments(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).documents().export()}search(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents().search(t)}get(e){var t;return null===(t=this.axiosClient)||void 0===t?void 0:t.get(e).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}post(e,t){var o;return null===(o=this.axiosClient)||void 0===o?void 0:o.post(e,t).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}}const b={api(e){if(e.loginData){const t=window.electron;let o=new C;return t&&(o=t,t.rejectTLS(Number(e.loginData.node.tls))),o.init({node:Object.assign({},e.loginData.node),apiKey:e.loginData.apiKey}),o}}},w=b,P={setNodeData(e,t){e.loginData=t,r.Z.set(s,t)},setIsConnected(e,t){var o,n,i,r,s;const a=null===(o=this.$router)||void 0===o?void 0:o.currentRoute.value;t&&!e.isConnected&&(e.previousRoute?(null===(n=this.$router)||void 0===n||n.push(e.previousRoute),e.previousRoute=null):null===(i=this.$router)||void 0===i||i.push("/")),t||"Login"===(null===a||void 0===a?void 0:a.name)||null===(r=this.$router)||void 0===r||r.push("/login"),t&&e.forceHomeRedirect&&(null===(s=this.$router)||void 0===s||s.push("/"),d.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Server changed"}),e.forceHomeRedirect=!1,e.currentCollection=null),e.isConnected=t},saveHistory(e){const t=JSON.stringify(e.loginData),o=e.loginHistory.indexOf(t);0!==o&&(o>0&&e.loginHistory.splice(o,1),e.loginHistory.unshift(t),r.Z.set(a,e.loginHistory))},clearHistory(e){e.loginHistory=[],r.Z.set(a,[])},setForceRedirect(e,t){e.forceHomeRedirect=t},setPreviousRoute(e,t){e.previousRoute=t},setData(e,t){for(const o in t)e.data[o]=t[o]},setError(e,t){e.error=t},setCurrentCollection(e,t){var o;e.currentCollection=t,t||null===(o=this.$router)||void 0===o||o.push("/collections")},setDocumentsToEdit(e,t){e.documentsToEdit=t}},S=P,A={namespaced:!0,actions:h,getters:w,mutations:S,state:c},D=A,E=Symbol("vuex-key"),O=(0,n.h)((function(){const e=(0,i.MT)({modules:{node:D},strict:!1});return e}))},99964:()=>{}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.m=e,(()=>{o.amdO={}})(),(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var s=1/0;for(d=0;d=r)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,i,r]}})(),(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[]))})(),(()=>{o.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{0:"f9f2159b",64:"f32b6eb4",69:"17604466",122:"a579347e",165:"cf22055f",370:"436ccbf8",417:"cc591dbf",467:"20d02189",543:"201f6764",631:"a99a86a9",925:"63fa641e",928:"5538f7a6",931:"9ae2cd2e",942:"0aa44c9a",983:"5ed6e3a3"}[e]+".js"})(),(()=>{o.miniCssF=e=>"css/"+e+"."+{0:"15feb0bd",69:"954a317a",122:"954a317a",165:"954a317a",370:"954a317a",543:"1a5aed88",631:"954a317a",928:"954a317a"}[e]+".css"})(),(()=>{o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="typesense-dashboard:";o.l=(n,i,r,s)=>{if(e[n])e[n].push(i);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(m);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(o))),t)return t(o)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),(()=>{o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{o.p="/typesense-dashboard/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var s=o=>{if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),i(l)}};return r.onerror=r.onload=s,r.href=t,o?o.parentNode.insertBefore(r,o.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var o=document.getElementsByTagName("link"),n=0;nnew Promise(((i,r)=>{var s=o.miniCssF(n),a=o.p+s;if(t(s,a))return i();e(n,a,null,i,r)})),i={143:0};o.f.miniCss=(e,t)=>{var o={0:1,69:1,122:1,165:1,370:1,543:1,631:1,928:1};i[e]?t.push(i[e]):0!==i[e]&&o[e]&&t.push(i[e]=n(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))}}})(),(()=>{var e={143:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((o,n)=>i=e[t]=[o,n]));n.push(i[2]=r);var s=o.p+o.u(t),a=new Error,l=n=>{if(o.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}};o.l(s,l,"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(l)var d=l(o)}for(t&&t(n);co(34658)));n=o.O(n)})();
\ No newline at end of file
diff --git a/js/chunk-common.f32b6eb4.js b/js/chunk-common.53ae1f74.js
similarity index 99%
rename from js/chunk-common.f32b6eb4.js
rename to js/chunk-common.53ae1f74.js
index 53374d0..87d84bf 100644
--- a/js/chunk-common.f32b6eb4.js
+++ b/js/chunk-common.53ae1f74.js
@@ -1 +1 @@
-"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[64],{66531:(e,l,o)=>{o.d(l,{Z:()=>h});var t=o(59835);const a={ref:"editorWrapper",class:"col relative-position overflow-hidden editorWrapper"},n={ref:"editorElement",class:"absolute-top-left"};function d(e,l,o,d,i,s){const r=(0,t.up)("q-resize-observer");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.Wm)(r,{onResize:e.onResize},null,8,["onResize"]),(0,t._)("div",n,null,512)],512)}var i=o(82584),s=o(60499);const r=(0,t.aZ)({name:"MonacoEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:l}){const o=(0,s.iH)(null),a=(0,s.iH)(null);let n;return(0,t.bv)((()=>{n=i.j6.create(o.value,Object.assign({value:e.modelValue,language:"json",theme:"vs-dark",minimap:{enabled:!1}},e.options)),n.onDidChangeModelContent((()=>{l("update:modelValue",null===n||void 0===n?void 0:n.getValue())}))})),(0,t.Ah)((()=>{null===n||void 0===n||n.dispose()})),(0,t.YP)((()=>e.modelValue),(()=>{var l;e.modelValue!==(null===n||void 0===n?void 0:n.getValue())&&(null===(l=null===n||void 0===n?void 0:n.getModel())||void 0===l||l.setValue(e.modelValue),null===n||void 0===n||n.setScrollPosition({scrollTop:0}))})),{editorElement:o,editorWrapper:a,onResize(){null===n||void 0===n||n.layout({height:0,width:0}),window.setTimeout((()=>{null===n||void 0===n||n.layout({height:a.value.offsetHeight,width:a.value.offsetWidth})}))}}}});var u=o(11639),m=o(76849),c=o(69984),p=o.n(c);const f=(0,u.Z)(r,[["render",d],["__scopeId","data-v-46f34a38"]]),h=f;p()(r,"components",{QResizeObserver:m.Z})},46115:(e,l,o)=>{o.d(l,{Z:()=>w});var t=o(59835),a=o(86970);function n(e,l,o,n,d,i){const s=(0,t.up)("q-item-section"),r=(0,t.up)("q-icon"),u=(0,t.up)("q-item"),m=(0,t.up)("q-separator"),c=(0,t.up)("q-item-label"),p=(0,t.up)("q-list"),f=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.j4)(p,{style:{"min-width":"100px"}},{default:(0,t.w5)((()=>[e.$props.showLogout?(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{key:0,clickable:"",onClick:e.logout},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Logout")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_logout"})])),_:1})])),_:1},8,["onClick"])),[[f]]):(0,t.kq)("",!0),e.$props.showLogout?((0,t.wg)(),(0,t.j4)(m,{key:1})):(0,t.kq)("",!0),(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",onClick:l[0]||(l[0]=l=>e.$store.commit("node/clearHistory"))},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Clear history")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_delete"})])),_:1})])),_:1})),[[f]]),(0,t.Wm)(m),0===e.loginHistory.length?((0,t.wg)(),(0,t.j4)(c,{key:2,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("No History")])),_:1})):(0,t.kq)("",!0),e.loginHistory.length>0?((0,t.wg)(),(0,t.j4)(c,{key:3,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("Server History")])),_:1})):(0,t.kq)("",!0),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.loginHistory,((l,o)=>(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",key:o,onClick:o=>e.loginWithHistory(l)},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(l.node.protocol)+"://"+(0,a.zw)(l.node.host)+":"+(0,a.zw)(l.node.port),1)])),_:2},1024)])),_:2},1032,["onClick"])),[[f]]))),128))])),_:1})}const d=(0,t.aZ)({name:"ServerHistory",props:{showLogout:{default:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{logout(){this.$store.dispatch("node/logout")},loginWithHistory(e){const l=this.$props.showLogout;this.$store.dispatch("node/login",Object.assign(Object.assign({},e),{forceHomeRedirect:l}))}}});var i=o(11639),s=o(13246),r=o(490),u=o(76749),m=o(22857),c=o(50926),p=o(33115),f=o(31281),h=o(69984),g=o.n(h);const b=(0,i.Z)(d,[["render",n]]),w=b;g()(d,"components",{QList:s.Z,QItem:r.Z,QItemSection:u.Z,QIcon:m.Z,QSeparator:c.Z,QItemLabel:p.Z}),g()(d,"directives",{ClosePopup:f.Z})},75794:(e,l,o)=>{o.d(l,{Z:()=>Z});var t=o(59835),a=o(86970);const n={class:"row q-gutter-md"},d=(0,t._)("div",{class:"text-subtitle1 q-pt-md"},"Fields",-1);function i(e,l,o,i,s,r){const u=(0,t.up)("q-tab"),m=(0,t.up)("q-tabs"),c=(0,t.up)("q-separator"),p=(0,t.up)("q-input"),f=(0,t.up)("q-select"),h=(0,t.up)("q-card-section"),g=(0,t.up)("q-checkbox"),b=(0,t.up)("q-btn"),w=(0,t.up)("q-card-actions"),y=(0,t.up)("q-card"),V=(0,t.up)("q-tab-panel"),_=(0,t.up)("monaco-editor"),v=(0,t.up)("q-banner"),k=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.j4)(y,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:e.tab,"onUpdate:modelValue":l[0]||(l[0]=l=>e.tab=l),dense:"",class:"text-grey","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{name:"form",label:"Form Mode"}),(0,t.Wm)(u,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,t.Wm)(c),(0,t.Wm)(k,{modelValue:e.tab,"onUpdate:modelValue":l[4]||(l[4]=l=>e.tab=l),animated:"",style:(0,a.j5)(e.createMode?"height: 60vh":""),class:"bg-surface"},{default:(0,t.w5)((()=>[(0,t.Wm)(V,{name:"form"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,null,{default:(0,t.w5)((()=>[(0,t._)("div",n,[(0,t.Wm)(p,{class:"col",filled:"",dense:"",modelValue:e.schema.name,"onUpdate:modelValue":l[1]||(l[1]=l=>e.schema.name=l),label:"Collection Name",placeholder:"books",disable:!e.createMode,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","disable","rules"]),(0,t.Wm)(f,{filled:"",class:"col",dense:"",modelValue:e.schema.default_sorting_field,"onUpdate:modelValue":l[2]||(l[2]=l=>e.schema.default_sorting_field=l),options:e.availableSortFields,label:"Default sort field optional, but must be int32 or float"},null,8,["modelValue","options"])]),d,((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.schema.fields,((l,o)=>((0,t.wg)(),(0,t.j4)(y,{flat:"",bordered:"",key:o,class:"q-mb-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{class:"row q-col-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{class:"col-12 col-sm-6",dense:"",outlined:"",modelValue:l.name,"onUpdate:modelValue":e=>l.name=e,label:"Field Name",placeholder:"title",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","rules"]),(0,t.Wm)(f,{class:"col-12 col-sm-4",dense:"",outlined:"",modelValue:l.type,"onUpdate:modelValue":e=>l.type=e,label:"type",options:e.types,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","options","rules"]),"float[]"===l.type?((0,t.wg)(),(0,t.j4)(p,{key:0,class:"col-12 col-sm-2",dense:"",outlined:"",type:"number",modelValue:l.num_dim,"onUpdate:modelValue":e=>l.num_dim=e,modelModifiers:{number:!0},label:"num_dim",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0),l.type.startsWith("string")?((0,t.wg)(),(0,t.j4)(p,{key:1,class:"col-12 col-sm-2",dense:"",outlined:"",modelValue:l.locale,"onUpdate:modelValue":e=>l.locale=e,label:"locale",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0)])),_:2},1024),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between"},{default:(0,t.w5)((()=>[(0,t._)("div",null,[(0,t.Wm)(g,{modelValue:l.optional,"onUpdate:modelValue":e=>l.optional=e,label:"optional"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.facet,"onUpdate:modelValue":e=>l.facet=e,label:"facet"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.index,"onUpdate:modelValue":e=>l.index=e,label:"index"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.sort,"onUpdate:modelValue":e=>l.sort=e,label:"sort"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.infix,"onUpdate:modelValue":e=>l.infix=e,label:"infix"},null,8,["modelValue","onUpdate:modelValue"])]),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",onClick:o=>e.removeField(l)},{default:(0,t.w5)((()=>[(0,t.Uk)("Remove Field")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),(0,t.Wm)(V,{name:"json",class:"q-pa-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{modelValue:e.schemaJson,"onUpdate:modelValue":l[3]||(l[3]=l=>e.schemaJson=l),style:{height:"60vh"}},null,8,["modelValue"]),e.jsonError?((0,t.wg)(),(0,t.j4)(v,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,t.w5)((()=>[(0,t.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,t.kq)("",!0)])),_:1})])),_:1},8,["modelValue","style"]),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.addField())},{default:(0,t.w5)((()=>[(0,t.Uk)("Add field")])),_:1}),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[6]||(l[6]=l=>e.$emit("submit",e.schema))},{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(e.primaryActionLabel),1)])),_:1})])),_:1})])),_:1})}var s=o(66531);const r=(0,t.aZ)({components:{MonacoEditor:s.Z},name:"CollectionUi",emits:["submit"],props:{initialSchema:{type:Object,default:()=>({name:"",fields:[{name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0}],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1})},primaryActionLabel:{type:String,required:!0},createMode:{type:Boolean,default:!1}},data(){return{tab:"form",schema:{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1},types:["string","string[]","int32","int32[]","int64","int64[]","float","float[]","bool","bool[]","geopoint","geopoint[]","object","object[]","string*","auto"],jsonError:null}},computed:{availableSortFields(){const e=(this.schema.fields||[]).filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort));return[""].concat(e.map((e=>e.name)))},schemaJson:{get(){return JSON.stringify(this.schema,null,2)},set(e){try{this.schema=JSON.parse(e),this.jsonError=null}catch(l){this.jsonError=l.message}}}},watch:{initialSchema:{immediate:!0,handler(e){this.schema=JSON.parse(JSON.stringify(e))}}},methods:{addField(){this.schema.fields&&this.schema.fields.push({name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0})},removeField(e){if(this.schema.fields){const l=this.schema.fields.indexOf(e);l>-1&&this.schema.fields.splice(l,1)}}}});var u=o(11639),m=o(44458),c=o(47817),p=o(70900),f=o(50926),h=o(89800),g=o(84106),b=o(63190),w=o(66611),y=o(67887),V=o(11821),_=o(11221),v=o(24455),k=o(47128),W=o(69984),q=o.n(W);const U=(0,u.Z)(r,[["render",i]]),Z=U;q()(r,"components",{QCard:m.Z,QTabs:c.Z,QTab:p.Z,QSeparator:f.Z,QTabPanels:h.Z,QTabPanel:g.Z,QCardSection:b.Z,QInput:w.Z,QSelect:y.Z,QCardActions:V.Z,QCheckbox:_.Z,QBtn:v.Z,QBanner:k.Z})}}]);
\ No newline at end of file
+"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[64],{66531:(e,l,o)=>{o.d(l,{Z:()=>h});var t=o(59835);const a={ref:"editorWrapper",class:"col relative-position overflow-hidden editorWrapper"},n={ref:"editorElement",class:"absolute-top-left"};function d(e,l,o,d,i,s){const r=(0,t.up)("q-resize-observer");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.Wm)(r,{onResize:e.onResize},null,8,["onResize"]),(0,t._)("div",n,null,512)],512)}var i=o(82584),s=o(60499);const r=(0,t.aZ)({name:"MonacoEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:l}){const o=(0,s.iH)(null),a=(0,s.iH)(null);let n;return(0,t.bv)((()=>{n=i.j6.create(o.value,Object.assign({value:e.modelValue,language:"json",theme:"vs-dark",minimap:{enabled:!1}},e.options)),n.onDidChangeModelContent((()=>{l("update:modelValue",null===n||void 0===n?void 0:n.getValue())}))})),(0,t.Ah)((()=>{null===n||void 0===n||n.dispose()})),(0,t.YP)((()=>e.modelValue),(()=>{var l;e.modelValue!==(null===n||void 0===n?void 0:n.getValue())&&(null===(l=null===n||void 0===n?void 0:n.getModel())||void 0===l||l.setValue(e.modelValue),null===n||void 0===n||n.setScrollPosition({scrollTop:0}))})),{editorElement:o,editorWrapper:a,onResize(){null===n||void 0===n||n.layout({height:0,width:0}),window.setTimeout((()=>{null===n||void 0===n||n.layout({height:a.value.offsetHeight,width:a.value.offsetWidth})}))}}}});var u=o(11639),m=o(76849),c=o(69984),p=o.n(c);const f=(0,u.Z)(r,[["render",d],["__scopeId","data-v-46f34a38"]]),h=f;p()(r,"components",{QResizeObserver:m.Z})},46115:(e,l,o)=>{o.d(l,{Z:()=>w});var t=o(59835),a=o(86970);function n(e,l,o,n,d,i){const s=(0,t.up)("q-item-section"),r=(0,t.up)("q-icon"),u=(0,t.up)("q-item"),m=(0,t.up)("q-separator"),c=(0,t.up)("q-item-label"),p=(0,t.up)("q-list"),f=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.j4)(p,{style:{"min-width":"100px"}},{default:(0,t.w5)((()=>[e.$props.showLogout?(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{key:0,clickable:"",onClick:e.logout},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Logout")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_logout"})])),_:1})])),_:1},8,["onClick"])),[[f]]):(0,t.kq)("",!0),e.$props.showLogout?((0,t.wg)(),(0,t.j4)(m,{key:1})):(0,t.kq)("",!0),(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",onClick:l[0]||(l[0]=l=>e.$store.commit("node/clearHistory"))},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Clear history")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_delete"})])),_:1})])),_:1})),[[f]]),(0,t.Wm)(m),0===e.loginHistory.length?((0,t.wg)(),(0,t.j4)(c,{key:2,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("No History")])),_:1})):(0,t.kq)("",!0),e.loginHistory.length>0?((0,t.wg)(),(0,t.j4)(c,{key:3,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("Server History")])),_:1})):(0,t.kq)("",!0),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.loginHistory,((l,o)=>(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",key:o,onClick:o=>e.loginWithHistory(l)},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(l.node.protocol)+"://"+(0,a.zw)(l.node.host)+":"+(0,a.zw)(l.node.port),1)])),_:2},1024)])),_:2},1032,["onClick"])),[[f]]))),128))])),_:1})}const d=(0,t.aZ)({name:"ServerHistory",props:{showLogout:{default:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{logout(){this.$store.dispatch("node/logout")},loginWithHistory(e){const l=this.$props.showLogout;this.$store.dispatch("node/login",Object.assign(Object.assign({},e),{forceHomeRedirect:l}))}}});var i=o(11639),s=o(13246),r=o(490),u=o(76749),m=o(22857),c=o(50926),p=o(33115),f=o(31281),h=o(69984),g=o.n(h);const b=(0,i.Z)(d,[["render",n]]),w=b;g()(d,"components",{QList:s.Z,QItem:r.Z,QItemSection:u.Z,QIcon:m.Z,QSeparator:c.Z,QItemLabel:p.Z}),g()(d,"directives",{ClosePopup:f.Z})},75794:(e,l,o)=>{o.d(l,{Z:()=>Z});var t=o(59835),a=o(86970);const n={class:"row q-gutter-md"},d=(0,t._)("div",{class:"text-subtitle1 q-pt-md"},"Fields",-1);function i(e,l,o,i,s,r){const u=(0,t.up)("q-tab"),m=(0,t.up)("q-tabs"),c=(0,t.up)("q-separator"),p=(0,t.up)("q-input"),f=(0,t.up)("q-select"),h=(0,t.up)("q-card-section"),g=(0,t.up)("q-checkbox"),b=(0,t.up)("q-btn"),w=(0,t.up)("q-card-actions"),y=(0,t.up)("q-card"),V=(0,t.up)("q-tab-panel"),_=(0,t.up)("monaco-editor"),v=(0,t.up)("q-banner"),k=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.j4)(y,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:e.tab,"onUpdate:modelValue":l[0]||(l[0]=l=>e.tab=l),dense:"",class:"text-grey","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{name:"form",label:"Form Mode"}),(0,t.Wm)(u,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,t.Wm)(c),(0,t.Wm)(k,{modelValue:e.tab,"onUpdate:modelValue":l[4]||(l[4]=l=>e.tab=l),animated:"",style:(0,a.j5)(e.createMode?"height: 60vh":""),class:"bg-surface"},{default:(0,t.w5)((()=>[(0,t.Wm)(V,{name:"form"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,null,{default:(0,t.w5)((()=>[(0,t._)("div",n,[(0,t.Wm)(p,{class:"col",filled:"",dense:"",modelValue:e.schema.name,"onUpdate:modelValue":l[1]||(l[1]=l=>e.schema.name=l),label:"Collection Name",placeholder:"books",disable:!e.createMode,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","disable","rules"]),(0,t.Wm)(f,{filled:"",class:"col",dense:"",modelValue:e.schema.default_sorting_field,"onUpdate:modelValue":l[2]||(l[2]=l=>e.schema.default_sorting_field=l),options:e.availableSortFields,label:"Default sort field optional, but must be int32 or float"},null,8,["modelValue","options"])]),d,((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.schema.fields,((l,o)=>((0,t.wg)(),(0,t.j4)(y,{flat:"",bordered:"",key:o,class:"q-mb-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{class:"row q-col-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{class:"col-12 col-sm-6",dense:"",outlined:"",modelValue:l.name,"onUpdate:modelValue":e=>l.name=e,label:"Field Name",placeholder:"title",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","rules"]),(0,t.Wm)(f,{class:"col-12 col-sm-4",dense:"",outlined:"",modelValue:l.type,"onUpdate:modelValue":e=>l.type=e,label:"type",options:e.types,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","options","rules"]),"float[]"===l.type?((0,t.wg)(),(0,t.j4)(p,{key:0,class:"col-12 col-sm-2",dense:"",outlined:"",type:"number",modelValue:l.num_dim,"onUpdate:modelValue":e=>l.num_dim=e,modelModifiers:{number:!0},label:"num_dim",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0),l.type.startsWith("string")?((0,t.wg)(),(0,t.j4)(p,{key:1,class:"col-12 col-sm-2",dense:"",outlined:"",modelValue:l.locale,"onUpdate:modelValue":e=>l.locale=e,label:"locale",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0)])),_:2},1024),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between"},{default:(0,t.w5)((()=>[(0,t._)("div",null,[(0,t.Wm)(g,{modelValue:l.optional,"onUpdate:modelValue":e=>l.optional=e,label:"optional"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.facet,"onUpdate:modelValue":e=>l.facet=e,label:"facet"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.index,"onUpdate:modelValue":e=>l.index=e,label:"index"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.sort,"onUpdate:modelValue":e=>l.sort=e,label:"sort"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.infix,"onUpdate:modelValue":e=>l.infix=e,label:"infix"},null,8,["modelValue","onUpdate:modelValue"])]),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",onClick:o=>e.removeField(l)},{default:(0,t.w5)((()=>[(0,t.Uk)("Remove Field")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),(0,t.Wm)(V,{name:"json",class:"q-pa-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{modelValue:e.schemaJson,"onUpdate:modelValue":l[3]||(l[3]=l=>e.schemaJson=l),style:{height:"60vh"}},null,8,["modelValue"]),e.jsonError?((0,t.wg)(),(0,t.j4)(v,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,t.w5)((()=>[(0,t.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,t.kq)("",!0)])),_:1})])),_:1},8,["modelValue","style"]),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.addField())},{default:(0,t.w5)((()=>[(0,t.Uk)("Add field")])),_:1}),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[6]||(l[6]=l=>e.$emit("submit",e.schema))},{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(e.primaryActionLabel),1)])),_:1})])),_:1})])),_:1})}var s=o(66531);const r=(0,t.aZ)({components:{MonacoEditor:s.Z},name:"CollectionUi",emits:["submit"],props:{initialSchema:{type:Object,default:()=>({name:"",fields:[{name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0}],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1})},primaryActionLabel:{type:String,required:!0},createMode:{type:Boolean,default:!1}},data(){return{tab:"form",schema:{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1},types:["string","string[]","int32","int32[]","int64","int64[]","float","float[]","bool","bool[]","geopoint","geopoint[]","object","object[]","string*","auto"],jsonError:null}},computed:{availableSortFields(){const e=(this.schema.fields||[]).filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort));return[""].concat(e.map((e=>e.name)))},schemaJson:{get(){return JSON.stringify(this.schema,null,2)},set(e){try{this.schema=JSON.parse(e),this.jsonError=null}catch(l){this.jsonError=l.message}}}},watch:{initialSchema:{immediate:!0,handler(e){this.schema=JSON.parse(JSON.stringify(e))}}},methods:{addField(){this.schema.fields&&this.schema.fields.push({name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0})},removeField(e){if(this.schema.fields){const l=this.schema.fields.indexOf(e);l>-1&&this.schema.fields.splice(l,1)}}}});var u=o(11639),m=o(44458),c=o(47817),p=o(70900),f=o(50926),h=o(89800),g=o(84106),b=o(63190),w=o(66611),y=o(26384),V=o(11821),_=o(11221),v=o(24455),k=o(47128),W=o(69984),q=o.n(W);const U=(0,u.Z)(r,[["render",i]]),Z=U;q()(r,"components",{QCard:m.Z,QTabs:c.Z,QTab:p.Z,QSeparator:f.Z,QTabPanels:h.Z,QTabPanel:g.Z,QCardSection:b.Z,QInput:w.Z,QSelect:y.Z,QCardActions:V.Z,QCheckbox:_.Z,QBtn:v.Z,QBanner:k.Z})}}]);
\ No newline at end of file
diff --git a/js/vendor.4b29c16e.js b/js/vendor.73592fd9.js
similarity index 73%
rename from js/vendor.4b29c16e.js
rename to js/vendor.73592fd9.js
index 1c632c1..38fea5d 100644
--- a/js/vendor.4b29c16e.js
+++ b/js/vendor.73592fd9.js
@@ -1,26 +1,26 @@
-(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[736],{36939:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"===typeof e}function n(e){return"number"===typeof e}function o(e){return"object"===typeof e&&null!==e}function s(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,n,r,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var d=new Error('Uncaught, unspecified "error" event. ('+t+")");throw d.context=t,d}if(n=this._events[e],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var n,s,r,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],r=n.length,s=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=r;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){s=a;break}if(s<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},69984:e=>{e.exports=function(e,t,i){const n=void 0!==e.__vccOpts?e.__vccOpts:e,o=n[t];if(void 0===o)n[t]=i;else for(const s in i)void 0===o[s]&&(o[s]=i[s])}},60499:(e,t,i)=>{"use strict";i.d(t,{B:()=>a,Bj:()=>r,Fl:()=>Ne,IU:()=>Se,Jd:()=>_,PG:()=>be,SU:()=>Me,Um:()=>me,WL:()=>Be,X$:()=>T,X3:()=>Ce,XI:()=>Ae,Xl:()=>xe,dq:()=>Ie,iH:()=>Re,j:()=>D,lk:()=>b,nZ:()=>c,qj:()=>fe,qq:()=>d,yT:()=>we});var n=i(86970);
+(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[736],{36939:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"===typeof e}function n(e){return"number"===typeof e}function o(e){return"object"===typeof e&&null!==e}function r(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,n,s,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var d=new Error('Uncaught, unspecified "error" event. ('+t+")");throw d.context=t,d}if(n=this._events[e],r(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),s=c.length,l=0;l0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var n,r,s,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},69984:e=>{e.exports=function(e,t,i){const n=void 0!==e.__vccOpts?e.__vccOpts:e,o=n[t];if(void 0===o)n[t]=i;else for(const r in i)void 0===o[r]&&(o[r]=i[r])}},60499:(e,t,i)=>{"use strict";i.d(t,{B:()=>a,Bj:()=>s,Fl:()=>Ne,IU:()=>Se,Jd:()=>_,PG:()=>be,SU:()=>Me,Um:()=>me,WL:()=>Be,X$:()=>T,X3:()=>Ce,XI:()=>Ae,Xl:()=>xe,dq:()=>Ie,iH:()=>Re,j:()=>D,lk:()=>b,nZ:()=>c,qj:()=>fe,qq:()=>d,yT:()=>we});var n=i(86970);
/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let o,s;class r{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),b()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=f,t=s;try{return f=!0,s=this,this._runnings++,h(this),this.fn()}finally{g(this),this._runnings--,s=t,f=e}}stop(){var e;this.active&&(h(this),g(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function u(e){return e.value}function h(e){e._trackId++,e._depsLength=0}function g(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const i=new Map;return i.cleanup=e,i.computed=t,i},L=new WeakMap,E=Symbol(""),N=Symbol("");function D(e,t,i){if(f&&s){let t=L.get(e);t||L.set(e,t=new Map);let n=t.get(i);n||t.set(i,n=k((()=>t.delete(i)))),C(s,n,void 0)}}function T(e,t,i,o,s,r){const a=L.get(e);if(!a)return;let l=[];if("clear"===t)l=[...a.values()];else if("length"===i&&(0,n.kJ)(e)){const e=Number(o);a.forEach(((t,i)=>{("length"===i||!(0,n.yk)(i)&&i>=e)&&l.push(t)}))}else switch(void 0!==i&&l.push(a.get(i)),t){case"add":(0,n.kJ)(e)?(0,n.S0)(i)&&l.push(a.get("length")):(l.push(a.get(E)),(0,n._N)(e)&&l.push(a.get(N)));break;case"delete":(0,n.kJ)(e)||(l.push(a.get(E)),(0,n._N)(e)&&l.push(a.get(N)));break;case"set":(0,n._N)(e)&&l.push(a.get(E));break}y();for(const n of l)n&&x(n,4,void 0);w()}const I=(0,n.fY)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(n.yk)),A=O();function O(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const i=Se(this);for(let t=0,o=this.length;t{e[t]=function(...e){_(),y();const i=Se(this)[t].apply(this,e);return w(),b(),i}})),e}function P(e){const t=Se(this);return D(t,"has",e),t.hasOwnProperty(e)}class M{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){const o=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(o?s?he:ue:s?de:ce).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const r=(0,n.kJ)(e);if(!o){if(r&&(0,n.RI)(A,t))return Reflect.get(A,t,i);if("hasOwnProperty"===t)return P}const a=Reflect.get(e,t,i);return((0,n.yk)(t)?R.has(t):I(t))?a:(o||D(e,"get",t),s?a:Ie(a)?r&&(0,n.S0)(t)?a:a.value:(0,n.Kn)(a)?o?ve(a):fe(a):a)}}class F extends M{constructor(e=!1){super(!1,e)}set(e,t,i,o){let s=e[t];if(!this._isShallow){const t=ye(s);if(we(i)||ye(i)||(s=Se(s),i=Se(i)),!(0,n.kJ)(e)&&Ie(s)&&!Ie(i))return!t&&(s.value=i,!0)}const r=(0,n.kJ)(e)&&(0,n.S0)(t)?Number(t)e,z=e=>Reflect.getPrototypeOf(e);function U(e,t,i=!1,o=!1){e=e["__v_raw"];const s=Se(e),r=Se(t);i||((0,n.aU)(t,r)&&D(s,"get",t),D(s,"get",r));const{has:a}=z(s),l=o?j:i?Le:ke;return a.call(s,t)?l(e.get(t)):a.call(s,r)?l(e.get(r)):void(e!==s&&e.get(t))}function $(e,t=!1){const i=this["__v_raw"],o=Se(i),s=Se(e);return t||((0,n.aU)(e,s)&&D(o,"has",e),D(o,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function q(e,t=!1){return e=e["__v_raw"],!t&&D(Se(e),"iterate",E),Reflect.get(e,"size",e)}function K(e){e=Se(e);const t=Se(this),i=z(t),n=i.has.call(t,e);return n||(t.add(e),T(t,"add",e,e)),this}function G(e,t){t=Se(t);const i=Se(this),{has:o,get:s}=z(i);let r=o.call(i,e);r||(e=Se(e),r=o.call(i,e));const a=s.call(i,e);return i.set(e,t),r?(0,n.aU)(t,a)&&T(i,"set",e,t,a):T(i,"add",e,t),this}function Z(e){const t=Se(this),{has:i,get:n}=z(t);let o=i.call(t,e);o||(e=Se(e),o=i.call(t,e));const s=n?n.call(t,e):void 0,r=t.delete(e);return o&&T(t,"delete",e,void 0,s),r}function Q(){const e=Se(this),t=0!==e.size,i=void 0,n=e.clear();return t&&T(e,"clear",void 0,void 0,i),n}function Y(e,t){return function(i,n){const o=this,s=o["__v_raw"],r=Se(s),a=t?j:e?Le:ke;return!e&&D(r,"iterate",E),s.forEach(((e,t)=>i.call(n,a(e),a(t),o)))}}function J(e,t,i){return function(...o){const s=this["__v_raw"],r=Se(s),a=(0,n._N)(r),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,d=s[e](...o),u=i?j:t?Le:ke;return!t&&D(r,"iterate",c?N:E),{next(){const{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ee(){const e={get(e){return U(this,e)},get size(){return q(this)},has:$,add:K,set:G,delete:Z,clear:Q,forEach:Y(!1,!1)},t={get(e){return U(this,e,!1,!0)},get size(){return q(this)},has:$,add:K,set:G,delete:Z,clear:Q,forEach:Y(!1,!0)},i={get(e){return U(this,e,!0)},get size(){return q(this,!0)},has(e){return $.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:Y(!0,!1)},n={get(e){return U(this,e,!0,!0)},get size(){return q(this,!0)},has(e){return $.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:Y(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=J(o,!1,!1),i[o]=J(o,!0,!1),t[o]=J(o,!1,!0),n[o]=J(o,!0,!0)})),[e,i,t,n]}const[te,ie,ne,oe]=ee();function se(e,t){const i=t?e?oe:ne:e?ie:te;return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,n.RI)(i,o)&&o in t?i:t,o,s)}const re={get:se(!1,!1)},ae={get:se(!1,!0)},le={get:se(!0,!1)};const ce=new WeakMap,de=new WeakMap,ue=new WeakMap,he=new WeakMap;function ge(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ge((0,n.W7)(e))}function fe(e){return ye(e)?e:_e(e,!1,H,re,ce)}function me(e){return _e(e,!1,V,ae,de)}function ve(e){return _e(e,!0,W,le,ue)}function _e(e,t,i,o,s){if(!(0,n.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const r=s.get(e);if(r)return r;const a=pe(e);if(0===a)return e;const l=new Proxy(e,2===a?o:i);return s.set(e,l),l}function be(e){return ye(e)?be(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ye(e){return!(!e||!e["__v_isReadonly"])}function we(e){return!(!e||!e["__v_isShallow"])}function Ce(e){return be(e)||ye(e)}function Se(e){const t=e&&e["__v_raw"];return t?Se(t):e}function xe(e){return Object.isExtensible(e)&&(0,n.Nj)(e,"__v_skip",!0),e}const ke=e=>(0,n.Kn)(e)?fe(e):e,Le=e=>(0,n.Kn)(e)?ve(e):e;class Ee{constructor(e,t,i,n){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this.effect=new d((()=>e(this._value)),(()=>Te(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!n,this["__v_isReadonly"]=i}get value(){const e=Se(this);return e._cacheable&&!e.effect.dirty||!(0,n.aU)(e._value,e._value=e.effect.run())||Te(e,4),De(e),e.effect._dirtyLevel>=2&&Te(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ne(e,t,i=!1){let o,s;const r=(0,n.mf)(e);r?(o=e,s=n.dG):(o=e.get,s=e.set);const a=new Ee(o,s,r||!s,i);return a}function De(e){var t;f&&s&&(e=Se(e),C(s,null!=(t=e.dep)?t:e.dep=k((()=>e.dep=void 0),e instanceof Ee?e:void 0),void 0))}function Te(e,t=4,i){e=Se(e);const n=e.dep;n&&x(n,t,void 0)}function Ie(e){return!(!e||!0!==e.__v_isRef)}function Re(e){return Oe(e,!1)}function Ae(e){return Oe(e,!0)}function Oe(e,t){return Ie(e)?e:new Pe(e,t)}class Pe{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Se(e),this._value=t?e:ke(e)}get value(){return De(this),this._value}set value(e){const t=this.__v_isShallow||we(e)||ye(e);e=t?e:Se(e),(0,n.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ke(e),Te(this,4,e))}}function Me(e){return Ie(e)?e.value:e}const Fe={get:(e,t,i)=>Me(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const o=e[t];return Ie(o)&&!Ie(i)?(o.value=i,!0):Reflect.set(e,t,i,n)}};function Be(e){return be(e)?e:new Proxy(e,Fe)}},59835:(e,t,i)=>{"use strict";i.d(t,{$d:()=>r,Ah:()=>He,F4:()=>xi,FN:()=>Bi,Fl:()=>nn,HY:()=>ni,JJ:()=>_t,Jd:()=>Be,Ko:()=>Ue,Nv:()=>$e,Ob:()=>xe,P$:()=>ge,Q2:()=>q,Q6:()=>be,U2:()=>fe,Uk:()=>Li,Us:()=>Ht,WI:()=>qe,Wm:()=>Ci,Xn:()=>Me,Y3:()=>_,Y8:()=>ce,YP:()=>ee,_:()=>wi,aZ:()=>ye,bv:()=>Pe,dG:()=>Ri,dl:()=>Le,f3:()=>bt,h:()=>on,i8:()=>sn,iD:()=>pi,ic:()=>Fe,j4:()=>fi,kq:()=>Ni,lR:()=>ti,nJ:()=>ue,nK:()=>_e,se:()=>Ee,uE:()=>Ei,up:()=>U,w5:()=>P,wF:()=>Oe,wg:()=>ci,wy:()=>se});var n=i(60499),o=i(86970);function s(e,t,i,n){try{return n?e(...n):e()}catch(o){a(o,t,i)}}function r(e,t,i,n){if((0,o.mf)(e)){const r=s(e,t,i,n);return r&&(0,o.tI)(r)&&r.catch((e=>{a(e,t,i)})),r}const l=[];for(let o=0;o>>1,o=u[n],s=L(o);sh&&u.splice(t,1)}function S(e){(0,o.kJ)(e)?g.push(...e):p&&p.includes(e,e.allowRecurse?f+1:f)||g.push(e),w()}function x(e,t,i=(c?h+1:0)){for(0;iL(e)-L(t)));if(g.length=0,p)return void p.push(...e);for(p=e,f=0;fnull==e.id?1/0:e.id,E=(e,t)=>{const i=L(e)-L(t);if(0===i){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function N(e){d=!1,c=!0,u.sort(E);o.dG;try{for(h=0;h(0,o.HD)(e)?e.trim():e))),t&&(s=i.map(o.h5))}let c;let d=n[c=(0,o.hR)(t)]||n[c=(0,o.hR)((0,o._A)(t))];!d&&a&&(d=n[c=(0,o.hR)((0,o.rs)(t))]),d&&r(d,e,6,s);const u=n[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,r(u,e,6,s)}}function T(e,t,i=!1){const n=t.emitsCache,s=n.get(e);if(void 0!==s)return s;const r=e.emits;let a={},l=!1;if(!(0,o.mf)(e)){const n=e=>{const i=T(e,t,!0);i&&(l=!0,(0,o.l7)(a,i))};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return r||l?((0,o.kJ)(r)?r.forEach((e=>a[e]=null)):(0,o.l7)(a,r),(0,o.Kn)(e)&&n.set(e,a),a):((0,o.Kn)(e)&&n.set(e,null),null)}function I(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let R=null,A=null;function O(e){const t=R;return R=e,A=e&&e.type.__scopeId||null,t}function P(e,t=R,i){if(!t)return e;if(e._n)return e;const n=(...i)=>{n._d&&hi(-1);const o=O(t);let s;try{s=e(...i)}finally{O(o),n._d&&hi(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function M(e){const{type:t,vnode:i,proxy:n,withProxy:s,props:r,propsOptions:[l],slots:c,attrs:d,emit:u,render:h,renderCache:g,data:p,setupState:f,ctx:m,inheritAttrs:v}=e;let _,b;const y=O(e);try{if(4&i.shapeFlag){const e=s||n,t=e;_=Di(h.call(t,e,g,r,f,p,m)),b=d}else{const e=t;0,_=Di(e.length>1?e(r,{attrs:d,slots:c,emit:u}):e(r,null)),b=t.props?d:F(d)}}catch(C){ai.length=0,a(C,e,1),_=Ci(si)}let w=_;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(o.tR)&&(b=B(b,l)),w=ki(w,b))}return i.dirs&&(w=ki(w),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),_=w,O(y),_}const F=e=>{let t;for(const i in e)("class"===i||"style"===i||(0,o.F7)(i))&&((t||(t={}))[i]=e[i]);return t},B=(e,t)=>{const i={};for(const n in e)(0,o.tR)(n)&&n.slice(9)in t||(i[n]=e[n]);return i};function H(e,t,i){const{props:n,children:o,component:s}=e,{props:r,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&l>=0))return!(!o&&!a||a&&a.$stable)||n!==r&&(n?!r||W(n,r,c):!!r);if(1024&l)return!0;if(16&l)return n?W(n,r,c):!!r;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function Q(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):S(e)}const Y=Symbol.for("v-scx"),J=()=>{{const e=bt(Y);return e}};const X={};function ee(e,t,i){return te(e,t,i)}function te(e,t,{immediate:i,deep:a,flush:l,once:c,onTrack:d,onTrigger:u}=o.kT){if(t&&c){const e=t;t=(...t)=>{e(...t),L()}}const h=Fi,g=e=>!0===a?e:oe(e,!1===a?1:void 0);let p,f,m=!1,v=!1;if((0,n.dq)(e)?(p=()=>e.value,m=(0,n.yT)(e)):(0,n.PG)(e)?(p=()=>g(e),m=!0):(0,o.kJ)(e)?(v=!0,m=e.some((e=>(0,n.PG)(e)||(0,n.yT)(e))),p=()=>e.map((e=>(0,n.dq)(e)?e.value:(0,n.PG)(e)?g(e):(0,o.mf)(e)?s(e,h,2):void 0))):p=(0,o.mf)(e)?t?()=>s(e,h,2):()=>(f&&f(),r(e,h,3,[b])):o.dG,t&&a){const e=p;p=()=>oe(e())}let _,b=e=>{f=x.onStop=()=>{s(e,h,4),f=x.onStop=void 0}};if(qi){if(b=o.dG,t?i&&r(t,h,3,[p(),v?[]:void 0,b]):p(),"sync"!==l)return o.dG;{const e=J();_=e.__watcherHandles||(e.__watcherHandles=[])}}let w=v?new Array(e.length).fill(X):X;const C=()=>{if(x.active&&x.dirty)if(t){const e=x.run();(a||m||(v?e.some(((e,t)=>(0,o.aU)(e,w[t]))):(0,o.aU)(e,w)))&&(f&&f(),r(t,h,3,[e,w===X?void 0:v&&w[0]===X?[]:w,b]),w=e)}else x.run()};let S;C.allowRecurse=!!t,"sync"===l?S=C:"post"===l?S=()=>Bt(C,h&&h.suspense):(C.pre=!0,h&&(C.id=h.uid),S=()=>y(C));const x=new n.qq(p,o.dG,S),k=(0,n.nZ)(),L=()=>{x.stop(),k&&(0,o.Od)(k.effects,x)};return t?i?C():w=x.run():"post"===l?Bt(x.run.bind(x),h&&h.suspense):x.run(),_&&_.push(L),L}function ie(e,t,i){const n=this.proxy,s=(0,o.HD)(e)?e.includes(".")?ne(n,e):()=>n[e]:e.bind(n,n);let r;(0,o.mf)(t)?r=t:(r=t.handler,i=t);const a=Vi(this),l=te(s,r.bind(n),i);return a(),l}function ne(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e0){if(i>=t)return e;i++}if(s=s||new Set,s.has(e))return e;if(s.add(e),(0,n.dq)(e))oe(e.value,t,i,s);else if((0,o.kJ)(e))for(let n=0;n{oe(e,t,i,s)}));else if((0,o.PO)(e))for(const n in e)oe(e[n],t,i,s);return e}function se(e,t){if(null===R)return e;const i=Xi(R)||R.proxy,n=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0})),Be((()=>{e.isUnmounting=!0})),e}const de=[Function,Array],ue={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:de,onEnter:de,onAfterEnter:de,onEnterCancelled:de,onBeforeLeave:de,onLeave:de,onAfterLeave:de,onLeaveCancelled:de,onBeforeAppear:de,onAppear:de,onAfterAppear:de,onAppearCancelled:de},he={name:"BaseTransition",props:ue,setup(e,{slots:t}){const i=Bi(),o=ce();return()=>{const s=t.default&&be(t.default(),!0);if(!s||!s.length)return;let r=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==si){0,r=t,e=!0;break}}const a=(0,n.IU)(e),{mode:l}=a;if(o.isLeaving)return me(r);const c=ve(r);if(!c)return me(r);const d=fe(c,a,o,i);_e(c,d);const u=i.subTree,h=u&&ve(u);if(h&&h.type!==si&&!vi(c,h)){const e=fe(h,a,o,i);if(_e(h,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==i.update.active&&(i.effect.dirty=!0,i.update())},me(r);"in-out"===l&&c.type!==si&&(e.delayLeave=(e,t,i)=>{const n=pe(o,h);n[String(h.key)]=h,e[ae]=()=>{t(),e[ae]=void 0,delete d.delayedLeave},d.delayedLeave=i})}return r}}},ge=he;function pe(e,t){const{leavingVNodes:i}=e;let n=i.get(t.type);return n||(n=Object.create(null),i.set(t.type,n)),n}function fe(e,t,i,n){const{appear:s,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:g,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:v,onAppear:_,onAfterAppear:b,onAppearCancelled:y}=t,w=String(e.key),C=pe(i,e),S=(e,t)=>{e&&r(e,n,9,t)},x=(e,t)=>{const i=t[1];S(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&i():e.length<=1&&i()},k={mode:a,persisted:l,beforeEnter(t){let n=c;if(!i.isMounted){if(!s)return;n=v||c}t[ae]&&t[ae](!0);const o=C[w];o&&vi(e,o)&&o.el[ae]&&o.el[ae](),S(n,[t])},enter(e){let t=d,n=u,o=h;if(!i.isMounted){if(!s)return;t=_||d,n=b||u,o=y||h}let r=!1;const a=e[le]=t=>{r||(r=!0,S(t?o:n,[e]),k.delayedLeave&&k.delayedLeave(),e[le]=void 0)};t?x(t,[e,a]):a()},leave(t,n){const o=String(e.key);if(t[le]&&t[le](!0),i.isUnmounting)return n();S(g,[t]);let s=!1;const r=t[ae]=i=>{s||(s=!0,n(),S(i?m:f,[t]),t[ae]=void 0,C[o]===e&&delete C[o])};C[o]=e,p?x(p,[t,r]):r()},clone(e){return fe(e,t,i,n)}};return k}function me(e){if(Ce(e))return e=ki(e),e.children=null,e}function ve(e){return Ce(e)?e.children?e.children[0]:void 0:e}function _e(e,t){6&e.shapeFlag&&e.component?_e(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function be(e,t=!1,i){let n=[],o=0;for(let s=0;s1)for(let s=0;s=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),b()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=f,t=r;try{return f=!0,r=this,this._runnings++,h(this),this.fn()}finally{g(this),this._runnings--,r=t,f=e}}stop(){var e;this.active&&(h(this),g(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function u(e){return e.value}function h(e){e._trackId++,e._depsLength=0}function g(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const i=new Map;return i.cleanup=e,i.computed=t,i},L=new WeakMap,E=Symbol(""),N=Symbol("");function D(e,t,i){if(f&&r){let t=L.get(e);t||L.set(e,t=new Map);let n=t.get(i);n||t.set(i,n=k((()=>t.delete(i)))),C(r,n,void 0)}}function T(e,t,i,o,r,s){const a=L.get(e);if(!a)return;let l=[];if("clear"===t)l=[...a.values()];else if("length"===i&&(0,n.kJ)(e)){const e=Number(o);a.forEach(((t,i)=>{("length"===i||!(0,n.yk)(i)&&i>=e)&&l.push(t)}))}else switch(void 0!==i&&l.push(a.get(i)),t){case"add":(0,n.kJ)(e)?(0,n.S0)(i)&&l.push(a.get("length")):(l.push(a.get(E)),(0,n._N)(e)&&l.push(a.get(N)));break;case"delete":(0,n.kJ)(e)||(l.push(a.get(E)),(0,n._N)(e)&&l.push(a.get(N)));break;case"set":(0,n._N)(e)&&l.push(a.get(E));break}y();for(const n of l)n&&x(n,4,void 0);w()}const I=(0,n.fY)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(n.yk)),A=O();function O(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const i=Se(this);for(let t=0,o=this.length;t{e[t]=function(...e){_(),y();const i=Se(this)[t].apply(this,e);return w(),b(),i}})),e}function P(e){const t=Se(this);return D(t,"has",e),t.hasOwnProperty(e)}class M{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(o?r?he:ue:r?de:ce).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const s=(0,n.kJ)(e);if(!o){if(s&&(0,n.RI)(A,t))return Reflect.get(A,t,i);if("hasOwnProperty"===t)return P}const a=Reflect.get(e,t,i);return((0,n.yk)(t)?R.has(t):I(t))?a:(o||D(e,"get",t),r?a:Ie(a)?s&&(0,n.S0)(t)?a:a.value:(0,n.Kn)(a)?o?ve(a):fe(a):a)}}class F extends M{constructor(e=!1){super(!1,e)}set(e,t,i,o){let r=e[t];if(!this._isShallow){const t=ye(r);if(we(i)||ye(i)||(r=Se(r),i=Se(i)),!(0,n.kJ)(e)&&Ie(r)&&!Ie(i))return!t&&(r.value=i,!0)}const s=(0,n.kJ)(e)&&(0,n.S0)(t)?Number(t)e,z=e=>Reflect.getPrototypeOf(e);function U(e,t,i=!1,o=!1){e=e["__v_raw"];const r=Se(e),s=Se(t);i||((0,n.aU)(t,s)&&D(r,"get",t),D(r,"get",s));const{has:a}=z(r),l=o?j:i?Le:ke;return a.call(r,t)?l(e.get(t)):a.call(r,s)?l(e.get(s)):void(e!==r&&e.get(t))}function $(e,t=!1){const i=this["__v_raw"],o=Se(i),r=Se(e);return t||((0,n.aU)(e,r)&&D(o,"has",e),D(o,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function q(e,t=!1){return e=e["__v_raw"],!t&&D(Se(e),"iterate",E),Reflect.get(e,"size",e)}function K(e){e=Se(e);const t=Se(this),i=z(t),n=i.has.call(t,e);return n||(t.add(e),T(t,"add",e,e)),this}function G(e,t){t=Se(t);const i=Se(this),{has:o,get:r}=z(i);let s=o.call(i,e);s||(e=Se(e),s=o.call(i,e));const a=r.call(i,e);return i.set(e,t),s?(0,n.aU)(t,a)&&T(i,"set",e,t,a):T(i,"add",e,t),this}function Z(e){const t=Se(this),{has:i,get:n}=z(t);let o=i.call(t,e);o||(e=Se(e),o=i.call(t,e));const r=n?n.call(t,e):void 0,s=t.delete(e);return o&&T(t,"delete",e,void 0,r),s}function Q(){const e=Se(this),t=0!==e.size,i=void 0,n=e.clear();return t&&T(e,"clear",void 0,void 0,i),n}function Y(e,t){return function(i,n){const o=this,r=o["__v_raw"],s=Se(r),a=t?j:e?Le:ke;return!e&&D(s,"iterate",E),r.forEach(((e,t)=>i.call(n,a(e),a(t),o)))}}function J(e,t,i){return function(...o){const r=this["__v_raw"],s=Se(r),a=(0,n._N)(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,d=r[e](...o),u=i?j:t?Le:ke;return!t&&D(s,"iterate",c?N:E),{next(){const{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ee(){const e={get(e){return U(this,e)},get size(){return q(this)},has:$,add:K,set:G,delete:Z,clear:Q,forEach:Y(!1,!1)},t={get(e){return U(this,e,!1,!0)},get size(){return q(this)},has:$,add:K,set:G,delete:Z,clear:Q,forEach:Y(!1,!0)},i={get(e){return U(this,e,!0)},get size(){return q(this,!0)},has(e){return $.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:Y(!0,!1)},n={get(e){return U(this,e,!0,!0)},get size(){return q(this,!0)},has(e){return $.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:Y(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=J(o,!1,!1),i[o]=J(o,!0,!1),t[o]=J(o,!1,!0),n[o]=J(o,!0,!0)})),[e,i,t,n]}const[te,ie,ne,oe]=ee();function re(e,t){const i=t?e?oe:ne:e?ie:te;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,n.RI)(i,o)&&o in t?i:t,o,r)}const se={get:re(!1,!1)},ae={get:re(!1,!0)},le={get:re(!0,!1)};const ce=new WeakMap,de=new WeakMap,ue=new WeakMap,he=new WeakMap;function ge(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ge((0,n.W7)(e))}function fe(e){return ye(e)?e:_e(e,!1,H,se,ce)}function me(e){return _e(e,!1,V,ae,de)}function ve(e){return _e(e,!0,W,le,ue)}function _e(e,t,i,o,r){if(!(0,n.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const s=r.get(e);if(s)return s;const a=pe(e);if(0===a)return e;const l=new Proxy(e,2===a?o:i);return r.set(e,l),l}function be(e){return ye(e)?be(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ye(e){return!(!e||!e["__v_isReadonly"])}function we(e){return!(!e||!e["__v_isShallow"])}function Ce(e){return be(e)||ye(e)}function Se(e){const t=e&&e["__v_raw"];return t?Se(t):e}function xe(e){return Object.isExtensible(e)&&(0,n.Nj)(e,"__v_skip",!0),e}const ke=e=>(0,n.Kn)(e)?fe(e):e,Le=e=>(0,n.Kn)(e)?ve(e):e;class Ee{constructor(e,t,i,n){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this.effect=new d((()=>e(this._value)),(()=>Te(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!n,this["__v_isReadonly"]=i}get value(){const e=Se(this);return e._cacheable&&!e.effect.dirty||!(0,n.aU)(e._value,e._value=e.effect.run())||Te(e,4),De(e),e.effect._dirtyLevel>=2&&Te(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ne(e,t,i=!1){let o,r;const s=(0,n.mf)(e);s?(o=e,r=n.dG):(o=e.get,r=e.set);const a=new Ee(o,r,s||!r,i);return a}function De(e){var t;f&&r&&(e=Se(e),C(r,null!=(t=e.dep)?t:e.dep=k((()=>e.dep=void 0),e instanceof Ee?e:void 0),void 0))}function Te(e,t=4,i){e=Se(e);const n=e.dep;n&&x(n,t,void 0)}function Ie(e){return!(!e||!0!==e.__v_isRef)}function Re(e){return Oe(e,!1)}function Ae(e){return Oe(e,!0)}function Oe(e,t){return Ie(e)?e:new Pe(e,t)}class Pe{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Se(e),this._value=t?e:ke(e)}get value(){return De(this),this._value}set value(e){const t=this.__v_isShallow||we(e)||ye(e);e=t?e:Se(e),(0,n.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ke(e),Te(this,4,e))}}function Me(e){return Ie(e)?e.value:e}const Fe={get:(e,t,i)=>Me(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const o=e[t];return Ie(o)&&!Ie(i)?(o.value=i,!0):Reflect.set(e,t,i,n)}};function Be(e){return be(e)?e:new Proxy(e,Fe)}},59835:(e,t,i)=>{"use strict";i.d(t,{$d:()=>s,Ah:()=>He,F4:()=>xi,FN:()=>Bi,Fl:()=>nn,HY:()=>ni,JJ:()=>_t,Jd:()=>Be,Ko:()=>Ue,Nv:()=>$e,Ob:()=>xe,P$:()=>ge,Q2:()=>q,Q6:()=>be,U2:()=>fe,Uk:()=>Li,Us:()=>Ht,WI:()=>qe,Wm:()=>Ci,Xn:()=>Me,Y3:()=>_,Y8:()=>ce,YP:()=>ee,_:()=>wi,aZ:()=>ye,bv:()=>Pe,dG:()=>Ri,dl:()=>Le,f3:()=>bt,h:()=>on,i8:()=>rn,iD:()=>pi,ic:()=>Fe,j4:()=>fi,kq:()=>Ni,lR:()=>ti,nJ:()=>ue,nK:()=>_e,se:()=>Ee,uE:()=>Ei,up:()=>U,w5:()=>P,wF:()=>Oe,wg:()=>ci,wy:()=>re});var n=i(60499),o=i(86970);function r(e,t,i,n){try{return n?e(...n):e()}catch(o){a(o,t,i)}}function s(e,t,i,n){if((0,o.mf)(e)){const s=r(e,t,i,n);return s&&(0,o.tI)(s)&&s.catch((e=>{a(e,t,i)})),s}const l=[];for(let o=0;o>>1,o=u[n],r=L(o);rh&&u.splice(t,1)}function S(e){(0,o.kJ)(e)?g.push(...e):p&&p.includes(e,e.allowRecurse?f+1:f)||g.push(e),w()}function x(e,t,i=(c?h+1:0)){for(0;iL(e)-L(t)));if(g.length=0,p)return void p.push(...e);for(p=e,f=0;fnull==e.id?1/0:e.id,E=(e,t)=>{const i=L(e)-L(t);if(0===i){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function N(e){d=!1,c=!0,u.sort(E);o.dG;try{for(h=0;h(0,o.HD)(e)?e.trim():e))),t&&(r=i.map(o.h5))}let c;let d=n[c=(0,o.hR)(t)]||n[c=(0,o.hR)((0,o._A)(t))];!d&&a&&(d=n[c=(0,o.hR)((0,o.rs)(t))]),d&&s(d,e,6,r);const u=n[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,s(u,e,6,r)}}function T(e,t,i=!1){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const s=e.emits;let a={},l=!1;if(!(0,o.mf)(e)){const n=e=>{const i=T(e,t,!0);i&&(l=!0,(0,o.l7)(a,i))};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return s||l?((0,o.kJ)(s)?s.forEach((e=>a[e]=null)):(0,o.l7)(a,s),(0,o.Kn)(e)&&n.set(e,a),a):((0,o.Kn)(e)&&n.set(e,null),null)}function I(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let R=null,A=null;function O(e){const t=R;return R=e,A=e&&e.type.__scopeId||null,t}function P(e,t=R,i){if(!t)return e;if(e._n)return e;const n=(...i)=>{n._d&&hi(-1);const o=O(t);let r;try{r=e(...i)}finally{O(o),n._d&&hi(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function M(e){const{type:t,vnode:i,proxy:n,withProxy:r,props:s,propsOptions:[l],slots:c,attrs:d,emit:u,render:h,renderCache:g,data:p,setupState:f,ctx:m,inheritAttrs:v}=e;let _,b;const y=O(e);try{if(4&i.shapeFlag){const e=r||n,t=e;_=Di(h.call(t,e,g,s,f,p,m)),b=d}else{const e=t;0,_=Di(e.length>1?e(s,{attrs:d,slots:c,emit:u}):e(s,null)),b=t.props?d:F(d)}}catch(C){ai.length=0,a(C,e,1),_=Ci(ri)}let w=_;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(o.tR)&&(b=B(b,l)),w=ki(w,b))}return i.dirs&&(w=ki(w),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),_=w,O(y),_}const F=e=>{let t;for(const i in e)("class"===i||"style"===i||(0,o.F7)(i))&&((t||(t={}))[i]=e[i]);return t},B=(e,t)=>{const i={};for(const n in e)(0,o.tR)(n)&&n.slice(9)in t||(i[n]=e[n]);return i};function H(e,t,i){const{props:n,children:o,component:r}=e,{props:s,children:a,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&l>=0))return!(!o&&!a||a&&a.$stable)||n!==s&&(n?!s||W(n,s,c):!!s);if(1024&l)return!0;if(16&l)return n?W(n,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function Q(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):S(e)}const Y=Symbol.for("v-scx"),J=()=>{{const e=bt(Y);return e}};const X={};function ee(e,t,i){return te(e,t,i)}function te(e,t,{immediate:i,deep:a,flush:l,once:c,onTrack:d,onTrigger:u}=o.kT){if(t&&c){const e=t;t=(...t)=>{e(...t),L()}}const h=Fi,g=e=>!0===a?e:oe(e,!1===a?1:void 0);let p,f,m=!1,v=!1;if((0,n.dq)(e)?(p=()=>e.value,m=(0,n.yT)(e)):(0,n.PG)(e)?(p=()=>g(e),m=!0):(0,o.kJ)(e)?(v=!0,m=e.some((e=>(0,n.PG)(e)||(0,n.yT)(e))),p=()=>e.map((e=>(0,n.dq)(e)?e.value:(0,n.PG)(e)?g(e):(0,o.mf)(e)?r(e,h,2):void 0))):p=(0,o.mf)(e)?t?()=>r(e,h,2):()=>(f&&f(),s(e,h,3,[b])):o.dG,t&&a){const e=p;p=()=>oe(e())}let _,b=e=>{f=x.onStop=()=>{r(e,h,4),f=x.onStop=void 0}};if(qi){if(b=o.dG,t?i&&s(t,h,3,[p(),v?[]:void 0,b]):p(),"sync"!==l)return o.dG;{const e=J();_=e.__watcherHandles||(e.__watcherHandles=[])}}let w=v?new Array(e.length).fill(X):X;const C=()=>{if(x.active&&x.dirty)if(t){const e=x.run();(a||m||(v?e.some(((e,t)=>(0,o.aU)(e,w[t]))):(0,o.aU)(e,w)))&&(f&&f(),s(t,h,3,[e,w===X?void 0:v&&w[0]===X?[]:w,b]),w=e)}else x.run()};let S;C.allowRecurse=!!t,"sync"===l?S=C:"post"===l?S=()=>Bt(C,h&&h.suspense):(C.pre=!0,h&&(C.id=h.uid),S=()=>y(C));const x=new n.qq(p,o.dG,S),k=(0,n.nZ)(),L=()=>{x.stop(),k&&(0,o.Od)(k.effects,x)};return t?i?C():w=x.run():"post"===l?Bt(x.run.bind(x),h&&h.suspense):x.run(),_&&_.push(L),L}function ie(e,t,i){const n=this.proxy,r=(0,o.HD)(e)?e.includes(".")?ne(n,e):()=>n[e]:e.bind(n,n);let s;(0,o.mf)(t)?s=t:(s=t.handler,i=t);const a=Vi(this),l=te(r,s.bind(n),i);return a(),l}function ne(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e0){if(i>=t)return e;i++}if(r=r||new Set,r.has(e))return e;if(r.add(e),(0,n.dq)(e))oe(e.value,t,i,r);else if((0,o.kJ)(e))for(let n=0;n{oe(e,t,i,r)}));else if((0,o.PO)(e))for(const n in e)oe(e[n],t,i,r);return e}function re(e,t){if(null===R)return e;const i=Xi(R)||R.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0})),Be((()=>{e.isUnmounting=!0})),e}const de=[Function,Array],ue={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:de,onEnter:de,onAfterEnter:de,onEnterCancelled:de,onBeforeLeave:de,onLeave:de,onAfterLeave:de,onLeaveCancelled:de,onBeforeAppear:de,onAppear:de,onAfterAppear:de,onAppearCancelled:de},he={name:"BaseTransition",props:ue,setup(e,{slots:t}){const i=Bi(),o=ce();return()=>{const r=t.default&&be(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==ri){0,s=t,e=!0;break}}const a=(0,n.IU)(e),{mode:l}=a;if(o.isLeaving)return me(s);const c=ve(s);if(!c)return me(s);const d=fe(c,a,o,i);_e(c,d);const u=i.subTree,h=u&&ve(u);if(h&&h.type!==ri&&!vi(c,h)){const e=fe(h,a,o,i);if(_e(h,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==i.update.active&&(i.effect.dirty=!0,i.update())},me(s);"in-out"===l&&c.type!==ri&&(e.delayLeave=(e,t,i)=>{const n=pe(o,h);n[String(h.key)]=h,e[ae]=()=>{t(),e[ae]=void 0,delete d.delayedLeave},d.delayedLeave=i})}return s}}},ge=he;function pe(e,t){const{leavingVNodes:i}=e;let n=i.get(t.type);return n||(n=Object.create(null),i.set(t.type,n)),n}function fe(e,t,i,n){const{appear:r,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:g,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:v,onAppear:_,onAfterAppear:b,onAppearCancelled:y}=t,w=String(e.key),C=pe(i,e),S=(e,t)=>{e&&s(e,n,9,t)},x=(e,t)=>{const i=t[1];S(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&i():e.length<=1&&i()},k={mode:a,persisted:l,beforeEnter(t){let n=c;if(!i.isMounted){if(!r)return;n=v||c}t[ae]&&t[ae](!0);const o=C[w];o&&vi(e,o)&&o.el[ae]&&o.el[ae](),S(n,[t])},enter(e){let t=d,n=u,o=h;if(!i.isMounted){if(!r)return;t=_||d,n=b||u,o=y||h}let s=!1;const a=e[le]=t=>{s||(s=!0,S(t?o:n,[e]),k.delayedLeave&&k.delayedLeave(),e[le]=void 0)};t?x(t,[e,a]):a()},leave(t,n){const o=String(e.key);if(t[le]&&t[le](!0),i.isUnmounting)return n();S(g,[t]);let r=!1;const s=t[ae]=i=>{r||(r=!0,n(),S(i?m:f,[t]),t[ae]=void 0,C[o]===e&&delete C[o])};C[o]=e,p?x(p,[t,s]):s()},clone(e){return fe(e,t,i,n)}};return k}function me(e){if(Ce(e))return e=ki(e),e.children=null,e}function ve(e){return Ce(e)?e.children?e.children[0]:void 0:e}function _e(e,t){6&e.shapeFlag&&e.component?_e(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function be(e,t=!1,i){let n=[],o=0;for(let r=0;r1)for(let r=0;r(0,o.l7)({name:e.name},t,{setup:e}))():e}const we=e=>!!e.type.__asyncLoader
-/*! #__NO_SIDE_EFFECTS__ */;const Ce=e=>e.type.__isKeepAlive,Se={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Bi(),n=i.ctx;if(!n.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const s=new Map,r=new Set;let a=null;const l=i.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:h}}}=n,g=h("div");function p(e){Te(e),u(e,i,l,!0)}function f(e){s.forEach(((t,i)=>{const n=en(t.type);!n||e&&e(n)||m(i)}))}function m(e){const t=s.get(e);a&&vi(t,a)?a&&Te(a):p(t),s.delete(e),r.delete(e)}n.activate=(e,t,i,n,s)=>{const r=e.component;d(e,t,i,0,l),c(r.vnode,e,t,i,r,l,n,e.slotScopeIds,s),Bt((()=>{r.isDeactivated=!1,r.a&&(0,o.ir)(r.a);const t=e.props&&e.props.onVnodeMounted;t&&Ai(t,r.parent,e)}),l)},n.deactivate=e=>{const t=e.component;d(e,g,null,1,l),Bt((()=>{t.da&&(0,o.ir)(t.da);const i=e.props&&e.props.onVnodeUnmounted;i&&Ai(i,t.parent,e),t.isDeactivated=!0}),l)},ee((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>ke(e,t))),t&&f((e=>!ke(t,e)))}),{flush:"post",deep:!0});let v=null;const _=()=>{null!=v&&s.set(v,Ie(i.subTree))};return Pe(_),Fe(_),Be((()=>{s.forEach((e=>{const{subTree:t,suspense:n}=i,o=Ie(t);if(e.type!==o.type||e.key!==o.key)p(e);else{Te(o);const e=o.component.da;e&&Bt(e,n)}}))})),()=>{if(v=null,!t.default)return null;const i=t.default(),n=i[0];if(i.length>1)return a=null,i;if(!mi(n)||!(4&n.shapeFlag)&&!(128&n.shapeFlag))return a=null,n;let o=Ie(n);const l=o.type,c=en(we(o)?o.type.__asyncResolved||{}:l),{include:d,exclude:u,max:h}=e;if(d&&(!c||!ke(d,c))||u&&c&&ke(u,c))return a=o,n;const g=null==o.key?l:o.key,p=s.get(g);return o.el&&(o=ki(o),128&n.shapeFlag&&(n.ssContent=o)),v=g,p?(o.el=p.el,o.component=p.component,o.transition&&_e(o,o.transition),o.shapeFlag|=512,r.delete(g),r.add(g)):(r.add(g),h&&r.size>parseInt(h,10)&&m(r.values().next().value)),o.shapeFlag|=256,a=o,Z(n.type)?n:o}}},xe=Se;function ke(e,t){return(0,o.kJ)(e)?e.some((e=>ke(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!(0,o.Kj)(e)&&e.test(t)}function Le(e,t){Ne(e,"a",t)}function Ee(e,t){Ne(e,"da",t)}function Ne(e,t,i=Fi){const n=e.__wdc||(e.__wdc=()=>{let t=i;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Re(t,n,i),i){let e=i.parent;while(e&&e.parent)Ce(e.parent.vnode)&&De(n,t,i,e),e=e.parent}}function De(e,t,i,n){const s=Re(t,e,n,!0);He((()=>{(0,o.Od)(n[t],s)}),i)}function Te(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ie(e){return 128&e.shapeFlag?e.ssContent:e}function Re(e,t,i=Fi,o=!1){if(i){const s=i[e]||(i[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(i.isUnmounted)return;(0,n.Jd)();const s=Vi(i),a=r(t,i,e,o);return s(),(0,n.lk)(),a});return o?s.unshift(a):s.push(a),a}}const Ae=e=>(t,i=Fi)=>(!qi||"sp"===e)&&Re(e,((...e)=>t(...e)),i),Oe=Ae("bm"),Pe=Ae("m"),Me=Ae("bu"),Fe=Ae("u"),Be=Ae("bum"),He=Ae("um"),We=Ae("sp"),Ve=Ae("rtg"),je=Ae("rtc");function ze(e,t=Fi){Re("ec",e,t)}function Ue(e,t,i,n){let s;const r=i&&i[n];if((0,o.kJ)(e)||(0,o.HD)(e)){s=new Array(e.length);for(let i=0,n=e.length;it(e,i,void 0,r&&r[i])));else{const i=Object.keys(e);s=new Array(i.length);for(let n=0,o=i.length;n{const t=n.fn(...e);return t&&(t.key=n.key),t}:n.fn)}return e}function qe(e,t,i={},n,o){if(R.isCE||R.parent&&we(R.parent)&&R.parent.isCE)return"default"!==t&&(i.name=t),Ci("slot",i,n&&n());let s=e[t];s&&s._c&&(s._d=!1),ci();const r=s&&Ke(s(i)),a=fi(ni,{key:i.key||r&&r.key||`_${t}`},r||(n?n():[]),r&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function Ke(e){return e.some((e=>!mi(e)||e.type!==si&&!(e.type===ni&&!Ke(e.children))))?e:null}const Ge=e=>e?zi(e)?Xi(e)||e.proxy:Ge(e.parent):null,Ze=(0,o.l7)(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=>Ge(e.parent),$root:e=>Ge(e.root),$emit:e=>e.emit,$options:e=>ot(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,y(e.update)}),$nextTick:e=>e.n||(e.n=_.bind(e.proxy)),$watch:e=>ie.bind(e)}),Qe=(e,t)=>e!==o.kT&&!e.__isScriptSetup&&(0,o.RI)(e,t),Ye={get({_:e},t){const{ctx:i,setupState:s,data:r,props:a,accessCache:l,type:c,appContext:d}=e;let u;if("$"!==t[0]){const n=l[t];if(void 0!==n)switch(n){case 1:return s[t];case 2:return r[t];case 4:return i[t];case 3:return a[t]}else{if(Qe(s,t))return l[t]=1,s[t];if(r!==o.kT&&(0,o.RI)(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&(0,o.RI)(u,t))return l[t]=3,a[t];if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=4,i[t];Xe&&(l[t]=0)}}const h=Ze[t];let g,p;return h?("$attrs"===t&&(0,n.j)(e,"get",t),h(e)):(g=c.__cssModules)&&(g=g[t])?g:i!==o.kT&&(0,o.RI)(i,t)?(l[t]=4,i[t]):(p=d.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,i){const{data:n,setupState:s,ctx:r}=e;return Qe(s,t)?(s[t]=i,!0):n!==o.kT&&(0,o.RI)(n,t)?(n[t]=i,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(r[t]=i,!0))},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:s,propsOptions:r}},a){let l;return!!i[a]||e!==o.kT&&(0,o.RI)(e,a)||Qe(t,a)||(l=r[0])&&(0,o.RI)(l,a)||(0,o.RI)(n,a)||(0,o.RI)(Ze,a)||(0,o.RI)(s.config.globalProperties,a)},defineProperty(e,t,i){return null!=i.get?e._.accessCache[t]=0:(0,o.RI)(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function Je(e){return(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Xe=!0;function et(e){const t=ot(e),i=e.proxy,s=e.ctx;Xe=!1,t.beforeCreate&&it(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:l,watch:c,provide:d,inject:u,created:h,beforeMount:g,mounted:p,beforeUpdate:f,updated:m,activated:v,deactivated:_,beforeDestroy:b,beforeUnmount:y,destroyed:w,unmounted:C,render:S,renderTracked:x,renderTriggered:k,errorCaptured:L,serverPrefetch:E,expose:N,inheritAttrs:D,components:T,directives:I,filters:R}=t,A=null;if(u&&tt(u,s,A),l)for(const n in l){const e=l[n];(0,o.mf)(e)&&(s[n]=e.bind(i))}if(r){0;const t=r.call(i,i);0,(0,o.Kn)(t)&&(e.data=(0,n.qj)(t))}if(Xe=!0,a)for(const n in a){const e=a[n],t=(0,o.mf)(e)?e.bind(i,i):(0,o.mf)(e.get)?e.get.bind(i,i):o.dG;0;const r=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(i):o.dG,l=nn({get:t,set:r});Object.defineProperty(s,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const n in c)nt(c[n],s,i,n);if(d){const e=(0,o.mf)(d)?d.call(i):d;Reflect.ownKeys(e).forEach((t=>{_t(t,e[t])}))}function O(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(i)))):t&&e(t.bind(i))}if(h&&it(h,e,"c"),O(Oe,g),O(Pe,p),O(Me,f),O(Fe,m),O(Le,v),O(Ee,_),O(ze,L),O(je,x),O(Ve,k),O(Be,y),O(He,C),O(We,E),(0,o.kJ)(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.dG&&(e.render=S),null!=D&&(e.inheritAttrs=D),T&&(e.components=T),I&&(e.directives=I)}function tt(e,t,i=o.dG){(0,o.kJ)(e)&&(e=ct(e));for(const s in e){const i=e[s];let r;r=(0,o.Kn)(i)?"default"in i?bt(i.from||s,i.default,!0):bt(i.from||s):bt(i),(0,n.dq)(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[s]=r}}function it(e,t,i){r((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,i)}function nt(e,t,i,n){const s=n.includes(".")?ne(i,n):()=>i[n];if((0,o.HD)(e)){const i=t[e];(0,o.mf)(i)&&ee(s,i)}else if((0,o.mf)(e))ee(s,e.bind(i));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>nt(e,t,i,n)));else{const n=(0,o.mf)(e.handler)?e.handler.bind(i):t[e.handler];(0,o.mf)(n)&&ee(s,n,e)}else 0}function ot(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,l=r.get(t);let c;return l?c=l:s.length||i||n?(c={},s.length&&s.forEach((e=>st(c,e,a,!0))),st(c,t,a)):c=t,(0,o.Kn)(t)&&r.set(t,c),c}function st(e,t,i,n=!1){const{mixins:o,extends:s}=t;s&&st(e,s,i,!0),o&&o.forEach((t=>st(e,t,i,!0)));for(const r in t)if(n&&"expose"===r);else{const n=rt[r]||i&&i[r];e[r]=n?n(e[r],t[r]):t[r]}return e}const rt={data:at,props:ht,emits:ht,methods:ut,computed:ut,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:ut,directives:ut,watch:gt,provide:at,inject:lt};function at(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function lt(e,t){return ut(ct(e),ct(t))}function ct(e){if((0,o.kJ)(e)){const t={};for(let i=0;i1)return i&&(0,o.mf)(t)?t.call(n&&n.proxy):t}else 0}function yt(e,t,i,s=!1){const r={},a={};(0,o.Nj)(a,_i,1),e.propsDefaults=Object.create(null),Ct(e,t,r,a);for(const n in e.propsOptions[0])n in r||(r[n]=void 0);i?e.props=s?r:(0,n.Um)(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function wt(e,t,i,s){const{props:r,attrs:a,vnode:{patchFlag:l}}=e,c=(0,n.IU)(r),[d]=e.propsOptions;let u=!1;if(!(s||l>0)||16&l){let n;Ct(e,t,r,a)&&(u=!0);for(const s in c)t&&((0,o.RI)(t,s)||(n=(0,o.rs)(s))!==s&&(0,o.RI)(t,n))||(d?!i||void 0===i[s]&&void 0===i[n]||(r[s]=St(d,c,s,void 0,e,!0)):delete r[s]);if(a!==c)for(const e in a)t&&(0,o.RI)(t,e)||(delete a[e],u=!0)}else if(8&l){const i=e.vnode.dynamicProps;for(let n=0;n{c=!0;const[i,n]=xt(e,t,!0);(0,o.l7)(a,i),n&&l.push(...n)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!r&&!c)return(0,o.Kn)(e)&&n.set(e,o.Z6),o.Z6;if((0,o.kJ)(r))for(let u=0;u-1,n[1]=i<0||e-1||(0,o.RI)(n,"default"))&&l.push(t)}}}}const d=[a,l];return(0,o.Kn)(e)&&n.set(e,d),d}function kt(e){return"$"!==e[0]&&!(0,o.Gg)(e)}function Lt(e){if(null===e)return"null";if("function"===typeof e)return e.name||"";if("object"===typeof e){const t=e.constructor&&e.constructor.name;return t||""}return""}function Et(e,t){return Lt(e)===Lt(t)}function Nt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>Et(t,e))):(0,o.mf)(t)&&Et(t,e)?0:-1}const Dt=e=>"_"===e[0]||"$stable"===e,Tt=e=>(0,o.kJ)(e)?e.map(Di):[Di(e)],It=(e,t,i)=>{if(t._n)return t;const n=P(((...e)=>Tt(t(...e))),i);return n._c=!1,n},Rt=(e,t,i)=>{const n=e._ctx;for(const s in e){if(Dt(s))continue;const i=e[s];if((0,o.mf)(i))t[s]=It(s,i,n);else if(null!=i){0;const e=Tt(i);t[s]=()=>e}}},At=(e,t)=>{const i=Tt(t);e.slots.default=()=>i},Ot=(e,t)=>{if(32&e.vnode.shapeFlag){const i=t._;i?(e.slots=(0,n.IU)(t),(0,o.Nj)(t,"_",i)):Rt(t,e.slots={})}else e.slots={},t&&At(e,t);(0,o.Nj)(e.slots,_i,1)},Pt=(e,t,i)=>{const{vnode:n,slots:s}=e;let r=!0,a=o.kT;if(32&n.shapeFlag){const e=t._;e?i&&1===e?r=!1:((0,o.l7)(s,t),i||1!==e||delete s._):(r=!t.$stable,Rt(t,s)),a=t}else t&&(At(e,t),a={default:1});if(r)for(const o in s)Dt(o)||null!=a[o]||delete s[o]};function Mt(e,t,i,r,a=!1){if((0,o.kJ)(e))return void e.forEach(((e,n)=>Mt(e,t&&((0,o.kJ)(t)?t[n]:t),i,r,a)));if(we(r)&&!a)return;const l=4&r.shapeFlag?Xi(r.component)||r.component.proxy:r.el,c=a?null:l,{i:d,r:u}=e;const h=t&&t.r,g=d.refs===o.kT?d.refs={}:d.refs,p=d.setupState;if(null!=h&&h!==u&&((0,o.HD)(h)?(g[h]=null,(0,o.RI)(p,h)&&(p[h]=null)):(0,n.dq)(h)&&(h.value=null)),(0,o.mf)(u))s(u,d,12,[c,g]);else{const t=(0,o.HD)(u),s=(0,n.dq)(u);if(t||s){const n=()=>{if(e.f){const i=t?(0,o.RI)(p,u)?p[u]:g[u]:u.value;a?(0,o.kJ)(i)&&(0,o.Od)(i,l):(0,o.kJ)(i)?i.includes(l)||i.push(l):t?(g[u]=[l],(0,o.RI)(p,u)&&(p[u]=g[u])):(u.value=[l],e.k&&(g[e.k]=u.value))}else t?(g[u]=c,(0,o.RI)(p,u)&&(p[u]=c)):s&&(u.value=c,e.k&&(g[e.k]=c))};c?(n.id=-1,Bt(n,i)):n()}else 0}}function Ft(){}const Bt=Q;function Ht(e){return Wt(e)}function Wt(e,t){Ft();const i=(0,o.E9)();i.__VUE__=!0;const{insert:s,remove:r,patchProp:a,createElement:l,createText:c,createComment:d,setText:u,setElementText:h,parentNode:g,nextSibling:p,setScopeId:f=o.dG,insertStaticContent:m}=e,v=(e,t,i,n=null,o=null,s=null,r=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!vi(e,t)&&(n=J(e),K(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case oi:_(e,t,i,n);break;case si:b(e,t,i,n);break;case ri:null==e&&w(t,i,n,r);break;case ni:O(e,t,i,n,o,s,r,a,l);break;default:1&u?E(e,t,i,n,o,s,r,a,l):6&u?P(e,t,i,n,o,s,r,a,l):(64&u||128&u)&&c.process(e,t,i,n,o,s,r,a,l,te)}null!=d&&o&&Mt(d,e&&e.ref,s,t||e,!t)},_=(e,t,i,n)=>{if(null==e)s(t.el=c(t.children),i,n);else{const i=t.el=e.el;t.children!==e.children&&u(i,t.children)}},b=(e,t,i,n)=>{null==e?s(t.el=d(t.children||""),i,n):t.el=e.el},w=(e,t,i,n)=>{[e.el,e.anchor]=m(e.children,t,i,n,e.el,e.anchor)},S=({el:e,anchor:t},i,n)=>{let o;while(e&&e!==t)o=p(e),s(e,i,n),e=o;s(t,i,n)},L=({el:e,anchor:t})=>{let i;while(e&&e!==t)i=p(e),r(e),e=i;r(t)},E=(e,t,i,n,o,s,r,a,l)=>{"svg"===t.type?r="svg":"math"===t.type&&(r="mathml"),null==e?N(t,i,n,o,s,r,a,l):I(e,t,o,s,r,a,l)},N=(e,t,i,n,r,c,d,u)=>{let g,p;const{props:f,shapeFlag:m,transition:v,dirs:_}=e;if(g=e.el=l(e.type,c,f&&f.is,f),8&m?h(g,e.children):16&m&&T(e.children,g,null,n,r,Vt(e,c),d,u),_&&re(e,null,n,"created"),D(g,e,e.scopeId,d,n),f){for(const t in f)"value"===t||(0,o.Gg)(t)||a(g,t,null,f[t],c,e.children,n,r,Y);"value"in f&&a(g,"value",null,f.value,c),(p=f.onVnodeBeforeMount)&&Ai(p,n,e)}_&&re(e,null,n,"beforeMount");const b=zt(r,v);b&&v.beforeEnter(g),s(g,t,i),((p=f&&f.onVnodeMounted)||b||_)&&Bt((()=>{p&&Ai(p,n,e),b&&v.enter(g),_&&re(e,null,n,"mounted")}),r)},D=(e,t,i,n,o)=>{if(i&&f(e,i),n)for(let s=0;s{for(let c=l;c{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:g}=t;d|=16&e.patchFlag;const p=e.props||o.kT,f=t.props||o.kT;let m;if(i&&jt(i,!1),(m=f.onVnodeBeforeUpdate)&&Ai(m,i,t,e),g&&re(t,e,i,"beforeUpdate"),i&&jt(i,!0),u?R(e.dynamicChildren,u,c,i,n,Vt(t,s),r):l||z(e,t,c,null,i,n,Vt(t,s),r,!1),d>0){if(16&d)A(c,t,p,f,i,n,s);else if(2&d&&p.class!==f.class&&a(c,"class",null,f.class,s),4&d&&a(c,"style",p.style,f.style,s),8&d){const o=t.dynamicProps;for(let t=0;t{m&&Ai(m,i,t,e),g&&re(t,e,i,"updated")}),n)},R=(e,t,i,n,o,s,r)=>{for(let a=0;a{if(i!==n){if(i!==o.kT)for(const c in i)(0,o.Gg)(c)||c in n||a(e,c,i[c],null,l,t.children,s,r,Y);for(const c in n){if((0,o.Gg)(c))continue;const d=n[c],u=i[c];d!==u&&"value"!==c&&a(e,c,u,d,l,t.children,s,r,Y)}"value"in n&&a(e,"value",i.value,n.value,l)}},O=(e,t,i,n,o,r,a,l,d)=>{const u=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c("");let{patchFlag:g,dynamicChildren:p,slotScopeIds:f}=t;f&&(l=l?l.concat(f):f),null==e?(s(u,i,n),s(h,i,n),T(t.children||[],i,h,o,r,a,l,d)):g>0&&64&g&&p&&e.dynamicChildren?(R(e.dynamicChildren,p,i,o,r,a,l),(null!=t.key||o&&t===o.subTree)&&Ut(e,t,!0)):z(e,t,i,h,o,r,a,l,d)},P=(e,t,i,n,o,s,r,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,i,n,r,l):F(t,i,n,o,s,r,l):B(e,t,l)},F=(e,t,i,n,o,s,r)=>{const a=e.component=Mi(e,n,o);if(Ce(e)&&(a.ctx.renderer=te),Ki(a),a.asyncDep){if(o&&o.registerDep(a,W),!e.el){const e=a.subTree=Ci(si);b(null,e,t,i)}}else W(a,e,t,i,o,s,r)},B=(e,t,i)=>{const n=t.component=e.component;if(H(e,t,i)){if(n.asyncDep&&!n.asyncResolved)return void j(n,t,i);n.next=t,C(n.update),n.effect.dirty=!0,n.update()}else t.el=e.el,n.vnode=t},W=(e,t,i,s,r,a,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:i,u:n,parent:s,vnode:d}=e;{const i=qt(e);if(i)return t&&(t.el=d.el,j(e,t,l)),void i.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,h=t;0,jt(e,!1),t?(t.el=d.el,j(e,t,l)):t=d,i&&(0,o.ir)(i),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Ai(u,s,t,d),jt(e,!0);const p=M(e);0;const f=e.subTree;e.subTree=p,v(f,p,g(f.el),J(f),e,r,a),t.el=p.el,null===h&&V(e,p.el),n&&Bt(n,r),(u=t.props&&t.props.onVnodeUpdated)&&Bt((()=>Ai(u,s,t,d)),r)}else{let n;const{el:l,props:c}=t,{bm:d,m:u,parent:h}=e,g=we(t);if(jt(e,!1),d&&(0,o.ir)(d),!g&&(n=c&&c.onVnodeBeforeMount)&&Ai(n,h,t),jt(e,!0),l&&ne){const i=()=>{e.subTree=M(e),ne(l,e.subTree,e,r,null)};g?t.type.__asyncLoader().then((()=>!e.isUnmounted&&i())):i()}else{0;const n=e.subTree=M(e);0,v(null,n,i,s,e,r,a),t.el=n.el}if(u&&Bt(u,r),!g&&(n=c&&c.onVnodeMounted)){const e=t;Bt((()=>Ai(n,h,e)),r)}(256&t.shapeFlag||h&&we(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Bt(e.a,r),e.isMounted=!0,t=i=s=null}},d=e.effect=new n.qq(c,o.dG,(()=>y(u)),e.scope),u=e.update=()=>{d.dirty&&d.run()};u.id=e.uid,jt(e,!0),u()},j=(e,t,i)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,wt(e,t.props,o,i),Pt(e,t.children,i),(0,n.Jd)(),x(e),(0,n.lk)()},z=(e,t,i,n,o,s,r,a,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,u=t.children,{patchFlag:g,shapeFlag:p}=t;if(g>0){if(128&g)return void $(c,u,i,n,o,s,r,a,l);if(256&g)return void U(c,u,i,n,o,s,r,a,l)}8&p?(16&d&&Y(c,o,s),u!==c&&h(i,u)):16&d?16&p?$(c,u,i,n,o,s,r,a,l):Y(c,o,s,!0):(8&d&&h(i,""),16&p&&T(u,i,n,o,s,r,a,l))},U=(e,t,i,n,s,r,a,l,c)=>{e=e||o.Z6,t=t||o.Z6;const d=e.length,u=t.length,h=Math.min(d,u);let g;for(g=0;gu?Y(e,s,r,!0,!1,h):T(t,i,n,s,r,a,l,c,h)},$=(e,t,i,n,s,r,a,l,c)=>{let d=0;const u=t.length;let h=e.length-1,g=u-1;while(d<=h&&d<=g){const n=e[d],o=t[d]=c?Ti(t[d]):Di(t[d]);if(!vi(n,o))break;v(n,o,i,null,s,r,a,l,c),d++}while(d<=h&&d<=g){const n=e[h],o=t[g]=c?Ti(t[g]):Di(t[g]);if(!vi(n,o))break;v(n,o,i,null,s,r,a,l,c),h--,g--}if(d>h){if(d<=g){const e=g+1,o=eg)while(d<=h)K(e[d],s,r,!0),d++;else{const p=d,f=d,m=new Map;for(d=f;d<=g;d++){const e=t[d]=c?Ti(t[d]):Di(t[d]);null!=e.key&&m.set(e.key,d)}let _,b=0;const y=g-f+1;let w=!1,C=0;const S=new Array(y);for(d=0;d=y){K(n,s,r,!0);continue}let o;if(null!=n.key)o=m.get(n.key);else for(_=f;_<=g;_++)if(0===S[_-f]&&vi(n,t[_])){o=_;break}void 0===o?K(n,s,r,!0):(S[o-f]=d+1,o>=C?C=o:w=!0,v(n,t[o],i,null,s,r,a,l,c),b++)}const x=w?$t(S):o.Z6;for(_=x.length-1,d=y-1;d>=0;d--){const e=f+d,o=t[e],h=e+1{const{el:r,type:a,transition:l,children:c,shapeFlag:d}=e;if(6&d)return void q(e.component.subTree,t,i,n);if(128&d)return void e.suspense.move(t,i,n);if(64&d)return void a.move(e,t,i,te);if(a===ni){s(r,t,i);for(let e=0;el.enter(r)),o);else{const{leave:e,delayLeave:n,afterLeave:o}=l,a=()=>s(r,t,i),c=()=>{e(r,(()=>{a(),o&&o()}))};n?n(r,a,c):c()}else s(r,t,i)},K=(e,t,i,n=!1,o=!1)=>{const{type:s,props:r,ref:a,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:h}=e;if(null!=a&&Mt(a,null,i,e,!0),256&d)return void t.ctx.deactivate(e);const g=1&d&&h,p=!we(e);let f;if(p&&(f=r&&r.onVnodeBeforeUnmount)&&Ai(f,t,e),6&d)Q(e.component,i,n);else{if(128&d)return void e.suspense.unmount(i,n);g&&re(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,i,o,te,n):c&&(s!==ni||u>0&&64&u)?Y(c,t,i,!1,!0):(s===ni&&384&u||!o&&16&d)&&Y(l,t,i),n&&G(e)}(p&&(f=r&&r.onVnodeUnmounted)||g)&&Bt((()=>{f&&Ai(f,t,e),g&&re(e,null,t,"unmounted")}),i)},G=e=>{const{type:t,el:i,anchor:n,transition:o}=e;if(t===ni)return void Z(i,n);if(t===ri)return void L(e);const s=()=>{r(i),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:n}=o,r=()=>t(i,s);n?n(e.el,s,r):r()}else s()},Z=(e,t)=>{let i;while(e!==t)i=p(e),r(e),e=i;r(t)},Q=(e,t,i)=>{const{bum:n,scope:s,update:r,subTree:a,um:l}=e;n&&(0,o.ir)(n),s.stop(),r&&(r.active=!1,K(a,e,t,i)),l&&Bt(l,t),Bt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,i,n=!1,o=!1,s=0)=>{for(let r=s;r6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el);let X=!1;const ee=(e,t,i)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,i),X||(X=!0,x(),k(),X=!1),t._vnode=e},te={p:v,um:K,m:q,r:G,mt:F,mc:T,pc:z,pbc:R,n:J,o:e};let ie,ne;return t&&([ie,ne]=t(te)),{render:ee,hydrate:ie,createApp:mt(ee,ie)}}function Vt({type:e,props:t},i){return"svg"===i&&"foreignObject"===e||"mathml"===i&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function jt({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function zt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ut(e,t,i=!1){const n=e.children,s=t.children;if((0,o.kJ)(n)&&(0,o.kJ)(s))for(let o=0;o>1,e[i[a]]0&&(t[n]=i[s-1]),i[s]=n)}}s=i.length,r=i[s-1];while(s-- >0)i[s]=r,r=t[r];return i}function qt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qt(t)}const Kt=e=>e.__isTeleport,Gt=e=>e&&(e.disabled||""===e.disabled),Zt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Qt=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,Yt=(e,t)=>{const i=e&&e.to;if((0,o.HD)(i)){if(t){const e=t(i);return e}return null}return i},Jt={name:"Teleport",__isTeleport:!0,process(e,t,i,n,o,s,r,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:g,querySelector:p,createText:f,createComment:m}}=c,v=Gt(t.props);let{shapeFlag:_,children:b,dynamicChildren:y}=t;if(null==e){const e=t.el=f(""),c=t.anchor=f("");g(e,i,n),g(c,i,n);const u=t.target=Yt(t.props,p),h=t.targetAnchor=f("");u&&(g(h,u),"svg"===r||Zt(u)?r="svg":("mathml"===r||Qt(u))&&(r="mathml"));const m=(e,t)=>{16&_&&d(b,e,t,o,s,r,a,l)};v?m(i,c):u&&m(u,h)}else{t.el=e.el;const n=t.anchor=e.anchor,d=t.target=e.target,g=t.targetAnchor=e.targetAnchor,f=Gt(e.props),m=f?i:d,_=f?n:g;if("svg"===r||Zt(d)?r="svg":("mathml"===r||Qt(d))&&(r="mathml"),y?(h(e.dynamicChildren,y,m,o,s,r,a),Ut(e,t,!0)):l||u(e,t,m,_,o,s,r,a,!1),v)f?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xt(t,i,n,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Yt(t.props,p);e&&Xt(t,e,null,c,0)}else f&&Xt(t,d,g,c,1)}ii(t)},remove(e,t,i,n,{um:o,o:{remove:s}},r){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),r&&s(c),16&a){const e=r||!Gt(h);for(let n=0;n0?li||o.Z6:null,di(),ui>0&&li&&li.push(e),e}function pi(e,t,i,n,o,s){return gi(wi(e,t,i,n,o,s,!0))}function fi(e,t,i,n,o){return gi(Ci(e,t,i,n,o,!0))}function mi(e){return!!e&&!0===e.__v_isVNode}function vi(e,t){return e.type===t.type&&e.key===t.key}const _i="__vInternal",bi=({key:e})=>null!=e?e:null,yi=({ref:e,ref_key:t,ref_for:i})=>("number"===typeof e&&(e=""+e),null!=e?(0,o.HD)(e)||(0,n.dq)(e)||(0,o.mf)(e)?{i:R,r:e,k:t,f:!!i}:e:null);function wi(e,t=null,i=null,n=0,s=null,r=(e===ni?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bi(t),ref:t&&yi(t),scopeId:A,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:R};return l?(Ii(c,i),128&r&&e.normalize(c)):i&&(c.shapeFlag|=(0,o.HD)(i)?8:16),ui>0&&!a&&li&&(c.patchFlag>0||6&r)&&32!==c.patchFlag&&li.push(c),c}const Ci=Si;function Si(e,t=null,i=null,s=0,r=null,a=!1){if(e&&e!==$||(e=si),mi(e)){const n=ki(e,t,!0);return i&&Ii(n,i),ui>0&&!a&&li&&(6&n.shapeFlag?li[li.indexOf(e)]=n:li.push(n)),n.patchFlag|=-2,n}if(tn(e)&&(e=e.__vccOpts),t){t=xi(t);let{class:e,style:i}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(i)&&((0,n.X3)(i)&&!(0,o.kJ)(i)&&(i=(0,o.l7)({},i)),t.style=(0,o.j5)(i))}const l=(0,o.HD)(e)?1:Z(e)?128:Kt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return wi(e,t,i,s,r,l,a,!0)}function xi(e){return e?(0,n.X3)(e)||_i in e?(0,o.l7)({},e):e:null}function ki(e,t,i=!1){const{props:n,ref:s,patchFlag:r,children:a}=e,l=t?Ri(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&bi(l),ref:t&&t.ref?i&&s?(0,o.kJ)(s)?s.concat(yi(t)):[s,yi(t)]:yi(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ni?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ki(e.ssContent),ssFallback:e.ssFallback&&ki(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c}function Li(e=" ",t=0){return Ci(oi,null,e,t)}function Ei(e,t){const i=Ci(ri,null,e);return i.staticCount=t,i}function Ni(e="",t=!1){return t?(ci(),fi(si,null,e)):Ci(si,null,e)}function Di(e){return null==e||"boolean"===typeof e?Ci(si):(0,o.kJ)(e)?Ci(ni,null,e.slice()):"object"===typeof e?Ti(e):Ci(oi,null,String(e))}function Ti(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ki(e)}function Ii(e,t){let i=0;const{shapeFlag:n}=e;if(null==t)t=null;else if((0,o.kJ)(t))i=16;else if("object"===typeof t){if(65&n){const i=t.default;return void(i&&(i._c&&(i._d=!1),Ii(e,i()),i._c&&(i._d=!0)))}{i=32;const n=t._;n||_i in t?3===n&&R&&(1===R.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=R}}else(0,o.mf)(t)?(t={default:t,_ctx:R},i=32):(t=String(t),64&n?(i=16,t=[Li(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ri(...e){const t={};for(let i=0;iFi||R;let Hi,Wi;{const e=(0,o.E9)(),t=(t,i)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(i),e=>{n.length>1?n.forEach((t=>t(e))):n[0](e)}};Hi=t("__VUE_INSTANCE_SETTERS__",(e=>Fi=e)),Wi=t("__VUE_SSR_SETTERS__",(e=>qi=e))}const Vi=e=>{const t=Fi;return Hi(e),e.scope.on(),()=>{e.scope.off(),Hi(t)}},ji=()=>{Fi&&Fi.scope.off(),Hi(null)};function zi(e){return 4&e.vnode.shapeFlag}let Ui,$i,qi=!1;function Ki(e,t=!1){t&&Wi(t);const{props:i,children:n}=e.vnode,o=zi(e);yt(e,i,o,t),Ot(e,n);const s=o?Gi(e,t):void 0;return t&&Wi(!1),s}function Gi(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=(0,n.Xl)(new Proxy(e.ctx,Ye));const{setup:r}=i;if(r){const i=e.setupContext=r.length>1?Ji(e):null,l=Vi(e);(0,n.Jd)();const c=s(r,e,0,[e.props,i]);if((0,n.lk)(),l(),(0,o.tI)(c)){if(c.then(ji,ji),t)return c.then((i=>{Zi(e,i,t)})).catch((t=>{a(t,e,0)}));e.asyncDep=c}else Zi(e,c,t)}else Qi(e,t)}function Zi(e,t,i){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,n.WL)(t)),Qi(e,i)}function Qi(e,t,i){const s=e.type;if(!e.render){if(!t&&Ui&&!s.render){const t=s.template||ot(e).template;if(t){0;const{isCustomElement:i,compilerOptions:n}=e.appContext.config,{delimiters:r,compilerOptions:a}=s,l=(0,o.l7)((0,o.l7)({isCustomElement:i,delimiters:r},n),a);s.render=Ui(t,l)}}e.render=s.render||o.dG,$i&&$i(e)}{const t=Vi(e);(0,n.Jd)();try{et(e)}finally{(0,n.lk)(),t()}}}function Yi(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,i){return(0,n.j)(e,"get","$attrs"),t[i]}}))}function Ji(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return Yi(e)},slots:e.slots,emit:e.emit,expose:t}}function Xi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,n.WL)((0,n.Xl)(e.exposed)),{get(t,i){return i in t?t[i]:i in Ze?Ze[i](e):void 0},has(e,t){return t in e||t in Ze}}))}function en(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function tn(e){return(0,o.mf)(e)&&"__vccOpts"in e}const nn=(e,t)=>{const i=(0,n.Fl)(e,t,qi);return i};function on(e,t,i){const n=arguments.length;return 2===n?(0,o.Kn)(t)&&!(0,o.kJ)(t)?mi(t)?Ci(e,null,[t]):Ci(e,t):Ci(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):3===n&&mi(i)&&(i=[i]),Ci(e,t,i))}const sn="3.4.21"},61957:(e,t,i)=>{"use strict";i.d(t,{F8:()=>O,W3:()=>he,iM:()=>be,ri:()=>Se,uT:()=>p});var n=i(59835),o=i(86970),s=i(60499);
+/*! #__NO_SIDE_EFFECTS__ */;const Ce=e=>e.type.__isKeepAlive,Se={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Bi(),n=i.ctx;if(!n.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let a=null;const l=i.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:h}}}=n,g=h("div");function p(e){Te(e),u(e,i,l,!0)}function f(e){r.forEach(((t,i)=>{const n=en(t.type);!n||e&&e(n)||m(i)}))}function m(e){const t=r.get(e);a&&vi(t,a)?a&&Te(a):p(t),r.delete(e),s.delete(e)}n.activate=(e,t,i,n,r)=>{const s=e.component;d(e,t,i,0,l),c(s.vnode,e,t,i,s,l,n,e.slotScopeIds,r),Bt((()=>{s.isDeactivated=!1,s.a&&(0,o.ir)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&Ai(t,s.parent,e)}),l)},n.deactivate=e=>{const t=e.component;d(e,g,null,1,l),Bt((()=>{t.da&&(0,o.ir)(t.da);const i=e.props&&e.props.onVnodeUnmounted;i&&Ai(i,t.parent,e),t.isDeactivated=!0}),l)},ee((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>ke(e,t))),t&&f((e=>!ke(t,e)))}),{flush:"post",deep:!0});let v=null;const _=()=>{null!=v&&r.set(v,Ie(i.subTree))};return Pe(_),Fe(_),Be((()=>{r.forEach((e=>{const{subTree:t,suspense:n}=i,o=Ie(t);if(e.type!==o.type||e.key!==o.key)p(e);else{Te(o);const e=o.component.da;e&&Bt(e,n)}}))})),()=>{if(v=null,!t.default)return null;const i=t.default(),n=i[0];if(i.length>1)return a=null,i;if(!mi(n)||!(4&n.shapeFlag)&&!(128&n.shapeFlag))return a=null,n;let o=Ie(n);const l=o.type,c=en(we(o)?o.type.__asyncResolved||{}:l),{include:d,exclude:u,max:h}=e;if(d&&(!c||!ke(d,c))||u&&c&&ke(u,c))return a=o,n;const g=null==o.key?l:o.key,p=r.get(g);return o.el&&(o=ki(o),128&n.shapeFlag&&(n.ssContent=o)),v=g,p?(o.el=p.el,o.component=p.component,o.transition&&_e(o,o.transition),o.shapeFlag|=512,s.delete(g),s.add(g)):(s.add(g),h&&s.size>parseInt(h,10)&&m(s.values().next().value)),o.shapeFlag|=256,a=o,Z(n.type)?n:o}}},xe=Se;function ke(e,t){return(0,o.kJ)(e)?e.some((e=>ke(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!(0,o.Kj)(e)&&e.test(t)}function Le(e,t){Ne(e,"a",t)}function Ee(e,t){Ne(e,"da",t)}function Ne(e,t,i=Fi){const n=e.__wdc||(e.__wdc=()=>{let t=i;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Re(t,n,i),i){let e=i.parent;while(e&&e.parent)Ce(e.parent.vnode)&&De(n,t,i,e),e=e.parent}}function De(e,t,i,n){const r=Re(t,e,n,!0);He((()=>{(0,o.Od)(n[t],r)}),i)}function Te(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ie(e){return 128&e.shapeFlag?e.ssContent:e}function Re(e,t,i=Fi,o=!1){if(i){const r=i[e]||(i[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(i.isUnmounted)return;(0,n.Jd)();const r=Vi(i),a=s(t,i,e,o);return r(),(0,n.lk)(),a});return o?r.unshift(a):r.push(a),a}}const Ae=e=>(t,i=Fi)=>(!qi||"sp"===e)&&Re(e,((...e)=>t(...e)),i),Oe=Ae("bm"),Pe=Ae("m"),Me=Ae("bu"),Fe=Ae("u"),Be=Ae("bum"),He=Ae("um"),We=Ae("sp"),Ve=Ae("rtg"),je=Ae("rtc");function ze(e,t=Fi){Re("ec",e,t)}function Ue(e,t,i,n){let r;const s=i&&i[n];if((0,o.kJ)(e)||(0,o.HD)(e)){r=new Array(e.length);for(let i=0,n=e.length;it(e,i,void 0,s&&s[i])));else{const i=Object.keys(e);r=new Array(i.length);for(let n=0,o=i.length;n{const t=n.fn(...e);return t&&(t.key=n.key),t}:n.fn)}return e}function qe(e,t,i={},n,o){if(R.isCE||R.parent&&we(R.parent)&&R.parent.isCE)return"default"!==t&&(i.name=t),Ci("slot",i,n&&n());let r=e[t];r&&r._c&&(r._d=!1),ci();const s=r&&Ke(r(i)),a=fi(ni,{key:i.key||s&&s.key||`_${t}`},s||(n?n():[]),s&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Ke(e){return e.some((e=>!mi(e)||e.type!==ri&&!(e.type===ni&&!Ke(e.children))))?e:null}const Ge=e=>e?zi(e)?Xi(e)||e.proxy:Ge(e.parent):null,Ze=(0,o.l7)(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=>Ge(e.parent),$root:e=>Ge(e.root),$emit:e=>e.emit,$options:e=>ot(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,y(e.update)}),$nextTick:e=>e.n||(e.n=_.bind(e.proxy)),$watch:e=>ie.bind(e)}),Qe=(e,t)=>e!==o.kT&&!e.__isScriptSetup&&(0,o.RI)(e,t),Ye={get({_:e},t){const{ctx:i,setupState:r,data:s,props:a,accessCache:l,type:c,appContext:d}=e;let u;if("$"!==t[0]){const n=l[t];if(void 0!==n)switch(n){case 1:return r[t];case 2:return s[t];case 4:return i[t];case 3:return a[t]}else{if(Qe(r,t))return l[t]=1,r[t];if(s!==o.kT&&(0,o.RI)(s,t))return l[t]=2,s[t];if((u=e.propsOptions[0])&&(0,o.RI)(u,t))return l[t]=3,a[t];if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=4,i[t];Xe&&(l[t]=0)}}const h=Ze[t];let g,p;return h?("$attrs"===t&&(0,n.j)(e,"get",t),h(e)):(g=c.__cssModules)&&(g=g[t])?g:i!==o.kT&&(0,o.RI)(i,t)?(l[t]=4,i[t]):(p=d.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,i){const{data:n,setupState:r,ctx:s}=e;return Qe(r,t)?(r[t]=i,!0):n!==o.kT&&(0,o.RI)(n,t)?(n[t]=i,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=i,!0))},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,propsOptions:s}},a){let l;return!!i[a]||e!==o.kT&&(0,o.RI)(e,a)||Qe(t,a)||(l=s[0])&&(0,o.RI)(l,a)||(0,o.RI)(n,a)||(0,o.RI)(Ze,a)||(0,o.RI)(r.config.globalProperties,a)},defineProperty(e,t,i){return null!=i.get?e._.accessCache[t]=0:(0,o.RI)(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function Je(e){return(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Xe=!0;function et(e){const t=ot(e),i=e.proxy,r=e.ctx;Xe=!1,t.beforeCreate&&it(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:d,inject:u,created:h,beforeMount:g,mounted:p,beforeUpdate:f,updated:m,activated:v,deactivated:_,beforeDestroy:b,beforeUnmount:y,destroyed:w,unmounted:C,render:S,renderTracked:x,renderTriggered:k,errorCaptured:L,serverPrefetch:E,expose:N,inheritAttrs:D,components:T,directives:I,filters:R}=t,A=null;if(u&&tt(u,r,A),l)for(const n in l){const e=l[n];(0,o.mf)(e)&&(r[n]=e.bind(i))}if(s){0;const t=s.call(i,i);0,(0,o.Kn)(t)&&(e.data=(0,n.qj)(t))}if(Xe=!0,a)for(const n in a){const e=a[n],t=(0,o.mf)(e)?e.bind(i,i):(0,o.mf)(e.get)?e.get.bind(i,i):o.dG;0;const s=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(i):o.dG,l=nn({get:t,set:s});Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const n in c)nt(c[n],r,i,n);if(d){const e=(0,o.mf)(d)?d.call(i):d;Reflect.ownKeys(e).forEach((t=>{_t(t,e[t])}))}function O(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(i)))):t&&e(t.bind(i))}if(h&&it(h,e,"c"),O(Oe,g),O(Pe,p),O(Me,f),O(Fe,m),O(Le,v),O(Ee,_),O(ze,L),O(je,x),O(Ve,k),O(Be,y),O(He,C),O(We,E),(0,o.kJ)(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.dG&&(e.render=S),null!=D&&(e.inheritAttrs=D),T&&(e.components=T),I&&(e.directives=I)}function tt(e,t,i=o.dG){(0,o.kJ)(e)&&(e=ct(e));for(const r in e){const i=e[r];let s;s=(0,o.Kn)(i)?"default"in i?bt(i.from||r,i.default,!0):bt(i.from||r):bt(i),(0,n.dq)(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[r]=s}}function it(e,t,i){s((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,i)}function nt(e,t,i,n){const r=n.includes(".")?ne(i,n):()=>i[n];if((0,o.HD)(e)){const i=t[e];(0,o.mf)(i)&&ee(r,i)}else if((0,o.mf)(e))ee(r,e.bind(i));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>nt(e,t,i,n)));else{const n=(0,o.mf)(e.handler)?e.handler.bind(i):t[e.handler];(0,o.mf)(n)&&ee(r,n,e)}else 0}function ot(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let c;return l?c=l:r.length||i||n?(c={},r.length&&r.forEach((e=>rt(c,e,a,!0))),rt(c,t,a)):c=t,(0,o.Kn)(t)&&s.set(t,c),c}function rt(e,t,i,n=!1){const{mixins:o,extends:r}=t;r&&rt(e,r,i,!0),o&&o.forEach((t=>rt(e,t,i,!0)));for(const s in t)if(n&&"expose"===s);else{const n=st[s]||i&&i[s];e[s]=n?n(e[s],t[s]):t[s]}return e}const st={data:at,props:ht,emits:ht,methods:ut,computed:ut,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:ut,directives:ut,watch:gt,provide:at,inject:lt};function at(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function lt(e,t){return ut(ct(e),ct(t))}function ct(e){if((0,o.kJ)(e)){const t={};for(let i=0;i1)return i&&(0,o.mf)(t)?t.call(n&&n.proxy):t}else 0}function yt(e,t,i,r=!1){const s={},a={};(0,o.Nj)(a,_i,1),e.propsDefaults=Object.create(null),Ct(e,t,s,a);for(const n in e.propsOptions[0])n in s||(s[n]=void 0);i?e.props=r?s:(0,n.Um)(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function wt(e,t,i,r){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,n.IU)(s),[d]=e.propsOptions;let u=!1;if(!(r||l>0)||16&l){let n;Ct(e,t,s,a)&&(u=!0);for(const r in c)t&&((0,o.RI)(t,r)||(n=(0,o.rs)(r))!==r&&(0,o.RI)(t,n))||(d?!i||void 0===i[r]&&void 0===i[n]||(s[r]=St(d,c,r,void 0,e,!0)):delete s[r]);if(a!==c)for(const e in a)t&&(0,o.RI)(t,e)||(delete a[e],u=!0)}else if(8&l){const i=e.vnode.dynamicProps;for(let n=0;n{c=!0;const[i,n]=xt(e,t,!0);(0,o.l7)(a,i),n&&l.push(...n)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!c)return(0,o.Kn)(e)&&n.set(e,o.Z6),o.Z6;if((0,o.kJ)(s))for(let u=0;u-1,n[1]=i<0||e-1||(0,o.RI)(n,"default"))&&l.push(t)}}}}const d=[a,l];return(0,o.Kn)(e)&&n.set(e,d),d}function kt(e){return"$"!==e[0]&&!(0,o.Gg)(e)}function Lt(e){if(null===e)return"null";if("function"===typeof e)return e.name||"";if("object"===typeof e){const t=e.constructor&&e.constructor.name;return t||""}return""}function Et(e,t){return Lt(e)===Lt(t)}function Nt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>Et(t,e))):(0,o.mf)(t)&&Et(t,e)?0:-1}const Dt=e=>"_"===e[0]||"$stable"===e,Tt=e=>(0,o.kJ)(e)?e.map(Di):[Di(e)],It=(e,t,i)=>{if(t._n)return t;const n=P(((...e)=>Tt(t(...e))),i);return n._c=!1,n},Rt=(e,t,i)=>{const n=e._ctx;for(const r in e){if(Dt(r))continue;const i=e[r];if((0,o.mf)(i))t[r]=It(r,i,n);else if(null!=i){0;const e=Tt(i);t[r]=()=>e}}},At=(e,t)=>{const i=Tt(t);e.slots.default=()=>i},Ot=(e,t)=>{if(32&e.vnode.shapeFlag){const i=t._;i?(e.slots=(0,n.IU)(t),(0,o.Nj)(t,"_",i)):Rt(t,e.slots={})}else e.slots={},t&&At(e,t);(0,o.Nj)(e.slots,_i,1)},Pt=(e,t,i)=>{const{vnode:n,slots:r}=e;let s=!0,a=o.kT;if(32&n.shapeFlag){const e=t._;e?i&&1===e?s=!1:((0,o.l7)(r,t),i||1!==e||delete r._):(s=!t.$stable,Rt(t,r)),a=t}else t&&(At(e,t),a={default:1});if(s)for(const o in r)Dt(o)||null!=a[o]||delete r[o]};function Mt(e,t,i,s,a=!1){if((0,o.kJ)(e))return void e.forEach(((e,n)=>Mt(e,t&&((0,o.kJ)(t)?t[n]:t),i,s,a)));if(we(s)&&!a)return;const l=4&s.shapeFlag?Xi(s.component)||s.component.proxy:s.el,c=a?null:l,{i:d,r:u}=e;const h=t&&t.r,g=d.refs===o.kT?d.refs={}:d.refs,p=d.setupState;if(null!=h&&h!==u&&((0,o.HD)(h)?(g[h]=null,(0,o.RI)(p,h)&&(p[h]=null)):(0,n.dq)(h)&&(h.value=null)),(0,o.mf)(u))r(u,d,12,[c,g]);else{const t=(0,o.HD)(u),r=(0,n.dq)(u);if(t||r){const n=()=>{if(e.f){const i=t?(0,o.RI)(p,u)?p[u]:g[u]:u.value;a?(0,o.kJ)(i)&&(0,o.Od)(i,l):(0,o.kJ)(i)?i.includes(l)||i.push(l):t?(g[u]=[l],(0,o.RI)(p,u)&&(p[u]=g[u])):(u.value=[l],e.k&&(g[e.k]=u.value))}else t?(g[u]=c,(0,o.RI)(p,u)&&(p[u]=c)):r&&(u.value=c,e.k&&(g[e.k]=c))};c?(n.id=-1,Bt(n,i)):n()}else 0}}function Ft(){}const Bt=Q;function Ht(e){return Wt(e)}function Wt(e,t){Ft();const i=(0,o.E9)();i.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:l,createText:c,createComment:d,setText:u,setElementText:h,parentNode:g,nextSibling:p,setScopeId:f=o.dG,insertStaticContent:m}=e,v=(e,t,i,n=null,o=null,r=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!vi(e,t)&&(n=J(e),K(e,o,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case oi:_(e,t,i,n);break;case ri:b(e,t,i,n);break;case si:null==e&&w(t,i,n,s);break;case ni:O(e,t,i,n,o,r,s,a,l);break;default:1&u?E(e,t,i,n,o,r,s,a,l):6&u?P(e,t,i,n,o,r,s,a,l):(64&u||128&u)&&c.process(e,t,i,n,o,r,s,a,l,te)}null!=d&&o&&Mt(d,e&&e.ref,r,t||e,!t)},_=(e,t,i,n)=>{if(null==e)r(t.el=c(t.children),i,n);else{const i=t.el=e.el;t.children!==e.children&&u(i,t.children)}},b=(e,t,i,n)=>{null==e?r(t.el=d(t.children||""),i,n):t.el=e.el},w=(e,t,i,n)=>{[e.el,e.anchor]=m(e.children,t,i,n,e.el,e.anchor)},S=({el:e,anchor:t},i,n)=>{let o;while(e&&e!==t)o=p(e),r(e,i,n),e=o;r(t,i,n)},L=({el:e,anchor:t})=>{let i;while(e&&e!==t)i=p(e),s(e),e=i;s(t)},E=(e,t,i,n,o,r,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?N(t,i,n,o,r,s,a,l):I(e,t,o,r,s,a,l)},N=(e,t,i,n,s,c,d,u)=>{let g,p;const{props:f,shapeFlag:m,transition:v,dirs:_}=e;if(g=e.el=l(e.type,c,f&&f.is,f),8&m?h(g,e.children):16&m&&T(e.children,g,null,n,s,Vt(e,c),d,u),_&&se(e,null,n,"created"),D(g,e,e.scopeId,d,n),f){for(const t in f)"value"===t||(0,o.Gg)(t)||a(g,t,null,f[t],c,e.children,n,s,Y);"value"in f&&a(g,"value",null,f.value,c),(p=f.onVnodeBeforeMount)&&Ai(p,n,e)}_&&se(e,null,n,"beforeMount");const b=zt(s,v);b&&v.beforeEnter(g),r(g,t,i),((p=f&&f.onVnodeMounted)||b||_)&&Bt((()=>{p&&Ai(p,n,e),b&&v.enter(g),_&&se(e,null,n,"mounted")}),s)},D=(e,t,i,n,o)=>{if(i&&f(e,i),n)for(let r=0;r{for(let c=l;c{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:g}=t;d|=16&e.patchFlag;const p=e.props||o.kT,f=t.props||o.kT;let m;if(i&&jt(i,!1),(m=f.onVnodeBeforeUpdate)&&Ai(m,i,t,e),g&&se(t,e,i,"beforeUpdate"),i&&jt(i,!0),u?R(e.dynamicChildren,u,c,i,n,Vt(t,r),s):l||z(e,t,c,null,i,n,Vt(t,r),s,!1),d>0){if(16&d)A(c,t,p,f,i,n,r);else if(2&d&&p.class!==f.class&&a(c,"class",null,f.class,r),4&d&&a(c,"style",p.style,f.style,r),8&d){const o=t.dynamicProps;for(let t=0;t{m&&Ai(m,i,t,e),g&&se(t,e,i,"updated")}),n)},R=(e,t,i,n,o,r,s)=>{for(let a=0;a{if(i!==n){if(i!==o.kT)for(const c in i)(0,o.Gg)(c)||c in n||a(e,c,i[c],null,l,t.children,r,s,Y);for(const c in n){if((0,o.Gg)(c))continue;const d=n[c],u=i[c];d!==u&&"value"!==c&&a(e,c,u,d,l,t.children,r,s,Y)}"value"in n&&a(e,"value",i.value,n.value,l)}},O=(e,t,i,n,o,s,a,l,d)=>{const u=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c("");let{patchFlag:g,dynamicChildren:p,slotScopeIds:f}=t;f&&(l=l?l.concat(f):f),null==e?(r(u,i,n),r(h,i,n),T(t.children||[],i,h,o,s,a,l,d)):g>0&&64&g&&p&&e.dynamicChildren?(R(e.dynamicChildren,p,i,o,s,a,l),(null!=t.key||o&&t===o.subTree)&&Ut(e,t,!0)):z(e,t,i,h,o,s,a,l,d)},P=(e,t,i,n,o,r,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,i,n,s,l):F(t,i,n,o,r,s,l):B(e,t,l)},F=(e,t,i,n,o,r,s)=>{const a=e.component=Mi(e,n,o);if(Ce(e)&&(a.ctx.renderer=te),Ki(a),a.asyncDep){if(o&&o.registerDep(a,W),!e.el){const e=a.subTree=Ci(ri);b(null,e,t,i)}}else W(a,e,t,i,o,r,s)},B=(e,t,i)=>{const n=t.component=e.component;if(H(e,t,i)){if(n.asyncDep&&!n.asyncResolved)return void j(n,t,i);n.next=t,C(n.update),n.effect.dirty=!0,n.update()}else t.el=e.el,n.vnode=t},W=(e,t,i,r,s,a,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:i,u:n,parent:r,vnode:d}=e;{const i=qt(e);if(i)return t&&(t.el=d.el,j(e,t,l)),void i.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,h=t;0,jt(e,!1),t?(t.el=d.el,j(e,t,l)):t=d,i&&(0,o.ir)(i),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Ai(u,r,t,d),jt(e,!0);const p=M(e);0;const f=e.subTree;e.subTree=p,v(f,p,g(f.el),J(f),e,s,a),t.el=p.el,null===h&&V(e,p.el),n&&Bt(n,s),(u=t.props&&t.props.onVnodeUpdated)&&Bt((()=>Ai(u,r,t,d)),s)}else{let n;const{el:l,props:c}=t,{bm:d,m:u,parent:h}=e,g=we(t);if(jt(e,!1),d&&(0,o.ir)(d),!g&&(n=c&&c.onVnodeBeforeMount)&&Ai(n,h,t),jt(e,!0),l&&ne){const i=()=>{e.subTree=M(e),ne(l,e.subTree,e,s,null)};g?t.type.__asyncLoader().then((()=>!e.isUnmounted&&i())):i()}else{0;const n=e.subTree=M(e);0,v(null,n,i,r,e,s,a),t.el=n.el}if(u&&Bt(u,s),!g&&(n=c&&c.onVnodeMounted)){const e=t;Bt((()=>Ai(n,h,e)),s)}(256&t.shapeFlag||h&&we(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Bt(e.a,s),e.isMounted=!0,t=i=r=null}},d=e.effect=new n.qq(c,o.dG,(()=>y(u)),e.scope),u=e.update=()=>{d.dirty&&d.run()};u.id=e.uid,jt(e,!0),u()},j=(e,t,i)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,wt(e,t.props,o,i),Pt(e,t.children,i),(0,n.Jd)(),x(e),(0,n.lk)()},z=(e,t,i,n,o,r,s,a,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,u=t.children,{patchFlag:g,shapeFlag:p}=t;if(g>0){if(128&g)return void $(c,u,i,n,o,r,s,a,l);if(256&g)return void U(c,u,i,n,o,r,s,a,l)}8&p?(16&d&&Y(c,o,r),u!==c&&h(i,u)):16&d?16&p?$(c,u,i,n,o,r,s,a,l):Y(c,o,r,!0):(8&d&&h(i,""),16&p&&T(u,i,n,o,r,s,a,l))},U=(e,t,i,n,r,s,a,l,c)=>{e=e||o.Z6,t=t||o.Z6;const d=e.length,u=t.length,h=Math.min(d,u);let g;for(g=0;gu?Y(e,r,s,!0,!1,h):T(t,i,n,r,s,a,l,c,h)},$=(e,t,i,n,r,s,a,l,c)=>{let d=0;const u=t.length;let h=e.length-1,g=u-1;while(d<=h&&d<=g){const n=e[d],o=t[d]=c?Ti(t[d]):Di(t[d]);if(!vi(n,o))break;v(n,o,i,null,r,s,a,l,c),d++}while(d<=h&&d<=g){const n=e[h],o=t[g]=c?Ti(t[g]):Di(t[g]);if(!vi(n,o))break;v(n,o,i,null,r,s,a,l,c),h--,g--}if(d>h){if(d<=g){const e=g+1,o=eg)while(d<=h)K(e[d],r,s,!0),d++;else{const p=d,f=d,m=new Map;for(d=f;d<=g;d++){const e=t[d]=c?Ti(t[d]):Di(t[d]);null!=e.key&&m.set(e.key,d)}let _,b=0;const y=g-f+1;let w=!1,C=0;const S=new Array(y);for(d=0;d=y){K(n,r,s,!0);continue}let o;if(null!=n.key)o=m.get(n.key);else for(_=f;_<=g;_++)if(0===S[_-f]&&vi(n,t[_])){o=_;break}void 0===o?K(n,r,s,!0):(S[o-f]=d+1,o>=C?C=o:w=!0,v(n,t[o],i,null,r,s,a,l,c),b++)}const x=w?$t(S):o.Z6;for(_=x.length-1,d=y-1;d>=0;d--){const e=f+d,o=t[e],h=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:d}=e;if(6&d)return void q(e.component.subTree,t,i,n);if(128&d)return void e.suspense.move(t,i,n);if(64&d)return void a.move(e,t,i,te);if(a===ni){r(s,t,i);for(let e=0;el.enter(s)),o);else{const{leave:e,delayLeave:n,afterLeave:o}=l,a=()=>r(s,t,i),c=()=>{e(s,(()=>{a(),o&&o()}))};n?n(s,a,c):c()}else r(s,t,i)},K=(e,t,i,n=!1,o=!1)=>{const{type:r,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:h}=e;if(null!=a&&Mt(a,null,i,e,!0),256&d)return void t.ctx.deactivate(e);const g=1&d&&h,p=!we(e);let f;if(p&&(f=s&&s.onVnodeBeforeUnmount)&&Ai(f,t,e),6&d)Q(e.component,i,n);else{if(128&d)return void e.suspense.unmount(i,n);g&&se(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,i,o,te,n):c&&(r!==ni||u>0&&64&u)?Y(c,t,i,!1,!0):(r===ni&&384&u||!o&&16&d)&&Y(l,t,i),n&&G(e)}(p&&(f=s&&s.onVnodeUnmounted)||g)&&Bt((()=>{f&&Ai(f,t,e),g&&se(e,null,t,"unmounted")}),i)},G=e=>{const{type:t,el:i,anchor:n,transition:o}=e;if(t===ni)return void Z(i,n);if(t===si)return void L(e);const r=()=>{s(i),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:n}=o,s=()=>t(i,r);n?n(e.el,r,s):s()}else r()},Z=(e,t)=>{let i;while(e!==t)i=p(e),s(e),e=i;s(t)},Q=(e,t,i)=>{const{bum:n,scope:r,update:s,subTree:a,um:l}=e;n&&(0,o.ir)(n),r.stop(),s&&(s.active=!1,K(a,e,t,i)),l&&Bt(l,t),Bt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,i,n=!1,o=!1,r=0)=>{for(let s=r;s6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el);let X=!1;const ee=(e,t,i)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,i),X||(X=!0,x(),k(),X=!1),t._vnode=e},te={p:v,um:K,m:q,r:G,mt:F,mc:T,pc:z,pbc:R,n:J,o:e};let ie,ne;return t&&([ie,ne]=t(te)),{render:ee,hydrate:ie,createApp:mt(ee,ie)}}function Vt({type:e,props:t},i){return"svg"===i&&"foreignObject"===e||"mathml"===i&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function jt({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function zt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ut(e,t,i=!1){const n=e.children,r=t.children;if((0,o.kJ)(n)&&(0,o.kJ)(r))for(let o=0;o>1,e[i[a]]0&&(t[n]=i[r-1]),i[r]=n)}}r=i.length,s=i[r-1];while(r-- >0)i[r]=s,s=t[s];return i}function qt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qt(t)}const Kt=e=>e.__isTeleport,Gt=e=>e&&(e.disabled||""===e.disabled),Zt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Qt=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,Yt=(e,t)=>{const i=e&&e.to;if((0,o.HD)(i)){if(t){const e=t(i);return e}return null}return i},Jt={name:"Teleport",__isTeleport:!0,process(e,t,i,n,o,r,s,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:g,querySelector:p,createText:f,createComment:m}}=c,v=Gt(t.props);let{shapeFlag:_,children:b,dynamicChildren:y}=t;if(null==e){const e=t.el=f(""),c=t.anchor=f("");g(e,i,n),g(c,i,n);const u=t.target=Yt(t.props,p),h=t.targetAnchor=f("");u&&(g(h,u),"svg"===s||Zt(u)?s="svg":("mathml"===s||Qt(u))&&(s="mathml"));const m=(e,t)=>{16&_&&d(b,e,t,o,r,s,a,l)};v?m(i,c):u&&m(u,h)}else{t.el=e.el;const n=t.anchor=e.anchor,d=t.target=e.target,g=t.targetAnchor=e.targetAnchor,f=Gt(e.props),m=f?i:d,_=f?n:g;if("svg"===s||Zt(d)?s="svg":("mathml"===s||Qt(d))&&(s="mathml"),y?(h(e.dynamicChildren,y,m,o,r,s,a),Ut(e,t,!0)):l||u(e,t,m,_,o,r,s,a,!1),v)f?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xt(t,i,n,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Yt(t.props,p);e&&Xt(t,e,null,c,0)}else f&&Xt(t,d,g,c,1)}ii(t)},remove(e,t,i,n,{um:o,o:{remove:r}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&r(d),s&&r(c),16&a){const e=s||!Gt(h);for(let n=0;n0?li||o.Z6:null,di(),ui>0&&li&&li.push(e),e}function pi(e,t,i,n,o,r){return gi(wi(e,t,i,n,o,r,!0))}function fi(e,t,i,n,o){return gi(Ci(e,t,i,n,o,!0))}function mi(e){return!!e&&!0===e.__v_isVNode}function vi(e,t){return e.type===t.type&&e.key===t.key}const _i="__vInternal",bi=({key:e})=>null!=e?e:null,yi=({ref:e,ref_key:t,ref_for:i})=>("number"===typeof e&&(e=""+e),null!=e?(0,o.HD)(e)||(0,n.dq)(e)||(0,o.mf)(e)?{i:R,r:e,k:t,f:!!i}:e:null);function wi(e,t=null,i=null,n=0,r=null,s=(e===ni?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bi(t),ref:t&&yi(t),scopeId:A,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:R};return l?(Ii(c,i),128&s&&e.normalize(c)):i&&(c.shapeFlag|=(0,o.HD)(i)?8:16),ui>0&&!a&&li&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&li.push(c),c}const Ci=Si;function Si(e,t=null,i=null,r=0,s=null,a=!1){if(e&&e!==$||(e=ri),mi(e)){const n=ki(e,t,!0);return i&&Ii(n,i),ui>0&&!a&&li&&(6&n.shapeFlag?li[li.indexOf(e)]=n:li.push(n)),n.patchFlag|=-2,n}if(tn(e)&&(e=e.__vccOpts),t){t=xi(t);let{class:e,style:i}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(i)&&((0,n.X3)(i)&&!(0,o.kJ)(i)&&(i=(0,o.l7)({},i)),t.style=(0,o.j5)(i))}const l=(0,o.HD)(e)?1:Z(e)?128:Kt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return wi(e,t,i,r,s,l,a,!0)}function xi(e){return e?(0,n.X3)(e)||_i in e?(0,o.l7)({},e):e:null}function ki(e,t,i=!1){const{props:n,ref:r,patchFlag:s,children:a}=e,l=t?Ri(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&bi(l),ref:t&&t.ref?i&&r?(0,o.kJ)(r)?r.concat(yi(t)):[r,yi(t)]:yi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ni?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ki(e.ssContent),ssFallback:e.ssFallback&&ki(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c}function Li(e=" ",t=0){return Ci(oi,null,e,t)}function Ei(e,t){const i=Ci(si,null,e);return i.staticCount=t,i}function Ni(e="",t=!1){return t?(ci(),fi(ri,null,e)):Ci(ri,null,e)}function Di(e){return null==e||"boolean"===typeof e?Ci(ri):(0,o.kJ)(e)?Ci(ni,null,e.slice()):"object"===typeof e?Ti(e):Ci(oi,null,String(e))}function Ti(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ki(e)}function Ii(e,t){let i=0;const{shapeFlag:n}=e;if(null==t)t=null;else if((0,o.kJ)(t))i=16;else if("object"===typeof t){if(65&n){const i=t.default;return void(i&&(i._c&&(i._d=!1),Ii(e,i()),i._c&&(i._d=!0)))}{i=32;const n=t._;n||_i in t?3===n&&R&&(1===R.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=R}}else(0,o.mf)(t)?(t={default:t,_ctx:R},i=32):(t=String(t),64&n?(i=16,t=[Li(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ri(...e){const t={};for(let i=0;iFi||R;let Hi,Wi;{const e=(0,o.E9)(),t=(t,i)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(i),e=>{n.length>1?n.forEach((t=>t(e))):n[0](e)}};Hi=t("__VUE_INSTANCE_SETTERS__",(e=>Fi=e)),Wi=t("__VUE_SSR_SETTERS__",(e=>qi=e))}const Vi=e=>{const t=Fi;return Hi(e),e.scope.on(),()=>{e.scope.off(),Hi(t)}},ji=()=>{Fi&&Fi.scope.off(),Hi(null)};function zi(e){return 4&e.vnode.shapeFlag}let Ui,$i,qi=!1;function Ki(e,t=!1){t&&Wi(t);const{props:i,children:n}=e.vnode,o=zi(e);yt(e,i,o,t),Ot(e,n);const r=o?Gi(e,t):void 0;return t&&Wi(!1),r}function Gi(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=(0,n.Xl)(new Proxy(e.ctx,Ye));const{setup:s}=i;if(s){const i=e.setupContext=s.length>1?Ji(e):null,l=Vi(e);(0,n.Jd)();const c=r(s,e,0,[e.props,i]);if((0,n.lk)(),l(),(0,o.tI)(c)){if(c.then(ji,ji),t)return c.then((i=>{Zi(e,i,t)})).catch((t=>{a(t,e,0)}));e.asyncDep=c}else Zi(e,c,t)}else Qi(e,t)}function Zi(e,t,i){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,n.WL)(t)),Qi(e,i)}function Qi(e,t,i){const r=e.type;if(!e.render){if(!t&&Ui&&!r.render){const t=r.template||ot(e).template;if(t){0;const{isCustomElement:i,compilerOptions:n}=e.appContext.config,{delimiters:s,compilerOptions:a}=r,l=(0,o.l7)((0,o.l7)({isCustomElement:i,delimiters:s},n),a);r.render=Ui(t,l)}}e.render=r.render||o.dG,$i&&$i(e)}{const t=Vi(e);(0,n.Jd)();try{et(e)}finally{(0,n.lk)(),t()}}}function Yi(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,i){return(0,n.j)(e,"get","$attrs"),t[i]}}))}function Ji(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return Yi(e)},slots:e.slots,emit:e.emit,expose:t}}function Xi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,n.WL)((0,n.Xl)(e.exposed)),{get(t,i){return i in t?t[i]:i in Ze?Ze[i](e):void 0},has(e,t){return t in e||t in Ze}}))}function en(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function tn(e){return(0,o.mf)(e)&&"__vccOpts"in e}const nn=(e,t)=>{const i=(0,n.Fl)(e,t,qi);return i};function on(e,t,i){const n=arguments.length;return 2===n?(0,o.Kn)(t)&&!(0,o.kJ)(t)?mi(t)?Ci(e,null,[t]):Ci(e,t):Ci(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):3===n&&mi(i)&&(i=[i]),Ci(e,t,i))}const rn="3.4.21"},61957:(e,t,i)=>{"use strict";i.d(t,{F8:()=>O,W3:()=>he,iM:()=>be,ri:()=>Se,uT:()=>p});var n=i(59835),o=i(86970),r=i(60499);
/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
-const r="http://www.w3.org/2000/svg",a="http://www.w3.org/1998/Math/MathML",l="undefined"!==typeof document?document:null,c=l&&l.createElement("template"),d={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const o="svg"===t?l.createElementNS(r,e):"mathml"===t?l.createElementNS(a,e):l.createElement(e,i?{is:i}:void 0);return"select"===e&&n&&null!=n.multiple&&o.setAttribute("multiple",n.multiple),o},createText:e=>l.createTextNode(e),createComment:e=>l.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>l.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,o,s){const r=i?i.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),i),o===s||!(o=o.nextSibling))break}else{c.innerHTML="svg"===n?``:"mathml"===n?``:e;const o=c.content;if("svg"===n||"mathml"===n){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,i)}return[r?r.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},u="transition",h="animation",g=Symbol("_vtc"),p=(e,{slots:t})=>(0,n.h)(n.P$,b(e),t);p.displayName="Transition";const f={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},m=p.props=(0,o.l7)({},n.nJ,f),v=(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},_=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function b(e){const t={};for(const o in e)o in f||(t[o]=e[o]);if(!1===e.css)return t;const{name:i="v",type:n,duration:s,enterFromClass:r=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:l=`${i}-enter-to`,appearFromClass:c=r,appearActiveClass:d=a,appearToClass:u=l,leaveFromClass:h=`${i}-leave-from`,leaveActiveClass:g=`${i}-leave-active`,leaveToClass:p=`${i}-leave-to`}=e,m=y(s),b=m&&m[0],w=m&&m[1],{onBeforeEnter:k,onEnter:E,onEnterCancelled:N,onLeave:D,onLeaveCancelled:I,onBeforeAppear:R=k,onAppear:A=E,onAppearCancelled:O=N}=t,P=(e,t,i)=>{S(e,t?u:l),S(e,t?d:a),i&&i()},M=(e,t)=>{e._isLeaving=!1,S(e,h),S(e,p),S(e,g),t&&t()},F=e=>(t,i)=>{const o=e?A:E,s=()=>P(t,e,i);v(o,[t,s]),x((()=>{S(t,e?c:r),C(t,e?u:l),_(o)||L(t,n,b,s)}))};return(0,o.l7)(t,{onBeforeEnter(e){v(k,[e]),C(e,r),C(e,a)},onBeforeAppear(e){v(R,[e]),C(e,c),C(e,d)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const i=()=>M(e,t);C(e,h),T(),C(e,g),x((()=>{e._isLeaving&&(S(e,h),C(e,p),_(D)||L(e,n,w,i))})),v(D,[e,i])},onEnterCancelled(e){P(e,!1),v(N,[e])},onAppearCancelled(e){P(e,!0),v(O,[e])},onLeaveCancelled(e){M(e),v(I,[e])}})}function y(e){if(null==e)return null;if((0,o.Kn)(e))return[w(e.enter),w(e.leave)];{const t=w(e);return[t,t]}}function w(e){const t=(0,o.He)(e);return t}function C(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[g]||(e[g]=new Set)).add(t)}function S(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const i=e[g];i&&(i.delete(t),i.size||(e[g]=void 0))}function x(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let k=0;function L(e,t,i,n){const o=e._endId=++k,s=()=>{o===e._endId&&n()};if(i)return setTimeout(s,i);const{type:r,timeout:a,propCount:l}=E(e,t);if(!r)return n();const c=r+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d(i[e]||"").split(", "),o=n(`${u}Delay`),s=n(`${u}Duration`),r=N(o,s),a=n(`${h}Delay`),l=n(`${h}Duration`),c=N(a,l);let d=null,g=0,p=0;t===u?r>0&&(d=u,g=r,p=s.length):t===h?c>0&&(d=h,g=c,p=l.length):(g=Math.max(r,c),d=g>0?r>c?u:h:null,p=d?d===u?s.length:l.length:0);const f=d===u&&/\b(transform|all)(,|$)/.test(n(`${u}Property`).toString());return{type:d,timeout:g,propCount:p,hasTransform:f}}function N(e,t){while(e.lengthD(t)+D(e[i]))))}function D(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function T(){return document.body.offsetHeight}function I(e,t,i){const n=e[g];n&&(t=(t?[t,...n]:[...n]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const R=Symbol("_vod"),A=Symbol("_vsh"),O={beforeMount(e,{value:t},{transition:i}){e[R]="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):P(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!==!i&&(n?t?(n.beforeEnter(e),P(e,!0),n.enter(e)):n.leave(e,(()=>{P(e,!1)})):P(e,t))},beforeUnmount(e,{value:t}){P(e,t)}};function P(e,t){e.style.display=t?e[R]:"none",e[A]=!t}const M=Symbol("");const F=/(^|;)\s*display\s*:/;function B(e,t,i){const n=e.style,s=(0,o.HD)(i);let r=!1;if(i&&!s){if(t)if((0,o.HD)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==i[t]&&W(n,t,"")}else for(const e in t)null==i[e]&&W(n,e,"");for(const e in i)"display"===e&&(r=!0),W(n,e,i[e])}else if(s){if(t!==i){const e=n[M];e&&(i+=";"+e),n.cssText=i,r=F.test(i)}}else t&&e.removeAttribute("style");R in e&&(e[R]=r?n.display:"",e[A]&&(n.display="none"))}const H=/\s*!important$/;function W(e,t,i){if((0,o.kJ)(i))i.forEach((i=>W(e,t,i)));else if(null==i&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=z(e,t);H.test(i)?e.setProperty((0,o.rs)(n),i.replace(H,""),"important"):e[n]=i}}const V=["Webkit","Moz","ms"],j={};function z(e,t){const i=j[t];if(i)return i;let n=(0,o._A)(t);if("filter"!==n&&n in e)return j[t]=n;n=(0,o.kC)(n);for(let o=0;oX||(ee.then((()=>X=0)),X=Date.now());function ie(e,t){const i=e=>{if(e._vts){if(e._vts<=i.attached)return}else e._vts=Date.now();(0,n.$d)(ne(e,i.value),t,5,[e])};return i.value=e,i.attached=te(),i}function ne(e,t){if((0,o.kJ)(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const oe=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,se=(e,t,i,n,s,r,a,l,c)=>{const d="svg"===s;"class"===t?I(e,n,d):"style"===t?B(e,i,n):(0,o.F7)(t)?(0,o.tR)(t)||Q(e,t,i,n,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):re(e,t,n,d))?q(e,t,n,r,a,l,c):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),$(e,t,n,d))};function re(e,t,i,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&oe(t)&&(0,o.mf)(i));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!oe(t)||!(0,o.HD)(i))&&t in e}
+const s="http://www.w3.org/2000/svg",a="http://www.w3.org/1998/Math/MathML",l="undefined"!==typeof document?document:null,c=l&&l.createElement("template"),d={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const o="svg"===t?l.createElementNS(s,e):"mathml"===t?l.createElementNS(a,e):l.createElement(e,i?{is:i}:void 0);return"select"===e&&n&&null!=n.multiple&&o.setAttribute("multiple",n.multiple),o},createText:e=>l.createTextNode(e),createComment:e=>l.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>l.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,o,r){const s=i?i.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),i),o===r||!(o=o.nextSibling))break}else{c.innerHTML="svg"===n?``:"mathml"===n?``:e;const o=c.content;if("svg"===n||"mathml"===n){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,i)}return[s?s.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},u="transition",h="animation",g=Symbol("_vtc"),p=(e,{slots:t})=>(0,n.h)(n.P$,b(e),t);p.displayName="Transition";const f={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},m=p.props=(0,o.l7)({},n.nJ,f),v=(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},_=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function b(e){const t={};for(const o in e)o in f||(t[o]=e[o]);if(!1===e.css)return t;const{name:i="v",type:n,duration:r,enterFromClass:s=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:l=`${i}-enter-to`,appearFromClass:c=s,appearActiveClass:d=a,appearToClass:u=l,leaveFromClass:h=`${i}-leave-from`,leaveActiveClass:g=`${i}-leave-active`,leaveToClass:p=`${i}-leave-to`}=e,m=y(r),b=m&&m[0],w=m&&m[1],{onBeforeEnter:k,onEnter:E,onEnterCancelled:N,onLeave:D,onLeaveCancelled:I,onBeforeAppear:R=k,onAppear:A=E,onAppearCancelled:O=N}=t,P=(e,t,i)=>{S(e,t?u:l),S(e,t?d:a),i&&i()},M=(e,t)=>{e._isLeaving=!1,S(e,h),S(e,p),S(e,g),t&&t()},F=e=>(t,i)=>{const o=e?A:E,r=()=>P(t,e,i);v(o,[t,r]),x((()=>{S(t,e?c:s),C(t,e?u:l),_(o)||L(t,n,b,r)}))};return(0,o.l7)(t,{onBeforeEnter(e){v(k,[e]),C(e,s),C(e,a)},onBeforeAppear(e){v(R,[e]),C(e,c),C(e,d)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const i=()=>M(e,t);C(e,h),T(),C(e,g),x((()=>{e._isLeaving&&(S(e,h),C(e,p),_(D)||L(e,n,w,i))})),v(D,[e,i])},onEnterCancelled(e){P(e,!1),v(N,[e])},onAppearCancelled(e){P(e,!0),v(O,[e])},onLeaveCancelled(e){M(e),v(I,[e])}})}function y(e){if(null==e)return null;if((0,o.Kn)(e))return[w(e.enter),w(e.leave)];{const t=w(e);return[t,t]}}function w(e){const t=(0,o.He)(e);return t}function C(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[g]||(e[g]=new Set)).add(t)}function S(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const i=e[g];i&&(i.delete(t),i.size||(e[g]=void 0))}function x(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let k=0;function L(e,t,i,n){const o=e._endId=++k,r=()=>{o===e._endId&&n()};if(i)return setTimeout(r,i);const{type:s,timeout:a,propCount:l}=E(e,t);if(!s)return n();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,h),r()},h=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d(i[e]||"").split(", "),o=n(`${u}Delay`),r=n(`${u}Duration`),s=N(o,r),a=n(`${h}Delay`),l=n(`${h}Duration`),c=N(a,l);let d=null,g=0,p=0;t===u?s>0&&(d=u,g=s,p=r.length):t===h?c>0&&(d=h,g=c,p=l.length):(g=Math.max(s,c),d=g>0?s>c?u:h:null,p=d?d===u?r.length:l.length:0);const f=d===u&&/\b(transform|all)(,|$)/.test(n(`${u}Property`).toString());return{type:d,timeout:g,propCount:p,hasTransform:f}}function N(e,t){while(e.lengthD(t)+D(e[i]))))}function D(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function T(){return document.body.offsetHeight}function I(e,t,i){const n=e[g];n&&(t=(t?[t,...n]:[...n]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const R=Symbol("_vod"),A=Symbol("_vsh"),O={beforeMount(e,{value:t},{transition:i}){e[R]="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):P(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!==!i&&(n?t?(n.beforeEnter(e),P(e,!0),n.enter(e)):n.leave(e,(()=>{P(e,!1)})):P(e,t))},beforeUnmount(e,{value:t}){P(e,t)}};function P(e,t){e.style.display=t?e[R]:"none",e[A]=!t}const M=Symbol("");const F=/(^|;)\s*display\s*:/;function B(e,t,i){const n=e.style,r=(0,o.HD)(i);let s=!1;if(i&&!r){if(t)if((0,o.HD)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==i[t]&&W(n,t,"")}else for(const e in t)null==i[e]&&W(n,e,"");for(const e in i)"display"===e&&(s=!0),W(n,e,i[e])}else if(r){if(t!==i){const e=n[M];e&&(i+=";"+e),n.cssText=i,s=F.test(i)}}else t&&e.removeAttribute("style");R in e&&(e[R]=s?n.display:"",e[A]&&(n.display="none"))}const H=/\s*!important$/;function W(e,t,i){if((0,o.kJ)(i))i.forEach((i=>W(e,t,i)));else if(null==i&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=z(e,t);H.test(i)?e.setProperty((0,o.rs)(n),i.replace(H,""),"important"):e[n]=i}}const V=["Webkit","Moz","ms"],j={};function z(e,t){const i=j[t];if(i)return i;let n=(0,o._A)(t);if("filter"!==n&&n in e)return j[t]=n;n=(0,o.kC)(n);for(let o=0;oX||(ee.then((()=>X=0)),X=Date.now());function ie(e,t){const i=e=>{if(e._vts){if(e._vts<=i.attached)return}else e._vts=Date.now();(0,n.$d)(ne(e,i.value),t,5,[e])};return i.value=e,i.attached=te(),i}function ne(e,t){if((0,o.kJ)(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const oe=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,re=(e,t,i,n,r,s,a,l,c)=>{const d="svg"===r;"class"===t?I(e,n,d):"style"===t?B(e,i,n):(0,o.F7)(t)?(0,o.tR)(t)||Q(e,t,i,n,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):se(e,t,n,d))?q(e,t,n,s,a,l,c):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),$(e,t,n,d))};function se(e,t,i,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&oe(t)&&(0,o.mf)(i));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!oe(t)||!(0,o.HD)(i))&&t in e}
/*! #__NO_SIDE_EFFECTS__ */
/*! #__NO_SIDE_EFFECTS__ */
-"undefined"!==typeof HTMLElement&&HTMLElement;const ae=new WeakMap,le=new WeakMap,ce=Symbol("_moveCb"),de=Symbol("_enterCb"),ue={name:"TransitionGroup",props:(0,o.l7)({},m,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,n.Y8)();let r,a;return(0,n.ic)((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!me(r[0].el,i.vnode.el,t))return;r.forEach(ge),r.forEach(pe);const n=r.filter(fe);T(),n.forEach((e=>{const i=e.el,n=i.style;C(i,t),n.transform=n.webkitTransform=n.transitionDuration="";const o=i[ce]=e=>{e&&e.target!==i||e&&!/transform$/.test(e.propertyName)||(i.removeEventListener("transitionend",o),i[ce]=null,S(i,t))};i.addEventListener("transitionend",o)}))})),()=>{const l=(0,s.IU)(e),c=b(l);let d=l.tag||n.HY;r=a,a=t.default?(0,n.Q6)(t.default()):[];for(let e=0;e{e.split(/\s+/).forEach((e=>e&&n.classList.remove(e)))})),i.split(/\s+/).forEach((e=>e&&n.classList.add(e))),n.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(n);const{hasTransform:r}=E(n);return s.removeChild(n),r}Symbol("_assign");const ve=["ctrl","shift","alt","meta"],_e={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ve.some((i=>e[`${i}Key`]&&!t.includes(i)))},be=(e,t)=>{const i=e._withMods||(e._withMods={}),n=t.join(".");return i[n]||(i[n]=(i,...n)=>{for(let e=0;e{const t=Ce().createApp(...e);const{mount:i}=t;return t.mount=e=>{const n=ke(e);if(!n)return;const s=t._component;(0,o.mf)(s)||s.render||s.template||(s.template=n.innerHTML),n.innerHTML="";const r=i(n,!1,xe(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),r},t};function xe(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ke(e){if((0,o.HD)(e)){const t=document.querySelector(e);return t}return e}},86970:(e,t,i)=>{"use strict";
+"undefined"!==typeof HTMLElement&&HTMLElement;const ae=new WeakMap,le=new WeakMap,ce=Symbol("_moveCb"),de=Symbol("_enterCb"),ue={name:"TransitionGroup",props:(0,o.l7)({},m,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,n.Y8)();let s,a;return(0,n.ic)((()=>{if(!s.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!me(s[0].el,i.vnode.el,t))return;s.forEach(ge),s.forEach(pe);const n=s.filter(fe);T(),n.forEach((e=>{const i=e.el,n=i.style;C(i,t),n.transform=n.webkitTransform=n.transitionDuration="";const o=i[ce]=e=>{e&&e.target!==i||e&&!/transform$/.test(e.propertyName)||(i.removeEventListener("transitionend",o),i[ce]=null,S(i,t))};i.addEventListener("transitionend",o)}))})),()=>{const l=(0,r.IU)(e),c=b(l);let d=l.tag||n.HY;s=a,a=t.default?(0,n.Q6)(t.default()):[];for(let e=0;e{e.split(/\s+/).forEach((e=>e&&n.classList.remove(e)))})),i.split(/\s+/).forEach((e=>e&&n.classList.add(e))),n.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(n);const{hasTransform:s}=E(n);return r.removeChild(n),s}Symbol("_assign");const ve=["ctrl","shift","alt","meta"],_e={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ve.some((i=>e[`${i}Key`]&&!t.includes(i)))},be=(e,t)=>{const i=e._withMods||(e._withMods={}),n=t.join(".");return i[n]||(i[n]=(i,...n)=>{for(let e=0;e{const t=Ce().createApp(...e);const{mount:i}=t;return t.mount=e=>{const n=ke(e);if(!n)return;const r=t._component;(0,o.mf)(r)||r.render||r.template||(r.template=n.innerHTML),n.innerHTML="";const s=i(n,!1,xe(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),s},t};function xe(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ke(e){if((0,o.HD)(e)){const t=document.querySelector(e);return t}return e}},86970:(e,t,i)=>{"use strict";
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
-function n(e,t){const i=new Set(e.split(","));return t?e=>i.has(e.toLowerCase()):e=>i.has(e)}i.d(t,{C_:()=>Y,DM:()=>m,E9:()=>z,F7:()=>l,Gg:()=>D,HD:()=>y,He:()=>V,Kj:()=>_,Kn:()=>C,NO:()=>a,Nj:()=>H,Od:()=>u,PO:()=>E,Pq:()=>ee,RI:()=>g,S0:()=>N,W7:()=>L,WV:()=>ne,Z6:()=>s,_A:()=>R,_N:()=>f,aU:()=>F,dG:()=>r,fY:()=>n,h5:()=>W,hR:()=>M,hq:()=>oe,ir:()=>B,j5:()=>q,kC:()=>P,kJ:()=>p,kT:()=>o,l7:()=>d,mf:()=>b,rs:()=>O,tI:()=>S,tR:()=>c,vs:()=>J,yA:()=>te,yk:()=>w,yl:()=>$,zw:()=>se});const o={},s=[],r=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),d=Object.assign,u=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},h=Object.prototype.hasOwnProperty,g=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),v=e=>"[object Date]"===k(e),_=e=>"[object RegExp]"===k(e),b=e=>"function"===typeof e,y=e=>"string"===typeof e,w=e=>"symbol"===typeof e,C=e=>null!==e&&"object"===typeof e,S=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),x=Object.prototype.toString,k=e=>x.call(e),L=e=>k(e).slice(8,-1),E=e=>"[object Object]"===k(e),N=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=e=>{const t=Object.create(null);return i=>{const n=t[i];return n||(t[i]=e(i))}},I=/-(\w)/g,R=T((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),A=/\B([A-Z])/g,O=T((e=>e.replace(A,"-$1").toLowerCase())),P=T((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=T((e=>{const t=e?`on${P(e)}`:"";return t})),F=(e,t)=>!Object.is(e,t),B=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},W=e=>{const t=parseFloat(e);return isNaN(t)?e:t},V=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const z=()=>j||(j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{});const U="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",$=n(U);function q(e){if(p(e)){const t={};for(let i=0;i{if(e){const i=e.split(G);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(p(e))for(let i=0;ine(e,t)))}const se=e=>y(e)?e:null==e?"":p(e)||C(e)&&(e.toString===x||!b(e.toString))?JSON.stringify(e,re,2):String(e),re=(e,t)=>t&&t.__v_isRef?re(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,i],n)=>(e[ae(t,n)+" =>"]=i,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ae(e)))}:w(t)?ae(t):!C(t)||p(t)||E(t)?t:String(t),ae=(e,t="")=>{var i;return w(e)?`Symbol(${null!=(i=e.description)?i:t})`:e}},7087:(e,t,i)=>{"use strict";var n=i(56586),o=i(44793),s=i(19351);function r(e,t,i,o){return new n(e,t,i,o)}r.version=i(8675),r.AlgoliaSearchHelper=n,r.SearchParameters=o,r.SearchResults=s,e.exports=r},23060:(e,t,i)=>{"use strict";var n=i(36939),o=i(65734);function s(e,t){this.main=e,this.fn=t,this.lastResults=null}o(s,n),s.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},s.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=s},28129:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){return new t({params:this.params.concat(e)})},removeParams:function(e){return new t({params:this.params.filter((function(t){return t.$$id!==e}))})}},e.exports=t},3410:(e,t,i)=>{"use strict";var n=i(12166),o=i(10947),s=i(39671),r={addRefinement:function(e,t,i){if(r.isRefined(e,t,i))return e;var o=""+i,s=e[t]?e[t].concat(o):[o],a={};return a[t]=s,n({},a,e)},removeRefinement:function(e,t,i){if(void 0===i)return r.clearRefinement(e,(function(e,i){return t===i}));var n=""+i;return r.clearRefinement(e,(function(e,i){return t===i&&n===e}))},toggleRefinement:function(e,t,i){if(void 0===i)throw new Error("toggleRefinement should be used with a value");return r.isRefined(e,t,i)?r.removeRefinement(e,t,i):r.addRefinement(e,t,i)},clearRefinement:function(e,t,i){if(void 0===t)return o(e)?{}:e;if("string"===typeof t)return s(e,[t]);if("function"===typeof t){var n=!1,r=Object.keys(e).reduce((function(o,s){var r=e[s]||[],a=r.filter((function(e){return!t(e,s,i)}));return a.length!==r.length&&(n=!0),o[s]=a,o}),{});return n?r:e}},isRefined:function(e,t,i){var n=Boolean(e[t])&&e[t].length>0;if(void 0===i||!n)return n;var o=""+i;return-1!==e[t].indexOf(o)}};e.exports=r},44793:(e,t,i)=>{"use strict";var n=i(12166),o=i(31170),s=i(88024),r=i(25766),a=i(10947),l=i(39671),c=i(65586),d=i(66667),u=i(3410);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,i){return h(t[i],e)})):e===t}function g(e,t){return o(e,(function(e){return h(e,t)}))}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||d(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var i=this;Object.keys(t).forEach((function(e){var n=-1!==p.PARAMETERS.indexOf(e),o=void 0!==t[e];!n&&o&&(i[e]=t[e])}))}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={},i=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(i.forEach((function(i){var n=e[i];if("string"===typeof n){var o=parseFloat(n);t[i]=isNaN(o)?n:o}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var i=e.numericRefinements[t]||{};n[t]={},Object.keys(i).forEach((function(e){var o=i[e],s=o.map((function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?parseFloat(e):e})):"string"===typeof e?parseFloat(e):e}));n[t][e]=s}))})),t.numericRefinements=n}return r(e,t)},p.make=function(e){var t=new p(e),i=e.hierarchicalFacets||[];return i.forEach((function(e){if(e.rootPath){var i=t.getHierarchicalRefinement(e.name);i.length>0&&0!==i[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),i=t.getHierarchicalRefinement(e.name),0===i.length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},p.validate=function(e,t){var i=t||{};return e.tagFilters&&i.tagRefinements&&i.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&i.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&i.numericRefinements&&a(i.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):a(e.numericRefinements)&&i.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:u.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:u.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:u.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:u.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,i){var n=c(i);if(this.isNumericRefined(e,t,n))return this;var o=r({},this.numericRefinements);return o[e]=r({},o[e]),o[e][t]?(o[e][t]=o[e][t].slice(),o[e][t].push(n)):o[e][t]=[n],this.setQueryParameters({numericRefinements:o})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,i){var n=i;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(i,o){return o===e&&i.op===t&&h(i.val,c(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(i,n){return n===e&&i.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,i){return i===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return a(this.numericRefinements)?{}:this.numericRefinements;if("string"===typeof e)return l(this.numericRefinements,[e]);if("function"===typeof e){var t=!1,i=this.numericRefinements,n=Object.keys(i).reduce((function(n,o){var s=i[o],r={};return s=s||{},Object.keys(s).forEach((function(i){var n=s[i]||[],a=[];n.forEach((function(t){var n=e({val:t,op:i},o,"numeric");n||a.push(t)})),a.length!==n.length&&(t=!0),r[i]=a})),n[o]=r,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:u.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:u.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:u.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:u.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:u.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:u.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:u.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:u.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:u.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var i=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),o={},s=void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+i));return s?-1===t.indexOf(i)?o[e]=[]:o[e]=[t.slice(0,t.lastIndexOf(i))]:o[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},o,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var i={};return i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},i,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&u.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&u.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&u.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var i=this.getHierarchicalRefinement(e);return t?-1!==i.indexOf(t):i.length>0},isNumericRefined:function(e,t,i){if(void 0===i&&void 0===t)return Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===i||!n)return n;var o=c(i),s=void 0!==g(this.numericRefinements[e][t],o);return n&&s},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=s(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return s(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},i=this;return Object.keys(this).forEach((function(n){var o=i[n];-1===e.indexOf(n)&&void 0!==o&&(t[n]=o)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var i={};return i[e]=t,this.setQueryParameters(i)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var i=this,n=p._parseNumbers(e),o=Object.keys(this).reduce((function(e,t){return e[t]=i[t],e}),{}),s=Object.keys(n).reduce((function(e,t){var i=void 0!==e[t],o=void 0!==n[t];return i&&!o?l(e,[t]):(o&&(e[t]=n[t]),e)}),o);return new this.constructor(s)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return o(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var i=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(i);return n.map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},6581:(e,t,i)=>{"use strict";e.exports=c;var n=i(80077),o=i(31170),s=i(80658),r=i(4264),a=n.escapeFacetValue,l=n.unescapeFacetValue;function c(e){return function(t,i){var n=e.hierarchicalFacets[i],o=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",r=e._getHierarchicalFacetSeparator(n),a=e._getHierarchicalRootPath(n),l=e._getHierarchicalShowParentLevel(n),c=s(e._getHierarchicalFacetSortBy(n)),u=t.every((function(e){return e.exhaustive})),h=d(c,r,a,l,o),g=t;return a&&(g=t.slice(a.split(r).length)),g.reduce(h,{name:e.hierarchicalFacets[i].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:u,data:null})}}function d(e,t,i,n,s){return function(a,c,d){var g=a;if(d>0){var p=0;g=a;while(p{"use strict";var n=i(83165),o=i(12166),s=i(80077),r=i(31170),a=i(5352),l=i(80658),c=i(25766),d=i(4264),u=s.escapeFacetValue,h=s.unescapeFacetValue,g=i(6581);function p(e){var t={};return e.forEach((function(e,i){t[e]=i})),t}function f(e,t,i){t&&t[i]&&(e.stats=t[i])}function m(e,t){return r(e,(function(e){var i=e.attributes||[];return i.indexOf(t)>-1}))}function v(e,t,i){var s=t[0];this._rawResults=t;var r=this;Object.keys(s).forEach((function(e){r[e]=s[e]}));var l=c({persistHierarchicalRootCount:!1},i);Object.keys(l).forEach((function(e){r[e]=l[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var d=e.getRefinedDisjunctiveFacets(),u=p(e.facets),v=p(e.disjunctiveFacets),_=1,b=s.facets||{};Object.keys(b).forEach((function(t){var i=b[t],n=m(e.hierarchicalFacets,t);if(n){var o=n.attributes.indexOf(t),l=a(e.hierarchicalFacets,(function(e){return e.name===n.name}));r.hierarchicalFacets[l][o]={attribute:t,data:i,exhaustive:s.exhaustiveFacetsCount}}else{var c,d=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);d&&(c=v[t],r.disjunctiveFacets[c]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},f(r.disjunctiveFacets[c],s.facets_stats,t)),h&&(c=u[t],r.facets[c]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},f(r.facets[c],s.facets_stats,t))}})),this.hierarchicalFacets=n(this.hierarchicalFacets),d.forEach((function(i){var n=t[_],l=n&&n.facets?n.facets:{},d=e.getHierarchicalFacetByName(i);Object.keys(l).forEach((function(t){var i,u=l[t];if(d){i=a(e.hierarchicalFacets,(function(e){return e.name===d.name}));var g=a(r.hierarchicalFacets[i],(function(e){return e.attribute===t}));if(-1===g)return;r.hierarchicalFacets[i][g].data=c({},r.hierarchicalFacets[i][g].data,u)}else{i=v[t];var p=s.facets&&s.facets[t]||{};r.disjunctiveFacets[i]={name:t,data:o({},u,p),exhaustive:n.exhaustiveFacetsCount},f(r.disjunctiveFacets[i],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!r.disjunctiveFacets[i].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(h(n))>-1&&(r.disjunctiveFacets[i].data[n]=0)}))}})),_++})),e.getRefinedHierarchicalFacets().forEach((function(i){var n=e.getHierarchicalFacetByName(i),s=e._getHierarchicalFacetSeparator(n),l=e.getHierarchicalRefinement(i);0===l.length||l[0].split(s).length<2||t.slice(_).forEach((function(t){var i=t&&t.facets?t.facets:{};Object.keys(i).forEach((function(t){var c=i[t],d=a(e.hierarchicalFacets,(function(e){return e.name===n.name})),u=a(r.hierarchicalFacets[d],(function(e){return e.attribute===t}));if(-1!==u){var h={};if(l.length>0&&!r.persistHierarchicalRootCount){var g=l[0].split(s)[0];h[g]=r.hierarchicalFacets[d][u].data[g]}r.hierarchicalFacets[d][u].data=o(h,c,r.hierarchicalFacets[d][u].data)}})),_++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var i=e.facetsExcludes[t],n=u[t];r.facets[n]={name:t,data:b[t],exhaustive:s.exhaustiveFacetsCount},i.forEach((function(e){r.facets[n]=r.facets[n]||{name:t},r.facets[n].data=r.facets[n].data||{},r.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(g(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function _(e,t){function i(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=r(e.facets,i);return n?Object.keys(n.data).map((function(i){var o=u(i);return{name:i,escapedValue:o,count:n.data[i],isRefined:e._state.isFacetRefined(t,o),isExcluded:e._state.isExcludeRefined(t,i)}})):[]}if(e._state.isDisjunctiveFacet(t)){var o=r(e.disjunctiveFacets,i);return o?Object.keys(o.data).map((function(i){var n=u(i);return{name:i,escapedValue:n,count:o.data[i],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t)){var s=r(e.hierarchicalFacets,i);if(!s)return s;var a=e._state.getHierarchicalFacetByName(t),l=e._state._getHierarchicalFacetSeparator(a),c=h(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(a.rootPath)&&(c=c.replace(a.rootPath+l,""));var d=c.split(l);return d.unshift(t),b(s,d,0),s}}function b(e,t,i){e.isRefined=e.name===(t[i]&&t[i].trim()),e.data&&e.data.forEach((function(e){b(e,t,i+1)}))}function y(e,t,i,n){if(n=n||0,Array.isArray(t))return e(t,i[n]);if(!t.data||0===t.data.length)return t;var s=t.data.map((function(t){return y(e,t,i,n+1)})),r=e(s,i[n]),a=o({data:r},t);return a}function w(e,t){return t.sort(e)}function C(e,t){var i=[],n=[],o=t.order||[],s=o.reduce((function(e,t,i){return e[t]=i,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==s[t]?i[s[t]]=e:n.push(e)})),i=i.filter((function(e){return e}));var r,a=t.sortRemainingBy;return"hidden"===a?i:(r="alpha"===a?[["path","name"],["asc","asc"]]:[["count"],["desc"]],i.concat(d(n,r[0],r[1])))}function S(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}function x(e,t){var i=r(e,(function(e){return e.name===t}));return i&&i.stats}function k(e,t,i,n,o){var s=r(o,(function(e){return e.name===i})),a=s&&s.data&&s.data[n]?s.data[n]:0,l=s&&s.exhaustive||!1;return{type:t,attributeName:i,name:n,count:a,exhaustive:l}}function L(e,t,i,n){var o=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(o),a=i.split(s),l=r(n,(function(e){return e.name===t})),c=a.reduce((function(e,t){var i=e&&r(e.data,(function(e){return e.name===t}));return void 0!==i?i:e}),l),d=c&&c.count||0,u=c&&c.exhaustive||!1,h=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:h,count:d,exhaustive:u}}v.prototype.getFacetByName=function(e){function t(t){return t.name===e}return r(this.facets,t)||r(this.disjunctiveFacets,t)||r(this.hierarchicalFacets,t)},v.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],v.prototype.getFacetValues=function(e,t){var i=_(this,e);if(i){var n,s=o({},t,{sortBy:v.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),r=this;if(Array.isArray(i))n=[e];else{var a=r._state.getHierarchicalFacetByName(i.name);n=a.attributes}return y((function(e,t){if(s.facetOrdering){var i=S(r,t);if(i)return C(e,i)}if(Array.isArray(s.sortBy)){var n=l(s.sortBy,v.DEFAULT_SORT);return d(e,n[0],n[1])}if("function"===typeof s.sortBy)return w(s.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),i,n)}},v.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?x(this.facets,e):this._state.isDisjunctiveFacet(e)?x(this.disjunctiveFacets,e):void 0},v.prototype.getRefinements=function(){var e=this._state,t=this,i=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(o){i.push(k(e,"facet",n,o,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(o){i.push(k(e,"exclude",n,o,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(o){i.push(k(e,"disjunctive",n,o,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(o){i.push(L(e,n,o,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){i.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){i.push({type:"tag",attributeName:"_tags",name:e})})),i},e.exports=v},56586:(e,t,i)=>{"use strict";var n=i(36939),o=i(23060),s=i(80077).escapeFacetValue,r=i(65734),a=i(25766),l=i(10947),c=i(39671),d=i(28129),u=i(12888),h=i(44793),g=i(19351),p=i(8675);function f(e,t,i,n){"function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var o=i||{};o.index=t,this.state=h.make(o),this.recommendState=new d({params:o.recommendState}),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._searchResultsOptions=n}function m(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function v(){return this.state.page}r(f,n),f.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},f.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},f.prototype.getQuery=function(){var e=this.state;return u._getHitsSearchParams(e)},f.prototype.searchOnce=function(e,t){var i=e?this.state.setQueryParameters(e):this.state,n=u._getQueries(i.index,i),o=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:i}),!t)return this.client.search(n).then((function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new g(i,e.results),state:i,_originalResponse:e}}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new g(i,e.results),i)})).catch((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,i)}))},f.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,i=this.derivedHelpers[0];if(!i)return Promise.resolve([]);var n=i.getModifiedState(t),o=a({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(u._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),s="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!==typeof this.client.initIndex)throw new Error(s);var r=this.client.initIndex(n.index);if("function"!==typeof r.findAnswers)throw new Error(s);return r.findAnswers(n.query,e.queryLanguages,o)},f.prototype.searchForFacetValues=function(e,t,i,n){var o="function"===typeof this.client.searchForFacetValues,r="function"===typeof this.client.initIndex;if(!o&&!r&&"function"!==typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var a=this.state.setQueryParameters(n||{}),l=a.isDisjunctiveFacet(e),c=u.getSearchForFacetQuery(e,t,i,a);this._currentNbQueries++;var d,h=this;return o?d=this.client.searchForFacetValues([{indexName:a.index,params:c}]):r?d=this.client.initIndex(a.index).searchForFacetValues(c):(delete c.facetName,d=this.client.search([{type:"facet",facet:e,indexName:a.index,params:c}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:a,facet:e,query:t}),d.then((function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),t=Array.isArray(t)?t[0]:t,t.facetHits.forEach((function(t){t.escapedValue=s(t.value),t.isRefined=l?a.isDisjunctiveFacetRefined(e,t.escapedValue):a.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e}))},f.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},f.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},f.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},f.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},f.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addNumericRefinement=function(e,t,i){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,i),isPageReset:!0}),this},f.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},f.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},f.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},f.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},f.prototype.removeNumericRefinement=function(e,t,i){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,i),isPageReset:!0}),this},f.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},f.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},f.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},f.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},f.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},f.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},f.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},f.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},f.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},f.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},f.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},f.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},f.prototype.setCurrentPage=m,f.prototype.setPage=m,f.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},f.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},f.prototype.setState=function(e){return this._change({state:h.make(e),isPageReset:!1}),this},f.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this},f.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},f.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},f.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},f.prototype.hasTag=function(e){return this.state.isTagRefined(e)},f.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},f.prototype.getIndex=function(){return this.state.index},f.prototype.getCurrentPage=v,f.prototype.getPage=v,f.prototype.getTags=function(){return this.state.tagRefinements},f.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var i=this.state.getConjunctiveRefinements(e);i.forEach((function(e){t.push({value:e,type:"conjunctive"})}));var n=this.state.getExcludeRefinements(e);n.forEach((function(e){t.push({value:e,type:"exclude"})}))}else if(this.state.isDisjunctiveFacet(e)){var o=this.state.getDisjunctiveRefinements(e);o.forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var s=this.state.getNumericRefinements(e);return Object.keys(s).forEach((function(e){var i=s[e];t.push({value:i,operator:e,type:"numeric"})})),t},f.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},f.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},f.prototype._search=function(e){var t=this.state,i=[],n=[];e.onlyWithDerivedHelpers||(n=u._getQueries(t.index,t),i.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var o=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),o=n.index?u._getQueries(n.index,n):[];return i.push({state:n,queriesCount:o.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),o})),s=Array.prototype.concat.apply(n,o),r=this._queryId++;if(this._currentNbQueries++,!s.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,r));try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,i,r)).catch(this._dispatchAlgoliaError.bind(this,r))}catch(a){this.emit("error",{error:a})}},f.prototype._dispatchAlgoliaResponse=function(e,t,i){var n=this;if(!(t0},f.prototype._change=function(e){var t=e.state,i=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:i}))},f.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t)},f.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},f.prototype.setClient=function(e){return this.client===e||("function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},f.prototype.getClient=function(){return this.client},f.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},f.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},f.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=f},83165:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},12166:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(i){void 0!==t[i]&&(void 0!==e[i]&&delete e[i],e[i]=t[i])})),e}),{})}},80077:e=>{"use strict";function t(e){return"string"!==typeof e?e:String(e).replace(/^-/,"\\-")}function i(e){return"string"!==typeof e?e:e.replace(/^\\-/,"-")}e.exports={escapeFacetValue:t,unescapeFacetValue:i}},31170:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var i=0;i{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var i=0;i{"use strict";var n=i(31170);e.exports=function(e,t){var i=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var o=t.split(":"),s=n(i,(function(e){return e[0]===o[0]}));return o.length>1||!s?(e[0].push(o[0]),e[1].push(o[1]),e):(e[0].push(s[0]),e[1].push(s[1]),e)}),[[],[]])}},65734:e=>{"use strict";function t(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}e.exports=t},88024:e=>{"use strict";function t(e,t){return e.filter((function(i,n){return t.indexOf(i)>-1&&e.indexOf(i)===n}))}e.exports=t},25766:e=>{"use strict";function t(e){return"object"===typeof e&&null!==e?n(Array.isArray(e)?[]:{},e):e}function i(e){return"function"===typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,o){if(e===o)return e;for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s)&&"__proto__"!==s&&"constructor"!==s){var r=o[s],a=e[s];"undefined"!==typeof a&&"undefined"===typeof r||(i(a)&&i(r)?e[s]=n(a,r):e[s]=t(r))}return e}function o(e){i(e)||(e={});for(var t=1,o=arguments.length;t{"use strict";function t(e){return e&&Object.keys(e).length>0}e.exports=t},39671:e=>{"use strict";function t(e,t){if(null===e)return{};var i,n,o={},s=Object.keys(e);for(n=0;n=0||(o[i]=e[i]);return o}e.exports=t},4264:e=>{"use strict";function t(e,t){if(e!==t){var i=void 0!==e,n=null===e,o=void 0!==t,s=null===t;if(!s&&e>t||n&&o||!i)return 1;if(!n&&e=n.length?s:"desc"===n[o]?-s:s}return e.index-i.index})),o.map((function(e){return e.value}))}e.exports=i},65586:e=>{"use strict";function t(e){if("number"===typeof e)return e;if("string"===typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(t);throw new Error("The value should be a number, a parsable string or an array of those.")}e.exports=t},12888:(e,t,i)=>{"use strict";var n=i(25766);function o(e){return Object.keys(e).sort().reduce((function(t,i){return t[i]=e[i],t}),{})}var s={_getQueries:function(e,t){var i=[];return i.push({indexName:e,params:s._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){i.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var o=t.getHierarchicalFacetByName(n),r=t.getHierarchicalRefinement(n),a=t._getHierarchicalFacetSeparator(o);if(r.length>0&&r[0].split(a).length>1){var l=r[0].split(a).slice(0,-1).reduce((function(e,t,i){return e.concat({attribute:o.attributes[i],value:0===i?t:[e[e.length-1].value,t].join(a)})}),[]);l.forEach((function(n,r){var a=s._getDisjunctiveFacetSearchParams(t,n.attribute,0===r);function c(e){return o.attributes.some((function(t){return t===e.split(":")[0]}))}var d=(a.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var i=t.filter((function(e){return!c(e)}));i.length>0&&e.push(i)}return"string"!==typeof t||c(t)||e.push(t),e}),[]),u=l[r-1];a.facetFilters=r>0?d.concat(u.attribute+":"+u.value):d.length>0?d:void 0,i.push({indexName:e,params:a})}))}})),i},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)).sort(),i=s._getFacetFilters(e),r=s._getNumericFilters(e),a=s._getTagFilters(e),l={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:a};return i.length>0&&(l.facetFilters=i),r.length>0&&(l.numericFilters=r),o(n({},e.getQueryParams(),l))},_getDisjunctiveFacetSearchParams:function(e,t,i){var r=s._getFacetFilters(e,t,i),a=s._getNumericFilters(e,t),l=s._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};l.length>0&&(c.tagFilters=l);var d=e.getHierarchicalFacetByName(t);return c.facets=d?s._getDisjunctiveHierarchicalFacetAttribute(e,d,i):t,a.length>0&&(c.numericFilters=a),r.length>0&&(c.facetFilters=r),o(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var i=[];return Object.keys(e.numericRefinements).forEach((function(n){var o=e.numericRefinements[n]||{};Object.keys(o).forEach((function(e){var s=o[e]||[];t!==n&&s.forEach((function(t){if(Array.isArray(t)){var o=t.map((function(t){return n+e+t}));i.push(o)}else i.push(n+e+t)}))}))})),i},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,i){var n=[],o=e.facetsRefinements||{};Object.keys(o).sort().forEach((function(e){var t=o[e]||[];t.slice().sort().forEach((function(t){n.push(e+":"+t)}))}));var s=e.facetsExcludes||{};Object.keys(s).sort().forEach((function(e){var t=s[e]||[];t.sort().forEach((function(t){n.push(e+":-"+t)}))}));var r=e.disjunctiveFacetsRefinements||{};Object.keys(r).sort().forEach((function(e){var i=r[e]||[];if(e!==t&&i&&0!==i.length){var o=[];i.slice().sort().forEach((function(t){o.push(e+":"+t)})),n.push(o)}}));var a=e.hierarchicalFacetsRefinements||{};return Object.keys(a).sort().forEach((function(o){var s=a[o]||[],r=s[0];if(void 0!==r){var l,c,d=e.getHierarchicalFacetByName(o),u=e._getHierarchicalFacetSeparator(d),h=e._getHierarchicalRootPath(d);if(t===o){if(-1===r.indexOf(u)||!h&&!0===i||h&&h.split(u).length===r.split(u).length)return;h?(c=h.split(u).length-1,r=h):(c=r.split(u).length-2,r=r.slice(0,r.lastIndexOf(u))),l=d.attributes[c]}else c=r.split(u).length-1,l=d.attributes[c];l&&n.push([l+":"+r])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce((function(t,i){var n=e.getHierarchicalRefinement(i.name)[0];if(!n)return t.push(i.attributes[0]),t;var o=e._getHierarchicalFacetSeparator(i),s=n.split(o).length,r=i.attributes.slice(0,s+1);return t.concat(r)}),t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,i){var n=e._getHierarchicalFacetSeparator(t);if(!0===i){var o=e._getHierarchicalRootPath(t),s=0;return o&&(s=o.split(n).length),[t.attributes[s]]}var r=e.getHierarchicalRefinement(t.name)[0]||"",a=r.split(n).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,i,r){var a=r.isDisjunctiveFacet(e)?r.clearRefinements(e):r,l={facetQuery:t,facetName:e};return"number"===typeof i&&(l.maxFacetHits=i),o(n({},s._getHitsSearchParams(a),l))}};e.exports=s},66667:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},8675:e=>{"use strict";e.exports="3.17.0"},61357:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(22857),s=i(20244),r=i(65987),a=i(22026);const l=(0,r.L)({name:"QAvatar",props:{...s.LU,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const i=(0,s.ZP)(e),r=(0,n.Fl)((()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(!0===e.square?" q-avatar--square":!0===e.rounded?" rounded-borders":""))),l=(0,n.Fl)((()=>e.fontSize?{fontSize:e.fontSize}:null));return()=>{const s=void 0!==e.icon?[(0,n.h)(o.Z,{name:e.icon})]:void 0;return(0,n.h)("div",{class:r.value,style:i.value},[(0,n.h)("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},(0,a.pf)(t.default,s))])}}})},20990:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),s=i(22026);const r=["top","middle","bottom"],a=(0,o.L)({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>r.includes(e)}},setup(e,{slots:t}){const i=(0,n.Fl)((()=>void 0!==e.align?{verticalAlign:e.align}:null)),o=(0,n.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")}));return()=>(0,n.h)("div",{class:o.value,style:i.value,role:"status","aria-label":e.label},(0,s.vs)(t.default,void 0!==e.label?[e.label]:[]))}})},47128:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});i(72879);var n=i(59835),o=i(65987),s=i(68234),r=i(22026);const a=(0,o.L)({name:"QBanner",props:{...s.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,s.Z)(e,i),a=(0,n.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===o.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,n.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const i=[(0,n.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,r.KR)(t.avatar)),(0,n.h)("div",{class:"q-banner__content col text-body2"},(0,r.KR)(t.default))],o=(0,r.KR)(t.action);return void 0!==o&&i.push((0,n.h)("div",{class:l.value},o)),(0,n.h)("div",{class:a.value+(!1===e.inlineActions&&void 0!==o?" q-banner--top-padding":""),role:"alert"},i)}}})},24455:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});i(72879);var n=i(59835),o=i(60499),s=i(61957),r=i(22857),a=i(63940),l=i(9684),c=i(65065),d=i(20244),u=i(70945);const h={none:0,xs:4,sm:8,md:16,lg:24,xl:32},g={xs:8,sm:10,md:14,lg:20,xl:24},p=["button","submit","reset"],f=/[^\s]\/[^\s]/,m=["flat","outline","push","unelevated"],v=(e,t)=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t,_={...d.LU,...u.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...m.reduce(((e,t)=>(e[t]=Boolean)&&e),{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...c.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function b(e){const t=(0,d.ZP)(e,g),i=(0,c.ZP)(e),{hasRouterLink:o,hasLink:s,linkTag:r,linkAttrs:a,navigateOnClick:l}=(0,u.Z)({fallbackTag:"button"}),m=(0,n.Fl)((()=>{const i=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},i,{padding:e.padding.split(/\s+/).map((e=>e in h?h[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):i})),_=(0,n.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),b=(0,n.Fl)((()=>!0!==e.disable&&!0!==e.loading)),y=(0,n.Fl)((()=>!0===b.value?e.tabindex||0:-1)),w=(0,n.Fl)((()=>v(e,"standard"))),C=(0,n.Fl)((()=>{const t={tabindex:y.value};return!0===s.value?Object.assign(t,a.value):!0===p.includes(e.type)&&(t.type=e.type),"a"===r.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==o.value&&!0===f.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),S=(0,n.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const i=!0===e.round?"round":"rectangle"+(!0===_.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${w.value} q-btn--${i}`+(void 0!==t?" "+t:"")+(!0===b.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),x=(0,n.Fl)((()=>i.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:S,style:m,innerClasses:x,attributes:C,hasLink:s,linkTag:r,navigateOnClick:l,isActionable:b}}var y=i(65987),w=i(22026),C=i(91384),S=i(61705);const{passiveCapture:x}=C.listenOpts;let k=null,L=null,E=null;const N=(0,y.L)({name:"QBtn",props:{..._,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:i}){const{proxy:c}=(0,n.FN)(),{classes:d,style:u,innerClasses:h,attributes:g,hasLink:p,linkTag:f,navigateOnClick:m,isActionable:v}=b(e),_=(0,o.iH)(null),y=(0,o.iH)(null);let N,D=null,T=null;const I=(0,n.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),R=(0,n.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===p.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),A=(0,n.Fl)((()=>({center:e.round}))),O=(0,n.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),P=(0,n.Fl)((()=>{if(!0===e.loading)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(!0===v.value){const t={onClick:F,onKeydown:B,onMousedown:W};if(!0===c.$q.platform.has.touch){const i=void 0!==e.onTouchstart?"":"Passive";t[`onTouchstart${i}`]=H}return t}return{onClick:C.NS}})),M=(0,n.Fl)((()=>({ref:_,class:"q-btn q-btn-item non-selectable no-outline "+d.value,style:u.value,...g.value,...P.value})));function F(t){if(null!==_.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const i=document.activeElement;if("submit"===e.type&&i!==document.body&&!1===_.value.contains(i)&&!1===i.contains(_.value)){_.value.focus();const e=()=>{document.removeEventListener("keydown",C.NS,!0),document.removeEventListener("keyup",e,x),null!==_.value&&_.value.removeEventListener("blur",e,x)};document.addEventListener("keydown",C.NS,!0),document.addEventListener("keyup",e,x),_.value.addEventListener("blur",e,x)}}m(t)}}function B(e){null!==_.value&&(i("keydown",e),!0===(0,S.So)(e,[13,32])&&L!==_.value&&(null!==L&&j(),!0!==e.defaultPrevented&&(_.value.focus(),L=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),_.value.addEventListener("blur",V,x)),(0,C.NS)(e)))}function H(e){null!==_.value&&(i("touchstart",e),!0!==e.defaultPrevented&&(k!==_.value&&(null!==k&&j(),k=_.value,D=e.target,D.addEventListener("touchcancel",V,x),D.addEventListener("touchend",V,x)),N=!0,null!==T&&clearTimeout(T),T=setTimeout((()=>{T=null,N=!1}),200)))}function W(e){null!==_.value&&(e.qSkipRipple=!0===N,i("mousedown",e),!0!==e.defaultPrevented&&E!==_.value&&(null!==E&&j(),E=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,x)))}function V(e){if(null!==_.value&&(void 0===e||"blur"!==e.type||document.activeElement!==_.value)){if(void 0!==e&&"keyup"===e.type){if(L===_.value&&!0===(0,S.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,C.X$)(t),!0===e.cancelBubble&&(0,C.sT)(t),_.value.dispatchEvent(t),(0,C.NS)(e),e.qKeyEvent=!0}i("keyup",e)}j()}}function j(e){const t=y.value;!0===e||k!==_.value&&E!==_.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),k===_.value&&(null!==D&&(D.removeEventListener("touchcancel",V,x),D.removeEventListener("touchend",V,x)),k=D=null),E===_.value&&(document.removeEventListener("mouseup",V,x),E=null),L===_.value&&(document.removeEventListener("keyup",V,!0),null!==_.value&&_.value.removeEventListener("blur",V,x),L=null),null!==_.value&&_.value.classList.remove("q-btn--active")}function z(e){(0,C.NS)(e),e.qSkipRipple=!0}return(0,n.Jd)((()=>{j(!0)})),Object.assign(c,{click:F}),()=>{let i=[];void 0!==e.icon&&i.push((0,n.h)(r.Z,{name:e.icon,left:!0!==e.stack&&!0===I.value,role:"img","aria-hidden":"true"})),!0===I.value&&i.push((0,n.h)("span",{class:"block"},[e.label])),i=(0,w.vs)(t.default,i),void 0!==e.iconRight&&!1===e.round&&i.push((0,n.h)(r.Z,{name:e.iconRight,right:!0!==e.stack&&!0===I.value,role:"img","aria-hidden":"true"}));const o=[(0,n.h)("span",{class:"q-focus-helper",ref:y})];return!0===e.loading&&void 0!==e.percentage&&o.push((0,n.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,n.h)("span",{class:"q-btn__progress-indicator fit block",style:O.value})])),o.push((0,n.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},i)),null!==e.loading&&o.push((0,n.h)(s.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,n.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,n.h)(a.Z)])]:null))),(0,n.wy)((0,n.h)(f.value,M.value,o),[[l.Z,R.value,void 0,A.value]])}}})},44458:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(68234),s=i(65987),r=i(22026);const a=(0,s.L)({name:"QCard",props:{...o.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),s=(0,o.Z)(e,i),a=(0,n.Fl)((()=>"q-card"+(!0===s.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,n.h)(e.tag,{class:a.value},(0,r.KR)(t.default))}})},11821:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65065),s=i(65987),r=i(22026);const a=(0,s.L)({name:"QCardActions",props:{...o.jO,vertical:Boolean},setup(e,{slots:t}){const i=(0,o.ZP)(e),s=(0,n.Fl)((()=>`q-card__actions ${i.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,n.h)("div",{class:s.value},(0,r.KR)(t.default))}})},63190:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,n.h)(e.tag,{class:i.value},(0,s.KR)(t.default))}})},11221:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(22857),s=i(65987),r=i(71926);const a=(0,n.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,n.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[(0,n.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,n.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),l=(0,s.L)({name:"QCheckbox",props:r.Fz,emits:r.ZB,setup(e){function t(t,i){const s=(0,n.Fl)((()=>(!0===t.value?e.checkedIcon:!0===i.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==s.value?[(0,n.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,n.h)(o.Z,{class:"q-checkbox__icon",name:s.value})])]:[a]}return(0,r.ZP)("checkbox",t)}})},71926:(e,t,i)=>{"use strict";i.d(t,{Fz:()=>h,ZB:()=>g,ZP:()=>p});i(72879);var n=i(59835),o=i(60499),s=i(68234),r=i(20244),a=i(55917),l=i(99256),c=i(89480),d=i(91384),u=i(22026);const h={...s.S,...r.LU,...l.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},g=["update:modelValue"];function p(e,t){const{props:i,slots:h,emit:g,proxy:p}=(0,n.FN)(),{$q:f}=p,m=(0,s.Z)(i,f),v=(0,o.iH)(null),{refocusTargetEl:_,refocusTarget:b}=(0,a.Z)(i,v),y=(0,r.ZP)(i,c.Z),w=(0,n.Fl)((()=>void 0!==i.val&&Array.isArray(i.modelValue))),C=(0,n.Fl)((()=>{const e=(0,o.IU)(i.val);return!0===w.value?i.modelValue.findIndex((t=>(0,o.IU)(t)===e)):-1})),S=(0,n.Fl)((()=>!0===w.value?-1!==C.value:(0,o.IU)(i.modelValue)===(0,o.IU)(i.trueValue))),x=(0,n.Fl)((()=>!0===w.value?-1===C.value:(0,o.IU)(i.modelValue)===(0,o.IU)(i.falseValue))),k=(0,n.Fl)((()=>!1===S.value&&!1===x.value)),L=(0,n.Fl)((()=>!0===i.disable?-1:i.tabindex||0)),E=(0,n.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===i.disable?" disabled":"")+(!0===m.value?` q-${e}--dark`:"")+(!0===i.dense?` q-${e}--dense`:"")+(!0===i.leftLabel?" reverse":""))),N=(0,n.Fl)((()=>{const t=!0===S.value?"truthy":!0===x.value?"falsy":"indet",n=void 0===i.color||!0!==i.keepColor&&("toggle"===e?!0!==S.value:!0===x.value)?"":` text-${i.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${n}`})),D=(0,n.Fl)((()=>{const e={type:"checkbox"};return void 0!==i.name&&Object.assign(e,{".checked":S.value,"^checked":!0===S.value?"checked":void 0,name:i.name,value:!0===w.value?i.val:i.trueValue}),e})),T=(0,l.eX)(D),I=(0,n.Fl)((()=>{const t={tabindex:L.value,role:"toggle"===e?"switch":"checkbox","aria-label":i.label,"aria-checked":!0===k.value?"mixed":!0===S.value?"true":"false"};return!0===i.disable&&(t["aria-disabled"]="true"),t}));function R(e){void 0!==e&&((0,d.NS)(e),b(e)),!0!==i.disable&&g("update:modelValue",A(),e)}function A(){if(!0===w.value){if(!0===S.value){const e=i.modelValue.slice();return e.splice(C.value,1),e}return i.modelValue.concat([i.val])}if(!0===S.value){if("ft"!==i.toggleOrder||!1===i.toggleIndeterminate)return i.falseValue}else{if(!0!==x.value)return"ft"!==i.toggleOrder?i.trueValue:i.falseValue;if("ft"===i.toggleOrder||!1===i.toggleIndeterminate)return i.trueValue}return i.indeterminateValue}function O(e){13!==e.keyCode&&32!==e.keyCode||(0,d.NS)(e)}function P(e){13!==e.keyCode&&32!==e.keyCode||R(e)}const M=t(S,k);return Object.assign(p,{toggle:R}),()=>{const t=M();!0!==i.disable&&T(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const o=[(0,n.h)("div",{class:N.value,style:y.value,"aria-hidden":"true"},t)];null!==_.value&&o.push(_.value);const s=void 0!==i.label?(0,u.vs)(h.default,[i.label]):(0,u.KR)(h.default);return void 0!==s&&o.push((0,n.h)("div",{class:`q-${e}__label q-anchor--skip`},s)),(0,n.h)("div",{ref:v,class:E.value,...I.value,onClick:R,onKeydown:O,onKeyup:P},o)}}},83302:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});i(72879);var n=i(59835),o=i(20244);const s={...o.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var r=i(65987),a=i(22026),l=i(30321);const c=50,d=2*c,u=d*Math.PI,h=Math.round(1e3*u)/1e3,g=(0,r.L)({name:"QCircularProgress",props:{...s,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),s=(0,o.ZP)(e),r=(0,n.Fl)((()=>{const t=(!0===i.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===i.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),g=(0,n.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),p=(0,n.Fl)((()=>d/(1-e.thickness/2))),f=(0,n.Fl)((()=>`${p.value/2} ${p.value/2} ${p.value} ${p.value}`)),m=(0,n.Fl)((()=>(0,l.vX)(e.value,e.min,e.max))),v=(0,n.Fl)((()=>e.max-e.min)),_=(0,n.Fl)((()=>e.thickness/2*p.value)),b=(0,n.Fl)((()=>{const t=(e.max-m.value)/v.value,i=!0===e.rounded&&m.value{const i=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&i.push((0,n.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:c-_.value/2,cx:p.value,cy:p.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&i.push(y({cls:"track",thickness:_.value,offset:0,color:e.trackColor})),i.push(y({cls:"circle",thickness:_.value,offset:b.value,color:e.color,rounded:!0===e.rounded?"round":void 0}));const o=[(0,n.h)("svg",{class:"q-circular-progress__svg",style:r.value,viewBox:f.value,"aria-hidden":"true"},i)];return!0===e.showValue&&o.push((0,n.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,n.h)("div",m.value)])),(0,n.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:s.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:m.value},(0,a.pf)(t.internal,o))}}})},32074:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(59835),o=i(60499),s=i(61957),r=i(94953),a=i(4698),l=i(46183),c=i(63842),d=i(20431),u=i(91518),h=i(13963),g=i(65987),p=i(70223),f=i(22026),m=i(16532),v=i(4173),_=i(17026);let b=0;const y={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},w={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},C=(0,g.L)({name:"QDialog",inheritAttrs:!1,props:{...c.vr,...d.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...c.gH,"shake","click","escapeKey"],setup(e,{slots:t,emit:i,attrs:g}){const C=(0,n.FN)(),S=(0,o.iH)(null),x=(0,o.iH)(!1),k=(0,o.iH)(!1);let L,E,N=null,D=null;const T=(0,n.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:I}=(0,h.Z)(),{registerTimeout:R}=(0,a.Z)(),{registerTick:A,removeTick:O}=(0,l.Z)(),{transitionProps:P,transitionStyle:M}=(0,d.Z)(e,(()=>w[e.position][0]),(()=>w[e.position][1])),F=(0,n.Fl)((()=>M.value+(void 0!==e.backdropFilter?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:""))),{showPortal:B,hidePortal:H,portalIsAccessible:W,renderPortal:V}=(0,u.Z)(C,S,se,"dialog"),{hide:j}=(0,c.ZP)({showing:x,hideOnRouteChange:T,handleShow:Z,handleHide:Q,processOnMount:!0}),{addToHistory:z,removeFromHistory:U}=(0,r.Z)(x,j,T),$=(0,n.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${y[e.position]}`+(!0===k.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),q=(0,n.Fl)((()=>!0===x.value&&!0!==e.seamless)),K=(0,n.Fl)((()=>!0===e.autoClose?{onClick:ie}:{})),G=(0,n.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===q.value?"modal":"seamless"),g.class]));function Z(t){z(),D=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,te(e.maximized),B(),k.value=!0,!0!==e.noFocus?(null!==document.activeElement&&document.activeElement.blur(),A(Y)):O(),R((()=>{if(!0===C.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,n=void 0!==window.visualViewport?window.visualViewport.height:i;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}E=!0,S.value.click(),E=!1}B(!0),k.value=!1,i("show",t)}),e.transitionDuration)}function Q(t){O(),U(),ee(!0),k.value=!0,H(),null!==D&&(((t&&0===t.type.indexOf("key")?D.closest('[tabindex]:not([tabindex^="-"])'):void 0)||D).focus(),D=null),R((()=>{H(!0),k.value=!1,i("hide",t)}),e.transitionDuration)}function Y(e){(0,_.jd)((()=>{let t=S.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=(""!==e?t.querySelector(e):null)||t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function J(e){e&&"function"===typeof e.focus?e.focus({preventScroll:!0}):Y(),i("shake");const t=S.value;null!==t&&(t.classList.remove("q-animate--scale"),t.classList.add("q-animate--scale"),null!==N&&clearTimeout(N),N=setTimeout((()=>{N=null,null!==S.value&&(t.classList.remove("q-animate--scale"),Y())}),170))}function X(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&J():(i("escapeKey"),j()))}function ee(t){null!==N&&(clearTimeout(N),N=null),!0!==t&&!0!==x.value||(te(!1),!0!==e.seamless&&(I(!1),(0,v.H)(oe),(0,m.k)(X))),!0!==t&&(D=null)}function te(e){!0===e?!0!==L&&(b<1&&document.body.classList.add("q-body--dialog"),b++,L=!0):!0===L&&(b<2&&document.body.classList.remove("q-body--dialog"),b--,L=!1)}function ie(e){!0!==E&&(j(e),i("click",e))}function ne(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?j(t):!0!==e.noShake&&J()}function oe(t){!0!==e.allowFocusOutside&&!0===W.value&&!0!==(0,p.mY)(S.value,t.target)&&Y('[tabindex]:not([tabindex="-1"])')}function se(){return(0,n.h)("div",{role:"dialog","aria-modal":!0===q.value?"true":"false",...g,class:G.value},[(0,n.h)(s.uT,{name:"q-transition--fade",appear:!0},(()=>!0===q.value?(0,n.h)("div",{class:"q-dialog__backdrop fixed-full",style:F.value,"aria-hidden":"true",tabindex:-1,onClick:ne}):null)),(0,n.h)(s.uT,P.value,(()=>!0===x.value?(0,n.h)("div",{ref:S,class:$.value,style:M.value,tabindex:-1,...K.value},(0,f.KR)(t.default)):null))])}return(0,n.YP)((()=>e.maximized),(e=>{!0===x.value&&te(e)})),(0,n.YP)(q,(e=>{I(e),!0===e?((0,v.i)(oe),(0,m.c)(X)):((0,v.H)(oe),(0,m.k)(X))})),Object.assign(C.proxy,{focus:Y,shake:J,__updateRefocusTarget(e){D=e||null}}),(0,n.Jd)(ee),V}})},10906:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});i(72879);var n=i(59835),o=i(60499),s=i(94953),r=i(63842),a=i(13963),l=i(4698),c=i(68234),d=i(50867),u=i(65987),h=i(30321),g=i(22026),p=i(95439);const f=150,m=(0,u.L)({name:"QDrawer",inheritAttrs:!1,props:{...r.vr,...c.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...r.gH,"onLayout","miniState"],setup(e,{slots:t,emit:i,attrs:u}){const m=(0,n.FN)(),{proxy:{$q:v}}=m,_=(0,c.Z)(e,v),{preventBodyScroll:b}=(0,a.Z)(),{registerTimeout:y,removeTimeout:w}=(0,l.Z)(),C=(0,n.f3)(p.YE,p.qO);if(C===p.qO)return console.error("QDrawer needs to be child of QLayout"),p.qO;let S,x,k=null;const L=(0,o.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&C.totalWidth.value<=e.breakpoint),E=(0,n.Fl)((()=>!0===e.mini&&!0!==L.value)),N=(0,n.Fl)((()=>!0===E.value?e.miniWidth:e.width)),D=(0,o.iH)(!0===e.showIfAbove&&!1===L.value||!0===e.modelValue),T=(0,n.Fl)((()=>!0!==e.persistent&&(!0===L.value||!0===G.value)));function I(e,t){if(P(),!1!==e&&C.animate(),ae(0),!0===L.value){const e=C.instances[U.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),le(1),!0!==C.isContainer.value&&b(!0)}else le(0),!1!==e&&ce(!1);y((()=>{!1!==e&&ce(!0),!0!==t&&i("show",e)}),f)}function R(e,t){M(),!1!==e&&C.animate(),le(0),ae(H.value*N.value),ge(),!0!==t?y((()=>{i("hide",e)}),f):w()}const{show:A,hide:O}=(0,r.ZP)({showing:D,hideOnRouteChange:T,handleShow:I,handleHide:R}),{addToHistory:P,removeFromHistory:M}=(0,s.Z)(D,O,T),F={belowBreakpoint:L,hide:O},B=(0,n.Fl)((()=>"right"===e.side)),H=(0,n.Fl)((()=>(!0===v.lang.rtl?-1:1)*(!0===B.value?1:-1))),W=(0,o.iH)(0),V=(0,o.iH)(!1),j=(0,o.iH)(!1),z=(0,o.iH)(N.value*H.value),U=(0,n.Fl)((()=>!0===B.value?"left":"right")),$=(0,n.Fl)((()=>!0===D.value&&!1===L.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:N.value:0)),q=(0,n.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||-1!==C.view.value.indexOf(B.value?"R":"L")||!0===v.platform.is.ios&&!0===C.isContainer.value)),K=(0,n.Fl)((()=>!1===e.overlay&&!0===D.value&&!1===L.value)),G=(0,n.Fl)((()=>!0===e.overlay&&!0===D.value&&!1===L.value)),Z=(0,n.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===D.value&&!1===V.value?" hidden":""))),Q=(0,n.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*W.value})`}))),Y=(0,n.Fl)((()=>!0===B.value?"r"===C.rows.value.top[2]:"l"===C.rows.value.top[0])),J=(0,n.Fl)((()=>!0===B.value?"r"===C.rows.value.bottom[2]:"l"===C.rows.value.bottom[0])),X=(0,n.Fl)((()=>{const e={};return!0===C.header.space&&!1===Y.value&&(!0===q.value?e.top=`${C.header.offset}px`:!0===C.header.space&&(e.top=`${C.header.size}px`)),!0===C.footer.space&&!1===J.value&&(!0===q.value?e.bottom=`${C.footer.offset}px`:!0===C.footer.space&&(e.bottom=`${C.footer.size}px`)),e})),ee=(0,n.Fl)((()=>{const e={width:`${N.value}px`,transform:`translateX(${z.value}px)`};return!0===L.value?e:Object.assign(e,X.value)})),te=(0,n.Fl)((()=>"q-drawer__content fit "+(!0!==C.isContainer.value?"scroll":"overflow-auto"))),ie=(0,n.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===j.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===_.value?" q-drawer--dark q-dark":"")+(!0===V.value?" no-transition":!0===D.value?"":" q-layout--prevent-focus")+(!0===L.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===E.value?"mini":"standard")+(!0===q.value||!0!==K.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===Y.value?" q-drawer--top-padding":"")))),ne=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?e.side:U.value;return[[d.Z,ue,void 0,{[t]:!0,mouse:!0}]]})),oe=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?U.value:e.side;return[[d.Z,he,void 0,{[t]:!0,mouse:!0}]]})),se=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?U.value:e.side;return[[d.Z,he,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function re(){fe(L,"mobile"===e.behavior||"desktop"!==e.behavior&&C.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,n.Y3)((()=>{e=!0===D.value?0:N.value,ae(H.value*e)})):(!0!==C.isContainer.value||!0!==B.value||!0!==L.value&&Math.abs(e)!==N.value||(e+=H.value*C.scrollbarWidth.value),z.value=e)}function le(e){W.value=e}function ce(e){const t=!0===e?"remove":!0!==C.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function de(){null!==k&&clearTimeout(k),m.proxy&&m.proxy.$el&&m.proxy.$el.classList.add("q-drawer--mini-animate"),j.value=!0,k=setTimeout((()=>{k=null,j.value=!1,m&&m.proxy&&m.proxy.$el&&m.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ue(e){if(!1!==D.value)return;const t=N.value,i=(0,h.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=i>=Math.min(75,t);return!0===e?A():(C.animate(),le(0),ae(H.value*t)),void(V.value=!1)}ae((!0===v.lang.rtl?!0!==B.value:B.value)?Math.max(t-i,0):Math.min(0,i-t)),le((0,h.vX)(i/t,0,1)),!0===e.isFirst&&(V.value=!0)}function he(t){if(!0!==D.value)return;const i=N.value,n=t.direction===e.side,o=(!0===v.lang.rtl?!0!==n:n)?(0,h.vX)(t.distance.x,0,i):0;if(!0===t.isFinal){const e=Math.abs(o){!0===t?(S=D.value,!0===D.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==S&&(!0===D.value?(ae(0),le(0),ge()):A(!1))})),(0,n.YP)((()=>e.side),((e,t)=>{C.instances[t]===F&&(C.instances[t]=void 0,C[t].space=!1,C[t].offset=0),C.instances[e]=F,C[e].size=N.value,C[e].space=K.value,C[e].offset=$.value})),(0,n.YP)(C.totalWidth,(()=>{!0!==C.isContainer.value&&!0===document.qScrollPrevented||re()})),(0,n.YP)((()=>e.behavior+e.breakpoint),re),(0,n.YP)(C.isContainer,(e=>{!0===D.value&&b(!0!==e),!0===e&&re()})),(0,n.YP)(C.scrollbarWidth,(()=>{ae(!0===D.value?0:void 0)})),(0,n.YP)($,(e=>{pe("offset",e)})),(0,n.YP)(K,(e=>{i("onLayout",e),pe("space",e)})),(0,n.YP)(B,(()=>{ae()})),(0,n.YP)(N,(t=>{ae(),me(e.miniToOverlay,t)})),(0,n.YP)((()=>e.miniToOverlay),(e=>{me(e,N.value)})),(0,n.YP)((()=>v.lang.rtl),(()=>{ae()})),(0,n.YP)((()=>e.mini),(()=>{e.noMiniAnimation||!0===e.modelValue&&(de(),C.animate())})),(0,n.YP)(E,(e=>{i("miniState",e)})),C.instances[e.side]=F,me(e.miniToOverlay,N.value),pe("space",K.value),pe("offset",$.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===D.value&&void 0!==e["onUpdate:modelValue"]&&i("update:modelValue",!0),(0,n.bv)((()=>{i("onLayout",K.value),i("miniState",E.value),S=!0===e.showIfAbove;const t=()=>{const e=!0===D.value?I:R;e(!1,!0)};0===C.totalWidth.value?x=(0,n.YP)(C.totalWidth,(()=>{x(),x=void 0,!1===D.value&&!0===e.showIfAbove&&!1===L.value?A(!1):t()})):(0,n.Y3)(t)})),(0,n.Jd)((()=>{void 0!==x&&x(),null!==k&&(clearTimeout(k),k=null),!0===D.value&&ge(),C.instances[e.side]===F&&(C.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const i=[];!0===L.value&&(!1===e.noSwipeOpen&&i.push((0,n.wy)((0,n.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),i.push((0,g.Jl)("div",{ref:"backdrop",class:Z.value,style:Q.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===D.value,(()=>se.value))));const o=!0===E.value&&void 0!==t.mini,s=[(0,n.h)("div",{...u,key:""+o,class:[te.value,u.class]},!0===o?t.mini():(0,g.KR)(t.default))];return!0===e.elevated&&!0===D.value&&s.push((0,n.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),i.push((0,g.Jl)("aside",{ref:"content",class:ie.value,style:ee.value},s,"contentclose",!0!==e.noSwipeClose&&!0===L.value,(()=>oe.value))),(0,n.h)("div",{class:"q-drawer-container"},i)}}})},61123:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});i(49766),i(72879);var n=i(60499),o=i(59835),s=i(61957),r=i(490),a=i(76749),l=i(33115),c=i(22857),d=i(65987);const u=(0,d.L)({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:i}){let n,r,a,l,c=!1,d=null,u=null;function h(){n&&n(),n=null,c=!1,null!==d&&(clearTimeout(d),d=null),null!==u&&(clearTimeout(u),u=null),void 0!==r&&r.removeEventListener("transitionend",a),a=null}function g(t,i,o){void 0!==i&&(t.style.height=`${i}px`),t.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,c=!0,n=o}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,h(),t!==l&&i(t)}function f(t,i){let n=0;r=t,!0===c?(h(),n=t.offsetHeight===t.scrollHeight?0:void 0):(l="hide",t.style.overflowY="hidden"),g(t,n,i),d=setTimeout((()=>{d=null,t.style.height=`${t.scrollHeight}px`,a=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"show")},t.addEventListener("transitionend",a),u=setTimeout(a,1.1*e.duration)}),100)}function m(t,i){let n;r=t,!0===c?h():(l="show",t.style.overflowY="hidden",n=t.scrollHeight),g(t,n,i),d=setTimeout((()=>{d=null,t.style.height=0,a=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"hide")},t.addEventListener("transitionend",a),u=setTimeout(a,1.1*e.duration)}),100)}return(0,o.Jd)((()=>{!0===c&&h()})),()=>(0,o.h)(s.uT,{css:!1,appear:e.appear,onEnter:f,onLeave:m},t.default)}});var h=i(50926),g=i(68234),p=i(87729),f=i(70945),m=i(63842),v=i(91384),_=i(22026),b=i(50796);const y=(0,n.Um)({}),w=Object.keys(f.$),C=(0,d.L)({name:"QExpansionItem",props:{...f.$,...m.vr,...g.S,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...m.gH,"click","afterShow","afterHide"],setup(e,{slots:t,emit:i}){const{proxy:{$q:d}}=(0,o.FN)(),f=(0,g.Z)(e,d),C=(0,n.iH)(null!==e.modelValue?e.modelValue:e.defaultOpened),S=(0,n.iH)(null),x=(0,p.Z)(),{show:k,hide:L,toggle:E}=(0,m.ZP)({showing:C});let N,D;const T=(0,o.Fl)((()=>"q-expansion-item q-item-type q-expansion-item--"+(!0===C.value?"expanded":"collapsed")+" q-expansion-item--"+(!0===e.popup?"popup":"standard"))),I=(0,o.Fl)((()=>{if(void 0===e.contentInsetLevel)return null;const t=!0===d.lang.rtl?"Right":"Left";return{["padding"+t]:56*e.contentInsetLevel+"px"}})),R=(0,o.Fl)((()=>!0!==e.disable&&(void 0!==e.href||void 0!==e.to&&null!==e.to&&""!==e.to))),A=(0,o.Fl)((()=>{const t={};return w.forEach((i=>{t[i]=e[i]})),t})),O=(0,o.Fl)((()=>!0===R.value||!0!==e.expandIconToggle)),P=(0,o.Fl)((()=>void 0!==e.expandedIcon&&!0===C.value?e.expandedIcon:e.expandIcon||d.iconSet.expansionItem[!0===e.denseToggle?"denseIcon":"icon"])),M=(0,o.Fl)((()=>!0!==e.disable&&(!0===R.value||!0===e.expandIconToggle))),F=(0,o.Fl)((()=>({expanded:!0===C.value,detailsId:x.value,toggle:E,show:k,hide:L}))),B=(0,o.Fl)((()=>{const t=void 0!==e.toggleAriaLabel?e.toggleAriaLabel:d.lang.label[!0===C.value?"collapse":"expand"](e.label);return{role:"button","aria-expanded":!0===C.value?"true":"false","aria-controls":x.value,"aria-label":t}}));function H(e){!0!==R.value&&E(e),i("click",e)}function W(e){13===e.keyCode&&V(e,!0)}function V(e,t){!0!==t&&null!==S.value&&S.value.focus(),E(e),(0,v.NS)(e)}function j(){i("afterShow")}function z(){i("afterHide")}function U(){void 0===N&&(N=(0,b.Z)()),!0===C.value&&(y[e.group]=N);const t=(0,o.YP)(C,(t=>{!0===t?y[e.group]=N:y[e.group]===N&&delete y[e.group]})),i=(0,o.YP)((()=>y[e.group]),((e,t)=>{t===N&&void 0!==e&&e!==N&&L()}));D=()=>{t(),i(),y[e.group]===N&&delete y[e.group],D=void 0}}function $(){const t={class:["q-focusable relative-position cursor-pointer"+(!0===e.denseToggle&&!0===e.switchToggleSide?" items-end":""),e.expandIconClass],side:!0!==e.switchToggleSide,avatar:e.switchToggleSide},i=[(0,o.h)(c.Z,{class:"q-expansion-item__toggle-icon"+(void 0===e.expandedIcon&&!0===C.value?" q-expansion-item__toggle-icon--rotated":""),name:P.value})];return!0===M.value&&(Object.assign(t,{tabindex:0,...B.value,onClick:V,onKeyup:W}),i.unshift((0,o.h)("div",{ref:S,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),(0,o.h)(a.Z,t,(()=>i))}function q(){let i;return void 0!==t.header?i=[].concat(t.header(F.value)):(i=[(0,o.h)(a.Z,(()=>[(0,o.h)(l.Z,{lines:e.labelLines},(()=>e.label||"")),e.caption?(0,o.h)(l.Z,{lines:e.captionLines,caption:!0},(()=>e.caption)):null]))],e.icon&&i[!0===e.switchToggleSide?"push":"unshift"]((0,o.h)(a.Z,{side:!0===e.switchToggleSide,avatar:!0!==e.switchToggleSide},(()=>(0,o.h)(c.Z,{name:e.icon}))))),!0!==e.disable&&!0!==e.hideExpandIcon&&i[!0===e.switchToggleSide?"unshift":"push"]($()),i}function K(){const t={ref:"item",style:e.headerStyle,class:e.headerClass,dark:f.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return!0===O.value&&(t.clickable=!0,t.onClick=H,Object.assign(t,!0===R.value?A.value:B.value)),(0,o.h)(r.Z,t,q)}function G(){return(0,o.wy)((0,o.h)("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:I.value,id:x.value},(0,_.KR)(t.default)),[[s.F8,C.value]])}function Z(){const t=[K(),(0,o.h)(u,{duration:e.duration,onShow:j,onHide:z},G)];return!0===e.expandSeparator&&t.push((0,o.h)(h.Z,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:f.value}),(0,o.h)(h.Z,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:f.value})),t}return(0,o.YP)((()=>e.group),(e=>{void 0!==D&&D(),void 0!==e&&U()})),void 0!==e.group&&U(),(0,o.Jd)((()=>{void 0!==D&&D()})),()=>(0,o.h)("div",{class:T.value},[(0,o.h)("div",{class:"q-expansion-item__container relative-position"},Z())])}})},8326:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(72879);var n=i(59835),o=i(60499),s=i(65987),r=i(91384),a=i(17026),l=i(22026),c=i(95439),d=i(52046);const u=(0,s.L)({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:i}){const s=(0,n.FN)(),u=(0,o.iH)(null);let h=0;const g=[];function p(t){const n="boolean"===typeof t?t:!0!==e.noErrorFocus,o=++h,s=(e,t)=>{i("validation"+(!0===e?"Success":"Error"),t)},r=e=>{const t=e.validate();return"function"===typeof t.then?t.then((t=>({valid:t,comp:e})),(t=>({valid:!1,comp:e,err:t}))):Promise.resolve({valid:t,comp:e})},a=!0===e.greedy?Promise.all(g.map(r)).then((e=>e.filter((e=>!0!==e.valid)))):g.reduce(((e,t)=>e.then((()=>r(t).then((e=>{if(!1===e.valid)return Promise.reject(e)}))))),Promise.resolve()).catch((e=>[e]));return a.then((e=>{if(void 0===e||0===e.length)return o===h&&s(!0),!0;if(o===h){const{comp:t,err:i}=e[0];if(void 0!==i&&console.error(i),s(!1,t),!0===n){const t=e.find((({comp:e})=>"function"===typeof e.focus&&!1===(0,d.$D)(e.$)));void 0!==t&&t.comp.focus()}}return!1}))}function f(){h++,g.forEach((e=>{"function"===typeof e.resetValidation&&e.resetValidation()}))}function m(t){void 0!==t&&(0,r.NS)(t);const n=h+1;p().then((o=>{n===h&&!0===o&&(void 0!==e.onSubmit?i("submit",t):void 0!==t&&void 0!==t.target&&"function"===typeof t.target.submit&&t.target.submit())}))}function v(t){void 0!==t&&(0,r.NS)(t),i("reset"),(0,n.Y3)((()=>{f(),!0===e.autofocus&&!0!==e.noResetFocus&&_()}))}function _(){(0,a.jd)((()=>{if(null===u.value)return;const e=u.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||u.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||u.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(u.value.querySelectorAll("[tabindex]"),(e=>-1!==e.tabIndex));null!==e&&void 0!==e&&e.focus({preventScroll:!0})}))}(0,n.JJ)(c.vh,{bindComponent(e){g.push(e)},unbindComponent(e){const t=g.indexOf(e);-1!==t&&g.splice(t,1)}});let b=!1;return(0,n.se)((()=>{b=!0})),(0,n.dl)((()=>{!0===b&&!0===e.autofocus&&_()})),(0,n.bv)((()=>{!0===e.autofocus&&_()})),Object.assign(s.proxy,{validate:p,resetValidation:f,submit:m,reset:v,focus:_,getValidationComponents:()=>g}),()=>(0,n.h)("form",{class:"q-form",ref:u,onSubmit:m,onReset:v},(0,l.KR)(t.default))}})},16602:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});i(72879);var n=i(59835),o=i(60499),s=i(76849),r=i(65987),a=i(22026),l=i(95439);const c=(0,r.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:i}){const{proxy:{$q:r}}=(0,n.FN)(),c=(0,n.f3)(l.YE,l.qO);if(c===l.qO)return console.error("QHeader needs to be child of QLayout"),l.qO;const d=(0,o.iH)(parseInt(e.heightHint,10)),u=(0,o.iH)(!0),h=(0,n.Fl)((()=>!0===e.reveal||-1!==c.view.value.indexOf("H")||r.platform.is.ios&&!0===c.isContainer.value)),g=(0,n.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===h.value)return!0===u.value?d.value:0;const t=d.value-c.scroll.value.position;return t>0?t:0})),p=(0,n.Fl)((()=>!0!==e.modelValue||!0===h.value&&!0!==u.value)),f=(0,n.Fl)((()=>!0===e.modelValue&&!0===p.value&&!0===e.reveal)),m=(0,n.Fl)((()=>"q-header q-layout__section--marginal "+(!0===h.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===p.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),v=(0,n.Fl)((()=>{const e=c.rows.value.top,t={};return"l"===e[0]&&!0===c.left.space&&(t[!0===r.lang.rtl?"right":"left"]=`${c.left.size}px`),"r"===e[2]&&!0===c.right.space&&(t[!0===r.lang.rtl?"left":"right"]=`${c.right.size}px`),t}));function _(e,t){c.update("header",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(d,e),_("size",e)}function w(e){!0===f.value&&b(u,!0),i("focusin",e)}(0,n.YP)((()=>e.modelValue),(e=>{_("space",e),b(u,!0),c.animate()})),(0,n.YP)(g,(e=>{_("offset",e)})),(0,n.YP)((()=>e.reveal),(t=>{!1===t&&b(u,e.modelValue)})),(0,n.YP)(u,(e=>{c.animate(),i("reveal",e)})),(0,n.YP)(c.scroll,(t=>{!0===e.reveal&&b(u,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const C={};return c.instances.header=C,!0===e.modelValue&&_("size",d.value),_("space",e.modelValue),_("offset",g.value),(0,n.Jd)((()=>{c.instances.header===C&&(c.instances.header=void 0,_("size",0),_("offset",0),_("space",!1))})),()=>{const i=(0,a.Bl)(t.default,[]);return!0===e.elevated&&i.push((0,n.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),i.push((0,n.h)(s.Z,{debounce:0,onResize:y})),(0,n.h)("header",{class:m.value,style:v.value,onFocusin:w},i)}}})},22857:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(59835),o=i(20244),s=i(65987),r=i(22026);const a="0 0 24 24",l=e=>e,c=e=>`ionicons ${e}`,d={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":c,"ion-ios":c,"ion-logo":c,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},u={o_:"-outlined",r_:"-round",s_:"-sharp"},h={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},g=new RegExp("^("+Object.keys(d).join("|")+")"),p=new RegExp("^("+Object.keys(u).join("|")+")"),f=new RegExp("^("+Object.keys(h).join("|")+")"),m=/^[Mm]\s?[-+]?\.?\d/,v=/^img:/,_=/^svguse:/,b=/^ion-/,y=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,w=(0,s.L)({name:"QIcon",props:{...o.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),s=(0,o.ZP)(e),l=(0,n.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),c=(0,n.Fl)((()=>{let t,o=e.name;if("none"===o||!o)return{none:!0};if(null!==i.iconMapFn){const e=i.iconMapFn(o);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(o=e.icon,"none"===o||!o)return{none:!0}}}if(!0===m.test(o)){const[e,t=a]=o.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,i,o]=e.split("@@");return(0,n.h)("path",{style:i,d:t,transform:o})}))}}if(!0===v.test(o))return{img:!0,src:o.substring(4)};if(!0===_.test(o)){const[e,t=a]=o.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let s=" ";const r=o.match(g);if(null!==r)t=d[r[1]](o);else if(!0===y.test(o))t=o;else if(!0===b.test(o))t=`ionicons ion-${!0===i.platform.is.ios?"ios":"md"}${o.substring(3)}`;else if(!0===f.test(o)){t="notranslate material-symbols";const e=o.match(f);null!==e&&(o=o.substring(6),t+=h[e[1]]),s=o}else{t="notranslate material-icons";const e=o.match(p);null!==e&&(o=o.substring(2),t+=u[e[1]]),s=o}return{cls:t,content:s}}));return()=>{const i={class:l.value,style:s.value,"aria-hidden":"true",role:"presentation"};return!0===c.value.none?(0,n.h)(e.tag,i,(0,r.KR)(t.default)):!0===c.value.img?(0,n.h)(e.tag,i,(0,r.vs)(t.default,[(0,n.h)("img",{src:c.value.src})])):!0===c.value.svg?(0,n.h)(e.tag,i,(0,r.vs)(t.default,[(0,n.h)("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):!0===c.value.svguse?(0,n.h)(e.tag,i,(0,r.vs)(t.default,[(0,n.h)("svg",{viewBox:c.value.viewBox},[(0,n.h)("use",{"xlink:href":c.value.src})])])):(void 0!==c.value.cls&&(i.class+=" "+c.value.cls),(0,n.h)(e.tag,i,(0,r.vs)(t.default,[c.value.content])))}}})},70335:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});i(72879);var n=i(60499),o=i(59835),s=i(61957),r=i(63940),a=i(39180);const l={ratio:[String,Number]};function c(e,t){return(0,o.Fl)((()=>{const i=Number(e.ratio||(void 0!==t?t.value:void 0));return!0!==isNaN(i)&&i>0?{paddingBottom:100/i+"%"}:null}))}var d=i(65987),u=i(22026),h=i(52046),g=i(4698);const p=1.7778,f=(0,d.L)({name:"QImg",props:{...l,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:p},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:i}){const l=(0,n.iH)(e.initialRatio),d=c(e,l),p=(0,o.FN)(),{registerTimeout:f,removeTimeout:m}=(0,g.Z)(),{registerTimeout:v,removeTimeout:_}=(0,g.Z)(),b=(0,o.Fl)((()=>void 0!==e.placeholderSrc?{src:e.placeholderSrc}:null)),y=(0,o.Fl)((()=>void 0!==e.errorSrc?{src:e.errorSrc,__qerror:!0}:null)),w=[(0,n.iH)(null),(0,n.iH)(b.value)],C=(0,n.iH)(0),S=(0,n.iH)(!1),x=(0,n.iH)(!1),k=(0,o.Fl)((()=>`q-img q-img--${!0===e.noNativeMenu?"no-":""}menu`)),L=(0,o.Fl)((()=>({width:e.width,height:e.height}))),E=(0,o.Fl)((()=>"q-img__image "+(void 0!==e.imgClass?e.imgClass+" ":"")+`q-img__image--with${!0===e.noTransition?"out":""}-transition q-img__image--`)),N=(0,o.Fl)((()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position})));function D(){_(),0!==e.loadingShowDelay?v((()=>{S.value=!0}),e.loadingShowDelay):S.value=!0}function T(){_(),S.value=!1}function I({target:e}){!1===(0,h.$D)(p)&&(m(),l.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,R(e,1))}function R(e,t){1e3!==t&&!0!==(0,h.$D)(p)&&(!0===e.complete?A(e):f((()=>{R(e,t+1)}),50))}function A(e){!0!==(0,h.$D)(p)&&(C.value=1^C.value,w[C.value].value=null,T(),"true"!==e.getAttribute("__qerror")&&(x.value=!1),i("load",e.currentSrc||e.src))}function O(e){m(),T(),x.value=!0,w[C.value].value=y.value,w[1^C.value].value=b.value,i("error",e)}function P(t){const i=w[t].value,n={key:"img_"+t,class:E.value,style:N.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...i};return C.value===t?Object.assign(n,{class:n.class+"current",onLoad:I,onError:O}):n.class+="loaded",(0,o.h)("div",{class:"q-img__container absolute-full",key:"img"+t},(0,o.h)("img",n))}function M(){return!1===S.value?(0,o.h)("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},(0,u.KR)(t[!0===x.value?"error":"default"])):(0,o.h)("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==t.loading?t.loading():!0===e.noSpinner?void 0:[(0,o.h)(r.Z,{color:e.spinnerColor,size:e.spinnerSize})])}{function F(){(0,o.YP)((()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null),(e=>{m(),x.value=!1,null===e?(T(),w[1^C.value].value=b.value):D(),w[C.value].value=e}),{immediate:!0})}!0===a.u.value?(0,o.bv)(F):F()}return()=>{const t=[];return null!==d.value&&t.push((0,o.h)("div",{key:"filler",style:d.value})),null!==w[0].value&&t.push(P(0)),null!==w[1].value&&t.push(P(1)),t.push((0,o.h)(s.uT,{name:"q-transition--fade"},M)),(0,o.h)("div",{key:"main",class:k.value,style:L.value,role:"img","aria-label":e.alt},t)}}})},66611:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(59835),o=i(60499),s=i(87810),r=(i(72879),i(61705));const a={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},c=Object.keys(l);c.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const d=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+c.join("")+"])|(.)","g"),u=/[.*+?^${}()|[\]\\]/g,h=String.fromCharCode(1),g={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function p(e,t,i,s){let c,g,p,f,m,v;const _=(0,o.iH)(null),b=(0,o.iH)(w());function y(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function w(){if(S(),!0===_.value){const t=D(I(e.modelValue));return!1!==e.fillMask?R(t):t}return e.modelValue}function C(e){if(e0;n--)t+=h;i=i.slice(0,n)+t+i.slice(n)}return i}function S(){if(_.value=void 0!==e.mask&&0!==e.mask.length&&y(),!1===_.value)return f=void 0,c="",void(g="");const t=void 0===a[e.mask]?e.mask:a[e.mask],i="string"===typeof e.fillMask&&0!==e.fillMask.length?e.fillMask.slice(0,1):"_",n=i.replace(u,"\\$&"),o=[],s=[],r=[];let m=!0===e.reverseFillMask,v="",b="";t.replace(d,((e,t,i,n,a)=>{if(void 0!==n){const e=l[n];r.push(e),b=e.negate,!0===m&&(s.push("(?:"+b+"+)?("+e.pattern+"+)?(?:"+b+"+)?("+e.pattern+"+)?"),m=!1),s.push("(?:"+b+"+)?("+e.pattern+")?")}else if(void 0!==i)v="\\"+("\\"===i?"":i),r.push(i),o.push("([^"+v+"]+)?"+v+"?");else{const e=void 0!==t?t:a;v="\\"===e?"\\\\\\\\":e.replace(u,"\\\\$&"),r.push(e),o.push("([^"+v+"]+)?"+v+"?")}}));const w=new RegExp("^"+o.join("")+"("+(""===v?".":"[^"+v+"]")+"+)?"+(""===v?"":"["+v+"]*")+"$"),C=s.length-1,S=s.map(((t,i)=>0===i&&!0===e.reverseFillMask?new RegExp("^"+n+"*"+t):i===C?new RegExp("^"+t+"("+(""===b?".":b)+"+)?"+(!0===e.reverseFillMask?"$":n+"*")):new RegExp("^"+t)));p=r,f=t=>{const i=w.exec(!0===e.reverseFillMask?t:t.slice(0,r.length+1));null!==i&&(t=i.slice(1).join(""));const n=[],o=S.length;for(let e=0,s=t;e"string"===typeof e?e:h)).join(""),g=c.split(h).join(i)}function x(t,o,r){const a=s.value,l=a.selectionEnd,d=a.value.length-l,u=I(t);!0===o&&S();const p=D(u),f=!1!==e.fillMask?R(p):p,v=b.value!==f;a.value!==f&&(a.value=f),!0===v&&(b.value=f),document.activeElement===a&&(0,n.Y3)((()=>{if(f!==g)if("insertFromPaste"!==r||!0===e.reverseFillMask)if(-1===["deleteContentBackward","deleteContentForward"].indexOf(r))if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,f.length-(f===g?0:Math.min(p.length,d+1)));1===e&&1===l?a.setSelectionRange(e,e,"forward"):L.rightReverse(a,e)}else{const e=f.length-d;a.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,c.indexOf(h),Math.min(p.length,l)-1);L.right(a,e)}else{const e=l-1;L.right(a,e)}else{const t=!0===e.reverseFillMask?0===l?f.length>p.length?1:0:Math.max(0,f.length-(f===g?0:Math.min(p.length,d)+1))+1:l;a.setSelectionRange(t,t,"forward")}else{const e=a.selectionEnd;let t=l-1;for(let i=m;i<=t&&ie.type+e.autogrow),S),(0,n.YP)((()=>e.mask),(i=>{if(void 0!==i)x(b.value,!0);else{const i=I(b.value);S(),e.modelValue!==i&&t("update:modelValue",i)}})),(0,n.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===_.value&&x(b.value,!0)})),(0,n.YP)((()=>e.unmaskedValue),(()=>{!0===_.value&&x(b.value)}));const L={left(e,t){const i=-1===c.slice(t-1).indexOf(h);let n=Math.max(0,t-1);for(;n>=0;n--)if(c[n]===h){t=n,!0===i&&t++;break}if(n<0&&void 0!==c[t]&&c[t]!==h)return L.right(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},right(e,t){const i=e.value.length;let n=Math.min(i,t+1);for(;n<=i;n++){if(c[n]===h){t=n;break}c[n-1]===h&&(t=n)}if(n>i&&void 0!==c[t-1]&&c[t-1]!==h)return L.left(e,i);e.setSelectionRange(t,t,"forward")},leftReverse(e,t){const i=C(e.value.length);let n=Math.max(0,t-1);for(;n>=0;n--){if(i[n-1]===h){t=n;break}if(i[n]===h&&(t=n,0===n))break}if(n<0&&void 0!==i[t]&&i[t]!==h)return L.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},rightReverse(e,t){const i=e.value.length,n=C(i),o=-1===n.slice(0,t+1).indexOf(h);let s=Math.min(i,t+1);for(;s<=i;s++)if(n[s-1]===h){t=s,t>0&&!0===o&&t--;break}if(s>i&&void 0!==n[t-1]&&n[t-1]!==h)return L.leftReverse(e,i);e.setSelectionRange(t,t,"forward")}};function E(e){t("click",e),v=void 0}function N(i){if(t("keydown",i),!0===(0,r.Wm)(i)||!0===i.altKey)return;const n=s.value,o=n.selectionStart,a=n.selectionEnd;if(i.shiftKey||(v=void 0),37===i.keyCode||39===i.keyCode){i.shiftKey&&void 0===v&&(v="forward"===n.selectionDirection?o:a);const t=L[(39===i.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];if(i.preventDefault(),t(n,v===o?a:o),i.shiftKey){const e=n.selectionStart;n.setSelectionRange(Math.min(v,e),Math.max(v,e),"forward")}}else 8===i.keyCode&&!0!==e.reverseFillMask&&o===a?(L.left(n,o),n.setSelectionRange(n.selectionStart,a,"backward")):46===i.keyCode&&!0===e.reverseFillMask&&o===a&&(L.rightReverse(n,a),n.setSelectionRange(o,n.selectionEnd,"forward"))}function D(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const i=p;let n=0,o="";for(let e=0;e=0&&-1!==n;s--){const r=t[s];let a=e[n];if("string"===typeof r)o=r+o,a===r&&n--;else{if(void 0===a||!r.regex.test(a))return o;do{o=(void 0!==r.transform?r.transform(a):a)+o,n--,a=e[n]}while(i===s&&void 0!==a&&r.regex.test(a))}}return o}function I(e){return"string"!==typeof e||void 0===f?"number"===typeof e?f(""+e):e:f(e)}function R(t){return g.length-t.length<=0?t:!0===e.reverseFillMask&&0!==t.length?g.slice(0,-t.length)+t:t+g.slice(t.length)}return{innerValue:b,hasMask:_,moveCursorForPaste:k,updateMaskValue:x,onMaskedKeydown:N,onMaskedClick:E}}var f=i(99256);function m(e,t){function i(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(i){return{files:void 0}}}return!0===t?(0,n.Fl)((()=>{if("file"===e.type)return i()})):(0,n.Fl)(i)}var v=i(62802),_=i(65987),b=i(91384),y=i(17026),w=i(43251);const C=(0,_.L)({name:"QInput",inheritAttrs:!1,props:{...s.Cl,...g,...f.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...s.HJ,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:i}){const{proxy:r}=(0,n.FN)(),{$q:a}=r,l={};let c,d,u,h=NaN,g=null;const _=(0,o.iH)(null),C=(0,f.Do)(e),{innerValue:S,hasMask:x,moveCursorForPaste:k,updateMaskValue:L,onMaskedKeydown:E,onMaskedClick:N}=p(e,t,j,_),D=m(e,!0),T=(0,n.Fl)((()=>(0,s.yV)(S.value))),I=(0,v.Z)(W),R=(0,s.tL)(),A=(0,n.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),O=(0,n.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),P=(0,n.Fl)((()=>{const t={...R.splitAttrs.listeners.value,onInput:W,onPaste:H,onChange:U,onBlur:$,onFocus:b.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=I,!0===x.value&&(t.onKeydown=E,t.onClick=N),!0===e.autogrow&&(t.onAnimationend=V),t})),M=(0,n.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:C.value,...R.splitAttrs.attributes.value,id:R.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function F(){(0,y.jd)((()=>{const e=document.activeElement;null===_.value||_.value===e||null!==e&&e.id===R.targetUid.value||_.value.focus({preventScroll:!0})}))}function B(){null!==_.value&&_.value.select()}function H(i){if(!0===x.value&&!0!==e.reverseFillMask){const e=i.target;k(e,e.selectionStart,e.selectionEnd)}t("paste",i)}function W(i){if(!i||!i.target)return;if("file"===e.type)return void t("update:modelValue",i.target.files);const o=i.target.value;if(!0!==i.target.qComposing){if(!0===x.value)L(o,!1,i.inputType);else if(j(o),!0===O.value&&i.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=i.target;void 0!==e&&void 0!==t&&(0,n.Y3)((()=>{i.target===document.activeElement&&0===o.indexOf(i.target.value)&&i.target.setSelectionRange(e,t)}))}!0===e.autogrow&&z()}else l.value=o}function V(e){t("animationend",e),z()}function j(i,o){u=()=>{g=null,"number"!==e.type&&!0===l.hasOwnProperty("value")&&delete l.value,e.modelValue!==i&&h!==i&&(h=i,!0===o&&(d=!0),t("update:modelValue",i),(0,n.Y3)((()=>{h===i&&(h=NaN)}))),u=void 0},"number"===e.type&&(c=!0,l.value=i),void 0!==e.debounce?(null!==g&&clearTimeout(g),l.value=i,g=setTimeout(u,e.debounce)):u()}function z(){requestAnimationFrame((()=>{const e=_.value;if(null!==e){const t=e.parentNode.style,{scrollTop:i}=e,{overflowY:n,maxHeight:o}=!0===a.platform.is.firefox?{}:window.getComputedStyle(e),s=void 0!==n&&"scroll"!==n;!0===s&&(e.style.overflowY="hidden"),t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",!0===s&&(e.style.overflowY=parseInt(o,10){null!==_.value&&(_.value.value=void 0!==S.value?S.value:"")}))}function q(){return!0===l.hasOwnProperty("value")?l.value:void 0!==S.value?S.value:""}(0,n.YP)((()=>e.type),(()=>{_.value&&(_.value.value=e.modelValue)})),(0,n.YP)((()=>e.modelValue),(t=>{if(!0===x.value){if(!0===d&&(d=!1,String(t)===h))return;L(t)}else S.value!==t&&(S.value=t,"number"===e.type&&!0===l.hasOwnProperty("value")&&(!0===c?c=!1:delete l.value));!0===e.autogrow&&(0,n.Y3)(z)})),(0,n.YP)((()=>e.autogrow),(e=>{!0===e?(0,n.Y3)(z):null!==_.value&&i.rows>0&&(_.value.style.height="auto")})),(0,n.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,n.Y3)(z)})),(0,n.Jd)((()=>{$()})),(0,n.bv)((()=>{!0===e.autogrow&&z()})),Object.assign(R,{innerValue:S,fieldClass:(0,n.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,n.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&0!==e.shadowText.length)),inputRef:_,emitValue:j,hasValue:T,floatingLabel:(0,n.Fl)((()=>!0===T.value&&("number"!==e.type||!1===isNaN(S.value))||(0,s.yV)(e.displayValue))),getControl:()=>(0,n.h)(!0===A.value?"textarea":"input",{ref:_,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...M.value,...P.value,..."file"!==e.type?{value:q()}:D.value}),getShadowControl:()=>(0,n.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,n.h)("span",{class:"invisible"},q()),(0,n.h)("span",e.shadowText)])});const K=(0,s.ZP)(R);return Object.assign(r,{focus:F,select:B,getNativeElement:()=>_.value}),(0,w.g)(r,"nativeEl",(()=>_.value)),K}})},490:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(49766);var n=i(59835),o=i(60499),s=i(68234),r=i(70945),a=i(65987),l=i(22026),c=i(91384),d=i(61705);const u=(0,a.L)({name:"QItem",props:{...s.S,...r.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:i}){const{proxy:{$q:a}}=(0,n.FN)(),u=(0,s.Z)(e,a),{hasLink:h,linkAttrs:g,linkClass:p,linkTag:f,navigateOnClick:m}=(0,r.Z)(),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0===e.clickable||!0===h.value||"label"===e.tag)),y=(0,n.Fl)((()=>!0!==e.disable&&!0===b.value)),w=(0,n.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===u.value?" q-item--dark":"")+(!0===h.value&&null===e.active?p.value:!0===e.active?" q-item--active"+(void 0!==e.activeClass?` ${e.activeClass}`:""):"")+(!0===e.disable?" disabled":"")+(!0===y.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),C=(0,n.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===a.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function S(e){!0===y.value&&(null!==_.value&&(!0!==e.qKeyEvent&&document.activeElement===v.value?_.value.focus():document.activeElement===_.value&&v.value.focus()),m(e))}function x(e){if(!0===y.value&&!0===(0,d.So)(e,[13,32])){(0,c.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,v.value.dispatchEvent(t)}i("keyup",e)}function k(){const e=(0,l.Bl)(t.default,[]);return!0===y.value&&e.unshift((0,n.h)("div",{class:"q-focus-helper",tabindex:-1,ref:_})),e}return()=>{const t={ref:v,class:w.value,style:C.value,role:"listitem",onClick:S,onKeyup:x};return!0===y.value?(t.tabindex=e.tabindex||"0",Object.assign(t,g.value)):!0===b.value&&(t["aria-disabled"]="true"),(0,n.h)(f.value,t,k())}}})},33115:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const i=(0,n.Fl)((()=>parseInt(e.lines,10))),o=(0,n.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===i.value?" ellipsis":""))),r=(0,n.Fl)((()=>void 0!==e.lines&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null));return()=>(0,n.h)("div",{style:r.value,class:o.value},(0,s.KR)(t.default))}})},76749:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,n.h)("div",{class:i.value},(0,s.KR)(t.default))}})},13246:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),s=i(68234),r=i(22026);const a=(0,o.L)({name:"QList",props:{...s.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,s.Z)(e,i.proxy.$q),a=(0,n.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===o.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,n.h)(e.tag,{class:a.value},(0,r.KR)(t.default))}})},20249:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(59835),o=i(60499),s=i(39180),r=i(71868),a=i(76849),l=i(65987),c=i(43701),d=i(22026),u=i(95439);const h=(0,l.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:i}){const{proxy:{$q:l}}=(0,n.FN)(),h=(0,o.iH)(null),g=(0,o.iH)(l.screen.height),p=(0,o.iH)(!0===e.container?0:l.screen.width),f=(0,o.iH)({position:0,direction:"down",inflectionPoint:0}),m=(0,o.iH)(0),v=(0,o.iH)(!0===s.u.value?0:(0,c.np)()),_=(0,n.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),b=(0,n.Fl)((()=>!1===e.container?{minHeight:l.screen.height+"px"}:null)),y=(0,n.Fl)((()=>0!==v.value?{[!0===l.lang.rtl?"left":"right"]:`${v.value}px`}:null)),w=(0,n.Fl)((()=>0!==v.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${v.value}px`,width:`calc(100% + ${v.value}px)`}:null));function C(t){if(!0===e.container||!0!==document.qScrollPrevented){const n={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};f.value=n,void 0!==e.onScroll&&i("scroll",n)}}function S(t){const{height:n,width:o}=t;let s=!1;g.value!==n&&(s=!0,g.value=n,void 0!==e.onScrollHeight&&i("scrollHeight",n),k()),p.value!==o&&(s=!0,p.value=o),!0===s&&void 0!==e.onResize&&i("resize",t)}function x({height:e}){m.value!==e&&(m.value=e,k())}function k(){if(!0===e.container){const e=g.value>m.value?(0,c.np)():0;v.value!==e&&(v.value=e)}}let L=null;const E={instances:{},view:(0,n.Fl)((()=>e.view)),isContainer:(0,n.Fl)((()=>e.container)),rootRef:h,height:g,containerHeight:m,scrollbarWidth:v,totalWidth:(0,n.Fl)((()=>p.value+v.value)),rows:(0,n.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,o.qj)({size:0,offset:0,space:!1}),right:(0,o.qj)({size:300,offset:0,space:!1}),footer:(0,o.qj)({size:0,offset:0,space:!1}),left:(0,o.qj)({size:300,offset:0,space:!1}),scroll:f,animate(){null!==L?clearTimeout(L):document.body.classList.add("q-body--layout-animate"),L=setTimeout((()=>{L=null,document.body.classList.remove("q-body--layout-animate")}),155)},update(e,t,i){E[e][t]=i}};if((0,n.JJ)(u.YE,E),(0,c.np)()>0){let N=null;const D=document.body;function T(){N=null,D.classList.remove("hide-scrollbar")}function I(){if(null===N){if(D.scrollHeight>l.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(N);N=setTimeout(T,300)}function R(e){null!==N&&"remove"===e&&(clearTimeout(N),T()),window[`${e}EventListener`]("resize",I)}(0,n.YP)((()=>!0!==e.container?"add":"remove"),R),!0!==e.container&&R("add"),(0,n.Ah)((()=>{R("remove")}))}return()=>{const i=(0,d.vs)(t.default,[(0,n.h)(r.Z,{onScroll:C}),(0,n.h)(a.Z,{onResize:S})]),o=(0,n.h)("div",{class:_.value,style:b.value,ref:!0===e.container?void 0:h,tabindex:-1},i);return!0===e.container?(0,n.h)("div",{class:"q-layout-container overflow-hidden",ref:h},[(0,n.h)(a.Z,{onResize:x}),(0,n.h)("div",{class:"absolute-full",style:y.value},[(0,n.h)("div",{class:"scroll",style:w.value},[o])])]):o}}})},8289:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});i(72879);var n=i(59835),o=i(68234),s=i(20244),r=i(65987),a=i(22026);const l={xs:2,sm:4,md:6,lg:10,xl:14};function c(e,t,i){return{transform:!0===t?`translateX(${!0===i.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const d=(0,r.L)({name:"QLinearProgress",props:{...o.S,...s.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:i}=(0,n.FN)(),r=(0,o.Z)(e,i.$q),d=(0,s.ZP)(e,l),u=(0,n.Fl)((()=>!0===e.indeterminate||!0===e.query)),h=(0,n.Fl)((()=>e.reverse!==e.query)),g=(0,n.Fl)((()=>({...null!==d.value?d.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),p=(0,n.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),f=(0,n.Fl)((()=>c(void 0!==e.buffer?e.buffer:1,h.value,i.$q))),m=(0,n.Fl)((()=>`with${!0===e.instantFeedback?"out":""}-transition`)),v=(0,n.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--${m.value} q-linear-progress__track--`+(!0===r.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),_=(0,n.Fl)((()=>c(!0===u.value?1:e.value,h.value,i.$q))),b=(0,n.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--${m.value} q-linear-progress__model--${!0===u.value?"in":""}determinate`)),y=(0,n.Fl)((()=>({width:100*e.value+"%"}))),w=(0,n.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")+` q-linear-progress__stripe--${m.value}`));return()=>{const i=[(0,n.h)("div",{class:v.value,style:f.value}),(0,n.h)("div",{class:b.value,style:_.value})];return!0===e.stripe&&!1===u.value&&i.push((0,n.h)("div",{class:w.value,style:y.value})),(0,n.h)("div",{class:p.value,style:g.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,a.vs)(t.default,i))}}})},47447:(e,t,i)=>{"use strict";i.d(t,{Z:()=>$});var n=i(59835),o=i(60499),s=i(61957),r=i(2589),a=i(91384),l=i(61705);const c={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function d({showing:e,avoidEmit:t,configureAnchorEl:i}){const{props:s,proxy:c,emit:d}=(0,n.FN)(),u=(0,o.iH)(null);let h=null;function g(e){return null!==u.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const p={};function f(){(0,a.ul)(p,"anchor")}function m(e){u.value=e;while(u.value.classList.contains("q-anchor--skip"))u.value=u.value.parentNode;i()}function v(){if(!1===s.target||""===s.target||null===c.$el.parentNode)u.value=null;else if(!0===s.target)m(c.$el.parentNode);else{let t=s.target;if("string"===typeof s.target)try{t=document.querySelector(s.target)}catch(e){t=void 0}void 0!==t&&null!==t?(u.value=t.$el||t,i()):(u.value=null,console.error(`Anchor: target "${s.target}" not found`))}}return void 0===i&&(Object.assign(p,{hide(e){c.hide(e)},toggle(e){c.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,l.So)(e,13)&&p.toggle(e)},contextClick(e){c.hide(e),(0,a.X$)(e),(0,n.Y3)((()=>{c.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(p.mobileCleanup(e),!0!==g(e))return;c.hide(e),u.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(p,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),h=setTimeout((()=>{h=null,c.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){u.value.classList.remove("non-selectable"),null!==h&&(clearTimeout(h),h=null),!0===e.value&&void 0!==t&&(0,r.M)()}}),i=function(e=s.contextMenu){if(!0===s.noParentEvent||null===u.value)return;let t;t=!0===e?!0===c.$q.platform.is.mobile?[[u.value,"touchstart","mobileTouch","passive"]]:[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],(0,a.M0)(p,"anchor",t)}),(0,n.YP)((()=>s.contextMenu),(e=>{null!==u.value&&(f(),i(e))})),(0,n.YP)((()=>s.target),(()=>{null!==u.value&&f(),v()})),(0,n.YP)((()=>s.noParentEvent),(e=>{null!==u.value&&(!0===e?f():i())})),(0,n.bv)((()=>{v(),!0!==t&&!0===s.modelValue&&null===u.value&&d("update:modelValue",!1)})),(0,n.Jd)((()=>{null!==h&&clearTimeout(h),f()})),{anchorEl:u,canShow:g,anchorEvents:p}}function u(e,t){const i=(0,o.iH)(null);let s;function r(e,t){const i=(void 0!==t?"add":"remove")+"EventListener",n=void 0!==t?t:s;e!==window&&e[i]("scroll",n,a.listenOpts.passive),window[i]("scroll",n,a.listenOpts.passive),s=t}function l(){null!==i.value&&(r(i.value),i.value=null)}const c=(0,n.YP)((()=>e.noParentEvent),(()=>{null!==i.value&&(l(),t())}));return(0,n.Jd)(c),{localScrollTarget:i,unconfigureScrollTarget:l,changeScrollEvent:r}}var h=i(63842),g=i(68234),p=i(91518),f=i(20431),m=i(46183),v=i(4698),_=i(65987),b=i(2909),y=i(43701),w=i(22026),C=i(16532),S=i(4173),x=i(70223);i(72879);let k=null;const{notPassiveCapture:L}=a.listenOpts,E=[];function N(e){null!==k&&(clearTimeout(k),k=null);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let i=b.Q$.length-1;while(i>=0){const e=b.Q$[i].$;if("QTooltip"!==e.type.name){if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;i--}else i--}for(let n=E.length-1;n>=0;n--){const i=E[n];if(null!==i.anchorEl.value&&!1!==i.anchorEl.value.contains(t)||t!==document.body&&(null===i.innerRef.value||!1!==i.innerRef.value.contains(t)))return;e.qClickOutside=!0,i.onClickOutside(e)}}function D(e){E.push(e),1===E.length&&(document.addEventListener("mousedown",N,L),document.addEventListener("touchstart",N,L))}function T(e){const t=E.findIndex((t=>t===e));-1!==t&&(E.splice(t,1),0===E.length&&(null!==k&&(clearTimeout(k),k=null),document.removeEventListener("mousedown",N,L),document.removeEventListener("touchstart",N,L)))}var I=i(17026),R=i(39180);let A,O;function P(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function M(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const F={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function B(e,t){const i=e.split(" ");return{vertical:i[0],horizontal:F[`${i[1]}#${!0===t?"rtl":"ltr"}`]}}function H(e,t){let{top:i,left:n,right:o,bottom:s,width:r,height:a}=e.getBoundingClientRect();return void 0!==t&&(i-=t[1],n-=t[0],s+=t[1],o+=t[0],r+=t[0],a+=t[1]),{top:i,bottom:s,height:a,left:n,right:o,width:r,middle:n+(o-n)/2,center:i+(s-i)/2}}function W(e,t,i){let{top:n,left:o}=e.getBoundingClientRect();return n+=t.top,o+=t.left,void 0!==i&&(n+=i[1],o+=i[0]),{top:n,bottom:n+1,height:1,left:o,right:o+1,width:1,middle:o,center:n}}function V(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function j(e,t,i,n){return{top:e[i.vertical]-t[n.vertical],left:e[i.horizontal]-t[n.horizontal]}}function z(e,t=0){if(null===e.targetEl||null===e.anchorEl||t>5)return;if(0===e.targetEl.offsetHeight||0===e.targetEl.offsetWidth)return void setTimeout((()=>{z(e,t+1)}),10);const{targetEl:i,offset:n,anchorEl:o,anchorOrigin:s,selfOrigin:r,absoluteOffset:a,fit:l,cover:c,maxHeight:d,maxWidth:u}=e;if(!0===R.client.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:i}=window.visualViewport;t!==A&&(e.setProperty("--q-pe-left",t+"px"),A=t),i!==O&&(e.setProperty("--q-pe-top",i+"px"),O=i)}const{scrollLeft:h,scrollTop:g}=i,p=void 0===a?H(o,!0===c?[0,0]:n):W(o,a,n);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u||"100vw",maxHeight:d||"100vh",visibility:"visible"});const{offsetWidth:f,offsetHeight:m}=i,{elWidth:v,elHeight:_}=!0===l||!0===c?{elWidth:Math.max(p.width,f),elHeight:!0===c?Math.max(p.height,m):m}:{elWidth:f,elHeight:m};let b={maxWidth:u,maxHeight:d};!0!==l&&!0!==c||(b.minWidth=p.width+"px",!0===c&&(b.minHeight=p.height+"px")),Object.assign(i.style,b);const y=V(v,_);let w=j(p,y,s,r);if(void 0===a||void 0===n)U(w,p,y,s,r);else{const{top:e,left:t}=w;U(w,p,y,s,r);let i=!1;if(w.top!==e){i=!0;const e=2*n[1];p.center=p.top-=e,p.bottom-=e+2}if(w.left!==t){i=!0;const e=2*n[0];p.middle=p.left-=e,p.right-=e+2}!0===i&&(w=j(p,y,s,r),U(w,p,y,s,r))}b={top:w.top+"px",left:w.left+"px"},void 0!==w.maxHeight&&(b.maxHeight=w.maxHeight+"px",p.height>w.maxHeight&&(b.minHeight=b.maxHeight)),void 0!==w.maxWidth&&(b.maxWidth=w.maxWidth+"px",p.width>w.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(i.style,b),i.scrollTop!==g&&(i.scrollTop=g),i.scrollLeft!==h&&(i.scrollLeft=h)}function U(e,t,i,n,o){const s=i.bottom,r=i.right,a=(0,y.np)(),l=window.innerHeight-a,c=document.body.clientWidth;if(e.top<0||e.top+s>l)if("center"===o.vertical)e.top=t[n.vertical]>l/2?Math.max(0,l-s):0,e.maxHeight=Math.min(s,l);else if(t[n.vertical]>l/2){const i=Math.min(l,"center"===n.vertical?t.center:n.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(s,i),e.top=Math.max(0,i-s)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(s,l-e.top);if(e.left<0||e.left+r>c)if(e.maxWidth=Math.min(r,c),"middle"===o.horizontal)e.left=t[n.horizontal]>c/2?Math.max(0,c-r):0;else if(t[n.horizontal]>c/2){const i=Math.min(c,"middle"===n.horizontal?t.middle:n.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(r,i),e.left=Math.max(0,i-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(r,c-e.left)}["left","middle","right"].forEach((e=>{F[`${e}#ltr`]=e,F[`${e}#rtl`]=e}));const $=(0,_.L)({name:"QMenu",inheritAttrs:!1,props:{...c,...h.vr,...g.S,...f.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:P},self:{type:String,validator:P},offset:{type:Array,validator:M},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...h.gH,"click","escapeKey"],setup(e,{slots:t,emit:i,attrs:r}){let l,c,_,k=null;const L=(0,n.FN)(),{proxy:E}=L,{$q:N}=E,R=(0,o.iH)(null),A=(0,o.iH)(!1),O=(0,n.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),P=(0,g.Z)(e,N),{registerTick:M,removeTick:F}=(0,m.Z)(),{registerTimeout:H}=(0,v.Z)(),{transitionProps:W,transitionStyle:V}=(0,f.Z)(e),{localScrollTarget:j,changeScrollEvent:U,unconfigureScrollTarget:$}=u(e,le),{anchorEl:q,canShow:K}=d({showing:A}),{hide:G}=(0,h.ZP)({showing:A,canShow:K,handleShow:se,handleHide:re,hideOnRouteChange:O,processOnMount:!0}),{showPortal:Z,hidePortal:Q,renderPortal:Y}=(0,p.Z)(L,R,ge,"menu"),J={anchorEl:q,innerRef:R,onClickOutside(t){if(!0!==e.persistent&&!0===A.value)return G(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,a.NS)(t),!0}},X=(0,n.Fl)((()=>B(e.anchor||(!0===e.cover?"center middle":"bottom start"),N.lang.rtl))),ee=(0,n.Fl)((()=>!0===e.cover?X.value:B(e.self||"top start",N.lang.rtl))),te=(0,n.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===P.value?" q-menu--dark q-dark":""))),ie=(0,n.Fl)((()=>!0===e.autoClose?{onClick:ce}:{})),ne=(0,n.Fl)((()=>!0===A.value&&!0!==e.persistent));function oe(){(0,I.jd)((()=>{let e=R.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function se(t){if(k=!1===e.noRefocus?document.activeElement:null,(0,S.i)(de),Z(),le(),l=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,a.FK)(t);if(void 0!==e.left){const{top:t,left:i}=q.value.getBoundingClientRect();l={left:e.left-i,top:e.top-t}}}void 0===c&&(c=(0,n.YP)((()=>N.screen.width+"|"+N.screen.height+"|"+e.self+"|"+e.anchor+"|"+N.lang.rtl),he)),!0!==e.noFocus&&document.activeElement.blur(),M((()=>{he(),!0!==e.noFocus&&oe()})),H((()=>{!0===N.platform.is.ios&&(_=e.autoClose,R.value.click()),he(),Z(!0),i("show",t)}),e.transitionDuration)}function re(t){F(),Q(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),H((()=>{Q(!0),i("hide",t)}),e.transitionDuration)}function ae(e){l=void 0,void 0!==c&&(c(),c=void 0),!0!==e&&!0!==A.value||((0,S.H)(de),$(),T(J),(0,C.k)(ue)),!0!==e&&(k=null)}function le(){null===q.value&&void 0===e.scrollTarget||(j.value=(0,y.b0)(q.value,e.scrollTarget),U(j.value,he))}function ce(e){!0!==_?((0,b.AH)(E,e),i("click",e)):_=!1}function de(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,x.mY)(R.value,t.target)&&oe()}function ue(e){i("escapeKey"),G(e)}function he(){z({targetEl:R.value,offset:e.offset,anchorEl:q.value,anchorOrigin:X.value,selfOrigin:ee.value,absoluteOffset:l,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ge(){return(0,n.h)(s.uT,W.value,(()=>!0===A.value?(0,n.h)("div",{role:"menu",...r,ref:R,tabindex:-1,class:["q-menu q-position-engine scroll"+te.value,r.class],style:[r.style,V.value],...ie.value},(0,w.KR)(t.default)):null))}return(0,n.YP)(ne,(e=>{!0===e?((0,C.c)(ue),D(J)):((0,C.k)(ue),T(J))})),(0,n.Jd)(ae),Object.assign(E,{focus:oe,updatePosition:he}),Y}})},8830:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(59835),o=(i(72879),i(60499)),s=i(22857),r=i(68234),a=i(20244),l=i(55917),c=i(99256),d=i(65987),u=i(89480),h=i(91384),g=i(22026);const p=(0,n.h)("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[(0,n.h)("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),(0,n.h)("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),f=(0,d.L)({name:"QRadio",props:{...r.S,...a.LU,...c.Fz,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:i}){const{proxy:d}=(0,n.FN)(),f=(0,r.Z)(e,d.$q),m=(0,a.ZP)(e,u.Z),v=(0,o.iH)(null),{refocusTargetEl:_,refocusTarget:b}=(0,l.Z)(e,v),y=(0,n.Fl)((()=>(0,o.IU)(e.modelValue)===(0,o.IU)(e.val))),w=(0,n.Fl)((()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===e.disable?" disabled":"")+(!0===f.value?" q-radio--dark":"")+(!0===e.dense?" q-radio--dense":"")+(!0===e.leftLabel?" reverse":""))),C=(0,n.Fl)((()=>{const t=void 0===e.color||!0!==e.keepColor&&!0!==y.value?"":` text-${e.color}`;return`q-radio__inner relative-position q-radio__inner--${!0===y.value?"truthy":"falsy"}${t}`})),S=(0,n.Fl)((()=>(!0===y.value?e.checkedIcon:e.uncheckedIcon)||null)),x=(0,n.Fl)((()=>!0===e.disable?-1:e.tabindex||0)),k=(0,n.Fl)((()=>{const t={type:"radio"};return void 0!==e.name&&Object.assign(t,{".checked":!0===y.value,"^checked":!0===y.value?"checked":void 0,name:e.name,value:e.val}),t})),L=(0,c.eX)(k);function E(t){void 0!==t&&((0,h.NS)(t),b(t)),!0!==e.disable&&!0!==y.value&&i("update:modelValue",e.val,t)}function N(e){13!==e.keyCode&&32!==e.keyCode||(0,h.NS)(e)}function D(e){13!==e.keyCode&&32!==e.keyCode||E(e)}return Object.assign(d,{set:E}),()=>{const i=null!==S.value?[(0,n.h)("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[(0,n.h)(s.Z,{class:"q-radio__icon",name:S.value})])]:[p];!0!==e.disable&&L(i,"unshift"," q-radio__native q-ma-none q-pa-none");const o=[(0,n.h)("div",{class:C.value,style:m.value,"aria-hidden":"true"},i)];null!==_.value&&o.push(_.value);const r=void 0!==e.label?(0,g.vs)(t.default,[e.label]):(0,g.KR)(t.default);return void 0!==r&&o.push((0,n.h)("div",{class:"q-radio__label q-anchor--skip"},r)),(0,n.h)("div",{ref:v,class:w.value,tabindex:x.value,role:"radio","aria-label":e.label,"aria-checked":!0===y.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:E,onKeydown:N,onKeyup:D},o)}}});var m=i(11221),v=i(23175);const _={radio:f,checkbox:m.Z,toggle:v.Z},b=Object.keys(_),y=(0,d.L)({name:"QOptionGroup",props:{...r.S,modelValue:{required:!0},options:{type:Array,validator:e=>e.every((e=>"value"in e&&"label"in e))},name:String,type:{default:"radio",validator:e=>b.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:i}){const{proxy:{$q:o}}=(0,n.FN)(),s=Array.isArray(e.modelValue);"radio"===e.type?!0===s&&console.error("q-option-group: model should not be array"):!1===s&&console.error("q-option-group: model should be array in your case");const a=(0,r.Z)(e,o),l=(0,n.Fl)((()=>_[e.type])),c=(0,n.Fl)((()=>"q-option-group q-gutter-x-sm"+(!0===e.inline?" q-option-group--inline":""))),d=(0,n.Fl)((()=>{const t={role:"group"};return"radio"===e.type&&(t.role="radiogroup",!0===e.disable&&(t["aria-disabled"]="true")),t}));function u(e){t("update:modelValue",e)}return()=>(0,n.h)("div",{class:c.value,...d.value},e.options.map(((t,o)=>{const s=void 0!==i["label-"+o]?()=>i["label-"+o](t):void 0!==i.label?()=>i.label(t):void 0;return(0,n.h)("div",[(0,n.h)(l.value,{modelValue:e.modelValue,val:t.value,name:void 0===t.name?e.name:t.name,disable:e.disable||t.disable,label:void 0===s?t.label:null,leftLabel:void 0===t.leftLabel?e.leftLabel:t.leftLabel,color:void 0===t.color?e.color:t.color,checkedIcon:t.checkedIcon,uncheckedIcon:t.uncheckedIcon,dark:t.dark||a.value,size:void 0===t.size?e.size:t.size,dense:e.dense,keepColor:void 0===t.keepColor?e.keepColor:t.keepColor,"onUpdate:modelValue":u},s)])})))}})},69885:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),s=i(22026),r=i(95439);const a=(0,o.L)({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,n.f3)(r.YE,r.qO);if(o===r.qO)return console.error("QPage needs to be a deep child of QLayout"),r.qO;const a=(0,n.f3)(r.Mw,r.qO);if(a===r.qO)return console.error("QPage needs to be child of QPageContainer"),r.qO;const l=(0,n.Fl)((()=>{const t=(!0===o.header.space?o.header.size:0)+(!0===o.footer.space?o.footer.size:0);if("function"===typeof e.styleFn){const n=!0===o.isContainer.value?o.containerHeight.value:i.screen.height;return e.styleFn(t,n)}return{minHeight:!0===o.isContainer.value?o.containerHeight.value-t+"px":0===i.screen.height?0!==t?`calc(100vh - ${t}px)`:"100vh":i.screen.height-t+"px"}})),c=(0,n.Fl)((()=>"q-page"+(!0===e.padding?" q-layout-padding":"")));return()=>(0,n.h)("main",{class:c.value,style:l.value},(0,s.KR)(t.default))}})},12133:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),s=i(22026),r=i(95439);const a=(0,o.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,n.f3)(r.YE,r.qO);if(o===r.qO)return console.error("QPageContainer needs to be child of QLayout"),r.qO;(0,n.JJ)(r.Mw,!0);const a=(0,n.Fl)((()=>{const e={};return!0===o.header.space&&(e.paddingTop=`${o.header.size}px`),!0===o.right.space&&(e["padding"+(!0===i.lang.rtl?"Left":"Right")]=`${o.right.size}px`),!0===o.footer.space&&(e.paddingBottom=`${o.footer.size}px`),!0===o.left.space&&(e["padding"+(!0===i.lang.rtl?"Right":"Left")]=`${o.left.size}px`),e}));return()=>(0,n.h)("div",{class:"q-page-container",style:a.value},(0,s.KR)(t.default))}})},76849:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(59835),o=i(60499),s=i(39180);function r(){const e=(0,o.iH)(!s.u.value);return!1===e.value&&(0,n.bv)((()=>{e.value=!0})),{isHydrated:e}}var a=i(65987),l=i(91384);const c="undefined"!==typeof ResizeObserver,d=!0===c?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},u=(0,a.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let i,o=null,s={width:-1,height:-1};function a(t){!0===t||0===e.debounce||"0"===e.debounce?u():null===o&&(o=setTimeout(u,e.debounce))}function u(){if(null!==o&&(clearTimeout(o),o=null),i){const{offsetWidth:e,offsetHeight:n}=i;e===s.width&&n===s.height||(s={width:e,height:n},t("resize",s))}}const{proxy:h}=(0,n.FN)();if(h.trigger=a,!0===c){let g;const p=e=>{i=h.$el.parentNode,i?(g=new ResizeObserver(a),g.observe(i),u()):!0!==e&&(0,n.Y3)((()=>{p(!0)}))};return(0,n.bv)((()=>{p()})),(0,n.Jd)((()=>{null!==o&&clearTimeout(o),void 0!==g&&(void 0!==g.disconnect?g.disconnect():i&&g.unobserve(i))})),l.ZT}{const{isHydrated:f}=r();let m;function v(){null!==o&&(clearTimeout(o),o=null),void 0!==m&&(void 0!==m.removeEventListener&&m.removeEventListener("resize",a,l.listenOpts.passive),m=void 0)}function _(){v(),i&&i.contentDocument&&(m=i.contentDocument.defaultView,m.addEventListener("resize",a,l.listenOpts.passive),u())}return(0,n.bv)((()=>{(0,n.Y3)((()=>{i=h.$el,i&&_()}))})),(0,n.Jd)(v),()=>{if(!0===f.value)return(0,n.h)("object",{class:"q--avoid-card-border",style:d.style,tabindex:-1,type:"text/html",data:d.url,"aria-hidden":"true",onLoad:_})}}}})},66663:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(60499),o=i(59835),s=i(68234),r=i(76849),a=i(71868),l=i(50867),c=i(65987),d=i(30321),u=i(43701),h=i(22026),g=i(60899);const p=["vertical","horizontal"],f={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},m={prevent:!0,mouse:!0,mouseAllDir:!0},v=e=>e>=250?50:Math.ceil(e/5),_=(0,c.L)({name:"QScrollArea",props:{...s.S,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:i}){const c=(0,n.iH)(!1),_=(0,n.iH)(!1),b=(0,n.iH)(!1),y={vertical:(0,n.iH)(0),horizontal:(0,n.iH)(0)},w={vertical:{ref:(0,n.iH)(null),position:(0,n.iH)(0),size:(0,n.iH)(0)},horizontal:{ref:(0,n.iH)(null),position:(0,n.iH)(0),size:(0,n.iH)(0)}},{proxy:C}=(0,o.FN)(),S=(0,s.Z)(e,C.$q);let x,k=null;const L=(0,n.iH)(null),E=(0,o.Fl)((()=>"q-scrollarea"+(!0===S.value?" q-scrollarea--dark":"")));w.vertical.percentage=(0,o.Fl)((()=>{const e=w.vertical.size.value-y.vertical.value;if(e<=0)return 0;const t=(0,d.vX)(w.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4})),w.vertical.thumbHidden=(0,o.Fl)((()=>!0!==(null===e.visible?b.value:e.visible)&&!1===c.value&&!1===_.value||w.vertical.size.value<=y.vertical.value+1)),w.vertical.thumbStart=(0,o.Fl)((()=>w.vertical.percentage.value*(y.vertical.value-w.vertical.thumbSize.value))),w.vertical.thumbSize=(0,o.Fl)((()=>Math.round((0,d.vX)(y.vertical.value*y.vertical.value/w.vertical.size.value,v(y.vertical.value),y.vertical.value)))),w.vertical.style=(0,o.Fl)((()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${w.vertical.thumbStart.value}px`,height:`${w.vertical.thumbSize.value}px`}))),w.vertical.thumbClass=(0,o.Fl)((()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===w.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),w.vertical.barClass=(0,o.Fl)((()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===w.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":""))),w.horizontal.percentage=(0,o.Fl)((()=>{const e=w.horizontal.size.value-y.horizontal.value;if(e<=0)return 0;const t=(0,d.vX)(Math.abs(w.horizontal.position.value)/e,0,1);return Math.round(1e4*t)/1e4})),w.horizontal.thumbHidden=(0,o.Fl)((()=>!0!==(null===e.visible?b.value:e.visible)&&!1===c.value&&!1===_.value||w.horizontal.size.value<=y.horizontal.value+1)),w.horizontal.thumbStart=(0,o.Fl)((()=>w.horizontal.percentage.value*(y.horizontal.value-w.horizontal.thumbSize.value))),w.horizontal.thumbSize=(0,o.Fl)((()=>Math.round((0,d.vX)(y.horizontal.value*y.horizontal.value/w.horizontal.size.value,v(y.horizontal.value),y.horizontal.value)))),w.horizontal.style=(0,o.Fl)((()=>({...e.thumbStyle,...e.horizontalThumbStyle,[!0===C.$q.lang.rtl?"right":"left"]:`${w.horizontal.thumbStart.value}px`,width:`${w.horizontal.thumbSize.value}px`}))),w.horizontal.thumbClass=(0,o.Fl)((()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===w.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),w.horizontal.barClass=(0,o.Fl)((()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===w.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":"")));const N=(0,o.Fl)((()=>!0===w.vertical.thumbHidden.value&&!0===w.horizontal.thumbHidden.value?e.contentStyle:e.contentActiveStyle)),D=[[l.Z,e=>{F(e,"vertical")},void 0,{vertical:!0,...m}]],T=[[l.Z,e=>{F(e,"horizontal")},void 0,{horizontal:!0,...m}]];function I(){const e={};return p.forEach((t=>{const i=w[t];e[t+"Position"]=i.position.value,e[t+"Percentage"]=i.percentage.value,e[t+"Size"]=i.size.value,e[t+"ContainerSize"]=y[t].value})),e}const R=(0,g.Z)((()=>{const e=I();e.ref=C,i("scroll",e)}),0);function A(e,t,i){if(!1===p.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?u.f3:u.ik;n(L.value,t,i)}function O({height:e,width:t}){let i=!1;y.vertical.value!==e&&(y.vertical.value=e,i=!0),y.horizontal.value!==t&&(y.horizontal.value=t,i=!0),!0===i&&V()}function P({position:e}){let t=!1;w.vertical.position.value!==e.top&&(w.vertical.position.value=e.top,t=!0),w.horizontal.position.value!==e.left&&(w.horizontal.position.value=e.left,t=!0),!0===t&&V()}function M({height:e,width:t}){w.horizontal.size.value!==t&&(w.horizontal.size.value=t,V()),w.vertical.size.value!==e&&(w.vertical.size.value=e,V())}function F(e,t){const i=w[t];if(!0===e.isFirst){if(!0===i.thumbHidden.value)return;x=i.position.value,_.value=!0}else if(!0!==_.value)return;!0===e.isFinal&&(_.value=!1);const n=f[t],o=y[t].value,s=(i.size.value-o)/(o-i.thumbSize.value),r=e.distance[n.dist],a=x+(e.direction===n.dir?1:-1)*r*s;j(a,t)}function B(e,t){const i=w[t];if(!0!==i.thumbHidden.value){const n=e[f[t].offset];if(ni.thumbStart.value+i.thumbSize.value){const e=n-i.thumbSize.value/2;j(e/y[t].value*i.size.value,t)}null!==i.ref.value&&i.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function H(e){B(e,"vertical")}function W(e){B(e,"horizontal")}function V(){c.value=!0,null!==k&&clearTimeout(k),k=setTimeout((()=>{k=null,c.value=!1}),e.delay),void 0!==e.onScroll&&R()}function j(e,t){L.value[f[t].scroll]=e}let z=null;function U(){null!==z&&clearTimeout(z),z=setTimeout((()=>{z=null,b.value=!0}),C.$q.platform.is.ios?50:0)}function $(){null!==z&&(clearTimeout(z),z=null),b.value=!1}let q=null;return(0,o.YP)((()=>C.$q.lang.rtl),(e=>{null!==L.value&&(0,u.ik)(L.value,Math.abs(w.horizontal.position.value)*(!0===e?-1:1))})),(0,o.se)((()=>{q={top:w.vertical.position.value,left:w.horizontal.position.value}})),(0,o.dl)((()=>{if(null===q)return;const e=L.value;null!==e&&((0,u.ik)(e,q.left),(0,u.f3)(e,q.top))})),(0,o.Jd)(R.cancel),Object.assign(C,{getScrollTarget:()=>L.value,getScroll:I,getScrollPosition:()=>({top:w.vertical.position.value,left:w.horizontal.position.value}),getScrollPercentage:()=>({top:w.vertical.percentage.value,left:w.horizontal.percentage.value}),setScrollPosition:A,setScrollPercentage(e,t,i){A(e,t*(w[e].size.value-y[e].value)*("horizontal"===e&&!0===C.$q.lang.rtl?-1:1),i)}}),()=>(0,o.h)("div",{class:E.value,onMouseenter:U,onMouseleave:$},[(0,o.h)("div",{ref:L,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==e.tabindex?e.tabindex:void 0},[(0,o.h)("div",{class:"q-scrollarea__content absolute",style:N.value},(0,h.vs)(t.default,[(0,o.h)(r.Z,{debounce:0,onResize:M})])),(0,o.h)(a.Z,{axis:"both",onScroll:P})]),(0,o.h)(r.Z,{debounce:0,onResize:O}),(0,o.h)("div",{class:w.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:H}),(0,o.h)("div",{class:w.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:W}),(0,o.wy)((0,o.h)("div",{ref:w.vertical.ref,class:w.vertical.thumbClass.value,style:w.vertical.style.value,"aria-hidden":"true"}),D),(0,o.wy)((0,o.h)("div",{ref:w.horizontal.ref,class:w.horizontal.thumbClass.value,style:w.horizontal.style.value,"aria-hidden":"true"}),T)])}})},71868:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(59835),o=i(65987),s=i(43701),r=i(91384);const{passive:a}=r.listenOpts,l=["both","horizontal","vertical"],c=(0,o.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>l.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const i={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o,l,c=null;function d(){null!==c&&c();const n=Math.max(0,(0,s.u3)(o)),r=(0,s.OI)(o),a={top:n-i.position.top,left:r-i.position.left};if("vertical"===e.axis&&0===a.top||"horizontal"===e.axis&&0===a.left)return;const l=Math.abs(a.top)>=Math.abs(a.left)?a.top<0?"up":"down":a.left<0?"left":"right";i.position={top:n,left:r},i.directionChanged=i.direction!==l,i.delta=a,!0===i.directionChanged&&(i.direction=l,i.inflectionPoint=i.position),t("scroll",{...i})}function u(){o=(0,s.b0)(l,e.scrollTarget),o.addEventListener("scroll",g,a),g(!0)}function h(){void 0!==o&&(o.removeEventListener("scroll",g,a),o=void 0)}function g(t){if(!0===t||0===e.debounce||"0"===e.debounce)d();else if(null===c){const[t,i]=e.debounce?[setTimeout(d,e.debounce),clearTimeout]:[requestAnimationFrame(d),cancelAnimationFrame];c=()=>{i(t),c=null}}}(0,n.YP)((()=>e.scrollTarget),(()=>{h(),u()}));const{proxy:p}=(0,n.FN)();return(0,n.YP)((()=>p.$q.lang.rtl),d),(0,n.bv)((()=>{l=p.$el.parentNode,u()})),(0,n.Jd)((()=>{null!==c&&c(),h()})),Object.assign(p,{trigger:g,getPosition:()=>i}),r.ZT}})},67887:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});i(72879);var n=i(59835),o=i(60499),s=i(87810),r=i(65987);const a=(0,r.L)({name:"QField",inheritAttrs:!1,props:{...s.Cl,tag:{type:String,default:"label"}},emits:s.HJ,setup(){return(0,s.ZP)((0,s.tL)({requiredForAttr:!1,tagProp:!0}))}});var l=i(22857),c=i(9684),d=i(68234),u=i(20244),h=i(91384),g=i(22026);const p={xs:8,sm:10,md:14,lg:20,xl:24},f=(0,r.L)({name:"QChip",props:{...d.S,...u.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:i}){const{proxy:{$q:o}}=(0,n.FN)(),s=(0,d.Z)(e,o),r=(0,u.ZP)(e,p),a=(0,n.Fl)((()=>!0===e.selected||void 0!==e.icon)),f=(0,n.Fl)((()=>!0===e.selected?e.iconSelected||o.iconSet.chip.selected:e.icon)),m=(0,n.Fl)((()=>e.iconRemove||o.iconSet.chip.remove)),v=(0,n.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),_=(0,n.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===v.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===s.value?" q-chip--dark q-dark":"")})),b=(0,n.Fl)((()=>{const t=!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},i={...t,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:t,remove:i}}));function y(e){13===e.keyCode&&w(e)}function w(t){e.disable||(i("update:selected",!e.selected),i("click",t))}function C(t){void 0!==t.keyCode&&13!==t.keyCode||((0,h.NS)(t),!1===e.disable&&(i("update:modelValue",!1),i("remove")))}function S(){const i=[];!0===v.value&&i.push((0,n.h)("div",{class:"q-focus-helper"})),!0===a.value&&i.push((0,n.h)(l.Z,{class:"q-chip__icon q-chip__icon--left",name:f.value}));const o=void 0!==e.label?[(0,n.h)("div",{class:"ellipsis"},[e.label])]:void 0;return i.push((0,n.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,g.pf)(t.default,o))),e.iconRight&&i.push((0,n.h)(l.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&i.push((0,n.h)(l.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:m.value,...b.value.remove,onClick:C,onKeyup:C})),i}return()=>{if(!1===e.modelValue)return;const t={class:_.value,style:r.value};return!0===v.value&&Object.assign(t,b.value.chip,{onClick:w,onKeyup:y}),(0,g.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[c.Z,e.ripple]]))}}});var m=i(490),v=i(76749),_=i(33115),b=i(47447),y=i(32074),w=i(92043),C=i(99256),S=i(62802),x=i(4680),k=i(30321),L=i(61705);const E=e=>["add","add-unique","toggle"].includes(e),N=".*+?^${}()|[]\\",D=Object.keys(s.Cl),T=(0,r.L)({name:"QSelect",inheritAttrs:!1,props:{...w.t9,...C.Fz,...s.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:E},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...s.HJ,"add","remove","inputValue","newValue","keyup","keypress","keydown","filterAbort"],setup(e,{slots:t,emit:i}){const{proxy:r}=(0,n.FN)(),{$q:c}=r,d=(0,o.iH)(!1),u=(0,o.iH)(!1),p=(0,o.iH)(-1),T=(0,o.iH)(""),I=(0,o.iH)(!1),R=(0,o.iH)(!1);let A,O,P,M,F,B,H,W=null,V=null,j=null;const z=(0,o.iH)(null),U=(0,o.iH)(null),$=(0,o.iH)(null),q=(0,o.iH)(null),K=(0,o.iH)(null),G=(0,C.Do)(e),Z=(0,S.Z)(Qe),Q=(0,n.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),Y=(0,n.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:J,virtualScrollSliceSizeComputed:X,localResetVirtualScroll:ee,padVirtualScroll:te,onVirtualScrollEvt:ie,scrollTo:ne,setVirtualScrollSize:oe}=(0,w.vp)({virtualScrollLength:Q,getVirtualScrollTarget:qe,getVirtualScrollEl:$e,virtualScrollItemSizeComputed:Y}),se=(0,s.tL)(),re=(0,n.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,i=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const n=!0===e.mapOptions&&void 0!==A?A:[],o=i.map((e=>Fe(e,n)));return null===e.modelValue&&!0===t?o.filter((e=>null!==e)):o}return i})),ae=(0,n.Fl)((()=>{const t={};return D.forEach((i=>{const n=e[i];void 0!==n&&(t[i]=n)})),t})),le=(0,n.Fl)((()=>null===e.optionsDark?se.isDark.value:e.optionsDark)),ce=(0,n.Fl)((()=>(0,s.yV)(re.value))),de=(0,n.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===re.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ue=(0,n.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),he=(0,n.Fl)((()=>0===Q.value)),ge=(0,n.Fl)((()=>re.value.map((e=>Le.value(e))).join(", "))),pe=(0,n.Fl)((()=>void 0!==e.displayValue?e.displayValue:ge.value)),fe=(0,n.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),me=(0,n.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||re.value.some(fe.value)))),ve=(0,n.Fl)((()=>!0===se.focused.value?e.tabindex:-1)),_e=(0,n.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":!0===e.readonly?"true":"false","aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===d.value?"true":"false","aria-controls":`${se.targetUid.value}_lb`};return p.value>=0&&(t["aria-activedescendant"]=`${se.targetUid.value}_${p.value}`),t})),be=(0,n.Fl)((()=>({id:`${se.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"}))),ye=(0,n.Fl)((()=>re.value.map(((e,t)=>({index:t,opt:e,html:fe.value(e),selected:!0,removeAtIndex:Re,toggleOption:Oe,tabindex:ve.value}))))),we=(0,n.Fl)((()=>{if(0===Q.value)return[];const{from:t,to:i}=J.value;return e.options.slice(t,i).map(((i,n)=>{const o=!0===Ee.value(i),s=!0===He(i),r=t+n,a={clickable:!0,active:s,activeClass:xe.value,manualFocus:!0,focused:!1,disable:o,tabindex:-1,dense:e.optionsDense,dark:le.value,role:"option","aria-selected":!0===s?"true":"false",id:`${se.targetUid.value}_${r}`,onClick:()=>{Oe(i)}};return!0!==o&&(p.value===r&&(a.focused=!0),!0===c.platform.is.desktop&&(a.onMousemove=()=>{!0===d.value&&Pe(r)})),{index:r,opt:i,html:fe.value(i),label:Le.value(i),selected:a.active,focused:a.focused,toggleOption:Oe,setOptionIndex:Pe,itemProps:a}}))})),Ce=(0,n.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:c.iconSet.arrow.dropdown)),Se=(0,n.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),xe=(0,n.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),ke=(0,n.Fl)((()=>Be(e.optionValue,"value"))),Le=(0,n.Fl)((()=>Be(e.optionLabel,"label"))),Ee=(0,n.Fl)((()=>Be(e.optionDisable,"disable"))),Ne=(0,n.Fl)((()=>re.value.map((e=>ke.value(e))))),De=(0,n.Fl)((()=>{const e={onInput:Qe,onChange:Z,onKeydown:Ue,onKeyup:je,onKeypress:ze,onFocus:We,onClick(e){!0===O&&(0,h.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=Z,e}));function Te(t){return!0===e.emitValue?ke.value(t):t}function Ie(t){if(-1!==t&&t=e.maxValues)return;const s=e.modelValue.slice();i("add",{index:s.length,value:o}),s.push(o),i("update:modelValue",s)}function Oe(t,n){if(!0!==se.editable.value||void 0===t||!0===Ee.value(t))return;const o=ke.value(t);if(!0!==e.multiple)return!0!==n&&(Je(!0===e.fillInput?Le.value(t):"",!0,!0),ut()),null!==U.value&&U.value.focus(),void(0!==re.value.length&&!0===(0,x.xb)(ke.value(re.value[0]),o)||i("update:modelValue",!0===e.emitValue?o:t));if((!0!==O||!0===I.value)&&se.focus(),We(),0===re.value.length){const n=!0===e.emitValue?o:t;return i("add",{index:0,value:n}),void i("update:modelValue",!0===e.multiple?[n]:n)}const s=e.modelValue.slice(),r=Ne.value.findIndex((e=>(0,x.xb)(e,o)));if(-1!==r)i("remove",{index:r,value:s.splice(r,1)[0]});else{if(void 0!==e.maxValues&&s.length>=e.maxValues)return;const n=!0===e.emitValue?o:t;i("add",{index:s.length,value:n}),s.push(n)}i("update:modelValue",s)}function Pe(e){if(!0!==c.platform.is.desktop)return;const t=-1!==e&&e=0?Le.value(e.options[n]):M,!0))}}function Fe(t,i){const n=e=>(0,x.xb)(ke.value(e),t);return e.options.find(n)||i.find(n)||t}function Be(e,t){const i=void 0!==e?e:t;return"function"===typeof i?i:e=>null!==e&&"object"===typeof e&&i in e?e[i]:e}function He(e){const t=ke.value(e);return void 0!==Ne.value.find((e=>(0,x.xb)(e,t)))}function We(t){!0===e.useInput&&null!==U.value&&(void 0===t||U.value===t.target&&t.target.value===ge.value)&&U.value.select()}function Ve(e){!0===(0,L.So)(e,27)&&!0===d.value&&((0,h.sT)(e),ut(),ht()),i("keyup",e)}function je(t){const{value:i}=t.target;if(void 0===t.keyCode)if(t.target.value="",null!==W&&(clearTimeout(W),W=null),null!==V&&(clearTimeout(V),V=null),ht(),"string"===typeof i&&0!==i.length){const t=i.toLocaleLowerCase(),n=i=>{const n=e.options.find((e=>i.value(e).toLocaleLowerCase()===t));return void 0!==n&&(-1===re.value.indexOf(n)?Oe(n):ut(),!0)},o=e=>{!0!==n(ke)&&!0!==n(Le)&&!0!==e&&Xe(i,!0,(()=>o(!0)))};o()}else se.clearValue(t);else Ve(t)}function ze(e){i("keypress",e)}function Ue(t){if(i("keydown",t),!0===(0,L.Wm)(t))return;const o=0!==T.value.length&&(void 0!==e.newValueMode||void 0!==e.onNewValue),s=!0!==t.shiftKey&&!0!==e.multiple&&(-1!==p.value||!0===o);if(27===t.keyCode)return void(0,h.X$)(t);if(9===t.keyCode&&!1===s)return void ct();if(void 0===t.target||t.target.id!==se.targetUid.value||!0!==se.editable.value)return;if(40===t.keyCode&&!0!==se.innerLoading.value&&!1===d.value)return(0,h.NS)(t),void dt();if(8===t.keyCode&&(!0===e.useChips||!0===e.clearable)&&!0!==e.hideSelected&&0===T.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ie(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&i("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof T.value&&0!==T.value.length||((0,h.NS)(t),p.value=-1,Me(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===X.value||((0,h.NS)(t),p.value=Math.max(-1,Math.min(Q.value,p.value+(33===t.keyCode?-1:1)*X.value.view)),Me(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,h.NS)(t),Me(38===t.keyCode?-1:1,e.multiple));const r=Q.value;if((void 0===B||H0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||0!==B.length)){!0!==d.value&&dt(t);const i=t.key.toLocaleLowerCase(),o=1===B.length&&B[0]===i;H=Date.now()+1500,!1===o&&((0,h.NS)(t),B+=i);const s=new RegExp("^"+B.split("").map((e=>-1!==N.indexOf(e)?"\\"+e:e)).join(".*"),"i");let a=p.value;if(!0===o||a<0||!0!==s.test(Le.value(e.options[a])))do{a=(0,k.Uz)(a+1,-1,r-1)}while(a!==p.value&&(!0===Ee.value(e.options[a])||!0!==s.test(Le.value(e.options[a]))));p.value!==a&&(0,n.Y3)((()=>{Pe(a),ne(a),a>=0&&!0===e.useInput&&!0===e.fillInput&&Ye(Le.value(e.options[a]),!0)}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===B||9===t.keyCode&&!1!==s)if(9!==t.keyCode&&(0,h.NS)(t),-1!==p.value&&p.value{if(i){if(!0!==E(i))return}else i=e.newValueMode;if(Je("",!0!==e.multiple,!0),void 0===t||null===t)return;const n="toggle"===i?Oe:Ae;n(t,"add-unique"===i),!0!==e.multiple&&(null!==U.value&&U.value.focus(),ut())};if(void 0!==e.onNewValue?i("newValue",T.value,t):t(T.value),!0!==e.multiple)return}!0===d.value?ct():!0!==se.innerLoading.value&&dt()}}function $e(){return!0===O?K.value:null!==$.value&&null!==$.value.contentEl?$.value.contentEl:void 0}function qe(){return $e()}function Ke(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?ye.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?ye.value.map(((t,i)=>(0,n.h)(f,{key:"option-"+i,removable:!0===se.editable.value&&!0!==Ee.value(t.opt),dense:!0,textColor:e.color,tabindex:ve.value,onRemove(){t.removeAtIndex(i)}},(()=>(0,n.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Le.value(t.opt)}))))):[(0,n.h)("span",{[!0===me.value?"innerHTML":"textContent"]:pe.value})]}function Ge(){if(!0===he.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:T.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,n.h)(m.Z,{key:e.index,...e.itemProps},(()=>(0,n.h)(v.Z,(()=>(0,n.h)(_.Z,(()=>(0,n.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let i=te("div",we.value.map(e));return void 0!==t["before-options"]&&(i=t["before-options"]().concat(i)),(0,g.vs)(t["after-options"],i)}function Ze(t,i){const o=!0===i?{..._e.value,...se.splitAttrs.attributes.value}:void 0,s={ref:!0===i?U:void 0,key:"i_t",class:de.value,style:e.inputStyle,value:void 0!==T.value?T.value:"",type:"search",...o,id:!0===i?se.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0===t||!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...De.value};return!0!==t&&!0===O&&(!0===Array.isArray(s.class)?s.class=[...s.class,"no-pointer-events"]:s.class+=" no-pointer-events"),(0,n.h)("input",s)}function Qe(t){null!==W&&(clearTimeout(W),W=null),null!==V&&(clearTimeout(V),V=null),t&&t.target&&!0===t.target.qComposing||(Ye(t.target.value||""),P=!0,M=T.value,!0===se.focused.value||!0===O&&!0!==I.value||se.focus(),void 0!==e.onFilter&&(W=setTimeout((()=>{W=null,Xe(T.value)}),e.inputDebounce)))}function Ye(t,n){T.value!==t&&(T.value=t,!0===n||0===e.inputDebounce||"0"===e.inputDebounce?i("inputValue",t):V=setTimeout((()=>{V=null,i("inputValue",t)}),e.inputDebounce))}function Je(t,i,n){P=!0!==n,!0===e.useInput&&(Ye(t,!0),!0!==i&&!0===n||(M=t),!0!==i&&Xe(t))}function Xe(t,o,s){if(void 0===e.onFilter||!0!==o&&!0!==se.focused.value)return;!0===se.innerLoading.value?i("filterAbort"):(se.innerLoading.value=!0,R.value=!0),""!==t&&!0!==e.multiple&&0!==re.value.length&&!0!==P&&t===Le.value(re.value[0])&&(t="");const a=setTimeout((()=>{!0===d.value&&(d.value=!1)}),10);null!==j&&clearTimeout(j),j=a,i("filter",t,((e,t)=>{!0!==o&&!0!==se.focused.value||j!==a||(clearTimeout(j),"function"===typeof e&&e(),R.value=!1,(0,n.Y3)((()=>{se.innerLoading.value=!1,!0===se.editable.value&&(!0===o?!0===d.value&&ut():!0===d.value?gt(!0):d.value=!0),"function"===typeof t&&(0,n.Y3)((()=>{t(r)})),"function"===typeof s&&(0,n.Y3)((()=>{s(r)}))})))}),(()=>{!0===se.focused.value&&j===a&&(clearTimeout(j),se.innerLoading.value=!1,R.value=!1),!0===d.value&&(d.value=!1)}))}function et(){return(0,n.h)(b.Z,{ref:$,class:ue.value,style:e.popupContentStyle,modelValue:d.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==he.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:le.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Se.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...be.value,onScrollPassive:ie,onBeforeShow:mt,onBeforeHide:tt,onShow:it},Ge)}function tt(e){vt(e),ct()}function it(){oe()}function nt(e){(0,h.sT)(e),null!==U.value&&U.value.focus(),I.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ot(e){(0,h.sT)(e),(0,n.Y3)((()=>{I.value=!1}))}function st(){const i=[(0,n.h)(a,{class:`col-auto ${se.fieldClass.value}`,...ae.value,for:se.targetUid.value,dark:le.value,square:!0,loading:R.value,itemAligned:!1,filled:!0,stackLabel:0!==T.value.length,...se.splitAttrs.listeners.value,onFocus:nt,onBlur:ot},{...t,rawControl:()=>se.getControl(!0),before:void 0,after:void 0})];return!0===d.value&&i.push((0,n.h)("div",{ref:K,class:ue.value+" scroll",style:e.popupContentStyle,...be.value,onClick:h.X$,onScrollPassive:ie},Ge())),(0,n.h)(y.Z,{ref:q,modelValue:u.value,position:!0===e.useInput?"top":void 0,transitionShow:F,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:mt,onBeforeHide:rt,onHide:at,onShow:lt},(()=>(0,n.h)("div",{class:"q-select__dialog"+(!0===le.value?" q-select__dialog--dark q-dark":"")+(!0===I.value?" q-select__dialog--focused":"")},i)))}function rt(e){vt(e),null!==q.value&&q.value.__updateRefocusTarget(se.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),se.focused.value=!1}function at(e){ut(),!1===se.focused.value&&i("blur",e),ht()}function lt(){const e=document.activeElement;null!==e&&e.id===se.targetUid.value||null===U.value||U.value===e||U.value.focus(),oe()}function ct(){!0!==u.value&&(p.value=-1,!0===d.value&&(d.value=!1),!1===se.focused.value&&(null!==j&&(clearTimeout(j),j=null),!0===se.innerLoading.value&&(i("filterAbort"),se.innerLoading.value=!1,R.value=!1)))}function dt(i){!0===se.editable.value&&(!0===O?(se.onControlFocusin(i),u.value=!0,(0,n.Y3)((()=>{se.focus()}))):se.focus(),void 0!==e.onFilter?Xe(T.value):!0===he.value&&void 0===t["no-option"]||(d.value=!0))}function ut(){u.value=!1,ct()}function ht(){!0===e.useInput&&Je(!0!==e.multiple&&!0===e.fillInput&&0!==re.value.length&&Le.value(re.value[0])||"",!0,!0)}function gt(t){let i=-1;if(!0===t){if(0!==re.value.length){const t=ke.value(re.value[0]);i=e.options.findIndex((e=>(0,x.xb)(ke.value(e),t)))}ee(i)}Pe(i)}function pt(e,t){!0===d.value&&!1===se.innerLoading.value&&(ee(-1,!0),(0,n.Y3)((()=>{!0===d.value&&!1===se.innerLoading.value&&(e>t?ee():gt(!0))})))}function ft(){!1===u.value&&null!==$.value&&$.value.updatePosition()}function mt(e){void 0!==e&&(0,h.sT)(e),i("popupShow",e),se.hasPopupOpen=!0,se.onControlFocusin(e)}function vt(e){void 0!==e&&(0,h.sT)(e),i("popupHide",e),se.hasPopupOpen=!1,se.onControlFocusout(e)}function _t(){O=(!0===c.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===he.value))),F=!0===c.platform.is.ios&&!0===O&&!0===e.useInput?"fade":e.transitionShow}return(0,n.YP)(re,(t=>{A=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==se.innerLoading.value&&(!0!==u.value&&!0!==d.value||!0!==ce.value)&&(!0!==P&&ht(),!0!==u.value&&!0!==d.value||Xe(""))}),{immediate:!0}),(0,n.YP)((()=>e.fillInput),ht),(0,n.YP)(d,gt),(0,n.YP)(Q,pt),(0,n.Xn)(_t),(0,n.ic)(ft),_t(),(0,n.Jd)((()=>{null!==W&&clearTimeout(W),null!==V&&clearTimeout(V)})),Object.assign(r,{showPopup:dt,hidePopup:ut,removeAtIndex:Ie,add:Ae,toggleOption:Oe,getOptionIndex:()=>p.value,setOptionIndex:Pe,moveOptionSelection:Me,filter:Xe,updateMenuPosition:ft,updateInputValue:Je,isOptionSelected:He,getEmittingOptionValue:Te,isOptionDisabled:(...e)=>!0===Ee.value.apply(null,e),getOptionValue:(...e)=>ke.value.apply(null,e),getOptionLabel:(...e)=>Le.value.apply(null,e)}),Object.assign(se,{innerValue:re,fieldClass:(0,n.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:z,targetRef:U,hasValue:ce,showPopup:dt,floatingLabel:(0,n.Fl)((()=>!0!==e.hideSelected&&!0===ce.value||"number"===typeof T.value||0!==T.value.length||(0,s.yV)(e.displayValue))),getControlChild:()=>{if(!1!==se.editable.value&&(!0===u.value||!0!==he.value||void 0!==t["no-option"]))return!0===O?st():et();!0===se.hasPopupOpen&&(se.hasPopupOpen=!1)},controlEvents:{onFocusin(e){se.onControlFocusin(e)},onFocusout(e){se.onControlFocusout(e,(()=>{ht(),ct()}))},onClick(e){if((0,h.X$)(e),!0!==O&&!0===d.value)return ct(),void(null!==U.value&&U.value.focus());dt(e)}},getControl:t=>{const i=Ke(),o=!0===t||!0!==u.value||!0!==O;if(!0===e.useInput)i.push(Ze(t,o));else if(!0===se.editable.value){const s=!0===o?_e.value:void 0;i.push((0,n.h)("input",{ref:!0===o?U:void 0,key:"d_t",class:"q-select__focus-target",id:!0===o?se.targetUid.value:void 0,value:pe.value,readonly:!0,"data-autofocus":!0===t||!0===e.autofocus||void 0,...s,onKeydown:Ue,onKeyup:Ve,onKeypress:ze})),!0===o&&"string"===typeof e.autocomplete&&0!==e.autocomplete.length&&i.push((0,n.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:je}))}if(void 0!==G.value&&!0!==e.disable&&0!==Ne.value.length){const t=Ne.value.map((e=>(0,n.h)("option",{value:e,selected:!0})));i.push((0,n.h)("select",{class:"hidden",name:G.value,multiple:e.multiple},t))}const s=!0===e.useInput||!0!==o?void 0:se.splitAttrs.attributes.value;return(0,n.h)("div",{class:"q-field__native row items-center",...s,...se.splitAttrs.listeners.value},i)},getInnerAppend:()=>!0!==e.loading&&!0!==R.value&&!0!==e.hideDropdownIcon?[(0,n.h)(l.Z,{class:"q-select__dropdown-icon"+(!0===d.value?" rotate-180":""),name:Ce.value})]:null}),(0,s.ZP)(se)}})},50926:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(68234),s=i(65987);const r={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},a={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,s.L)({name:"QSeparator",props:{...o.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,n.FN)(),i=(0,o.Z)(e,t.proxy.$q),s=(0,n.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,n.Fl)((()=>` q-separator--${s.value}`)),c=(0,n.Fl)((()=>!1!==e.inset?`${l.value}-${r[e.inset]}`:"")),d=(0,n.Fl)((()=>`q-separator${l.value}${c.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===i.value?" q-separator--dark":""))),u=(0,n.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const i=!0===e.spaced?`${a.md}px`:e.spaced in a?`${a[e.spaced]}px`:e.spaced,n=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${n[0]}`]=t[`margin${n[1]}`]=i}return t}));return()=>(0,n.h)("hr",{class:d.value,style:u.value,"aria-orientation":s.value})}})},90136:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987);const s=(0,n.h)("div",{class:"q-space"}),r=(0,o.L)({name:"QSpace",setup(){return()=>s}})},63940:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(20244);const s={size:{type:[Number,String],default:"1em"},color:String};function r(e){return{cSize:(0,n.Fl)((()=>e.size in o.Ok?`${o.Ok[e.size]}px`:e.size)),classes:(0,n.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var a=i(65987);const l=(0,a.L)({name:"QSpinner",props:{...s,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:i}=r(e);return()=>(0,n.h)("svg",{class:i.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,n.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},84106:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(3120),s=i(65987),r=i(22026);const a=(0,s.L)({name:"QTabPanel",props:o.vZ,setup(e,{slots:t}){return()=>(0,n.h)("div",{class:"q-tab-panel",role:"tabpanel"},(0,r.KR)(t.default))}})},89800:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(68234),s=i(3120),r=i(65987),a=i(22026);const l=(0,r.L)({name:"QTabPanels",props:{...s.t6,...o.S},emits:s.K6,setup(e,{slots:t}){const i=(0,n.FN)(),r=(0,o.Z)(e,i.proxy.$q),{updatePanelsList:l,getPanelContent:c,panelDirectives:d}=(0,s.ZP)(),u=(0,n.Fl)((()=>"q-tab-panels q-panel-parent"+(!0===r.value?" q-tab-panels--dark q-dark":"")));return()=>(l(t),(0,a.Jl)("div",{class:u.value},c(),"pan",e.swipeable,(()=>d.value)))}})},86008:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ee});i(49766),i(72879);var n=i(59835),o=i(60499),s=i(22857),r=i(65987),a=i(22026);const l=(0,r.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:i}){const o=(0,n.FN)(),{proxy:{$q:r}}=o,l=e=>{i("click",e)};return()=>{if(void 0===e.props)return(0,n.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,a.KR)(t.default));let i,c;const d=o.vnode.key;if(d){if(i=e.props.colsMap[d],void 0===i)return}else i=e.props.col;if(!0===i.sortable){const e="right"===i.align?"unshift":"push";c=(0,a.Bl)(t.default,[]),c[e]((0,n.h)(s.Z,{class:i.__iconClass,name:r.iconSet.table.arrowUp}))}else c=(0,a.KR)(t.default);const u={class:i.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:i.headerStyle,onClick:t=>{!0===i.sortable&&e.props.sort(i),l(t)}};return(0,n.h)("th",u,c)}}});var c=i(50926),d=i(13246),u=i(68234);const h=["horizontal","vertical","cell","none"],g=(0,r.L)({name:"QMarkupTable",props:{...u.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>h.includes(e)}},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,u.Z)(e,i.proxy.$q),s=(0,n.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===o.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,n.h)("div",{class:s.value},[(0,n.h)("table",{class:"q-table"},(0,a.KR)(t.default))])}});function p(e,t){return(0,n.h)("div",e,[(0,n.h)("table",{class:"q-table"},t)])}var f=i(92043),m=i(43701),v=i(91384);const _={list:d.Z,table:g},b=["list","table","__qtable"],y=(0,r.L)({name:"QVirtualScroll",props:{...f.t9,type:{type:String,default:"list",validator:e=>b.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:i}){let s;const r=(0,o.iH)(null),l=(0,n.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:c,localResetVirtualScroll:d,padVirtualScroll:u,onVirtualScrollEvt:h}=(0,f.vp)({virtualScrollLength:l,getVirtualScrollTarget:C,getVirtualScrollEl:w}),g=(0,n.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:c.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(c.value.from,c.value.to).map(t):e.itemsFn(c.value.from,c.value.to-c.value.from).map(t)})),b=(0,n.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),y=(0,n.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function w(){return r.value.$el||r.value}function C(){return s}function S(){s=(0,m.b0)(w(),e.scrollTarget),s.addEventListener("scroll",h,v.listenOpts.passive)}function x(){void 0!==s&&(s.removeEventListener("scroll",h,v.listenOpts.passive),s=void 0)}function k(){let i=u("list"===e.type?"div":"tbody",g.value.map(t.default));return void 0!==t.before&&(i=t.before().concat(i)),(0,a.vs)(t.after,i)}return(0,n.YP)(l,(()=>{d()})),(0,n.YP)((()=>e.scrollTarget),(()=>{x(),S()})),(0,n.wF)((()=>{d()})),(0,n.bv)((()=>{S()})),(0,n.dl)((()=>{S()})),(0,n.se)((()=>{x()})),(0,n.Jd)((()=>{x()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?p({ref:r,class:"q-table__middle "+b.value},k()):(0,n.h)(_[e.type],{...i,ref:r,class:[i.class,b.value],...y.value},k);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var w=i(67887),C=i(8289),S=i(11221),x=i(24455),k=i(25310),L=i(52046);let E=0;const N={fullscreen:Boolean,noRouteFullscreenExit:Boolean},D=["update:fullscreen","fullscreen"];function T(){const e=(0,n.FN)(),{props:t,emit:i,proxy:s}=e;let r,a,l;const c=(0,o.iH)(!1);function d(){!0===c.value?h():u()}function u(){!0!==c.value&&(c.value=!0,l=s.$el.parentNode,l.replaceChild(a,s.$el),document.body.appendChild(s.$el),E++,1===E&&document.body.classList.add("q-body--fullscreen-mixin"),r={handler:h},k.Z.add(r))}function h(){!0===c.value&&(void 0!==r&&(k.Z.remove(r),r=void 0),l.replaceChild(s.$el,a),c.value=!1,E=Math.max(0,E-1),0===E&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==s.$el.scrollIntoView&&setTimeout((()=>{s.$el.scrollIntoView()}))))}return!0===(0,L.Rb)(e)&&(0,n.YP)((()=>s.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&h()})),(0,n.YP)((()=>t.fullscreen),(e=>{c.value!==e&&d()})),(0,n.YP)(c,(e=>{i("update:fullscreen",e),i("fullscreen",e)})),(0,n.wF)((()=>{a=document.createElement("span")})),(0,n.bv)((()=>{!0===t.fullscreen&&u()})),(0,n.Jd)(h),Object.assign(s,{toggleFullscreen:d,setFullscreen:u,exitFullscreen:h}),{inFullscreen:c,toggleFullscreen:d}}function I(e,t){return new Date(e)-new Date(t)}var R=i(4680);const A={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function O(e,t,i,o){const s=(0,n.Fl)((()=>{const{sortBy:e}=t.value;return e&&i.value.find((t=>t.name===e))||null})),r=(0,n.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,n)=>{const o=i.value.find((e=>e.name===t));if(void 0===o||void 0===o.field)return e;const s=!0===n?-1:1,r="function"===typeof o.field?e=>o.field(e):e=>e[o.field];return e.sort(((e,t)=>{let i=r(e),n=r(t);return void 0!==o.rawSort?o.rawSort(i,n,e,t)*s:null===i||void 0===i?-1*s:null===n||void 0===n?1*s:void 0!==o.sort?o.sort(i,n,e,t)*s:!0===(0,R.hj)(i)&&!0===(0,R.hj)(n)?(i-n)*s:!0===(0,R.J_)(i)&&!0===(0,R.J_)(n)?I(i,n)*s:"boolean"===typeof i&&"boolean"===typeof n?(i-n)*s:([i,n]=[i,n].map((e=>(e+"").toLocaleString().toLowerCase())),ie.name===n));void 0!==e&&e.sortOrder&&(s=e.sortOrder)}let{sortBy:r,descending:a}=t.value;r!==n?(r=n,a="da"===s):!0===e.binaryStateSort?a=!a:!0===a?"ad"===s?r=null:a=!1:"ad"===s?a=!0:r=null,o({sortBy:r,descending:a,page:1})}return{columnToSort:s,computedSortMethod:r,sort:a}}const P={filter:[String,Object],filterMethod:Function};function M(e,t){const i=(0,n.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,i,n)=>{const o=t?t.toLowerCase():"";return e.filter((e=>i.some((t=>{const i=n(t,e)+"",s="undefined"===i||"null"===i?"":i.toLowerCase();return-1!==s.indexOf(o)}))))}));return(0,n.YP)((()=>e.filter),(()=>{(0,n.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:i}}function F(e,t){for(const i in t)if(t[i]!==e[i])return!1;return!0}function B(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const H={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function W(e,t){const{props:i,emit:s}=e,r=(0,o.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:0!==i.rowsPerPageOptions.length?i.rowsPerPageOptions[0]:5},i.pagination)),a=(0,n.Fl)((()=>{const e=void 0!==i["onUpdate:pagination"]?{...r.value,...i.pagination}:r.value;return B(e)})),l=(0,n.Fl)((()=>void 0!==a.value.rowsNumber));function c(e){d({pagination:e,filter:i.filter})}function d(e={}){(0,n.Y3)((()=>{s("request",{pagination:e.pagination||a.value,filter:e.filter||i.filter,getCellValue:t})}))}function u(e,t){const n=B({...a.value,...e});!0!==F(a.value,n)?!0!==l.value?void 0!==i.pagination&&void 0!==i["onUpdate:pagination"]?s("update:pagination",n):r.value=n:c(n):!0===l.value&&!0===t&&c(n)}return{innerPagination:r,computedPagination:a,isServerSide:l,requestServerInteraction:d,setPagination:u}}function V(e,t,i,o,s,r){const{props:a,emit:l,proxy:{$q:c}}=e,d=(0,n.Fl)((()=>!0===o.value?i.value.rowsNumber||0:r.value)),u=(0,n.Fl)((()=>{const{page:e,rowsPerPage:t}=i.value;return(e-1)*t})),h=(0,n.Fl)((()=>{const{page:e,rowsPerPage:t}=i.value;return e*t})),g=(0,n.Fl)((()=>1===i.value.page)),p=(0,n.Fl)((()=>0===i.value.rowsPerPage?1:Math.max(1,Math.ceil(d.value/i.value.rowsPerPage)))),f=(0,n.Fl)((()=>0===h.value||i.value.page>=p.value)),m=(0,n.Fl)((()=>{const e=a.rowsPerPageOptions.includes(t.value.rowsPerPage)?a.rowsPerPageOptions:[t.value.rowsPerPage].concat(a.rowsPerPageOptions);return e.map((e=>({label:0===e?c.lang.table.allRows:""+e,value:e})))}));function v(){s({page:1})}function _(){const{page:e}=i.value;e>1&&s({page:e-1})}function b(){const{page:e,rowsPerPage:t}=i.value;h.value>0&&e*t{if(e===t)return;const n=i.value.page;e&&!n?s({page:1}):e["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},z=["update:selected","selection"];function U(e,t,i,o){const s=(0,n.Fl)((()=>{const t={};return e.selected.map(o.value).forEach((e=>{t[e]=!0})),t})),r=(0,n.Fl)((()=>"none"!==e.selection)),a=(0,n.Fl)((()=>"single"===e.selection)),l=(0,n.Fl)((()=>"multiple"===e.selection)),c=(0,n.Fl)((()=>0!==i.value.length&&i.value.every((e=>!0===s.value[o.value(e)])))),d=(0,n.Fl)((()=>!0!==c.value&&i.value.some((e=>!0===s.value[o.value(e)])))),u=(0,n.Fl)((()=>e.selected.length));function h(e){return!0===s.value[e]}function g(){t("update:selected",[])}function p(i,n,s,r){t("selection",{rows:n,added:s,keys:i,evt:r});const l=!0===a.value?!0===s?n:[]:!0===s?e.selected.concat(n):e.selected.filter((e=>!1===i.includes(o.value(e))));t("update:selected",l)}return{hasSelectionMode:r,singleSelection:a,multipleSelection:l,allRowsSelected:c,someRowsSelected:d,rowsSelectedNumber:u,isRowSelected:h,clearSelection:g,updateSelection:p}}function $(e){return Array.isArray(e)?e.slice():[]}const q={expanded:Array},K=["update:expanded"];function G(e,t){const i=(0,o.iH)($(e.expanded));function s(e){return i.value.includes(e)}function r(n){void 0!==e.expanded?t("update:expanded",n):i.value=n}function a(e,t){const n=i.value.slice(),o=n.indexOf(e);!0===t?-1===o&&(n.push(e),r(n)):-1!==o&&(n.splice(o,1),r(n))}return(0,n.YP)((()=>e.expanded),(e=>{i.value=$(e)})),{isRowExpanded:s,setExpanded:r,updateExpanded:a}}const Z={visibleColumns:Array};function Q(e,t,i){const o=(0,n.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,R.hj)(t[e])?"right":"left",sortable:!0}))):[]})),s=(0,n.Fl)((()=>{const{sortBy:i,descending:n}=t.value,s=void 0!==e.visibleColumns?o.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):o.value;return s.map((e=>{const t=e.align||"right",o=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:o+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===i?" sorted "+(!0===n?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>o+" "+e.classes:t=>o+" "+e.classes(t):()=>o}}))})),r=(0,n.Fl)((()=>{const e={};return s.value.forEach((t=>{e[t.name]=t})),e})),a=(0,n.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:s.value.length+(!0===i.value?1:0)));return{colList:o,computedCols:s,computedColsMap:r,computedColspan:a}}var Y=i(43251);const J="q-table__bottom row items-center",X={};f.If.forEach((e=>{X[e]={}}));const ee=(0,r.L)({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...X,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...u.S,...N,...Z,...P,...H,...q,...j,...A},emits:["request","virtualScroll",...D,...K,...z],setup(e,{slots:t,emit:i}){const r=(0,n.FN)(),{proxy:{$q:a}}=r,d=(0,u.Z)(e,a),{inFullscreen:h,toggleFullscreen:g}=T(),m=(0,n.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),k=(0,n.Fl)((()=>" q-table__card"+(!0===d.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),L=(0,n.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":k.value)+(!0===d.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===h.value?" fullscreen scroll":""))),E=(0,n.Fl)((()=>L.value+(!0===e.loading?" q-table--loading":"")));(0,n.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+L.value),(()=>{!0===b.value&&null!==_.value&&_.value.reset()}));const{innerPagination:N,computedPagination:D,isServerSide:I,requestServerInteraction:R,setPagination:A}=W(r,Me),{computedFilterMethod:P}=M(e,A),{isRowExpanded:F,setExpanded:B,updateExpanded:H}=G(e,i),j=(0,n.Fl)((()=>{let t=e.rows;if(!0===I.value||0===t.length)return t;const{sortBy:i,descending:n}=D.value;return e.filter&&(t=P.value(t,e.filter,re.value,Me)),null!==ce.value&&(t=de.value(e.rows===t?t.slice():t,i,n)),t})),z=(0,n.Fl)((()=>j.value.length)),$=(0,n.Fl)((()=>{let t=j.value;if(!0===I.value)return t;const{rowsPerPage:i}=D.value;return 0!==i&&(0===he.value&&e.rows!==t?t.length>ge.value&&(t=t.slice(0,ge.value)):t=t.slice(he.value,ge.value)),t})),{hasSelectionMode:q,singleSelection:K,multipleSelection:Z,allRowsSelected:X,someRowsSelected:ee,rowsSelectedNumber:te,isRowSelected:ie,clearSelection:ne,updateSelection:oe}=U(e,i,$,m),{colList:se,computedCols:re,computedColsMap:ae,computedColspan:le}=Q(e,D,q),{columnToSort:ce,computedSortMethod:de,sort:ue}=O(e,D,se,A),{firstRowIndex:he,lastRowIndex:ge,isFirstPage:pe,isLastPage:fe,pagesNumber:me,computedRowsPerPageOptions:ve,computedRowsNumber:_e,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce}=V(r,N,D,I,A,z),Se=(0,n.Fl)((()=>0===$.value.length)),xe=(0,n.Fl)((()=>{const t={};return f.If.forEach((i=>{t[i]=e[i]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ke(){!0===b.value&&_.value.reset()}function Le(){if(!0===e.grid)return Ze();const i=!0!==e.hideHeader?We:null;if(!0===b.value){const o=t["top-row"],s=t["bottom-row"],r={default:e=>Te(e.item,t.body,e.index)};if(void 0!==o){const e=(0,n.h)("tbody",o({cols:re.value}));r.before=null===i?()=>e:()=>[i()].concat(e)}else null!==i&&(r.before=i);return void 0!==s&&(r.after=()=>(0,n.h)("tbody",s({cols:re.value}))),(0,n.h)(y,{ref:_,class:e.tableClass,style:e.tableStyle,...xe.value,scrollTarget:e.virtualScrollTarget,items:$.value,type:"__qtable",tableColspan:le.value,onVirtualScroll:Ne},r)}const o=[Ie()];return null!==i&&o.unshift(i()),p({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},o)}function Ee(t,n){if(null!==_.value)return void _.value.scrollTo(t,n);t=parseInt(t,10);const o=v.value.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==o){const n=v.value.querySelector(".q-table__middle.scroll"),s=o.offsetTop-e.virtualScrollStickySizeStart,r=s{const i=t[`body-cell-${e.name}`],s=void 0!==i?i:c;return void 0!==s?s(Ae({key:a,row:o,pageIndex:r,col:e})):(0,n.h)("td",{class:e.__tdClass(o),style:e.__tdStyle(o)},Me(e,o))}));if(!0===q.value){const i=t["body-selection"],s=void 0!==i?i(Oe({key:a,row:o,pageIndex:r})):[(0,n.h)(S.Z,{modelValue:l,color:e.color,dark:d.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{oe([a],[o],e,t)}})];u.unshift((0,n.h)("td",{class:"q-table--col-auto-width"},s))}const h={key:a,class:{selected:l}};return void 0!==e.onRowClick&&(h.class["cursor-pointer"]=!0,h.onClick=e=>{i("RowClick",e,o,r)}),void 0!==e.onRowDblclick&&(h.class["cursor-pointer"]=!0,h.onDblclick=e=>{i("RowDblclick",e,o,r)}),void 0!==e.onRowContextmenu&&(h.class["cursor-pointer"]=!0,h.onContextmenu=e=>{i("RowContextmenu",e,o,r)}),(0,n.h)("tr",h,u)}function Ie(){const e=t.body,i=t["top-row"],o=t["bottom-row"];let s=$.value.map(((t,i)=>Te(t,e,i)));return void 0!==i&&(s=i({cols:re.value}).concat(s)),void 0!==o&&(s=s.concat(o({cols:re.value}))),(0,n.h)("tbody",s)}function Re(e){return Pe(e),e.cols=e.cols.map((t=>(0,Y.g)({...t},"value",(()=>Me(t,e.row))))),e}function Ae(e){return Pe(e),(0,Y.g)(e,"value",(()=>Me(e.col,e.row))),e}function Oe(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:re.value,colsMap:ae.value,sort:ue,rowIndex:he.value+t.pageIndex,color:e.color,dark:d.value,dense:e.dense}),!0===q.value&&(0,Y.g)(t,"selected",(()=>ie(t.key)),((e,i)=>{oe([t.key],[t.row],e,i)})),(0,Y.g)(t,"expand",(()=>F(t.key)),(e=>{H(t.key,e)}))}function Me(e,t){const i="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(i,t):i}const Fe=(0,n.Fl)((()=>({pagination:D.value,pagesNumber:me.value,isFirstPage:pe.value,isLastPage:fe.value,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce,inFullscreen:h.value,toggleFullscreen:g})));function Be(){const i=t.top,o=t["top-left"],s=t["top-right"],r=t["top-selection"],a=!0===q.value&&void 0!==r&&te.value>0,l="q-table__top relative-position row items-center";if(void 0!==i)return(0,n.h)("div",{class:l},[i(Fe.value)]);let c;return!0===a?c=r(Fe.value).slice():(c=[],void 0!==o?c.push((0,n.h)("div",{class:"q-table__control"},[o(Fe.value)])):e.title&&c.push((0,n.h)("div",{class:"q-table__control"},[(0,n.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==s&&(c.push((0,n.h)("div",{class:"q-table__separator col"})),c.push((0,n.h)("div",{class:"q-table__control"},[s(Fe.value)]))),0!==c.length?(0,n.h)("div",{class:l},c):void 0}const He=(0,n.Fl)((()=>!0===ee.value?null:X.value));function We(){const i=Ve();return!0===e.loading&&void 0===t.loading&&i.push((0,n.h)("tr",{class:"q-table__progress"},[(0,n.h)("th",{class:"relative-position",colspan:le.value},De())])),(0,n.h)("thead",i)}function Ve(){const i=t.header,o=t["header-cell"];if(void 0!==i)return i(je({header:!0})).slice();const s=re.value.map((e=>{const i=t[`header-cell-${e.name}`],s=void 0!==i?i:o,r=je({col:e});return void 0!==s?s(r):(0,n.h)(l,{key:e.name,props:r},(()=>e.label))}));if(!0===K.value&&!0!==e.grid)s.unshift((0,n.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===Z.value){const i=t["header-selection"],o=void 0!==i?i(je({})):[(0,n.h)(S.Z,{color:e.color,modelValue:He.value,dark:d.value,dense:e.dense,"onUpdate:modelValue":ze})];s.unshift((0,n.h)("th",{class:"q-table--col-auto-width"},o))}return[(0,n.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},s)]}function je(t){return Object.assign(t,{cols:re.value,sort:ue,colsMap:ae.value,color:e.color,dark:d.value,dense:e.dense}),!0===Z.value&&(0,Y.g)(t,"selected",(()=>He.value),ze),t}function ze(e){!0===ee.value&&(e=!1),oe($.value.map(m.value),$.value,e)}const Ue=(0,n.Fl)((()=>{const t=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return!0===a.lang.rtl?t.reverse():t}));function $e(){if(!0===e.hideBottom)return;if(!0===Se.value){if(!0===e.hideNoData)return;const i=!0===e.loading?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,o=t["no-data"],r=void 0!==o?[o({message:i,icon:a.iconSet.table.warning,filter:e.filter})]:[(0,n.h)(s.Z,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),i];return(0,n.h)("div",{class:J+" q-table__bottom--nodata"},r)}const i=t.bottom;if(void 0!==i)return(0,n.h)("div",{class:J},[i(Fe.value)]);const o=!0!==e.hideSelectedBanner&&!0===q.value&&te.value>0?[(0,n.h)("div",{class:"q-table__control"},[(0,n.h)("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(te.value)])])]:[];return!0!==e.hidePagination?(0,n.h)("div",{class:J+" justify-end"},Ke(o)):0!==o.length?(0,n.h)("div",{class:J},o):void 0}function qe(e){A({page:1,rowsPerPage:e.value})}function Ke(i){let o;const{rowsPerPage:s}=D.value,r=e.paginationLabel||a.lang.table.pagination,l=t.pagination,c=e.rowsPerPageOptions.length>1;if(i.push((0,n.h)("div",{class:"q-table__separator col"})),!0===c&&i.push((0,n.h)("div",{class:"q-table__control"},[(0,n.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),(0,n.h)(w.Z,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:s,options:ve.value,displayValue:0===s?a.lang.table.allRows:s,dark:d.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":qe})])),void 0!==l)o=l(Fe.value);else if(o=[(0,n.h)("span",0!==s?{class:"q-table__bottom-item"}:{},[s?r(he.value+1,Math.min(ge.value,_e.value),_e.value):r(1,z.value,_e.value)])],0!==s&&me.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),me.value>2&&o.push((0,n.h)(x.Z,{key:"pgFirst",...t,icon:Ue.value[0],disable:pe.value,onClick:be})),o.push((0,n.h)(x.Z,{key:"pgPrev",...t,icon:Ue.value[1],disable:pe.value,onClick:ye}),(0,n.h)(x.Z,{key:"pgNext",...t,icon:Ue.value[2],disable:fe.value,onClick:we})),me.value>2&&o.push((0,n.h)(x.Z,{key:"pgLast",...t,icon:Ue.value[3],disable:fe.value,onClick:Ce}))}return i.push((0,n.h)("div",{class:"q-table__control"},o)),i}function Ge(){const i=!0===e.gridHeader?[(0,n.h)("table",{class:"q-table"},[We(n.h)])]:!0===e.loading&&void 0===t.loading?De(n.h):void 0;return(0,n.h)("div",{class:"q-table__middle"},i)}function Ze(){const o=void 0!==t.item?t.item:o=>{const s=o.cols.map((e=>(0,n.h)("div",{class:"q-table__grid-item-row"},[(0,n.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,n.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===q.value){const i=t["body-selection"],r=void 0!==i?i(o):[(0,n.h)(S.Z,{modelValue:o.selected,color:e.color,dark:d.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{oe([o.key],[o.row],e,t)}})];s.unshift((0,n.h)("div",{class:"q-table__grid-item-row"},r),(0,n.h)(c.Z,{dark:d.value}))}const r={class:["q-table__grid-item-card"+k.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(r.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(r.onClick=e=>{i("RowClick",e,o.row,o.pageIndex)}),void 0!==e.onRowDblclick&&(r.onDblclick=e=>{i("RowDblclick",e,o.row,o.pageIndex)})),(0,n.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===o.selected?" q-table__grid-item--selected":"")},[(0,n.h)("div",r,s)])};return(0,n.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},$.value.map(((e,t)=>o(Re({key:m.value(e),row:e,pageIndex:t})))))}return Object.assign(r.proxy,{requestServerInteraction:R,setPagination:A,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce,isRowSelected:ie,clearSelection:ne,isRowExpanded:F,setExpanded:B,sort:ue,resetVirtualScroll:ke,scrollTo:Ee,getCellValue:Me}),(0,Y.K)(r.proxy,{filteredSortedRows:()=>j.value,computedRows:()=>$.value,computedRowsNumber:()=>_e.value}),()=>{const i=[Be()],o={ref:v,class:E.value};return!0===e.grid?i.push(Ge()):Object.assign(o,{class:[o.class,e.cardClass],style:e.cardStyle}),i.push(Le(),$e()),!0===e.loading&&void 0!==t.loading&&i.push(t.loading()),(0,n.h)("div",o,i)}}})},67220:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,n.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,n.h)("td",{class:o.value},(0,s.KR)(t.default));const r=i.vnode.key,a=(void 0!==e.props.colsMap?e.props.colsMap[r]:null)||e.props.col;if(void 0===a)return;const{row:l}=e.props;return(0,n.h)("td",{class:o.value+a.__tdClass(l),style:a.__tdStyle(l)},(0,s.KR)(t.default))}}})},31233:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,n.h)("tr",{class:i.value},(0,s.KR)(t.default))}})},70900:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});i(72879);var n=i(59835),o=i(60499),s=i(22857),r=i(9684),a=i(22026),l=i(61705),c=i(95439),d=i(91384),u=i(50796),h=i(4680);let g=0;const p=["click","keydown"],f={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+g++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function m(e,t,i,g){const p=(0,n.f3)(c.Nd,c.qO);if(p===c.qO)return console.error("QTab/QRouteTab component needs to be child of QTabs"),c.qO;const{proxy:f}=(0,n.FN)(),m=(0,o.iH)(null),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===e.ripple?{}:e.ripple))),y=(0,n.Fl)((()=>p.currentModel.value===e.name)),w=(0,n.Fl)((()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===y.value?" q-tab--active"+(p.tabProps.value.activeClass?" "+p.tabProps.value.activeClass:"")+(p.tabProps.value.activeColor?` text-${p.tabProps.value.activeColor}`:"")+(p.tabProps.value.activeBgColor?` bg-${p.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&!1===p.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===e.noCaps||!0===p.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===e.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==g?g.linkClass.value:""))),C=(0,n.Fl)((()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===p.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==e.contentClass?` ${e.contentClass}`:""))),S=(0,n.Fl)((()=>!0===e.disable||!0===p.hasFocus.value||!1===y.value&&!0===p.hasActiveTab.value?-1:e.tabindex||0));function x(t,n){if(!0!==n&&null!==m.value&&m.value.focus(),!0!==e.disable){if(void 0===g)return p.updateModel({name:e.name}),void i("click",t);if(!0===g.hasRouterLink.value){const n=(i={})=>{let n;const o=void 0===i.to||!0===(0,h.xb)(i.to,e.to)?p.avoidRouteWatcher=(0,u.Z)():null;return g.navigateToRouterLink(t,{...i,returnRouterError:!0}).catch((e=>{n=e})).then((t=>{if(o===p.avoidRouteWatcher&&(p.avoidRouteWatcher=!1,void 0===n&&(void 0===t||void 0!==t.message&&!0===t.message.startsWith("Avoided redundant navigation"))&&p.updateModel({name:e.name})),!0===i.returnRouterError)return void 0!==n?Promise.reject(n):t}))};return i("click",t,n),void(!0!==t.defaultPrevented&&n())}i("click",t)}else void 0!==g&&!0===g.hasRouterLink.value&&(0,d.NS)(t)}function k(e){(0,l.So)(e,[13,32])?x(e,!0):!0!==(0,l.Wm)(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===p.onKbdNavigate(e.keyCode,f.$el)&&(0,d.NS)(e),i("keydown",e)}function L(){const i=p.tabProps.value.narrowIndicator,o=[],r=(0,n.h)("div",{ref:_,class:["q-tab__indicator",p.tabProps.value.indicatorClass]});void 0!==e.icon&&o.push((0,n.h)(s.Z,{class:"q-tab__icon",name:e.icon})),void 0!==e.label&&o.push((0,n.h)("div",{class:"q-tab__label"},e.label)),!1!==e.alert&&o.push(void 0!==e.alertIcon?(0,n.h)(s.Z,{class:"q-tab__alert-icon",color:!0!==e.alert?e.alert:void 0,name:e.alertIcon}):(0,n.h)("div",{class:"q-tab__alert"+(!0!==e.alert?` text-${e.alert}`:"")})),!0===i&&o.push(r);const l=[(0,n.h)("div",{class:"q-focus-helper",tabindex:-1,ref:m}),(0,n.h)("div",{class:C.value},(0,a.vs)(t.default,o))];return!1===i&&l.push(r),l}const E={name:(0,n.Fl)((()=>e.name)),rootRef:v,tabIndicatorRef:_,routeData:g};function N(t,i){const o={ref:v,class:w.value,tabindex:S.value,role:"tab","aria-selected":!0===y.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:x,onKeydown:k,...i};return(0,n.wy)((0,n.h)(t,o,L()),[[r.Z,b.value]])}return(0,n.Jd)((()=>{p.unregisterTab(E)})),(0,n.bv)((()=>{p.registerTab(E)})),{renderTab:N,$tabs:p}}var v=i(65987);const _=(0,v.L)({name:"QTab",props:f,emits:p,setup(e,{slots:t,emit:i}){const{renderTab:n}=m(e,t,i);return()=>n("div")}})},47817:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});i(72879);var n=i(59835),o=i(60499),s=i(22857),r=i(76849),a=i(46183),l=i(4698),c=i(65987),d=i(22026),u=i(95439),h=i(78383);function g(e,t,i){const n=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const p=["left","center","right","justify"],f=(0,c.L)({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>p.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:i}){const{proxy:c}=(0,n.FN)(),{$q:p}=c,{registerTick:f}=(0,a.Z)(),{registerTick:m}=(0,a.Z)(),{registerTick:v}=(0,a.Z)(),{registerTimeout:_,removeTimeout:b}=(0,l.Z)(),{registerTimeout:y,removeTimeout:w}=(0,l.Z)(),C=(0,o.iH)(null),S=(0,o.iH)(null),x=(0,o.iH)(e.modelValue),k=(0,o.iH)(!1),L=(0,o.iH)(!0),E=(0,o.iH)(!1),N=(0,o.iH)(!1),D=[],T=(0,o.iH)(0),I=(0,o.iH)(!1);let R,A=null,O=null;const P=(0,n.Fl)((()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:g(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps}))),M=(0,n.Fl)((()=>{const e=T.value,t=x.value;for(let i=0;i{const t=!0===k.value?"left":!0===N.value?"justify":e.align;return`q-tabs__content--align-${t}`})),B=(0,n.Fl)((()=>`q-tabs row no-wrap items-center q-tabs--${!0===k.value?"":"not-"}scrollable q-tabs--`+(!0===e.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===e.outsideArrows?"outside":"inside")+` q-tabs--mobile-with${!0===e.mobileArrows?"":"out"}-arrows`+(!0===e.dense?" q-tabs--dense":"")+(!0===e.shrink?" col-shrink":"")+(!0===e.stretch?" self-stretch":""))),H=(0,n.Fl)((()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+F.value+(void 0!==e.contentClass?` ${e.contentClass}`:""))),W=(0,n.Fl)((()=>!0===e.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"})),V=(0,n.Fl)((()=>!0!==e.vertical&&!0===p.lang.rtl)),j=(0,n.Fl)((()=>!1===h.e&&!0===V.value));function z({name:t,setCurrent:n,skipEmit:o}){x.value!==t&&(!0!==o&&void 0!==e["onUpdate:modelValue"]&&i("update:modelValue",t),!0!==n&&void 0!==e["onUpdate:modelValue"]||(q(x.value,t),x.value=t))}function U(){f((()=>{$({width:C.value.offsetWidth,height:C.value.offsetHeight})}))}function $(t){if(void 0===W.value||null===S.value)return;const i=t[W.value.container],n=Math.min(S.value[W.value.scroll],Array.prototype.reduce.call(S.value.children,((e,t)=>e+(t[W.value.content]||0)),0)),o=i>0&&n>i;k.value=o,!0===o&&m(G),N.value=ie.name.value===t)):null,o=void 0!==i&&null!==i&&""!==i?D.find((e=>e.name.value===i)):null;if(n&&o){const t=n.tabIndicatorRef.value,i=o.tabIndicatorRef.value;null!==A&&(clearTimeout(A),A=null),t.style.transition="none",t.style.transform="none",i.style.transition="none",i.style.transform="none";const s=t.getBoundingClientRect(),r=i.getBoundingClientRect();i.style.transform=!0===e.vertical?`translate3d(0,${s.top-r.top}px,0) scale3d(1,${r.height?s.height/r.height:1},1)`:`translate3d(${s.left-r.left}px,0,0) scale3d(${r.width?s.width/r.width:1},1,1)`,v((()=>{A=setTimeout((()=>{A=null,i.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",i.style.transform="none"}),70)}))}o&&!0===k.value&&K(o.rootRef.value)}function K(t){const{left:i,width:n,top:o,height:s}=S.value.getBoundingClientRect(),r=t.getBoundingClientRect();let a=!0===e.vertical?r.top-o:r.left-i;if(a<0)return S.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.floor(a),void G();a+=!0===e.vertical?r.height-s:r.width-n,a>0&&(S.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(a),G())}function G(){const t=S.value;if(null===t)return;const i=t.getBoundingClientRect(),n=!0===e.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===V.value?(L.value=Math.ceil(n+i.width)0):(L.value=n>0,E.value=!0===e.vertical?Math.ceil(n+i.height){!0===te(e)&&J()}),5)}function Q(){Z(!0===j.value?Number.MAX_SAFE_INTEGER:0)}function Y(){Z(!0===j.value?0:Number.MAX_SAFE_INTEGER)}function J(){null!==O&&(clearInterval(O),O=null)}function X(t,i){const n=Array.prototype.filter.call(S.value.children,(e=>e===i||e.matches&&!0===e.matches(".q-tab.q-focusable"))),o=n.length;if(0===o)return;if(36===t)return K(n[0]),n[0].focus(),!0;if(35===t)return K(n[o-1]),n[o-1].focus(),!0;const s=t===(!0===e.vertical?38:37),r=t===(!0===e.vertical?40:39),a=!0===s?-1:!0===r?1:void 0;if(void 0!==a){const e=!0===V.value?-1:1,t=n.indexOf(i)+a*e;return t>=0&&te.modelValue),(e=>{z({name:e,setCurrent:!0,skipEmit:!0})})),(0,n.YP)((()=>e.outsideArrows),U);const ee=(0,n.Fl)((()=>!0===j.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===e.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}}));function te(e){const t=S.value,{get:i,set:n}=ee.value;let o=!1,s=i(t);const r=e=e)&&(o=!0,s=e),n(t,s),G(),o}function ie(e,t){for(const i in e)if(e[i]!==t[i])return!1;return!0}function ne(){let e=null,t={matchedLen:0,queryDiff:9999,hrefLen:0};const i=D.filter((e=>void 0!==e.routeData&&!0===e.routeData.hasRouterLink.value)),{hash:n,query:o}=c.$route,s=Object.keys(o).length;for(const r of i){const i=!0===r.routeData.exact.value;if(!0!==r.routeData[!0===i?"linkIsExactActive":"linkIsActive"].value)continue;const{hash:a,query:l,matched:c,href:d}=r.routeData.resolvedLink.value,u=Object.keys(l).length;if(!0===i){if(a!==n)continue;if(u!==s||!1===ie(o,l))continue;e=r.name.value;break}if(""!==a&&a!==n)continue;if(0!==u&&!1===ie(l,o))continue;const h={matchedLen:c.length,queryDiff:s-u,hrefLen:d.length-a.length};if(h.matchedLen>t.matchedLen)e=r.name.value,t=h;else if(h.matchedLen===t.matchedLen){if(h.queryDifft.hrefLen&&(e=r.name.value,t=h)}}null===e&&!0===D.some((e=>void 0===e.routeData&&e.name.value===x.value))||z({name:e,setCurrent:!0})}function oe(e){if(b(),!0!==I.value&&null!==C.value&&e.target&&"function"===typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===C.value.contains(t)&&(I.value=!0,!0===k.value&&K(t))}}function se(){_((()=>{I.value=!1}),30)}function re(){!1===de.avoidRouteWatcher?y(ne):w()}function ae(){if(void 0===R){const e=(0,n.YP)((()=>c.$route.fullPath),re);R=()=>{e(),R=void 0}}}function le(e){D.push(e),T.value++,U(),void 0===e.routeData||void 0===c.$route?y((()=>{if(!0===k.value){const e=x.value,t=void 0!==e&&null!==e&&""!==e?D.find((t=>t.name.value===e)):null;t&&K(t.rootRef.value)}})):(ae(),!0===e.routeData.hasRouterLink.value&&re())}function ce(e){D.splice(D.indexOf(e),1),T.value--,U(),void 0!==R&&void 0!==e.routeData&&(!0===D.every((e=>void 0===e.routeData))&&R(),re())}const de={currentModel:x,tabProps:P,hasFocus:I,hasActiveTab:M,registerTab:le,unregisterTab:ce,verifyRouteModel:re,updateModel:z,onKbdNavigate:X,avoidRouteWatcher:!1};function ue(){null!==A&&clearTimeout(A),J(),void 0!==R&&R()}let he;return(0,n.JJ)(u.Nd,de),(0,n.Jd)(ue),(0,n.se)((()=>{he=void 0!==R,ue()})),(0,n.dl)((()=>{!0===he&&ae(),U()})),()=>(0,n.h)("div",{ref:C,class:B.value,role:"tablist",onFocusin:oe,onFocusout:se},[(0,n.h)(r.Z,{onResize:$}),(0,n.h)("div",{ref:S,class:H.value,onScroll:G},(0,d.KR)(t.default)),(0,n.h)(s.Z,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===L.value?"":" q-tabs__arrow--faded"),name:e.leftIcon||p.iconSet.tabs[!0===e.vertical?"up":"left"],onMousedownPassive:Q,onTouchstartPassive:Q,onMouseupPassive:J,onMouseleavePassive:J,onTouchendPassive:J}),(0,n.h)(s.Z,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===E.value?"":" q-tabs__arrow--faded"),name:e.rightIcon||p.iconSet.tabs[!0===e.vertical?"down":"right"],onMousedownPassive:Y,onTouchstartPassive:Y,onMouseupPassive:J,onMouseleavePassive:J,onTouchendPassive:J})])}})},23175:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(22857),s=i(71926),r=i(65987);const a=(0,r.L)({name:"QToggle",props:{...s.Fz,icon:String,iconColor:String},emits:s.ZB,setup(e){function t(t,i){const s=(0,n.Fl)((()=>(!0===t.value?e.checkedIcon:!0===i.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon)),r=(0,n.Fl)((()=>!0===t.value?e.iconColor:null));return()=>[(0,n.h)("div",{class:"q-toggle__track"}),(0,n.h)("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==s.value?[(0,n.h)(o.Z,{name:s.value,color:r.value})]:void 0)]}return(0,s.ZP)("toggle",t)}})},51663:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,n.h)("div",{class:i.value,role:"toolbar"},(0,s.KR)(t.default))}})},81973:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(65987),s=i(22026);const r=(0,o.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,n.h)("div",{class:i.value},(0,s.KR)(t.default))}})},92043:(e,t,i)=>{"use strict";i.d(t,{If:()=>v,t9:()=>_,vp:()=>b});i(72879);var n=i(59835),o=i(60499),s=i(60899),r=i(91384),a=i(78383);const l=1e3,c=["start","center","end","start-force","center-force","end-force"],d=Array.prototype.filter,u=void 0===window.getComputedStyle(document.body).overflowAnchor?r.ZT:function(e,t){null!==e&&(void 0!==e._qOverflowAnimationFrame&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;e._qOverflowAnimationFrame=void 0;const i=e.children||[];d.call(i,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const n=i[t];n&&n.dataset&&(n.dataset.qVsAnchor="")})))};function h(e,t){return e+t}function g(e,t,i,n,o,s,r,l){const c=e===window?document.scrollingElement||document.documentElement:e,d=!0===o?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-r-l,scrollMaxSize:0,offsetStart:-r,offsetEnd:-l};if(!0===o?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=c.scrollLeft,u.scrollViewSize+=c.clientWidth),u.scrollMaxSize=c.scrollWidth,!0===s&&(u.scrollStart=(!0===a.e?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=c.scrollTop,u.scrollViewSize+=c.clientHeight),u.scrollMaxSize=c.scrollHeight),null!==i)for(let a=i.previousElementSibling;null!==a;a=a.previousElementSibling)!1===a.classList.contains("q-virtual-scroll--skip")&&(u.offsetStart+=a[d]);if(null!==n)for(let a=n.nextElementSibling;null!==a;a=a.nextElementSibling)!1===a.classList.contains("q-virtual-scroll--skip")&&(u.offsetEnd+=a[d]);if(t!==e){const i=c.getBoundingClientRect(),n=t.getBoundingClientRect();!0===o?(u.offsetStart+=n.left-i.left,u.offsetEnd-=n.width):(u.offsetStart+=n.top-i.top,u.offsetEnd-=n.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function p(e,t,i,n){"end"===t&&(t=(e===window?document.body:e)[!0===i?"scrollWidth":"scrollHeight"]),e===window?!0===i?(!0===n&&(t=(!0===a.e?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===i?(!0===n&&(t=(!0===a.e?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function f(e,t,i,n){if(i>=n)return 0;const o=t.length,s=Math.floor(i/l),r=Math.floor((n-1)/l)+1;let a=e.slice(s,r).reduce(h,0);return i%l!==0&&(a-=t.slice(s*l,i).reduce(h,0)),n%l!==0&&n!==o&&(a-=t.slice(n,r*l).reduce(h,0)),a}const m={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},v=Object.keys(m),_={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...m};function b({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:i,virtualScrollItemSizeComputed:r}){const a=(0,n.FN)(),{props:m,emit:v,proxy:_}=a,{$q:b}=_;let y,w,C,S,x=[];const k=(0,o.iH)(0),L=(0,o.iH)(0),E=(0,o.iH)({}),N=(0,o.iH)(null),D=(0,o.iH)(null),T=(0,o.iH)(null),I=(0,o.iH)({from:0,to:0}),R=(0,n.Fl)((()=>void 0!==m.tableColspan?m.tableColspan:100));void 0===r&&(r=(0,n.Fl)((()=>m.virtualScrollItemSize)));const A=(0,n.Fl)((()=>r.value+";"+m.virtualScrollHorizontal)),O=(0,n.Fl)((()=>A.value+";"+m.virtualScrollSliceRatioBefore+";"+m.virtualScrollSliceRatioAfter));function P(){j(w,!0)}function M(e){j(void 0===e?w:e)}function F(n,o){const s=t();if(void 0===s||null===s||8===s.nodeType)return;const r=g(s,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);C!==r.scrollViewSize&&z(r.scrollViewSize),H(s,r,Math.min(e.value-1,Math.max(0,parseInt(n,10)||0)),0,-1!==c.indexOf(o)?o:-1!==w&&n>w?"end":"start")}function B(){const n=t();if(void 0===n||null===n||8===n.nodeType)return;const o=g(n,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),s=e.value-1,r=o.scrollMaxSize-o.offsetStart-o.offsetEnd-L.value;if(y===o.scrollStart)return;if(o.scrollMaxSize<=0)return void H(n,o,0,0);C!==o.scrollViewSize&&z(o.scrollViewSize),W(I.value.from);const a=Math.floor(o.scrollMaxSize-Math.max(o.scrollViewSize,o.offsetEnd)-Math.min(S[s],o.scrollViewSize/2));if(a>0&&Math.ceil(o.scrollStart)>=a)return void H(n,o,s,o.scrollMaxSize-o.offsetEnd-x.reduce(h,0));let c=0,d=o.scrollStart-o.offsetStart,u=d;if(d<=r&&d+o.scrollViewSize>=k.value)d-=k.value,c=I.value.from,u=d;else for(let e=0;d>=x[e]&&c0&&c-o.scrollViewSize?(c++,u=d):u=S[c]+d;H(n,o,c,u)}function H(t,i,n,o,s){const r="string"===typeof s&&-1!==s.indexOf("-force"),a=!0===r?s.replace("-force",""):s,l=void 0!==a?a:"start";let c=Math.max(0,n-E.value[l]),d=c+E.value.total;d>e.value&&(d=e.value,c=Math.max(0,d-E.value.total)),y=i.scrollStart;const g=c!==I.value.from||d!==I.value.to;if(!1===g&&void 0===a)return void $(n);const{activeElement:v}=document,_=T.value;!0===g&&null!==_&&_!==v&&!0===_.contains(v)&&(_.addEventListener("focusout",V),setTimeout((()=>{null!==_&&_.removeEventListener("focusout",V)}))),u(_,n-c);const w=void 0!==a?S.slice(c,n).reduce(h,0):0;if(!0===g){const t=d>=I.value.from&&c<=I.value.to?I.value.to:d;I.value={from:c,to:t},k.value=f(x,S,0,c),L.value=f(x,S,d,e.value),requestAnimationFrame((()=>{I.value.to!==d&&y===i.scrollStart&&(I.value={from:I.value.from,to:d},L.value=f(x,S,d,e.value))}))}requestAnimationFrame((()=>{if(y!==i.scrollStart)return;!0===g&&W(c);const e=S.slice(c,n).reduce(h,0),s=e+i.offsetStart+k.value,l=s+S[n];let d=s+o;if(void 0!==a){const t=e-w,o=i.scrollStart+t;d=!0!==r&&oe.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),n=i.length,o=!0===m.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let s,r,a=e;for(let e=0;e=s;n--)S[n]=o;const a=Math.floor((e.value-1)/l);x=[];for(let n=0;n<=a;n++){let t=0;const i=Math.min((n+1)*l,e.value);for(let e=n*l;e=0?(W(I.value.from),(0,n.Y3)((()=>{F(t)}))):q()}function z(e){if(void 0===e&&"undefined"!==typeof window){const n=t();void 0!==n&&null!==n&&8!==n.nodeType&&(e=g(n,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}C=e;const n=parseFloat(m.virtualScrollSliceRatioBefore)||0,o=parseFloat(m.virtualScrollSliceRatioAfter)||0,s=1+n+o,a=void 0===e||e<=0?1:Math.ceil(e/r.value),l=Math.max(1,a,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/s));E.value={total:Math.ceil(l*s),start:Math.ceil(l*n),center:Math.ceil(l*(.5+n)),end:Math.ceil(l*(1+n)),view:a}}function U(e,t){const i=!0===m.virtualScrollHorizontal?"width":"height",o={["--q-virtual-scroll-item-"+i]:r.value+"px"};return["tbody"===e?(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:N},[(0,n.h)("tr",[(0,n.h)("td",{style:{[i]:`${k.value}px`,...o},colspan:R.value})])]):(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:N,style:{[i]:`${k.value}px`,...o}}),(0,n.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},t.flat()),"tbody"===e?(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:D},[(0,n.h)("tr",[(0,n.h)("td",{style:{[i]:`${L.value}px`,...o},colspan:R.value})])]):(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[i]:`${L.value}px`,...o}})]}function $(e){w!==e&&(void 0!==m.onVirtualScroll&&v("virtualScroll",{index:e,from:I.value.from,to:I.value.to-1,direction:e{z()})),(0,n.YP)(A,P),z();const q=(0,s.Z)(B,!0===b.platform.is.ios?120:35);(0,n.wF)((()=>{z()}));let K=!1;return(0,n.se)((()=>{K=!0})),(0,n.dl)((()=>{if(!0!==K)return;const e=t();void 0!==y&&void 0!==e&&null!==e&&8!==e.nodeType?p(e,y,m.virtualScrollHorizontal,b.lang.rtl):F(w)})),(0,n.Jd)((()=>{q.cancel()})),Object.assign(_,{scrollTo:F,reset:P,refresh:M}),{virtualScrollSliceRange:I,virtualScrollSliceSizeComputed:E,setVirtualScrollSize:z,onVirtualScrollEvt:q,localResetVirtualScroll:j,padVirtualScroll:U,scrollTo:F,reset:P,refresh:M}}},65065:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>a,jO:()=>r});var n=i(59835);const o={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},s=Object.keys(o),r={align:{type:String,validator:e=>s.includes(e)}};function a(e){return(0,n.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${o[t]}`}))}},68234:(e,t,i)=>{"use strict";i.d(t,{S:()=>o,Z:()=>s});var n=i(59835);const o={dark:{type:Boolean,default:null}};function s(e,t){return(0,n.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},87810:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>R,yV:()=>N,HJ:()=>T,Cl:()=>D,tL:()=>I});i(72879);var n=i(59835),o=i(60499),s=i(61957),r=i(22857),a=i(63940),l=i(68234),c=i(87729),d=i(95439);function u({validate:e,resetValidation:t,requiresQForm:i}){const o=(0,n.f3)(d.vh,!1);if(!1!==o){const{props:i,proxy:s}=(0,n.FN)();Object.assign(s,{validate:e,resetValidation:t}),(0,n.YP)((()=>i.disable),(e=>{!0===e?("function"===typeof t&&t(),o.unbindComponent(s)):o.bindComponent(s)})),(0,n.bv)((()=>{!0!==i.disable&&o.bindComponent(s)})),(0,n.Jd)((()=>{!0!==i.disable&&o.unbindComponent(s)}))}else!0===i&&console.error("Parent QForm not found on useFormChild()!")}const h=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,g=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,p=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,f=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,m=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,v={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>h.test(e),hexaColor:e=>g.test(e),hexOrHexaColor:e=>p.test(e),rgbColor:e=>f.test(e),rgbaColor:e=>m.test(e),rgbOrRgbaColor:e=>f.test(e)||m.test(e),hexOrRgbColor:e=>h.test(e)||f.test(e),hexaOrRgbaColor:e=>g.test(e)||m.test(e),anyColor:e=>p.test(e)||f.test(e)||m.test(e)};var _=i(60899),b=i(43251);const y=[!0,!1,"ondemand"],w={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>y.includes(e)}};function C(e,t){const{props:i,proxy:s}=(0,n.FN)(),r=(0,o.iH)(!1),a=(0,o.iH)(null),l=(0,o.iH)(!1);u({validate:w,resetValidation:y});let c,d=0;const h=(0,n.Fl)((()=>void 0!==i.rules&&null!==i.rules&&0!==i.rules.length)),g=(0,n.Fl)((()=>!0!==i.disable&&!0===h.value&&!1===t.value)),p=(0,n.Fl)((()=>!0===i.error||!0===r.value)),f=(0,n.Fl)((()=>"string"===typeof i.errorMessage&&0!==i.errorMessage.length?i.errorMessage:a.value));function m(){"ondemand"!==i.lazyRules&&!0===g.value&&!0===l.value&&C()}function y(){d++,t.value=!1,l.value=!1,r.value=!1,a.value=null,C.cancel()}function w(e=i.modelValue){if(!0===i.disable||!1===h.value)return!0;const n=++d,o=!0!==t.value?()=>{l.value=!0}:()=>{},s=(e,i)=>{!0===e&&o(),r.value=e,a.value=i||null,t.value=!1},c=[];for(let t=0;t{if(void 0===e||!1===Array.isArray(e)||0===e.length)return n===d&&s(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return n===d&&s(void 0!==t,t),void 0===t}),(e=>(n===d&&(console.error(e),s(!0)),!1))))}(0,n.YP)((()=>i.modelValue),(()=>{l.value=!0,!0===g.value&&!1===i.lazyRules&&C()})),(0,n.YP)((()=>i.reactiveRules),(e=>{!0===e?void 0===c&&(c=(0,n.YP)((()=>i.rules),m,{immediate:!0,deep:!0})):void 0!==c&&(c(),c=void 0)}),{immediate:!0}),(0,n.YP)((()=>i.lazyRules),m),(0,n.YP)(e,(e=>{!0===e?l.value=!0:!0===g.value&&"ondemand"!==i.lazyRules&&C()}));const C=(0,_.Z)(w,0);return(0,n.Jd)((()=>{void 0!==c&&c(),C.cancel()})),Object.assign(s,{resetValidation:y,validate:w}),(0,b.g)(s,"hasError",(()=>p.value)),{isDirtyModel:l,hasRules:h,hasError:p,errorMessage:f,validate:w,resetValidation:y}}const S=/^on[A-Z]/;function x(){const{attrs:e,vnode:t}=(0,n.FN)(),i={listeners:(0,o.iH)({}),attributes:(0,o.iH)({})};function s(){const n={},o={};for(const t in e)"class"!==t&&"style"!==t&&!1===S.test(t)&&(n[t]=e[t]);for(const e in t.props)!0===S.test(e)&&(o[e]=t.props[e]);i.attributes.value=n,i.listeners.value=o}return(0,n.Xn)(s),s(),i}var k=i(22026),L=i(91384),E=i(17026);function N(e){return void 0!==e&&null!==e&&0!==(""+e).length}const D={...l.S,...w,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},T=["update:modelValue","clear","focus","blur","popupShow","popupHide"];function I({requiredForAttr:e=!0,tagProp:t}={}){const{props:i,proxy:s}=(0,n.FN)(),r=(0,l.Z)(i,s.$q),a=(0,c.Z)({required:e,getValue:()=>i.for});return{requiredForAttr:e,tag:!0===t?(0,n.Fl)((()=>i.tag)):{value:"label"},isDark:r,editable:(0,n.Fl)((()=>!0!==i.disable&&!0!==i.readonly)),innerLoading:(0,o.iH)(!1),focused:(0,o.iH)(!1),hasPopupOpen:!1,splitAttrs:x(),targetUid:a,rootRef:(0,o.iH)(null),targetRef:(0,o.iH)(null),controlRef:(0,o.iH)(null)}}function R(e){const{props:t,emit:i,slots:o,attrs:l,proxy:c}=(0,n.FN)(),{$q:d}=c;let u=null;void 0===e.hasValue&&(e.hasValue=(0,n.Fl)((()=>N(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{i("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:O,onFocusout:P}),Object.assign(e,{clearValue:M,onControlFocusin:O,onControlFocusout:P,focus:R}),void 0===e.computedCounter&&(e.computedCounter=(0,n.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,i=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==i?" / "+i:"")}})));const{isDirtyModel:h,hasRules:g,hasError:p,errorMessage:f,resetValidation:m}=C(e.focused,e.innerLoading),v=void 0!==e.floatingLabel?(0,n.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,n.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),_=(0,n.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===g.value||!0===t.counter||null!==t.error)),b=(0,n.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),y=(0,n.Fl)((()=>`q-field row no-wrap items-start q-field--${b.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===v.value?" q-field--float":"")+(!0===S.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===p.value?" q-field--error":"")+(!0===p.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===_.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),w=(0,n.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===p.value?" text-negative":"string"===typeof t.standout&&0!==t.standout.length&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),S=(0,n.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),x=(0,n.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==p.value?` text-${t.labelColor}`:""))),D=(0,n.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue}))),T=(0,n.Fl)((()=>{const i={};return e.targetUid.value&&(i.for=e.targetUid.value),!0===t.disable&&(i["aria-disabled"]="true"),i}));function I(){const t=document.activeElement;let i=void 0!==e.targetRef&&e.targetRef.value;!i||null!==t&&t.id===e.targetUid.value||(!0===i.hasAttribute("tabindex")||(i=i.querySelector("[tabindex]")),i&&i!==t&&i.focus({preventScroll:!0}))}function R(){(0,E.jd)(I)}function A(){(0,E.fP)(I);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function O(t){null!==u&&(clearTimeout(u),u=null),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,i("focus",t))}function P(t,n){null!==u&&clearTimeout(u),u=setTimeout((()=>{u=null,(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,i("blur",t)),void 0!==n&&n())}))}function M(o){if((0,L.NS)(o),!0!==d.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),i("update:modelValue",null),i("clear",t.modelValue),(0,n.Y3)((()=>{const e=h.value;m(),h.value=e}))}function F(){const i=[];return void 0!==o.prepend&&i.push((0,n.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:L.X$},o.prepend())),i.push((0,n.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},B())),!0===p.value&&!1===t.noErrorIcon&&i.push(W("error",[(0,n.h)(r.Z,{name:d.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?i.push(W("inner-loading-append",void 0!==o.loading?o.loading():[(0,n.h)(a.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&i.push(W("inner-clearable-append",[(0,n.h)(r.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:M})])),void 0!==o.append&&i.push((0,n.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:L.X$},o.append())),void 0!==e.getInnerAppend&&i.push(W("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&i.push(e.getControlChild()),i}function B(){const i=[];return void 0!==t.prefix&&null!==t.prefix&&i.push((0,n.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&i.push(e.getShadowControl()),void 0!==e.getControl?i.push(e.getControl()):void 0!==o.rawControl?i.push(o.rawControl()):void 0!==o.control&&i.push((0,n.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},o.control(D.value))),!0===S.value&&i.push((0,n.h)("div",{class:x.value},(0,k.KR)(o.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&i.push((0,n.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),i.concat((0,k.KR)(o.default))}function H(){let i,r;!0===p.value?null!==f.value?(i=[(0,n.h)("div",{role:"alert"},f.value)],r=`q--slot-error-${f.value}`):(i=(0,k.KR)(o.error),r="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(i=[(0,n.h)("div",t.hint)],r=`q--slot-hint-${t.hint}`):(i=(0,k.KR)(o.hint),r="q--slot-hint"));const a=!0===t.counter||void 0!==o.counter;if(!0===t.hideBottomSpace&&!1===a&&void 0===i)return;const l=(0,n.h)("div",{key:r,class:"q-field__messages col"},i);return(0,n.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale"),onClick:L.X$},[!0===t.hideBottomSpace?l:(0,n.h)(s.uT,{name:"q-transition--field-message"},(()=>l)),!0===a?(0,n.h)("div",{class:"q-field__counter"},void 0!==o.counter?o.counter():e.computedCounter.value):null])}function W(e,t){return null===t?null:(0,n.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}let V=!1;return(0,n.se)((()=>{V=!0})),(0,n.dl)((()=>{!0===V&&!0===t.autofocus&&c.focus()})),!0===t.autofocus&&(0,n.bv)((()=>{c.focus()})),(0,n.Jd)((()=>{null!==u&&clearTimeout(u)})),Object.assign(c,{focus:R,blur:A}),function(){const i=void 0===e.getControl&&void 0===o.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...T.value}:T.value;return(0,n.h)(e.tag.value,{ref:e.rootRef,class:[y.value,l.class],style:l.style,...i},[void 0!==o.before?(0,n.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:L.X$},o.before()):null,(0,n.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,n.h)("div",{ref:e.controlRef,class:w.value,tabindex:-1,...e.controlEvents},F()),!0===_.value?H():null]),void 0!==o.after?(0,n.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:L.X$},o.after()):null])}}},99256:(e,t,i)=>{"use strict";i.d(t,{Do:()=>r,Fz:()=>o,eX:()=>s});var n=i(59835);const o={name:String};function s(e={}){return(t,i,o)=>{t[i]((0,n.h)("input",{class:"hidden"+(o||""),...e.value}))}}function r(e){return(0,n.Fl)((()=>e.name||e.for))}},94953:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(25310);function s(e,t,i){let s;function r(){void 0!==s&&(o.Z.remove(s),s=void 0)}return(0,n.Jd)((()=>{!0===e.value&&r()})),{removeFromHistory:r,addToHistory(){s={condition:()=>!0===i.value,handler:t},o.Z.add(s)}}}},62802:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(39180);const o=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,s=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,r=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,a=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===n.client.is.firefox?!1===a.test(t.data):!0===o.test(t.data)||!0===s.test(t.data)||!0===r.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},63842:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>a,gH:()=>r,vr:()=>s});var n=i(59835),o=i(52046);const s={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},r=["beforeShow","show","beforeHide","hide"];function a({showing:e,canShow:t,hideOnRouteChange:i,handleShow:s,handleHide:r,processOnMount:a}){const l=(0,n.FN)(),{props:c,emit:d,proxy:u}=l;let h;function g(t){!0===e.value?m(t):p(t)}function p(e){if(!0===c.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const i=void 0!==c["onUpdate:modelValue"];!0===i&&(d("update:modelValue",!0),h=e,(0,n.Y3)((()=>{h===e&&(h=void 0)}))),null!==c.modelValue&&!1!==i||f(e)}function f(t){!0!==e.value&&(e.value=!0,d("beforeShow",t),void 0!==s?s(t):d("show",t))}function m(e){if(!0===c.disable)return;const t=void 0!==c["onUpdate:modelValue"];!0===t&&(d("update:modelValue",!1),h=e,(0,n.Y3)((()=>{h===e&&(h=void 0)}))),null!==c.modelValue&&!1!==t||v(e)}function v(t){!1!==e.value&&(e.value=!1,d("beforeHide",t),void 0!==r?r(t):d("hide",t))}function _(t){if(!0===c.disable&&!0===t)void 0!==c["onUpdate:modelValue"]&&d("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?f:v;e(h)}}(0,n.YP)((()=>c.modelValue),_),void 0!==i&&!0===(0,o.Rb)(l)&&(0,n.YP)((()=>u.$route.fullPath),(()=>{!0===i.value&&!0===e.value&&m()})),!0===a&&(0,n.bv)((()=>{_(c.modelValue)}));const b={show:p,hide:m,toggle:g};return Object.assign(u,b),b}},3120:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>y,vZ:()=>m,K6:()=>b,t6:()=>_});var n=i(59835),o=i(60499),s=i(61957),r=i(39180),a=i(65987),l=i(99367),c=i(91384),d=i(2589);function u(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach(((e,i)=>{const n=parseFloat(e);n&&(t[i]=n)})),t}const h=(0,a.f)({name:"touch-swipe",beforeMount(e,{value:t,arg:i,modifiers:n}){if(!0!==n.mouse&&!0!==r.client.has.touch)return;const o=!0===n.mouseCapture?"Capture":"",s={handler:t,sensitivity:u(i),direction:(0,l.R)(n),noop:c.ZT,mouseStart(e){(0,l.n)(e,s)&&(0,c.du)(e)&&((0,c.M0)(s,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),s.start(e,!0))},touchStart(e){if((0,l.n)(e,s)){const t=e.target;(0,c.M0)(s,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),s.start(e)}},start(t,i){!0===r.client.is.firefox&&(0,c.Jf)(e,!0);const n=(0,c.FK)(t);s.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===i,dir:!1}},move(e){if(void 0===s.event)return;if(!1!==s.event.dir)return void(0,c.NS)(e);const t=Date.now()-s.event.time;if(0===t)return;const i=(0,c.FK)(e),n=i.left-s.event.x,o=Math.abs(n),r=i.top-s.event.y,a=Math.abs(r);if(!0!==s.event.mouse){if(os.sensitivity[0]&&(s.event.dir=r<0?"up":"down"),!0===s.direction.horizontal&&o>a&&a<100&&l>s.sensitivity[0]&&(s.event.dir=n<0?"left":"right"),!0===s.direction.up&&os.sensitivity[0]&&(s.event.dir="up"),!0===s.direction.down&&o0&&o<100&&u>s.sensitivity[0]&&(s.event.dir="down"),!0===s.direction.left&&o>a&&n<0&&a<100&&l>s.sensitivity[0]&&(s.event.dir="left"),!0===s.direction.right&&o>a&&n>0&&a<100&&l>s.sensitivity[0]&&(s.event.dir="right"),!1!==s.event.dir?((0,c.NS)(e),!0===s.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,d.M)(),s.styleCleanup=e=>{s.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()}),s.handler({evt:e,touch:!0!==s.event.mouse,mouse:s.event.mouse,direction:s.event.dir,duration:t,distance:{x:o,y:a}})):s.end(e)},end(t){void 0!==s.event&&((0,c.ul)(s,"temp"),!0===r.client.is.firefox&&(0,c.Jf)(e,!1),void 0!==s.styleCleanup&&s.styleCleanup(!0),void 0!==t&&!1!==s.event.dir&&(0,c.NS)(t),s.event=void 0)}};if(e.__qtouchswipe=s,!0===n.mouse){const t=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"";(0,c.M0)(s,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===r.client.has.touch&&(0,c.M0)(s,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const i=e.__qtouchswipe;void 0!==i&&(t.oldValue!==t.value&&("function"!==typeof t.value&&i.end(),i.handler=t.value),i.direction=(0,l.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&((0,c.ul)(t,"main"),(0,c.ul)(t,"temp"),!0===r.client.is.firefox&&(0,c.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function g(){let e=Object.create(null);return{getCache:(t,i)=>void 0===e[t]?e[t]="function"===typeof i?i():i:e[t],setCache(t,i){e[t]=i},hasCache(t){return e.hasOwnProperty(t)},clearCache(t){void 0!==t?delete e[t]:e={}}}}var p=i(22026),f=i(52046);const m={name:{required:!0},disable:Boolean},v={setup(e,{slots:t}){return()=>(0,n.h)("div",{class:"q-panel scroll",role:"tabpanel"},(0,p.KR)(t.default))}},_={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},b=["update:modelValue","beforeTransition","transition"];function y(){const{props:e,emit:t,proxy:i}=(0,n.FN)(),{getCache:r}=g();let a,l;const c=(0,o.iH)(null),d=(0,o.iH)(null);function u(t){const n=!0===e.vertical?"up":"left";I((!0===i.$q.lang.rtl?-1:1)*(t.direction===n?1:-1))}const m=(0,n.Fl)((()=>[[h,u,void 0,{horizontal:!0!==e.vertical,vertical:e.vertical,mouse:!0}]])),_=(0,n.Fl)((()=>e.transitionPrev||"slide-"+(!0===e.vertical?"down":"right"))),b=(0,n.Fl)((()=>e.transitionNext||"slide-"+(!0===e.vertical?"up":"left"))),y=(0,n.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),w=(0,n.Fl)((()=>"string"===typeof e.modelValue||"number"===typeof e.modelValue?e.modelValue:String(e.modelValue))),C=(0,n.Fl)((()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax}))),S=(0,n.Fl)((()=>void 0!==e.keepAliveInclude||void 0!==e.keepAliveExclude));function x(){I(1)}function k(){I(-1)}function L(e){t("update:modelValue",e)}function E(e){return void 0!==e&&null!==e&&""!==e}function N(e){return a.findIndex((t=>t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable))}function D(){return a.filter((e=>""!==e.props.disable&&!0!==e.props.disable))}function T(t){const i=0!==t&&!0===e.animated&&-1!==c.value?"q-transition--"+(-1===t?_.value:b.value):null;d.value!==i&&(d.value=i)}function I(i,n=c.value){let o=n+i;while(-1!==o&&o{l=!1}));o+=i}!0===e.infinite&&0!==a.length&&-1!==n&&n!==a.length&&I(i,-1===i?a.length:-1)}function R(){const t=N(e.modelValue);return c.value!==t&&(c.value=t),!0}function A(){const t=!0===E(e.modelValue)&&R()&&a[c.value];return!0===e.keepAlive?[(0,n.h)(n.Ob,C.value,[(0,n.h)(!0===S.value?r(w.value,(()=>({...v,name:w.value}))):v,{key:w.value,style:y.value},(()=>t))])]:[(0,n.h)("div",{class:"q-panel scroll",style:y.value,key:w.value,role:"tabpanel"},[t])]}function O(){if(0!==a.length)return!0===e.animated?[(0,n.h)(s.uT,{name:d.value},A)]:A()}function P(e){return a=(0,f.Pf)((0,p.KR)(e.default,[])).filter((e=>null!==e.props&&void 0===e.props.slot&&!0===E(e.props.name))),a.length}function M(){return a}return(0,n.YP)((()=>e.modelValue),((e,i)=>{const o=!0===E(e)?N(e):-1;!0!==l&&T(-1===o?0:o{t("transition",e,i)})))})),Object.assign(i,{next:x,previous:k,goTo:L}),{panelIndex:c,panelDirectives:m,updatePanelsList:P,updatePanelIndex:R,getPanelContent:O,getEnabledPanels:D,getPanels:M,isValidPanelName:E,keepAliveProps:C,needsUniqueKeepAliveWrapper:S,goToPanelByOffset:I,goToPanel:L,nextPanel:x,previousPanel:k}}},91518:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});i(72879);var n=i(60499),o=i(59835),s=i(65987),r=(i(91384),i(17026)),a=i(56669),l=i(2909),c=i(43251);const d=(0,s.L)({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function u(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function h(e,t,i,s){const h=(0,n.iH)(!1),g=(0,n.iH)(!1);let p=null;const f={},m="dialog"===s&&u(e);function v(t){if(!0===t)return(0,r.xF)(f),void(g.value=!0);g.value=!1,!1===h.value&&(!1===m&&null===p&&(p=(0,a.q_)(!1,s)),h.value=!0,l.Q$.push(e.proxy),(0,r.YX)(f))}function _(t){if(g.value=!1,!0!==t)return;(0,r.xF)(f),h.value=!1;const i=l.Q$.indexOf(e.proxy);-1!==i&&l.Q$.splice(i,1),null!==p&&((0,a.pB)(p),p=null)}return(0,o.Ah)((()=>{_(!0)})),e.proxy.__qPortal=!0,(0,c.g)(e.proxy,"contentEl",(()=>t.value)),{showPortal:v,hidePortal:_,portalIsActive:h,portalIsAccessible:g,renderPortal:()=>!0===m?i():!0===h.value?[(0,o.h)(o.lR,{to:p},(0,o.h)(d,i))]:void 0}}},13963:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(5984);function o(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,(0,n.Z)(t))}}}},55917:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(60499),o=i(59835);function s(e,t){const i=(0,n.iH)(null),s=(0,o.Fl)((()=>!0===e.disable?null:(0,o.h)("span",{ref:i,class:"no-outline",tabindex:-1})));function r(e){const n=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==n&&document.activeElement!==n&&!0===n.contains(document.activeElement)&&n.focus():null!==i.value&&(void 0===e||null!==n&&!0===n.contains(e.target))&&i.value.focus()}return{refocusTargetEl:s,refocusTarget:r}}},70945:(e,t,i)=>{"use strict";i.d(t,{$:()=>u,Z:()=>h});var n=i(59835),o=i(52046);function s(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function r(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function a(e,t){for(const i in t){const n=t[i],o=e[i];if("string"===typeof n){if(n!==o)return!1}else if(!1===Array.isArray(o)||o.length!==n.length||n.some(((e,t)=>e!==o[t])))return!1}return!0}function l(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,i)=>e===t[i])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?l(e,t):!0===Array.isArray(t)?l(t,e):e===t}function d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!1===c(e[i],t[i]))return!1;return!0}const u={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function h({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const i=(0,n.FN)(),{props:l,proxy:c,emit:u}=i,h=(0,o.Rb)(i),g=(0,n.Fl)((()=>!0!==l.disable&&void 0!==l.href)),p=!0===t?(0,n.Fl)((()=>!0===h&&!0!==l.disable&&!0!==g.value&&void 0!==l.to&&null!==l.to&&""!==l.to)):(0,n.Fl)((()=>!0===h&&!0!==g.value&&void 0!==l.to&&null!==l.to&&""!==l.to)),f=(0,n.Fl)((()=>!0===p.value?x(l.to):null)),m=(0,n.Fl)((()=>null!==f.value)),v=(0,n.Fl)((()=>!0===g.value||!0===m.value)),_=(0,n.Fl)((()=>"a"===l.type||!0===v.value?"a":l.tag||e||"div")),b=(0,n.Fl)((()=>!0===g.value?{href:l.href,target:l.target}:!0===m.value?{href:f.value.href,target:l.target}:{})),y=(0,n.Fl)((()=>{if(!1===m.value)return-1;const{matched:e}=f.value,{length:t}=e,i=e[t-1];if(void 0===i)return-1;const n=c.$route.matched;if(0===n.length)return-1;const o=n.findIndex(r.bind(null,i));if(-1!==o)return o;const a=s(e[t-2]);return t>1&&s(i)===a&&n[n.length-1].path!==a?n.findIndex(r.bind(null,e[t-2])):o})),w=(0,n.Fl)((()=>!0===m.value&&-1!==y.value&&a(c.$route.params,f.value.params))),C=(0,n.Fl)((()=>!0===w.value&&y.value===c.$route.matched.length-1&&d(c.$route.params,f.value.params))),S=(0,n.Fl)((()=>!0===m.value?!0===C.value?` ${l.exactActiveClass} ${l.activeClass}`:!0===l.exact?"":!0===w.value?` ${l.activeClass}`:"":""));function x(e){try{return c.$router.resolve(e)}catch(t){}return null}function k(e,{returnRouterError:t,to:i=l.to,replace:n=l.replace}={}){if(!0===l.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===l.target)return Promise.resolve(!1);e.preventDefault();const o=c.$router[!0===n?"replace":"push"](i);return!0===t?o:o.then((()=>{})).catch((()=>{}))}function L(e){if(!0===m.value){const t=t=>k(e,t);u("click",e,t),!0!==e.defaultPrevented&&t()}else u("click",e)}return{hasRouterLink:m,hasHrefLink:g,hasLink:v,linkTag:_,resolvedLink:f,linkIsActive:w,linkIsExactActive:C,linkClass:S,linkAttrs:b,getLink:x,navigateToRouterLink:k,navigateOnClick:L}}},20244:(e,t,i)=>{"use strict";i.d(t,{LU:()=>s,Ok:()=>o,ZP:()=>r});var n=i(59835);const o={xs:18,sm:24,md:32,lg:38,xl:46},s={size:String};function r(e,t=o){return(0,n.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},20431:(e,t,i)=>{"use strict";i.d(t,{D:()=>o,Z:()=>s});var n=i(59835);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function s(e,t=(()=>{}),i=(()=>{})){return{transitionProps:(0,n.Fl)((()=>{const n=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||i()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}})),transitionStyle:(0,n.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},87729:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(60499),o=i(59835),s=i(50796),r=i(39180);function a(e){return void 0===e||null===e?null:e}function l(e,t){return void 0===e||null===e?!0===t?`f_${(0,s.Z)()}`:null:e}function c({getValue:e,required:t=!0}={}){if(!0===r.u.value){const i=void 0!==e?(0,n.iH)(a(e())):(0,n.iH)(null);return!0===t&&null===i.value&&(0,o.bv)((()=>{i.value=`f_${(0,s.Z)()}`})),void 0!==e&&(0,o.YP)(e,(e=>{i.value=l(e,t)})),i}return void 0!==e?(0,o.Fl)((()=>l(e(),t))):(0,n.iH)(`f_${(0,s.Z)()}`)}},46183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(52046);function s(){let e;const t=(0,n.FN)();function i(){e=void 0}return(0,n.se)(i),(0,n.Jd)(i),{removeTick:i,registerTick(i){e=i,(0,n.Y3)((()=>{e===i&&(!1===(0,o.$D)(t)&&e(),e=void 0)}))}}}},4698:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(52046);function s(){let e=null;const t=(0,n.FN)();function i(){null!==e&&(clearTimeout(e),e=null)}return(0,n.se)(i),(0,n.Jd)(i),{removeTimeout:i,registerTimeout(n,s){i(e),!1===(0,o.$D)(t)&&(e=setTimeout((()=>{e=null,n()}),s))}}}},31281:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(65987),o=i(2909),s=i(61705);function r(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const a=(0,n.f)({name:"close-popup",beforeMount(e,{value:t}){const i={depth:r(t),handler(t){0!==i.depth&&setTimeout((()=>{const n=(0,o.je)(e);void 0!==n&&(0,o.S7)(n,t,i.depth)}))},handlerKey(e){!0===(0,s.So)(e,13)&&i.handler(e)}};e.__qclosepopup=i,e.addEventListener("click",i.handler),e.addEventListener("keyup",i.handlerKey)},updated(e,{value:t,oldValue:i}){t!==i&&(e.__qclosepopup.depth=r(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},9684:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});i(72879);var n=i(65987),o=i(70223),s=i(91384),r=i(61705);function a(e,t=250){let i,n=!1;return function(){return!1===n&&(n=!0,setTimeout((()=>{n=!1}),t),i=e.apply(this,arguments)),i}}function l(e,t,i,n){!0===i.modifiers.stop&&(0,s.sT)(e);const r=i.modifiers.color;let a=i.modifiers.center;a=!0===a||!0===n;const l=document.createElement("span"),c=document.createElement("span"),d=(0,s.FK)(e),{left:u,top:h,width:g,height:p}=t.getBoundingClientRect(),f=Math.sqrt(g*g+p*p),m=f/2,v=(g-f)/2+"px",_=a?v:d.left-u-m+"px",b=(p-f)/2+"px",y=a?b:d.top-h-m+"px";c.className="q-ripple__inner",(0,o.iv)(c,{height:`${f}px`,width:`${f}px`,transform:`translate3d(${_},${y},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(r?" text-"+r:""),l.setAttribute("dir","ltr"),l.appendChild(c),t.appendChild(l);const w=()=>{l.remove(),clearTimeout(C)};i.abort.push(w);let C=setTimeout((()=>{c.classList.add("q-ripple__inner--enter"),c.style.transform=`translate3d(${v},${b},0) scale3d(1,1,1)`,c.style.opacity=.2,C=setTimeout((()=>{c.classList.remove("q-ripple__inner--enter"),c.classList.add("q-ripple__inner--leave"),c.style.opacity=0,C=setTimeout((()=>{l.remove(),i.abort.splice(i.abort.indexOf(w),1)}),275)}),250)}),50)}function c(e,{modifiers:t,value:i,arg:n}){const o=Object.assign({},e.cfg.ripple,t,i);e.modifiers={early:!0===o.early,stop:!0===o.stop,center:!0===o.center,color:o.color||n,keyCodes:[].concat(o.keyCodes||13)}}const d=(0,n.f)({name:"ripple",beforeMount(e,t){const i=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===i.ripple)return;const n={cfg:i,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&l(t,e,n,!0===t.qKeyEvent)},keystart:a((t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===(0,r.So)(t,n.modifiers.keyCodes)&&t.type==="key"+(!0===n.modifiers.early?"down":"up")&&l(t,e,n,!0)}),300)};c(n,t),e.__qripple=n,(0,s.M0)(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const i=e.__qripple;void 0!==i&&(i.enabled=!1!==t.value,!0===i.enabled&&Object(t.value)===t.value&&c(i,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,s.ul)(t,"main"),delete e._qripple)}})},50867:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(39180),o=i(65987),s=i(99367),r=i(91384),a=i(2589);function l(e,t,i){const n=(0,r.FK)(e);let o,s=n.left-t.event.x,a=n.top-t.event.y,l=Math.abs(s),c=Math.abs(a);const d=t.direction;!0===d.horizontal&&!0!==d.vertical?o=s<0?"left":"right":!0!==d.horizontal&&!0===d.vertical?o=a<0?"up":"down":!0===d.up&&a<0?(o="up",l>c&&(!0===d.left&&s<0?o="left":!0===d.right&&s>0&&(o="right"))):!0===d.down&&a>0?(o="down",l>c&&(!0===d.left&&s<0?o="left":!0===d.right&&s>0&&(o="right"))):!0===d.left&&s<0?(o="left",l0&&(o="down"))):!0===d.right&&s>0&&(o="right",l0&&(o="down")));let u=!1;if(void 0===o&&!1===i){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};o=t.event.lastDir,u=!0,"left"===o||"right"===o?(n.left-=s,l=0,s=0):(n.top-=a,c=0,a=0)}return{synthetic:u,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:o,isFirst:t.event.isFirst,isFinal:!0===i,duration:Date.now()-t.event.time,distance:{x:l,y:c},offset:{x:s,y:a},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let c=0;const d=(0,o.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:i}){if(!0!==i.mouse&&!0!==n.client.has.touch)return;function o(e,t){!0===i.mouse&&!0===t?(0,r.NS)(e):(!0===i.stop&&(0,r.sT)(e),!0===i.prevent&&(0,r.X$)(e))}const d={uid:"qvtp_"+c++,handler:t,modifiers:i,direction:(0,s.R)(i),noop:r.ZT,mouseStart(e){(0,s.n)(e,d)&&(0,r.du)(e)&&((0,r.M0)(d,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),d.start(e,!0))},touchStart(e){if((0,s.n)(e,d)){const t=e.target;(0,r.M0)(d,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),d.start(e)}},start(t,o){if(!0===n.client.is.firefox&&(0,r.Jf)(e,!0),d.lastEvt=t,!0===o||!0===i.stop){if(!0!==d.direction.all&&(!0!==o||!0!==d.modifiers.mouseAllDir&&!0!==d.modifiers.mousealldir)){const e=-1!==t.type.indexOf("mouse")?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,r.X$)(e),!0===t.cancelBubble&&(0,r.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[d.uid]:t.qClonedBy.concat(d.uid)}),d.initialEvent={target:t.target,event:e}}(0,r.sT)(t)}const{left:s,top:a}=(0,r.FK)(t);d.event={x:s,y:a,time:Date.now(),mouse:!0===o,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:a}},move(e){if(void 0===d.event)return;const t=(0,r.FK)(e),n=t.left-d.event.x,s=t.top-d.event.y;if(0===n&&0===s)return;d.lastEvt=e;const c=!0===d.event.mouse,u=()=>{let t;o(e,c),!0!==i.preserveCursor&&!0!==i.preservecursor&&(t=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===c&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,a.M)(),d.styleCleanup=e=>{if(d.styleCleanup=void 0,void 0!==t&&(document.documentElement.style.cursor=t),document.body.classList.remove("non-selectable"),!0===c){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===d.event.detected){!0!==d.event.isFirst&&o(e,d.event.mouse);const{payload:t,synthetic:i}=l(e,d,!1);return void(void 0!==t&&(!1===d.handler(t)?d.end(e):(void 0===d.styleCleanup&&!0===d.event.isFirst&&u(),d.event.lastX=t.position.left,d.event.lastY=t.position.top,d.event.lastDir=!0===i?void 0:t.direction,d.event.isFirst=!1)))}if(!0===d.direction.all||!0===c&&(!0===d.modifiers.mouseAllDir||!0===d.modifiers.mousealldir))return u(),d.event.detected=!0,void d.move(e);const h=Math.abs(n),g=Math.abs(s);h!==g&&(!0===d.direction.horizontal&&h>g||!0===d.direction.vertical&&h0||!0===d.direction.left&&h>g&&n<0||!0===d.direction.right&&h>g&&n>0?(d.event.detected=!0,d.move(e)):d.end(e,!0))},end(t,i){if(void 0!==d.event){if((0,r.ul)(d,"temp"),!0===n.client.is.firefox&&(0,r.Jf)(e,!1),!0===i)void 0!==d.styleCleanup&&d.styleCleanup(),!0!==d.event.detected&&void 0!==d.initialEvent&&d.initialEvent.target.dispatchEvent(d.initialEvent.event);else if(!0===d.event.detected){!0===d.event.isFirst&&d.handler(l(void 0===t?d.lastEvt:t,d).payload);const{payload:e}=l(void 0===t?d.lastEvt:t,d,!0),i=()=>{d.handler(e)};void 0!==d.styleCleanup?d.styleCleanup(i):i()}d.event=void 0,d.initialEvent=void 0,d.lastEvt=void 0}}};if(e.__qtouchpan=d,!0===i.mouse){const t=!0===i.mouseCapture||!0===i.mousecapture?"Capture":"";(0,r.M0)(d,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===n.client.has.touch&&(0,r.M0)(d,"main",[[e,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const i=e.__qtouchpan;void 0!==i&&(t.oldValue!==t.value&&("function"!==typeof value&&i.end(),i.handler=t.value),i.direction=(0,s.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,r.ul)(t,"main"),(0,r.ul)(t,"temp"),!0===n.client.is.firefox&&(0,r.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}})},25310:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});i(72879);var n=i(39180),o=i(91384);const s=()=>!0;function r(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function a(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return s;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(r).map(a)),()=>t.includes(window.location.hash)}const c={__history:[],add:o.ZT,remove:o.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:i}=n.client.is;if(!0!==t&&!0!==i)return;const o=e.config[!0===t?"cordova":"capacitor"];if(void 0!==o&&!1===o.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=s),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const r=l(Object.assign({backButtonExit:!0},o)),a=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===r()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",a,!1)})):window.Capacitor.Plugins.App.addListener("backButton",a)}}},72289:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(74124),o=i(43251);const s={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},r=(0,n.Z)({iconMapFn:null,__icons:{}},{set(e,t){const i={...e,rtl:!0===e.rtl};i.set=r.set,Object.assign(r.__icons,i)},install({$q:e,iconSet:t,ssrContext:i}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,o.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||s)}}),a=r},8264:(e,t,i)=>{"use strict";i.d(t,{$:()=>L,Z:()=>D});var n=i(61957),o=i(39180),s=(i(72879),i(74124)),r=i(91384),a=i(60899);const l=["sm","md","lg","xl"],{passive:c}=r.listenOpts,d=(0,s.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:r.ZT,setDebounce:r.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:i}=window,n=i||window,s=document.scrollingElement||document.documentElement,r=void 0===i||!0===o.client.is.mobile?()=>[Math.max(window.innerWidth,s.clientWidth),Math.max(window.innerHeight,s.clientHeight)]:()=>[i.width*i.scale+window.innerWidth-s.clientWidth,i.height*i.scale+window.innerHeight-s.clientHeight],d=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,i]=r();if(i!==this.height&&(this.height=i),t!==this.width)this.width=t;else if(!0!==e)return;let n=this.sizes;this.gt.xs=t>=n.sm,this.gt.sm=t>=n.md,this.gt.md=t>=n.lg,this.gt.lg=t>=n.xl,this.lt.sm=t{l.forEach((t=>{void 0!==e[t]&&(h[t]=e[t])}))},this.setDebounce=e=>{g=e};const p=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&l.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{l.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==u&&n.removeEventListener("resize",u,c),u=e>0?(0,a.Z)(this.__update,e):this.__update,n.addEventListener("resize",u,c)},this.setDebounce(g),0!==Object.keys(h).length?(this.setSizes(h),h=void 0):this.__update(),!0===d&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===o.u.value?t.push(p):p()}});var u=i(46337),h=i(25310),g=i(33558);function p(e,t,i=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(i instanceof Element))throw new TypeError("Expected a DOM element");i.style.setProperty(`--q-${e}`,t)}var f=i(61705);function m(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function v({is:e,has:t,within:i},n){const o=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=m(e);void 0!==t&&o.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;o.push(t),o.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||o.push("q-ios-padding")}else!0===e.electron?o.push("electron"):!0===e.bex&&o.push("bex");return!0===i.iframe&&o.push("within-iframe"),o}function _(){const{is:e}=o.client,t=document.body.className,i=new Set(t.replace(/ {2}/g," ").split(" "));if(!0!==e.nativeMobile&&!0!==e.electron&&!0!==e.bex)if(!0===e.desktop)i.delete("mobile"),i.delete("platform-ios"),i.delete("platform-android"),i.add("desktop");else if(!0===e.mobile){i.delete("desktop"),i.add("mobile"),i.delete("platform-ios"),i.delete("platform-android");const t=m(e);void 0!==t&&i.add(`platform-${t}`)}!0===o.client.has.touch&&(i.delete("no-touch"),i.add("touch")),!0===o.client.within.iframe&&i.add("within-iframe");const n=Array.from(i).join(" ");t!==n&&(document.body.className=n)}function b(e){for(const t in e)p(t,e[t])}const y={install(e){if(!0!==this.__installed){if(!0===o.u.value)_();else{const{$q:t}=e;void 0!==t.config.brand&&b(t.config.brand);const i=v(o.client,t.config);document.body.classList.add.apply(document.body.classList,i)}!0===o.client.is.ios&&document.body.addEventListener("touchstart",r.ZT),window.addEventListener("keydown",f.ZK,!0)}}};var w=i(72289),C=i(95439),S=i(27495),x=i(4680);const k=[o.Z,y,u.Z,d,h.Z,g.Z,w.Z];function L(e,t){const i=(0,n.ri)(e);i.config.globalProperties=t.config.globalProperties;const{reload:o,...s}=t._context;return Object.assign(i._context,s),i}function E(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function N(e,t,i){e.config.globalProperties.$q=i.$q,e.provide(C.Ng,i.$q),E(i,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,x.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,x.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&E(i,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===o.u.value&&(i.$q.onSSRHydrated=()=>{i.onSSRHydrated.forEach((e=>{e()})),i.$q.onSSRHydrated=()=>{}})}const D=function(e,t={}){const i={version:"2.15.2"};!1===S.Uf?(void 0!==t.config&&Object.assign(S.w6,t.config),i.config={...S.w6},(0,S.tP)()):i.config=t.config||{},N(e,t,{parentApp:e,$q:i,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})}},33558:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(74124);const o={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,i)=>e+"-"+t+" of "+i,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function s(){const e=!0===Array.isArray(navigator.languages)&&0!==navigator.languages.length?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const r=(0,n.Z)({__langPack:{}},{getLocale:s,set(e=o,t){const i={...e,rtl:!0===e.rtl,getLocale:s};if(i.set=r.set,void 0===r.__langConfig||!0!==r.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===i.rtl?"rtl":"ltr"),e.setAttribute("lang",i.isoName)}Object.assign(r.__langPack,i),r.props=i,r.isoName=i.isoName,r.nativeName=i.nativeName},install({$q:e,lang:t,ssrContext:i}){e.lang=r.__langPack,r.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||o)}}),a=r},46337:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(74124);const o=(0,n.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){o.mode=e,"auto"===e?(void 0===o.__media&&(o.__media=window.matchMedia("(prefers-color-scheme: dark)"),o.__updateMedia=()=>{o.set("auto")},o.__media.addListener(o.__updateMedia)),e=o.__media.matches):void 0!==o.__media&&(o.__media.removeListener(o.__updateMedia),o.__media=void 0),o.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){o.set(!1===o.isActive)},install({$q:e,ssrContext:t}){const{dark:i}=e.config;e.dark=this,!0!==this.__installed&&this.set(void 0!==i&&i)}}),s=o},93809:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});i(72879);var n=i(59835),o=i(60499),s=i(32074),r=i(24455),a=i(44458),l=i(63190),c=i(11821),d=i(50926),u=i(66611),h=i(8830),g=i(63940),p=i(65987),f=i(68234),m=i(61705),v=i(4680);const _=(0,p.L)({name:"DialogPluginComponent",props:{...f.S,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:i}=(0,n.FN)(),{$q:p}=i,_=(0,f.Z)(e,p),b=(0,o.iH)(null),y=(0,o.iH)(void 0!==e.prompt?e.prompt.model:void 0!==e.options?e.options.model:void 0),w=(0,n.Fl)((()=>"q-dialog-plugin"+(!0===_.value?" q-dialog-plugin--dark q-dark":"")+(!1!==e.progress?" q-dialog-plugin--progress":""))),C=(0,n.Fl)((()=>e.color||(!0===_.value?"amber":"primary"))),S=(0,n.Fl)((()=>!1===e.progress?null:!0===(0,v.Kn)(e.progress)?{component:e.progress.spinner||g.Z,props:{color:e.progress.color||C.value}}:{component:g.Z,props:{color:C.value}})),x=(0,n.Fl)((()=>void 0!==e.prompt||void 0!==e.options)),k=(0,n.Fl)((()=>{if(!0!==x.value)return{};const{model:t,isValid:i,items:n,...o}=void 0!==e.prompt?e.prompt:e.options;return o})),L=(0,n.Fl)((()=>!0===(0,v.Kn)(e.ok)||!0===e.ok?p.lang.label.ok:e.ok)),E=(0,n.Fl)((()=>!0===(0,v.Kn)(e.cancel)||!0===e.cancel?p.lang.label.cancel:e.cancel)),N=(0,n.Fl)((()=>void 0!==e.prompt?void 0!==e.prompt.isValid&&!0!==e.prompt.isValid(y.value):void 0!==e.options&&(void 0!==e.options.isValid&&!0!==e.options.isValid(y.value)))),D=(0,n.Fl)((()=>({color:C.value,label:L.value,ripple:!1,disable:N.value,...!0===(0,v.Kn)(e.ok)?e.ok:{flat:!0},"data-autofocus":"ok"===e.focus&&!0!==x.value||void 0,onClick:A}))),T=(0,n.Fl)((()=>({color:C.value,label:E.value,ripple:!1,...!0===(0,v.Kn)(e.cancel)?e.cancel:{flat:!0},"data-autofocus":"cancel"===e.focus&&!0!==x.value||void 0,onClick:O})));function I(){b.value.show()}function R(){b.value.hide()}function A(){t("ok",(0,o.IU)(y.value)),R()}function O(){R()}function P(){t("hide")}function M(e){y.value=e}function F(t){!0!==N.value&&"textarea"!==e.prompt.type&&!0===(0,m.So)(t,13)&&A()}function B(t,i){return!0===e.html?(0,n.h)(l.Z,{class:t,innerHTML:i}):(0,n.h)(l.Z,{class:t},(()=>i))}function H(){return[(0,n.h)(u.Z,{color:C.value,dense:!0,autofocus:!0,dark:_.value,...k.value,modelValue:y.value,"onUpdate:modelValue":M,onKeyup:F})]}function W(){return[(0,n.h)(h.Z,{color:C.value,options:e.options.items,dark:_.value,...k.value,modelValue:y.value,"onUpdate:modelValue":M})]}function V(){const t=[];return e.cancel&&t.push((0,n.h)(r.Z,T.value)),e.ok&&t.push((0,n.h)(r.Z,D.value)),(0,n.h)(c.Z,{class:!0===e.stackButtons?"items-end":"",vertical:e.stackButtons,align:"right"},(()=>t))}function j(){const t=[];return e.title&&t.push(B("q-dialog__title",e.title)),!1!==e.progress&&t.push((0,n.h)(l.Z,{class:"q-dialog__progress"},(()=>(0,n.h)(S.value.component,S.value.props)))),e.message&&t.push(B("q-dialog__message",e.message)),void 0!==e.prompt?t.push((0,n.h)(l.Z,{class:"scroll q-dialog-plugin__form"},H)):void 0!==e.options&&t.push((0,n.h)(d.Z,{dark:_.value}),(0,n.h)(l.Z,{class:"scroll q-dialog-plugin__form"},W),(0,n.h)(d.Z,{dark:_.value})),(e.ok||e.cancel)&&t.push(V()),t}function z(){return[(0,n.h)(a.Z,{class:[w.value,e.cardClass],style:e.cardStyle,dark:_.value},j)]}return(0,n.YP)((()=>e.prompt&&e.prompt.model),M),(0,n.YP)((()=>e.options&&e.options.model),M),Object.assign(i,{show:I,hide:R}),()=>(0,n.h)(s.Z,{ref:b,onHide:P},z)}});var b=i(8264),y=i(56669);function w(e,t){for(const i in t)"spinner"!==i&&Object(t[i])===t[i]?(e[i]=Object(e[i])!==e[i]?{}:{...e[i]},w(e[i],t[i])):e[i]=t[i]}function C(e,t,i){return s=>{let r,a;const l=!0===t&&void 0!==s.component;if(!0===l){const{component:e,componentProps:t}=s;r="string"===typeof e?i.component(e):e,a=t||{}}else{const{class:t,style:i,...n}=s;r=e,a=n,void 0!==t&&(n.cardClass=t),void 0!==i&&(n.cardStyle=i)}let c,d=!1;const u=(0,o.iH)(null),h=(0,y.q_)(!1,"dialog"),g=e=>{if(null!==u.value&&void 0!==u.value[e])return void u.value[e]();const t=c.$.subTree;if(t&&t.component){if(t.component.proxy&&t.component.proxy[e])return void t.component.proxy[e]();if(t.component.subTree&&t.component.subTree.component&&t.component.subTree.component.proxy&&t.component.subTree.component.proxy[e])return void t.component.subTree.component.proxy[e]()}console.error("[Quasar] Incorrectly defined Dialog component")},p=[],f=[],m={onOk(e){return p.push(e),m},onCancel(e){return f.push(e),m},onDismiss(e){return p.push(e),f.push(e),m},hide(){return g("hide"),m},update(e){if(null!==c){if(!0===l)Object.assign(a,e);else{const{class:t,style:i,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==i&&(n.cardStyle=i),w(a,n)}c.$forceUpdate()}return m}},v=e=>{d=!0,p.forEach((t=>{t(e)}))},_=()=>{C.unmount(h),(0,y.pB)(h),C=null,c=null,!0!==d&&f.forEach((e=>{e()}))};let C=(0,b.$)({name:"QGlobalDialog",setup:()=>()=>(0,n.h)(r,{...a,ref:u,onOk:v,onHide:_,onVnodeMounted(...e){"function"===typeof a.onVnodeMounted&&a.onVnodeMounted(...e),(0,n.Y3)((()=>g("show")))}})},i);return c=C.mount(h),m}}const S={install({$q:e,parentApp:t}){e.dialog=C(_,!0,t),!0!==this.__installed&&(this.create=e.dialog)}}},15162:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});i(72879);var n=i(59835),o=i(61957),s=i(63940),r=i(8264),a=i(74124),l=i(56669),c=i(5984),d=i(4680);let u,h,g=0,p=null,f={},m={};const v={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:s.Z,customClass:""},_={...v};function b(e){if(e&&void 0!==e.group&&void 0!==m[e.group])return Object.assign(m[e.group],e);const t=!0===(0,d.Kn)(e)&&!0===e.ignoreDefaults?{...v,...e}:{..._,...e};return m[t.group]=t,t}const y=(0,a.Z)({isActive:!1},{show(e){f=b(e);const{group:t}=f;return y.isActive=!0,void 0!==u?(f.uid=g,h.$forceUpdate()):(f.uid=++g,null!==p&&clearTimeout(p),p=setTimeout((()=>{p=null;const e=(0,l.q_)("q-loading");u=(0,r.$)({name:"QLoading",setup(){function t(){!0!==y.isActive&&void 0!==u&&((0,c.Z)(!1),u.unmount(e),(0,l.pB)(e),u=void 0,h=void 0)}function i(){if(!0!==y.isActive)return null;const e=[(0,n.h)(f.spinner,{class:"q-loading__spinner",color:f.spinnerColor,size:f.spinnerSize})];return f.message&&e.push((0,n.h)("div",{class:"q-loading__message"+(f.messageColor?` text-${f.messageColor}`:""),[!0===f.html?"innerHTML":"textContent"]:f.message})),(0,n.h)("div",{class:"q-loading fullscreen flex flex-center z-max "+f.customClass.trim(),key:f.uid},[(0,n.h)("div",{class:"q-loading__backdrop"+(f.backgroundColor?` bg-${f.backgroundColor}`:"")}),(0,n.h)("div",{class:"q-loading__box column items-center "+f.boxClass},e)])}return(0,n.bv)((()=>{(0,c.Z)(!0)})),()=>(0,n.h)(o.uT,{name:"q-transition--fade",appear:!0,onAfterLeave:t},i)}},y.__parentApp),h=u.mount(e)}),f.delay)),e=>{void 0!==e&&Object(e)===e?y.show({...e,group:t}):y.hide(t)}},hide(e){if(!0===y.isActive){if(void 0===e)m={};else{if(void 0===m[e])return;{delete m[e];const t=Object.keys(m);if(0!==t.length){const e=t[t.length-1];return void y.show({group:e})}}}null!==p&&(clearTimeout(p),p=null),y.isActive=!1}},setDefaults(e){!0===(0,d.Kn)(e)&&Object.assign(_,e)},install({$q:e,parentApp:t}){e.loading=this,y.__parentApp=t,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}}),w=y},92180:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(39180),o=(i(72879),i(91384)),s=i(4680);function r(e){return!0===(0,s.J_)(e)?"__q_date|"+e.toUTCString():!0===(0,s.Gf)(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function a(e){const t=e.length;if(t<9)return e;const i=e.substring(0,8),n=e.substring(9);switch(i){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function l(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:o.ZT,remove:o.ZT,clear:o.ZT,isEmpty:()=>!0}}function c(e){const t=window[e+"Storage"],i=e=>{const i=t.getItem(e);return i?a(i):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:i,getIndex:e=>ee{let e;const n={},o=t.length;for(let s=0;s{const e=[],i=t.length;for(let n=0;n{t.setItem(e,r(i))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const d=!1===n.client.has.webStorage?l():c("local"),u={install({$q:e}){e.localStorage=d}};Object.assign(u,d);const h=u},31012:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});i(72879);var n=i(60499),o=i(59835),s=i(61957),r=i(61357),a=i(22857),l=i(24455),c=i(63940),d=i(8264),u=i(65987),h=(i(91384),i(56669)),g=i(4680);let p=0;const f={},m={},v={},_={},b=/^\s*$/,y=[],w=[void 0,null,!0,!1,""],C=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],S=["top-left","top-right","bottom-left","bottom-right"],x={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function k(e,t,i){if(!e)return N("parameter required");let o;const s={textColor:"white"};if(!0!==e.ignoreDefaults&&Object.assign(s,f),!1===(0,g.Kn)(e)&&(s.type&&Object.assign(s,x[s.type]),e={message:e}),Object.assign(s,x[e.type||s.type],e),"function"===typeof s.icon&&(s.icon=s.icon(t)),s.spinner?(!0===s.spinner&&(s.spinner=c.Z),s.spinner=(0,n.Xl)(s.spinner)):s.spinner=!1,s.meta={hasMedia:Boolean(!1!==s.spinner||s.icon||s.avatar),hasText:E(s.message)||E(s.caption)},s.position){if(!1===C.includes(s.position))return N("wrong position",e)}else s.position="bottom";if(!0===w.includes(s.timeout))s.timeout=5e3;else{const t=Number(s.timeout);if(isNaN(t)||t<0)return N("wrong timeout",e);s.timeout=Number.isFinite(t)?t:0}0===s.timeout?s.progress=!1:!0===s.progress&&(s.meta.progressClass="q-notification__progress"+(s.progressClass?` ${s.progressClass}`:""),s.meta.progressStyle={animationDuration:`${s.timeout+1e3}ms`});const r=(!0===Array.isArray(e.actions)?e.actions:[]).concat(!0!==e.ignoreDefaults&&!0===Array.isArray(f.actions)?f.actions:[]).concat(void 0!==x[e.type]&&!0===Array.isArray(x[e.type].actions)?x[e.type].actions:[]),{closeBtn:a}=s;if(a&&r.push({label:"string"===typeof a?a:t.lang.label.close}),s.actions=r.map((({handler:e,noDismiss:t,...i})=>({flat:!0,...i,onClick:"function"===typeof e?()=>{e(),!0!==t&&l()}:()=>{l()}}))),void 0===s.multiLine&&(s.multiLine=s.actions.length>1),Object.assign(s.meta,{class:"q-notification row items-stretch q-notification--"+(!0===s.multiLine?"multi-line":"standard")+(void 0!==s.color?` bg-${s.color}`:"")+(void 0!==s.textColor?` text-${s.textColor}`:"")+(void 0!==s.classes?` ${s.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===s.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===s.multiLine?"":" col"),leftClass:!0===s.meta.hasText?"additional":"single",attrs:{role:"alert",...s.attrs}}),!1===s.group?(s.group=void 0,s.meta.group=void 0):(void 0!==s.group&&!0!==s.group||(s.group=[s.message,s.caption,s.multiline].concat(s.actions.map((e=>`${e.label}*${e.icon}`))).join("|")),s.meta.group=s.group+"|"+s.position),0===s.actions.length?s.actions=void 0:s.meta.actionsClass="q-notification__actions row items-center "+(!0===s.multiLine?"justify-end":"col-auto")+(!0===s.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){i.notif.meta.timer&&(clearTimeout(i.notif.meta.timer),i.notif.meta.timer=void 0),s.meta.uid=i.notif.meta.uid;const e=v[s.position].value.indexOf(i.notif);v[s.position].value[e]=s}else{const t=m[s.meta.group];if(void 0===t){if(s.meta.uid=p++,s.meta.badge=1,-1!==["left","right","center"].indexOf(s.position))v[s.position].value.splice(Math.floor(v[s.position].value.length/2),0,s);else{const e=-1!==s.position.indexOf("top")?"unshift":"push";v[s.position].value[e](s)}void 0!==s.group&&(m[s.meta.group]=s)}else{if(t.meta.timer&&(clearTimeout(t.meta.timer),t.meta.timer=void 0),void 0!==s.badgePosition){if(!1===S.includes(s.badgePosition))return N("wrong badgePosition",e)}else s.badgePosition="top-"+(-1!==s.position.indexOf("left")?"right":"left");s.meta.uid=t.meta.uid,s.meta.badge=t.meta.badge+1,s.meta.badgeClass=`q-notification__badge q-notification__badge--${s.badgePosition}`+(void 0!==s.badgeColor?` bg-${s.badgeColor}`:"")+(void 0!==s.badgeTextColor?` text-${s.badgeTextColor}`:"")+(s.badgeClass?` ${s.badgeClass}`:"");const i=v[s.position].value.indexOf(t);v[s.position].value[i]=m[s.meta.group]=s}}const l=()=>{L(s),o=void 0};return s.timeout>0&&(s.meta.timer=setTimeout((()=>{s.meta.timer=void 0,l()}),s.timeout+1e3)),void 0!==s.group?t=>{void 0!==t?N("trying to update a grouped one which is forbidden",e):l()}:(o={dismiss:l,config:e,notif:s},void 0===i?e=>{if(void 0!==o)if(void 0===e)o.dismiss();else{const i=Object.assign({},o.config,e,{group:!1,position:s.position});k(i,t,o)}}:void Object.assign(i,o))}function L(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=v[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete m[e.meta.group];const i=y[""+e.meta.uid];if(i){const{width:e,height:t}=getComputedStyle(i);i.style.left=`${i.offsetLeft}px`,i.style.width=e,i.style.height=t}v[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}function E(e){return void 0!==e&&null!==e&&!0!==b.test(e)}function N(e,t){return console.error(`Notify: ${e}`,t),!1}function D(){return(0,u.L)({name:"QNotifications",devtools:{hide:!0},setup(){return()=>(0,o.h)("div",{class:"q-notifications"},C.map((e=>(0,o.h)(s.W3,{key:e,class:_[e],tag:"div",name:`q-notification--${e}`},(()=>v[e].value.map((e=>{const t=e.meta,i=[];if(!0===t.hasMedia&&(!1!==e.spinner?i.push((0,o.h)(e.spinner,{class:"q-notification__spinner q-notification__spinner--"+t.leftClass,color:e.spinnerColor,size:e.spinnerSize})):e.icon?i.push((0,o.h)(a.Z,{class:"q-notification__icon q-notification__icon--"+t.leftClass,name:e.icon,color:e.iconColor,size:e.iconSize,role:"img"})):e.avatar&&i.push((0,o.h)(r.Z,{class:"q-notification__avatar q-notification__avatar--"+t.leftClass},(()=>(0,o.h)("img",{src:e.avatar,"aria-hidden":"true"}))))),!0===t.hasText){let t;const n={class:"q-notification__message col"};if(!0===e.html)n.innerHTML=e.caption?`${e.message}
${e.caption}
`:e.message;else{const i=[e.message];t=e.caption?[(0,o.h)("div",i),(0,o.h)("div",{class:"q-notification__caption"},[e.caption])]:i}i.push((0,o.h)("div",n,t))}const n=[(0,o.h)("div",{class:t.contentClass},i)];return!0===e.progress&&n.push((0,o.h)("div",{key:`${t.uid}|p|${t.badge}`,class:t.progressClass,style:t.progressStyle})),void 0!==e.actions&&n.push((0,o.h)("div",{class:t.actionsClass},e.actions.map((e=>(0,o.h)(l.Z,e))))),t.badge>1&&n.push((0,o.h)("div",{key:`${t.uid}|${t.badge}`,class:e.meta.badgeClass,style:e.badgeStyle},[t.badge])),(0,o.h)("div",{ref:e=>{y[""+t.uid]=e},key:t.uid,class:t.class,...t.attrs},[(0,o.h)("div",{class:t.wrapperClass},n)])})))))))}})}const T={setDefaults(e){!0===(0,g.Kn)(e)&&Object.assign(f,e)},registerType(e,t){!0===(0,g.Kn)(t)&&(x[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=t=>k(t,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,void 0!==e.config.notify&&this.setDefaults(e.config.notify),!0!==this.__installed){C.forEach((e=>{v[e]=(0,n.iH)([]);const t=!0===["left","center","right"].includes(e)?"center":-1!==e.indexOf("top")?"top":"bottom",i=-1!==e.indexOf("left")?"start":-1!==e.indexOf("right")?"end":"center",o=["left","right"].includes(e)?`items-${"left"===e?"start":"end"} justify-center`:"center"===e?"flex-center":`items-${i}`;_[e]=`q-notifications__list q-notifications__list--${t} fixed column no-wrap ${o}`}));const e=(0,h.q_)("q-notify");(0,d.$)(D(),t).mount(e)}}}},39180:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f,client:()=>g,u:()=>s});i(72879);var n=i(60499),o=i(43251);const s=(0,n.iH)(!1);let r;function a(e,t){const i=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:t[0]||""}}function l(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function d(e){const t=e.toLowerCase(),i=l(t),n=a(t,i),o={};n.browser&&(o[n.browser]=!0,o.version=n.version,o.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(o[n.platform]=!0);const d=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(!0===d||-1!==t.indexOf("mobile")?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,n.browser="edge"):o.crios?(o.chrome=!0,n.browser="chrome"):o.fxios?(o.firefox=!0,n.browser="firefox"):(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(n.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||!0===o.mobile&&!0!==o.ios&&!0!==d)&&(o.webkit=!0),o.opr&&(n.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(n.browser="blackberry",o.blackberry=!0):o.playbook?(n.browser="playbook",o.playbook=!0):o.android?(n.browser="android",o.android=!0):o.kindle?(n.browser="kindle",o.kindle=!0):o.silk&&(n.browser="silk",o.silk=!0)),o.name=n.browser,o.platform=n.platform,-1!==t.indexOf("electron"))o.electron=!0;else if(-1!==document.location.href.indexOf("-extension://"))o.bex=!0;else{if(void 0!==window.Capacitor?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),!0===s.value&&(r={is:{...o}}),!0===c&&!0===o.mac&&(!0===o.desktop&&!0===o.safari||!0===o.nativeMobile&&!0!==o.android&&!0!==o.ios&&!0!==o.ipad)){delete o.mac,delete o.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:e,[e]:!0})}!0!==o.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const u=navigator.userAgent||navigator.vendor||window.opera,h={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:u,is:d(u),has:{touch:c},within:{iframe:window.self!==window.top}},p={install(e){const{$q:t}=e;!0===s.value?(e.onSSRHydrated.push((()=>{Object.assign(t.platform,g),s.value=!1})),t.platform=(0,n.qj)(this)):t.platform=this}};{let e;(0,o.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),Object.assign(p,g),!0===s.value&&(Object.assign(p,r,h),r=null)}const f=p},60899:(e,t,i)=>{"use strict";function n(e,t=250,i){let n=null;function o(){const o=arguments,s=()=>{n=null,!0!==i&&e.apply(this,o)};null!==n?clearTimeout(n):!0===i&&e.apply(this,o),n=setTimeout(s,t)}return o.cancel=()=>{null!==n&&clearTimeout(n)},o}i.d(t,{Z:()=>n})},70223:(e,t,i)=>{"use strict";i.d(t,{iv:()=>o,mY:()=>r,sb:()=>s});var n=i(60499);function o(e,t){const i=e.style;for(const n in t)i[n]=t[n]}function s(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(i){return}const t=(0,n.SU)(e);return t?t.$el||t:void 0}function r(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let i=e.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(t))return!0;return!1}},91384:(e,t,i)=>{"use strict";i.d(t,{AZ:()=>a,FK:()=>r,Jf:()=>u,M0:()=>h,NS:()=>d,X$:()=>c,ZT:()=>o,du:()=>s,listenOpts:()=>n,sT:()=>l,ul:()=>g});i(72879);const n={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(n,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(p){}function o(){}function s(e){return 0===e.button}function r(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function a(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let i=e.target;while(i){if(t.push(i),"HTML"===i.tagName)return t.push(document),t.push(window),t;i=i.parentElement}}function l(e){e.stopPropagation()}function c(e){!1!==e.cancelable&&e.preventDefault()}function d(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function u(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const i=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",c,n.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",c,n.notPassiveCapture)};e.querySelectorAll("a, img").forEach(i)}function h(e,t,i){const o=`__q_${t}_evt`;e[o]=void 0!==e[o]?e[o].concat(i):i,i.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],n[t[3]])}))}function g(e,t){const i=`__q_${t}_evt`;void 0!==e[i]&&(e[i].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],n[t[3]])})),e[i]=void 0)}},30321:(e,t,i)=>{"use strict";i.d(t,{Uz:()=>o,vX:()=>n});function n(e,t,i){return i<=t?t:Math.min(i,Math.max(t,e))}function o(e,t,i){if(i<=t)return t;const n=i-t+1;let o=t+(e-t)%n;return o{"use strict";i.d(t,{Gf:()=>r,J_:()=>s,Kn:()=>o,hj:()=>a,xb:()=>n});i(96641);function n(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let i,o;if(e.constructor===Array){if(i=e.length,i!==t.length)return!1;for(o=i;0!==o--;)if(!0!==n(e[o],t[o]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();o=i.next();while(!0!==o.done){if(!0!==t.has(o.value[0]))return!1;o=i.next()}i=e.entries(),o=i.next();while(!0!==o.done){if(!0!==n(o.value[1],t.get(o.value[0])))return!1;o=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();o=i.next();while(!0!==o.done){if(!0!==t.has(o.value[0]))return!1;o=i.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(i=e.length,i!==t.length)return!1;for(o=i;0!==o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const s=Object.keys(e).filter((t=>void 0!==e[t]));if(i=s.length,i!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(o=i;0!==o--;){const i=s[o];if(!0!==n(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function o(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function s(e){return"[object Date]"===Object.prototype.toString.call(e)}function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function a(e){return"number"===typeof e&&isFinite(e)}},5984:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(91384),o=i(43701),s=i(39180);let r,a,l,c,d,u,h=0,g=!1,p=null;function f(e){m(e)&&(0,n.NS)(e)}function m(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,n.AZ)(e),i=e.shiftKey&&!e.deltaX,s=!i&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),r=i||s?e.deltaY:e.deltaX;for(let n=0;n0&&e.scrollTop+e.clientHeight===e.scrollHeight:r<0&&0===e.scrollLeft||r>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function _(e){!0!==g&&(g=!0,requestAnimationFrame((()=>{g=!1;const{height:t}=e.target,{clientHeight:i,scrollTop:n}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=i-t,document.scrollingElement.scrollTop=n),n>l&&(document.scrollingElement.scrollTop-=Math.ceil((n-l)/8))})))}function b(e){const t=document.body,i=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);r=(0,o.OI)(window),a=(0,o.u3)(window),c=t.style.left,d=t.style.top,u=window.location.href,t.style.left=`-${r}px`,t.style.top=`-${a}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===s.client.is.ios&&(!0===i?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",_,n.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",_,n.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,n.listenOpts.passiveCapture))}!0===s.client.is.desktop&&!0===s.client.is.mac&&window[`${e}EventListener`]("wheel",f,n.listenOpts.notPassive),"remove"===e&&(!0===s.client.is.ios&&(!0===i?(window.visualViewport.removeEventListener("resize",_,n.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",_,n.listenOpts.passiveCapture)):window.removeEventListener("scroll",v,n.listenOpts.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=c,t.style.top=d,window.location.href===u&&window.scrollTo(r,a),l=void 0)}function y(e){let t="add";if(!0===e){if(h++,null!==p)return clearTimeout(p),void(p=null);if(h>1)return}else{if(0===h)return;if(h--,h>0)return;if(t="remove",!0===s.client.is.ios&&!0===s.client.is.nativeMobile)return null!==p&&clearTimeout(p),void(p=setTimeout((()=>{b(t),p=null}),100))}b(t)}},65987:(e,t,i)=>{"use strict";i.d(t,{L:()=>s,f:()=>r});var n=i(60499),o=i(59835);const s=e=>(0,n.Xl)((0,o.aZ)(e)),r=e=>(0,n.Xl)(e)},74124:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(60499),o=i(43251);const s=(e,t)=>{const i=(0,n.qj)(e);for(const n in e)(0,o.g)(t,n,(()=>i[n]),(e=>{i[n]=e}));return t}},16532:(e,t,i)=>{"use strict";i.d(t,{c:()=>u,k:()=>h});i(72879);var n=i(39180),o=i(61705);const s=[];let r;function a(e){r=27===e.keyCode}function l(){!0===r&&(r=!1)}function c(e){!0===r&&(r=!1,!0===(0,o.So)(e,27)&&s[s.length-1](e))}function d(e){window[e]("keydown",a),window[e]("blur",l),window[e]("keyup",c),r=!1}function u(e){!0===n.client.is.desktop&&(s.push(e),1===s.length&&d("addEventListener"))}function h(e){const t=s.indexOf(e);-1!==t&&(s.splice(t,1),0===s.length&&d("removeEventListener"))}},17026:(e,t,i)=>{"use strict";i.d(t,{YX:()=>r,fP:()=>c,jd:()=>l,xF:()=>a});i(72879);let n=[],o=[];function s(e){o=o.filter((t=>t!==e))}function r(e){s(e),o.push(e)}function a(e){s(e),0===o.length&&0!==n.length&&(n[n.length-1](),n=[])}function l(e){0===o.length?e():n.push(e)}function c(e){n=n.filter((t=>t!==e))}},4173:(e,t,i)=>{"use strict";i.d(t,{H:()=>a,i:()=>r});i(72879);var n=i(39180);const o=[];function s(e){o[o.length-1](e)}function r(e){!0===n.client.is.desktop&&(o.push(e),1===o.length&&document.body.addEventListener("focusin",s))}function a(e){const t=o.indexOf(e);-1!==t&&(o.splice(t,1),0===o.length&&document.body.removeEventListener("focusin",s))}},27495:(e,t,i)=>{"use strict";i.d(t,{Uf:()=>o,tP:()=>s,w6:()=>n});const n={};let o=!1;function s(){o=!0}},56669:(e,t,i)=>{"use strict";i.d(t,{pB:()=>c,q_:()=>l});i(72879);var n=i(27495);const o=[],s=[];let r=1,a=document.body;function l(e,t){const i=document.createElement("div");if(i.id=void 0!==t?`q-portal--${t}--${r++}`:e,void 0!==n.w6.globalNodes){const e=n.w6.globalNodes.class;void 0!==e&&(i.className=e)}return a.appendChild(i),o.push(i),s.push(t),i}function c(e){const t=o.indexOf(e);o.splice(t,1),s.splice(t,1),e.remove()}},43251:(e,t,i)=>{"use strict";function n(e,t,i,n){return Object.defineProperty(e,t,{get:i,set:n,enumerable:!0}),e}function o(e,t){for(const i in t)n(e,i,t[i]);return e}i.d(t,{K:()=>o,g:()=>n})},61705:(e,t,i)=>{"use strict";i.d(t,{So:()=>r,Wm:()=>s,ZK:()=>o});let n=!1;function o(e){n=!0===e.isComposing}function s(e){return!0===n||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function r(e,t){return!0!==s(e)&&[].concat(t).includes(e.keyCode)}},89480:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n={xs:30,sm:35,md:40,lg:50,xl:60}},2909:(e,t,i)=>{"use strict";i.d(t,{AH:()=>r,Q$:()=>o,S7:()=>a,je:()=>s});var n=i(52046);const o=[];function s(e){return o.find((t=>null!==t.contentEl&&t.contentEl.contains(e)))}function r(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,n.O2)(e)}else if(!0===e.__qPortal){const i=(0,n.O2)(e);return void 0!==i&&"QPopupProxy"===i.$options.name?(e.hide(t),i):e}e=(0,n.O2)(e)}while(void 0!==e&&null!==e)}function a(e,t,i){while(0!==i&&void 0!==e&&null!==e){if(!0===e.__qPortal){if(i--,"QMenu"===e.$options.name){e=r(e,t);continue}e.hide(t)}e=(0,n.O2)(e)}}},22026:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>s,Jl:()=>l,KR:()=>o,pf:()=>a,vs:()=>r});var n=i(59835);function o(e,t){return void 0!==e&&e()||t}function s(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function r(e,t){return void 0!==e?t.concat(e()):t}function a(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,i,o,s,r){t.key=o+s;const a=(0,n.h)(e,t,i);return!0===s?(0,n.wy)(a,r()):a}},78383:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});let n=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,n=e.scrollLeft>=0,e.remove()}},2589:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(39180);function o(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==n.Z.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},95439:(e,t,i)=>{"use strict";i.d(t,{Mw:()=>s,Nd:()=>a,Ng:()=>n,YE:()=>o,qO:()=>l,vh:()=>r});const n="_q_",o="_q_l_",s="_q_pc_",r="_q_fo_",a="_q_tabs_",l=()=>{}},99367:(e,t,i)=>{"use strict";i.d(t,{R:()=>s,n:()=>a});const n={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},o=Object.keys(n);function s(e){const t={};for(const i of o)!0===e[i]&&(t[i]=!0);return 0===Object.keys(t).length?n:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}n.all=!0;const r=["INPUT","TEXTAREA"];function a(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&!1===r.includes(e.target.nodeName.toUpperCase())&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}},52046:(e,t,i)=>{"use strict";function n(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;while(Object(t)===t){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function o(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{o(e,t)})):e.add(t)}function s(e){const t=new Set;return e.forEach((e=>{o(t,e)})),Array.from(t)}function r(e){return void 0!==e.appContext.config.globalProperties.$router}function a(e){return!0===e.isUnmounted||!0===e.isDeactivated}i.d(t,{$D:()=>a,O2:()=>n,Pf:()=>s,Rb:()=>r})},43701:(e,t,i)=>{"use strict";i.d(t,{OI:()=>a,QA:()=>m,b0:()=>s,f3:()=>h,ik:()=>g,np:()=>f,u3:()=>r});var n=i(70223);const o=[null,document,document.body,document.scrollingElement,document.documentElement];function s(e,t){let i=(0,n.sb)(t);if(void 0===i){if(void 0===e||null===e)return window;i=e.closest(".scroll,.scroll-y,.overflow-auto")}return o.includes(i)?window:i}function r(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function a(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function l(e,t,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],o=r(e);i<=0?o!==t&&d(e,t):requestAnimationFrame((s=>{const r=s-n,a=o+(t-o)/Math.max(r,i)*r;d(e,a),a!==t&&l(e,t,i-r,s)}))}function c(e,t,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],o=a(e);i<=0?o!==t&&u(e,t):requestAnimationFrame((s=>{const r=s-n,a=o+(t-o)/Math.max(r,i)*r;u(e,a),a!==t&&c(e,t,i-r,s)}))}function d(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function u(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function h(e,t,i){i?l(e,t,i):d(e,t)}function g(e,t,i){i?c(e,t,i):u(e,t)}let p;function f(){if(void 0!==p)return p;const e=document.createElement("p"),t=document.createElement("div");(0,n.iv)(e,{width:"100%",height:"200px"}),(0,n.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return i===o&&(o=t.clientWidth),t.remove(),p=i-o,p}function m(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},50796:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});i(313),i(97862),i(98832),i(98994),i(28516),i(24287),i(72879);let n,o=0;const s=new Array(256);for(let c=0;c<256;c++)s[c]=(c+256).toString(16).substring(1);const r=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const i=new Uint8Array(t);return e.getRandomValues(i),i}}return e=>{const t=[];for(let i=e;i>0;i--)t.push(Math.floor(256*Math.random()));return t}})(),a=4096;function l(){(void 0===n||o+16>a)&&(o=0,n=r(a));const e=Array.prototype.slice.call(n,o,o+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,s[e[0]]+s[e[1]]+s[e[2]]+s[e[3]]+"-"+s[e[4]]+s[e[5]]+"-"+s[e[6]]+s[e[7]]+"-"+s[e[8]]+s[e[9]]+"-"+s[e[10]]+s[e[11]]+s[e[12]]+s[e[13]]+s[e[14]]+s[e[15]]}},71947:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(8264),o=i(33558),s=i(72289);const r={version:"2.15.2",install:n.Z,lang:o.Z,iconSet:s.Z}},42049:function(e,t,i){var n,o,s;(function(i,r){o=[],n=r,s="function"===typeof n?n.apply(t,o):n,void 0===s||(e.exports=s)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i.g&&i.g.global===i.g?i.g:void 0,a=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,i){var a=r.URL||r.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?s(l):o(l.href)?n(e,t,i):s(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){s(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,r){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,r),i);else if(o(e))n(e,i,r);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){s(a)}))}}:function(e,t,i,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,i);var s="application/octet-stream"===e.type,l=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},d.readAsDataURL(e)}else{var u=r.URL||r.webkitURL,h=u.createObjectURL(e);o?o.location=h:location.href=h,o=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});r.saveAs=l.saveAs=l,e.exports=l}))},83699:e=>{"use strict";var t=String.prototype.replace,i=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},50963:(e,t,i)=>{"use strict";var n=i(78519),o=i(92597),s=i(83699);e.exports={formats:s,parse:o,stringify:n}},92597:(e,t,i)=>{"use strict";var n=i(67284),o=Object.prototype.hasOwnProperty,s=Array.isArray,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",u=function(e,t){var i,u={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,g=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,g),f=-1,m=t.charset;if(t.charsetSentinel)for(i=0;i-1&&(_=s(_)?[_]:_),o.call(u,v)?u[v]=n.combine(u[v],_):u[v]=_}return u},h=function(e,t,i,n){for(var o=n?t:l(t,i),s=e.length-1;s>=0;--s){var r,a=e[s];if("[]"===a&&i.parseArrays)r=[].concat(o);else{r=i.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,d=parseInt(c,10);i.parseArrays||""!==c?!isNaN(d)&&a!==c&&String(d)===c&&d>=0&&i.parseArrays&&d<=i.arrayLimit?(r=[],r[d]=o):"__proto__"!==c&&(r[c]=o):r={0:o}}o=r}return o},g=function(e,t,i,n){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&r.exec(s),c=l?s.slice(0,l.index):s,d=[];if(c){if(!i.plainObjects&&o.call(Object.prototype,c)&&!i.allowPrototypes)return;d.push(c)}var u=0;while(i.depth>0&&null!==(l=a.exec(s))&&u{"use strict";var n=i(67284),o=i(83699),s=Object.prototype.hasOwnProperty,r={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,l=String.prototype.split,c=Array.prototype.push,d=function(e,t){c.apply(e,a(t)?t:[t])},u=Date.prototype.toISOString,h=o["default"],g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},f=function e(t,i,o,s,r,c,u,h,f,m,v,_,b,y){var w=t;if("function"===typeof u?w=u(i,w):w instanceof Date?w=m(w):"comma"===o&&a(w)&&(w=n.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(s)return c&&!b?c(i,g.encoder,y,"key",v):i;w=""}if(p(w)||n.isBuffer(w)){if(c){var C=b?i:c(i,g.encoder,y,"key",v);if("comma"===o&&b){for(var S=l.call(String(w),","),x="",k=0;k0?w.join(",")||null:void 0}];else if(a(u))L=u;else{var N=Object.keys(w);L=h?N.sort(h):N}for(var D=0;D0?v+p:""}},67284:(e,t,i)=>{"use strict";var n=i(83699),o=Object.prototype.hasOwnProperty,s=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),i=t.obj[t.prop];if(s(i)){for(var n=[],o=0;o=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||s===n.RFC1738&&(40===d||41===d)?l+=a.charAt(c):d<128?l+=r[d]:d<2048?l+=r[192|d>>6]+r[128|63&d]:d<55296||d>=57344?l+=r[224|d>>12]+r[128|d>>6&63]+r[128|63&d]:(c+=1,d=65536+((1023&d)<<10|1023&a.charCodeAt(c)),l+=r[240|d>>18]+r[128|d>>12&63]+r[128|d>>6&63]+r[128|63&d])}return l},g=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"===typeof e?h+=":"+e:"symbol"===typeof e&&(h=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=i||u,d.getLevel=function(){return null!=l?l:null!=a?a:r},d.setLevel=function(e,t){return l=m(e),!1!==t&&g(l),c.call(d)},d.setDefaultLevel=function(e){a=m(e),p()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,f(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(s!==d&&(r=m(s.getLevel())),c.call(d),s===d)for(var e in o)o[e].rebuild()},r=m(s?s.getLevel():"WARN");var v=p();null!=v&&(l=m(v)),c.call(d)}s=new h,s.getLogger=function(e){if("symbol"!==typeof e&&"string"!==typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new h(e,s.methodFactory)),t};var g=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=g),s},s.getLoggers=function(){return o},s["default"]=s,s}))},30630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>yc,Emitter:()=>wc,KeyCode:()=>Cc,KeyMod:()=>Sc,MarkerSeverity:()=>Nc,MarkerTag:()=>Dc,Position:()=>xc,Range:()=>kc,Selection:()=>Lc,SelectionDirection:()=>Ec,Token:()=>Ic,Uri:()=>Tc,default:()=>Pc,editor:()=>Rc,languages:()=>Ac});var n={};i.r(n),i.d(n,{CancellationTokenSource:()=>yc,Emitter:()=>wc,KeyCode:()=>Cc,KeyMod:()=>Sc,MarkerSeverity:()=>Nc,MarkerTag:()=>Dc,Position:()=>xc,Range:()=>kc,Selection:()=>Lc,SelectionDirection:()=>Ec,Token:()=>Ic,Uri:()=>Tc,editor:()=>Rc,languages:()=>Ac});i(56869),i(99444),i(36485),i(26216),i(82327),i(57383),i(78241),i(81580),i(55808),i(91542),i(34306),i(93123),i(93405),i(8714),i(91715),i(74303),i(61539),i(78166),i(74314),i(79196),i(88969),i(86858),i(64457),i(27234),i(54869),i(74475),i(20713),i(74187),i(61423),i(63156),i(92954),i(73632),i(36108),i(66623),i(44737),i(89806),i(41287),i(78786),i(69225),i(76602),i(86898),i(52394),i(48802),i(95234),i(33082),i(85774),i(67131),i(13512),i(92189),i(83124),i(57283),i(83282),i(58151),i(73276),i(63338),i(46072),i(95673),i(54775),i(7614),i(90452),i(41902),i(75604),i(61150),i(99035);var o=i(93215),s=i(93121),r=i(36606),a=i(70959),l=i(61720),c=i(95896),d=i(64336),u=i(48077),h=i(35195),g=i(2179),p=i(86674);function f(e,t,i){return new m(e,t,i)}class m extends p.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,g.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var v=i(99868),_=i(8544),b=i(22668),y=i(32515),w=i(61141),C=i(97297),S=i(32484),x=i(89492),k=i(79857),L=i(74016),E=i(83646),N=i(82168),D=i(81083),T=i(93489),I=i(70748);function R(e){return Array.isArray(e)}function A(e){return!R(e)}function O(e){return"string"===typeof e}function P(e){return!O(e)}function M(e){return!e}function F(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function B(e){return e.replace(/[&<>'"_]/g,"-")}function H(e,t){console.log(`${e.languageId}: ${t}`)}function W(e,t){return new Error(`${e.languageId}: ${t}`)}function V(e,t,i,n,o){const s=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return t.replace(s,(function(t,s,a,l,c,d,u,h,g){return M(a)?M(l)?!M(c)&&c0){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}function z(e,t){let i=t;while(i&&i.length>0){const t=e.stateNames[i];if(t)return!0;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return!1}var U,$=i(47596),q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}};const G=5;class Z{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Q(e,t);let i=Q.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new Q(e,t),this._entries[i]=n,n)}}Z._INSTANCE=new Z(G);class Q{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Q._equals(this,e)}push(e){return Z.create(this,e)}pop(){return this.parent}popall(){let e=this;while(e.parent)e=e.parent;return e}switchTo(e){return Z.create(this.parent,e)}}class Y{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){const e=this.state.clone();return e===this.state?this:new Y(this.languageId,this.state)}}class J{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new X(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new X(e,t);const i=Q.getStackElementId(e);let n=this._entries[i];return n||(n=new X(e,null),this._entries[i]=n,n)}}J._INSTANCE=new J(G);class X{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){const e=this.embeddedLanguageData?this.embeddedLanguageData.clone():null;return e===this.embeddedLanguageData?this:J.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof X&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class ee{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new y.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,s=i.state,r=y.RW.get(o);if(!r)return this.enterLanguage(o),this.emit(n,""),s;const a=r.tokenize(e,t,s);if(0!==n)for(const l of a.tokens)this._tokens.push(new y.WU(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new y.hG(this._tokens,e)}}class te{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;const r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let a=0;a{if(s)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=y.RW.get(t);if(i){if(i instanceof U){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else y.RW.isResolved(t)||e.push(y.RW.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=Z.create(null,this._lexer.start);return J.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Ri)(this._languageId,i);const n=new ee,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new te(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=j(this._lexer,t.stack.state),!i))throw W(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const s of i){if(!P(s.action)||"@pop"!==s.action.nextEmbedded)continue;o=!0;let t=s.regex;const i=s.regex.source;if("^(?:"===i.substr(0,4)&&")"===i.substr(i.length-1,1)){const e=(t.ignoreCase?"i":"")+(t.unicode?"u":"");t=new RegExp(i.substr(4,i.length-5),e)}const r=e.search(t);-1===r||0!==r&&s.matchOnlyAtLineStart||(-1===n||r0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(s);return this._myTokenize(a,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,c=i.stack,d=0,u=null,h=!0;while(h||d=a)break;h=!1;let e=this._lexer.tokenizer[f];if(!e&&(e=j(this._lexer,f),!e))throw W(this._lexer,"tokenizer state is not defined: "+f);const t=r.substr(d);for(const i of e)if((0===d||!i.matchOnlyAtLineStart)&&(m=t.match(i.regex),m)){v=m[0],_=i.action;break}}if(m||(m=[""],v=""),_||(d=this._lexer.maxStack)throw W(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(f)}else if("@pop"===_.next){if(c.depth<=1)throw W(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));c=c.pop()}else if("@popall"===_.next)c=c.popall();else{let e=V(this._lexer,_.next,v,m,f);if("@"===e[0]&&(e=e.substr(1)),!j(this._lexer,e))throw W(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));c=c.push(e)}}_.log&&"string"===typeof _.log&&H(this._lexer,this._lexer.languageId+": "+V(this._lexer,_.log,v,m,f))}if(null===w)throw W(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const C=i=>{const s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(d0)throw W(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(m.length!==w.length+1)throw W(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;te});class se{static colorizeElement(e,t,i,n){n=n||{};const o=n.theme||"vs",s=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!s)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(s)||s;e.setTheme(o);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const l=e=>{var t;const n=null!==(t=null===oe||void 0===oe?void 0:oe.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n};return this.colorize(t,a||"",r,n).then(l,(e=>console.error(e)))}static async colorize(e,t,i,n){const o=e.languageIdCodec;let s=4;n&&"number"===typeof n.tabSize&&(s=n.tabSize),l.uS(t)&&(t=t.substr(1));const r=l.uq(t);if(!e.isRegisteredLanguageId(i))return ae(r,s,o);const a=await y.RW.getOrCreate(i);return a?re(r,s,a,o):ae(r,s,o)}static colorizeLine(e,t,i,n,o=4){const s=I.wA.isBasicASCII(e,t),r=I.wA.containsRTL(e,s,i),a=(0,T.tF)(new T.IJ(!1,!0,e,!1,s,r,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t),s=o.inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function re(e,t,i,n){return new Promise(((o,s)=>{const r=()=>{const a=le(e,t,i,n);if(i instanceof ie){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,s)}o(a)};r()}))}function ae(e,t,i){let n=[];const o=33587200,s=new Uint32Array(2);s[0]=0,s[1]=o;for(let r=0,a=e.length;r")}return n.join("")}function le(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}var ce=i(69332),de=i(97060),ue=i(51177),he=i(2548),ge=i(50200),pe=i(11271),fe=i(33010),me=i(32656),ve=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_e=function(e,t){return function(i,n){t(i,n,e)}};let be=class extends a.JT{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new pe.Q5),this._onCodeEditorAdd=this._register(new pe.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new pe.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new pe.Q5),this._onDiffEditorAdd=this._register(new pe.Q5),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new pe.Q5),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new fe.S,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){const e=this._modelProperties.get(i);return e.get(t)}}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const o=await n(e,t,i);if(null!==o)return o}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,a.OF)(t)}};be=ve([_e(0,me.XE)],be);var ye=i(37174),we=i(39326),Ce=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Se=function(e,t){return function(i,n){t(i,n,e)}};let xe=class extends be{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){const i=this.findModel(e,t.resource);if(!i){if(t.resource){const i=t.resource.scheme;if(i===ge.lg.http||i===ge.lg.https)return(0,he.V3)(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if("number"===typeof n.endLineNumber&&"number"===typeof n.endColumn)e.setSelection(n),e.revealRangeInCenter(n,1);else{const t={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};xe=Ce([Se(0,ye.i6),Se(1,me.XE)],xe),(0,we.z)(h.$,xe,0);var ke=i(21921),Le=i(21881);const Ee=(0,Le.yh)("layoutService");var Ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},De=function(e,t){return function(i,n){t(i,n,e)}};let Te=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,ke.Xh)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:r.Ex.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null===i||void 0===i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return he.D6(this.mainContainer)}get activeContainerDimension(){return he.D6(this.activeContainer)}get containers(){return(0,ke.kX)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=pe.ju.None,this.onDidLayoutActiveContainer=pe.ju.None,this.onDidLayoutContainer=pe.ju.None,this.onDidChangeActiveContainer=pe.ju.None,this.onDidAddContainer=pe.ju.None,this.whenActiveContainerStylesLoaded=Promise.resolve(),this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Te=Ne([De(0,h.$)],Te);let Ie=class extends Te{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};Ie=Ne([De(1,h.$)],Ie),(0,we.z)(Ee,Te,1);var Re=i(98642),Ae=i(72235),Oe=i(25206),Pe=i(8283),Me=i(18736),Fe=i(70813),Be=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},He=function(e,t){return function(i,n){t(i,n,e)}};const We=!1;function Ve(e){return e.scheme===ge.lg.file?e.fsPath:e.path}let je=0;class ze{constructor(e,t,i,n,o,s,r){this.id=++je,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ue{constructor(e,t){this.resourceLabel=e,this.reason=t}}class $e{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){const i=0===n.reason?e:t;i.push(n.resourceLabel)}const i=[];return e.length>0&&i.push(Oe.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(Oe.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class qe{constructor(e,t,i,n,o,s,r){this.id=++je,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new $e),this.removedResources.has(t)||this.removedResources.set(t,new Ue(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new $e),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Ue(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ke{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new Fe.YO(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let r=0,a=this._past.length;r=t||s.id!==e.elements[n])&&(i=!1,o=0),i||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let r=this._future.length-1;r>=0;r--,n++){const o=this._future[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=r),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Ge{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=s,i=n))}return[t,i]}canUndo(e){if(e instanceof Fe.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.hasPastElements()}return!1}_onError(e,t){(0,Re.dL)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const s=this._acquireLocks(i);let r;try{r=t()}catch(a){return s(),n.dispose(),this._onError(a,e)}return r?r.then((()=>(s(),n.dispose(),o())),(t=>(s(),n.dispose(),this._onError(t,e)))):(s(),n.dispose(),o())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return a.JT.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?a.JT.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(a.JT.None);const i=e.actual.prepareUndoRedo();return i?(0,a.Wf)(i)?t(i):i.then((e=>t(e))):t(a.JT.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||Ze);return new Ge(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ye(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new Ye}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,Oe.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,Oe.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const r of i.editStacks)r.getClosestPastElement()!==t&&o.push(r.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,Oe.NC({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const r of i.editStacks)r.locked&&s.push(r.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,Oe.NC({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,Oe.NC({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let o;(function(e){e[e["All"]=0]="All",e[e["This"]=1]="This",e[e["Cancel"]=2]="Cancel"})(o||(o={}));const{result:s}=await this._dialogService.prompt({type:Ae.Z.Info,message:Oe.NC("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:Oe.NC({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>o.All},{label:Oe.NC({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>o.This}],cancelButton:{run:()=>o.Cancel}});if(s===o.Cancel)return;if(s===o.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let o;try{o=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return o.dispose(),s.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,o,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Ge([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=Oe.NC({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestPastElement();s&&(s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=n))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Fe.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(!o)return;if(o.groupId){const[e,n]=this._findClosestUndoElementInGroup(o.groupId);if(o!==e&&n)return this._undo(n,t,i)}const s=o.sourceId!==t||o.confirmBeforeUndo;if(s&&!i)return this._confirmAndContinueUndo(e,t,o);try{return 1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{We&&this._print("undo")}}async _confirmAndContinueUndo(e,t,i){const n=await this._dialogService.confirm({message:Oe.NC("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:Oe.NC({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:Oe.NC("confirmDifferentSource.no","No")});if(n.confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&(s.sourceId===e&&(!t||s.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,Oe.NC({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const r of i.editStacks)r.locked&&s.push(r.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,Oe.NC({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,Oe.NC({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(s){return this._onError(s,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Ge([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=Oe.NC({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&(s.groupId===e&&(!t||s.groupOrder=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},it=function(e,t){return function(i,n){t(i,n,e)}};let nt=class extends a.JT{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new Xe.$(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};nt=tt([it(0,me.XE),it(1,Je.VZ),it(2,w.O)],nt),(0,we.z)(et.s,nt,1);var ot=i(10128);function st(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(st):!!e.exclusive)}class rt{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class at{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new pe.Q5,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,a.OF)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),o=n?new rt(e.uri,e.getLanguageId(),n.uri,n.type):new rt(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(o))){this._lastCandidate=o;for(const t of this._entries)if(t._score=(0,ot.G)(t.selector,o.uri,o.languageId,(0,k.pt)(e),o.notebookUri,o.notebookType),st(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(at._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:lt(e.selector)&&!lt(t.selector)?1:!lt(e.selector)&<(t.selector)?-1:e._timet._time?-1:0}}function lt(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(lt):Boolean(e.isBuiltin))}var ct=i(16458);class dt{constructor(){this.referenceProvider=new at(this._score.bind(this)),this.renameProvider=new at(this._score.bind(this)),this.newSymbolNamesProvider=new at(this._score.bind(this)),this.codeActionProvider=new at(this._score.bind(this)),this.definitionProvider=new at(this._score.bind(this)),this.typeDefinitionProvider=new at(this._score.bind(this)),this.declarationProvider=new at(this._score.bind(this)),this.implementationProvider=new at(this._score.bind(this)),this.documentSymbolProvider=new at(this._score.bind(this)),this.inlayHintsProvider=new at(this._score.bind(this)),this.colorProvider=new at(this._score.bind(this)),this.codeLensProvider=new at(this._score.bind(this)),this.documentFormattingEditProvider=new at(this._score.bind(this)),this.documentRangeFormattingEditProvider=new at(this._score.bind(this)),this.onTypeFormattingEditProvider=new at(this._score.bind(this)),this.signatureHelpProvider=new at(this._score.bind(this)),this.hoverProvider=new at(this._score.bind(this)),this.documentHighlightProvider=new at(this._score.bind(this)),this.multiDocumentHighlightProvider=new at(this._score.bind(this)),this.selectionRangeProvider=new at(this._score.bind(this)),this.foldingRangeProvider=new at(this._score.bind(this)),this.linkProvider=new at(this._score.bind(this)),this.inlineCompletionsProvider=new at(this._score.bind(this)),this.inlineEditProvider=new at(this._score.bind(this)),this.completionProvider=new at(this._score.bind(this)),this.linkedEditingRangeProvider=new at(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new at(this._score.bind(this)),this.documentSemanticTokensProvider=new at(this._score.bind(this)),this.documentOnDropEditProvider=new at(this._score.bind(this)),this.documentPasteEditProvider=new at(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}}(0,we.z)(ct.p,dt,1);var ut=i(47277),ht=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},gt=function(e,t){return function(i,n){t(i,n,e)}};const pt=(0,Le.yh)("hoverService");let ft=class extends a.JT{get delay(){return this.instantHover&&Date.now()-this.lastHoverHideTime{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=e.target instanceof HTMLElement?[e.target]:e.target.targetElements;for(const o of n)this.hoverDisposables.add((0,he.mu)(o,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));return this.hoverService.showHover({...e,persistence:{hideOnHover:!0},...i},t)}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};ft=ht([gt(3,$.Ui),gt(4,pt)],ft);var mt=i(93753),vt=i(15285),_t=i(90422),bt=i(9194),yt=i(6544),wt=i(88557),Ct=i(81478),St=i(47606),xt=i(55907),kt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Lt=function(e,t){return function(i,n){t(i,n,e)}};const Et=he.$;let Nt=class extends bt.${get _targetWindow(){return he.Jj(this._target.targetElements[0])}get _targetDocumentElement(){return he.Jj(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,s,r){var l,c,d,u,h,g,p,f;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=s,this._accessibilityService=r,this._messageListeners=new a.SL,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new pe.Q5),this._onRequestLayout=this._register(new pe.Q5),this._linkHandler=e.linkHandler||(t=>(0,wt.N)(this._openerService,t,(0,Ct.Fr)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new Tt(e.target),this._hoverPointer=(null===(l=e.appearance)||void 0===l?void 0:l.showPointer)?Et("div.workbench-hover-pointer"):void 0,this._hover=this._register(new _t.c8),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(c=e.appearance)||void 0===c?void 0:c.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(d=e.appearance)||void 0===d?void 0:d.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(u=e.position)||void 0===u?void 0:u.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(g=null===(h=e.position)||void 0===h?void 0:h.hoverPosition)&&void 0!==g?g:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(he.nm(this._targetWindow,"blur",(()=>this.dispose())));const m=Et("div.hover-row.markdown-hover"),v=Et("div.hover-contents");if("string"===typeof e.content)v.textContent=e.content,v.style.whiteSpace="pre-wrap";else if(e.content instanceof HTMLElement)v.appendChild(e.content),v.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(wt.$,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||o.hL.fontFamily}),{element:n}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{v.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});v.appendChild(n)}if(m.appendChild(v),this._hover.contentsDomNode.appendChild(m),e.actions&&e.actions.length>0){const t=Et("div.hover-row.status-bar"),i=Et("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;_t.Sr.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let _;if(this._hoverContainer=Et("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),_=!(e.actions&&e.actions.length>0)&&(void 0===(null===(p=e.persistence)||void 0===p?void 0:p.hideOnHover)?"string"===typeof e.content||(0,Ct.Fr)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes(""):e.persistence.hideOnHover),_&&(null===(f=e.appearance)||void 0===f?void 0:f.showHoverHint)){const e=Et("div.hover-row.status-bar"),t=Et("div.info");t.textContent=(0,Oe.NC)("hoverhint","Hold {0} key to mouse over",St.dz?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const b=[...this._target.targetElements];_||b.push(this._hoverContainer);const y=this._register(new Dt(b));if(this._register(y.onMouseOut((()=>{this._isLocked||this.dispose()}))),_){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new Dt(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=y}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=he.Ce(this._hoverContainer,Et("div")),n=he.R3(this._hoverContainer,Et("div"));i.tabIndex=0,n.tabIndex=0,this._register(he.nm(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(he.nm(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement),n=i&&(0,_t.uX)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());n&&(0,ce.i7)(n),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=e=>{const t=he.I8(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}},t=this._target.targetElements.map((t=>e(t))),i=Math.min(...t.map((e=>e.top))),n=Math.max(...t.map((e=>e.right))),o=Math.max(...t.map((e=>e.bottom))),s=Math.min(...t.map((e=>e.left))),r=n-s,a=o-i,l={top:i,right:n,bottom:o,left:s,width:r,height:a,center:{x:s+r/2,y:i+a/2}};if(this.adjustHorizontalHoverPosition(l),this.adjustVerticalHoverPosition(l),this.adjustHoverMaxHeight(l),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:l.left+=3,l.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:l.left-=3,l.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:l.top+=3,l.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:l.top-=3,l.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px";break}l.center.x=l.left+r/2,l.center.y=l.top+a/2}this.computeXCordinate(l),this.computeYCordinate(l),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(l)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0===this._target.x)if(this._forcePosition){const t=2+(this._hoverPointer?3:0);1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-t+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-t+"px")}else if(1===this._hoverPosition){const t=this._targetDocumentElement.clientWidth-e.right;if(t=this._hover.containerDomNode.clientWidth?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){const t=e.left;if(t=this._hover.containerDomNode.clientWidth?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){void 0!==this._target.y||this._forcePosition||(3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight>this._targetWindow.innerHeight&&(this._hoverPosition=3))}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeighte.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(ne.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Nt=kt([Lt(1,vt.d),Lt(2,$.Ui),Lt(3,yt.v),Lt(4,Le.TG),Lt(5,xt.F)],Nt);class Dt extends bt.${get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new pe.Q5),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=he.Jj(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(he.Jj(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class Tt{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var It=i(45429),Rt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},At=function(e,t){return function(i,n){t(i,n,e)}};let Ot=class{constructor(e,t,i,n,o,s){this._instantiationService=e,this._contextViewService=t,this._keybindingService=n,this._layoutService=o,this._accessibilityService=s,i.onDidShowContextMenu((()=>this.hideHover()))}showHover(e,t,i){var n,o,s,l;if(Pt(this._currentHoverOptions)===Pt(e))return;if(this._currentHover&&(null===(o=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===o?void 0:o.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const c=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),d=(0,he.vY)();i||(this._lastFocusedElementBeforeOpen=c&&d?d:void 0);const u=new a.SL,h=this._instantiationService.createInstance(Nt,e);if((null===(s=e.persistence)||void 0===s?void 0:s.sticky)&&(h.isLocked=!0),h.onDispose((()=>{var t,i;const n=(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&(0,he.b5)(this._currentHover.domNode);n&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),u.dispose()})),!e.container){const t=e.target instanceof HTMLElement?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,he.Jj)(t))}const g=this._contextViewService;if(g.showContextView(new Mt(h,t),e.container),h.onRequestLayout((()=>g.layout())),null===(l=e.persistence)||void 0===l?void 0:l.sticky)u.add((0,he.nm)((0,he.Jj)(e.container).document,he.tw.MOUSE_DOWN,(e=>{(0,he.jg)(e.target,h.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)u.add((0,he.nm)(i,he.tw.CLICK,(()=>this.hideHover())));else u.add((0,he.nm)(e.target,he.tw.CLICK,(()=>this.hideHover())));const t=(0,he.vY)();if(t){const i=(0,he.Jj)(t).document;u.add((0,he.nm)(t,he.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,h,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),u.add((0,he.nm)(i,he.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,h,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),u.add((0,he.nm)(t,he.tw.KEY_UP,(e=>this._keyUp(e,h)))),u.add((0,he.nm)(i,he.tw.KEY_UP,(e=>this._keyUp(e,h))))}}if("IntersectionObserver"in r.Ex){const t=new IntersectionObserver((e=>this._intersectionChange(e,h)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),u.add((0,a.OF)((()=>t.disconnect())))}return this._currentHover=h,h}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewService.hideContextView()}_intersectionChange(e,t){const i=e[e.length-1];i.isIntersecting||t.dispose()}_keyDown(e,t,i){var n,o;if("Alt"===e.key)return void(t.isLocked=!0);const s=new It.y(e),r=this._keybindingService.resolveKeyboardEvent(s);r.getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(o=this._lastFocusedElementBeforeOpen)||void 0===o||o.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}};function Pt(e){var t;if(void 0!==e)return null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:e}Ot=Rt([At(0,Le.TG),At(1,mt.u),At(2,mt.i),At(3,vt.d),At(4,Ee),At(5,xt.F)],Ot);class Mt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}(0,we.z)(pt,Ot,1),(0,me.Ic)(((e,t)=>{const i=e.getColor(ut.CNo);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var Ft=i(19321),Bt=i(22047),Ht=i(83064),Wt=i(90970),Vt=i(89999),jt=i(33162),zt=i(15498),Ut=i(75898),$t=i(46871),qt=i(71400),Kt=i(55455),Gt=i(46853),Zt=i(39672);function Qt(e){return Object.isFrozen(e)?e:g._A(e)}class Yt{constructor(e={},t=[],i=[],n){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof Yt)return e;const t=new Jt("");return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,$.Mt)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Qt(i.rawConfiguration.getValue(e))},get override(){return t?Qt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Qt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:o,keys:s}of i.rawConfiguration.overrides){const i=new Yt(n,s).getValue(e);void 0!==i&&t.push({identifiers:o,value:i})}return t.length?Qt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,$.Mt)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=g.I8(this.contents),o=g.I8(this.overrides),s=[...this.keys],r=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const a of e)if(r.push(...(null===(i=a.raw)||void 0===i?void 0:i.length)?a.raw:[a]),!a.isEmpty()){this.mergeContents(n,a.contents);for(const e of a.overrides){const[t]=o.filter((t=>ke.fS(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=ke.EB(t.keys)):o.push(g.I8(e))}for(const e of a.keys)-1===s.indexOf(e)&&s.push(e)}return new Yt(n,s,o,r.every((e=>e instanceof Yt))?void 0:r)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const n of ke.EB([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[n];const o=t[n];o&&("object"===typeof e&&"object"===typeof o?(e=g.I8(e),this.mergeContents(e,o)):e=o),i[n]=e}return new Yt(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&Kt.Kn(e[i])&&Kt.Kn(t[i])?this.mergeContents(e[i],t[i]):e[i]=g.I8(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=g.I8(e))};for(const o of this.overrides)1===o.identifiers.length&&o.identifiers[0]===e?t=o.contents:o.identifiers.includes(e)&&n(o.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,$.xL)(this.contents,e),Gt.eU.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>ke.fS(t.identifiers,(0,Gt.ny)(e)))),1))}updateValue(e,t,i){(0,$.KV)(this.contents,e,t,(e=>console.error(e))),i=i||-1===this.keys.indexOf(e),i&&this.keys.push(e),Gt.eU.test(e)&&this.overrides.push({identifiers:(0,Gt.ny)(e),keys:Object.keys(this.contents[e]),contents:(0,$.Od)(this.contents[e],(e=>console.error(e)))})}}class Jt{constructor(e){this._name=e,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new Yt}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:o,restricted:s,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new Yt(i,n,o,r?[e]:void 0),this._restrictedConfigurations=s||[]}doParseRaw(e,t){const i=Zt.B.as(Gt.IP.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);e=n.raw;const o=(0,$.Od)(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),s=Object.keys(e),r=this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`)));return{contents:o,keys:s,overrides:r,restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var o,s,r;let a=!1;if(!(null===n||void 0===n?void 0:n.scopes)&&!(null===n||void 0===n?void 0:n.skipRestricted)&&!(null===(o=null===n||void 0===n?void 0:n.exclude)||void 0===o?void 0:o.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},c=[];for(const d in e)if(Gt.eU.test(d)&&i){const i=this.filter(e[d],t,!1,n);l[d]=i.raw,a=a||i.hasExcludedProperties,c.push(...i.restricted)}else{const i=t[d],o=i?"undefined"!==typeof i.scope?i.scope:3:void 0;(null===i||void 0===i?void 0:i.restricted)&&c.push(d),(null===(s=n.exclude)||void 0===s?void 0:s.includes(d))||!(null===(r=n.include)||void 0===r?void 0:r.includes(d))&&(void 0!==o&&void 0!==n.scopes&&!n.scopes.includes(o)||n.skipRestricted&&(null===i||void 0===i?void 0:i.restricted))?a=!0:l[d]=e[d]}return{raw:l,restricted:c,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if(Gt.eU.test(n)){const o={};for(const t in e[n])o[t]=e[n][t];i.push({identifiers:(0,Gt.ny)(n),keys:Object.keys(o),contents:(0,$.Od)(o,t)})}return i}}class Xt{constructor(e,t,i,n,o,s,r,a,l,c,d,u,h){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=o,this.policyConfiguration=s,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=c,this.workspaceConfiguration=d,this.folderConfigurationModel=u,this.memoryConfigurationModel=h}toInspectValue(e){return void 0!==(null===e||void 0===e?void 0:e.value)||void 0!==(null===e||void 0===e?void 0:e.override)||void 0!==(null===e||void 0===e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class ei{constructor(e,t,i,n,o=new Yt,s=new Yt,r=new qt.Y9,a=new Yt,l=new qt.Y9){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=o,this._workspaceConfiguration=s,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new qt.Y9,this._userConfiguration=null}getValue(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i);return n.getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new Yt,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),s=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&r.add(t);return new Xt(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,o||void 0,s)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),o=this.parseConfigurationModel(e.user),s=this.parseConfigurationModel(e.workspace),r=e.folders.reduce(((e,t)=>(e.set(c.o.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new qt.Y9);return new ei(t,i,n,o,new Yt,s,r,new Yt,new qt.Y9)}static parseConfigurationModel(e){return new Yt(e.contents,e.keys,e.overrides)}}class ti{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const o of e.keys)this.affectedKeys.add(o);for(const[,o]of e.overrides)for(const e of o)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const o of this.affectedKeys)this._affectsConfigStr+=o+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ei.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,o=this._affectsConfigStr.indexOf(n);if(o<0)return!1;const s=o+n.length;if(s>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(s);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!g.fS(n,o)}return!0}}var ii=i(85398),ni=i(73218);const oi={kind:0},si={kind:1};function ri(e,t,i){return{kind:2,commandId:e,commandArgs:t,isBubble:i}}class ai{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const o of e){const e=o.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=ai.handleRemovals([].concat(e).concat(t));for(let o=0,s=this._keybindings.length;o=0;n--){const e=i[n];if(e.command===t.command)continue;let o=!0;for(let i=1;i=0;n--){const e=i[n];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const o=this._map.get(n[0]);if(void 0===o)return this._log("\\ No keybinding entries."),oi;let s=null;if(n.length<2)s=o;else{s=[];for(let e=0,t=o.length;et.chords.length)continue;let i=!0;for(let e=1;e=0;i--){const n=t[i];if(ai._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function li(e){return e?`${e.serialize()}`:"no when condition"}function ci(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const di=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class ui extends a.JT{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:pe.ju.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new pe.Q5),this._currentChords=[],this._currentChordChecker=new ii.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new ii._F,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),oi;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),oi;const o=this._contextKeyService.getContext(t),s=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(o,s,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,Re.L6)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(Oe.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(Oe.NC("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),ni.F.enabled&&ni.F.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],ni.F.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=hi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getChords();return this._ignoreSingleModifiers=new hi(o),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let o=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let s=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();s=t,r=t?[t]:[]}else[s]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===s)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),o;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(Oe.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}return o;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),o=!0,this._expectAnotherChord(s,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),o;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(Oe.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(o=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{"undefined"===typeof c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}di.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return o}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class hi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}hi.EMPTY=new hi(null);var gi=i(37395);class pi{constructor(e,t,i,n,o,s,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?fi(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=fi(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=s,this.isBuiltinExtension=r}}function fi(e){const t=[];for(let i=0,n=e.length;ithis._getLabel(e)))}getAriaLabel(){return vi.X4.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:vi.jC.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return vi.r6.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new Ft.aZ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class bi extends _i{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return mi.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":mi.kL.toString(e.keyCode)}_getElectronAccelerator(e){return mi.kL.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=mi.kL.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return bi.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=mi.kL.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=mi.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Ft.$M)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Ft.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=fi(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new bi(i,t)]:[]}}var yi,wi=i(51549),Ci=i(34679),Si=i(38857),xi=i(15086),ki=i(85080),Li=i(21230),Ei=i(8625),Ni=i(53915),Di=i(68801);function Ti(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}function Ii(e,t,i){const n=i.mode===yi.ALIGN?i.offset:i.offset+i.size,o=i.mode===yi.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}(function(e){e[e["AVOID"]=0]="AVOID",e[e["ALIGN"]=1]="ALIGN"})(yi||(yi={}));class Ri extends a.JT{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=a.JT.None,this.toDisposeOnSetContainer=a.JT.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=he.$(".context-view"),he.Cp(this.view),this.setContainer(e,t),this._register((0,a.OF)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=he.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=Ai,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(he.$("slot"))}else this.container.appendChild(this.view);const t=new a.SL;Ri.BUBBLE_UP_EVENTS.forEach((e=>{t.add(he.mu(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Ri.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(he.mu(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i;this.isVisible()&&this.hide(),he.PO(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",he.$Z(this.view),this.toDisposeOnClean=e.render(this.view)||a.JT.None,this.delegate=e,this.doLayout(),null===(i=(t=this.delegate).focus)||void 0===i||i.call(t)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||St.gn&&Ni.D.pointerEvents?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(e instanceof HTMLElement){const i=he.i(e),n=he.I8(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=Ti(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=he.w(this.view),n=he.wn(this.view),o=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const c=he.WN();if(0===r){const e={offset:t.top-c.pageYOffset,size:t.height,position:0===o?0:1},r={offset:t.left,size:t.width,position:0===s?0:1,mode:yi.ALIGN};a=Ii(c.innerHeight,n,e)+c.pageYOffset,Di.e.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=yi.AVOID),l=Ii(c.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===s?0:1},r={offset:t.top,size:t.height,position:0===o?0:1,mode:yi.ALIGN};l=Ii(c.innerWidth,i,e),Di.e.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=yi.AVOID),a=Ii(c.innerHeight,n,r)+c.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===s?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=he.i(this.container);this.view.style.top=a-(this.useFixedPosition?he.i(this.view).top:d.top)+"px",this.view.style.left=l-(this.useFixedPosition?he.i(this.view).left:d.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),he.Cp(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,he.Jj(e).document.activeElement):t&&!he.jg(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Ri.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Ri.BUBBLE_DOWN_EVENTS=["click"];const Ai='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Oi=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Pi=function(e,t){return function(i,n){t(i,n,e)}};let Mi=class extends a.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=a.JT.None,this.contextView=this._register(new Ri(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,he.Jj)(t))?1:i?3:2:1,this.contextView.setContainer(null!==t&&void 0!==t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const o=(0,a.OF)((()=>{this.currentViewDisposable===o&&this.hideContextView()}));return this.currentViewDisposable=o,o}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}dispose(){super.dispose(),this.currentViewDisposable.dispose(),this.currentViewDisposable=a.JT.None}};Mi=Oi([Pi(0,Ee)],Mi);var Fi=i(48079),Bi=i(96358),Hi=i(19912);let Wi=[],Vi=[],ji=[];function zi(e,t=!1){Ui(e,!1,t)}function Ui(e,t,i){const n=$i(e,t);Wi.push(n),n.userConfigured?ji.push(n):Vi.push(n),i&&!n.userConfigured&&Wi.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}function $i(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,Fi.Qc)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Hi.KR.sep)>=0}}function qi(){Wi=Wi.filter((e=>e.userConfigured)),Vi=[]}function Ki(e,t){return Gi(e,t).map((e=>e.id))}function Gi(e,t){let i;if(e)switch(e.scheme){case ge.lg.file:i=e.fsPath;break;case ge.lg.data:{const t=Li.Vb.parseMetaData(e);i=t.get(Li.Vb.META_DATA_LABEL);break}case ge.lg.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:Bi.v.unknown}];i=i.toLowerCase();const n=(0,Hi.EZ)(i),o=Zi(i,n,ji);if(o)return[o,{id:S.bd,mime:Bi.v.text}];const s=Zi(i,n,Vi);if(s)return[s,{id:S.bd,mime:Bi.v.text}];if(t){const e=Qi(t);if(e)return[e,{id:S.bd,mime:Bi.v.text}]}return[{id:"unknown",mime:Bi.v.unknown}]}function Zi(e,t,i){var n;let o,s,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o||(s||(r||void 0))}function Qi(e){if((0,l.uS)(e)&&(e=e.substr(1)),e.length>0)for(let t=Wi.length-1;t>=0;t--){const i=Wi[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}}const Yi=Object.prototype.hasOwnProperty,Ji="vs.editor.nullLanguage";class Xi{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Ji,0),this._register(S.bd,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Ji}}class en extends a.JT{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new pe.Q5),this.onDidChange=this._onDidChange.event,en.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Xi,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(S.dQ.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){en.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},qi();const e=[].concat(S.dQ.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),Zt.B.as(Gt.IP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Yi.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)zi({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)zi({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)zi({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,l.IO)(t)||zi({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(r){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,r)}}e.aliases.push(i);let o=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const a of o)a&&0!==a.length&&e.aliases.push(a);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||i;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&Yi.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Yi.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Yi.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?Ki(e,t):[]}}en.instanceCount=0;class tn extends a.JT{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new pe.Q5),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new pe.Q5),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new pe.Q5({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,tn.instanceCount++,this._registry=this._register(new en(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){tn.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,ke.Xh)(i,null)}createById(e){return new nn(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new nn(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=S.bd),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),y.RW.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}tn.instanceCount=0;class nn{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new pe.Q5({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var on=i(10205),sn=i(94700),rn=i(82693),an=i(75467),ln=i(90882),cn=i(1212),dn=i(78089),un=i(94873),hn=i(60841),gn=i(8419),pn=i(99588),fn=i(96559);const mn=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,vn=/(&)?(&)([^\s&])/g;var _n;(function(e){e[e["Right"]=0]="Right",e[e["Left"]=1]="Left"})(_n||(_n={}));class bn extends dn.o{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...St.dz||St.IJ?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=o,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(cn.o.addTarget(o)),this._register((0,he.nm)(o,he.tw.KEY_DOWN,(e=>{const t=new It.y(e);t.equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,he.nm)(o,he.tw.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){he.zB.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof wn&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),St.IJ&&this._register((0,he.nm)(o,he.tw.KEY_DOWN,(e=>{const t=new It.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),he.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),he.zB.stop(e,!0))}))),this._register((0,he.nm)(this.domNode,he.tw.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,he.jg)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,he.nm)(this.actionsList,he.tw.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,he.jg)(t,this.actionsList)&&t!==this.actionsList){while(t.parentElement!==this.actionsList&&null!==t.parentElement)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(cn.o.addTarget(this.actionsList)),this._register((0,he.nm)(this.actionsList,cn.t.Tap,(e=>{let t=e.initialTarget;if(t&&(0,he.jg)(t,this.actionsList)&&t!==this.actionsList){while(t.parentElement!==this.actionsList&&null!==t.parentElement)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hn.s$(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register((0,he.nm)(o,cn.t.Change,(e=>{he.zB.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,he.nm)(r,he.tw.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,he.Jj)(e);o.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var o;if(null===(o=i.submenuIds)||void 0===o?void 0:o.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof on.Z0){if(n===t.length-1||0===n)return!1;const e=t[n-1];if(e instanceof on.Z0)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Cn))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,he.OO)(e)?this.styleSheet=(0,he.dS)(e):(bn.globalStyleSheet||(bn.globalStyleSheet=(0,he.dS)()),this.styleSheet=bn.globalStyleSheet)),this.styleSheet.textContent=kn(t,(0,he.OO)(e))}styleScrollElement(e,t){var i,n;const o=null!==(i=t.foregroundColor)&&void 0!==i?i:"",s=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a="5px",l=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius=a,e.style.color=o,e.style.backgroundColor=s,e.style.boxShadow=l}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register((0,he.nm)(this.element,he.tw.MOUSE_UP,(e=>{if(he.zB.stop(e,!0),ln.vU){const t=new an.n((0,he.Jj)(this.element),e);if(t.rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,he.nm)(this.element,he.tw.CONTEXT_MENU,(e=>{he.zB.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,he.R3)(this.element,(0,he.$)("a.action-menu-item")),this._action.id===on.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,he.R3)(this.item,(0,he.$)("span.menu-item-check"+pn.k.asCSSSelector(gn.l.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,he.R3)(this.item,(0,he.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,he.R3)(this.item,(0,he.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,he.PO)(this.label);let t=(0,fn.x$)(this.action.label);if(t){const i=Sn(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=mn.exec(t);if(n){t=l.YU(t),vn.lastIndex=0;let i=vn.exec(t);while(i&&i[1])i=vn.exec(t);const o=e=>e.replace(/&&/g,"&");i?this.label.append(l.j3(o(t.substr(0,i.index))," "),(0,he.$)("u",{"aria-hidden":"true"},i[3]),l.oL(o(t.substr(i.index+i[0].length))," ")):this.label.innerText=o(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",o=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!==t&&void 0!==t?t:"",this.item.style.backgroundColor=null!==i&&void 0!==i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=o),this.check&&(this.check.style.color=null!==t&&void 0!==t?t:"")}}class wn extends yn{constructor(e,t,i,n,o){super(e,e,n,o),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new a.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:_n.Right,this.showScheduler=new ii.pY((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new ii.pY((()=>{this.element&&!(0,he.jg)((0,he.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,he.R3)(this.item,(0,he.$)("span.submenu-indicator"+pn.k.asCSSSelector(gn.l.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,he.nm)(this.element,he.tw.KEY_UP,(e=>{const t=new It.y(e);(t.equals(17)||t.equals(3))&&(he.zB.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,he.nm)(this.element,he.tw.KEY_DOWN,(e=>{const t=new It.y(e);(0,he.vY)()===this.item&&(t.equals(17)||t.equals(3))&&he.zB.stop(e,!0)}))),this._register((0,he.nm)(this.element,he.tw.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,he.nm)(this.element,he.tw.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,he.nm)(this.element,he.tw.FOCUS_OUT,(e=>{this.element&&!(0,he.jg)((0,he.vY)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){he.zB.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=Ii(e.width,t.width,{position:n===_n.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{const t=new It.y(e);t.equals(15)&&(he.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,he.nm)(this.submenuContainer,he.tw.KEY_DOWN,(e=>{const t=new It.y(e);t.equals(15)&&he.zB.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!==t&&void 0!==t?t:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Cn extends un.gU{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function Sn(e){const t=mn,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}function xn(e){const t=(0,gn.u)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}function kn(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${xn(gn.l.menuSelection)}\n${xn(gn.l.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderHoverBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderActiveBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`)}return i}var Ln=i(22454);class En{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,he.vY)();const n=e.domForShadowRoot instanceof HTMLElement?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var o;this.lastContainer=n;const s=e.getMenuClassName?e.getMenuClassName():"";s&&(n.className+=" "+s),this.options.blockMouse&&(this.block=n.appendChild((0,he.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(o=this.blockDisposable)||void 0===o||o.dispose(),this.blockDisposable=(0,he.nm)(this.block,he.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new a.SL,l=e.actionRunner||new on.Wi;l.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),l.onDidRun(this.onDidActionRun,this,r),i=new bn(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},Ln.ZR),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const c=(0,he.Jj)(n);return r.add((0,he.nm)(c,he.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,he.nm)(c,he.tw.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new an.n(c,e);let i=t.target;if(!t.rightButton){while(i){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,a.F8)(r,i)},focus:()=>{null===i||void 0===i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,o;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,he.vY)()===this.lastContainer||(0,he.jg)((0,he.vY)(),this.lastContainer))&&(null===(o=this.focusToReturn)||void 0===o||o.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,Re.n2)(e.error)&&this.notificationService.error(e.error)}}var Nn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Dn=function(e,t){return function(i,n){t(i,n,e)}};let Tn=class extends a.JT{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new En(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,o,s){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=o,this.contextKeyService=s,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new pe.Q5),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new pe.Q5)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=In.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),he._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var In;Tn=Nn([Dn(0,Si.b),Dn(1,Me.lT),Dn(2,mt.u),Dn(3,vt.d),Dn(4,rn.co),Dn(5,ye.i6)],Tn),function(e){function t(e){return e&&e.menuId instanceof rn.eH}function i(e,i,n){if(!t(e))return e;const{menuId:o,menuActionOptions:s,contextKeyService:r}=e;return{...e,getActions:()=>{const t=[];if(o){const e=i.createMenu(o,null!==r&&void 0!==r?r:n);(0,sn.LJ)(e,s,t),e.dispose()}return e.getActions?on.Z0.join(e.getActions(),t):t}}}e.transform=i}(In||(In={}));var Rn,An=i(55191),On=i(79247);(function(e){e[e["API"]=0]="API",e[e["USER"]=1]="USER"})(Rn||(Rn={}));var Pn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Mn=function(e,t){return function(i,n){t(i,n,e)}};let Fn=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,ge.xn)(e,ge.lg.command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;if("string"===typeof e&&(e=c.o.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,On.Qc)(decodeURIComponent(e.query))}catch(n){try{i=(0,On.Qc)(e.query)}catch(o){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Fn=Pn([Mn(0,$t.H)],Fn);let Bn=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=c.o.parse(e));const{selection:i,uri:n}=(0,yt.x)(e);return e=n,e.scheme===ge.lg.file&&(e=(0,Li.AH)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null===t||void 0===t?void 0:t.fromUserGesture)?Rn.USER:Rn.API,...null===t||void 0===t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}};Bn=Pn([Mn(0,h.$)],Bn);let Hn=class{constructor(e,t){this._openers=new fe.S,this._validators=new fe.S,this._resolvers=new fe.S,this._resolvedUriTargets=new qt.Y9((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new fe.S,this._defaultExternalOpener={openExternal:async e=>((0,ge.Gs)(e,ge.lg.http,ge.lg.https)?he.V3(e):r.Ex.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,ge.Gs)(e,ge.lg.mailto,ge.lg.http,ge.lg.https,ge.lg.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Fn(t)),this._openers.push(new Bn(e))}registerOpener(e){const t=this._openers.unshift(e);return{dispose:t}}async open(e,t){var i;const n="string"===typeof e?c.o.parse(e):e,o=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const s of this._validators)if(!await s.shouldOpen(o,t))return!1;for(const s of this._openers){const i=await s.open(e,t);if(i)return!0}return!1}async resolveExternalUri(e,t){for(const n of this._resolvers)try{const i=await n.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?c.o.parse(e):e;let n,o;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(s){n=i}if(o="string"===typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){const n=await t.openExternal(o,{sourceUri:i,preferredOpenerId:e},An.T.None);if(n)return!0}}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},An.T.None)}dispose(){this._validators.clear()}};Hn=Pn([Mn(0,h.$),Mn(1,$t.H)],Hn);var Wn=i(52473),Vn=i(48580),jn=i(27193),zn=i(22237),Un=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$n=function(e,t){return function(i,n){t(i,n,e)}};let qn=class extends a.JT{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new pe.Q5),this._markerDecorations=new qt.Y9,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Kn(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==ge.lg.inMemory&&e.uri.scheme!==ge.lg.internal&&e.uri.scheme!==ge.lg.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};qn=Un([$n(0,L.q),$n(1,Vn.lT)],qn);class Kn extends a.JT{constructor(e){super(),this.model=e,this._map=new qt.YQ,this._register((0,a.OF)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,zn.q)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(n,o);for(const r of i)this._map.delete(r);for(let r=0;r=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new jt.e(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0}}var Gn,Zn=i(54693),Qn=i(69894),Yn=i(69050),Jn=i(63381),Xn=i(22762),eo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},to=function(e,t){return function(i,n){t(i,n,e)}};function io(e){return e.toString()}class no{constructor(e,t,i){this.model=e,this._modelEventListeners=new a.SL,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const oo=St.IJ||St.dz?1:2;class so{constructor(e,t,i,n,o,s,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=s,this.versionId=r,this.alternativeVersionId=a}}let ro=Gn=class extends a.JT{constructor(e,t,i,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=o,this._onModelAdded=this._register(new pe.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new pe.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new pe.Q5),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Yn.D.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let o="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(o=Math.max(t,1))}let s=Yn.D.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=oo;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Yn.D.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=Yn.D.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let d=Yn.D.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let u=Yn.D.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(u={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:d,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===St.OS||2===St.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[n+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),s=this._getEOL(t,n);o=Gn._readModelOptions({editor:e,eol:s},i),this._modelCreationOptionsByLanguageAndResource[n+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,o=i.length;ne){const t=[];this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));while(t.length>0&&this._disposedModelsHeapSize>e){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),s=new Qn.yO(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(io(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),o=!!n.canComputeSHA1(s)&&n.computeSHA1(s)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)(0,Xn.e9)(e)&&e.matchesResource(i)&&e.setModel(s);for(const e of t.future)(0,Xn.e9)(e)&&e.matchesResource(i)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Xn.e9)(e)&&e.matchesResource(i))),o&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=io(s.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new no(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let o;return o=t?this._createModelData(e,t,i,n):this._createModelData(e,S.bd,i,n),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||t.future.length>0){for(const i of t.past)(0,Xn.e9)(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Xn.e9)(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=Gn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(o)if(n||!(s>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Xn.e9)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new so(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Gn._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new ao}};ro.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,ro=Gn=eo([to(0,$.Ui),to(1,Ut.y),to(2,Fe.tJ),to(3,w.O),to(4,C.c_)],ro);class ao{canComputeSHA1(e){return e.getValueLength()<=ao.MAX_MODEL_SIZE}computeSHA1(e){const t=new Jn.yP,i=e.createSnapshot();let n;while(n=i.read())t.update(n);return t.digest()}}ao.MAX_MODEL_SIZE=10485760;var lo=i(19842),co=i(84475),uo=i(45726),ho=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},go=function(e,t){return function(i,n){t(i,n,e)}};let po=class extends a.JT{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Zt.B.as(co.IP.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,s]=this.getOrInstantiateProvider(e),r=this.visibleQuickAccess,l=null===r||void 0===r?void 0:r.descriptor;if(r&&s&&l===s)return e===s.prefix||(null===i||void 0===i?void 0:i.preserveValue)||(r.picker.value=e),void this.adjustValueSelection(r.picker,s,i);if(s&&!(null===i||void 0===i?void 0:i.preserveValue)){let t;if(r&&l&&l!==s){const e=r.value.substr(l.prefix.length);e&&(t=`${s.prefix}${e}`)}if(!t){const e=null===o||void 0===o?void 0:o.defaultFilterValue;e===co.Ry.LAST?t=this.lastAcceptedPickerValues.get(s):"string"===typeof e&&(t=`${s.prefix}${e}`)}"string"===typeof t&&(e=t)}const c=new a.SL,d=c.add(this.quickInputService.createQuickPick());let u;d.value=e,this.adjustValueSelection(d,s,i),d.placeholder=null===s||void 0===s?void 0:s.placeholder,d.quickNavigate=null===i||void 0===i?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof(null===i||void 0===i?void 0:i.itemActivation)||(null===i||void 0===i?void 0:i.quickNavigateConfiguration))&&(d.itemActivation=null!==(n=null===i||void 0===i?void 0:i.itemActivation)&&void 0!==n?n:uo.jG.SECOND),d.contextKey=null===s||void 0===s?void 0:s.contextKey,d.filterValue=e=>e.substring(s?s.prefix.length:0),t&&(u=new ii.CR,c.add(pe.ju.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),c.add(this.registerPickerListeners(d,o,s,e,null===i||void 0===i?void 0:i.providerOptions));const h=c.add(new An.A);return o&&c.add(o.provide(d,h.token,null===i||void 0===i?void 0:i.providerOptions)),pe.ju.once(d.onDidHide)((()=>{0===d.selectedItems.length&&h.cancel(),c.dispose(),null===u||void 0===u||u.complete(d.selectedItems.slice(0))})),d.show(),t?null===u||void 0===u?void 0:u.p:void 0}adjustValueSelection(e,t,i){var n;let o;o=(null===i||void 0===i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n,o){const s=new a.SL,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add((0,a.OF)((()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),s.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:o}):r.value=e}))),i&&s.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),s}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};po=ho([go(0,uo.eJ),go(1,Le.TG)],po);var fo=i(5506),mo=i(10791),vo=i(64347),_o=i(21815);const bo=new _o.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new _o.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0});return{collator:e}})),new _o.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"});return{collator:e}}));function yo(e,t,i=!1){const n=e||"",o=t||"",s=bo.value.collator.compare(n,o);return bo.value.collatorIsNumeric&&0===s&&n!==o?no.length)return 1}return 0}var So=i(58718),xo=i(9172),ko=i(66426),Lo=i(58247),Eo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class No{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Eo([So.H],No.prototype,"toString",null);const Do=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;function To(e){const t=[];let i,n=0;while(i=Do.exec(e)){i.index-n>0&&t.push(e.substring(n,i.index));const[,o,s,,r]=i;r?t.push({label:o,href:s,title:r}):t.push({label:o,href:s}),n=i.index+i[0].length}return n{he.cl(e)&&he.zB.stop(e,!0),i.callback(s.href)},a=i.disposables.add(new xo.Y(n,he.tw.CLICK)).event,l=i.disposables.add(new xo.Y(n,he.tw.KEY_DOWN)).event,c=pe.ju.chain(l,(e=>e.filter((e=>{const t=new It.y(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(cn.o.addTarget(n));const d=i.disposables.add(new xo.Y(n,cn.t.Tap)).event;pe.ju.any(a,d,c)(r,null,i.disposables),t.appendChild(n)}}var Mo=i(71976),Fo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Bo=he.$;class Ho{constructor(e,t,i,n,o,s,r){var a,l,c;this._checked=!1,this._hidden=!1,this.hasCheckbox=n,this.index=i,this.fireButtonTriggered=o,this.fireSeparatorButtonTriggered=s,this._onChecked=r,this.onChecked=n?pe.ju.map(pe.ju.filter(this._onChecked.event,(e=>e.listElement===this)),(e=>e.checked)):pe.ju.None,"separator"===e.type?this._separator=e:(this.item=e,t&&"separator"===t.type&&!t.buttons&&(this._separator=t),this.saneDescription=this.item.description,this.saneDetail=this.item.detail,this._labelHighlights=null===(a=this.item.highlights)||void 0===a?void 0:a.label,this._descriptionHighlights=null===(l=this.item.highlights)||void 0===l?void 0:l.description,this._detailHighlights=null===(c=this.item.highlights)||void 0===c?void 0:c.detail,this.saneTooltip=this.item.tooltip),this._init=new _o.o((()=>{var t;const i=null!==(t=e.label)&&void 0!==t?t:"",n=(0,fn.Ho)(i).text.trim(),o=e.ariaLabel||[i,this.saneDescription,this.saneDetail].map((e=>(0,fn.JL)(e))).filter((e=>!!e)).join(", ");return{saneLabel:i,saneSortLabel:n,saneAriaLabel:o}}))}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({listElement:this,checked:e}))}get separator(){return this._separator}set separator(e){this._separator=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class Wo{constructor(e,t){this.themeService=e,this.hoverDelegate=t}get templateId(){return Wo.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=he.R3(e,Bo(".quick-input-list-entry"));const i=he.R3(t.entry,Bo("label.quick-input-list-label"));t.toDisposeTemplate.push(he.mu(i,he.tw.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=he.R3(i,Bo("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(he.mu(t.checkbox,he.tw.CHANGE,(e=>{t.element.checked=t.checkbox.checked})));const n=he.R3(i,Bo(".quick-input-list-rows")),o=he.R3(n,Bo(".quick-input-list-row")),s=he.R3(n,Bo(".quick-input-list-row"));t.label=new mo.g(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.push(t.label),t.icon=he.Ce(t.label.element,Bo(".quick-input-list-icon"));const r=he.R3(o,Bo(".quick-input-list-entry-keybinding"));t.keybinding=new vo.e(r,St.OS);const a=he.R3(s,Bo(".quick-input-list-label-meta"));return t.detail=new mo.g(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.push(t.detail),t.separator=he.R3(t.entry,Bo(".quick-input-list-separator")),t.actionBar=new dn.o(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){var n,o,s,r;i.element=e,e.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=e.item?e.item:e.separator;i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked((e=>i.checkbox.checked=e)));const{labelHighlights:l,descriptionHighlights:d,detailHighlights:u}=e;if(null===(o=e.item)||void 0===o?void 0:o.iconPath){const t=(0,Mo._T)(this.themeService.getColorTheme().type)?e.item.iconPath.dark:null!==(s=e.item.iconPath.light)&&void 0!==s?s:e.item.iconPath.dark,n=c.o.revive(t);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=he.wY(n)}else i.icon.style.backgroundImage="",i.icon.className=(null===(r=e.item)||void 0===r?void 0:r.iconClass)?`quick-input-list-icon ${e.item.iconClass}`:"";let h;!e.saneTooltip&&e.saneDescription&&(h={markdown:{value:e.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:e.saneDescription});const g={matches:l||[],descriptionTitle:h,descriptionMatches:d||[],labelEscapeNewLines:!0};if("separator"!==a.type?(g.extraClasses=a.iconClasses,g.italic=a.italic,g.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item")):i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(e.saneLabel,e.saneDescription,g),i.keybinding.set("separator"===a.type?void 0:a.keybinding),e.saneDetail){let t;e.saneTooltip||(t={markdown:{value:e.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:e.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(e.saneDetail,void 0,{matches:u,title:t,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";e.item&&e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator);const p=a.buttons;p&&p.length?(i.actionBar.push(p.map(((t,i)=>Oo(t,`id-${i}`,(()=>"separator"!==a.type?e.fireButtonTriggered({button:t,item:a}):e.fireSeparatorButtonTriggered({button:t,separator:a}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,a.B9)(i.toDisposeElement),i.actionBar.clear()}disposeTemplate(e){e.toDisposeElement=(0,a.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,a.B9)(e.toDisposeTemplate)}}Wo.ID="listelement";class Vo{getHeight(e){return e.item?e.saneDetail?44:22:24}getTemplateId(e){return Wo.ID}}var jo;(function(e){e[e["First"]=1]="First",e[e["Second"]=2]="Second",e[e["Last"]=3]="Last",e[e["Next"]=4]="Next",e[e["Previous"]=5]="Previous",e[e["NextPage"]=6]="NextPage",e[e["PreviousPage"]=7]="PreviousPage"})(jo||(jo={}));class zo{constructor(e,t,i,n){this.parent=e,this.options=i,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.sortByLabel=!0,this._onChangedAllVisibleChecked=new pe.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new pe.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new pe.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new pe.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new pe.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new pe.Q5,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onKeyDown=new pe.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new pe.Q5,this.onLeave=this._onLeave.event,this._listElementChecked=new pe.Q5,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=he.R3(this.parent,Bo(".quick-input-list"));const o=new Vo,s=new Ko;this.list=i.createList("QuickInput",this.container,o,[new Wo(n,i.hoverDelegate)],{identityProvider:{getId:e=>{var t,i,n,o,s,r,a,l;return null!==(l=null!==(r=null!==(o=null!==(i=null===(t=e.item)||void 0===t?void 0:t.id)&&void 0!==i?i:null===(n=e.item)||void 0===n?void 0:n.label)&&void 0!==o?o:null===(s=e.separator)||void 0===s?void 0:s.id)&&void 0!==r?r:null===(a=e.separator)||void 0===a?void 0:a.label)&&void 0!==l?l:""}},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown((e=>{const t=new It.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(St.dz?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,ke.w6)(this.list.length));break;case 16:{const e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{const e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(t)}))),this.disposables.push(this.list.onMouseDown((e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()}))),this.disposables.push(he.nm(this.container,he.tw.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()}))),this.disposables.push(this.list.onMouseMiddleClick((e=>{this._onLeave.fire()}))),this.disposables.push(this.list.onContextMenu((e=>{"number"===typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})));const r=new ii.rH(i.hoverDelegate.delay);this.disposables.push(this.list.onMouseOver((async e=>{var t;if(e.browserEvent.target instanceof HTMLAnchorElement)r.cancel();else if(e.browserEvent.relatedTarget instanceof HTMLAnchorElement||!he.jg(e.browserEvent.relatedTarget,null===(t=e.element)||void 0===t?void 0:t.element))try{await r.trigger((async()=>{e.element&&this.showHover(e.element)}))}catch(e){if(!(0,Re.n2)(e))throw e}}))),this.disposables.push(this.list.onMouseOut((e=>{var t;he.jg(e.browserEvent.relatedTarget,null===(t=e.element)||void 0===t?void 0:t.element)||r.cancel()}))),this.disposables.push(r),this.disposables.push(this._listElementChecked.event((e=>this.fireCheckedEvents()))),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onSeparatorButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return pe.ju.map(this.list.onDidChangeFocus,(e=>e.elements.map((e=>e.item))))}get onDidChangeSelection(){return pe.ju.map(this.list.onDidChangeSelection,(e=>({items:e.elements.map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get ariaLabel(){return this.list.getHTMLElement().ariaLabel}set ariaLabel(e){this.list.getHTMLElement().ariaLabel=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)}))}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,a.B9)(this.elementDisposables);const t=e=>this.fireButtonTriggered(e),i=e=>this.fireSeparatorButtonTriggered(e);this.inputElements=e;const n=new Map,o=this.parent.classList.contains("show-checkboxes");this.elements=e.reduce(((s,r,a)=>{var l;const c=a>0?e[a-1]:void 0;if("separator"===r.type&&!r.buttons)return s;const d=new Ho(r,c,a,o,t,i,this._listElementChecked),u=s.length;return s.push(d),n.set(null!==(l=d.item)&&void 0!==l?l:d.separator,u),s}),[]),this.elementsToIndexes=n,this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map((e=>e.item))}setFocusedElements(e){if(this.list.setFocus(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e)))),e.length>0){const e=this.list.getFocus()[0];"number"===typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e))))}getCheckedElements(){return this.elements.filter((e=>e.checked)).map((e=>e.item)).filter((e=>!!e))}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===jo.Second&&this.list.length<2&&(e=jo.First),e){case jo.First:this.list.scrollTop=0,this.list.focusFirst(void 0,(e=>!!e.item));break;case jo.Second:this.list.scrollTop=0,this.list.focusNth(1,void 0,(e=>!!e.item));break;case jo.Last:this.list.scrollTop=this.list.scrollHeight,this.list.focusLast(void 0,(e=>!!e.item));break;case jo.Next:{this.list.focusNext(void 0,!0,void 0,(e=>!!e.item));const e=this.list.getFocus()[0];0!==e&&!this.elements[e-1].item&&this.list.firstVisibleIndex>e-1&&this.list.reveal(e-1);break}case jo.Previous:{this.list.focusPrevious(void 0,!0,void 0,(e=>!!e.item));const e=this.list.getFocus()[0];0!==e&&!this.elements[e-1].item&&this.list.firstVisibleIndex>e-1&&this.list.reveal(e-1);break}case jo.NextPage:this.list.focusNextPage(void 0,(e=>!!e.item));break;case jo.PreviousPage:this.list.focusPreviousPage(void 0,(e=>!!e.item));break}const t=this.list.getFocus()[0];"number"===typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.options.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.options.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.options.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this.container,position:{hoverPosition:1}},!1))}layout(e){this.list.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;const t=e;if(e=e.trim(),e&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach((n=>{var o,s,r,a;let l;l="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(o=(0,fn.Gt)(e,(0,fn.Ho)(n.saneLabel)))&&void 0!==o?o:void 0:this.matchOnLabel&&null!==(s=Uo(t,(0,fn.Ho)(n.saneLabel)))&&void 0!==s?s:void 0;const c=this.matchOnDescription&&null!==(r=(0,fn.Gt)(e,(0,fn.Ho)(n.saneDescription||"")))&&void 0!==r?r:void 0,d=this.matchOnDetail&&null!==(a=(0,fn.Gt)(e,(0,fn.Ho)(n.saneDetail||"")))&&void 0!==a?a:void 0;if(l||c||d?(n.labelHighlights=l,n.descriptionHighlights=c,n.detailHighlights=d,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this.inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this.elements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this.elements.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>qo(e,i,t)))}return this.elementsToIndexes=i.reduce(((e,t,i)=>{var n;return e.set(null!==(n=t.item)&&void 0!==n?n:t.separator,i),e}),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,a.B9)(this.elementDisposables),this.disposables=(0,a.B9)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}style(e){this.list.style(e)}toggleHover(){const e=this.list.getFocusedElements()[0];if(!(null===e||void 0===e?void 0:e.saneTooltip))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();const t=this.list.getFocusedElements()[0];if(!t)return;this.showHover(t);const i=new a.SL;i.add(this.list.onDidChangeFocus((e=>{e.indexes.length&&this.showHover(e.elements[0])}))),this._lastHover&&i.add(this._lastHover),this._toggleHover=i,this.elementDisposables.push(this._toggleHover)}}function Uo(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return $o(e,i);const o=(0,l.j3)(i," "),s=i.length-o.length,r=$o(e,o);if(r)for(const a of r){const e=n[a.start+s]+s;a.start+=e,a.end+=e}return r}function $o(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}function qo(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:wo(e.saneSortLabel,t.saneSortLabel,i)}Fo([So.H],zo.prototype,"onDidChangeFocus",null),Fo([So.H],zo.prototype,"onDidChangeSelection",null);class Ko{getWidgetAriaLabel(){return(0,Oe.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var Go=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Zo=function(e,t){return function(i,n){t(i,n,e)}};const Qo={iconClass:pn.k.asClassName(gn.l.quickInputBack),tooltip:(0,Oe.NC)("quickInput.back","Back"),handle:-1};class Yo extends a.JT{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Yo.noPromptMessage,this._severity=Ae.Z.Ignore,this.onDidTriggerButtonEmitter=this._register(new pe.Q5),this.onDidHideEmitter=this._register(new pe.Q5),this.onDisposeEmitter=this._register(new pe.Q5),this.visibleDisposables=this._register(new a.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!St.gn;this._ignoreFocusOut=e&&!St.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!==e&&void 0!==e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=uo.Jq.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?he.mc(this.ui.widget,this._widget):he.mc(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new ii._F,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Qo)).map(((e,t)=>Oo(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Qo)).map(((e,t)=>Oo(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof fo.Z)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,he.mc(this.ui.message),Po(o,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,Oe.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Ae.Z.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Yo.noPromptMessage=(0,Oe.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Jo extends Yo{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new pe.Q5),this.onWillAcceptEmitter=this._register(new pe.Q5),this.onDidAcceptEmitter=this._register(new pe.Q5),this.onDidCustomEmitter=this._register(new pe.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=uo.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new pe.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new pe.Q5),this.onDidTriggerItemButtonEmitter=this._register(new pe.Q5),this.onDidTriggerSeparatorButtonEmitter=this._register(new pe.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){const e=this.ui.list.filter(this.filterValue(this._value));e&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?uo.X5:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(jo.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:this.ui.list.focus(jo.Next),this.canSelectMany&&this.ui.list.domFocus(),he.zB.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(jo.Previous):this.ui.list.focus(jo.Last),this.canSelectMany&&this.ui.list.domFocus(),he.zB.stop(e,!0);break;case 12:this.ui.list.focus(jo.NextPage),this.canSelectMany&&this.ui.list.domFocus(),he.zB.stop(e,!0);break;case 11:this.ui.list.focus(jo.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),he.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(jo.First),he.zB.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(jo.Last),he.zB.stop(e,!0));break}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ke.fS)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,ke.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(he.N5(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,ke.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return he.nm(this.ui.container,he.tw.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new It.y(e),i=t.keyCode,n=this._quickNavigate.keybindings,o=n.some((e=>{const n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!n[0].altKey||6!==i)||(!(!n[0].ctrlKey||5!==i)||!(!n[0].metaKey||57!==i)))}));o&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||Jo.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!==n&&void 0!==n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case uo.jG.NONE:this._itemActivation=uo.jG.FIRST;break;case uo.jG.SECOND:this.ui.list.focus(jo.Second),this._itemActivation=uo.jG.FIRST;break;case uo.jG.LAST:this.ui.list.focus(jo.Last),this._itemActivation=uo.jG.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(jo.First)),this.keepScrollPosition&&(this.scrollTop=e)}}Jo.DEFAULT_ARIA_LABEL=(0,Oe.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class Xo extends Yo{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new pe.Q5),this.onDidAcceptEmitter=this._register(new pe.Q5),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let es=class extends ft{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;const i=(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"===typeof e.content?e.content:e.content.value).includes("\n");return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:i,skipFadeInAnimation:!0}}}};es=Go([Zo(0,$.Ui),Zo(1,pt)],es);var ts=i(24511),is=i(86829);const ns="done",os="active",ss="infinite",rs="infinite-long-running",as="discrete";class ls extends a.JT{constructor(e,t){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new ii.pY((()=>(0,he.$Z)(this.element)),0)),this.longRunningScheduler=this._register(new ii.pY((()=>this.infiniteLongRunning()),ls.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null===t||void 0===t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(os,ss,rs,as),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(ns),this.element.classList.contains(ss)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(as,ns,rs),this.element.classList.add(os,ss),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(rs)}getContainer(){return this.element}}ls.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var cs=i(93575);const ds=he.$;class us extends a.JT{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>he.mu(this.findInput.inputBox.inputElement,he.tw.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=he.R3(this.parent,ds(".quick-input-box")),this.findInput=this._register(new cs.V(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===Ae.Z.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===Ae.Z.Info?1:e===Ae.Z.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===Ae.Z.Info?1:e===Ae.Z.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}const hs=he.$;class gs extends a.JT{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.themeService=t,this.layoutService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new pe.Q5),this.onDidCustomEmitter=this._register(new pe.Q5),this.onDidTriggerButtonEmitter=this._register(new pe.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new pe.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new pe.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(pe.ju.runAndSubscribe(he.Xo,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:r.Ex,disposables:this._store})),this._register(he.Jc((e=>{this.ui&&he.Jj(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[he.tw.KEY_DOWN,he.tw.KEY_UP,he.tw.MOUSE_DOWN])t.add(he.nm(e,n,i,!0))}getUI(e){if(this.ui)return e&&he.Jj(this._container)!==he.Jj(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=he.R3(this._container,hs(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=he.dS(t),n=he.R3(t,hs(".quick-input-titlebar")),o=this._register(new dn.o(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");const s=he.R3(n,hs(".quick-input-title")),r=this._register(new dn.o(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=he.R3(t,hs(".quick-input-header")),l=he.R3(a,hs("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,Oe.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(he.mu(l,he.tw.CHANGE,(e=>{const t=l.checked;L.setAllVisibleChecked(t)}))),this._register(he.nm(l,he.tw.CLICK,(e=>{(e.x||e.y)&&h.setFocus()})));const c=he.R3(a,hs(".quick-input-description")),d=he.R3(a,hs(".quick-input-and-message")),u=he.R3(d,hs(".quick-input-filter")),h=this._register(new us(u,this.styles.inputBox,this.styles.toggle));h.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=he.R3(u,hs(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new is.Z(g,{countFormat:(0,Oe.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),f=he.R3(u,hs(".quick-input-count"));f.setAttribute("aria-live","polite");const m=new is.Z(f,{countFormat:(0,Oe.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),v=he.R3(a,hs(".quick-input-action")),_=this._register(new ts.z(v,this.styles.button));_.label=(0,Oe.NC)("ok","OK"),this._register(_.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=he.R3(a,hs(".quick-input-action")),y=this._register(new ts.z(b,{...this.styles.button,supportIcons:!0}));y.label=(0,Oe.NC)("custom","Custom"),this._register(y.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const w=he.R3(d,hs(`#${this.idPrefix}message.quick-input-message`)),C=this._register(new ls(t,this.styles.progressBar));C.getContainer().classList.add("quick-input-progress");const S=he.R3(t,hs(".quick-input-html-widget"));S.tabIndex=-1;const x=he.R3(t,hs(".quick-input-description")),k=this.idPrefix+"list",L=this._register(new zo(t,k,this.options,this.themeService));h.setAttribute("aria-controls",k),this._register(L.onDidChangeFocus((()=>{var e;h.setAttribute("aria-activedescendant",null!==(e=L.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(L.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(L.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(L.onChangedCheckedCount((e=>{m.setCount(e)}))),this._register(L.onLeave((()=>{setTimeout((()=>{this.controller&&(h.setFocus(),this.controller instanceof Jo&&this.controller.canSelectMany&&L.clearFocus())}),0)})));const E=he.go(t);return this._register(E),this._register(he.nm(t,he.tw.FOCUS,(e=>{he.jg(e.relatedTarget,t)||(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)}),!0)),this._register(E.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(uo.Jq.Blur),this.previousFocusElement=void 0}))),this._register(he.nm(t,he.tw.FOCUS,(e=>{h.setFocus()}))),this._register(he.mu(t,he.tw.KEY_DOWN,(e=>{if(!he.jg(e.target,S))switch(e.keyCode){case 3:he.zB.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:he.zB.stop(e,!0),this.hide(uo.Jq.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(he.jg(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(he.zB.stop(e,!0),L.clearFocus()):!e.shiftKey&&he.jg(e.target,n[n.length-1])&&(he.zB.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(he.zB.stop(e,!0),this.getUI().list.toggleHover());break}}))),this.ui={container:t,styleSheet:i,leftActionBar:o,titleBar:n,title:s,description1:x,description2:c,widget:S,rightActionBar:r,checkAll:l,inputContainer:d,filterContainer:u,inputBox:h,visibleCountContainer:g,visibleCount:p,countContainer:f,count:m,okContainer:v,ok:_,message:w,customButtonContainer:b,customButton:y,list:L,progressBar:C,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,he.R3(this._container,this.ui.container))}pick(e,t={},i=An.T.None){return new Promise(((n,o)=>{let s=e=>{var i;s=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,r.keyMods),n(e)};if(i.isCancellationRequested)return void s(void 0);const r=this.createQuickPick();let l;const c=[r,r.onDidAccept((()=>{if(r.canSelectMany)s(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(s(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(s(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),o=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=o}}}))),r.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),r.onDidChangeValue((e=>{!l||e||1===r.activeItems.length&&r.activeItems[0]===l||(r.activeItems=[l])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{(0,a.B9)(c),s(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.quickNavigate=t.quickNavigate,r.hideInput=!!t.hideInput,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{l=t,r.busy=!1,r.items=e,r.canSelectMany&&(r.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),l&&(r.activeItems=[l])})),r.show(),Promise.resolve(e).then(void 0,(e=>{o(e),r.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new Jo(e)}createInputBox(){const e=this.getUI(!0);return new Xo(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null===i||void 0===i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",he.mc(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Ae.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),he.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();Qo.tooltip=n?(0,Oe.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,Oe.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;const o=null===(t=this.ui)||void 0===t?void 0:t.container,s=o&&!he.b5(o);if(this.controller=null,this.onHideEmitter.fire(),o&&(o.style.display="none"),!s){let e=this.previousFocusElement;while(e&&!e.offsetParent)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null===e||void 0===e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,gs.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!==e&&void 0!==e?e:"",this.ui.container.style.backgroundColor=null!==t&&void 0!==t?t:"",this.ui.container.style.color=null!==i&&void 0!==i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list);const s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}}gs.MAX_WIDTH=600;var ps=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},fs=function(e,t){return function(i,n){t(i,n,e)}};let ms=class extends me.bB{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(po))),this._quickAccess}constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=o,this._onShow=this._register(new pe.Q5),this._onHide=this._register(new pe.Q5),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{const i=t.get(yt.v);i.open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),createList:(e,t,i,n,o)=>this.instantiationService.createInstance(lo.ev,e,t,i,n,o),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(es))},n=this._register(new gs({...i,...t},this.themeService,this.layoutService));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,he.Jj)(e.activeContainer)===(0,he.Jj)(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ye.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null===t||void 0===t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=An.T.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,ut.n_1)(ut.zKr),quickInputForeground:(0,ut.n_1)(ut.tZ6),quickInputTitleBackground:(0,ut.n_1)(ut.loF),widgetBorder:(0,ut.n_1)(ut.A42),widgetShadow:(0,ut.n_1)(ut.rh)},inputBox:Ln.Hc,toggle:Ln.pl,countBadge:Ln.ku,button:Ln.wG,progressBar:Ln.b5,keybindingLabel:Ln.eO,list:(0,Ln.TU)({listBackground:ut.zKr,listFocusBackground:ut.Vqd,listFocusForeground:ut.NPS,listInactiveFocusForeground:ut.NPS,listInactiveSelectionIconForeground:ut.cbQ,listInactiveFocusBackground:ut.Vqd,listFocusOutline:ut.xL1,listInactiveFocusOutline:ut.xL1}),pickerGroup:{pickerGroupBorder:(0,ut.n_1)(ut.opG),pickerGroupForeground:(0,ut.n_1)(ut.kJk)}}}};ms=ps([fs(0,Le.TG),fs(1,ye.i6),fs(2,me.XE),fs(3,Ee),fs(4,$.Ui)],ms);var vs=i(81332),_s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},bs=function(e,t){return function(i,n){t(i,n,e)}};let ys=class extends ms{constructor(e,t,i,n,o,s){super(t,i,n,new Ie(e.getContainerDomNode(),o),s),this.host=void 0;const r=Cs.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer(){return t.getDomNode()},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return pe.ju.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return pe.ju.None},get onDidAddContainer(){return pe.ju.None},get whenActiveContainerStylesLoaded(){return Promise.resolve()},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};ys=_s([bs(1,Le.TG),bs(2,ye.i6),bs(3,me.XE),bs(4,h.$),bs(5,$.Ui)],ys);let ws=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(ys,e);this.mapEditorToService.set(e,t),(0,vs.M)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=An.T.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};ws=_s([bs(0,Le.TG),bs(1,h.$)],ws);class Cs{static get(e){return e.getContribution(Cs.ID)}constructor(e){this.editor=e,this.widget=new Ss(this.editor)}dispose(){this.widget.dispose()}}Cs.ID="editor.controller.quickInput";class Ss{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Ss.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Ss.ID="editor.contrib.quickInputWidget",(0,u._K)(Cs.ID,Cs,4);var xs=i(87578),ks=i(51318),Ls=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Es=function(e,t){return function(i,n){t(i,n,e)}};let Ns=class extends a.JT{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new pe.Q5,this._onDidChangeReducedMotion=new pe.Q5,this._accessibilityModeEnabledContext=xt.U.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const o=r.Ex.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(o)}initReducedMotionListeners(e){this._register((0,he.nm)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};Ns=Ls([Es(0,ye.i6),Es(1,Ee),Es(2,$.Ui)],Ns);var Ds,Ts,Is=i(92601),Rs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},As=function(e,t){return function(i,n){t(i,n,e)}};let Os=class{constructor(e,t){this._commandService=e,this._hiddenStates=new Ps(t)}createMenu(e,t,i){return new Fs(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};Os=Rs([As(0,$t.H),As(1,Is.Uy)],Os);let Ps=Ds=class{constructor(e){this._storageService=e,this._disposables=new a.SL,this._onDidChange=new pe.Q5,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(Ds._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,Ds._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(Ds._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const o=this._isHiddenByDefault(e,t),s=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return o?!s:s}updateHidden(e,t,i){const n=this._isHiddenByDefault(e,t);n&&(i=!i);const o=this._data[e.id];if(i)if(o){const e=o.indexOf(t);e<0&&o.push(t)}else this._data[e.id]=[t];else if(o){const i=o.indexOf(t);i>=0&&(0,ke.LS)(o,i),0===o.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(Ds._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};Ps._key="menu.hiddenCommands",Ps=Ds=Rs([As(0,Is.Uy)],Ps);let Ms=Ts=class{constructor(e,t,i,n,o){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._contextKeyService=o,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=rn.BH.getMenuItems(this._id);let t;e.sort(Ts._compareMenuItems);for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(Ts._fillInKbExprKeys(e.when,this._structureContextKeys),(0,rn.vr)(e)){if(e.command.precondition&&Ts._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;Ts._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&rn.BH.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,o]=i,s=[];for(const t of o)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,rn.vr)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=Bs(this._id,i?t.command:t,this._hiddenStates);if(i)s.push(new rn.U8(t.command,t.alt,e,n,this._contextKeyService,this._commandService));else{const i=new Ts(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(e),o=on.Z0.join(...i.map((e=>e[1])));o.length>0&&s.push(new rn.NZ(t,n,o))}}s.length>0&&t.push([n,s])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const o=e.order||0,s=t.order||0;return os?1:Ts._compareTitles((0,rn.vr)(e)?e.command.title:e.title,(0,rn.vr)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,n="string"===typeof t?t:t.original;return i.localeCompare(n)}};Ms=Ts=Rs([As(3,$t.H),As(4,ye.i6)],Ms);let Fs=class{constructor(e,t,i,n,o){this._disposables=new a.SL,this._menuInfo=new Ms(e,t,i.emitEventsForSubmenuChanges,n,o);const s=new ii.pY((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(s),this._disposables.add(rn.BH.onDidChangeMenu((t=>{t.has(e)&&s.schedule()})));const r=this._disposables.add(new a.SL),l=e=>{let t=!1,i=!1,n=!1;for(const o of e)if(t=t||o.isStructuralChange,i=i||o.isEnablementChange,n=n||o.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}},c=()=>{r.add(o.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),r.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))};this._onDidChange=new pe.D0({onWillAddFirstListener:c,onDidRemoveLastListener:r.clear.bind(r),delay:i.eventDebounceDelay,merge:l}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function Bs(e,t,i){const n=(0,rn.f6)(t)?t.submenu.id:t.id,o="string"===typeof t.title?t.title:t.title.value,s=(0,on.xw)({id:`hide/${e.id}/${n}`,label:(0,Oe.NC)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),r=(0,on.xw)({id:`toggle/${e.id}/${n}`,label:o,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}Fs=Rs([As(3,$t.H),As(4,ye.i6)],Fs);var Hs,Ws=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Vs=function(e,t){return function(i,n){t(i,n,e)}};let js=Hs=class extends a.JT{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(ln.G6||ln.MG)&&this.installWebKitWriteTextWorkaround(),this._register(pe.ju.runAndSubscribe(he.Xo,(({window:e,disposables:t})=>{t.add((0,he.nm)(e.document,"copy",(()=>this.clearResources())))}),{window:r.Ex,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new ii.CR;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(pe.ju.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,he.nm)(t,"click",e)),i.add((0,he.nm)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,he.uP)(),i=t.activeElement,n=t.body.appendChild((0,he.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,Jn.vp)(e.substring(0,Hs.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};js.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,js=Hs=Ws([Vs(0,Ee),Vs(1,Je.VZ)],js);var zs=i(2827),Us=i(39595),$s=i(17141),qs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ks=function(e,t){return function(i,n){t(i,n,e)}};const Gs="data-keybinding-context";class Zs{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Qs extends Zs{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Qs.INSTANCE=new Qs;class Ys extends Zs{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=$s.Id.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new er(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Us.$.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new er(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Ys._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Ys._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Ys._keyPrefix="config.";class Js{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Xs{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class er{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class tr{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}function ir(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}class nr extends a.JT{constructor(e){super(),this._onDidChangeContext=this._register(new pe.K3({merge:e=>new tr(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Js(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new sr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId),i=!e||e.evaluate(t);return i}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Xs(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Xs(e))}getContext(e){return this._isDisposed?Qs.INSTANCE:this.getContextValuesContainer(rr(e))}dispose(){super.dispose(),this._isDisposed=!0}}let or=class extends nr{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Ys(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Qs.INSTANCE:this._contexts.get(e)||Qs.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new Zs(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};or=qs([Ks(0,$.Ui)],or);class sr extends nr{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new a.XK),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Gs)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Gs,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId),i=t.value;ir(e,i)||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Gs),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Qs.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function rr(e){while(e){if(e.hasAttribute(Gs)){const t=e.getAttribute(Gs);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function ar(e,t,i){const n=e.get(ye.i6);n.createKey(String(t),lr(i))}function lr(e){return(0,g.rs)(e,(e=>"object"===typeof e&&1===e.$mid?c.o.revive(e).toString():e instanceof c.o?e.toString():void 0))}$t.P.registerCommand("_setContext",ar),$t.P.registerCommand({id:"getContextKeyInfo",handler(){return[...ye.uy.all()].sort(((e,t)=>e.key.localeCompare(t.key)))},metadata:{description:(0,Oe.NC)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),$t.P.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ye.uy.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var cr=i(42976);class dr{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class ur{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new dr(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var hr=i(39159);const gr=!1;class pr extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class fr{constructor(e=new hr.y,t=!1,i,n=gr){var o;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._activeInstantiations=new Set,this._services.set(Le.TG,this),this._globalGraph=n?null!==(o=null===i||void 0===i?void 0:i._globalGraph)&&void 0!==o?o:new ur((e=>e)):void 0}createChild(e){return new fr(e,this._strict,this,this._enableTracing)}invokeFunction(e,...t){const i=mr.traceInvocation(this._enableTracing,e);let n=!1;try{const o={get:e=>{if(n)throw(0,Re.L6)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}};return e(o,...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof cr.M?(i=mr.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=mr.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=Le.I8.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),o=[];for(const r of n){const t=this._getOrCreateServiceInstance(r.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`,!1),o.push(t)}const s=n.length>0?n[0].index:t.length;if(t.length!==s){console.trace(`[createInstance] First service dependency of ${e.name} at position ${s+1} conflicts with ${t.length} static arguments`);const i=s-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,s)}return Reflect.construct(e,t.concat(o))}_setServiceInstance(e,t){if(this._services.get(e)instanceof cr.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof cr.M?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const o=new ur((e=>e.id.toString()));let s=0;const r=[{id:e,desc:t,_trace:i}];while(r.length){const t=r.pop();if(o.lookupOrInsertNode(t),s++>1e3)throw new pr(o);for(const i of Le.I8.getServiceDependencies(t.desc.ctor)){const s=this._getServiceInstanceOrDescriptor(i.id);if(s||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),s instanceof cr.M){const e={id:i.id,desc:s,_trace:t._trace.branch(i.id,!0)};o.insertEdge(t,e),r.push(e)}}}while(1){const e=o.roots();if(0===e.length){if(!o.isEmpty())throw new pr(o);break}for(const{data:t}of e){const e=this._getServiceInstanceOrDescriptor(t.id);if(e instanceof cr.M){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}o.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof cr.M)return this._createServiceInstance(e,t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,o){if(n){const n=new fr(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const s=new Map,r=new ii.R5((()=>{const e=n._createInstance(t,i,o);for(const[t,i]of s){const n=e[t];if("function"===typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return s.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!r.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=s.get(t);e||(e=new fe.S,s.set(t,e));const i=(i,n,o)=>{if(r.isInitialized)return r.value[t](i,n,o);{const t={listener:[i,n,o],disposable:void 0},s=e.push(t),r=(0,a.OF)((()=>{var e;s(),null===(e=t.disposable)||void 0===e||e.dispose()}));return r}};return i}if(t in e)return e[t];const i=r.value;let n=i[t];return"function"!==typeof n||(n=n.bind(i),e[t]=n),n},set(e,t,i){return r.value[t]=i,!0},getPrototypeOf(e){return t.prototype}})}return this._createInstance(t,i,o)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class mr{static traceInvocation(e,t){return e?new mr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):mr._None}static traceCreation(e,t){return e?new mr(1,t.name):mr._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new mr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;mr._totals+=e;let t=!1;function i(e,n){const o=[],s=new Array(e+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,o.push(`${s}CREATES -> ${r}`);const n=i(e+1,l);n&&o.push(n)}else o.push(`${s}uses -> ${r}`);return o.join("\n")}const n=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${mr._totals.toFixed(2)}ms)`];(e>2||t)&&mr.all.add(n.join("\n"))}}mr.all=new Set,mr._None=new class extends mr{constructor(){super(0,null)}stop(){}branch(){return this}},mr._totals=0;const vr=new Set([ge.lg.inMemory,ge.lg.vscodeSourceControl,ge.lg.walkThrough,ge.lg.walkThroughSnippet]);class _r{constructor(){this._byResource=new qt.Y9,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new qt.Y9,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){const i=this._byResource.get(e);return null===i||void 0===i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const o=this._byResource.get(e);o&&(i=o.delete(t));const s=this._byOwner.get(t);if(s&&(n=s.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return"string"===typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:Us.$.empty():c.o.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:Us.$.empty():Us.$.map(Us.$.concat(...this._byOwner.values()),(e=>e[1]))}}class br{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new qt.Y9,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(vr.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===Vn.ZL.Error?t.errors+=1:i===Vn.ZL.Warning?t.warnings+=1:i===Vn.ZL.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class yr{constructor(){this._onMarkerChanged=new pe.D0({delay:0,merge:yr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new _r,this._stats=new br(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,ke.XY)(i)){const i=this._data.delete(t,e);i&&this._onMarkerChanged.fire([t])}else{const n=[];for(const o of i){const i=yr._toMarker(e,t,o);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:u,tags:h}=i;if(s)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,d=d>0?d:l,{resource:t,owner:e,code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:u,tags:h}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const o of n){const t=Us.$.first(o);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,ke.Of)(t)){const n=new qt.Y9;for(const{resource:o,marker:s}of t){const t=yr._toMarker(e,o,s);if(!t)continue;const r=n.get(o);r?r.push(t):(n.set(o,[t]),i.push(o))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(yr._accept(i,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=this._data.values(null!==i&&void 0!==i?i:t),s=[];for(const t of e)for(const e of t)if(yr._accept(e,n)){const t=s.push(e);if(o>0&&t===o)return s}return s}{const e=[];for(const t of this._data.values())for(const i of t)if(yr._accept(i,n)){const t=e.push(i);if(o>0&&t===o)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new qt.Y9;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class wr extends a.JT{constructor(){super(...arguments),this._configurationModel=new Yt}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new Yt;const e=Zt.B.as(Gt.IP.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],o=t[n];void 0!==e?this._configurationModel.addValue(n,e):o?this._configurationModel.addValue(n,o.default):this._configurationModel.removeValue(n)}}}var Cr=i(81005);class Sr extends a.JT{constructor(e,t=[]){super(),this.logger=new Je.qA([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var xr=i(64559),kr=i(913),Lr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Er=function(e,t){return function(i,n){t(i,n,e)}};class Nr{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new pe.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Dr=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new a.Jz(new Nr(t))):Promise.reject(new Error("Model not found"))}};Dr=Lr([Er(0,L.q)],Dr);class Tr{show(){return Tr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}Tr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Ir{withProgress(e,t,i){return t({report:()=>{}})}}class Rr{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}}class Ar{async confirm(e){const t=this.doConfirm(e.message,e.detail);return{confirmed:t,checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),r.Ex.confirm(i)}async prompt(e){var t,i;let n;const o=this.doConfirm(e.message,e.detail);if(o){const o=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&o.push(e.cancelButton),n=await(null===(i=o[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:Ae.Z.Error,message:e,detail:t})}}class Or{info(e){return this.notify({severity:Ae.Z.Info,message:e})}warn(e){return this.notify({severity:Ae.Z.Warning,message:e})}error(e){return this.notify({severity:Ae.Z.Error,message:e})}notify(e){switch(e.severity){case Ae.Z.Error:console.error(e.message);break;case Ae.Z.Warning:console.warn(e.message);break;default:console.log(e.message);break}return Or.NO_OP}prompt(e,t,i,n){return Or.NO_OP}status(e,t){return a.JT.None}}Or.NO_OP=new Me.EO;let Pr=class{constructor(e){this._onWillExecuteCommand=new pe.Q5,this._onDidExecuteCommand=new pe.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=$t.P.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};Pr=Lr([Er(0,Le.TG)],Pr);let Mr=class extends ui{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const r=e=>{const t=new a.SL;t.add(he.nm(e,he.tw.KEY_DOWN,(e=>{const t=new It.y(e),i=this._dispatch(t,t.target);i&&(t.preventDefault(),t.stopPropagation())}))),t.add(he.nm(e,he.tw.KEY_UP,(e=>{const t=new It.y(e),i=this._singleModifierDispatch(t,t.target);i&&t.preventDefault()}))),this._domNodeListeners.push(new Fr(e,t))},l=e=>{for(let t=0;t{e.getOption(61)||r(e.getContainerDomNode())},d=e=>{e.getOption(61)||l(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(c)),this._register(s.onCodeEditorRemove(d)),s.listCodeEditors().forEach(c);const u=e=>{r(e.getContainerDomNode())},h=e=>{l(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(u)),this._register(s.onDiffEditorRemove(h)),s.listDiffEditors().forEach(u)}addDynamicKeybinding(e,t,i,n){return(0,a.F8)($t.P.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;const i=(0,Ft.Z9)(e.keybinding,St.OS);return{keybinding:i,command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,a.OF)((()=>{for(let e=0;ethis._log(e)))}return this._cachedResolver}_documentHasFocus(){return r.Ex.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const e=o.when||void 0,s=o.keybinding;if(s){const r=bi.resolveKeybinding(s,St.OS);for(const s of r)i[n++]=new pi(s,o.command,o.commandArgs,e,t,null,!1)}else i[n++]=new pi(void 0,o.command,o.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Ft.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new bi([t],St.OS)}};Mr=Lr([Er(0,ye.i6),Er(1,$t.H),Er(2,Si.b),Er(3,Me.lT),Er(4,Je.VZ),Er(5,h.$)],Mr);class Fr extends a.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Br(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof c.o)}class Hr{constructor(){this._onDidChangeConfiguration=new pe.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new wr;this._configuration=new ei(e.reload(),new Yt,new Yt,new Yt),e.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,n=Br(e)?e:Br(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new ti({keys:i,overrides:[]},t,this._configuration);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Wr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new pe.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Vt.L.isIPosition(t)?t:null,o=n?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,s=e?this.getLanguage(e,n):void 0;return"undefined"===typeof o?this.configurationService.getValue({resource:e,overrideIdentifier:s}):this.configurationService.getValue(o,{resource:e,overrideIdentifier:s})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Wr=Lr([Er(0,$.Ui),Er(1,L.q),Er(2,w.O)],Wr);let Vr=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:St.IJ||St.dz?"\n":"\r\n"}};Vr=Lr([Er(0,$.Ui)],Vr);class jr{publicLog2(){}}class zr{constructor(){const e=c.o.from({scheme:zr.SCHEME,authority:"model",path:"/"});this.workspace={id:xi.p$,folders:[new xi.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===zr.SCHEME?this.workspace.folders[0]:null}}function Ur(e,t,i){if(!t)return;if(!(e instanceof Hr))return;const n=[];Object.keys(t).forEach((e=>{(0,Ht.ei)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,Ht.Pe)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}zr.SCHEME="inmemory";let $r=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:Bt.fo.convert(e),n=new Map;for(const r of i){if(!(r instanceof Bt.Gl))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let t=n.get(e);t||(t=[],n.set(e,t)),t.push(Wt.h.replaceMove(jt.e.lift(r.textEdit.range),r.textEdit.text))}let o=0,s=0;for(const[r,a]of n)r.pushStackElement(),r.pushEditOperations([],a,(()=>[])),r.pushStackElement(),s+=1,o+=a.length;return{ariaSummary:l.WU(ki.iN.bulkEditServiceSummary,o,s),isApplied:o>0}}};$r=Lr([Er(0,L.q)],$r);class qr{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Li.EZ)(e)}}let Kr=class extends Mi{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Kr=Lr([Er(0,Ee),Er(1,h.$)],Kr);class Gr{constructor(){this._neverEmitter=new pe.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Zr extends tn{constructor(){super()}}class Qr extends Sr{constructor(){super(new Je.kw)}}let Yr=class extends Tn{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s),this.configure({blockMouse:!1})}};Yr=Lr([Er(0,Si.b),Er(1,Me.lT),Er(2,mt.u),Er(3,vt.d),Er(4,rn.co),Er(5,ye.i6)],Yr);class Jr{async playSignal(e,t){}}var Xr;(0,we.z)($.Ui,Hr,0),(0,we.z)(Ut.V,Wr,0),(0,we.z)(Ut.y,Vr,0),(0,we.z)(xi.ec,zr,0),(0,we.z)(wi.e,qr,0),(0,we.z)(Si.b,jr,0),(0,we.z)(Pe.S,Ar,0),(0,we.z)(kr.Y,Rr,0),(0,we.z)(Me.lT,Or,0),(0,we.z)(Vn.lT,yr,0),(0,we.z)(w.O,Zr,0),(0,we.z)(ks.Z,xs.nI,0),(0,we.z)(Je.VZ,Qr,0),(0,we.z)(L.q,ro,0),(0,we.z)(Zn.i,qn,0),(0,we.z)(ye.i6,or,0),(0,we.z)(Ci.R9,Ir,0),(0,we.z)(Ci.ek,Tr,0),(0,we.z)(Is.Uy,Is.vm,0),(0,we.z)(Wn.p,p.eu,0),(0,we.z)(Bt.vu,$r,0),(0,we.z)(Ei.Y,Gr,0),(0,we.z)(zt.S,Dr,0),(0,we.z)(xt.F,Ns,0),(0,we.z)(lo.Lw,lo.XN,0),(0,we.z)($t.H,Pr,0),(0,we.z)(vt.d,Mr,0),(0,we.z)(uo.eJ,ws,0),(0,we.z)(mt.u,Kr,0),(0,we.z)(yt.v,Hn,0),(0,we.z)(zs.p,js,0),(0,we.z)(mt.i,Yr,0),(0,we.z)(rn.co,Os,0),(0,we.z)(Cr.IV,Jr,0),function(e){const t=new hr.y;for(const[a,c]of(0,we.d)())t.set(a,c);const i=new fr(t,!0);function n(e){o||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof cr.M?i.invokeFunction((t=>t.get(e))):n}t.set(Le.TG,i),e.get=n;let o=!1;const s=new pe.Q5;function r(e){if(o)return i;o=!0;for(const[i,o]of(0,we.d)())t.get(i)||t.set(i,o);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,Le.yh)(i),o=t.get(n);o instanceof cr.M&&t.set(n,e[i])}const n=(0,xr.n)();for(const t of n)try{i.createInstance(t)}catch(r){(0,Re.dL)(r)}return s.fire(),i}function l(e){if(o)return e();const t=new a.SL,i=t.add(s.event((()=>{i.dispose(),t.add(e())})));return t}e.initialize=r,e.withServices=l}(Xr||(Xr={}));var ea=i(69278),ta=i(11030),ia=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},na=function(e,t){return function(i,n){t(i,n,e)}};let oa=0,sa=!1;function ra(e){if(!e){if(sa)return;sa=!0}ce.wW(e||r.Ex.document.body)}let aa=class extends de.Gm{constructor(e,t,i,n,o,s,r,a,l,c,d,u){const h={...t};h.ariaLabel=h.ariaLabel||ki.B8.editorViewAccessibleLabel,h.ariaLabel=h.ariaLabel+";"+ki.B8.accessibilityHelpMessage,super(e,h,{},i,n,o,s,a,l,c,d,u),this._standaloneKeybindingService=r instanceof Mr?r:null,ra(h.ariaContainerElement),(0,ta.r)(((e,t)=>i.createInstance(ft,e,t,{})))}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++oa,o=ye.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),a.JT.None;const t=e.id,i=e.label,n=ye.Ao.and(ye.Ao.equals("editorId",this.getId()),ye.Ao.deserialize(e.precondition)),o=e.keybindings,s=ye.Ao.and(n,ye.Ao.deserialize(e.keybindingContext)),r=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(t,...i)=>Promise.resolve(e.run(this,...i)),d=new a.SL,u=this.getId()+":"+t;if(d.add($t.P.registerCommand(u,c)),r){const e={command:{id:u,title:i},when:n,group:r,order:l};d.add(rn.BH.appendMenuItem(rn.eH.EditorContext,e))}if(Array.isArray(o))for(const a of o)d.add(this._standaloneKeybindingService.addDynamicKeybinding(u,a,c,s));const h=new ue.p(u,i,i,void 0,n,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,h),d.add((0,a.OF)((()=>{this._actions.delete(t)}))),d}_triggerCommand(e,t){if(this._codeEditorService instanceof xe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};aa=ia([na(2,Le.TG),na(3,h.$),na(4,$t.H),na(5,ye.i6),na(6,vt.d),na(7,me.XE),na(8,Me.lT),na(9,xt.F),na(10,C.c_),na(11,ct.p)],aa);let la=class extends aa{constructor(e,t,i,n,o,s,r,a,l,c,d,u,h,g,p){const f={...t};Ur(c,f,!1);const m=a.registerEditorContainer(e);"string"===typeof f.theme&&a.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let _;if(delete f.model,super(e,f,i,n,o,s,r,a,l,d,g,p),this._configurationService=c,this._standaloneThemeService=a,this._register(m),"undefined"===typeof v){const e=h.getLanguageIdByMimeType(f.language)||f.language||S.bd;_=da(u,h,f.value||"",e,void 0),this._ownsModel=!0}else _=v,this._ownsModel=!1;if(this._attachModel(_),_){const e={oldModelUrl:null,newModelUrl:_.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ur(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};la=ia([na(2,Le.TG),na(3,h.$),na(4,$t.H),na(5,ye.i6),na(6,vt.d),na(7,ks.Z),na(8,Me.lT),na(9,$.Ui),na(10,xt.F),na(11,L.q),na(12,w.O),na(13,C.c_),na(14,ct.p)],la);let ca=class extends ea.p{constructor(e,t,i,n,o,s,r,a,l,c,d,u){const h={...t};Ur(a,h,!0);const g=s.registerEditorContainer(e);"string"===typeof h.theme&&s.setTheme(h.theme),"undefined"!==typeof h.autoDetectHighContrast&&s.setAutoDetectHighContrast(Boolean(h.autoDetectHighContrast)),super(e,h,{},n,i,o,u,c),this._configurationService=a,this._standaloneThemeService=s,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ur(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(aa,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function da(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),ua(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return ua(e,i,t.createById(n),o)}function ua(e,t,i,n){return e.createModel(t,i,n)}ca=ia([na(2,Le.TG),na(3,ye.i6),na(4,h.$),na(5,ks.Z),na(6,Me.lT),na(7,$.Ui),na(8,mt.i),na(9,Ci.ek),na(10,zs.p),na(11,Cr.IV)],ca);var ha=i(33755),ga=i(66508),pa=i(75912),fa=i(2133),ma=i(4225),va=i(12412),_a=i(54644),ba=i(44950),ya=i(74647);class wa extends on.Wi{constructor(e){super(),this._getContext=e}runAction(e,t){return super.runAction(e,this._getContext())}}var Ca=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Sa=function(e,t){return function(i,n){t(i,n,e)}};class xa{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let ka=class extends a.JT{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,fa.uh)(this,void 0),this._collapsed=(0,ha.nK)(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=(0,fa.uh)(this,500),this.contentHeight=(0,ha.nK)(this,(e=>{const t=this._collapsed.read(e)?0:this._editorContentHeight.read(e);return t+this._outerEditorHeight})),this._modifiedContentWidth=(0,fa.uh)(this,0),this._modifiedWidth=(0,fa.uh)(this,0),this._originalContentWidth=(0,fa.uh)(this,0),this._originalWidth=(0,fa.uh)(this,0),this.maxScroll=(0,ha.nK)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,he.h)("div.multiDiffEntry",[(0,he.h)("div.header@header",[(0,he.h)("div.header-content",[(0,he.h)("div.collapse-button@collapseButton"),(0,he.h)("div.file-path",[(0,he.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,he.h)("div.status.deleted@status",["R"]),(0,he.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,he.h)("div.actions@actions")])]),(0,he.h)("div.editorParent",[(0,he.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(ea.p,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=La(this.editor.getModifiedEditor()),this.isOriginalFocused=La(this.editor.getOriginalEditor()),this.isFocused=(0,ha.nK)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new a.SL,this._headerHeight=48,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const o=new ts.z(this._elements.collapseButton,{});this._register((0,ha.EH)((e=>{o.element.className="",o.icon=this._collapsed.read(e)?gn.l.chevronRight:gn.l.chevronDown}))),this._register(o.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,ha.EH)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,fa.Bl)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,ha.EH)((e=>{const t=this.isFocused.read(e);this._elements.root.classList.toggle("focused",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(ya.r,this._elements.actions,rn.eH.MultiDiffEditorFileToolbar,{actionRunner:this._register(new wa((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,sn.Id)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),(0,fa.Bl)((n=>{var o,s,r,a;null===(o=this._resourceLabel)||void 0===o||o.setUri(null!==(s=e.viewModel.modifiedUri)&&void 0!==s?s:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,c=!1,d=!1,u="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(u="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(u="A",d=!0):(u="D",c=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",c),this._elements.status.classList.toggle("added",d),this._elements.status.innerText=u,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const o=e.length-this._headerHeight,s=Math.max(0,Math.min(n.start-e.start,o));this._elements.header.style.transform=`translateY(${s}px)`,(0,fa.Bl)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",s>0||i>0),this._elements.header.classList.toggle("collapsed",s===o)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function La(e){return(0,ha.rD)((t=>{const i=new a.SL;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasWidgetFocus()))}ka=Ca([Sa(3,Le.TG)],ka);class Ea{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Na=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Da=function(e,t){return function(i,n){t(i,n,e)}};let Ta=class extends a.JT{constructor(e,t,i,n,o,s){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=o,this._parentInstantiationService=s,this._elements=(0,he.h)("div.monaco-component.multiDiffEditor",[(0,he.h)("div@content",{style:{overflow:"hidden"}}),(0,he.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new ga.DU(this._element,void 0)),this._objectPool=this._register(new Ea((e=>{const t=this._instantiationService.createInstance(ka,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this._scrollable=this._register(new ma.Rm({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,he.jL)((0,he.Jj)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hn.$Z(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=(0,ha.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,ha.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItems=(0,ha.Be)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return[];const n=i.items.read(e);return n.map((e=>{var i;const n=t.add(new Ia(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),o=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return o&&(0,fa.PS)((e=>{n.setViewState(o,e)})),n}))})),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this.activeDiffItem=(0,ha.nK)(this,(e=>this._viewItems.read(e).find((t=>{var i;return null===(i=t.template.read(e))||void 0===i?void 0:i.isFocused.read(e)})))),this.lastActiveDiffItem=(0,ha.bx)(((e,t)=>{var i;return null!==(i=this.activeDiffItem.read(e))&&void 0!==i?i:t})),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new hr.y([ye.i6,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(ba.u.inMultiDiffEditor.key,!0),this._register((0,ha.gp)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[n,o]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(n,void 0);e.set(o),t.add((0,a.OF)((()=>e.reset())))}})));const r=this._parentContextKeyService.createKey(ba.u.multiDiffEditorAllCollapsed.key,!1);this._register((0,ha.EH)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));r.set(i)}}))),this._register((0,ha.EH)((e=>{const t=this.lastActiveDiffItem.read(e);(0,fa.PS)((i=>{var n;null===(n=this._viewModel.read(e))||void 0===n||n.activeDiffItem.set(null===t||void 0===t?void 0:t.viewModel,i)}))}))),this._register((0,ha.EH)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._elements.content.style.position="relative",this._register((0,ha.EH)((e=>{const t=this._sizeObserver.height.read(e);this._elements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._elements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let o=n;const s=this._viewItems.read(e),r=(0,pa.dI)(s,(t=>t.maxScroll.read(e).maxScroll));if(r){const t=r.maxScroll.read(e);o=n+t.maxScroll}this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:o})}))),e.replaceChildren(this._scrollableElement.getDomNode()),this._register((0,a.OF)((()=>{e.replaceChildren()}))),this._register(this._register((0,ha.EH)((e=>{(0,fa.Bl)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,o=0;const s=this._sizeObserver.height.read(e),r=va.q.ofStartAndLength(t,s),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const c=l.contentHeight.read(e),d=Math.min(c,s),u=va.q.ofStartAndLength(n,d),h=va.q.ofStartAndLength(o,c);if(h.isBefore(r))i-=c-d,l.hide();else if(h.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-h.start,c-d));i-=e;const n=va.q.ofStartAndLength(t+i,s);l.render(u,e,a,n)}n+=d+this._spaceBetweenPx,o+=c+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(t+i)}px)`}};Ta=Na([Da(4,ye.i6),Da(5,Le.TG)],Ta);class Ia extends a.JT{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register((0,fa.DN)(this,void 0)),this.contentHeight=(0,ha.nK)(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=(0,ha.nK)(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=(0,ha.nK)(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=(0,ha.uh)(this,!1),this._register((0,ha.EH)((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register((0,ha.EH)((e=>{const t=this._templateRef.read(e);if(!t)return;const i=this._isHidden.read(e);if(!i)return;const n=t.object.isFocused.read(e);n||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),o=null===(i=e.selections)||void 0===i?void 0:i.map(_a.Y.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:o},t);const s=this._templateRef.get();s&&o&&s.object.editor.setSelections(o)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,fa.PS)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let o=this._templateRef.get();if(!o){o=this._objectPool.getUnusedObj(new xa(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(o,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&o.object.editor.setSelections(e)}o.object.render(e,i,t,n)}}(0,ut.P6G)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,Oe.NC)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,ut.P6G)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,Oe.NC)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,ut.P6G)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,Oe.NC)("multiDiffEditor.border","The border color of the multi file diff editor"));var Ra=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Aa=function(e,t){return function(i,n){t(i,n,e)}};let Oa=class extends a.JT{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,ha.uh)(this,void 0),this._viewModel=(0,ha.uh)(this,void 0),this._widgetImpl=(0,ha.Be)(this,((e,t)=>((0,ga.NW)(ka,e),t.add(this._instantiationService.createInstance((0,ga.NW)(Ta,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,ha.jx)(this._widgetImpl))}};function Pa(e,t,i){const n=Xr.initialize(i||{});return n.createInstance(la,e,t)}function Ma(e){const t=Xr.get(h.$);return t.onCodeEditorAdd((t=>{e(t)}))}function Fa(e){const t=Xr.get(h.$);return t.onDiffEditorAdd((t=>{e(t)}))}function Ba(){const e=Xr.get(h.$);return e.listCodeEditors()}function Ha(){const e=Xr.get(h.$);return e.listDiffEditors()}function Wa(e,t,i){const n=Xr.initialize(i||{});return n.createInstance(ca,e,t)}function Va(e,t){const i=Xr.initialize(t||{});return new Oa(e,{},i)}function ja(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return $t.P.registerCommand(e.id,e.run)}function za(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ye.Ao.deserialize(e.precondition),i=(i,...n)=>u._l.runEditorCommand(i,n,t,((t,i,n)=>Promise.resolve(e.run(i,...n)))),n=new a.SL;if(n.add($t.P.registerCommand(e.id,i)),e.contextMenuGroupId){const i={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};n.add(rn.BH.appendMenuItem(rn.eH.EditorContext,i))}if(Array.isArray(e.keybindings)){const i=Xr.get(vt.d);if(i instanceof Mr){const o=ye.Ao.and(t,ye.Ao.deserialize(e.keybindingContext));n.add(i.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:o})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return n}function Ua(e){return $a([e])}function $a(e){const t=Xr.get(vt.d);return t instanceof Mr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ye.Ao.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),a.JT.None)}function qa(e,t,i){const n=Xr.get(w.O),o=n.getLanguageIdByMimeType(t)||t;return da(Xr.get(L.q),n,e,o,i)}function Ka(e,t){const i=Xr.get(w.O),n=i.getLanguageIdByMimeType(t)||t||S.bd;e.setLanguage(i.createById(n))}function Ga(e,t,i){if(e){const n=Xr.get(Vn.lT);n.changeOne(t,e.uri,i)}}function Za(e){const t=Xr.get(Vn.lT);t.changeAll(e,[])}function Qa(e){const t=Xr.get(Vn.lT);return t.read(e)}function Ya(e){const t=Xr.get(Vn.lT);return t.onMarkerChanged(e)}function Ja(e){const t=Xr.get(L.q);return t.getModel(e)}function Xa(){const e=Xr.get(L.q);return e.getModels()}function el(e){const t=Xr.get(L.q);return t.onModelAdded(e)}function tl(e){const t=Xr.get(L.q);return t.onModelRemoved(e)}function il(e){const t=Xr.get(L.q);return t.onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function nl(e){return f(Xr.get(L.q),Xr.get(C.c_),e)}function ol(e,t){const i=Xr.get(w.O),n=Xr.get(ks.Z);return se.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))}function sl(e,t,i){const n=Xr.get(w.O),o=Xr.get(ks.Z);return o.registerEditorContainer(r.Ex.document.body),se.colorize(n,e,t,i)}function rl(e,t,i=4){const n=Xr.get(ks.Z);return n.registerEditorContainer(r.Ex.document.body),se.colorizeModelLine(e,t,i)}function al(e){const t=y.RW.get(e);return t||{getInitialState:()=>x.TJ,tokenize:(t,i,n)=>(0,x.Ri)(e,n)}}function ll(e,t){y.RW.getOrCreate(t);const i=al(t),n=(0,l.uq)(e),o=[];let s=i.getInitialState();for(let r=0,a=n.length;r{var o;if(!i)return null;const s=null===(o=t.options)||void 0===o?void 0:o.selection;let r;return s&&"number"===typeof s.endLineNumber&&"number"===typeof s.endColumn?r=s:s&&(r={lineNumber:s.startLineNumber,column:s.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}function fl(){return{create:Pa,getEditors:Ba,getDiffEditors:Ha,onDidCreateEditor:Ma,onDidCreateDiffEditor:Fa,createDiffEditor:Wa,addCommand:ja,addEditorAction:za,addKeybindingRule:Ua,addKeybindingRules:$a,createModel:qa,setModelLanguage:Ka,setModelMarkers:Ga,getModelMarkers:Qa,removeAllMarkers:Za,onDidChangeMarkers:Ya,getModels:Xa,getModel:Ja,onDidCreateModel:el,onWillDisposeModel:tl,onDidChangeModelLanguage:il,createWebWorker:nl,colorizeElement:ol,colorize:sl,colorizeModelLine:rl,tokenize:ll,defineTheme:cl,setTheme:dl,remeasureFonts:ul,registerCommand:hl,registerLinkOpener:gl,registerEditorOpener:pl,AccessibilitySupport:E.ao,ContentWidgetPositionPreference:E.r3,CursorChangeReason:E.Vi,DefaultEndOfLine:E._x,EditorAutoIndentStrategy:E.rf,EditorOption:E.wT,EndOfLinePreference:E.gm,EndOfLineSequence:E.jl,MinimapPosition:E.F5,MouseTargetType:E.MG,OverlayWidgetPositionPreference:E.E$,OverviewRulerLane:E.sh,GlyphMarginLane:E.U,RenderLineNumbersType:E.Lu,RenderMinimap:E.vQ,ScrollbarVisibility:E.g_,ScrollType:E.g4,TextEditorCursorBlinkingStyle:E.In,TextEditorCursorStyle:E.d2,TrackedRangeStickiness:E.OI,WrappingIndent:E.up,InjectedTextCursorStops:E.RM,PositionAffinity:E.py,ShowLightbulbIconMode:E.$r,ConfigurationChangedEvent:o.Bb,BareFontInfo:_.E4,FontInfo:_.pR,TextModelResolvedOptions:k.dJ,FindMatch:k.tk,ApplyUpdateResult:o.rk,EditorZoom:v.C,createMultiFileDiffEditor:Va,EditorType:b.g,EditorOptions:o.BH}}Oa=Ra([Aa(2,Le.TG)],Oa);var ml=i(60204);function vl(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}function _l(e,t){return"boolean"===typeof e?e:t}function bl(e,t){return"string"===typeof e?e:t}function yl(e){const t={};for(const i of e)t[i]=!0;return t}function wl(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=yl(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Cl(e,t){t=t.replace(/@@/g,"");let i,n=0;do{i=!1,t=t.replace(/@(\w+)/g,(function(n,o){i=!0;let s="";if("string"===typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?W(e,"language definition does not contain attribute '"+o+"', used at: "+t):W(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return M(s)?"":"(?:"+s+")"})),n++}while(i&&n<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}function Sl(e,t,i,n){if(n<0)return e;if(n=100){n-=100;const e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw W(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!==typeof i.next)throw W(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!z(e,V(e,o,"",[],""))))throw W(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"===typeof i.goBack&&(n.goBack=i.goBack),"string"===typeof i.switchTo&&(n.switchTo=i.switchTo),"string"===typeof i.log&&(n.log=i.log),"string"===typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let o=0,s=i.length;o0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Cl(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=kl(e,this.name,t)}}function El(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=_l(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"===typeof t.start?t.start:null,i.ignoreCase=_l(t.ignoreCase,!1),i.unicode=_l(t.unicode,!1),i.tokenPostfix=bl(t.tokenPostfix,"."+i.languageId),i.defaultToken=bl(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function o(e,s,r){for(const a of r){let r=a.include;if(r){if("string"!==typeof r)throw W(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw W(i,"include target '"+r+"' is not defined at: "+e);o(e+"."+r,s,t.tokenizer[r])}else{const t=new Ll(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw W(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw W(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=_l(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw W(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,o("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw W(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw W(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw W(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:e.token+i.tokenPostfix,open:F(i,e.open),close:F(i,e.close)})}return i.brackets=s,i.noThrow=!0,i}function Nl(e){S.dQ.registerLanguage(e)}function Dl(){let e=[];return e=e.concat(S.dQ.getLanguages()),e}function Tl(e){const t=Xr.get(w.O);return t.languageIdCodec.encodeLanguageId(e)}function Il(e,t){return Xr.withServices((()=>{const i=Xr.get(w.O),n=i.onDidRequestRichLanguageFeatures((i=>{i===e&&(n.dispose(),t())}));return n}))}function Rl(e,t){return Xr.withServices((()=>{const i=Xr.get(w.O),n=i.onDidRequestBasicLanguageFeatures((i=>{i===e&&(n.dispose(),t())}));return n}))}function Al(e,t){const i=Xr.get(w.O);if(!i.isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);const n=Xr.get(C.c_);return n.register(e,t,100)}class Ol{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return Pl.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new y.DI(n.tokens,n.endState)}}class Pl{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,s=e.length;o0&&o[s-1]===a)continue;let c=e.startIndex;0===l?c=0:c{const i=await Promise.resolve(t.create());return i?Ml(i)?Wl(e,i):new ie(Xr.get(w.O),Xr.get(ks.Z),e,El(e,i),Xr.get($.Ui)):null}));return y.RW.registerFactory(e,i)}function jl(e,t){const i=Xr.get(w.O);if(!i.isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return Bl(t)?Vl(e,{create:()=>t}):y.RW.register(e,Wl(e,t))}function zl(e,t){const i=t=>new ie(Xr.get(w.O),Xr.get(ks.Z),e,El(e,t),Xr.get($.Ui));return Bl(t)?Vl(e,{create:()=>t}):y.RW.register(e,i(t))}function Ul(e,t){const i=Xr.get(ct.p);return i.referenceProvider.register(e,t)}function $l(e,t){const i=Xr.get(ct.p);return i.renameProvider.register(e,t)}function ql(e,t){const i=Xr.get(ct.p);return i.newSymbolNamesProvider.register(e,t)}function Kl(e,t){const i=Xr.get(ct.p);return i.signatureHelpProvider.register(e,t)}function Gl(e,t){const i=Xr.get(ct.p);return i.hoverProvider.register(e,{provideHover:(e,i,n)=>{const o=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&o&&(e.range=new jt.e(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),e.range||(e.range=new jt.e(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function Zl(e,t){const i=Xr.get(ct.p);return i.documentSymbolProvider.register(e,t)}function Ql(e,t){const i=Xr.get(ct.p);return i.documentHighlightProvider.register(e,t)}function Yl(e,t){const i=Xr.get(ct.p);return i.linkedEditingRangeProvider.register(e,t)}function Jl(e,t){const i=Xr.get(ct.p);return i.definitionProvider.register(e,t)}function Xl(e,t){const i=Xr.get(ct.p);return i.implementationProvider.register(e,t)}function ec(e,t){const i=Xr.get(ct.p);return i.typeDefinitionProvider.register(e,t)}function tc(e,t){const i=Xr.get(ct.p);return i.codeLensProvider.register(e,t)}function ic(e,t,i){const n=Xr.get(ct.p);return n.codeActionProvider.register(e,{providedCodeActionKinds:null===i||void 0===i?void 0:i.providedCodeActionKinds,documentation:null===i||void 0===i?void 0:i.documentation,provideCodeActions:(e,i,n,o)=>{const s=Xr.get(Vn.lT),r=s.read({resource:e.uri}).filter((e=>jt.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})}function nc(e,t){const i=Xr.get(ct.p);return i.documentFormattingEditProvider.register(e,t)}function oc(e,t){const i=Xr.get(ct.p);return i.documentRangeFormattingEditProvider.register(e,t)}function sc(e,t){const i=Xr.get(ct.p);return i.onTypeFormattingEditProvider.register(e,t)}function rc(e,t){const i=Xr.get(ct.p);return i.linkProvider.register(e,t)}function ac(e,t){const i=Xr.get(ct.p);return i.completionProvider.register(e,t)}function lc(e,t){const i=Xr.get(ct.p);return i.colorProvider.register(e,t)}function cc(e,t){const i=Xr.get(ct.p);return i.foldingRangeProvider.register(e,t)}function dc(e,t){const i=Xr.get(ct.p);return i.declarationProvider.register(e,t)}function uc(e,t){const i=Xr.get(ct.p);return i.selectionRangeProvider.register(e,t)}function hc(e,t){const i=Xr.get(ct.p);return i.documentSemanticTokensProvider.register(e,t)}function gc(e,t){const i=Xr.get(ct.p);return i.documentRangeSemanticTokensProvider.register(e,t)}function pc(e,t){const i=Xr.get(ct.p);return i.inlineCompletionsProvider.register(e,t)}function fc(e,t){const i=Xr.get(ct.p);return i.inlineEditProvider.register(e,t)}function mc(e,t){const i=Xr.get(ct.p);return i.inlayHintsProvider.register(e,t)}function vc(){return{register:Nl,getLanguages:Dl,onLanguage:Il,onLanguageEncountered:Rl,getEncodedLanguageId:Tl,setLanguageConfiguration:Al,setColorMap:Hl,registerTokensProviderFactory:Vl,setTokensProvider:jl,setMonarchTokensProvider:zl,registerReferenceProvider:Ul,registerRenameProvider:$l,registerNewSymbolNameProvider:ql,registerCompletionItemProvider:ac,registerSignatureHelpProvider:Kl,registerHoverProvider:Gl,registerDocumentSymbolProvider:Zl,registerDocumentHighlightProvider:Ql,registerLinkedEditingRangeProvider:Yl,registerDefinitionProvider:Jl,registerImplementationProvider:Xl,registerTypeDefinitionProvider:ec,registerCodeLensProvider:tc,registerCodeActionProvider:ic,registerDocumentFormattingEditProvider:nc,registerDocumentRangeFormattingEditProvider:oc,registerOnTypeFormattingEditProvider:sc,registerLinkProvider:rc,registerColorProvider:lc,registerFoldingRangeProvider:cc,registerDeclarationProvider:dc,registerSelectionRangeProvider:uc,registerDocumentSemanticTokensProvider:hc,registerDocumentRangeSemanticTokensProvider:gc,registerInlineCompletionsProvider:pc,registerInlineEditProvider:fc,registerInlayHintsProvider:mc,DocumentHighlightKind:E.MY,CompletionItemKind:E.cm,CompletionItemTag:E.we,CompletionItemInsertTextRule:E.a7,SymbolKind:E.cR,SymbolTag:E.r4,IndentAction:E.wU,CompletionTriggerKind:E.Ij,SignatureHelpTriggerKind:E.WW,InlayHintKind:E.gl,InlineCompletionTriggerKind:E.bw,InlineEditTriggerKind:E.rn,CodeActionTriggerType:E.np,NewSymbolNameTag:E.w,FoldingRangeKind:y.AD,SelectedSuggestionInfo:y.ln}}var _c=i(42479);o.BH.wrappingIndent.defaultValue=0,o.BH.glyphMargin.defaultValue=!1,o.BH.autoIndent.defaultValue=3,o.BH.overviewRulerLanes.defaultValue=2,_c.xC.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const bc=(0,s.O)();bc.editor=fl(),bc.languages=vc();const yc=bc.CancellationTokenSource,wc=bc.Emitter,Cc=bc.KeyCode,Sc=bc.KeyMod,xc=bc.Position,kc=bc.Range,Lc=bc.Selection,Ec=bc.SelectionDirection,Nc=bc.MarkerSeverity,Dc=bc.MarkerTag,Tc=bc.Uri,Ic=bc.Token,Rc=bc.editor,Ac=bc.languages,Oc=globalThis.MonacoEnvironment;((null===Oc||void 0===Oc?void 0:Oc.globalAPI)||"function"===typeof define&&i.amdO)&&(globalThis.monaco=bc),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});i(54314),i(68434);self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(n,o){var s=i.p,r=(s?t(s)+"/":"")+e[o];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var a=String(window.location),l=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,l.length)!==l){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c="/*"+o+'*/importScripts("'+r+'");',d=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(d)}}return r}}}({editorWorkerService:"editor.worker.js",json:"json.worker.js"});const Pc=n},82584:(e,t,i)=>{"use strict";i.d(t,{j6:()=>n.editor});i(56869),i(99444),i(36485),i(26216),i(82327),i(57383),i(78241),i(81580),i(55808),i(91542),i(34306),i(93123),i(93405),i(8714),i(91715),i(74303),i(61539),i(78166),i(74314),i(79196),i(88969),i(86858),i(64457),i(27234),i(54869),i(74475),i(20713),i(74187),i(61423),i(63156),i(92954),i(73632),i(36108),i(66623),i(44737),i(89806),i(41287),i(78786),i(69225),i(76602),i(86898),i(52394),i(48802),i(95234),i(33082),i(85774),i(67131),i(13512),i(92189),i(83124),i(57283),i(83282),i(58151),i(73276),i(63338),i(46072),i(95673),i(54775),i(7614),i(90452),i(41902),i(75604),i(61150),i(99035);var n=i(30630),o=i(34287);
+function n(e,t){const i=new Set(e.split(","));return t?e=>i.has(e.toLowerCase()):e=>i.has(e)}i.d(t,{C_:()=>Y,DM:()=>m,E9:()=>z,F7:()=>l,Gg:()=>D,HD:()=>y,He:()=>V,Kj:()=>_,Kn:()=>C,NO:()=>a,Nj:()=>H,Od:()=>u,PO:()=>E,Pq:()=>ee,RI:()=>g,S0:()=>N,W7:()=>L,WV:()=>ne,Z6:()=>r,_A:()=>R,_N:()=>f,aU:()=>F,dG:()=>s,fY:()=>n,h5:()=>W,hR:()=>M,hq:()=>oe,ir:()=>B,j5:()=>q,kC:()=>P,kJ:()=>p,kT:()=>o,l7:()=>d,mf:()=>b,rs:()=>O,tI:()=>S,tR:()=>c,vs:()=>J,yA:()=>te,yk:()=>w,yl:()=>$,zw:()=>re});const o={},r=[],s=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),d=Object.assign,u=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},h=Object.prototype.hasOwnProperty,g=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),v=e=>"[object Date]"===k(e),_=e=>"[object RegExp]"===k(e),b=e=>"function"===typeof e,y=e=>"string"===typeof e,w=e=>"symbol"===typeof e,C=e=>null!==e&&"object"===typeof e,S=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),x=Object.prototype.toString,k=e=>x.call(e),L=e=>k(e).slice(8,-1),E=e=>"[object Object]"===k(e),N=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=e=>{const t=Object.create(null);return i=>{const n=t[i];return n||(t[i]=e(i))}},I=/-(\w)/g,R=T((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),A=/\B([A-Z])/g,O=T((e=>e.replace(A,"-$1").toLowerCase())),P=T((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=T((e=>{const t=e?`on${P(e)}`:"";return t})),F=(e,t)=>!Object.is(e,t),B=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},W=e=>{const t=parseFloat(e);return isNaN(t)?e:t},V=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const z=()=>j||(j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{});const U="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",$=n(U);function q(e){if(p(e)){const t={};for(let i=0;i{if(e){const i=e.split(G);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(p(e))for(let i=0;ine(e,t)))}const re=e=>y(e)?e:null==e?"":p(e)||C(e)&&(e.toString===x||!b(e.toString))?JSON.stringify(e,se,2):String(e),se=(e,t)=>t&&t.__v_isRef?se(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,i],n)=>(e[ae(t,n)+" =>"]=i,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ae(e)))}:w(t)?ae(t):!C(t)||p(t)||E(t)?t:String(t),ae=(e,t="")=>{var i;return w(e)?`Symbol(${null!=(i=e.description)?i:t})`:e}},7087:(e,t,i)=>{"use strict";var n=i(56586),o=i(44793),r=i(19351);function s(e,t,i,o){return new n(e,t,i,o)}s.version=i(8675),s.AlgoliaSearchHelper=n,s.SearchParameters=o,s.SearchResults=r,e.exports=s},23060:(e,t,i)=>{"use strict";var n=i(36939),o=i(65734);function r(e,t){this.main=e,this.fn=t,this.lastResults=null}o(r,n),r.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},r.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=r},28129:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){return new t({params:this.params.concat(e)})},removeParams:function(e){return new t({params:this.params.filter((function(t){return t.$$id!==e}))})}},e.exports=t},3410:(e,t,i)=>{"use strict";var n=i(12166),o=i(10947),r=i(39671),s={addRefinement:function(e,t,i){if(s.isRefined(e,t,i))return e;var o=""+i,r=e[t]?e[t].concat(o):[o],a={};return a[t]=r,n({},a,e)},removeRefinement:function(e,t,i){if(void 0===i)return s.clearRefinement(e,(function(e,i){return t===i}));var n=""+i;return s.clearRefinement(e,(function(e,i){return t===i&&n===e}))},toggleRefinement:function(e,t,i){if(void 0===i)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,i)?s.removeRefinement(e,t,i):s.addRefinement(e,t,i)},clearRefinement:function(e,t,i){if(void 0===t)return o(e)?{}:e;if("string"===typeof t)return r(e,[t]);if("function"===typeof t){var n=!1,s=Object.keys(e).reduce((function(o,r){var s=e[r]||[],a=s.filter((function(e){return!t(e,r,i)}));return a.length!==s.length&&(n=!0),o[r]=a,o}),{});return n?s:e}},isRefined:function(e,t,i){var n=Boolean(e[t])&&e[t].length>0;if(void 0===i||!n)return n;var o=""+i;return-1!==e[t].indexOf(o)}};e.exports=s},44793:(e,t,i)=>{"use strict";var n=i(12166),o=i(31170),r=i(88024),s=i(25766),a=i(10947),l=i(39671),c=i(65586),d=i(66667),u=i(3410);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,i){return h(t[i],e)})):e===t}function g(e,t){return o(e,(function(e){return h(e,t)}))}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||d(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var i=this;Object.keys(t).forEach((function(e){var n=-1!==p.PARAMETERS.indexOf(e),o=void 0!==t[e];!n&&o&&(i[e]=t[e])}))}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={},i=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(i.forEach((function(i){var n=e[i];if("string"===typeof n){var o=parseFloat(n);t[i]=isNaN(o)?n:o}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var i=e.numericRefinements[t]||{};n[t]={},Object.keys(i).forEach((function(e){var o=i[e],r=o.map((function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?parseFloat(e):e})):"string"===typeof e?parseFloat(e):e}));n[t][e]=r}))})),t.numericRefinements=n}return s(e,t)},p.make=function(e){var t=new p(e),i=e.hierarchicalFacets||[];return i.forEach((function(e){if(e.rootPath){var i=t.getHierarchicalRefinement(e.name);i.length>0&&0!==i[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),i=t.getHierarchicalRefinement(e.name),0===i.length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},p.validate=function(e,t){var i=t||{};return e.tagFilters&&i.tagRefinements&&i.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&i.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&i.numericRefinements&&a(i.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):a(e.numericRefinements)&&i.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:u.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:u.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:u.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:u.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,i){var n=c(i);if(this.isNumericRefined(e,t,n))return this;var o=s({},this.numericRefinements);return o[e]=s({},o[e]),o[e][t]?(o[e][t]=o[e][t].slice(),o[e][t].push(n)):o[e][t]=[n],this.setQueryParameters({numericRefinements:o})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,i){var n=i;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(i,o){return o===e&&i.op===t&&h(i.val,c(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(i,n){return n===e&&i.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,i){return i===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return a(this.numericRefinements)?{}:this.numericRefinements;if("string"===typeof e)return l(this.numericRefinements,[e]);if("function"===typeof e){var t=!1,i=this.numericRefinements,n=Object.keys(i).reduce((function(n,o){var r=i[o],s={};return r=r||{},Object.keys(r).forEach((function(i){var n=r[i]||[],a=[];n.forEach((function(t){var n=e({val:t,op:i},o,"numeric");n||a.push(t)})),a.length!==n.length&&(t=!0),s[i]=a})),n[o]=s,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:u.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:u.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:u.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:u.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return u.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:u.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:u.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:u.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:u.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:u.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var i=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),o={},r=void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+i));return r?-1===t.indexOf(i)?o[e]=[]:o[e]=[t.slice(0,t.lastIndexOf(i))]:o[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},o,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var i={};return i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},i,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&u.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&u.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&u.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var i=this.getHierarchicalRefinement(e);return t?-1!==i.indexOf(t):i.length>0},isNumericRefined:function(e,t,i){if(void 0===i&&void 0===t)return Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===i||!n)return n;var o=c(i),r=void 0!==g(this.numericRefinements[e][t],o);return n&&r},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=r(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return r(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},i=this;return Object.keys(this).forEach((function(n){var o=i[n];-1===e.indexOf(n)&&void 0!==o&&(t[n]=o)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var i={};return i[e]=t,this.setQueryParameters(i)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var i=this,n=p._parseNumbers(e),o=Object.keys(this).reduce((function(e,t){return e[t]=i[t],e}),{}),r=Object.keys(n).reduce((function(e,t){var i=void 0!==e[t],o=void 0!==n[t];return i&&!o?l(e,[t]):(o&&(e[t]=n[t]),e)}),o);return new this.constructor(r)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return o(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var i=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(i);return n.map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},6581:(e,t,i)=>{"use strict";e.exports=c;var n=i(80077),o=i(31170),r=i(80658),s=i(4264),a=n.escapeFacetValue,l=n.unescapeFacetValue;function c(e){return function(t,i){var n=e.hierarchicalFacets[i],o=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",s=e._getHierarchicalFacetSeparator(n),a=e._getHierarchicalRootPath(n),l=e._getHierarchicalShowParentLevel(n),c=r(e._getHierarchicalFacetSortBy(n)),u=t.every((function(e){return e.exhaustive})),h=d(c,s,a,l,o),g=t;return a&&(g=t.slice(a.split(s).length)),g.reduce(h,{name:e.hierarchicalFacets[i].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:u,data:null})}}function d(e,t,i,n,r){return function(a,c,d){var g=a;if(d>0){var p=0;g=a;while(p{"use strict";var n=i(83165),o=i(12166),r=i(80077),s=i(31170),a=i(5352),l=i(80658),c=i(25766),d=i(4264),u=r.escapeFacetValue,h=r.unescapeFacetValue,g=i(6581);function p(e){var t={};return e.forEach((function(e,i){t[e]=i})),t}function f(e,t,i){t&&t[i]&&(e.stats=t[i])}function m(e,t){return s(e,(function(e){var i=e.attributes||[];return i.indexOf(t)>-1}))}function v(e,t,i){var r=t[0];this._rawResults=t;var s=this;Object.keys(r).forEach((function(e){s[e]=r[e]}));var l=c({persistHierarchicalRootCount:!1},i);Object.keys(l).forEach((function(e){s[e]=l[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var d=e.getRefinedDisjunctiveFacets(),u=p(e.facets),v=p(e.disjunctiveFacets),_=1,b=r.facets||{};Object.keys(b).forEach((function(t){var i=b[t],n=m(e.hierarchicalFacets,t);if(n){var o=n.attributes.indexOf(t),l=a(e.hierarchicalFacets,(function(e){return e.name===n.name}));s.hierarchicalFacets[l][o]={attribute:t,data:i,exhaustive:r.exhaustiveFacetsCount}}else{var c,d=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);d&&(c=v[t],s.disjunctiveFacets[c]={name:t,data:i,exhaustive:r.exhaustiveFacetsCount},f(s.disjunctiveFacets[c],r.facets_stats,t)),h&&(c=u[t],s.facets[c]={name:t,data:i,exhaustive:r.exhaustiveFacetsCount},f(s.facets[c],r.facets_stats,t))}})),this.hierarchicalFacets=n(this.hierarchicalFacets),d.forEach((function(i){var n=t[_],l=n&&n.facets?n.facets:{},d=e.getHierarchicalFacetByName(i);Object.keys(l).forEach((function(t){var i,u=l[t];if(d){i=a(e.hierarchicalFacets,(function(e){return e.name===d.name}));var g=a(s.hierarchicalFacets[i],(function(e){return e.attribute===t}));if(-1===g)return;s.hierarchicalFacets[i][g].data=c({},s.hierarchicalFacets[i][g].data,u)}else{i=v[t];var p=r.facets&&r.facets[t]||{};s.disjunctiveFacets[i]={name:t,data:o({},u,p),exhaustive:n.exhaustiveFacetsCount},f(s.disjunctiveFacets[i],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!s.disjunctiveFacets[i].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(h(n))>-1&&(s.disjunctiveFacets[i].data[n]=0)}))}})),_++})),e.getRefinedHierarchicalFacets().forEach((function(i){var n=e.getHierarchicalFacetByName(i),r=e._getHierarchicalFacetSeparator(n),l=e.getHierarchicalRefinement(i);0===l.length||l[0].split(r).length<2||t.slice(_).forEach((function(t){var i=t&&t.facets?t.facets:{};Object.keys(i).forEach((function(t){var c=i[t],d=a(e.hierarchicalFacets,(function(e){return e.name===n.name})),u=a(s.hierarchicalFacets[d],(function(e){return e.attribute===t}));if(-1!==u){var h={};if(l.length>0&&!s.persistHierarchicalRootCount){var g=l[0].split(r)[0];h[g]=s.hierarchicalFacets[d][u].data[g]}s.hierarchicalFacets[d][u].data=o(h,c,s.hierarchicalFacets[d][u].data)}})),_++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var i=e.facetsExcludes[t],n=u[t];s.facets[n]={name:t,data:b[t],exhaustive:r.exhaustiveFacetsCount},i.forEach((function(e){s.facets[n]=s.facets[n]||{name:t},s.facets[n].data=s.facets[n].data||{},s.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(g(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function _(e,t){function i(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,i);return n?Object.keys(n.data).map((function(i){var o=u(i);return{name:i,escapedValue:o,count:n.data[i],isRefined:e._state.isFacetRefined(t,o),isExcluded:e._state.isExcludeRefined(t,i)}})):[]}if(e._state.isDisjunctiveFacet(t)){var o=s(e.disjunctiveFacets,i);return o?Object.keys(o.data).map((function(i){var n=u(i);return{name:i,escapedValue:n,count:o.data[i],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t)){var r=s(e.hierarchicalFacets,i);if(!r)return r;var a=e._state.getHierarchicalFacetByName(t),l=e._state._getHierarchicalFacetSeparator(a),c=h(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(a.rootPath)&&(c=c.replace(a.rootPath+l,""));var d=c.split(l);return d.unshift(t),b(r,d,0),r}}function b(e,t,i){e.isRefined=e.name===(t[i]&&t[i].trim()),e.data&&e.data.forEach((function(e){b(e,t,i+1)}))}function y(e,t,i,n){if(n=n||0,Array.isArray(t))return e(t,i[n]);if(!t.data||0===t.data.length)return t;var r=t.data.map((function(t){return y(e,t,i,n+1)})),s=e(r,i[n]),a=o({data:s},t);return a}function w(e,t){return t.sort(e)}function C(e,t){var i=[],n=[],o=t.order||[],r=o.reduce((function(e,t,i){return e[t]=i,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==r[t]?i[r[t]]=e:n.push(e)})),i=i.filter((function(e){return e}));var s,a=t.sortRemainingBy;return"hidden"===a?i:(s="alpha"===a?[["path","name"],["asc","asc"]]:[["count"],["desc"]],i.concat(d(n,s[0],s[1])))}function S(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}function x(e,t){var i=s(e,(function(e){return e.name===t}));return i&&i.stats}function k(e,t,i,n,o){var r=s(o,(function(e){return e.name===i})),a=r&&r.data&&r.data[n]?r.data[n]:0,l=r&&r.exhaustive||!1;return{type:t,attributeName:i,name:n,count:a,exhaustive:l}}function L(e,t,i,n){var o=e.getHierarchicalFacetByName(t),r=e._getHierarchicalFacetSeparator(o),a=i.split(r),l=s(n,(function(e){return e.name===t})),c=a.reduce((function(e,t){var i=e&&s(e.data,(function(e){return e.name===t}));return void 0!==i?i:e}),l),d=c&&c.count||0,u=c&&c.exhaustive||!1,h=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:h,count:d,exhaustive:u}}v.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},v.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],v.prototype.getFacetValues=function(e,t){var i=_(this,e);if(i){var n,r=o({},t,{sortBy:v.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),s=this;if(Array.isArray(i))n=[e];else{var a=s._state.getHierarchicalFacetByName(i.name);n=a.attributes}return y((function(e,t){if(r.facetOrdering){var i=S(s,t);if(i)return C(e,i)}if(Array.isArray(r.sortBy)){var n=l(r.sortBy,v.DEFAULT_SORT);return d(e,n[0],n[1])}if("function"===typeof r.sortBy)return w(r.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),i,n)}},v.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?x(this.facets,e):this._state.isDisjunctiveFacet(e)?x(this.disjunctiveFacets,e):void 0},v.prototype.getRefinements=function(){var e=this._state,t=this,i=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(o){i.push(k(e,"facet",n,o,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(o){i.push(k(e,"exclude",n,o,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(o){i.push(k(e,"disjunctive",n,o,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(o){i.push(L(e,n,o,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){i.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){i.push({type:"tag",attributeName:"_tags",name:e})})),i},e.exports=v},56586:(e,t,i)=>{"use strict";var n=i(36939),o=i(23060),r=i(80077).escapeFacetValue,s=i(65734),a=i(25766),l=i(10947),c=i(39671),d=i(28129),u=i(12888),h=i(44793),g=i(19351),p=i(8675);function f(e,t,i,n){"function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var o=i||{};o.index=t,this.state=h.make(o),this.recommendState=new d({params:o.recommendState}),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._searchResultsOptions=n}function m(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function v(){return this.state.page}s(f,n),f.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},f.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},f.prototype.getQuery=function(){var e=this.state;return u._getHitsSearchParams(e)},f.prototype.searchOnce=function(e,t){var i=e?this.state.setQueryParameters(e):this.state,n=u._getQueries(i.index,i),o=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:i}),!t)return this.client.search(n).then((function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new g(i,e.results),state:i,_originalResponse:e}}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new g(i,e.results),i)})).catch((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,i)}))},f.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,i=this.derivedHelpers[0];if(!i)return Promise.resolve([]);var n=i.getModifiedState(t),o=a({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(u._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),r="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!==typeof this.client.initIndex)throw new Error(r);var s=this.client.initIndex(n.index);if("function"!==typeof s.findAnswers)throw new Error(r);return s.findAnswers(n.query,e.queryLanguages,o)},f.prototype.searchForFacetValues=function(e,t,i,n){var o="function"===typeof this.client.searchForFacetValues,s="function"===typeof this.client.initIndex;if(!o&&!s&&"function"!==typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var a=this.state.setQueryParameters(n||{}),l=a.isDisjunctiveFacet(e),c=u.getSearchForFacetQuery(e,t,i,a);this._currentNbQueries++;var d,h=this;return o?d=this.client.searchForFacetValues([{indexName:a.index,params:c}]):s?d=this.client.initIndex(a.index).searchForFacetValues(c):(delete c.facetName,d=this.client.search([{type:"facet",facet:e,indexName:a.index,params:c}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:a,facet:e,query:t}),d.then((function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),t=Array.isArray(t)?t[0]:t,t.facetHits.forEach((function(t){t.escapedValue=r(t.value),t.isRefined=l?a.isDisjunctiveFacetRefined(e,t.escapedValue):a.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e}))},f.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},f.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},f.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},f.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},f.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addNumericRefinement=function(e,t,i){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,i),isPageReset:!0}),this},f.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},f.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},f.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},f.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},f.prototype.removeNumericRefinement=function(e,t,i){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,i),isPageReset:!0}),this},f.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},f.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},f.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},f.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},f.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},f.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},f.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},f.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},f.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},f.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},f.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},f.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},f.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},f.prototype.setCurrentPage=m,f.prototype.setPage=m,f.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},f.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},f.prototype.setState=function(e){return this._change({state:h.make(e),isPageReset:!1}),this},f.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this},f.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},f.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},f.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},f.prototype.hasTag=function(e){return this.state.isTagRefined(e)},f.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},f.prototype.getIndex=function(){return this.state.index},f.prototype.getCurrentPage=v,f.prototype.getPage=v,f.prototype.getTags=function(){return this.state.tagRefinements},f.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var i=this.state.getConjunctiveRefinements(e);i.forEach((function(e){t.push({value:e,type:"conjunctive"})}));var n=this.state.getExcludeRefinements(e);n.forEach((function(e){t.push({value:e,type:"exclude"})}))}else if(this.state.isDisjunctiveFacet(e)){var o=this.state.getDisjunctiveRefinements(e);o.forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var i=r[e];t.push({value:i,operator:e,type:"numeric"})})),t},f.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},f.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},f.prototype._search=function(e){var t=this.state,i=[],n=[];e.onlyWithDerivedHelpers||(n=u._getQueries(t.index,t),i.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var o=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),o=n.index?u._getQueries(n.index,n):[];return i.push({state:n,queriesCount:o.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),o})),r=Array.prototype.concat.apply(n,o),s=this._queryId++;if(this._currentNbQueries++,!r.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,s));try{this.client.search(r).then(this._dispatchAlgoliaResponse.bind(this,i,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(a){this.emit("error",{error:a})}},f.prototype._dispatchAlgoliaResponse=function(e,t,i){var n=this;if(!(t0},f.prototype._change=function(e){var t=e.state,i=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:i}))},f.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t)},f.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},f.prototype.setClient=function(e){return this.client===e||("function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},f.prototype.getClient=function(){return this.client},f.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},f.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},f.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=f},83165:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},12166:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(i){void 0!==t[i]&&(void 0!==e[i]&&delete e[i],e[i]=t[i])})),e}),{})}},80077:e=>{"use strict";function t(e){return"string"!==typeof e?e:String(e).replace(/^-/,"\\-")}function i(e){return"string"!==typeof e?e:e.replace(/^\\-/,"-")}e.exports={escapeFacetValue:t,unescapeFacetValue:i}},31170:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var i=0;i{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var i=0;i{"use strict";var n=i(31170);e.exports=function(e,t){var i=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var o=t.split(":"),r=n(i,(function(e){return e[0]===o[0]}));return o.length>1||!r?(e[0].push(o[0]),e[1].push(o[1]),e):(e[0].push(r[0]),e[1].push(r[1]),e)}),[[],[]])}},65734:e=>{"use strict";function t(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}e.exports=t},88024:e=>{"use strict";function t(e,t){return e.filter((function(i,n){return t.indexOf(i)>-1&&e.indexOf(i)===n}))}e.exports=t},25766:e=>{"use strict";function t(e){return"object"===typeof e&&null!==e?n(Array.isArray(e)?[]:{},e):e}function i(e){return"function"===typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,o){if(e===o)return e;for(var r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&"__proto__"!==r&&"constructor"!==r){var s=o[r],a=e[r];"undefined"!==typeof a&&"undefined"===typeof s||(i(a)&&i(s)?e[r]=n(a,s):e[r]=t(s))}return e}function o(e){i(e)||(e={});for(var t=1,o=arguments.length;t{"use strict";function t(e){return e&&Object.keys(e).length>0}e.exports=t},39671:e=>{"use strict";function t(e,t){if(null===e)return{};var i,n,o={},r=Object.keys(e);for(n=0;n=0||(o[i]=e[i]);return o}e.exports=t},4264:e=>{"use strict";function t(e,t){if(e!==t){var i=void 0!==e,n=null===e,o=void 0!==t,r=null===t;if(!r&&e>t||n&&o||!i)return 1;if(!n&&e=n.length?r:"desc"===n[o]?-r:r}return e.index-i.index})),o.map((function(e){return e.value}))}e.exports=i},65586:e=>{"use strict";function t(e){if("number"===typeof e)return e;if("string"===typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(t);throw new Error("The value should be a number, a parsable string or an array of those.")}e.exports=t},12888:(e,t,i)=>{"use strict";var n=i(25766);function o(e){return Object.keys(e).sort().reduce((function(t,i){return t[i]=e[i],t}),{})}var r={_getQueries:function(e,t){var i=[];return i.push({indexName:e,params:r._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){i.push({indexName:e,params:r._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var o=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),a=t._getHierarchicalFacetSeparator(o);if(s.length>0&&s[0].split(a).length>1){var l=s[0].split(a).slice(0,-1).reduce((function(e,t,i){return e.concat({attribute:o.attributes[i],value:0===i?t:[e[e.length-1].value,t].join(a)})}),[]);l.forEach((function(n,s){var a=r._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function c(e){return o.attributes.some((function(t){return t===e.split(":")[0]}))}var d=(a.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var i=t.filter((function(e){return!c(e)}));i.length>0&&e.push(i)}return"string"!==typeof t||c(t)||e.push(t),e}),[]),u=l[s-1];a.facetFilters=s>0?d.concat(u.attribute+":"+u.value):d.length>0?d:void 0,i.push({indexName:e,params:a})}))}})),i},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(r._getHitsHierarchicalFacetsAttributes(e)).sort(),i=r._getFacetFilters(e),s=r._getNumericFilters(e),a=r._getTagFilters(e),l={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:a};return i.length>0&&(l.facetFilters=i),s.length>0&&(l.numericFilters=s),o(n({},e.getQueryParams(),l))},_getDisjunctiveFacetSearchParams:function(e,t,i){var s=r._getFacetFilters(e,t,i),a=r._getNumericFilters(e,t),l=r._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};l.length>0&&(c.tagFilters=l);var d=e.getHierarchicalFacetByName(t);return c.facets=d?r._getDisjunctiveHierarchicalFacetAttribute(e,d,i):t,a.length>0&&(c.numericFilters=a),s.length>0&&(c.facetFilters=s),o(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var i=[];return Object.keys(e.numericRefinements).forEach((function(n){var o=e.numericRefinements[n]||{};Object.keys(o).forEach((function(e){var r=o[e]||[];t!==n&&r.forEach((function(t){if(Array.isArray(t)){var o=t.map((function(t){return n+e+t}));i.push(o)}else i.push(n+e+t)}))}))})),i},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,i){var n=[],o=e.facetsRefinements||{};Object.keys(o).sort().forEach((function(e){var t=o[e]||[];t.slice().sort().forEach((function(t){n.push(e+":"+t)}))}));var r=e.facetsExcludes||{};Object.keys(r).sort().forEach((function(e){var t=r[e]||[];t.sort().forEach((function(t){n.push(e+":-"+t)}))}));var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach((function(e){var i=s[e]||[];if(e!==t&&i&&0!==i.length){var o=[];i.slice().sort().forEach((function(t){o.push(e+":"+t)})),n.push(o)}}));var a=e.hierarchicalFacetsRefinements||{};return Object.keys(a).sort().forEach((function(o){var r=a[o]||[],s=r[0];if(void 0!==s){var l,c,d=e.getHierarchicalFacetByName(o),u=e._getHierarchicalFacetSeparator(d),h=e._getHierarchicalRootPath(d);if(t===o){if(-1===s.indexOf(u)||!h&&!0===i||h&&h.split(u).length===s.split(u).length)return;h?(c=h.split(u).length-1,s=h):(c=s.split(u).length-2,s=s.slice(0,s.lastIndexOf(u))),l=d.attributes[c]}else c=s.split(u).length-1,l=d.attributes[c];l&&n.push([l+":"+s])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce((function(t,i){var n=e.getHierarchicalRefinement(i.name)[0];if(!n)return t.push(i.attributes[0]),t;var o=e._getHierarchicalFacetSeparator(i),r=n.split(o).length,s=i.attributes.slice(0,r+1);return t.concat(s)}),t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,i){var n=e._getHierarchicalFacetSeparator(t);if(!0===i){var o=e._getHierarchicalRootPath(t),r=0;return o&&(r=o.split(n).length),[t.attributes[r]]}var s=e.getHierarchicalRefinement(t.name)[0]||"",a=s.split(n).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,i,s){var a=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,l={facetQuery:t,facetName:e};return"number"===typeof i&&(l.maxFacetHits=i),o(n({},r._getHitsSearchParams(a),l))}};e.exports=r},66667:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},8675:e=>{"use strict";e.exports="3.17.0"},61357:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(22857),r=i(20244),s=i(65987),a=i(22026);const l=(0,s.L)({name:"QAvatar",props:{...r.LU,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const i=(0,r.ZP)(e),s=(0,n.Fl)((()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(!0===e.square?" q-avatar--square":!0===e.rounded?" rounded-borders":""))),l=(0,n.Fl)((()=>e.fontSize?{fontSize:e.fontSize}:null));return()=>{const r=void 0!==e.icon?[(0,n.h)(o.Z,{name:e.icon})]:void 0;return(0,n.h)("div",{class:s.value,style:i.value},[(0,n.h)("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},(0,a.pf)(t.default,r))])}}})},20990:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),r=i(22026);const s=["top","middle","bottom"],a=(0,o.L)({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>s.includes(e)}},setup(e,{slots:t}){const i=(0,n.Fl)((()=>void 0!==e.align?{verticalAlign:e.align}:null)),o=(0,n.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")}));return()=>(0,n.h)("div",{class:o.value,style:i.value,role:"status","aria-label":e.label},(0,r.vs)(t.default,void 0!==e.label?[e.label]:[]))}})},47128:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});i(72879);var n=i(59835),o=i(65987),r=i(68234),s=i(22026);const a=(0,o.L)({name:"QBanner",props:{...r.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,r.Z)(e,i),a=(0,n.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===o.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,n.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const i=[(0,n.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,s.KR)(t.avatar)),(0,n.h)("div",{class:"q-banner__content col text-body2"},(0,s.KR)(t.default))],o=(0,s.KR)(t.action);return void 0!==o&&i.push((0,n.h)("div",{class:l.value},o)),(0,n.h)("div",{class:a.value+(!1===e.inlineActions&&void 0!==o?" q-banner--top-padding":""),role:"alert"},i)}}})},24455:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});i(72879);var n=i(59835),o=i(60499),r=i(61957),s=i(22857),a=i(63940),l=i(9684),c=i(65065),d=i(20244),u=i(70945);const h={none:0,xs:4,sm:8,md:16,lg:24,xl:32},g={xs:8,sm:10,md:14,lg:20,xl:24},p=["button","submit","reset"],f=/[^\s]\/[^\s]/,m=["flat","outline","push","unelevated"],v=(e,t)=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t,_={...d.LU,...u.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...m.reduce(((e,t)=>(e[t]=Boolean)&&e),{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...c.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function b(e){const t=(0,d.ZP)(e,g),i=(0,c.ZP)(e),{hasRouterLink:o,hasLink:r,linkTag:s,linkAttrs:a,navigateOnClick:l}=(0,u.Z)({fallbackTag:"button"}),m=(0,n.Fl)((()=>{const i=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},i,{padding:e.padding.split(/\s+/).map((e=>e in h?h[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):i})),_=(0,n.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),b=(0,n.Fl)((()=>!0!==e.disable&&!0!==e.loading)),y=(0,n.Fl)((()=>!0===b.value?e.tabindex||0:-1)),w=(0,n.Fl)((()=>v(e,"standard"))),C=(0,n.Fl)((()=>{const t={tabindex:y.value};return!0===r.value?Object.assign(t,a.value):!0===p.includes(e.type)&&(t.type=e.type),"a"===s.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==o.value&&!0===f.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),S=(0,n.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const i=!0===e.round?"round":"rectangle"+(!0===_.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${w.value} q-btn--${i}`+(void 0!==t?" "+t:"")+(!0===b.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),x=(0,n.Fl)((()=>i.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:S,style:m,innerClasses:x,attributes:C,hasLink:r,linkTag:s,navigateOnClick:l,isActionable:b}}var y=i(65987),w=i(22026),C=i(91384),S=i(61705);const{passiveCapture:x}=C.listenOpts;let k=null,L=null,E=null;const N=(0,y.L)({name:"QBtn",props:{..._,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:i}){const{proxy:c}=(0,n.FN)(),{classes:d,style:u,innerClasses:h,attributes:g,hasLink:p,linkTag:f,navigateOnClick:m,isActionable:v}=b(e),_=(0,o.iH)(null),y=(0,o.iH)(null);let N,D=null,T=null;const I=(0,n.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),R=(0,n.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===p.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),A=(0,n.Fl)((()=>({center:e.round}))),O=(0,n.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),P=(0,n.Fl)((()=>{if(!0===e.loading)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(!0===v.value){const t={onClick:F,onKeydown:B,onMousedown:W};if(!0===c.$q.platform.has.touch){const i=void 0!==e.onTouchstart?"":"Passive";t[`onTouchstart${i}`]=H}return t}return{onClick:C.NS}})),M=(0,n.Fl)((()=>({ref:_,class:"q-btn q-btn-item non-selectable no-outline "+d.value,style:u.value,...g.value,...P.value})));function F(t){if(null!==_.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const i=document.activeElement;if("submit"===e.type&&i!==document.body&&!1===_.value.contains(i)&&!1===i.contains(_.value)){_.value.focus();const e=()=>{document.removeEventListener("keydown",C.NS,!0),document.removeEventListener("keyup",e,x),null!==_.value&&_.value.removeEventListener("blur",e,x)};document.addEventListener("keydown",C.NS,!0),document.addEventListener("keyup",e,x),_.value.addEventListener("blur",e,x)}}m(t)}}function B(e){null!==_.value&&(i("keydown",e),!0===(0,S.So)(e,[13,32])&&L!==_.value&&(null!==L&&j(),!0!==e.defaultPrevented&&(_.value.focus(),L=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),_.value.addEventListener("blur",V,x)),(0,C.NS)(e)))}function H(e){null!==_.value&&(i("touchstart",e),!0!==e.defaultPrevented&&(k!==_.value&&(null!==k&&j(),k=_.value,D=e.target,D.addEventListener("touchcancel",V,x),D.addEventListener("touchend",V,x)),N=!0,null!==T&&clearTimeout(T),T=setTimeout((()=>{T=null,N=!1}),200)))}function W(e){null!==_.value&&(e.qSkipRipple=!0===N,i("mousedown",e),!0!==e.defaultPrevented&&E!==_.value&&(null!==E&&j(),E=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,x)))}function V(e){if(null!==_.value&&(void 0===e||"blur"!==e.type||document.activeElement!==_.value)){if(void 0!==e&&"keyup"===e.type){if(L===_.value&&!0===(0,S.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,C.X$)(t),!0===e.cancelBubble&&(0,C.sT)(t),_.value.dispatchEvent(t),(0,C.NS)(e),e.qKeyEvent=!0}i("keyup",e)}j()}}function j(e){const t=y.value;!0===e||k!==_.value&&E!==_.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),k===_.value&&(null!==D&&(D.removeEventListener("touchcancel",V,x),D.removeEventListener("touchend",V,x)),k=D=null),E===_.value&&(document.removeEventListener("mouseup",V,x),E=null),L===_.value&&(document.removeEventListener("keyup",V,!0),null!==_.value&&_.value.removeEventListener("blur",V,x),L=null),null!==_.value&&_.value.classList.remove("q-btn--active")}function z(e){(0,C.NS)(e),e.qSkipRipple=!0}return(0,n.Jd)((()=>{j(!0)})),Object.assign(c,{click:F}),()=>{let i=[];void 0!==e.icon&&i.push((0,n.h)(s.Z,{name:e.icon,left:!0!==e.stack&&!0===I.value,role:"img","aria-hidden":"true"})),!0===I.value&&i.push((0,n.h)("span",{class:"block"},[e.label])),i=(0,w.vs)(t.default,i),void 0!==e.iconRight&&!1===e.round&&i.push((0,n.h)(s.Z,{name:e.iconRight,right:!0!==e.stack&&!0===I.value,role:"img","aria-hidden":"true"}));const o=[(0,n.h)("span",{class:"q-focus-helper",ref:y})];return!0===e.loading&&void 0!==e.percentage&&o.push((0,n.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,n.h)("span",{class:"q-btn__progress-indicator fit block",style:O.value})])),o.push((0,n.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},i)),null!==e.loading&&o.push((0,n.h)(r.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,n.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,n.h)(a.Z)])]:null))),(0,n.wy)((0,n.h)(f.value,M.value,o),[[l.Z,R.value,void 0,A.value]])}}})},44458:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(68234),r=i(65987),s=i(22026);const a=(0,r.L)({name:"QCard",props:{...o.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),r=(0,o.Z)(e,i),a=(0,n.Fl)((()=>"q-card"+(!0===r.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,n.h)(e.tag,{class:a.value},(0,s.KR)(t.default))}})},11821:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65065),r=i(65987),s=i(22026);const a=(0,r.L)({name:"QCardActions",props:{...o.jO,vertical:Boolean},setup(e,{slots:t}){const i=(0,o.ZP)(e),r=(0,n.Fl)((()=>`q-card__actions ${i.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,n.h)("div",{class:r.value},(0,s.KR)(t.default))}})},63190:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,n.h)(e.tag,{class:i.value},(0,r.KR)(t.default))}})},11221:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(22857),r=i(65987),s=i(71926);const a=(0,n.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,n.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[(0,n.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,n.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),l=(0,r.L)({name:"QCheckbox",props:s.Fz,emits:s.ZB,setup(e){function t(t,i){const r=(0,n.Fl)((()=>(!0===t.value?e.checkedIcon:!0===i.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==r.value?[(0,n.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,n.h)(o.Z,{class:"q-checkbox__icon",name:r.value})])]:[a]}return(0,s.ZP)("checkbox",t)}})},71926:(e,t,i)=>{"use strict";i.d(t,{Fz:()=>h,ZB:()=>g,ZP:()=>p});i(72879);var n=i(59835),o=i(60499),r=i(68234),s=i(20244),a=i(55917),l=i(99256),c=i(89480),d=i(91384),u=i(22026);const h={...r.S,...s.LU,...l.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},g=["update:modelValue"];function p(e,t){const{props:i,slots:h,emit:g,proxy:p}=(0,n.FN)(),{$q:f}=p,m=(0,r.Z)(i,f),v=(0,o.iH)(null),{refocusTargetEl:_,refocusTarget:b}=(0,a.Z)(i,v),y=(0,s.ZP)(i,c.Z),w=(0,n.Fl)((()=>void 0!==i.val&&Array.isArray(i.modelValue))),C=(0,n.Fl)((()=>{const e=(0,o.IU)(i.val);return!0===w.value?i.modelValue.findIndex((t=>(0,o.IU)(t)===e)):-1})),S=(0,n.Fl)((()=>!0===w.value?-1!==C.value:(0,o.IU)(i.modelValue)===(0,o.IU)(i.trueValue))),x=(0,n.Fl)((()=>!0===w.value?-1===C.value:(0,o.IU)(i.modelValue)===(0,o.IU)(i.falseValue))),k=(0,n.Fl)((()=>!1===S.value&&!1===x.value)),L=(0,n.Fl)((()=>!0===i.disable?-1:i.tabindex||0)),E=(0,n.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===i.disable?" disabled":"")+(!0===m.value?` q-${e}--dark`:"")+(!0===i.dense?` q-${e}--dense`:"")+(!0===i.leftLabel?" reverse":""))),N=(0,n.Fl)((()=>{const t=!0===S.value?"truthy":!0===x.value?"falsy":"indet",n=void 0===i.color||!0!==i.keepColor&&("toggle"===e?!0!==S.value:!0===x.value)?"":` text-${i.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${n}`})),D=(0,n.Fl)((()=>{const e={type:"checkbox"};return void 0!==i.name&&Object.assign(e,{".checked":S.value,"^checked":!0===S.value?"checked":void 0,name:i.name,value:!0===w.value?i.val:i.trueValue}),e})),T=(0,l.eX)(D),I=(0,n.Fl)((()=>{const t={tabindex:L.value,role:"toggle"===e?"switch":"checkbox","aria-label":i.label,"aria-checked":!0===k.value?"mixed":!0===S.value?"true":"false"};return!0===i.disable&&(t["aria-disabled"]="true"),t}));function R(e){void 0!==e&&((0,d.NS)(e),b(e)),!0!==i.disable&&g("update:modelValue",A(),e)}function A(){if(!0===w.value){if(!0===S.value){const e=i.modelValue.slice();return e.splice(C.value,1),e}return i.modelValue.concat([i.val])}if(!0===S.value){if("ft"!==i.toggleOrder||!1===i.toggleIndeterminate)return i.falseValue}else{if(!0!==x.value)return"ft"!==i.toggleOrder?i.trueValue:i.falseValue;if("ft"===i.toggleOrder||!1===i.toggleIndeterminate)return i.trueValue}return i.indeterminateValue}function O(e){13!==e.keyCode&&32!==e.keyCode||(0,d.NS)(e)}function P(e){13!==e.keyCode&&32!==e.keyCode||R(e)}const M=t(S,k);return Object.assign(p,{toggle:R}),()=>{const t=M();!0!==i.disable&&T(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const o=[(0,n.h)("div",{class:N.value,style:y.value,"aria-hidden":"true"},t)];null!==_.value&&o.push(_.value);const r=void 0!==i.label?(0,u.vs)(h.default,[i.label]):(0,u.KR)(h.default);return void 0!==r&&o.push((0,n.h)("div",{class:`q-${e}__label q-anchor--skip`},r)),(0,n.h)("div",{ref:v,class:E.value,...I.value,onClick:R,onKeydown:O,onKeyup:P},o)}}},57691:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});i(72879);var n=i(59835),o=i(22857),r=i(9684),s=i(68234),a=i(20244),l=i(65987),c=i(91384),d=i(22026);const u={xs:8,sm:10,md:14,lg:20,xl:24},h=(0,l.L)({name:"QChip",props:{...s.S,...a.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:i}){const{proxy:{$q:l}}=(0,n.FN)(),h=(0,s.Z)(e,l),g=(0,a.ZP)(e,u),p=(0,n.Fl)((()=>!0===e.selected||void 0!==e.icon)),f=(0,n.Fl)((()=>!0===e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon)),m=(0,n.Fl)((()=>e.iconRemove||l.iconSet.chip.remove)),v=(0,n.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),_=(0,n.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===v.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===h.value?" q-chip--dark q-dark":"")})),b=(0,n.Fl)((()=>{const t=!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},i={...t,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||l.lang.label.remove};return{chip:t,remove:i}}));function y(e){13===e.keyCode&&w(e)}function w(t){e.disable||(i("update:selected",!e.selected),i("click",t))}function C(t){void 0!==t.keyCode&&13!==t.keyCode||((0,c.NS)(t),!1===e.disable&&(i("update:modelValue",!1),i("remove")))}function S(){const i=[];!0===v.value&&i.push((0,n.h)("div",{class:"q-focus-helper"})),!0===p.value&&i.push((0,n.h)(o.Z,{class:"q-chip__icon q-chip__icon--left",name:f.value}));const r=void 0!==e.label?[(0,n.h)("div",{class:"ellipsis"},[e.label])]:void 0;return i.push((0,n.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,d.pf)(t.default,r))),e.iconRight&&i.push((0,n.h)(o.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&i.push((0,n.h)(o.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:m.value,...b.value.remove,onClick:C,onKeyup:C})),i}return()=>{if(!1===e.modelValue)return;const t={class:_.value,style:g.value};return!0===v.value&&Object.assign(t,b.value.chip,{onClick:w,onKeyup:y}),(0,d.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[r.Z,e.ripple]]))}}})},83302:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});i(72879);var n=i(59835),o=i(20244);const r={...o.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var s=i(65987),a=i(22026),l=i(30321);const c=50,d=2*c,u=d*Math.PI,h=Math.round(1e3*u)/1e3,g=(0,s.L)({name:"QCircularProgress",props:{...r,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),r=(0,o.ZP)(e),s=(0,n.Fl)((()=>{const t=(!0===i.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===i.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),g=(0,n.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),p=(0,n.Fl)((()=>d/(1-e.thickness/2))),f=(0,n.Fl)((()=>`${p.value/2} ${p.value/2} ${p.value} ${p.value}`)),m=(0,n.Fl)((()=>(0,l.vX)(e.value,e.min,e.max))),v=(0,n.Fl)((()=>e.max-e.min)),_=(0,n.Fl)((()=>e.thickness/2*p.value)),b=(0,n.Fl)((()=>{const t=(e.max-m.value)/v.value,i=!0===e.rounded&&m.value{const i=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&i.push((0,n.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:c-_.value/2,cx:p.value,cy:p.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&i.push(y({cls:"track",thickness:_.value,offset:0,color:e.trackColor})),i.push(y({cls:"circle",thickness:_.value,offset:b.value,color:e.color,rounded:!0===e.rounded?"round":void 0}));const o=[(0,n.h)("svg",{class:"q-circular-progress__svg",style:s.value,viewBox:f.value,"aria-hidden":"true"},i)];return!0===e.showValue&&o.push((0,n.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,n.h)("div",m.value)])),(0,n.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:m.value},(0,a.pf)(t.internal,o))}}})},32074:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(59835),o=i(60499),r=i(61957),s=i(94953),a=i(4698),l=i(46183),c=i(63842),d=i(20431),u=i(91518),h=i(13963),g=i(65987),p=i(70223),f=i(22026),m=i(16532),v=i(4173),_=i(17026);let b=0;const y={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},w={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},C=(0,g.L)({name:"QDialog",inheritAttrs:!1,props:{...c.vr,...d.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...c.gH,"shake","click","escapeKey"],setup(e,{slots:t,emit:i,attrs:g}){const C=(0,n.FN)(),S=(0,o.iH)(null),x=(0,o.iH)(!1),k=(0,o.iH)(!1);let L,E,N=null,D=null;const T=(0,n.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:I}=(0,h.Z)(),{registerTimeout:R}=(0,a.Z)(),{registerTick:A,removeTick:O}=(0,l.Z)(),{transitionProps:P,transitionStyle:M}=(0,d.Z)(e,(()=>w[e.position][0]),(()=>w[e.position][1])),F=(0,n.Fl)((()=>M.value+(void 0!==e.backdropFilter?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:""))),{showPortal:B,hidePortal:H,portalIsAccessible:W,renderPortal:V}=(0,u.Z)(C,S,re,"dialog"),{hide:j}=(0,c.ZP)({showing:x,hideOnRouteChange:T,handleShow:Z,handleHide:Q,processOnMount:!0}),{addToHistory:z,removeFromHistory:U}=(0,s.Z)(x,j,T),$=(0,n.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${y[e.position]}`+(!0===k.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),q=(0,n.Fl)((()=>!0===x.value&&!0!==e.seamless)),K=(0,n.Fl)((()=>!0===e.autoClose?{onClick:ie}:{})),G=(0,n.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===q.value?"modal":"seamless"),g.class]));function Z(t){z(),D=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,te(e.maximized),B(),k.value=!0,!0!==e.noFocus?(null!==document.activeElement&&document.activeElement.blur(),A(Y)):O(),R((()=>{if(!0===C.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,n=void 0!==window.visualViewport?window.visualViewport.height:i;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}E=!0,S.value.click(),E=!1}B(!0),k.value=!1,i("show",t)}),e.transitionDuration)}function Q(t){O(),U(),ee(!0),k.value=!0,H(),null!==D&&(((t&&0===t.type.indexOf("key")?D.closest('[tabindex]:not([tabindex^="-"])'):void 0)||D).focus(),D=null),R((()=>{H(!0),k.value=!1,i("hide",t)}),e.transitionDuration)}function Y(e){(0,_.jd)((()=>{let t=S.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=(""!==e?t.querySelector(e):null)||t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function J(e){e&&"function"===typeof e.focus?e.focus({preventScroll:!0}):Y(),i("shake");const t=S.value;null!==t&&(t.classList.remove("q-animate--scale"),t.classList.add("q-animate--scale"),null!==N&&clearTimeout(N),N=setTimeout((()=>{N=null,null!==S.value&&(t.classList.remove("q-animate--scale"),Y())}),170))}function X(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&J():(i("escapeKey"),j()))}function ee(t){null!==N&&(clearTimeout(N),N=null),!0!==t&&!0!==x.value||(te(!1),!0!==e.seamless&&(I(!1),(0,v.H)(oe),(0,m.k)(X))),!0!==t&&(D=null)}function te(e){!0===e?!0!==L&&(b<1&&document.body.classList.add("q-body--dialog"),b++,L=!0):!0===L&&(b<2&&document.body.classList.remove("q-body--dialog"),b--,L=!1)}function ie(e){!0!==E&&(j(e),i("click",e))}function ne(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?j(t):!0!==e.noShake&&J()}function oe(t){!0!==e.allowFocusOutside&&!0===W.value&&!0!==(0,p.mY)(S.value,t.target)&&Y('[tabindex]:not([tabindex="-1"])')}function re(){return(0,n.h)("div",{role:"dialog","aria-modal":!0===q.value?"true":"false",...g,class:G.value},[(0,n.h)(r.uT,{name:"q-transition--fade",appear:!0},(()=>!0===q.value?(0,n.h)("div",{class:"q-dialog__backdrop fixed-full",style:F.value,"aria-hidden":"true",tabindex:-1,onClick:ne}):null)),(0,n.h)(r.uT,P.value,(()=>!0===x.value?(0,n.h)("div",{ref:S,class:$.value,style:M.value,tabindex:-1,...K.value},(0,f.KR)(t.default)):null))])}return(0,n.YP)((()=>e.maximized),(e=>{!0===x.value&&te(e)})),(0,n.YP)(q,(e=>{I(e),!0===e?((0,v.i)(oe),(0,m.c)(X)):((0,v.H)(oe),(0,m.k)(X))})),Object.assign(C.proxy,{focus:Y,shake:J,__updateRefocusTarget(e){D=e||null}}),(0,n.Jd)(ee),V}})},10906:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});i(72879);var n=i(59835),o=i(60499),r=i(94953),s=i(63842),a=i(13963),l=i(4698),c=i(68234),d=i(50867),u=i(65987),h=i(30321),g=i(22026),p=i(95439);const f=150,m=(0,u.L)({name:"QDrawer",inheritAttrs:!1,props:{...s.vr,...c.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...s.gH,"onLayout","miniState"],setup(e,{slots:t,emit:i,attrs:u}){const m=(0,n.FN)(),{proxy:{$q:v}}=m,_=(0,c.Z)(e,v),{preventBodyScroll:b}=(0,a.Z)(),{registerTimeout:y,removeTimeout:w}=(0,l.Z)(),C=(0,n.f3)(p.YE,p.qO);if(C===p.qO)return console.error("QDrawer needs to be child of QLayout"),p.qO;let S,x,k=null;const L=(0,o.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&C.totalWidth.value<=e.breakpoint),E=(0,n.Fl)((()=>!0===e.mini&&!0!==L.value)),N=(0,n.Fl)((()=>!0===E.value?e.miniWidth:e.width)),D=(0,o.iH)(!0===e.showIfAbove&&!1===L.value||!0===e.modelValue),T=(0,n.Fl)((()=>!0!==e.persistent&&(!0===L.value||!0===G.value)));function I(e,t){if(P(),!1!==e&&C.animate(),ae(0),!0===L.value){const e=C.instances[U.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),le(1),!0!==C.isContainer.value&&b(!0)}else le(0),!1!==e&&ce(!1);y((()=>{!1!==e&&ce(!0),!0!==t&&i("show",e)}),f)}function R(e,t){M(),!1!==e&&C.animate(),le(0),ae(H.value*N.value),ge(),!0!==t?y((()=>{i("hide",e)}),f):w()}const{show:A,hide:O}=(0,s.ZP)({showing:D,hideOnRouteChange:T,handleShow:I,handleHide:R}),{addToHistory:P,removeFromHistory:M}=(0,r.Z)(D,O,T),F={belowBreakpoint:L,hide:O},B=(0,n.Fl)((()=>"right"===e.side)),H=(0,n.Fl)((()=>(!0===v.lang.rtl?-1:1)*(!0===B.value?1:-1))),W=(0,o.iH)(0),V=(0,o.iH)(!1),j=(0,o.iH)(!1),z=(0,o.iH)(N.value*H.value),U=(0,n.Fl)((()=>!0===B.value?"left":"right")),$=(0,n.Fl)((()=>!0===D.value&&!1===L.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:N.value:0)),q=(0,n.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||-1!==C.view.value.indexOf(B.value?"R":"L")||!0===v.platform.is.ios&&!0===C.isContainer.value)),K=(0,n.Fl)((()=>!1===e.overlay&&!0===D.value&&!1===L.value)),G=(0,n.Fl)((()=>!0===e.overlay&&!0===D.value&&!1===L.value)),Z=(0,n.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===D.value&&!1===V.value?" hidden":""))),Q=(0,n.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*W.value})`}))),Y=(0,n.Fl)((()=>!0===B.value?"r"===C.rows.value.top[2]:"l"===C.rows.value.top[0])),J=(0,n.Fl)((()=>!0===B.value?"r"===C.rows.value.bottom[2]:"l"===C.rows.value.bottom[0])),X=(0,n.Fl)((()=>{const e={};return!0===C.header.space&&!1===Y.value&&(!0===q.value?e.top=`${C.header.offset}px`:!0===C.header.space&&(e.top=`${C.header.size}px`)),!0===C.footer.space&&!1===J.value&&(!0===q.value?e.bottom=`${C.footer.offset}px`:!0===C.footer.space&&(e.bottom=`${C.footer.size}px`)),e})),ee=(0,n.Fl)((()=>{const e={width:`${N.value}px`,transform:`translateX(${z.value}px)`};return!0===L.value?e:Object.assign(e,X.value)})),te=(0,n.Fl)((()=>"q-drawer__content fit "+(!0!==C.isContainer.value?"scroll":"overflow-auto"))),ie=(0,n.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===j.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===_.value?" q-drawer--dark q-dark":"")+(!0===V.value?" no-transition":!0===D.value?"":" q-layout--prevent-focus")+(!0===L.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===E.value?"mini":"standard")+(!0===q.value||!0!==K.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===Y.value?" q-drawer--top-padding":"")))),ne=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?e.side:U.value;return[[d.Z,ue,void 0,{[t]:!0,mouse:!0}]]})),oe=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?U.value:e.side;return[[d.Z,he,void 0,{[t]:!0,mouse:!0}]]})),re=(0,n.Fl)((()=>{const t=!0===v.lang.rtl?U.value:e.side;return[[d.Z,he,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function se(){fe(L,"mobile"===e.behavior||"desktop"!==e.behavior&&C.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,n.Y3)((()=>{e=!0===D.value?0:N.value,ae(H.value*e)})):(!0!==C.isContainer.value||!0!==B.value||!0!==L.value&&Math.abs(e)!==N.value||(e+=H.value*C.scrollbarWidth.value),z.value=e)}function le(e){W.value=e}function ce(e){const t=!0===e?"remove":!0!==C.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function de(){null!==k&&clearTimeout(k),m.proxy&&m.proxy.$el&&m.proxy.$el.classList.add("q-drawer--mini-animate"),j.value=!0,k=setTimeout((()=>{k=null,j.value=!1,m&&m.proxy&&m.proxy.$el&&m.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ue(e){if(!1!==D.value)return;const t=N.value,i=(0,h.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=i>=Math.min(75,t);return!0===e?A():(C.animate(),le(0),ae(H.value*t)),void(V.value=!1)}ae((!0===v.lang.rtl?!0!==B.value:B.value)?Math.max(t-i,0):Math.min(0,i-t)),le((0,h.vX)(i/t,0,1)),!0===e.isFirst&&(V.value=!0)}function he(t){if(!0!==D.value)return;const i=N.value,n=t.direction===e.side,o=(!0===v.lang.rtl?!0!==n:n)?(0,h.vX)(t.distance.x,0,i):0;if(!0===t.isFinal){const e=Math.abs(o){!0===t?(S=D.value,!0===D.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==S&&(!0===D.value?(ae(0),le(0),ge()):A(!1))})),(0,n.YP)((()=>e.side),((e,t)=>{C.instances[t]===F&&(C.instances[t]=void 0,C[t].space=!1,C[t].offset=0),C.instances[e]=F,C[e].size=N.value,C[e].space=K.value,C[e].offset=$.value})),(0,n.YP)(C.totalWidth,(()=>{!0!==C.isContainer.value&&!0===document.qScrollPrevented||se()})),(0,n.YP)((()=>e.behavior+e.breakpoint),se),(0,n.YP)(C.isContainer,(e=>{!0===D.value&&b(!0!==e),!0===e&&se()})),(0,n.YP)(C.scrollbarWidth,(()=>{ae(!0===D.value?0:void 0)})),(0,n.YP)($,(e=>{pe("offset",e)})),(0,n.YP)(K,(e=>{i("onLayout",e),pe("space",e)})),(0,n.YP)(B,(()=>{ae()})),(0,n.YP)(N,(t=>{ae(),me(e.miniToOverlay,t)})),(0,n.YP)((()=>e.miniToOverlay),(e=>{me(e,N.value)})),(0,n.YP)((()=>v.lang.rtl),(()=>{ae()})),(0,n.YP)((()=>e.mini),(()=>{e.noMiniAnimation||!0===e.modelValue&&(de(),C.animate())})),(0,n.YP)(E,(e=>{i("miniState",e)})),C.instances[e.side]=F,me(e.miniToOverlay,N.value),pe("space",K.value),pe("offset",$.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===D.value&&void 0!==e["onUpdate:modelValue"]&&i("update:modelValue",!0),(0,n.bv)((()=>{i("onLayout",K.value),i("miniState",E.value),S=!0===e.showIfAbove;const t=()=>{const e=!0===D.value?I:R;e(!1,!0)};0===C.totalWidth.value?x=(0,n.YP)(C.totalWidth,(()=>{x(),x=void 0,!1===D.value&&!0===e.showIfAbove&&!1===L.value?A(!1):t()})):(0,n.Y3)(t)})),(0,n.Jd)((()=>{void 0!==x&&x(),null!==k&&(clearTimeout(k),k=null),!0===D.value&&ge(),C.instances[e.side]===F&&(C.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const i=[];!0===L.value&&(!1===e.noSwipeOpen&&i.push((0,n.wy)((0,n.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),i.push((0,g.Jl)("div",{ref:"backdrop",class:Z.value,style:Q.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===D.value,(()=>re.value))));const o=!0===E.value&&void 0!==t.mini,r=[(0,n.h)("div",{...u,key:""+o,class:[te.value,u.class]},!0===o?t.mini():(0,g.KR)(t.default))];return!0===e.elevated&&!0===D.value&&r.push((0,n.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),i.push((0,g.Jl)("aside",{ref:"content",class:ie.value,style:ee.value},r,"contentclose",!0!==e.noSwipeClose&&!0===L.value,(()=>oe.value))),(0,n.h)("div",{class:"q-drawer-container"},i)}}})},61123:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});i(49766),i(72879);var n=i(60499),o=i(59835),r=i(61957),s=i(490),a=i(76749),l=i(33115),c=i(22857),d=i(65987);const u=(0,d.L)({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:i}){let n,s,a,l,c=!1,d=null,u=null;function h(){n&&n(),n=null,c=!1,null!==d&&(clearTimeout(d),d=null),null!==u&&(clearTimeout(u),u=null),void 0!==s&&s.removeEventListener("transitionend",a),a=null}function g(t,i,o){void 0!==i&&(t.style.height=`${i}px`),t.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,c=!0,n=o}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,h(),t!==l&&i(t)}function f(t,i){let n=0;s=t,!0===c?(h(),n=t.offsetHeight===t.scrollHeight?0:void 0):(l="hide",t.style.overflowY="hidden"),g(t,n,i),d=setTimeout((()=>{d=null,t.style.height=`${t.scrollHeight}px`,a=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"show")},t.addEventListener("transitionend",a),u=setTimeout(a,1.1*e.duration)}),100)}function m(t,i){let n;s=t,!0===c?h():(l="show",t.style.overflowY="hidden",n=t.scrollHeight),g(t,n,i),d=setTimeout((()=>{d=null,t.style.height=0,a=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"hide")},t.addEventListener("transitionend",a),u=setTimeout(a,1.1*e.duration)}),100)}return(0,o.Jd)((()=>{!0===c&&h()})),()=>(0,o.h)(r.uT,{css:!1,appear:e.appear,onEnter:f,onLeave:m},t.default)}});var h=i(50926),g=i(68234),p=i(87729),f=i(70945),m=i(63842),v=i(91384),_=i(22026),b=i(50796);const y=(0,n.Um)({}),w=Object.keys(f.$),C=(0,d.L)({name:"QExpansionItem",props:{...f.$,...m.vr,...g.S,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...m.gH,"click","afterShow","afterHide"],setup(e,{slots:t,emit:i}){const{proxy:{$q:d}}=(0,o.FN)(),f=(0,g.Z)(e,d),C=(0,n.iH)(null!==e.modelValue?e.modelValue:e.defaultOpened),S=(0,n.iH)(null),x=(0,p.Z)(),{show:k,hide:L,toggle:E}=(0,m.ZP)({showing:C});let N,D;const T=(0,o.Fl)((()=>"q-expansion-item q-item-type q-expansion-item--"+(!0===C.value?"expanded":"collapsed")+" q-expansion-item--"+(!0===e.popup?"popup":"standard"))),I=(0,o.Fl)((()=>{if(void 0===e.contentInsetLevel)return null;const t=!0===d.lang.rtl?"Right":"Left";return{["padding"+t]:56*e.contentInsetLevel+"px"}})),R=(0,o.Fl)((()=>!0!==e.disable&&(void 0!==e.href||void 0!==e.to&&null!==e.to&&""!==e.to))),A=(0,o.Fl)((()=>{const t={};return w.forEach((i=>{t[i]=e[i]})),t})),O=(0,o.Fl)((()=>!0===R.value||!0!==e.expandIconToggle)),P=(0,o.Fl)((()=>void 0!==e.expandedIcon&&!0===C.value?e.expandedIcon:e.expandIcon||d.iconSet.expansionItem[!0===e.denseToggle?"denseIcon":"icon"])),M=(0,o.Fl)((()=>!0!==e.disable&&(!0===R.value||!0===e.expandIconToggle))),F=(0,o.Fl)((()=>({expanded:!0===C.value,detailsId:x.value,toggle:E,show:k,hide:L}))),B=(0,o.Fl)((()=>{const t=void 0!==e.toggleAriaLabel?e.toggleAriaLabel:d.lang.label[!0===C.value?"collapse":"expand"](e.label);return{role:"button","aria-expanded":!0===C.value?"true":"false","aria-controls":x.value,"aria-label":t}}));function H(e){!0!==R.value&&E(e),i("click",e)}function W(e){13===e.keyCode&&V(e,!0)}function V(e,t){!0!==t&&null!==S.value&&S.value.focus(),E(e),(0,v.NS)(e)}function j(){i("afterShow")}function z(){i("afterHide")}function U(){void 0===N&&(N=(0,b.Z)()),!0===C.value&&(y[e.group]=N);const t=(0,o.YP)(C,(t=>{!0===t?y[e.group]=N:y[e.group]===N&&delete y[e.group]})),i=(0,o.YP)((()=>y[e.group]),((e,t)=>{t===N&&void 0!==e&&e!==N&&L()}));D=()=>{t(),i(),y[e.group]===N&&delete y[e.group],D=void 0}}function $(){const t={class:["q-focusable relative-position cursor-pointer"+(!0===e.denseToggle&&!0===e.switchToggleSide?" items-end":""),e.expandIconClass],side:!0!==e.switchToggleSide,avatar:e.switchToggleSide},i=[(0,o.h)(c.Z,{class:"q-expansion-item__toggle-icon"+(void 0===e.expandedIcon&&!0===C.value?" q-expansion-item__toggle-icon--rotated":""),name:P.value})];return!0===M.value&&(Object.assign(t,{tabindex:0,...B.value,onClick:V,onKeyup:W}),i.unshift((0,o.h)("div",{ref:S,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),(0,o.h)(a.Z,t,(()=>i))}function q(){let i;return void 0!==t.header?i=[].concat(t.header(F.value)):(i=[(0,o.h)(a.Z,(()=>[(0,o.h)(l.Z,{lines:e.labelLines},(()=>e.label||"")),e.caption?(0,o.h)(l.Z,{lines:e.captionLines,caption:!0},(()=>e.caption)):null]))],e.icon&&i[!0===e.switchToggleSide?"push":"unshift"]((0,o.h)(a.Z,{side:!0===e.switchToggleSide,avatar:!0!==e.switchToggleSide},(()=>(0,o.h)(c.Z,{name:e.icon}))))),!0!==e.disable&&!0!==e.hideExpandIcon&&i[!0===e.switchToggleSide?"unshift":"push"]($()),i}function K(){const t={ref:"item",style:e.headerStyle,class:e.headerClass,dark:f.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return!0===O.value&&(t.clickable=!0,t.onClick=H,Object.assign(t,!0===R.value?A.value:B.value)),(0,o.h)(s.Z,t,q)}function G(){return(0,o.wy)((0,o.h)("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:I.value,id:x.value},(0,_.KR)(t.default)),[[r.F8,C.value]])}function Z(){const t=[K(),(0,o.h)(u,{duration:e.duration,onShow:j,onHide:z},G)];return!0===e.expandSeparator&&t.push((0,o.h)(h.Z,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:f.value}),(0,o.h)(h.Z,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:f.value})),t}return(0,o.YP)((()=>e.group),(e=>{void 0!==D&&D(),void 0!==e&&U()})),void 0!==e.group&&U(),(0,o.Jd)((()=>{void 0!==D&&D()})),()=>(0,o.h)("div",{class:T.value},[(0,o.h)("div",{class:"q-expansion-item__container relative-position"},Z())])}})},8326:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(72879);var n=i(59835),o=i(60499),r=i(65987),s=i(91384),a=i(17026),l=i(22026),c=i(95439),d=i(52046);const u=(0,r.L)({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:i}){const r=(0,n.FN)(),u=(0,o.iH)(null);let h=0;const g=[];function p(t){const n="boolean"===typeof t?t:!0!==e.noErrorFocus,o=++h,r=(e,t)=>{i("validation"+(!0===e?"Success":"Error"),t)},s=e=>{const t=e.validate();return"function"===typeof t.then?t.then((t=>({valid:t,comp:e})),(t=>({valid:!1,comp:e,err:t}))):Promise.resolve({valid:t,comp:e})},a=!0===e.greedy?Promise.all(g.map(s)).then((e=>e.filter((e=>!0!==e.valid)))):g.reduce(((e,t)=>e.then((()=>s(t).then((e=>{if(!1===e.valid)return Promise.reject(e)}))))),Promise.resolve()).catch((e=>[e]));return a.then((e=>{if(void 0===e||0===e.length)return o===h&&r(!0),!0;if(o===h){const{comp:t,err:i}=e[0];if(void 0!==i&&console.error(i),r(!1,t),!0===n){const t=e.find((({comp:e})=>"function"===typeof e.focus&&!1===(0,d.$D)(e.$)));void 0!==t&&t.comp.focus()}}return!1}))}function f(){h++,g.forEach((e=>{"function"===typeof e.resetValidation&&e.resetValidation()}))}function m(t){void 0!==t&&(0,s.NS)(t);const n=h+1;p().then((o=>{n===h&&!0===o&&(void 0!==e.onSubmit?i("submit",t):void 0!==t&&void 0!==t.target&&"function"===typeof t.target.submit&&t.target.submit())}))}function v(t){void 0!==t&&(0,s.NS)(t),i("reset"),(0,n.Y3)((()=>{f(),!0===e.autofocus&&!0!==e.noResetFocus&&_()}))}function _(){(0,a.jd)((()=>{if(null===u.value)return;const e=u.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||u.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||u.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(u.value.querySelectorAll("[tabindex]"),(e=>-1!==e.tabIndex));null!==e&&void 0!==e&&e.focus({preventScroll:!0})}))}(0,n.JJ)(c.vh,{bindComponent(e){g.push(e)},unbindComponent(e){const t=g.indexOf(e);-1!==t&&g.splice(t,1)}});let b=!1;return(0,n.se)((()=>{b=!0})),(0,n.dl)((()=>{!0===b&&!0===e.autofocus&&_()})),(0,n.bv)((()=>{!0===e.autofocus&&_()})),Object.assign(r.proxy,{validate:p,resetValidation:f,submit:m,reset:v,focus:_,getValidationComponents:()=>g}),()=>(0,n.h)("form",{class:"q-form",ref:u,onSubmit:m,onReset:v},(0,l.KR)(t.default))}})},16602:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});i(72879);var n=i(59835),o=i(60499),r=i(76849),s=i(65987),a=i(22026),l=i(95439);const c=(0,s.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:i}){const{proxy:{$q:s}}=(0,n.FN)(),c=(0,n.f3)(l.YE,l.qO);if(c===l.qO)return console.error("QHeader needs to be child of QLayout"),l.qO;const d=(0,o.iH)(parseInt(e.heightHint,10)),u=(0,o.iH)(!0),h=(0,n.Fl)((()=>!0===e.reveal||-1!==c.view.value.indexOf("H")||s.platform.is.ios&&!0===c.isContainer.value)),g=(0,n.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===h.value)return!0===u.value?d.value:0;const t=d.value-c.scroll.value.position;return t>0?t:0})),p=(0,n.Fl)((()=>!0!==e.modelValue||!0===h.value&&!0!==u.value)),f=(0,n.Fl)((()=>!0===e.modelValue&&!0===p.value&&!0===e.reveal)),m=(0,n.Fl)((()=>"q-header q-layout__section--marginal "+(!0===h.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===p.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),v=(0,n.Fl)((()=>{const e=c.rows.value.top,t={};return"l"===e[0]&&!0===c.left.space&&(t[!0===s.lang.rtl?"right":"left"]=`${c.left.size}px`),"r"===e[2]&&!0===c.right.space&&(t[!0===s.lang.rtl?"left":"right"]=`${c.right.size}px`),t}));function _(e,t){c.update("header",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(d,e),_("size",e)}function w(e){!0===f.value&&b(u,!0),i("focusin",e)}(0,n.YP)((()=>e.modelValue),(e=>{_("space",e),b(u,!0),c.animate()})),(0,n.YP)(g,(e=>{_("offset",e)})),(0,n.YP)((()=>e.reveal),(t=>{!1===t&&b(u,e.modelValue)})),(0,n.YP)(u,(e=>{c.animate(),i("reveal",e)})),(0,n.YP)(c.scroll,(t=>{!0===e.reveal&&b(u,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const C={};return c.instances.header=C,!0===e.modelValue&&_("size",d.value),_("space",e.modelValue),_("offset",g.value),(0,n.Jd)((()=>{c.instances.header===C&&(c.instances.header=void 0,_("size",0),_("offset",0),_("space",!1))})),()=>{const i=(0,a.Bl)(t.default,[]);return!0===e.elevated&&i.push((0,n.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),i.push((0,n.h)(r.Z,{debounce:0,onResize:y})),(0,n.h)("header",{class:m.value,style:v.value,onFocusin:w},i)}}})},22857:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(59835),o=i(20244),r=i(65987),s=i(22026);const a="0 0 24 24",l=e=>e,c=e=>`ionicons ${e}`,d={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":c,"ion-ios":c,"ion-logo":c,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},u={o_:"-outlined",r_:"-round",s_:"-sharp"},h={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},g=new RegExp("^("+Object.keys(d).join("|")+")"),p=new RegExp("^("+Object.keys(u).join("|")+")"),f=new RegExp("^("+Object.keys(h).join("|")+")"),m=/^[Mm]\s?[-+]?\.?\d/,v=/^img:/,_=/^svguse:/,b=/^ion-/,y=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,w=(0,r.L)({name:"QIcon",props:{...o.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),r=(0,o.ZP)(e),l=(0,n.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),c=(0,n.Fl)((()=>{let t,o=e.name;if("none"===o||!o)return{none:!0};if(null!==i.iconMapFn){const e=i.iconMapFn(o);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(o=e.icon,"none"===o||!o)return{none:!0}}}if(!0===m.test(o)){const[e,t=a]=o.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,i,o]=e.split("@@");return(0,n.h)("path",{style:i,d:t,transform:o})}))}}if(!0===v.test(o))return{img:!0,src:o.substring(4)};if(!0===_.test(o)){const[e,t=a]=o.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let r=" ";const s=o.match(g);if(null!==s)t=d[s[1]](o);else if(!0===y.test(o))t=o;else if(!0===b.test(o))t=`ionicons ion-${!0===i.platform.is.ios?"ios":"md"}${o.substring(3)}`;else if(!0===f.test(o)){t="notranslate material-symbols";const e=o.match(f);null!==e&&(o=o.substring(6),t+=h[e[1]]),r=o}else{t="notranslate material-icons";const e=o.match(p);null!==e&&(o=o.substring(2),t+=u[e[1]]),r=o}return{cls:t,content:r}}));return()=>{const i={class:l.value,style:r.value,"aria-hidden":"true",role:"presentation"};return!0===c.value.none?(0,n.h)(e.tag,i,(0,s.KR)(t.default)):!0===c.value.img?(0,n.h)(e.tag,i,(0,s.vs)(t.default,[(0,n.h)("img",{src:c.value.src})])):!0===c.value.svg?(0,n.h)(e.tag,i,(0,s.vs)(t.default,[(0,n.h)("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):!0===c.value.svguse?(0,n.h)(e.tag,i,(0,s.vs)(t.default,[(0,n.h)("svg",{viewBox:c.value.viewBox},[(0,n.h)("use",{"xlink:href":c.value.src})])])):(void 0!==c.value.cls&&(i.class+=" "+c.value.cls),(0,n.h)(e.tag,i,(0,s.vs)(t.default,[c.value.content])))}}})},70335:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});i(72879);var n=i(60499),o=i(59835),r=i(61957),s=i(63940),a=i(39180);const l={ratio:[String,Number]};function c(e,t){return(0,o.Fl)((()=>{const i=Number(e.ratio||(void 0!==t?t.value:void 0));return!0!==isNaN(i)&&i>0?{paddingBottom:100/i+"%"}:null}))}var d=i(65987),u=i(22026),h=i(52046),g=i(4698);const p=1.7778,f=(0,d.L)({name:"QImg",props:{...l,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:p},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:i}){const l=(0,n.iH)(e.initialRatio),d=c(e,l),p=(0,o.FN)(),{registerTimeout:f,removeTimeout:m}=(0,g.Z)(),{registerTimeout:v,removeTimeout:_}=(0,g.Z)(),b=(0,o.Fl)((()=>void 0!==e.placeholderSrc?{src:e.placeholderSrc}:null)),y=(0,o.Fl)((()=>void 0!==e.errorSrc?{src:e.errorSrc,__qerror:!0}:null)),w=[(0,n.iH)(null),(0,n.iH)(b.value)],C=(0,n.iH)(0),S=(0,n.iH)(!1),x=(0,n.iH)(!1),k=(0,o.Fl)((()=>`q-img q-img--${!0===e.noNativeMenu?"no-":""}menu`)),L=(0,o.Fl)((()=>({width:e.width,height:e.height}))),E=(0,o.Fl)((()=>"q-img__image "+(void 0!==e.imgClass?e.imgClass+" ":"")+`q-img__image--with${!0===e.noTransition?"out":""}-transition q-img__image--`)),N=(0,o.Fl)((()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position})));function D(){_(),0!==e.loadingShowDelay?v((()=>{S.value=!0}),e.loadingShowDelay):S.value=!0}function T(){_(),S.value=!1}function I({target:e}){!1===(0,h.$D)(p)&&(m(),l.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,R(e,1))}function R(e,t){1e3!==t&&!0!==(0,h.$D)(p)&&(!0===e.complete?A(e):f((()=>{R(e,t+1)}),50))}function A(e){!0!==(0,h.$D)(p)&&(C.value=1^C.value,w[C.value].value=null,T(),"true"!==e.getAttribute("__qerror")&&(x.value=!1),i("load",e.currentSrc||e.src))}function O(e){m(),T(),x.value=!0,w[C.value].value=y.value,w[1^C.value].value=b.value,i("error",e)}function P(t){const i=w[t].value,n={key:"img_"+t,class:E.value,style:N.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...i};return C.value===t?Object.assign(n,{class:n.class+"current",onLoad:I,onError:O}):n.class+="loaded",(0,o.h)("div",{class:"q-img__container absolute-full",key:"img"+t},(0,o.h)("img",n))}function M(){return!1===S.value?(0,o.h)("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},(0,u.KR)(t[!0===x.value?"error":"default"])):(0,o.h)("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==t.loading?t.loading():!0===e.noSpinner?void 0:[(0,o.h)(s.Z,{color:e.spinnerColor,size:e.spinnerSize})])}{function F(){(0,o.YP)((()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null),(e=>{m(),x.value=!1,null===e?(T(),w[1^C.value].value=b.value):D(),w[C.value].value=e}),{immediate:!0})}!0===a.u.value?(0,o.bv)(F):F()}return()=>{const t=[];return null!==d.value&&t.push((0,o.h)("div",{key:"filler",style:d.value})),null!==w[0].value&&t.push(P(0)),null!==w[1].value&&t.push(P(1)),t.push((0,o.h)(r.uT,{name:"q-transition--fade"},M)),(0,o.h)("div",{key:"main",class:k.value,style:L.value,role:"img","aria-label":e.alt},t)}}})},66611:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(59835),o=i(60499),r=i(87810),s=(i(72879),i(61705));const a={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},c=Object.keys(l);c.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const d=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+c.join("")+"])|(.)","g"),u=/[.*+?^${}()|[\]\\]/g,h=String.fromCharCode(1),g={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function p(e,t,i,r){let c,g,p,f,m,v;const _=(0,o.iH)(null),b=(0,o.iH)(w());function y(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function w(){if(S(),!0===_.value){const t=D(I(e.modelValue));return!1!==e.fillMask?R(t):t}return e.modelValue}function C(e){if(e0;n--)t+=h;i=i.slice(0,n)+t+i.slice(n)}return i}function S(){if(_.value=void 0!==e.mask&&0!==e.mask.length&&y(),!1===_.value)return f=void 0,c="",void(g="");const t=void 0===a[e.mask]?e.mask:a[e.mask],i="string"===typeof e.fillMask&&0!==e.fillMask.length?e.fillMask.slice(0,1):"_",n=i.replace(u,"\\$&"),o=[],r=[],s=[];let m=!0===e.reverseFillMask,v="",b="";t.replace(d,((e,t,i,n,a)=>{if(void 0!==n){const e=l[n];s.push(e),b=e.negate,!0===m&&(r.push("(?:"+b+"+)?("+e.pattern+"+)?(?:"+b+"+)?("+e.pattern+"+)?"),m=!1),r.push("(?:"+b+"+)?("+e.pattern+")?")}else if(void 0!==i)v="\\"+("\\"===i?"":i),s.push(i),o.push("([^"+v+"]+)?"+v+"?");else{const e=void 0!==t?t:a;v="\\"===e?"\\\\\\\\":e.replace(u,"\\\\$&"),s.push(e),o.push("([^"+v+"]+)?"+v+"?")}}));const w=new RegExp("^"+o.join("")+"("+(""===v?".":"[^"+v+"]")+"+)?"+(""===v?"":"["+v+"]*")+"$"),C=r.length-1,S=r.map(((t,i)=>0===i&&!0===e.reverseFillMask?new RegExp("^"+n+"*"+t):i===C?new RegExp("^"+t+"("+(""===b?".":b)+"+)?"+(!0===e.reverseFillMask?"$":n+"*")):new RegExp("^"+t)));p=s,f=t=>{const i=w.exec(!0===e.reverseFillMask?t:t.slice(0,s.length+1));null!==i&&(t=i.slice(1).join(""));const n=[],o=S.length;for(let e=0,r=t;e"string"===typeof e?e:h)).join(""),g=c.split(h).join(i)}function x(t,o,s){const a=r.value,l=a.selectionEnd,d=a.value.length-l,u=I(t);!0===o&&S();const p=D(u),f=!1!==e.fillMask?R(p):p,v=b.value!==f;a.value!==f&&(a.value=f),!0===v&&(b.value=f),document.activeElement===a&&(0,n.Y3)((()=>{if(f!==g)if("insertFromPaste"!==s||!0===e.reverseFillMask)if(-1===["deleteContentBackward","deleteContentForward"].indexOf(s))if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,f.length-(f===g?0:Math.min(p.length,d+1)));1===e&&1===l?a.setSelectionRange(e,e,"forward"):L.rightReverse(a,e)}else{const e=f.length-d;a.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,c.indexOf(h),Math.min(p.length,l)-1);L.right(a,e)}else{const e=l-1;L.right(a,e)}else{const t=!0===e.reverseFillMask?0===l?f.length>p.length?1:0:Math.max(0,f.length-(f===g?0:Math.min(p.length,d)+1))+1:l;a.setSelectionRange(t,t,"forward")}else{const e=a.selectionEnd;let t=l-1;for(let i=m;i<=t&&ie.type+e.autogrow),S),(0,n.YP)((()=>e.mask),(i=>{if(void 0!==i)x(b.value,!0);else{const i=I(b.value);S(),e.modelValue!==i&&t("update:modelValue",i)}})),(0,n.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===_.value&&x(b.value,!0)})),(0,n.YP)((()=>e.unmaskedValue),(()=>{!0===_.value&&x(b.value)}));const L={left(e,t){const i=-1===c.slice(t-1).indexOf(h);let n=Math.max(0,t-1);for(;n>=0;n--)if(c[n]===h){t=n,!0===i&&t++;break}if(n<0&&void 0!==c[t]&&c[t]!==h)return L.right(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},right(e,t){const i=e.value.length;let n=Math.min(i,t+1);for(;n<=i;n++){if(c[n]===h){t=n;break}c[n-1]===h&&(t=n)}if(n>i&&void 0!==c[t-1]&&c[t-1]!==h)return L.left(e,i);e.setSelectionRange(t,t,"forward")},leftReverse(e,t){const i=C(e.value.length);let n=Math.max(0,t-1);for(;n>=0;n--){if(i[n-1]===h){t=n;break}if(i[n]===h&&(t=n,0===n))break}if(n<0&&void 0!==i[t]&&i[t]!==h)return L.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},rightReverse(e,t){const i=e.value.length,n=C(i),o=-1===n.slice(0,t+1).indexOf(h);let r=Math.min(i,t+1);for(;r<=i;r++)if(n[r-1]===h){t=r,t>0&&!0===o&&t--;break}if(r>i&&void 0!==n[t-1]&&n[t-1]!==h)return L.leftReverse(e,i);e.setSelectionRange(t,t,"forward")}};function E(e){t("click",e),v=void 0}function N(i){if(t("keydown",i),!0===(0,s.Wm)(i)||!0===i.altKey)return;const n=r.value,o=n.selectionStart,a=n.selectionEnd;if(i.shiftKey||(v=void 0),37===i.keyCode||39===i.keyCode){i.shiftKey&&void 0===v&&(v="forward"===n.selectionDirection?o:a);const t=L[(39===i.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];if(i.preventDefault(),t(n,v===o?a:o),i.shiftKey){const e=n.selectionStart;n.setSelectionRange(Math.min(v,e),Math.max(v,e),"forward")}}else 8===i.keyCode&&!0!==e.reverseFillMask&&o===a?(L.left(n,o),n.setSelectionRange(n.selectionStart,a,"backward")):46===i.keyCode&&!0===e.reverseFillMask&&o===a&&(L.rightReverse(n,a),n.setSelectionRange(o,n.selectionEnd,"forward"))}function D(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const i=p;let n=0,o="";for(let e=0;e=0&&-1!==n;r--){const s=t[r];let a=e[n];if("string"===typeof s)o=s+o,a===s&&n--;else{if(void 0===a||!s.regex.test(a))return o;do{o=(void 0!==s.transform?s.transform(a):a)+o,n--,a=e[n]}while(i===r&&void 0!==a&&s.regex.test(a))}}return o}function I(e){return"string"!==typeof e||void 0===f?"number"===typeof e?f(""+e):e:f(e)}function R(t){return g.length-t.length<=0?t:!0===e.reverseFillMask&&0!==t.length?g.slice(0,-t.length)+t:t+g.slice(t.length)}return{innerValue:b,hasMask:_,moveCursorForPaste:k,updateMaskValue:x,onMaskedKeydown:N,onMaskedClick:E}}var f=i(99256);function m(e,t){function i(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(i){return{files:void 0}}}return!0===t?(0,n.Fl)((()=>{if("file"===e.type)return i()})):(0,n.Fl)(i)}var v=i(62802),_=i(65987),b=i(91384),y=i(17026),w=i(43251);const C=(0,_.L)({name:"QInput",inheritAttrs:!1,props:{...r.Cl,...g,...f.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...r.HJ,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:i}){const{proxy:s}=(0,n.FN)(),{$q:a}=s,l={};let c,d,u,h=NaN,g=null;const _=(0,o.iH)(null),C=(0,f.Do)(e),{innerValue:S,hasMask:x,moveCursorForPaste:k,updateMaskValue:L,onMaskedKeydown:E,onMaskedClick:N}=p(e,t,j,_),D=m(e,!0),T=(0,n.Fl)((()=>(0,r.yV)(S.value))),I=(0,v.Z)(W),R=(0,r.tL)(),A=(0,n.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),O=(0,n.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),P=(0,n.Fl)((()=>{const t={...R.splitAttrs.listeners.value,onInput:W,onPaste:H,onChange:U,onBlur:$,onFocus:b.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=I,!0===x.value&&(t.onKeydown=E,t.onClick=N),!0===e.autogrow&&(t.onAnimationend=V),t})),M=(0,n.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:C.value,...R.splitAttrs.attributes.value,id:R.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function F(){(0,y.jd)((()=>{const e=document.activeElement;null===_.value||_.value===e||null!==e&&e.id===R.targetUid.value||_.value.focus({preventScroll:!0})}))}function B(){null!==_.value&&_.value.select()}function H(i){if(!0===x.value&&!0!==e.reverseFillMask){const e=i.target;k(e,e.selectionStart,e.selectionEnd)}t("paste",i)}function W(i){if(!i||!i.target)return;if("file"===e.type)return void t("update:modelValue",i.target.files);const o=i.target.value;if(!0!==i.target.qComposing){if(!0===x.value)L(o,!1,i.inputType);else if(j(o),!0===O.value&&i.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=i.target;void 0!==e&&void 0!==t&&(0,n.Y3)((()=>{i.target===document.activeElement&&0===o.indexOf(i.target.value)&&i.target.setSelectionRange(e,t)}))}!0===e.autogrow&&z()}else l.value=o}function V(e){t("animationend",e),z()}function j(i,o){u=()=>{g=null,"number"!==e.type&&!0===l.hasOwnProperty("value")&&delete l.value,e.modelValue!==i&&h!==i&&(h=i,!0===o&&(d=!0),t("update:modelValue",i),(0,n.Y3)((()=>{h===i&&(h=NaN)}))),u=void 0},"number"===e.type&&(c=!0,l.value=i),void 0!==e.debounce?(null!==g&&clearTimeout(g),l.value=i,g=setTimeout(u,e.debounce)):u()}function z(){requestAnimationFrame((()=>{const e=_.value;if(null!==e){const t=e.parentNode.style,{scrollTop:i}=e,{overflowY:n,maxHeight:o}=!0===a.platform.is.firefox?{}:window.getComputedStyle(e),r=void 0!==n&&"scroll"!==n;!0===r&&(e.style.overflowY="hidden"),t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",!0===r&&(e.style.overflowY=parseInt(o,10){null!==_.value&&(_.value.value=void 0!==S.value?S.value:"")}))}function q(){return!0===l.hasOwnProperty("value")?l.value:void 0!==S.value?S.value:""}(0,n.YP)((()=>e.type),(()=>{_.value&&(_.value.value=e.modelValue)})),(0,n.YP)((()=>e.modelValue),(t=>{if(!0===x.value){if(!0===d&&(d=!1,String(t)===h))return;L(t)}else S.value!==t&&(S.value=t,"number"===e.type&&!0===l.hasOwnProperty("value")&&(!0===c?c=!1:delete l.value));!0===e.autogrow&&(0,n.Y3)(z)})),(0,n.YP)((()=>e.autogrow),(e=>{!0===e?(0,n.Y3)(z):null!==_.value&&i.rows>0&&(_.value.style.height="auto")})),(0,n.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,n.Y3)(z)})),(0,n.Jd)((()=>{$()})),(0,n.bv)((()=>{!0===e.autogrow&&z()})),Object.assign(R,{innerValue:S,fieldClass:(0,n.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,n.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&0!==e.shadowText.length)),inputRef:_,emitValue:j,hasValue:T,floatingLabel:(0,n.Fl)((()=>!0===T.value&&("number"!==e.type||!1===isNaN(S.value))||(0,r.yV)(e.displayValue))),getControl:()=>(0,n.h)(!0===A.value?"textarea":"input",{ref:_,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...M.value,...P.value,..."file"!==e.type?{value:q()}:D.value}),getShadowControl:()=>(0,n.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,n.h)("span",{class:"invisible"},q()),(0,n.h)("span",e.shadowText)])});const K=(0,r.ZP)(R);return Object.assign(s,{focus:F,select:B,getNativeElement:()=>_.value}),(0,w.g)(s,"nativeEl",(()=>_.value)),K}})},490:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(49766);var n=i(59835),o=i(60499),r=i(68234),s=i(70945),a=i(65987),l=i(22026),c=i(91384),d=i(61705);const u=(0,a.L)({name:"QItem",props:{...r.S,...s.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:i}){const{proxy:{$q:a}}=(0,n.FN)(),u=(0,r.Z)(e,a),{hasLink:h,linkAttrs:g,linkClass:p,linkTag:f,navigateOnClick:m}=(0,s.Z)(),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0===e.clickable||!0===h.value||"label"===e.tag)),y=(0,n.Fl)((()=>!0!==e.disable&&!0===b.value)),w=(0,n.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===u.value?" q-item--dark":"")+(!0===h.value&&null===e.active?p.value:!0===e.active?" q-item--active"+(void 0!==e.activeClass?` ${e.activeClass}`:""):"")+(!0===e.disable?" disabled":"")+(!0===y.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),C=(0,n.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===a.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function S(e){!0===y.value&&(null!==_.value&&(!0!==e.qKeyEvent&&document.activeElement===v.value?_.value.focus():document.activeElement===_.value&&v.value.focus()),m(e))}function x(e){if(!0===y.value&&!0===(0,d.So)(e,[13,32])){(0,c.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,v.value.dispatchEvent(t)}i("keyup",e)}function k(){const e=(0,l.Bl)(t.default,[]);return!0===y.value&&e.unshift((0,n.h)("div",{class:"q-focus-helper",tabindex:-1,ref:_})),e}return()=>{const t={ref:v,class:w.value,style:C.value,role:"listitem",onClick:S,onKeyup:x};return!0===y.value?(t.tabindex=e.tabindex||"0",Object.assign(t,g.value)):!0===b.value&&(t["aria-disabled"]="true"),(0,n.h)(f.value,t,k())}}})},33115:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const i=(0,n.Fl)((()=>parseInt(e.lines,10))),o=(0,n.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===i.value?" ellipsis":""))),s=(0,n.Fl)((()=>void 0!==e.lines&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null));return()=>(0,n.h)("div",{style:s.value,class:o.value},(0,r.KR)(t.default))}})},76749:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,n.h)("div",{class:i.value},(0,r.KR)(t.default))}})},13246:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),r=i(68234),s=i(22026);const a=(0,o.L)({name:"QList",props:{...r.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,r.Z)(e,i.proxy.$q),a=(0,n.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===o.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,n.h)(e.tag,{class:a.value},(0,s.KR)(t.default))}})},20249:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(59835),o=i(60499),r=i(39180),s=i(71868),a=i(76849),l=i(65987),c=i(43701),d=i(22026),u=i(95439);const h=(0,l.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:i}){const{proxy:{$q:l}}=(0,n.FN)(),h=(0,o.iH)(null),g=(0,o.iH)(l.screen.height),p=(0,o.iH)(!0===e.container?0:l.screen.width),f=(0,o.iH)({position:0,direction:"down",inflectionPoint:0}),m=(0,o.iH)(0),v=(0,o.iH)(!0===r.u.value?0:(0,c.np)()),_=(0,n.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),b=(0,n.Fl)((()=>!1===e.container?{minHeight:l.screen.height+"px"}:null)),y=(0,n.Fl)((()=>0!==v.value?{[!0===l.lang.rtl?"left":"right"]:`${v.value}px`}:null)),w=(0,n.Fl)((()=>0!==v.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${v.value}px`,width:`calc(100% + ${v.value}px)`}:null));function C(t){if(!0===e.container||!0!==document.qScrollPrevented){const n={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};f.value=n,void 0!==e.onScroll&&i("scroll",n)}}function S(t){const{height:n,width:o}=t;let r=!1;g.value!==n&&(r=!0,g.value=n,void 0!==e.onScrollHeight&&i("scrollHeight",n),k()),p.value!==o&&(r=!0,p.value=o),!0===r&&void 0!==e.onResize&&i("resize",t)}function x({height:e}){m.value!==e&&(m.value=e,k())}function k(){if(!0===e.container){const e=g.value>m.value?(0,c.np)():0;v.value!==e&&(v.value=e)}}let L=null;const E={instances:{},view:(0,n.Fl)((()=>e.view)),isContainer:(0,n.Fl)((()=>e.container)),rootRef:h,height:g,containerHeight:m,scrollbarWidth:v,totalWidth:(0,n.Fl)((()=>p.value+v.value)),rows:(0,n.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,o.qj)({size:0,offset:0,space:!1}),right:(0,o.qj)({size:300,offset:0,space:!1}),footer:(0,o.qj)({size:0,offset:0,space:!1}),left:(0,o.qj)({size:300,offset:0,space:!1}),scroll:f,animate(){null!==L?clearTimeout(L):document.body.classList.add("q-body--layout-animate"),L=setTimeout((()=>{L=null,document.body.classList.remove("q-body--layout-animate")}),155)},update(e,t,i){E[e][t]=i}};if((0,n.JJ)(u.YE,E),(0,c.np)()>0){let N=null;const D=document.body;function T(){N=null,D.classList.remove("hide-scrollbar")}function I(){if(null===N){if(D.scrollHeight>l.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(N);N=setTimeout(T,300)}function R(e){null!==N&&"remove"===e&&(clearTimeout(N),T()),window[`${e}EventListener`]("resize",I)}(0,n.YP)((()=>!0!==e.container?"add":"remove"),R),!0!==e.container&&R("add"),(0,n.Ah)((()=>{R("remove")}))}return()=>{const i=(0,d.vs)(t.default,[(0,n.h)(s.Z,{onScroll:C}),(0,n.h)(a.Z,{onResize:S})]),o=(0,n.h)("div",{class:_.value,style:b.value,ref:!0===e.container?void 0:h,tabindex:-1},i);return!0===e.container?(0,n.h)("div",{class:"q-layout-container overflow-hidden",ref:h},[(0,n.h)(a.Z,{onResize:x}),(0,n.h)("div",{class:"absolute-full",style:y.value},[(0,n.h)("div",{class:"scroll",style:w.value},[o])])]):o}}})},8289:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});i(72879);var n=i(59835),o=i(68234),r=i(20244),s=i(65987),a=i(22026);const l={xs:2,sm:4,md:6,lg:10,xl:14};function c(e,t,i){return{transform:!0===t?`translateX(${!0===i.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const d=(0,s.L)({name:"QLinearProgress",props:{...o.S,...r.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:i}=(0,n.FN)(),s=(0,o.Z)(e,i.$q),d=(0,r.ZP)(e,l),u=(0,n.Fl)((()=>!0===e.indeterminate||!0===e.query)),h=(0,n.Fl)((()=>e.reverse!==e.query)),g=(0,n.Fl)((()=>({...null!==d.value?d.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),p=(0,n.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),f=(0,n.Fl)((()=>c(void 0!==e.buffer?e.buffer:1,h.value,i.$q))),m=(0,n.Fl)((()=>`with${!0===e.instantFeedback?"out":""}-transition`)),v=(0,n.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--${m.value} q-linear-progress__track--`+(!0===s.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),_=(0,n.Fl)((()=>c(!0===u.value?1:e.value,h.value,i.$q))),b=(0,n.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--${m.value} q-linear-progress__model--${!0===u.value?"in":""}determinate`)),y=(0,n.Fl)((()=>({width:100*e.value+"%"}))),w=(0,n.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")+` q-linear-progress__stripe--${m.value}`));return()=>{const i=[(0,n.h)("div",{class:v.value,style:f.value}),(0,n.h)("div",{class:b.value,style:_.value})];return!0===e.stripe&&!1===u.value&&i.push((0,n.h)("div",{class:w.value,style:y.value})),(0,n.h)("div",{class:p.value,style:g.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,a.vs)(t.default,i))}}})},47447:(e,t,i)=>{"use strict";i.d(t,{Z:()=>$});var n=i(59835),o=i(60499),r=i(61957),s=i(2589),a=i(91384),l=i(61705);const c={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function d({showing:e,avoidEmit:t,configureAnchorEl:i}){const{props:r,proxy:c,emit:d}=(0,n.FN)(),u=(0,o.iH)(null);let h=null;function g(e){return null!==u.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const p={};function f(){(0,a.ul)(p,"anchor")}function m(e){u.value=e;while(u.value.classList.contains("q-anchor--skip"))u.value=u.value.parentNode;i()}function v(){if(!1===r.target||""===r.target||null===c.$el.parentNode)u.value=null;else if(!0===r.target)m(c.$el.parentNode);else{let t=r.target;if("string"===typeof r.target)try{t=document.querySelector(r.target)}catch(e){t=void 0}void 0!==t&&null!==t?(u.value=t.$el||t,i()):(u.value=null,console.error(`Anchor: target "${r.target}" not found`))}}return void 0===i&&(Object.assign(p,{hide(e){c.hide(e)},toggle(e){c.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,l.So)(e,13)&&p.toggle(e)},contextClick(e){c.hide(e),(0,a.X$)(e),(0,n.Y3)((()=>{c.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(p.mobileCleanup(e),!0!==g(e))return;c.hide(e),u.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(p,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),h=setTimeout((()=>{h=null,c.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){u.value.classList.remove("non-selectable"),null!==h&&(clearTimeout(h),h=null),!0===e.value&&void 0!==t&&(0,s.M)()}}),i=function(e=r.contextMenu){if(!0===r.noParentEvent||null===u.value)return;let t;t=!0===e?!0===c.$q.platform.is.mobile?[[u.value,"touchstart","mobileTouch","passive"]]:[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],(0,a.M0)(p,"anchor",t)}),(0,n.YP)((()=>r.contextMenu),(e=>{null!==u.value&&(f(),i(e))})),(0,n.YP)((()=>r.target),(()=>{null!==u.value&&f(),v()})),(0,n.YP)((()=>r.noParentEvent),(e=>{null!==u.value&&(!0===e?f():i())})),(0,n.bv)((()=>{v(),!0!==t&&!0===r.modelValue&&null===u.value&&d("update:modelValue",!1)})),(0,n.Jd)((()=>{null!==h&&clearTimeout(h),f()})),{anchorEl:u,canShow:g,anchorEvents:p}}function u(e,t){const i=(0,o.iH)(null);let r;function s(e,t){const i=(void 0!==t?"add":"remove")+"EventListener",n=void 0!==t?t:r;e!==window&&e[i]("scroll",n,a.listenOpts.passive),window[i]("scroll",n,a.listenOpts.passive),r=t}function l(){null!==i.value&&(s(i.value),i.value=null)}const c=(0,n.YP)((()=>e.noParentEvent),(()=>{null!==i.value&&(l(),t())}));return(0,n.Jd)(c),{localScrollTarget:i,unconfigureScrollTarget:l,changeScrollEvent:s}}var h=i(63842),g=i(68234),p=i(91518),f=i(20431),m=i(46183),v=i(4698),_=i(65987),b=i(2909),y=i(43701),w=i(22026),C=i(16532),S=i(4173),x=i(70223);i(72879);let k=null;const{notPassiveCapture:L}=a.listenOpts,E=[];function N(e){null!==k&&(clearTimeout(k),k=null);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let i=b.Q$.length-1;while(i>=0){const e=b.Q$[i].$;if("QTooltip"!==e.type.name){if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;i--}else i--}for(let n=E.length-1;n>=0;n--){const i=E[n];if(null!==i.anchorEl.value&&!1!==i.anchorEl.value.contains(t)||t!==document.body&&(null===i.innerRef.value||!1!==i.innerRef.value.contains(t)))return;e.qClickOutside=!0,i.onClickOutside(e)}}function D(e){E.push(e),1===E.length&&(document.addEventListener("mousedown",N,L),document.addEventListener("touchstart",N,L))}function T(e){const t=E.findIndex((t=>t===e));-1!==t&&(E.splice(t,1),0===E.length&&(null!==k&&(clearTimeout(k),k=null),document.removeEventListener("mousedown",N,L),document.removeEventListener("touchstart",N,L)))}var I=i(17026),R=i(39180);let A,O;function P(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function M(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const F={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function B(e,t){const i=e.split(" ");return{vertical:i[0],horizontal:F[`${i[1]}#${!0===t?"rtl":"ltr"}`]}}function H(e,t){let{top:i,left:n,right:o,bottom:r,width:s,height:a}=e.getBoundingClientRect();return void 0!==t&&(i-=t[1],n-=t[0],r+=t[1],o+=t[0],s+=t[0],a+=t[1]),{top:i,bottom:r,height:a,left:n,right:o,width:s,middle:n+(o-n)/2,center:i+(r-i)/2}}function W(e,t,i){let{top:n,left:o}=e.getBoundingClientRect();return n+=t.top,o+=t.left,void 0!==i&&(n+=i[1],o+=i[0]),{top:n,bottom:n+1,height:1,left:o,right:o+1,width:1,middle:o,center:n}}function V(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function j(e,t,i,n){return{top:e[i.vertical]-t[n.vertical],left:e[i.horizontal]-t[n.horizontal]}}function z(e,t=0){if(null===e.targetEl||null===e.anchorEl||t>5)return;if(0===e.targetEl.offsetHeight||0===e.targetEl.offsetWidth)return void setTimeout((()=>{z(e,t+1)}),10);const{targetEl:i,offset:n,anchorEl:o,anchorOrigin:r,selfOrigin:s,absoluteOffset:a,fit:l,cover:c,maxHeight:d,maxWidth:u}=e;if(!0===R.client.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:i}=window.visualViewport;t!==A&&(e.setProperty("--q-pe-left",t+"px"),A=t),i!==O&&(e.setProperty("--q-pe-top",i+"px"),O=i)}const{scrollLeft:h,scrollTop:g}=i,p=void 0===a?H(o,!0===c?[0,0]:n):W(o,a,n);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u||"100vw",maxHeight:d||"100vh",visibility:"visible"});const{offsetWidth:f,offsetHeight:m}=i,{elWidth:v,elHeight:_}=!0===l||!0===c?{elWidth:Math.max(p.width,f),elHeight:!0===c?Math.max(p.height,m):m}:{elWidth:f,elHeight:m};let b={maxWidth:u,maxHeight:d};!0!==l&&!0!==c||(b.minWidth=p.width+"px",!0===c&&(b.minHeight=p.height+"px")),Object.assign(i.style,b);const y=V(v,_);let w=j(p,y,r,s);if(void 0===a||void 0===n)U(w,p,y,r,s);else{const{top:e,left:t}=w;U(w,p,y,r,s);let i=!1;if(w.top!==e){i=!0;const e=2*n[1];p.center=p.top-=e,p.bottom-=e+2}if(w.left!==t){i=!0;const e=2*n[0];p.middle=p.left-=e,p.right-=e+2}!0===i&&(w=j(p,y,r,s),U(w,p,y,r,s))}b={top:w.top+"px",left:w.left+"px"},void 0!==w.maxHeight&&(b.maxHeight=w.maxHeight+"px",p.height>w.maxHeight&&(b.minHeight=b.maxHeight)),void 0!==w.maxWidth&&(b.maxWidth=w.maxWidth+"px",p.width>w.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(i.style,b),i.scrollTop!==g&&(i.scrollTop=g),i.scrollLeft!==h&&(i.scrollLeft=h)}function U(e,t,i,n,o){const r=i.bottom,s=i.right,a=(0,y.np)(),l=window.innerHeight-a,c=document.body.clientWidth;if(e.top<0||e.top+r>l)if("center"===o.vertical)e.top=t[n.vertical]>l/2?Math.max(0,l-r):0,e.maxHeight=Math.min(r,l);else if(t[n.vertical]>l/2){const i=Math.min(l,"center"===n.vertical?t.center:n.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,i),e.top=Math.max(0,i-r)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,l-e.top);if(e.left<0||e.left+s>c)if(e.maxWidth=Math.min(s,c),"middle"===o.horizontal)e.left=t[n.horizontal]>c/2?Math.max(0,c-s):0;else if(t[n.horizontal]>c/2){const i=Math.min(c,"middle"===n.horizontal?t.middle:n.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(s,i),e.left=Math.max(0,i-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(s,c-e.left)}["left","middle","right"].forEach((e=>{F[`${e}#ltr`]=e,F[`${e}#rtl`]=e}));const $=(0,_.L)({name:"QMenu",inheritAttrs:!1,props:{...c,...h.vr,...g.S,...f.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:P},self:{type:String,validator:P},offset:{type:Array,validator:M},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...h.gH,"click","escapeKey"],setup(e,{slots:t,emit:i,attrs:s}){let l,c,_,k=null;const L=(0,n.FN)(),{proxy:E}=L,{$q:N}=E,R=(0,o.iH)(null),A=(0,o.iH)(!1),O=(0,n.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),P=(0,g.Z)(e,N),{registerTick:M,removeTick:F}=(0,m.Z)(),{registerTimeout:H}=(0,v.Z)(),{transitionProps:W,transitionStyle:V}=(0,f.Z)(e),{localScrollTarget:j,changeScrollEvent:U,unconfigureScrollTarget:$}=u(e,le),{anchorEl:q,canShow:K}=d({showing:A}),{hide:G}=(0,h.ZP)({showing:A,canShow:K,handleShow:re,handleHide:se,hideOnRouteChange:O,processOnMount:!0}),{showPortal:Z,hidePortal:Q,renderPortal:Y}=(0,p.Z)(L,R,ge,"menu"),J={anchorEl:q,innerRef:R,onClickOutside(t){if(!0!==e.persistent&&!0===A.value)return G(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,a.NS)(t),!0}},X=(0,n.Fl)((()=>B(e.anchor||(!0===e.cover?"center middle":"bottom start"),N.lang.rtl))),ee=(0,n.Fl)((()=>!0===e.cover?X.value:B(e.self||"top start",N.lang.rtl))),te=(0,n.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===P.value?" q-menu--dark q-dark":""))),ie=(0,n.Fl)((()=>!0===e.autoClose?{onClick:ce}:{})),ne=(0,n.Fl)((()=>!0===A.value&&!0!==e.persistent));function oe(){(0,I.jd)((()=>{let e=R.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function re(t){if(k=!1===e.noRefocus?document.activeElement:null,(0,S.i)(de),Z(),le(),l=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,a.FK)(t);if(void 0!==e.left){const{top:t,left:i}=q.value.getBoundingClientRect();l={left:e.left-i,top:e.top-t}}}void 0===c&&(c=(0,n.YP)((()=>N.screen.width+"|"+N.screen.height+"|"+e.self+"|"+e.anchor+"|"+N.lang.rtl),he)),!0!==e.noFocus&&document.activeElement.blur(),M((()=>{he(),!0!==e.noFocus&&oe()})),H((()=>{!0===N.platform.is.ios&&(_=e.autoClose,R.value.click()),he(),Z(!0),i("show",t)}),e.transitionDuration)}function se(t){F(),Q(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),H((()=>{Q(!0),i("hide",t)}),e.transitionDuration)}function ae(e){l=void 0,void 0!==c&&(c(),c=void 0),!0!==e&&!0!==A.value||((0,S.H)(de),$(),T(J),(0,C.k)(ue)),!0!==e&&(k=null)}function le(){null===q.value&&void 0===e.scrollTarget||(j.value=(0,y.b0)(q.value,e.scrollTarget),U(j.value,he))}function ce(e){!0!==_?((0,b.AH)(E,e),i("click",e)):_=!1}function de(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,x.mY)(R.value,t.target)&&oe()}function ue(e){i("escapeKey"),G(e)}function he(){z({targetEl:R.value,offset:e.offset,anchorEl:q.value,anchorOrigin:X.value,selfOrigin:ee.value,absoluteOffset:l,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ge(){return(0,n.h)(r.uT,W.value,(()=>!0===A.value?(0,n.h)("div",{role:"menu",...s,ref:R,tabindex:-1,class:["q-menu q-position-engine scroll"+te.value,s.class],style:[s.style,V.value],...ie.value},(0,w.KR)(t.default)):null))}return(0,n.YP)(ne,(e=>{!0===e?((0,C.c)(ue),D(J)):((0,C.k)(ue),T(J))})),(0,n.Jd)(ae),Object.assign(E,{focus:oe,updatePosition:he}),Y}})},8830:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(59835),o=(i(72879),i(60499)),r=i(22857),s=i(68234),a=i(20244),l=i(55917),c=i(99256),d=i(65987),u=i(89480),h=i(91384),g=i(22026);const p=(0,n.h)("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[(0,n.h)("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),(0,n.h)("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),f=(0,d.L)({name:"QRadio",props:{...s.S,...a.LU,...c.Fz,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:i}){const{proxy:d}=(0,n.FN)(),f=(0,s.Z)(e,d.$q),m=(0,a.ZP)(e,u.Z),v=(0,o.iH)(null),{refocusTargetEl:_,refocusTarget:b}=(0,l.Z)(e,v),y=(0,n.Fl)((()=>(0,o.IU)(e.modelValue)===(0,o.IU)(e.val))),w=(0,n.Fl)((()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===e.disable?" disabled":"")+(!0===f.value?" q-radio--dark":"")+(!0===e.dense?" q-radio--dense":"")+(!0===e.leftLabel?" reverse":""))),C=(0,n.Fl)((()=>{const t=void 0===e.color||!0!==e.keepColor&&!0!==y.value?"":` text-${e.color}`;return`q-radio__inner relative-position q-radio__inner--${!0===y.value?"truthy":"falsy"}${t}`})),S=(0,n.Fl)((()=>(!0===y.value?e.checkedIcon:e.uncheckedIcon)||null)),x=(0,n.Fl)((()=>!0===e.disable?-1:e.tabindex||0)),k=(0,n.Fl)((()=>{const t={type:"radio"};return void 0!==e.name&&Object.assign(t,{".checked":!0===y.value,"^checked":!0===y.value?"checked":void 0,name:e.name,value:e.val}),t})),L=(0,c.eX)(k);function E(t){void 0!==t&&((0,h.NS)(t),b(t)),!0!==e.disable&&!0!==y.value&&i("update:modelValue",e.val,t)}function N(e){13!==e.keyCode&&32!==e.keyCode||(0,h.NS)(e)}function D(e){13!==e.keyCode&&32!==e.keyCode||E(e)}return Object.assign(d,{set:E}),()=>{const i=null!==S.value?[(0,n.h)("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[(0,n.h)(r.Z,{class:"q-radio__icon",name:S.value})])]:[p];!0!==e.disable&&L(i,"unshift"," q-radio__native q-ma-none q-pa-none");const o=[(0,n.h)("div",{class:C.value,style:m.value,"aria-hidden":"true"},i)];null!==_.value&&o.push(_.value);const s=void 0!==e.label?(0,g.vs)(t.default,[e.label]):(0,g.KR)(t.default);return void 0!==s&&o.push((0,n.h)("div",{class:"q-radio__label q-anchor--skip"},s)),(0,n.h)("div",{ref:v,class:w.value,tabindex:x.value,role:"radio","aria-label":e.label,"aria-checked":!0===y.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:E,onKeydown:N,onKeyup:D},o)}}});var m=i(11221),v=i(23175);const _={radio:f,checkbox:m.Z,toggle:v.Z},b=Object.keys(_),y=(0,d.L)({name:"QOptionGroup",props:{...s.S,modelValue:{required:!0},options:{type:Array,validator:e=>e.every((e=>"value"in e&&"label"in e))},name:String,type:{default:"radio",validator:e=>b.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:i}){const{proxy:{$q:o}}=(0,n.FN)(),r=Array.isArray(e.modelValue);"radio"===e.type?!0===r&&console.error("q-option-group: model should not be array"):!1===r&&console.error("q-option-group: model should be array in your case");const a=(0,s.Z)(e,o),l=(0,n.Fl)((()=>_[e.type])),c=(0,n.Fl)((()=>"q-option-group q-gutter-x-sm"+(!0===e.inline?" q-option-group--inline":""))),d=(0,n.Fl)((()=>{const t={role:"group"};return"radio"===e.type&&(t.role="radiogroup",!0===e.disable&&(t["aria-disabled"]="true")),t}));function u(e){t("update:modelValue",e)}return()=>(0,n.h)("div",{class:c.value,...d.value},e.options.map(((t,o)=>{const r=void 0!==i["label-"+o]?()=>i["label-"+o](t):void 0!==i.label?()=>i.label(t):void 0;return(0,n.h)("div",[(0,n.h)(l.value,{modelValue:e.modelValue,val:t.value,name:void 0===t.name?e.name:t.name,disable:e.disable||t.disable,label:void 0===r?t.label:null,leftLabel:void 0===t.leftLabel?e.leftLabel:t.leftLabel,color:void 0===t.color?e.color:t.color,checkedIcon:t.checkedIcon,uncheckedIcon:t.uncheckedIcon,dark:t.dark||a.value,size:void 0===t.size?e.size:t.size,dense:e.dense,keepColor:void 0===t.keepColor?e.keepColor:t.keepColor,"onUpdate:modelValue":u},r)])})))}})},69885:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),r=i(22026),s=i(95439);const a=(0,o.L)({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,n.f3)(s.YE,s.qO);if(o===s.qO)return console.error("QPage needs to be a deep child of QLayout"),s.qO;const a=(0,n.f3)(s.Mw,s.qO);if(a===s.qO)return console.error("QPage needs to be child of QPageContainer"),s.qO;const l=(0,n.Fl)((()=>{const t=(!0===o.header.space?o.header.size:0)+(!0===o.footer.space?o.footer.size:0);if("function"===typeof e.styleFn){const n=!0===o.isContainer.value?o.containerHeight.value:i.screen.height;return e.styleFn(t,n)}return{minHeight:!0===o.isContainer.value?o.containerHeight.value-t+"px":0===i.screen.height?0!==t?`calc(100vh - ${t}px)`:"100vh":i.screen.height-t+"px"}})),c=(0,n.Fl)((()=>"q-page"+(!0===e.padding?" q-layout-padding":"")));return()=>(0,n.h)("main",{class:c.value,style:l.value},(0,r.KR)(t.default))}})},12133:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(65987),r=i(22026),s=i(95439);const a=(0,o.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:i}}=(0,n.FN)(),o=(0,n.f3)(s.YE,s.qO);if(o===s.qO)return console.error("QPageContainer needs to be child of QLayout"),s.qO;(0,n.JJ)(s.Mw,!0);const a=(0,n.Fl)((()=>{const e={};return!0===o.header.space&&(e.paddingTop=`${o.header.size}px`),!0===o.right.space&&(e["padding"+(!0===i.lang.rtl?"Left":"Right")]=`${o.right.size}px`),!0===o.footer.space&&(e.paddingBottom=`${o.footer.size}px`),!0===o.left.space&&(e["padding"+(!0===i.lang.rtl?"Right":"Left")]=`${o.left.size}px`),e}));return()=>(0,n.h)("div",{class:"q-page-container",style:a.value},(0,r.KR)(t.default))}})},76849:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(59835),o=i(60499),r=i(39180);function s(){const e=(0,o.iH)(!r.u.value);return!1===e.value&&(0,n.bv)((()=>{e.value=!0})),{isHydrated:e}}var a=i(65987),l=i(91384);const c="undefined"!==typeof ResizeObserver,d=!0===c?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},u=(0,a.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let i,o=null,r={width:-1,height:-1};function a(t){!0===t||0===e.debounce||"0"===e.debounce?u():null===o&&(o=setTimeout(u,e.debounce))}function u(){if(null!==o&&(clearTimeout(o),o=null),i){const{offsetWidth:e,offsetHeight:n}=i;e===r.width&&n===r.height||(r={width:e,height:n},t("resize",r))}}const{proxy:h}=(0,n.FN)();if(h.trigger=a,!0===c){let g;const p=e=>{i=h.$el.parentNode,i?(g=new ResizeObserver(a),g.observe(i),u()):!0!==e&&(0,n.Y3)((()=>{p(!0)}))};return(0,n.bv)((()=>{p()})),(0,n.Jd)((()=>{null!==o&&clearTimeout(o),void 0!==g&&(void 0!==g.disconnect?g.disconnect():i&&g.unobserve(i))})),l.ZT}{const{isHydrated:f}=s();let m;function v(){null!==o&&(clearTimeout(o),o=null),void 0!==m&&(void 0!==m.removeEventListener&&m.removeEventListener("resize",a,l.listenOpts.passive),m=void 0)}function _(){v(),i&&i.contentDocument&&(m=i.contentDocument.defaultView,m.addEventListener("resize",a,l.listenOpts.passive),u())}return(0,n.bv)((()=>{(0,n.Y3)((()=>{i=h.$el,i&&_()}))})),(0,n.Jd)(v),()=>{if(!0===f.value)return(0,n.h)("object",{class:"q--avoid-card-border",style:d.style,tabindex:-1,type:"text/html",data:d.url,"aria-hidden":"true",onLoad:_})}}}})},66663:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(60499),o=i(59835),r=i(68234),s=i(76849),a=i(71868),l=i(50867),c=i(65987),d=i(30321),u=i(43701),h=i(22026),g=i(60899);const p=["vertical","horizontal"],f={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},m={prevent:!0,mouse:!0,mouseAllDir:!0},v=e=>e>=250?50:Math.ceil(e/5),_=(0,c.L)({name:"QScrollArea",props:{...r.S,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:i}){const c=(0,n.iH)(!1),_=(0,n.iH)(!1),b=(0,n.iH)(!1),y={vertical:(0,n.iH)(0),horizontal:(0,n.iH)(0)},w={vertical:{ref:(0,n.iH)(null),position:(0,n.iH)(0),size:(0,n.iH)(0)},horizontal:{ref:(0,n.iH)(null),position:(0,n.iH)(0),size:(0,n.iH)(0)}},{proxy:C}=(0,o.FN)(),S=(0,r.Z)(e,C.$q);let x,k=null;const L=(0,n.iH)(null),E=(0,o.Fl)((()=>"q-scrollarea"+(!0===S.value?" q-scrollarea--dark":"")));w.vertical.percentage=(0,o.Fl)((()=>{const e=w.vertical.size.value-y.vertical.value;if(e<=0)return 0;const t=(0,d.vX)(w.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4})),w.vertical.thumbHidden=(0,o.Fl)((()=>!0!==(null===e.visible?b.value:e.visible)&&!1===c.value&&!1===_.value||w.vertical.size.value<=y.vertical.value+1)),w.vertical.thumbStart=(0,o.Fl)((()=>w.vertical.percentage.value*(y.vertical.value-w.vertical.thumbSize.value))),w.vertical.thumbSize=(0,o.Fl)((()=>Math.round((0,d.vX)(y.vertical.value*y.vertical.value/w.vertical.size.value,v(y.vertical.value),y.vertical.value)))),w.vertical.style=(0,o.Fl)((()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${w.vertical.thumbStart.value}px`,height:`${w.vertical.thumbSize.value}px`}))),w.vertical.thumbClass=(0,o.Fl)((()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===w.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),w.vertical.barClass=(0,o.Fl)((()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===w.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":""))),w.horizontal.percentage=(0,o.Fl)((()=>{const e=w.horizontal.size.value-y.horizontal.value;if(e<=0)return 0;const t=(0,d.vX)(Math.abs(w.horizontal.position.value)/e,0,1);return Math.round(1e4*t)/1e4})),w.horizontal.thumbHidden=(0,o.Fl)((()=>!0!==(null===e.visible?b.value:e.visible)&&!1===c.value&&!1===_.value||w.horizontal.size.value<=y.horizontal.value+1)),w.horizontal.thumbStart=(0,o.Fl)((()=>w.horizontal.percentage.value*(y.horizontal.value-w.horizontal.thumbSize.value))),w.horizontal.thumbSize=(0,o.Fl)((()=>Math.round((0,d.vX)(y.horizontal.value*y.horizontal.value/w.horizontal.size.value,v(y.horizontal.value),y.horizontal.value)))),w.horizontal.style=(0,o.Fl)((()=>({...e.thumbStyle,...e.horizontalThumbStyle,[!0===C.$q.lang.rtl?"right":"left"]:`${w.horizontal.thumbStart.value}px`,width:`${w.horizontal.thumbSize.value}px`}))),w.horizontal.thumbClass=(0,o.Fl)((()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===w.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),w.horizontal.barClass=(0,o.Fl)((()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===w.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":"")));const N=(0,o.Fl)((()=>!0===w.vertical.thumbHidden.value&&!0===w.horizontal.thumbHidden.value?e.contentStyle:e.contentActiveStyle)),D=[[l.Z,e=>{F(e,"vertical")},void 0,{vertical:!0,...m}]],T=[[l.Z,e=>{F(e,"horizontal")},void 0,{horizontal:!0,...m}]];function I(){const e={};return p.forEach((t=>{const i=w[t];e[t+"Position"]=i.position.value,e[t+"Percentage"]=i.percentage.value,e[t+"Size"]=i.size.value,e[t+"ContainerSize"]=y[t].value})),e}const R=(0,g.Z)((()=>{const e=I();e.ref=C,i("scroll",e)}),0);function A(e,t,i){if(!1===p.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?u.f3:u.ik;n(L.value,t,i)}function O({height:e,width:t}){let i=!1;y.vertical.value!==e&&(y.vertical.value=e,i=!0),y.horizontal.value!==t&&(y.horizontal.value=t,i=!0),!0===i&&V()}function P({position:e}){let t=!1;w.vertical.position.value!==e.top&&(w.vertical.position.value=e.top,t=!0),w.horizontal.position.value!==e.left&&(w.horizontal.position.value=e.left,t=!0),!0===t&&V()}function M({height:e,width:t}){w.horizontal.size.value!==t&&(w.horizontal.size.value=t,V()),w.vertical.size.value!==e&&(w.vertical.size.value=e,V())}function F(e,t){const i=w[t];if(!0===e.isFirst){if(!0===i.thumbHidden.value)return;x=i.position.value,_.value=!0}else if(!0!==_.value)return;!0===e.isFinal&&(_.value=!1);const n=f[t],o=y[t].value,r=(i.size.value-o)/(o-i.thumbSize.value),s=e.distance[n.dist],a=x+(e.direction===n.dir?1:-1)*s*r;j(a,t)}function B(e,t){const i=w[t];if(!0!==i.thumbHidden.value){const n=e[f[t].offset];if(ni.thumbStart.value+i.thumbSize.value){const e=n-i.thumbSize.value/2;j(e/y[t].value*i.size.value,t)}null!==i.ref.value&&i.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function H(e){B(e,"vertical")}function W(e){B(e,"horizontal")}function V(){c.value=!0,null!==k&&clearTimeout(k),k=setTimeout((()=>{k=null,c.value=!1}),e.delay),void 0!==e.onScroll&&R()}function j(e,t){L.value[f[t].scroll]=e}let z=null;function U(){null!==z&&clearTimeout(z),z=setTimeout((()=>{z=null,b.value=!0}),C.$q.platform.is.ios?50:0)}function $(){null!==z&&(clearTimeout(z),z=null),b.value=!1}let q=null;return(0,o.YP)((()=>C.$q.lang.rtl),(e=>{null!==L.value&&(0,u.ik)(L.value,Math.abs(w.horizontal.position.value)*(!0===e?-1:1))})),(0,o.se)((()=>{q={top:w.vertical.position.value,left:w.horizontal.position.value}})),(0,o.dl)((()=>{if(null===q)return;const e=L.value;null!==e&&((0,u.ik)(e,q.left),(0,u.f3)(e,q.top))})),(0,o.Jd)(R.cancel),Object.assign(C,{getScrollTarget:()=>L.value,getScroll:I,getScrollPosition:()=>({top:w.vertical.position.value,left:w.horizontal.position.value}),getScrollPercentage:()=>({top:w.vertical.percentage.value,left:w.horizontal.percentage.value}),setScrollPosition:A,setScrollPercentage(e,t,i){A(e,t*(w[e].size.value-y[e].value)*("horizontal"===e&&!0===C.$q.lang.rtl?-1:1),i)}}),()=>(0,o.h)("div",{class:E.value,onMouseenter:U,onMouseleave:$},[(0,o.h)("div",{ref:L,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==e.tabindex?e.tabindex:void 0},[(0,o.h)("div",{class:"q-scrollarea__content absolute",style:N.value},(0,h.vs)(t.default,[(0,o.h)(s.Z,{debounce:0,onResize:M})])),(0,o.h)(a.Z,{axis:"both",onScroll:P})]),(0,o.h)(s.Z,{debounce:0,onResize:O}),(0,o.h)("div",{class:w.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:H}),(0,o.h)("div",{class:w.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:W}),(0,o.wy)((0,o.h)("div",{ref:w.vertical.ref,class:w.vertical.thumbClass.value,style:w.vertical.style.value,"aria-hidden":"true"}),D),(0,o.wy)((0,o.h)("div",{ref:w.horizontal.ref,class:w.horizontal.thumbClass.value,style:w.horizontal.style.value,"aria-hidden":"true"}),T)])}})},71868:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(59835),o=i(65987),r=i(43701),s=i(91384);const{passive:a}=s.listenOpts,l=["both","horizontal","vertical"],c=(0,o.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>l.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const i={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o,l,c=null;function d(){null!==c&&c();const n=Math.max(0,(0,r.u3)(o)),s=(0,r.OI)(o),a={top:n-i.position.top,left:s-i.position.left};if("vertical"===e.axis&&0===a.top||"horizontal"===e.axis&&0===a.left)return;const l=Math.abs(a.top)>=Math.abs(a.left)?a.top<0?"up":"down":a.left<0?"left":"right";i.position={top:n,left:s},i.directionChanged=i.direction!==l,i.delta=a,!0===i.directionChanged&&(i.direction=l,i.inflectionPoint=i.position),t("scroll",{...i})}function u(){o=(0,r.b0)(l,e.scrollTarget),o.addEventListener("scroll",g,a),g(!0)}function h(){void 0!==o&&(o.removeEventListener("scroll",g,a),o=void 0)}function g(t){if(!0===t||0===e.debounce||"0"===e.debounce)d();else if(null===c){const[t,i]=e.debounce?[setTimeout(d,e.debounce),clearTimeout]:[requestAnimationFrame(d),cancelAnimationFrame];c=()=>{i(t),c=null}}}(0,n.YP)((()=>e.scrollTarget),(()=>{h(),u()}));const{proxy:p}=(0,n.FN)();return(0,n.YP)((()=>p.$q.lang.rtl),d),(0,n.bv)((()=>{l=p.$el.parentNode,u()})),(0,n.Jd)((()=>{null!==c&&c(),h()})),Object.assign(p,{trigger:g,getPosition:()=>i}),s.ZT}})},26384:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});i(72879);var n=i(59835),o=i(60499),r=i(87810),s=i(65987);const a=(0,s.L)({name:"QField",inheritAttrs:!1,props:{...r.Cl,tag:{type:String,default:"label"}},emits:r.HJ,setup(){return(0,r.ZP)((0,r.tL)({requiredForAttr:!1,tagProp:!0}))}});var l=i(22857),c=i(57691),d=i(490),u=i(76749),h=i(33115),g=i(47447),p=i(32074),f=i(92043),m=i(99256),v=i(62802),_=i(4680),b=i(91384),y=i(30321),w=i(61705),C=i(22026);const S=e=>["add","add-unique","toggle"].includes(e),x=".*+?^${}()|[]\\",k=Object.keys(r.Cl),L=(0,s.L)({name:"QSelect",inheritAttrs:!1,props:{...f.t9,...m.Fz,...r.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:S},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...r.HJ,"add","remove","inputValue","newValue","keyup","keypress","keydown","filterAbort"],setup(e,{slots:t,emit:i}){const{proxy:s}=(0,n.FN)(),{$q:L}=s,E=(0,o.iH)(!1),N=(0,o.iH)(!1),D=(0,o.iH)(-1),T=(0,o.iH)(""),I=(0,o.iH)(!1),R=(0,o.iH)(!1);let A,O,P,M,F,B,H,W=null,V=null,j=null;const z=(0,o.iH)(null),U=(0,o.iH)(null),$=(0,o.iH)(null),q=(0,o.iH)(null),K=(0,o.iH)(null),G=(0,m.Do)(e),Z=(0,v.Z)(Qe),Q=(0,n.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),Y=(0,n.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:J,virtualScrollSliceSizeComputed:X,localResetVirtualScroll:ee,padVirtualScroll:te,onVirtualScrollEvt:ie,scrollTo:ne,setVirtualScrollSize:oe}=(0,f.vp)({virtualScrollLength:Q,getVirtualScrollTarget:qe,getVirtualScrollEl:$e,virtualScrollItemSizeComputed:Y}),re=(0,r.tL)(),se=(0,n.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,i=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const n=!0===e.mapOptions&&void 0!==A?A:[],o=i.map((e=>Fe(e,n)));return null===e.modelValue&&!0===t?o.filter((e=>null!==e)):o}return i})),ae=(0,n.Fl)((()=>{const t={};return k.forEach((i=>{const n=e[i];void 0!==n&&(t[i]=n)})),t})),le=(0,n.Fl)((()=>null===e.optionsDark?re.isDark.value:e.optionsDark)),ce=(0,n.Fl)((()=>(0,r.yV)(se.value))),de=(0,n.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===se.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ue=(0,n.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),he=(0,n.Fl)((()=>0===Q.value)),ge=(0,n.Fl)((()=>se.value.map((e=>Le.value(e))).join(", "))),pe=(0,n.Fl)((()=>void 0!==e.displayValue?e.displayValue:ge.value)),fe=(0,n.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),me=(0,n.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||se.value.some(fe.value)))),ve=(0,n.Fl)((()=>!0===re.focused.value?e.tabindex:-1)),_e=(0,n.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":!0===e.readonly?"true":"false","aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===E.value?"true":"false","aria-controls":`${re.targetUid.value}_lb`};return D.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${D.value}`),t})),be=(0,n.Fl)((()=>({id:`${re.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"}))),ye=(0,n.Fl)((()=>se.value.map(((e,t)=>({index:t,opt:e,html:fe.value(e),selected:!0,removeAtIndex:Re,toggleOption:Oe,tabindex:ve.value}))))),we=(0,n.Fl)((()=>{if(0===Q.value)return[];const{from:t,to:i}=J.value;return e.options.slice(t,i).map(((i,n)=>{const o=!0===Ee.value(i),r=!0===He(i),s=t+n,a={clickable:!0,active:r,activeClass:xe.value,manualFocus:!0,focused:!1,disable:o,tabindex:-1,dense:e.optionsDense,dark:le.value,role:"option","aria-selected":!0===r?"true":"false",id:`${re.targetUid.value}_${s}`,onClick:()=>{Oe(i)}};return!0!==o&&(D.value===s&&(a.focused=!0),!0===L.platform.is.desktop&&(a.onMousemove=()=>{!0===E.value&&Pe(s)})),{index:s,opt:i,html:fe.value(i),label:Le.value(i),selected:a.active,focused:a.focused,toggleOption:Oe,setOptionIndex:Pe,itemProps:a}}))})),Ce=(0,n.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:L.iconSet.arrow.dropdown)),Se=(0,n.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),xe=(0,n.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),ke=(0,n.Fl)((()=>Be(e.optionValue,"value"))),Le=(0,n.Fl)((()=>Be(e.optionLabel,"label"))),Ee=(0,n.Fl)((()=>Be(e.optionDisable,"disable"))),Ne=(0,n.Fl)((()=>se.value.map((e=>ke.value(e))))),De=(0,n.Fl)((()=>{const e={onInput:Qe,onChange:Z,onKeydown:Ue,onKeyup:je,onKeypress:ze,onFocus:We,onClick(e){!0===O&&(0,b.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=Z,e}));function Te(t){return!0===e.emitValue?ke.value(t):t}function Ie(t){if(-1!==t&&t=e.maxValues)return;const r=e.modelValue.slice();i("add",{index:r.length,value:o}),r.push(o),i("update:modelValue",r)}function Oe(t,n){if(!0!==re.editable.value||void 0===t||!0===Ee.value(t))return;const o=ke.value(t);if(!0!==e.multiple)return!0!==n&&(Je(!0===e.fillInput?Le.value(t):"",!0,!0),ut()),null!==U.value&&U.value.focus(),void(0!==se.value.length&&!0===(0,_.xb)(ke.value(se.value[0]),o)||i("update:modelValue",!0===e.emitValue?o:t));if((!0!==O||!0===I.value)&&re.focus(),We(),0===se.value.length){const n=!0===e.emitValue?o:t;return i("add",{index:0,value:n}),void i("update:modelValue",!0===e.multiple?[n]:n)}const r=e.modelValue.slice(),s=Ne.value.findIndex((e=>(0,_.xb)(e,o)));if(-1!==s)i("remove",{index:s,value:r.splice(s,1)[0]});else{if(void 0!==e.maxValues&&r.length>=e.maxValues)return;const n=!0===e.emitValue?o:t;i("add",{index:r.length,value:n}),r.push(n)}i("update:modelValue",r)}function Pe(e){if(!0!==L.platform.is.desktop)return;const t=-1!==e&&e=0?Le.value(e.options[n]):M,!0))}}function Fe(t,i){const n=e=>(0,_.xb)(ke.value(e),t);return e.options.find(n)||i.find(n)||t}function Be(e,t){const i=void 0!==e?e:t;return"function"===typeof i?i:e=>null!==e&&"object"===typeof e&&i in e?e[i]:e}function He(e){const t=ke.value(e);return void 0!==Ne.value.find((e=>(0,_.xb)(e,t)))}function We(t){!0===e.useInput&&null!==U.value&&(void 0===t||U.value===t.target&&t.target.value===ge.value)&&U.value.select()}function Ve(e){!0===(0,w.So)(e,27)&&!0===E.value&&((0,b.sT)(e),ut(),ht()),i("keyup",e)}function je(t){const{value:i}=t.target;if(void 0===t.keyCode)if(t.target.value="",null!==W&&(clearTimeout(W),W=null),null!==V&&(clearTimeout(V),V=null),ht(),"string"===typeof i&&0!==i.length){const t=i.toLocaleLowerCase(),n=i=>{const n=e.options.find((e=>i.value(e).toLocaleLowerCase()===t));return void 0!==n&&(-1===se.value.indexOf(n)?Oe(n):ut(),!0)},o=e=>{!0!==n(ke)&&!0!==n(Le)&&!0!==e&&Xe(i,!0,(()=>o(!0)))};o()}else re.clearValue(t);else Ve(t)}function ze(e){i("keypress",e)}function Ue(t){if(i("keydown",t),!0===(0,w.Wm)(t))return;const o=0!==T.value.length&&(void 0!==e.newValueMode||void 0!==e.onNewValue),r=!0!==t.shiftKey&&!0!==e.multiple&&(-1!==D.value||!0===o);if(27===t.keyCode)return void(0,b.X$)(t);if(9===t.keyCode&&!1===r)return void ct();if(void 0===t.target||t.target.id!==re.targetUid.value||!0!==re.editable.value)return;if(40===t.keyCode&&!0!==re.innerLoading.value&&!1===E.value)return(0,b.NS)(t),void dt();if(8===t.keyCode&&(!0===e.useChips||!0===e.clearable)&&!0!==e.hideSelected&&0===T.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ie(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&i("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof T.value&&0!==T.value.length||((0,b.NS)(t),D.value=-1,Me(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===X.value||((0,b.NS)(t),D.value=Math.max(-1,Math.min(Q.value,D.value+(33===t.keyCode?-1:1)*X.value.view)),Me(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,b.NS)(t),Me(38===t.keyCode?-1:1,e.multiple));const s=Q.value;if((void 0===B||H0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||0!==B.length)){!0!==E.value&&dt(t);const i=t.key.toLocaleLowerCase(),o=1===B.length&&B[0]===i;H=Date.now()+1500,!1===o&&((0,b.NS)(t),B+=i);const r=new RegExp("^"+B.split("").map((e=>-1!==x.indexOf(e)?"\\"+e:e)).join(".*"),"i");let a=D.value;if(!0===o||a<0||!0!==r.test(Le.value(e.options[a])))do{a=(0,y.Uz)(a+1,-1,s-1)}while(a!==D.value&&(!0===Ee.value(e.options[a])||!0!==r.test(Le.value(e.options[a]))));D.value!==a&&(0,n.Y3)((()=>{Pe(a),ne(a),a>=0&&!0===e.useInput&&!0===e.fillInput&&Ye(Le.value(e.options[a]),!0)}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===B||9===t.keyCode&&!1!==r)if(9!==t.keyCode&&(0,b.NS)(t),-1!==D.value&&D.value{if(i){if(!0!==S(i))return}else i=e.newValueMode;if(Je("",!0!==e.multiple,!0),void 0===t||null===t)return;const n="toggle"===i?Oe:Ae;n(t,"add-unique"===i),!0!==e.multiple&&(null!==U.value&&U.value.focus(),ut())};if(void 0!==e.onNewValue?i("newValue",T.value,t):t(T.value),!0!==e.multiple)return}!0===E.value?ct():!0!==re.innerLoading.value&&dt()}}function $e(){return!0===O?K.value:null!==$.value&&null!==$.value.contentEl?$.value.contentEl:void 0}function qe(){return $e()}function Ke(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?ye.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?ye.value.map(((t,i)=>(0,n.h)(c.Z,{key:"option-"+i,removable:!0===re.editable.value&&!0!==Ee.value(t.opt),dense:!0,textColor:e.color,tabindex:ve.value,onRemove(){t.removeAtIndex(i)}},(()=>(0,n.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Le.value(t.opt)}))))):[(0,n.h)("span",{[!0===me.value?"innerHTML":"textContent"]:pe.value})]}function Ge(){if(!0===he.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:T.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,n.h)(d.Z,{key:e.index,...e.itemProps},(()=>(0,n.h)(u.Z,(()=>(0,n.h)(h.Z,(()=>(0,n.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let i=te("div",we.value.map(e));return void 0!==t["before-options"]&&(i=t["before-options"]().concat(i)),(0,C.vs)(t["after-options"],i)}function Ze(t,i){const o=!0===i?{..._e.value,...re.splitAttrs.attributes.value}:void 0,r={ref:!0===i?U:void 0,key:"i_t",class:de.value,style:e.inputStyle,value:void 0!==T.value?T.value:"",type:"search",...o,id:!0===i?re.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0===t||!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...De.value};return!0!==t&&!0===O&&(!0===Array.isArray(r.class)?r.class=[...r.class,"no-pointer-events"]:r.class+=" no-pointer-events"),(0,n.h)("input",r)}function Qe(t){null!==W&&(clearTimeout(W),W=null),null!==V&&(clearTimeout(V),V=null),t&&t.target&&!0===t.target.qComposing||(Ye(t.target.value||""),P=!0,M=T.value,!0===re.focused.value||!0===O&&!0!==I.value||re.focus(),void 0!==e.onFilter&&(W=setTimeout((()=>{W=null,Xe(T.value)}),e.inputDebounce)))}function Ye(t,n){T.value!==t&&(T.value=t,!0===n||0===e.inputDebounce||"0"===e.inputDebounce?i("inputValue",t):V=setTimeout((()=>{V=null,i("inputValue",t)}),e.inputDebounce))}function Je(t,i,n){P=!0!==n,!0===e.useInput&&(Ye(t,!0),!0!==i&&!0===n||(M=t),!0!==i&&Xe(t))}function Xe(t,o,r){if(void 0===e.onFilter||!0!==o&&!0!==re.focused.value)return;!0===re.innerLoading.value?i("filterAbort"):(re.innerLoading.value=!0,R.value=!0),""!==t&&!0!==e.multiple&&0!==se.value.length&&!0!==P&&t===Le.value(se.value[0])&&(t="");const a=setTimeout((()=>{!0===E.value&&(E.value=!1)}),10);null!==j&&clearTimeout(j),j=a,i("filter",t,((e,t)=>{!0!==o&&!0!==re.focused.value||j!==a||(clearTimeout(j),"function"===typeof e&&e(),R.value=!1,(0,n.Y3)((()=>{re.innerLoading.value=!1,!0===re.editable.value&&(!0===o?!0===E.value&&ut():!0===E.value?gt(!0):E.value=!0),"function"===typeof t&&(0,n.Y3)((()=>{t(s)})),"function"===typeof r&&(0,n.Y3)((()=>{r(s)}))})))}),(()=>{!0===re.focused.value&&j===a&&(clearTimeout(j),re.innerLoading.value=!1,R.value=!1),!0===E.value&&(E.value=!1)}))}function et(){return(0,n.h)(g.Z,{ref:$,class:ue.value,style:e.popupContentStyle,modelValue:E.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==he.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:le.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Se.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...be.value,onScrollPassive:ie,onBeforeShow:mt,onBeforeHide:tt,onShow:it},Ge)}function tt(e){vt(e),ct()}function it(){oe()}function nt(e){(0,b.sT)(e),null!==U.value&&U.value.focus(),I.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ot(e){(0,b.sT)(e),(0,n.Y3)((()=>{I.value=!1}))}function rt(){const i=[(0,n.h)(a,{class:`col-auto ${re.fieldClass.value}`,...ae.value,for:re.targetUid.value,dark:le.value,square:!0,loading:R.value,itemAligned:!1,filled:!0,stackLabel:0!==T.value.length,...re.splitAttrs.listeners.value,onFocus:nt,onBlur:ot},{...t,rawControl:()=>re.getControl(!0),before:void 0,after:void 0})];return!0===E.value&&i.push((0,n.h)("div",{ref:K,class:ue.value+" scroll",style:e.popupContentStyle,...be.value,onClick:b.X$,onScrollPassive:ie},Ge())),(0,n.h)(p.Z,{ref:q,modelValue:N.value,position:!0===e.useInput?"top":void 0,transitionShow:F,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:mt,onBeforeHide:st,onHide:at,onShow:lt},(()=>(0,n.h)("div",{class:"q-select__dialog"+(!0===le.value?" q-select__dialog--dark q-dark":"")+(!0===I.value?" q-select__dialog--focused":"")},i)))}function st(e){vt(e),null!==q.value&&q.value.__updateRefocusTarget(re.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),re.focused.value=!1}function at(e){ut(),!1===re.focused.value&&i("blur",e),ht()}function lt(){const e=document.activeElement;null!==e&&e.id===re.targetUid.value||null===U.value||U.value===e||U.value.focus(),oe()}function ct(){!0!==N.value&&(D.value=-1,!0===E.value&&(E.value=!1),!1===re.focused.value&&(null!==j&&(clearTimeout(j),j=null),!0===re.innerLoading.value&&(i("filterAbort"),re.innerLoading.value=!1,R.value=!1)))}function dt(i){!0===re.editable.value&&(!0===O?(re.onControlFocusin(i),N.value=!0,(0,n.Y3)((()=>{re.focus()}))):re.focus(),void 0!==e.onFilter?Xe(T.value):!0===he.value&&void 0===t["no-option"]||(E.value=!0))}function ut(){N.value=!1,ct()}function ht(){!0===e.useInput&&Je(!0!==e.multiple&&!0===e.fillInput&&0!==se.value.length&&Le.value(se.value[0])||"",!0,!0)}function gt(t){let i=-1;if(!0===t){if(0!==se.value.length){const t=ke.value(se.value[0]);i=e.options.findIndex((e=>(0,_.xb)(ke.value(e),t)))}ee(i)}Pe(i)}function pt(e,t){!0===E.value&&!1===re.innerLoading.value&&(ee(-1,!0),(0,n.Y3)((()=>{!0===E.value&&!1===re.innerLoading.value&&(e>t?ee():gt(!0))})))}function ft(){!1===N.value&&null!==$.value&&$.value.updatePosition()}function mt(e){void 0!==e&&(0,b.sT)(e),i("popupShow",e),re.hasPopupOpen=!0,re.onControlFocusin(e)}function vt(e){void 0!==e&&(0,b.sT)(e),i("popupHide",e),re.hasPopupOpen=!1,re.onControlFocusout(e)}function _t(){O=(!0===L.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===he.value))),F=!0===L.platform.is.ios&&!0===O&&!0===e.useInput?"fade":e.transitionShow}return(0,n.YP)(se,(t=>{A=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==re.innerLoading.value&&(!0!==N.value&&!0!==E.value||!0!==ce.value)&&(!0!==P&&ht(),!0!==N.value&&!0!==E.value||Xe(""))}),{immediate:!0}),(0,n.YP)((()=>e.fillInput),ht),(0,n.YP)(E,gt),(0,n.YP)(Q,pt),(0,n.Xn)(_t),(0,n.ic)(ft),_t(),(0,n.Jd)((()=>{null!==W&&clearTimeout(W),null!==V&&clearTimeout(V)})),Object.assign(s,{showPopup:dt,hidePopup:ut,removeAtIndex:Ie,add:Ae,toggleOption:Oe,getOptionIndex:()=>D.value,setOptionIndex:Pe,moveOptionSelection:Me,filter:Xe,updateMenuPosition:ft,updateInputValue:Je,isOptionSelected:He,getEmittingOptionValue:Te,isOptionDisabled:(...e)=>!0===Ee.value.apply(null,e),getOptionValue:(...e)=>ke.value.apply(null,e),getOptionLabel:(...e)=>Le.value.apply(null,e)}),Object.assign(re,{innerValue:se,fieldClass:(0,n.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:z,targetRef:U,hasValue:ce,showPopup:dt,floatingLabel:(0,n.Fl)((()=>!0!==e.hideSelected&&!0===ce.value||"number"===typeof T.value||0!==T.value.length||(0,r.yV)(e.displayValue))),getControlChild:()=>{if(!1!==re.editable.value&&(!0===N.value||!0!==he.value||void 0!==t["no-option"]))return!0===O?rt():et();!0===re.hasPopupOpen&&(re.hasPopupOpen=!1)},controlEvents:{onFocusin(e){re.onControlFocusin(e)},onFocusout(e){re.onControlFocusout(e,(()=>{ht(),ct()}))},onClick(e){if((0,b.X$)(e),!0!==O&&!0===E.value)return ct(),void(null!==U.value&&U.value.focus());dt(e)}},getControl:t=>{const i=Ke(),o=!0===t||!0!==N.value||!0!==O;if(!0===e.useInput)i.push(Ze(t,o));else if(!0===re.editable.value){const r=!0===o?_e.value:void 0;i.push((0,n.h)("input",{ref:!0===o?U:void 0,key:"d_t",class:"q-select__focus-target",id:!0===o?re.targetUid.value:void 0,value:pe.value,readonly:!0,"data-autofocus":!0===t||!0===e.autofocus||void 0,...r,onKeydown:Ue,onKeyup:Ve,onKeypress:ze})),!0===o&&"string"===typeof e.autocomplete&&0!==e.autocomplete.length&&i.push((0,n.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:je}))}if(void 0!==G.value&&!0!==e.disable&&0!==Ne.value.length){const t=Ne.value.map((e=>(0,n.h)("option",{value:e,selected:!0})));i.push((0,n.h)("select",{class:"hidden",name:G.value,multiple:e.multiple},t))}const r=!0===e.useInput||!0!==o?void 0:re.splitAttrs.attributes.value;return(0,n.h)("div",{class:"q-field__native row items-center",...r,...re.splitAttrs.listeners.value},i)},getInnerAppend:()=>!0!==e.loading&&!0!==R.value&&!0!==e.hideDropdownIcon?[(0,n.h)(l.Z,{class:"q-select__dropdown-icon"+(!0===E.value?" rotate-180":""),name:Ce.value})]:null}),(0,r.ZP)(re)}})},50926:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(68234),r=i(65987);const s={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},a={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,r.L)({name:"QSeparator",props:{...o.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,n.FN)(),i=(0,o.Z)(e,t.proxy.$q),r=(0,n.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,n.Fl)((()=>` q-separator--${r.value}`)),c=(0,n.Fl)((()=>!1!==e.inset?`${l.value}-${s[e.inset]}`:"")),d=(0,n.Fl)((()=>`q-separator${l.value}${c.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===i.value?" q-separator--dark":""))),u=(0,n.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const i=!0===e.spaced?`${a.md}px`:e.spaced in a?`${a[e.spaced]}px`:e.spaced,n=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${n[0]}`]=t[`margin${n[1]}`]=i}return t}));return()=>(0,n.h)("hr",{class:d.value,style:u.value,"aria-orientation":r.value})}})},90136:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987);const r=(0,n.h)("div",{class:"q-space"}),s=(0,o.L)({name:"QSpace",setup(){return()=>r}})},63940:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(20244);const r={size:{type:[Number,String],default:"1em"},color:String};function s(e){return{cSize:(0,n.Fl)((()=>e.size in o.Ok?`${o.Ok[e.size]}px`:e.size)),classes:(0,n.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var a=i(65987);const l=(0,a.L)({name:"QSpinner",props:{...r,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:i}=s(e);return()=>(0,n.h)("svg",{class:i.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,n.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},84106:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(3120),r=i(65987),s=i(22026);const a=(0,r.L)({name:"QTabPanel",props:o.vZ,setup(e,{slots:t}){return()=>(0,n.h)("div",{class:"q-tab-panel",role:"tabpanel"},(0,s.KR)(t.default))}})},89800:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(59835),o=i(68234),r=i(3120),s=i(65987),a=i(22026);const l=(0,s.L)({name:"QTabPanels",props:{...r.t6,...o.S},emits:r.K6,setup(e,{slots:t}){const i=(0,n.FN)(),s=(0,o.Z)(e,i.proxy.$q),{updatePanelsList:l,getPanelContent:c,panelDirectives:d}=(0,r.ZP)(),u=(0,n.Fl)((()=>"q-tab-panels q-panel-parent"+(!0===s.value?" q-tab-panels--dark q-dark":"")));return()=>(l(t),(0,a.Jl)("div",{class:u.value},c(),"pan",e.swipeable,(()=>d.value)))}})},86008:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ee});i(49766),i(72879);var n=i(59835),o=i(60499),r=i(22857),s=i(65987),a=i(22026);const l=(0,s.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:i}){const o=(0,n.FN)(),{proxy:{$q:s}}=o,l=e=>{i("click",e)};return()=>{if(void 0===e.props)return(0,n.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,a.KR)(t.default));let i,c;const d=o.vnode.key;if(d){if(i=e.props.colsMap[d],void 0===i)return}else i=e.props.col;if(!0===i.sortable){const e="right"===i.align?"unshift":"push";c=(0,a.Bl)(t.default,[]),c[e]((0,n.h)(r.Z,{class:i.__iconClass,name:s.iconSet.table.arrowUp}))}else c=(0,a.KR)(t.default);const u={class:i.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:i.headerStyle,onClick:t=>{!0===i.sortable&&e.props.sort(i),l(t)}};return(0,n.h)("th",u,c)}}});var c=i(50926),d=i(13246),u=i(68234);const h=["horizontal","vertical","cell","none"],g=(0,s.L)({name:"QMarkupTable",props:{...u.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>h.includes(e)}},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,u.Z)(e,i.proxy.$q),r=(0,n.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===o.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,n.h)("div",{class:r.value},[(0,n.h)("table",{class:"q-table"},(0,a.KR)(t.default))])}});function p(e,t){return(0,n.h)("div",e,[(0,n.h)("table",{class:"q-table"},t)])}var f=i(92043),m=i(43701),v=i(91384);const _={list:d.Z,table:g},b=["list","table","__qtable"],y=(0,s.L)({name:"QVirtualScroll",props:{...f.t9,type:{type:String,default:"list",validator:e=>b.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:i}){let r;const s=(0,o.iH)(null),l=(0,n.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:c,localResetVirtualScroll:d,padVirtualScroll:u,onVirtualScrollEvt:h}=(0,f.vp)({virtualScrollLength:l,getVirtualScrollTarget:C,getVirtualScrollEl:w}),g=(0,n.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:c.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(c.value.from,c.value.to).map(t):e.itemsFn(c.value.from,c.value.to-c.value.from).map(t)})),b=(0,n.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),y=(0,n.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function w(){return s.value.$el||s.value}function C(){return r}function S(){r=(0,m.b0)(w(),e.scrollTarget),r.addEventListener("scroll",h,v.listenOpts.passive)}function x(){void 0!==r&&(r.removeEventListener("scroll",h,v.listenOpts.passive),r=void 0)}function k(){let i=u("list"===e.type?"div":"tbody",g.value.map(t.default));return void 0!==t.before&&(i=t.before().concat(i)),(0,a.vs)(t.after,i)}return(0,n.YP)(l,(()=>{d()})),(0,n.YP)((()=>e.scrollTarget),(()=>{x(),S()})),(0,n.wF)((()=>{d()})),(0,n.bv)((()=>{S()})),(0,n.dl)((()=>{S()})),(0,n.se)((()=>{x()})),(0,n.Jd)((()=>{x()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?p({ref:s,class:"q-table__middle "+b.value},k()):(0,n.h)(_[e.type],{...i,ref:s,class:[i.class,b.value],...y.value},k);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var w=i(26384),C=i(8289),S=i(11221),x=i(24455),k=i(25310),L=i(52046);let E=0;const N={fullscreen:Boolean,noRouteFullscreenExit:Boolean},D=["update:fullscreen","fullscreen"];function T(){const e=(0,n.FN)(),{props:t,emit:i,proxy:r}=e;let s,a,l;const c=(0,o.iH)(!1);function d(){!0===c.value?h():u()}function u(){!0!==c.value&&(c.value=!0,l=r.$el.parentNode,l.replaceChild(a,r.$el),document.body.appendChild(r.$el),E++,1===E&&document.body.classList.add("q-body--fullscreen-mixin"),s={handler:h},k.Z.add(s))}function h(){!0===c.value&&(void 0!==s&&(k.Z.remove(s),s=void 0),l.replaceChild(r.$el,a),c.value=!1,E=Math.max(0,E-1),0===E&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==r.$el.scrollIntoView&&setTimeout((()=>{r.$el.scrollIntoView()}))))}return!0===(0,L.Rb)(e)&&(0,n.YP)((()=>r.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&h()})),(0,n.YP)((()=>t.fullscreen),(e=>{c.value!==e&&d()})),(0,n.YP)(c,(e=>{i("update:fullscreen",e),i("fullscreen",e)})),(0,n.wF)((()=>{a=document.createElement("span")})),(0,n.bv)((()=>{!0===t.fullscreen&&u()})),(0,n.Jd)(h),Object.assign(r,{toggleFullscreen:d,setFullscreen:u,exitFullscreen:h}),{inFullscreen:c,toggleFullscreen:d}}function I(e,t){return new Date(e)-new Date(t)}var R=i(4680);const A={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function O(e,t,i,o){const r=(0,n.Fl)((()=>{const{sortBy:e}=t.value;return e&&i.value.find((t=>t.name===e))||null})),s=(0,n.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,n)=>{const o=i.value.find((e=>e.name===t));if(void 0===o||void 0===o.field)return e;const r=!0===n?-1:1,s="function"===typeof o.field?e=>o.field(e):e=>e[o.field];return e.sort(((e,t)=>{let i=s(e),n=s(t);return void 0!==o.rawSort?o.rawSort(i,n,e,t)*r:null===i||void 0===i?-1*r:null===n||void 0===n?1*r:void 0!==o.sort?o.sort(i,n,e,t)*r:!0===(0,R.hj)(i)&&!0===(0,R.hj)(n)?(i-n)*r:!0===(0,R.J_)(i)&&!0===(0,R.J_)(n)?I(i,n)*r:"boolean"===typeof i&&"boolean"===typeof n?(i-n)*r:([i,n]=[i,n].map((e=>(e+"").toLocaleString().toLowerCase())),ie.name===n));void 0!==e&&e.sortOrder&&(r=e.sortOrder)}let{sortBy:s,descending:a}=t.value;s!==n?(s=n,a="da"===r):!0===e.binaryStateSort?a=!a:!0===a?"ad"===r?s=null:a=!1:"ad"===r?a=!0:s=null,o({sortBy:s,descending:a,page:1})}return{columnToSort:r,computedSortMethod:s,sort:a}}const P={filter:[String,Object],filterMethod:Function};function M(e,t){const i=(0,n.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,i,n)=>{const o=t?t.toLowerCase():"";return e.filter((e=>i.some((t=>{const i=n(t,e)+"",r="undefined"===i||"null"===i?"":i.toLowerCase();return-1!==r.indexOf(o)}))))}));return(0,n.YP)((()=>e.filter),(()=>{(0,n.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:i}}function F(e,t){for(const i in t)if(t[i]!==e[i])return!1;return!0}function B(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const H={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function W(e,t){const{props:i,emit:r}=e,s=(0,o.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:0!==i.rowsPerPageOptions.length?i.rowsPerPageOptions[0]:5},i.pagination)),a=(0,n.Fl)((()=>{const e=void 0!==i["onUpdate:pagination"]?{...s.value,...i.pagination}:s.value;return B(e)})),l=(0,n.Fl)((()=>void 0!==a.value.rowsNumber));function c(e){d({pagination:e,filter:i.filter})}function d(e={}){(0,n.Y3)((()=>{r("request",{pagination:e.pagination||a.value,filter:e.filter||i.filter,getCellValue:t})}))}function u(e,t){const n=B({...a.value,...e});!0!==F(a.value,n)?!0!==l.value?void 0!==i.pagination&&void 0!==i["onUpdate:pagination"]?r("update:pagination",n):s.value=n:c(n):!0===l.value&&!0===t&&c(n)}return{innerPagination:s,computedPagination:a,isServerSide:l,requestServerInteraction:d,setPagination:u}}function V(e,t,i,o,r,s){const{props:a,emit:l,proxy:{$q:c}}=e,d=(0,n.Fl)((()=>!0===o.value?i.value.rowsNumber||0:s.value)),u=(0,n.Fl)((()=>{const{page:e,rowsPerPage:t}=i.value;return(e-1)*t})),h=(0,n.Fl)((()=>{const{page:e,rowsPerPage:t}=i.value;return e*t})),g=(0,n.Fl)((()=>1===i.value.page)),p=(0,n.Fl)((()=>0===i.value.rowsPerPage?1:Math.max(1,Math.ceil(d.value/i.value.rowsPerPage)))),f=(0,n.Fl)((()=>0===h.value||i.value.page>=p.value)),m=(0,n.Fl)((()=>{const e=a.rowsPerPageOptions.includes(t.value.rowsPerPage)?a.rowsPerPageOptions:[t.value.rowsPerPage].concat(a.rowsPerPageOptions);return e.map((e=>({label:0===e?c.lang.table.allRows:""+e,value:e})))}));function v(){r({page:1})}function _(){const{page:e}=i.value;e>1&&r({page:e-1})}function b(){const{page:e,rowsPerPage:t}=i.value;h.value>0&&e*t{if(e===t)return;const n=i.value.page;e&&!n?r({page:1}):e["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},z=["update:selected","selection"];function U(e,t,i,o){const r=(0,n.Fl)((()=>{const t={};return e.selected.map(o.value).forEach((e=>{t[e]=!0})),t})),s=(0,n.Fl)((()=>"none"!==e.selection)),a=(0,n.Fl)((()=>"single"===e.selection)),l=(0,n.Fl)((()=>"multiple"===e.selection)),c=(0,n.Fl)((()=>0!==i.value.length&&i.value.every((e=>!0===r.value[o.value(e)])))),d=(0,n.Fl)((()=>!0!==c.value&&i.value.some((e=>!0===r.value[o.value(e)])))),u=(0,n.Fl)((()=>e.selected.length));function h(e){return!0===r.value[e]}function g(){t("update:selected",[])}function p(i,n,r,s){t("selection",{rows:n,added:r,keys:i,evt:s});const l=!0===a.value?!0===r?n:[]:!0===r?e.selected.concat(n):e.selected.filter((e=>!1===i.includes(o.value(e))));t("update:selected",l)}return{hasSelectionMode:s,singleSelection:a,multipleSelection:l,allRowsSelected:c,someRowsSelected:d,rowsSelectedNumber:u,isRowSelected:h,clearSelection:g,updateSelection:p}}function $(e){return Array.isArray(e)?e.slice():[]}const q={expanded:Array},K=["update:expanded"];function G(e,t){const i=(0,o.iH)($(e.expanded));function r(e){return i.value.includes(e)}function s(n){void 0!==e.expanded?t("update:expanded",n):i.value=n}function a(e,t){const n=i.value.slice(),o=n.indexOf(e);!0===t?-1===o&&(n.push(e),s(n)):-1!==o&&(n.splice(o,1),s(n))}return(0,n.YP)((()=>e.expanded),(e=>{i.value=$(e)})),{isRowExpanded:r,setExpanded:s,updateExpanded:a}}const Z={visibleColumns:Array};function Q(e,t,i){const o=(0,n.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,R.hj)(t[e])?"right":"left",sortable:!0}))):[]})),r=(0,n.Fl)((()=>{const{sortBy:i,descending:n}=t.value,r=void 0!==e.visibleColumns?o.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):o.value;return r.map((e=>{const t=e.align||"right",o=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:o+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===i?" sorted "+(!0===n?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>o+" "+e.classes:t=>o+" "+e.classes(t):()=>o}}))})),s=(0,n.Fl)((()=>{const e={};return r.value.forEach((t=>{e[t.name]=t})),e})),a=(0,n.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:r.value.length+(!0===i.value?1:0)));return{colList:o,computedCols:r,computedColsMap:s,computedColspan:a}}var Y=i(43251);const J="q-table__bottom row items-center",X={};f.If.forEach((e=>{X[e]={}}));const ee=(0,s.L)({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...X,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...u.S,...N,...Z,...P,...H,...q,...j,...A},emits:["request","virtualScroll",...D,...K,...z],setup(e,{slots:t,emit:i}){const s=(0,n.FN)(),{proxy:{$q:a}}=s,d=(0,u.Z)(e,a),{inFullscreen:h,toggleFullscreen:g}=T(),m=(0,n.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),k=(0,n.Fl)((()=>" q-table__card"+(!0===d.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),L=(0,n.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":k.value)+(!0===d.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===h.value?" fullscreen scroll":""))),E=(0,n.Fl)((()=>L.value+(!0===e.loading?" q-table--loading":"")));(0,n.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+L.value),(()=>{!0===b.value&&null!==_.value&&_.value.reset()}));const{innerPagination:N,computedPagination:D,isServerSide:I,requestServerInteraction:R,setPagination:A}=W(s,Me),{computedFilterMethod:P}=M(e,A),{isRowExpanded:F,setExpanded:B,updateExpanded:H}=G(e,i),j=(0,n.Fl)((()=>{let t=e.rows;if(!0===I.value||0===t.length)return t;const{sortBy:i,descending:n}=D.value;return e.filter&&(t=P.value(t,e.filter,se.value,Me)),null!==ce.value&&(t=de.value(e.rows===t?t.slice():t,i,n)),t})),z=(0,n.Fl)((()=>j.value.length)),$=(0,n.Fl)((()=>{let t=j.value;if(!0===I.value)return t;const{rowsPerPage:i}=D.value;return 0!==i&&(0===he.value&&e.rows!==t?t.length>ge.value&&(t=t.slice(0,ge.value)):t=t.slice(he.value,ge.value)),t})),{hasSelectionMode:q,singleSelection:K,multipleSelection:Z,allRowsSelected:X,someRowsSelected:ee,rowsSelectedNumber:te,isRowSelected:ie,clearSelection:ne,updateSelection:oe}=U(e,i,$,m),{colList:re,computedCols:se,computedColsMap:ae,computedColspan:le}=Q(e,D,q),{columnToSort:ce,computedSortMethod:de,sort:ue}=O(e,D,re,A),{firstRowIndex:he,lastRowIndex:ge,isFirstPage:pe,isLastPage:fe,pagesNumber:me,computedRowsPerPageOptions:ve,computedRowsNumber:_e,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce}=V(s,N,D,I,A,z),Se=(0,n.Fl)((()=>0===$.value.length)),xe=(0,n.Fl)((()=>{const t={};return f.If.forEach((i=>{t[i]=e[i]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ke(){!0===b.value&&_.value.reset()}function Le(){if(!0===e.grid)return Ze();const i=!0!==e.hideHeader?We:null;if(!0===b.value){const o=t["top-row"],r=t["bottom-row"],s={default:e=>Te(e.item,t.body,e.index)};if(void 0!==o){const e=(0,n.h)("tbody",o({cols:se.value}));s.before=null===i?()=>e:()=>[i()].concat(e)}else null!==i&&(s.before=i);return void 0!==r&&(s.after=()=>(0,n.h)("tbody",r({cols:se.value}))),(0,n.h)(y,{ref:_,class:e.tableClass,style:e.tableStyle,...xe.value,scrollTarget:e.virtualScrollTarget,items:$.value,type:"__qtable",tableColspan:le.value,onVirtualScroll:Ne},s)}const o=[Ie()];return null!==i&&o.unshift(i()),p({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},o)}function Ee(t,n){if(null!==_.value)return void _.value.scrollTo(t,n);t=parseInt(t,10);const o=v.value.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==o){const n=v.value.querySelector(".q-table__middle.scroll"),r=o.offsetTop-e.virtualScrollStickySizeStart,s=r{const i=t[`body-cell-${e.name}`],r=void 0!==i?i:c;return void 0!==r?r(Ae({key:a,row:o,pageIndex:s,col:e})):(0,n.h)("td",{class:e.__tdClass(o),style:e.__tdStyle(o)},Me(e,o))}));if(!0===q.value){const i=t["body-selection"],r=void 0!==i?i(Oe({key:a,row:o,pageIndex:s})):[(0,n.h)(S.Z,{modelValue:l,color:e.color,dark:d.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{oe([a],[o],e,t)}})];u.unshift((0,n.h)("td",{class:"q-table--col-auto-width"},r))}const h={key:a,class:{selected:l}};return void 0!==e.onRowClick&&(h.class["cursor-pointer"]=!0,h.onClick=e=>{i("RowClick",e,o,s)}),void 0!==e.onRowDblclick&&(h.class["cursor-pointer"]=!0,h.onDblclick=e=>{i("RowDblclick",e,o,s)}),void 0!==e.onRowContextmenu&&(h.class["cursor-pointer"]=!0,h.onContextmenu=e=>{i("RowContextmenu",e,o,s)}),(0,n.h)("tr",h,u)}function Ie(){const e=t.body,i=t["top-row"],o=t["bottom-row"];let r=$.value.map(((t,i)=>Te(t,e,i)));return void 0!==i&&(r=i({cols:se.value}).concat(r)),void 0!==o&&(r=r.concat(o({cols:se.value}))),(0,n.h)("tbody",r)}function Re(e){return Pe(e),e.cols=e.cols.map((t=>(0,Y.g)({...t},"value",(()=>Me(t,e.row))))),e}function Ae(e){return Pe(e),(0,Y.g)(e,"value",(()=>Me(e.col,e.row))),e}function Oe(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:se.value,colsMap:ae.value,sort:ue,rowIndex:he.value+t.pageIndex,color:e.color,dark:d.value,dense:e.dense}),!0===q.value&&(0,Y.g)(t,"selected",(()=>ie(t.key)),((e,i)=>{oe([t.key],[t.row],e,i)})),(0,Y.g)(t,"expand",(()=>F(t.key)),(e=>{H(t.key,e)}))}function Me(e,t){const i="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(i,t):i}const Fe=(0,n.Fl)((()=>({pagination:D.value,pagesNumber:me.value,isFirstPage:pe.value,isLastPage:fe.value,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce,inFullscreen:h.value,toggleFullscreen:g})));function Be(){const i=t.top,o=t["top-left"],r=t["top-right"],s=t["top-selection"],a=!0===q.value&&void 0!==s&&te.value>0,l="q-table__top relative-position row items-center";if(void 0!==i)return(0,n.h)("div",{class:l},[i(Fe.value)]);let c;return!0===a?c=s(Fe.value).slice():(c=[],void 0!==o?c.push((0,n.h)("div",{class:"q-table__control"},[o(Fe.value)])):e.title&&c.push((0,n.h)("div",{class:"q-table__control"},[(0,n.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==r&&(c.push((0,n.h)("div",{class:"q-table__separator col"})),c.push((0,n.h)("div",{class:"q-table__control"},[r(Fe.value)]))),0!==c.length?(0,n.h)("div",{class:l},c):void 0}const He=(0,n.Fl)((()=>!0===ee.value?null:X.value));function We(){const i=Ve();return!0===e.loading&&void 0===t.loading&&i.push((0,n.h)("tr",{class:"q-table__progress"},[(0,n.h)("th",{class:"relative-position",colspan:le.value},De())])),(0,n.h)("thead",i)}function Ve(){const i=t.header,o=t["header-cell"];if(void 0!==i)return i(je({header:!0})).slice();const r=se.value.map((e=>{const i=t[`header-cell-${e.name}`],r=void 0!==i?i:o,s=je({col:e});return void 0!==r?r(s):(0,n.h)(l,{key:e.name,props:s},(()=>e.label))}));if(!0===K.value&&!0!==e.grid)r.unshift((0,n.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===Z.value){const i=t["header-selection"],o=void 0!==i?i(je({})):[(0,n.h)(S.Z,{color:e.color,modelValue:He.value,dark:d.value,dense:e.dense,"onUpdate:modelValue":ze})];r.unshift((0,n.h)("th",{class:"q-table--col-auto-width"},o))}return[(0,n.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},r)]}function je(t){return Object.assign(t,{cols:se.value,sort:ue,colsMap:ae.value,color:e.color,dark:d.value,dense:e.dense}),!0===Z.value&&(0,Y.g)(t,"selected",(()=>He.value),ze),t}function ze(e){!0===ee.value&&(e=!1),oe($.value.map(m.value),$.value,e)}const Ue=(0,n.Fl)((()=>{const t=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return!0===a.lang.rtl?t.reverse():t}));function $e(){if(!0===e.hideBottom)return;if(!0===Se.value){if(!0===e.hideNoData)return;const i=!0===e.loading?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,o=t["no-data"],s=void 0!==o?[o({message:i,icon:a.iconSet.table.warning,filter:e.filter})]:[(0,n.h)(r.Z,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),i];return(0,n.h)("div",{class:J+" q-table__bottom--nodata"},s)}const i=t.bottom;if(void 0!==i)return(0,n.h)("div",{class:J},[i(Fe.value)]);const o=!0!==e.hideSelectedBanner&&!0===q.value&&te.value>0?[(0,n.h)("div",{class:"q-table__control"},[(0,n.h)("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(te.value)])])]:[];return!0!==e.hidePagination?(0,n.h)("div",{class:J+" justify-end"},Ke(o)):0!==o.length?(0,n.h)("div",{class:J},o):void 0}function qe(e){A({page:1,rowsPerPage:e.value})}function Ke(i){let o;const{rowsPerPage:r}=D.value,s=e.paginationLabel||a.lang.table.pagination,l=t.pagination,c=e.rowsPerPageOptions.length>1;if(i.push((0,n.h)("div",{class:"q-table__separator col"})),!0===c&&i.push((0,n.h)("div",{class:"q-table__control"},[(0,n.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),(0,n.h)(w.Z,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:r,options:ve.value,displayValue:0===r?a.lang.table.allRows:r,dark:d.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":qe})])),void 0!==l)o=l(Fe.value);else if(o=[(0,n.h)("span",0!==r?{class:"q-table__bottom-item"}:{},[r?s(he.value+1,Math.min(ge.value,_e.value),_e.value):s(1,z.value,_e.value)])],0!==r&&me.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),me.value>2&&o.push((0,n.h)(x.Z,{key:"pgFirst",...t,icon:Ue.value[0],disable:pe.value,onClick:be})),o.push((0,n.h)(x.Z,{key:"pgPrev",...t,icon:Ue.value[1],disable:pe.value,onClick:ye}),(0,n.h)(x.Z,{key:"pgNext",...t,icon:Ue.value[2],disable:fe.value,onClick:we})),me.value>2&&o.push((0,n.h)(x.Z,{key:"pgLast",...t,icon:Ue.value[3],disable:fe.value,onClick:Ce}))}return i.push((0,n.h)("div",{class:"q-table__control"},o)),i}function Ge(){const i=!0===e.gridHeader?[(0,n.h)("table",{class:"q-table"},[We(n.h)])]:!0===e.loading&&void 0===t.loading?De(n.h):void 0;return(0,n.h)("div",{class:"q-table__middle"},i)}function Ze(){const o=void 0!==t.item?t.item:o=>{const r=o.cols.map((e=>(0,n.h)("div",{class:"q-table__grid-item-row"},[(0,n.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,n.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===q.value){const i=t["body-selection"],s=void 0!==i?i(o):[(0,n.h)(S.Z,{modelValue:o.selected,color:e.color,dark:d.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{oe([o.key],[o.row],e,t)}})];r.unshift((0,n.h)("div",{class:"q-table__grid-item-row"},s),(0,n.h)(c.Z,{dark:d.value}))}const s={class:["q-table__grid-item-card"+k.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(s.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(s.onClick=e=>{i("RowClick",e,o.row,o.pageIndex)}),void 0!==e.onRowDblclick&&(s.onDblclick=e=>{i("RowDblclick",e,o.row,o.pageIndex)})),(0,n.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===o.selected?" q-table__grid-item--selected":"")},[(0,n.h)("div",s,r)])};return(0,n.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},$.value.map(((e,t)=>o(Re({key:m.value(e),row:e,pageIndex:t})))))}return Object.assign(s.proxy,{requestServerInteraction:R,setPagination:A,firstPage:be,prevPage:ye,nextPage:we,lastPage:Ce,isRowSelected:ie,clearSelection:ne,isRowExpanded:F,setExpanded:B,sort:ue,resetVirtualScroll:ke,scrollTo:Ee,getCellValue:Me}),(0,Y.K)(s.proxy,{filteredSortedRows:()=>j.value,computedRows:()=>$.value,computedRowsNumber:()=>_e.value}),()=>{const i=[Be()],o={ref:v,class:E.value};return!0===e.grid?i.push(Ge()):Object.assign(o,{class:[o.class,e.cardClass],style:e.cardStyle}),i.push(Le(),$e()),!0===e.loading&&void 0!==t.loading&&i.push(t.loading()),(0,n.h)("div",o,i)}}})},67220:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const i=(0,n.FN)(),o=(0,n.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,n.h)("td",{class:o.value},(0,r.KR)(t.default));const s=i.vnode.key,a=(void 0!==e.props.colsMap?e.props.colsMap[s]:null)||e.props.col;if(void 0===a)return;const{row:l}=e.props;return(0,n.h)("td",{class:o.value+a.__tdClass(l),style:a.__tdStyle(l)},(0,r.KR)(t.default))}}})},31233:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,n.h)("tr",{class:i.value},(0,r.KR)(t.default))}})},70900:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});i(72879);var n=i(59835),o=i(60499),r=i(22857),s=i(9684),a=i(22026),l=i(61705),c=i(95439),d=i(91384),u=i(50796),h=i(4680);let g=0;const p=["click","keydown"],f={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+g++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function m(e,t,i,g){const p=(0,n.f3)(c.Nd,c.qO);if(p===c.qO)return console.error("QTab/QRouteTab component needs to be child of QTabs"),c.qO;const{proxy:f}=(0,n.FN)(),m=(0,o.iH)(null),v=(0,o.iH)(null),_=(0,o.iH)(null),b=(0,n.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===e.ripple?{}:e.ripple))),y=(0,n.Fl)((()=>p.currentModel.value===e.name)),w=(0,n.Fl)((()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===y.value?" q-tab--active"+(p.tabProps.value.activeClass?" "+p.tabProps.value.activeClass:"")+(p.tabProps.value.activeColor?` text-${p.tabProps.value.activeColor}`:"")+(p.tabProps.value.activeBgColor?` bg-${p.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&!1===p.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===e.noCaps||!0===p.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===e.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==g?g.linkClass.value:""))),C=(0,n.Fl)((()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===p.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==e.contentClass?` ${e.contentClass}`:""))),S=(0,n.Fl)((()=>!0===e.disable||!0===p.hasFocus.value||!1===y.value&&!0===p.hasActiveTab.value?-1:e.tabindex||0));function x(t,n){if(!0!==n&&null!==m.value&&m.value.focus(),!0!==e.disable){if(void 0===g)return p.updateModel({name:e.name}),void i("click",t);if(!0===g.hasRouterLink.value){const n=(i={})=>{let n;const o=void 0===i.to||!0===(0,h.xb)(i.to,e.to)?p.avoidRouteWatcher=(0,u.Z)():null;return g.navigateToRouterLink(t,{...i,returnRouterError:!0}).catch((e=>{n=e})).then((t=>{if(o===p.avoidRouteWatcher&&(p.avoidRouteWatcher=!1,void 0===n&&(void 0===t||void 0!==t.message&&!0===t.message.startsWith("Avoided redundant navigation"))&&p.updateModel({name:e.name})),!0===i.returnRouterError)return void 0!==n?Promise.reject(n):t}))};return i("click",t,n),void(!0!==t.defaultPrevented&&n())}i("click",t)}else void 0!==g&&!0===g.hasRouterLink.value&&(0,d.NS)(t)}function k(e){(0,l.So)(e,[13,32])?x(e,!0):!0!==(0,l.Wm)(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===p.onKbdNavigate(e.keyCode,f.$el)&&(0,d.NS)(e),i("keydown",e)}function L(){const i=p.tabProps.value.narrowIndicator,o=[],s=(0,n.h)("div",{ref:_,class:["q-tab__indicator",p.tabProps.value.indicatorClass]});void 0!==e.icon&&o.push((0,n.h)(r.Z,{class:"q-tab__icon",name:e.icon})),void 0!==e.label&&o.push((0,n.h)("div",{class:"q-tab__label"},e.label)),!1!==e.alert&&o.push(void 0!==e.alertIcon?(0,n.h)(r.Z,{class:"q-tab__alert-icon",color:!0!==e.alert?e.alert:void 0,name:e.alertIcon}):(0,n.h)("div",{class:"q-tab__alert"+(!0!==e.alert?` text-${e.alert}`:"")})),!0===i&&o.push(s);const l=[(0,n.h)("div",{class:"q-focus-helper",tabindex:-1,ref:m}),(0,n.h)("div",{class:C.value},(0,a.vs)(t.default,o))];return!1===i&&l.push(s),l}const E={name:(0,n.Fl)((()=>e.name)),rootRef:v,tabIndicatorRef:_,routeData:g};function N(t,i){const o={ref:v,class:w.value,tabindex:S.value,role:"tab","aria-selected":!0===y.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:x,onKeydown:k,...i};return(0,n.wy)((0,n.h)(t,o,L()),[[s.Z,b.value]])}return(0,n.Jd)((()=>{p.unregisterTab(E)})),(0,n.bv)((()=>{p.registerTab(E)})),{renderTab:N,$tabs:p}}var v=i(65987);const _=(0,v.L)({name:"QTab",props:f,emits:p,setup(e,{slots:t,emit:i}){const{renderTab:n}=m(e,t,i);return()=>n("div")}})},47817:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});i(72879);var n=i(59835),o=i(60499),r=i(22857),s=i(76849),a=i(46183),l=i(4698),c=i(65987),d=i(22026),u=i(95439),h=i(78383);function g(e,t,i){const n=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const p=["left","center","right","justify"],f=(0,c.L)({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>p.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:i}){const{proxy:c}=(0,n.FN)(),{$q:p}=c,{registerTick:f}=(0,a.Z)(),{registerTick:m}=(0,a.Z)(),{registerTick:v}=(0,a.Z)(),{registerTimeout:_,removeTimeout:b}=(0,l.Z)(),{registerTimeout:y,removeTimeout:w}=(0,l.Z)(),C=(0,o.iH)(null),S=(0,o.iH)(null),x=(0,o.iH)(e.modelValue),k=(0,o.iH)(!1),L=(0,o.iH)(!0),E=(0,o.iH)(!1),N=(0,o.iH)(!1),D=[],T=(0,o.iH)(0),I=(0,o.iH)(!1);let R,A=null,O=null;const P=(0,n.Fl)((()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:g(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps}))),M=(0,n.Fl)((()=>{const e=T.value,t=x.value;for(let i=0;i{const t=!0===k.value?"left":!0===N.value?"justify":e.align;return`q-tabs__content--align-${t}`})),B=(0,n.Fl)((()=>`q-tabs row no-wrap items-center q-tabs--${!0===k.value?"":"not-"}scrollable q-tabs--`+(!0===e.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===e.outsideArrows?"outside":"inside")+` q-tabs--mobile-with${!0===e.mobileArrows?"":"out"}-arrows`+(!0===e.dense?" q-tabs--dense":"")+(!0===e.shrink?" col-shrink":"")+(!0===e.stretch?" self-stretch":""))),H=(0,n.Fl)((()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+F.value+(void 0!==e.contentClass?` ${e.contentClass}`:""))),W=(0,n.Fl)((()=>!0===e.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"})),V=(0,n.Fl)((()=>!0!==e.vertical&&!0===p.lang.rtl)),j=(0,n.Fl)((()=>!1===h.e&&!0===V.value));function z({name:t,setCurrent:n,skipEmit:o}){x.value!==t&&(!0!==o&&void 0!==e["onUpdate:modelValue"]&&i("update:modelValue",t),!0!==n&&void 0!==e["onUpdate:modelValue"]||(q(x.value,t),x.value=t))}function U(){f((()=>{$({width:C.value.offsetWidth,height:C.value.offsetHeight})}))}function $(t){if(void 0===W.value||null===S.value)return;const i=t[W.value.container],n=Math.min(S.value[W.value.scroll],Array.prototype.reduce.call(S.value.children,((e,t)=>e+(t[W.value.content]||0)),0)),o=i>0&&n>i;k.value=o,!0===o&&m(G),N.value=ie.name.value===t)):null,o=void 0!==i&&null!==i&&""!==i?D.find((e=>e.name.value===i)):null;if(n&&o){const t=n.tabIndicatorRef.value,i=o.tabIndicatorRef.value;null!==A&&(clearTimeout(A),A=null),t.style.transition="none",t.style.transform="none",i.style.transition="none",i.style.transform="none";const r=t.getBoundingClientRect(),s=i.getBoundingClientRect();i.style.transform=!0===e.vertical?`translate3d(0,${r.top-s.top}px,0) scale3d(1,${s.height?r.height/s.height:1},1)`:`translate3d(${r.left-s.left}px,0,0) scale3d(${s.width?r.width/s.width:1},1,1)`,v((()=>{A=setTimeout((()=>{A=null,i.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",i.style.transform="none"}),70)}))}o&&!0===k.value&&K(o.rootRef.value)}function K(t){const{left:i,width:n,top:o,height:r}=S.value.getBoundingClientRect(),s=t.getBoundingClientRect();let a=!0===e.vertical?s.top-o:s.left-i;if(a<0)return S.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.floor(a),void G();a+=!0===e.vertical?s.height-r:s.width-n,a>0&&(S.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(a),G())}function G(){const t=S.value;if(null===t)return;const i=t.getBoundingClientRect(),n=!0===e.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===V.value?(L.value=Math.ceil(n+i.width)0):(L.value=n>0,E.value=!0===e.vertical?Math.ceil(n+i.height){!0===te(e)&&J()}),5)}function Q(){Z(!0===j.value?Number.MAX_SAFE_INTEGER:0)}function Y(){Z(!0===j.value?0:Number.MAX_SAFE_INTEGER)}function J(){null!==O&&(clearInterval(O),O=null)}function X(t,i){const n=Array.prototype.filter.call(S.value.children,(e=>e===i||e.matches&&!0===e.matches(".q-tab.q-focusable"))),o=n.length;if(0===o)return;if(36===t)return K(n[0]),n[0].focus(),!0;if(35===t)return K(n[o-1]),n[o-1].focus(),!0;const r=t===(!0===e.vertical?38:37),s=t===(!0===e.vertical?40:39),a=!0===r?-1:!0===s?1:void 0;if(void 0!==a){const e=!0===V.value?-1:1,t=n.indexOf(i)+a*e;return t>=0&&te.modelValue),(e=>{z({name:e,setCurrent:!0,skipEmit:!0})})),(0,n.YP)((()=>e.outsideArrows),U);const ee=(0,n.Fl)((()=>!0===j.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===e.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}}));function te(e){const t=S.value,{get:i,set:n}=ee.value;let o=!1,r=i(t);const s=e=e)&&(o=!0,r=e),n(t,r),G(),o}function ie(e,t){for(const i in e)if(e[i]!==t[i])return!1;return!0}function ne(){let e=null,t={matchedLen:0,queryDiff:9999,hrefLen:0};const i=D.filter((e=>void 0!==e.routeData&&!0===e.routeData.hasRouterLink.value)),{hash:n,query:o}=c.$route,r=Object.keys(o).length;for(const s of i){const i=!0===s.routeData.exact.value;if(!0!==s.routeData[!0===i?"linkIsExactActive":"linkIsActive"].value)continue;const{hash:a,query:l,matched:c,href:d}=s.routeData.resolvedLink.value,u=Object.keys(l).length;if(!0===i){if(a!==n)continue;if(u!==r||!1===ie(o,l))continue;e=s.name.value;break}if(""!==a&&a!==n)continue;if(0!==u&&!1===ie(l,o))continue;const h={matchedLen:c.length,queryDiff:r-u,hrefLen:d.length-a.length};if(h.matchedLen>t.matchedLen)e=s.name.value,t=h;else if(h.matchedLen===t.matchedLen){if(h.queryDifft.hrefLen&&(e=s.name.value,t=h)}}null===e&&!0===D.some((e=>void 0===e.routeData&&e.name.value===x.value))||z({name:e,setCurrent:!0})}function oe(e){if(b(),!0!==I.value&&null!==C.value&&e.target&&"function"===typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===C.value.contains(t)&&(I.value=!0,!0===k.value&&K(t))}}function re(){_((()=>{I.value=!1}),30)}function se(){!1===de.avoidRouteWatcher?y(ne):w()}function ae(){if(void 0===R){const e=(0,n.YP)((()=>c.$route.fullPath),se);R=()=>{e(),R=void 0}}}function le(e){D.push(e),T.value++,U(),void 0===e.routeData||void 0===c.$route?y((()=>{if(!0===k.value){const e=x.value,t=void 0!==e&&null!==e&&""!==e?D.find((t=>t.name.value===e)):null;t&&K(t.rootRef.value)}})):(ae(),!0===e.routeData.hasRouterLink.value&&se())}function ce(e){D.splice(D.indexOf(e),1),T.value--,U(),void 0!==R&&void 0!==e.routeData&&(!0===D.every((e=>void 0===e.routeData))&&R(),se())}const de={currentModel:x,tabProps:P,hasFocus:I,hasActiveTab:M,registerTab:le,unregisterTab:ce,verifyRouteModel:se,updateModel:z,onKbdNavigate:X,avoidRouteWatcher:!1};function ue(){null!==A&&clearTimeout(A),J(),void 0!==R&&R()}let he;return(0,n.JJ)(u.Nd,de),(0,n.Jd)(ue),(0,n.se)((()=>{he=void 0!==R,ue()})),(0,n.dl)((()=>{!0===he&&ae(),U()})),()=>(0,n.h)("div",{ref:C,class:B.value,role:"tablist",onFocusin:oe,onFocusout:re},[(0,n.h)(s.Z,{onResize:$}),(0,n.h)("div",{ref:S,class:H.value,onScroll:G},(0,d.KR)(t.default)),(0,n.h)(r.Z,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===L.value?"":" q-tabs__arrow--faded"),name:e.leftIcon||p.iconSet.tabs[!0===e.vertical?"up":"left"],onMousedownPassive:Q,onTouchstartPassive:Q,onMouseupPassive:J,onMouseleavePassive:J,onTouchendPassive:J}),(0,n.h)(r.Z,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===E.value?"":" q-tabs__arrow--faded"),name:e.rightIcon||p.iconSet.tabs[!0===e.vertical?"down":"right"],onMousedownPassive:Y,onTouchstartPassive:Y,onMouseupPassive:J,onMouseleavePassive:J,onTouchendPassive:J})])}})},23175:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(59835),o=i(22857),r=i(71926),s=i(65987);const a=(0,s.L)({name:"QToggle",props:{...r.Fz,icon:String,iconColor:String},emits:r.ZB,setup(e){function t(t,i){const r=(0,n.Fl)((()=>(!0===t.value?e.checkedIcon:!0===i.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon)),s=(0,n.Fl)((()=>!0===t.value?e.iconColor:null));return()=>[(0,n.h)("div",{class:"q-toggle__track"}),(0,n.h)("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==r.value?[(0,n.h)(o.Z,{name:r.value,color:s.value})]:void 0)]}return(0,r.ZP)("toggle",t)}})},51663:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,n.h)("div",{class:i.value,role:"toolbar"},(0,r.KR)(t.default))}})},81973:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(59835),o=i(65987),r=i(22026);const s=(0,o.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const i=(0,n.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,n.h)("div",{class:i.value},(0,r.KR)(t.default))}})},92043:(e,t,i)=>{"use strict";i.d(t,{If:()=>v,t9:()=>_,vp:()=>b});i(72879);var n=i(59835),o=i(60499),r=i(60899),s=i(91384),a=i(78383);const l=1e3,c=["start","center","end","start-force","center-force","end-force"],d=Array.prototype.filter,u=void 0===window.getComputedStyle(document.body).overflowAnchor?s.ZT:function(e,t){null!==e&&(void 0!==e._qOverflowAnimationFrame&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;e._qOverflowAnimationFrame=void 0;const i=e.children||[];d.call(i,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const n=i[t];n&&n.dataset&&(n.dataset.qVsAnchor="")})))};function h(e,t){return e+t}function g(e,t,i,n,o,r,s,l){const c=e===window?document.scrollingElement||document.documentElement:e,d=!0===o?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-s-l,scrollMaxSize:0,offsetStart:-s,offsetEnd:-l};if(!0===o?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=c.scrollLeft,u.scrollViewSize+=c.clientWidth),u.scrollMaxSize=c.scrollWidth,!0===r&&(u.scrollStart=(!0===a.e?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=c.scrollTop,u.scrollViewSize+=c.clientHeight),u.scrollMaxSize=c.scrollHeight),null!==i)for(let a=i.previousElementSibling;null!==a;a=a.previousElementSibling)!1===a.classList.contains("q-virtual-scroll--skip")&&(u.offsetStart+=a[d]);if(null!==n)for(let a=n.nextElementSibling;null!==a;a=a.nextElementSibling)!1===a.classList.contains("q-virtual-scroll--skip")&&(u.offsetEnd+=a[d]);if(t!==e){const i=c.getBoundingClientRect(),n=t.getBoundingClientRect();!0===o?(u.offsetStart+=n.left-i.left,u.offsetEnd-=n.width):(u.offsetStart+=n.top-i.top,u.offsetEnd-=n.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function p(e,t,i,n){"end"===t&&(t=(e===window?document.body:e)[!0===i?"scrollWidth":"scrollHeight"]),e===window?!0===i?(!0===n&&(t=(!0===a.e?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===i?(!0===n&&(t=(!0===a.e?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function f(e,t,i,n){if(i>=n)return 0;const o=t.length,r=Math.floor(i/l),s=Math.floor((n-1)/l)+1;let a=e.slice(r,s).reduce(h,0);return i%l!==0&&(a-=t.slice(r*l,i).reduce(h,0)),n%l!==0&&n!==o&&(a-=t.slice(n,s*l).reduce(h,0)),a}const m={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},v=Object.keys(m),_={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...m};function b({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:i,virtualScrollItemSizeComputed:s}){const a=(0,n.FN)(),{props:m,emit:v,proxy:_}=a,{$q:b}=_;let y,w,C,S,x=[];const k=(0,o.iH)(0),L=(0,o.iH)(0),E=(0,o.iH)({}),N=(0,o.iH)(null),D=(0,o.iH)(null),T=(0,o.iH)(null),I=(0,o.iH)({from:0,to:0}),R=(0,n.Fl)((()=>void 0!==m.tableColspan?m.tableColspan:100));void 0===s&&(s=(0,n.Fl)((()=>m.virtualScrollItemSize)));const A=(0,n.Fl)((()=>s.value+";"+m.virtualScrollHorizontal)),O=(0,n.Fl)((()=>A.value+";"+m.virtualScrollSliceRatioBefore+";"+m.virtualScrollSliceRatioAfter));function P(){j(w,!0)}function M(e){j(void 0===e?w:e)}function F(n,o){const r=t();if(void 0===r||null===r||8===r.nodeType)return;const s=g(r,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);C!==s.scrollViewSize&&z(s.scrollViewSize),H(r,s,Math.min(e.value-1,Math.max(0,parseInt(n,10)||0)),0,-1!==c.indexOf(o)?o:-1!==w&&n>w?"end":"start")}function B(){const n=t();if(void 0===n||null===n||8===n.nodeType)return;const o=g(n,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),r=e.value-1,s=o.scrollMaxSize-o.offsetStart-o.offsetEnd-L.value;if(y===o.scrollStart)return;if(o.scrollMaxSize<=0)return void H(n,o,0,0);C!==o.scrollViewSize&&z(o.scrollViewSize),W(I.value.from);const a=Math.floor(o.scrollMaxSize-Math.max(o.scrollViewSize,o.offsetEnd)-Math.min(S[r],o.scrollViewSize/2));if(a>0&&Math.ceil(o.scrollStart)>=a)return void H(n,o,r,o.scrollMaxSize-o.offsetEnd-x.reduce(h,0));let c=0,d=o.scrollStart-o.offsetStart,u=d;if(d<=s&&d+o.scrollViewSize>=k.value)d-=k.value,c=I.value.from,u=d;else for(let e=0;d>=x[e]&&c0&&c-o.scrollViewSize?(c++,u=d):u=S[c]+d;H(n,o,c,u)}function H(t,i,n,o,r){const s="string"===typeof r&&-1!==r.indexOf("-force"),a=!0===s?r.replace("-force",""):r,l=void 0!==a?a:"start";let c=Math.max(0,n-E.value[l]),d=c+E.value.total;d>e.value&&(d=e.value,c=Math.max(0,d-E.value.total)),y=i.scrollStart;const g=c!==I.value.from||d!==I.value.to;if(!1===g&&void 0===a)return void $(n);const{activeElement:v}=document,_=T.value;!0===g&&null!==_&&_!==v&&!0===_.contains(v)&&(_.addEventListener("focusout",V),setTimeout((()=>{null!==_&&_.removeEventListener("focusout",V)}))),u(_,n-c);const w=void 0!==a?S.slice(c,n).reduce(h,0):0;if(!0===g){const t=d>=I.value.from&&c<=I.value.to?I.value.to:d;I.value={from:c,to:t},k.value=f(x,S,0,c),L.value=f(x,S,d,e.value),requestAnimationFrame((()=>{I.value.to!==d&&y===i.scrollStart&&(I.value={from:I.value.from,to:d},L.value=f(x,S,d,e.value))}))}requestAnimationFrame((()=>{if(y!==i.scrollStart)return;!0===g&&W(c);const e=S.slice(c,n).reduce(h,0),r=e+i.offsetStart+k.value,l=r+S[n];let d=r+o;if(void 0!==a){const t=e-w,o=i.scrollStart+t;d=!0!==s&&oe.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),n=i.length,o=!0===m.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let r,s,a=e;for(let e=0;e=r;n--)S[n]=o;const a=Math.floor((e.value-1)/l);x=[];for(let n=0;n<=a;n++){let t=0;const i=Math.min((n+1)*l,e.value);for(let e=n*l;e=0?(W(I.value.from),(0,n.Y3)((()=>{F(t)}))):q()}function z(e){if(void 0===e&&"undefined"!==typeof window){const n=t();void 0!==n&&null!==n&&8!==n.nodeType&&(e=g(n,i(),N.value,D.value,m.virtualScrollHorizontal,b.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}C=e;const n=parseFloat(m.virtualScrollSliceRatioBefore)||0,o=parseFloat(m.virtualScrollSliceRatioAfter)||0,r=1+n+o,a=void 0===e||e<=0?1:Math.ceil(e/s.value),l=Math.max(1,a,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/r));E.value={total:Math.ceil(l*r),start:Math.ceil(l*n),center:Math.ceil(l*(.5+n)),end:Math.ceil(l*(1+n)),view:a}}function U(e,t){const i=!0===m.virtualScrollHorizontal?"width":"height",o={["--q-virtual-scroll-item-"+i]:s.value+"px"};return["tbody"===e?(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:N},[(0,n.h)("tr",[(0,n.h)("td",{style:{[i]:`${k.value}px`,...o},colspan:R.value})])]):(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:N,style:{[i]:`${k.value}px`,...o}}),(0,n.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},t.flat()),"tbody"===e?(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:D},[(0,n.h)("tr",[(0,n.h)("td",{style:{[i]:`${L.value}px`,...o},colspan:R.value})])]):(0,n.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[i]:`${L.value}px`,...o}})]}function $(e){w!==e&&(void 0!==m.onVirtualScroll&&v("virtualScroll",{index:e,from:I.value.from,to:I.value.to-1,direction:e{z()})),(0,n.YP)(A,P),z();const q=(0,r.Z)(B,!0===b.platform.is.ios?120:35);(0,n.wF)((()=>{z()}));let K=!1;return(0,n.se)((()=>{K=!0})),(0,n.dl)((()=>{if(!0!==K)return;const e=t();void 0!==y&&void 0!==e&&null!==e&&8!==e.nodeType?p(e,y,m.virtualScrollHorizontal,b.lang.rtl):F(w)})),(0,n.Jd)((()=>{q.cancel()})),Object.assign(_,{scrollTo:F,reset:P,refresh:M}),{virtualScrollSliceRange:I,virtualScrollSliceSizeComputed:E,setVirtualScrollSize:z,onVirtualScrollEvt:q,localResetVirtualScroll:j,padVirtualScroll:U,scrollTo:F,reset:P,refresh:M}}},65065:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>a,jO:()=>s});var n=i(59835);const o={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},r=Object.keys(o),s={align:{type:String,validator:e=>r.includes(e)}};function a(e){return(0,n.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${o[t]}`}))}},68234:(e,t,i)=>{"use strict";i.d(t,{S:()=>o,Z:()=>r});var n=i(59835);const o={dark:{type:Boolean,default:null}};function r(e,t){return(0,n.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},87810:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>R,yV:()=>N,HJ:()=>T,Cl:()=>D,tL:()=>I});i(72879);var n=i(59835),o=i(60499),r=i(61957),s=i(22857),a=i(63940),l=i(68234),c=i(87729),d=i(95439);function u({validate:e,resetValidation:t,requiresQForm:i}){const o=(0,n.f3)(d.vh,!1);if(!1!==o){const{props:i,proxy:r}=(0,n.FN)();Object.assign(r,{validate:e,resetValidation:t}),(0,n.YP)((()=>i.disable),(e=>{!0===e?("function"===typeof t&&t(),o.unbindComponent(r)):o.bindComponent(r)})),(0,n.bv)((()=>{!0!==i.disable&&o.bindComponent(r)})),(0,n.Jd)((()=>{!0!==i.disable&&o.unbindComponent(r)}))}else!0===i&&console.error("Parent QForm not found on useFormChild()!")}const h=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,g=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,p=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,f=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,m=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,v={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>h.test(e),hexaColor:e=>g.test(e),hexOrHexaColor:e=>p.test(e),rgbColor:e=>f.test(e),rgbaColor:e=>m.test(e),rgbOrRgbaColor:e=>f.test(e)||m.test(e),hexOrRgbColor:e=>h.test(e)||f.test(e),hexaOrRgbaColor:e=>g.test(e)||m.test(e),anyColor:e=>p.test(e)||f.test(e)||m.test(e)};var _=i(60899),b=i(43251);const y=[!0,!1,"ondemand"],w={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>y.includes(e)}};function C(e,t){const{props:i,proxy:r}=(0,n.FN)(),s=(0,o.iH)(!1),a=(0,o.iH)(null),l=(0,o.iH)(!1);u({validate:w,resetValidation:y});let c,d=0;const h=(0,n.Fl)((()=>void 0!==i.rules&&null!==i.rules&&0!==i.rules.length)),g=(0,n.Fl)((()=>!0!==i.disable&&!0===h.value&&!1===t.value)),p=(0,n.Fl)((()=>!0===i.error||!0===s.value)),f=(0,n.Fl)((()=>"string"===typeof i.errorMessage&&0!==i.errorMessage.length?i.errorMessage:a.value));function m(){"ondemand"!==i.lazyRules&&!0===g.value&&!0===l.value&&C()}function y(){d++,t.value=!1,l.value=!1,s.value=!1,a.value=null,C.cancel()}function w(e=i.modelValue){if(!0===i.disable||!1===h.value)return!0;const n=++d,o=!0!==t.value?()=>{l.value=!0}:()=>{},r=(e,i)=>{!0===e&&o(),s.value=e,a.value=i||null,t.value=!1},c=[];for(let t=0;t{if(void 0===e||!1===Array.isArray(e)||0===e.length)return n===d&&r(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return n===d&&r(void 0!==t,t),void 0===t}),(e=>(n===d&&(console.error(e),r(!0)),!1))))}(0,n.YP)((()=>i.modelValue),(()=>{l.value=!0,!0===g.value&&!1===i.lazyRules&&C()})),(0,n.YP)((()=>i.reactiveRules),(e=>{!0===e?void 0===c&&(c=(0,n.YP)((()=>i.rules),m,{immediate:!0,deep:!0})):void 0!==c&&(c(),c=void 0)}),{immediate:!0}),(0,n.YP)((()=>i.lazyRules),m),(0,n.YP)(e,(e=>{!0===e?l.value=!0:!0===g.value&&"ondemand"!==i.lazyRules&&C()}));const C=(0,_.Z)(w,0);return(0,n.Jd)((()=>{void 0!==c&&c(),C.cancel()})),Object.assign(r,{resetValidation:y,validate:w}),(0,b.g)(r,"hasError",(()=>p.value)),{isDirtyModel:l,hasRules:h,hasError:p,errorMessage:f,validate:w,resetValidation:y}}const S=/^on[A-Z]/;function x(){const{attrs:e,vnode:t}=(0,n.FN)(),i={listeners:(0,o.iH)({}),attributes:(0,o.iH)({})};function r(){const n={},o={};for(const t in e)"class"!==t&&"style"!==t&&!1===S.test(t)&&(n[t]=e[t]);for(const e in t.props)!0===S.test(e)&&(o[e]=t.props[e]);i.attributes.value=n,i.listeners.value=o}return(0,n.Xn)(r),r(),i}var k=i(22026),L=i(91384),E=i(17026);function N(e){return void 0!==e&&null!==e&&0!==(""+e).length}const D={...l.S,...w,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},T=["update:modelValue","clear","focus","blur","popupShow","popupHide"];function I({requiredForAttr:e=!0,tagProp:t}={}){const{props:i,proxy:r}=(0,n.FN)(),s=(0,l.Z)(i,r.$q),a=(0,c.Z)({required:e,getValue:()=>i.for});return{requiredForAttr:e,tag:!0===t?(0,n.Fl)((()=>i.tag)):{value:"label"},isDark:s,editable:(0,n.Fl)((()=>!0!==i.disable&&!0!==i.readonly)),innerLoading:(0,o.iH)(!1),focused:(0,o.iH)(!1),hasPopupOpen:!1,splitAttrs:x(),targetUid:a,rootRef:(0,o.iH)(null),targetRef:(0,o.iH)(null),controlRef:(0,o.iH)(null)}}function R(e){const{props:t,emit:i,slots:o,attrs:l,proxy:c}=(0,n.FN)(),{$q:d}=c;let u=null;void 0===e.hasValue&&(e.hasValue=(0,n.Fl)((()=>N(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{i("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:O,onFocusout:P}),Object.assign(e,{clearValue:M,onControlFocusin:O,onControlFocusout:P,focus:R}),void 0===e.computedCounter&&(e.computedCounter=(0,n.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,i=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==i?" / "+i:"")}})));const{isDirtyModel:h,hasRules:g,hasError:p,errorMessage:f,resetValidation:m}=C(e.focused,e.innerLoading),v=void 0!==e.floatingLabel?(0,n.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,n.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),_=(0,n.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===g.value||!0===t.counter||null!==t.error)),b=(0,n.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),y=(0,n.Fl)((()=>`q-field row no-wrap items-start q-field--${b.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===v.value?" q-field--float":"")+(!0===S.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===p.value?" q-field--error":"")+(!0===p.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===_.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),w=(0,n.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===p.value?" text-negative":"string"===typeof t.standout&&0!==t.standout.length&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),S=(0,n.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),x=(0,n.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==p.value?` text-${t.labelColor}`:""))),D=(0,n.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue}))),T=(0,n.Fl)((()=>{const i={};return e.targetUid.value&&(i.for=e.targetUid.value),!0===t.disable&&(i["aria-disabled"]="true"),i}));function I(){const t=document.activeElement;let i=void 0!==e.targetRef&&e.targetRef.value;!i||null!==t&&t.id===e.targetUid.value||(!0===i.hasAttribute("tabindex")||(i=i.querySelector("[tabindex]")),i&&i!==t&&i.focus({preventScroll:!0}))}function R(){(0,E.jd)(I)}function A(){(0,E.fP)(I);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function O(t){null!==u&&(clearTimeout(u),u=null),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,i("focus",t))}function P(t,n){null!==u&&clearTimeout(u),u=setTimeout((()=>{u=null,(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,i("blur",t)),void 0!==n&&n())}))}function M(o){if((0,L.NS)(o),!0!==d.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),i("update:modelValue",null),i("clear",t.modelValue),(0,n.Y3)((()=>{const e=h.value;m(),h.value=e}))}function F(){const i=[];return void 0!==o.prepend&&i.push((0,n.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:L.X$},o.prepend())),i.push((0,n.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},B())),!0===p.value&&!1===t.noErrorIcon&&i.push(W("error",[(0,n.h)(s.Z,{name:d.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?i.push(W("inner-loading-append",void 0!==o.loading?o.loading():[(0,n.h)(a.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&i.push(W("inner-clearable-append",[(0,n.h)(s.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:M})])),void 0!==o.append&&i.push((0,n.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:L.X$},o.append())),void 0!==e.getInnerAppend&&i.push(W("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&i.push(e.getControlChild()),i}function B(){const i=[];return void 0!==t.prefix&&null!==t.prefix&&i.push((0,n.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&i.push(e.getShadowControl()),void 0!==e.getControl?i.push(e.getControl()):void 0!==o.rawControl?i.push(o.rawControl()):void 0!==o.control&&i.push((0,n.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},o.control(D.value))),!0===S.value&&i.push((0,n.h)("div",{class:x.value},(0,k.KR)(o.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&i.push((0,n.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),i.concat((0,k.KR)(o.default))}function H(){let i,s;!0===p.value?null!==f.value?(i=[(0,n.h)("div",{role:"alert"},f.value)],s=`q--slot-error-${f.value}`):(i=(0,k.KR)(o.error),s="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(i=[(0,n.h)("div",t.hint)],s=`q--slot-hint-${t.hint}`):(i=(0,k.KR)(o.hint),s="q--slot-hint"));const a=!0===t.counter||void 0!==o.counter;if(!0===t.hideBottomSpace&&!1===a&&void 0===i)return;const l=(0,n.h)("div",{key:s,class:"q-field__messages col"},i);return(0,n.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale"),onClick:L.X$},[!0===t.hideBottomSpace?l:(0,n.h)(r.uT,{name:"q-transition--field-message"},(()=>l)),!0===a?(0,n.h)("div",{class:"q-field__counter"},void 0!==o.counter?o.counter():e.computedCounter.value):null])}function W(e,t){return null===t?null:(0,n.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}let V=!1;return(0,n.se)((()=>{V=!0})),(0,n.dl)((()=>{!0===V&&!0===t.autofocus&&c.focus()})),!0===t.autofocus&&(0,n.bv)((()=>{c.focus()})),(0,n.Jd)((()=>{null!==u&&clearTimeout(u)})),Object.assign(c,{focus:R,blur:A}),function(){const i=void 0===e.getControl&&void 0===o.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...T.value}:T.value;return(0,n.h)(e.tag.value,{ref:e.rootRef,class:[y.value,l.class],style:l.style,...i},[void 0!==o.before?(0,n.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:L.X$},o.before()):null,(0,n.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,n.h)("div",{ref:e.controlRef,class:w.value,tabindex:-1,...e.controlEvents},F()),!0===_.value?H():null]),void 0!==o.after?(0,n.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:L.X$},o.after()):null])}}},99256:(e,t,i)=>{"use strict";i.d(t,{Do:()=>s,Fz:()=>o,eX:()=>r});var n=i(59835);const o={name:String};function r(e={}){return(t,i,o)=>{t[i]((0,n.h)("input",{class:"hidden"+(o||""),...e.value}))}}function s(e){return(0,n.Fl)((()=>e.name||e.for))}},94953:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(25310);function r(e,t,i){let r;function s(){void 0!==r&&(o.Z.remove(r),r=void 0)}return(0,n.Jd)((()=>{!0===e.value&&s()})),{removeFromHistory:s,addToHistory(){r={condition:()=>!0===i.value,handler:t},o.Z.add(r)}}}},62802:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(39180);const o=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,r=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,s=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,a=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===n.client.is.firefox?!1===a.test(t.data):!0===o.test(t.data)||!0===r.test(t.data)||!0===s.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},63842:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>a,gH:()=>s,vr:()=>r});var n=i(59835),o=i(52046);const r={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},s=["beforeShow","show","beforeHide","hide"];function a({showing:e,canShow:t,hideOnRouteChange:i,handleShow:r,handleHide:s,processOnMount:a}){const l=(0,n.FN)(),{props:c,emit:d,proxy:u}=l;let h;function g(t){!0===e.value?m(t):p(t)}function p(e){if(!0===c.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const i=void 0!==c["onUpdate:modelValue"];!0===i&&(d("update:modelValue",!0),h=e,(0,n.Y3)((()=>{h===e&&(h=void 0)}))),null!==c.modelValue&&!1!==i||f(e)}function f(t){!0!==e.value&&(e.value=!0,d("beforeShow",t),void 0!==r?r(t):d("show",t))}function m(e){if(!0===c.disable)return;const t=void 0!==c["onUpdate:modelValue"];!0===t&&(d("update:modelValue",!1),h=e,(0,n.Y3)((()=>{h===e&&(h=void 0)}))),null!==c.modelValue&&!1!==t||v(e)}function v(t){!1!==e.value&&(e.value=!1,d("beforeHide",t),void 0!==s?s(t):d("hide",t))}function _(t){if(!0===c.disable&&!0===t)void 0!==c["onUpdate:modelValue"]&&d("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?f:v;e(h)}}(0,n.YP)((()=>c.modelValue),_),void 0!==i&&!0===(0,o.Rb)(l)&&(0,n.YP)((()=>u.$route.fullPath),(()=>{!0===i.value&&!0===e.value&&m()})),!0===a&&(0,n.bv)((()=>{_(c.modelValue)}));const b={show:p,hide:m,toggle:g};return Object.assign(u,b),b}},3120:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>y,vZ:()=>m,K6:()=>b,t6:()=>_});var n=i(59835),o=i(60499),r=i(61957),s=i(39180),a=i(65987),l=i(99367),c=i(91384),d=i(2589);function u(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach(((e,i)=>{const n=parseFloat(e);n&&(t[i]=n)})),t}const h=(0,a.f)({name:"touch-swipe",beforeMount(e,{value:t,arg:i,modifiers:n}){if(!0!==n.mouse&&!0!==s.client.has.touch)return;const o=!0===n.mouseCapture?"Capture":"",r={handler:t,sensitivity:u(i),direction:(0,l.R)(n),noop:c.ZT,mouseStart(e){(0,l.n)(e,r)&&(0,c.du)(e)&&((0,c.M0)(r,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),r.start(e,!0))},touchStart(e){if((0,l.n)(e,r)){const t=e.target;(0,c.M0)(r,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(t,i){!0===s.client.is.firefox&&(0,c.Jf)(e,!0);const n=(0,c.FK)(t);r.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===i,dir:!1}},move(e){if(void 0===r.event)return;if(!1!==r.event.dir)return void(0,c.NS)(e);const t=Date.now()-r.event.time;if(0===t)return;const i=(0,c.FK)(e),n=i.left-r.event.x,o=Math.abs(n),s=i.top-r.event.y,a=Math.abs(s);if(!0!==r.event.mouse){if(or.sensitivity[0]&&(r.event.dir=s<0?"up":"down"),!0===r.direction.horizontal&&o>a&&a<100&&l>r.sensitivity[0]&&(r.event.dir=n<0?"left":"right"),!0===r.direction.up&&or.sensitivity[0]&&(r.event.dir="up"),!0===r.direction.down&&o0&&o<100&&u>r.sensitivity[0]&&(r.event.dir="down"),!0===r.direction.left&&o>a&&n<0&&a<100&&l>r.sensitivity[0]&&(r.event.dir="left"),!0===r.direction.right&&o>a&&n>0&&a<100&&l>r.sensitivity[0]&&(r.event.dir="right"),!1!==r.event.dir?((0,c.NS)(e),!0===r.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,d.M)(),r.styleCleanup=e=>{r.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()}),r.handler({evt:e,touch:!0!==r.event.mouse,mouse:r.event.mouse,direction:r.event.dir,duration:t,distance:{x:o,y:a}})):r.end(e)},end(t){void 0!==r.event&&((0,c.ul)(r,"temp"),!0===s.client.is.firefox&&(0,c.Jf)(e,!1),void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==t&&!1!==r.event.dir&&(0,c.NS)(t),r.event=void 0)}};if(e.__qtouchswipe=r,!0===n.mouse){const t=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"";(0,c.M0)(r,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===s.client.has.touch&&(0,c.M0)(r,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const i=e.__qtouchswipe;void 0!==i&&(t.oldValue!==t.value&&("function"!==typeof t.value&&i.end(),i.handler=t.value),i.direction=(0,l.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&((0,c.ul)(t,"main"),(0,c.ul)(t,"temp"),!0===s.client.is.firefox&&(0,c.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function g(){let e=Object.create(null);return{getCache:(t,i)=>void 0===e[t]?e[t]="function"===typeof i?i():i:e[t],setCache(t,i){e[t]=i},hasCache(t){return e.hasOwnProperty(t)},clearCache(t){void 0!==t?delete e[t]:e={}}}}var p=i(22026),f=i(52046);const m={name:{required:!0},disable:Boolean},v={setup(e,{slots:t}){return()=>(0,n.h)("div",{class:"q-panel scroll",role:"tabpanel"},(0,p.KR)(t.default))}},_={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},b=["update:modelValue","beforeTransition","transition"];function y(){const{props:e,emit:t,proxy:i}=(0,n.FN)(),{getCache:s}=g();let a,l;const c=(0,o.iH)(null),d=(0,o.iH)(null);function u(t){const n=!0===e.vertical?"up":"left";I((!0===i.$q.lang.rtl?-1:1)*(t.direction===n?1:-1))}const m=(0,n.Fl)((()=>[[h,u,void 0,{horizontal:!0!==e.vertical,vertical:e.vertical,mouse:!0}]])),_=(0,n.Fl)((()=>e.transitionPrev||"slide-"+(!0===e.vertical?"down":"right"))),b=(0,n.Fl)((()=>e.transitionNext||"slide-"+(!0===e.vertical?"up":"left"))),y=(0,n.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),w=(0,n.Fl)((()=>"string"===typeof e.modelValue||"number"===typeof e.modelValue?e.modelValue:String(e.modelValue))),C=(0,n.Fl)((()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax}))),S=(0,n.Fl)((()=>void 0!==e.keepAliveInclude||void 0!==e.keepAliveExclude));function x(){I(1)}function k(){I(-1)}function L(e){t("update:modelValue",e)}function E(e){return void 0!==e&&null!==e&&""!==e}function N(e){return a.findIndex((t=>t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable))}function D(){return a.filter((e=>""!==e.props.disable&&!0!==e.props.disable))}function T(t){const i=0!==t&&!0===e.animated&&-1!==c.value?"q-transition--"+(-1===t?_.value:b.value):null;d.value!==i&&(d.value=i)}function I(i,n=c.value){let o=n+i;while(-1!==o&&o{l=!1}));o+=i}!0===e.infinite&&0!==a.length&&-1!==n&&n!==a.length&&I(i,-1===i?a.length:-1)}function R(){const t=N(e.modelValue);return c.value!==t&&(c.value=t),!0}function A(){const t=!0===E(e.modelValue)&&R()&&a[c.value];return!0===e.keepAlive?[(0,n.h)(n.Ob,C.value,[(0,n.h)(!0===S.value?s(w.value,(()=>({...v,name:w.value}))):v,{key:w.value,style:y.value},(()=>t))])]:[(0,n.h)("div",{class:"q-panel scroll",style:y.value,key:w.value,role:"tabpanel"},[t])]}function O(){if(0!==a.length)return!0===e.animated?[(0,n.h)(r.uT,{name:d.value},A)]:A()}function P(e){return a=(0,f.Pf)((0,p.KR)(e.default,[])).filter((e=>null!==e.props&&void 0===e.props.slot&&!0===E(e.props.name))),a.length}function M(){return a}return(0,n.YP)((()=>e.modelValue),((e,i)=>{const o=!0===E(e)?N(e):-1;!0!==l&&T(-1===o?0:o{t("transition",e,i)})))})),Object.assign(i,{next:x,previous:k,goTo:L}),{panelIndex:c,panelDirectives:m,updatePanelsList:P,updatePanelIndex:R,getPanelContent:O,getEnabledPanels:D,getPanels:M,isValidPanelName:E,keepAliveProps:C,needsUniqueKeepAliveWrapper:S,goToPanelByOffset:I,goToPanel:L,nextPanel:x,previousPanel:k}}},91518:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});i(72879);var n=i(60499),o=i(59835),r=i(65987),s=(i(91384),i(17026)),a=i(56669),l=i(2909),c=i(43251);const d=(0,r.L)({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function u(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function h(e,t,i,r){const h=(0,n.iH)(!1),g=(0,n.iH)(!1);let p=null;const f={},m="dialog"===r&&u(e);function v(t){if(!0===t)return(0,s.xF)(f),void(g.value=!0);g.value=!1,!1===h.value&&(!1===m&&null===p&&(p=(0,a.q_)(!1,r)),h.value=!0,l.Q$.push(e.proxy),(0,s.YX)(f))}function _(t){if(g.value=!1,!0!==t)return;(0,s.xF)(f),h.value=!1;const i=l.Q$.indexOf(e.proxy);-1!==i&&l.Q$.splice(i,1),null!==p&&((0,a.pB)(p),p=null)}return(0,o.Ah)((()=>{_(!0)})),e.proxy.__qPortal=!0,(0,c.g)(e.proxy,"contentEl",(()=>t.value)),{showPortal:v,hidePortal:_,portalIsActive:h,portalIsAccessible:g,renderPortal:()=>!0===m?i():!0===h.value?[(0,o.h)(o.lR,{to:p},(0,o.h)(d,i))]:void 0}}},13963:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(5984);function o(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,(0,n.Z)(t))}}}},55917:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(60499),o=i(59835);function r(e,t){const i=(0,n.iH)(null),r=(0,o.Fl)((()=>!0===e.disable?null:(0,o.h)("span",{ref:i,class:"no-outline",tabindex:-1})));function s(e){const n=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==n&&document.activeElement!==n&&!0===n.contains(document.activeElement)&&n.focus():null!==i.value&&(void 0===e||null!==n&&!0===n.contains(e.target))&&i.value.focus()}return{refocusTargetEl:r,refocusTarget:s}}},70945:(e,t,i)=>{"use strict";i.d(t,{$:()=>u,Z:()=>h});var n=i(59835),o=i(52046);function r(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function a(e,t){for(const i in t){const n=t[i],o=e[i];if("string"===typeof n){if(n!==o)return!1}else if(!1===Array.isArray(o)||o.length!==n.length||n.some(((e,t)=>e!==o[t])))return!1}return!0}function l(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,i)=>e===t[i])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?l(e,t):!0===Array.isArray(t)?l(t,e):e===t}function d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!1===c(e[i],t[i]))return!1;return!0}const u={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function h({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const i=(0,n.FN)(),{props:l,proxy:c,emit:u}=i,h=(0,o.Rb)(i),g=(0,n.Fl)((()=>!0!==l.disable&&void 0!==l.href)),p=!0===t?(0,n.Fl)((()=>!0===h&&!0!==l.disable&&!0!==g.value&&void 0!==l.to&&null!==l.to&&""!==l.to)):(0,n.Fl)((()=>!0===h&&!0!==g.value&&void 0!==l.to&&null!==l.to&&""!==l.to)),f=(0,n.Fl)((()=>!0===p.value?x(l.to):null)),m=(0,n.Fl)((()=>null!==f.value)),v=(0,n.Fl)((()=>!0===g.value||!0===m.value)),_=(0,n.Fl)((()=>"a"===l.type||!0===v.value?"a":l.tag||e||"div")),b=(0,n.Fl)((()=>!0===g.value?{href:l.href,target:l.target}:!0===m.value?{href:f.value.href,target:l.target}:{})),y=(0,n.Fl)((()=>{if(!1===m.value)return-1;const{matched:e}=f.value,{length:t}=e,i=e[t-1];if(void 0===i)return-1;const n=c.$route.matched;if(0===n.length)return-1;const o=n.findIndex(s.bind(null,i));if(-1!==o)return o;const a=r(e[t-2]);return t>1&&r(i)===a&&n[n.length-1].path!==a?n.findIndex(s.bind(null,e[t-2])):o})),w=(0,n.Fl)((()=>!0===m.value&&-1!==y.value&&a(c.$route.params,f.value.params))),C=(0,n.Fl)((()=>!0===w.value&&y.value===c.$route.matched.length-1&&d(c.$route.params,f.value.params))),S=(0,n.Fl)((()=>!0===m.value?!0===C.value?` ${l.exactActiveClass} ${l.activeClass}`:!0===l.exact?"":!0===w.value?` ${l.activeClass}`:"":""));function x(e){try{return c.$router.resolve(e)}catch(t){}return null}function k(e,{returnRouterError:t,to:i=l.to,replace:n=l.replace}={}){if(!0===l.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===l.target)return Promise.resolve(!1);e.preventDefault();const o=c.$router[!0===n?"replace":"push"](i);return!0===t?o:o.then((()=>{})).catch((()=>{}))}function L(e){if(!0===m.value){const t=t=>k(e,t);u("click",e,t),!0!==e.defaultPrevented&&t()}else u("click",e)}return{hasRouterLink:m,hasHrefLink:g,hasLink:v,linkTag:_,resolvedLink:f,linkIsActive:w,linkIsExactActive:C,linkClass:S,linkAttrs:b,getLink:x,navigateToRouterLink:k,navigateOnClick:L}}},20244:(e,t,i)=>{"use strict";i.d(t,{LU:()=>r,Ok:()=>o,ZP:()=>s});var n=i(59835);const o={xs:18,sm:24,md:32,lg:38,xl:46},r={size:String};function s(e,t=o){return(0,n.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},20431:(e,t,i)=>{"use strict";i.d(t,{D:()=>o,Z:()=>r});var n=i(59835);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function r(e,t=(()=>{}),i=(()=>{})){return{transitionProps:(0,n.Fl)((()=>{const n=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||i()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}})),transitionStyle:(0,n.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},87729:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(60499),o=i(59835),r=i(50796),s=i(39180);function a(e){return void 0===e||null===e?null:e}function l(e,t){return void 0===e||null===e?!0===t?`f_${(0,r.Z)()}`:null:e}function c({getValue:e,required:t=!0}={}){if(!0===s.u.value){const i=void 0!==e?(0,n.iH)(a(e())):(0,n.iH)(null);return!0===t&&null===i.value&&(0,o.bv)((()=>{i.value=`f_${(0,r.Z)()}`})),void 0!==e&&(0,o.YP)(e,(e=>{i.value=l(e,t)})),i}return void 0!==e?(0,o.Fl)((()=>l(e(),t))):(0,n.iH)(`f_${(0,r.Z)()}`)}},46183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(52046);function r(){let e;const t=(0,n.FN)();function i(){e=void 0}return(0,n.se)(i),(0,n.Jd)(i),{removeTick:i,registerTick(i){e=i,(0,n.Y3)((()=>{e===i&&(!1===(0,o.$D)(t)&&e(),e=void 0)}))}}}},4698:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(59835),o=i(52046);function r(){let e=null;const t=(0,n.FN)();function i(){null!==e&&(clearTimeout(e),e=null)}return(0,n.se)(i),(0,n.Jd)(i),{removeTimeout:i,registerTimeout(n,r){i(e),!1===(0,o.$D)(t)&&(e=setTimeout((()=>{e=null,n()}),r))}}}},31281:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(65987),o=i(2909),r=i(61705);function s(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const a=(0,n.f)({name:"close-popup",beforeMount(e,{value:t}){const i={depth:s(t),handler(t){0!==i.depth&&setTimeout((()=>{const n=(0,o.je)(e);void 0!==n&&(0,o.S7)(n,t,i.depth)}))},handlerKey(e){!0===(0,r.So)(e,13)&&i.handler(e)}};e.__qclosepopup=i,e.addEventListener("click",i.handler),e.addEventListener("keyup",i.handlerKey)},updated(e,{value:t,oldValue:i}){t!==i&&(e.__qclosepopup.depth=s(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},9684:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});i(72879);var n=i(65987),o=i(70223),r=i(91384),s=i(61705);function a(e,t=250){let i,n=!1;return function(){return!1===n&&(n=!0,setTimeout((()=>{n=!1}),t),i=e.apply(this,arguments)),i}}function l(e,t,i,n){!0===i.modifiers.stop&&(0,r.sT)(e);const s=i.modifiers.color;let a=i.modifiers.center;a=!0===a||!0===n;const l=document.createElement("span"),c=document.createElement("span"),d=(0,r.FK)(e),{left:u,top:h,width:g,height:p}=t.getBoundingClientRect(),f=Math.sqrt(g*g+p*p),m=f/2,v=(g-f)/2+"px",_=a?v:d.left-u-m+"px",b=(p-f)/2+"px",y=a?b:d.top-h-m+"px";c.className="q-ripple__inner",(0,o.iv)(c,{height:`${f}px`,width:`${f}px`,transform:`translate3d(${_},${y},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(s?" text-"+s:""),l.setAttribute("dir","ltr"),l.appendChild(c),t.appendChild(l);const w=()=>{l.remove(),clearTimeout(C)};i.abort.push(w);let C=setTimeout((()=>{c.classList.add("q-ripple__inner--enter"),c.style.transform=`translate3d(${v},${b},0) scale3d(1,1,1)`,c.style.opacity=.2,C=setTimeout((()=>{c.classList.remove("q-ripple__inner--enter"),c.classList.add("q-ripple__inner--leave"),c.style.opacity=0,C=setTimeout((()=>{l.remove(),i.abort.splice(i.abort.indexOf(w),1)}),275)}),250)}),50)}function c(e,{modifiers:t,value:i,arg:n}){const o=Object.assign({},e.cfg.ripple,t,i);e.modifiers={early:!0===o.early,stop:!0===o.stop,center:!0===o.center,color:o.color||n,keyCodes:[].concat(o.keyCodes||13)}}const d=(0,n.f)({name:"ripple",beforeMount(e,t){const i=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===i.ripple)return;const n={cfg:i,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&l(t,e,n,!0===t.qKeyEvent)},keystart:a((t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===(0,s.So)(t,n.modifiers.keyCodes)&&t.type==="key"+(!0===n.modifiers.early?"down":"up")&&l(t,e,n,!0)}),300)};c(n,t),e.__qripple=n,(0,r.M0)(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const i=e.__qripple;void 0!==i&&(i.enabled=!1!==t.value,!0===i.enabled&&Object(t.value)===t.value&&c(i,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,r.ul)(t,"main"),delete e._qripple)}})},50867:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(39180),o=i(65987),r=i(99367),s=i(91384),a=i(2589);function l(e,t,i){const n=(0,s.FK)(e);let o,r=n.left-t.event.x,a=n.top-t.event.y,l=Math.abs(r),c=Math.abs(a);const d=t.direction;!0===d.horizontal&&!0!==d.vertical?o=r<0?"left":"right":!0!==d.horizontal&&!0===d.vertical?o=a<0?"up":"down":!0===d.up&&a<0?(o="up",l>c&&(!0===d.left&&r<0?o="left":!0===d.right&&r>0&&(o="right"))):!0===d.down&&a>0?(o="down",l>c&&(!0===d.left&&r<0?o="left":!0===d.right&&r>0&&(o="right"))):!0===d.left&&r<0?(o="left",l0&&(o="down"))):!0===d.right&&r>0&&(o="right",l0&&(o="down")));let u=!1;if(void 0===o&&!1===i){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};o=t.event.lastDir,u=!0,"left"===o||"right"===o?(n.left-=r,l=0,r=0):(n.top-=a,c=0,a=0)}return{synthetic:u,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:o,isFirst:t.event.isFirst,isFinal:!0===i,duration:Date.now()-t.event.time,distance:{x:l,y:c},offset:{x:r,y:a},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let c=0;const d=(0,o.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:i}){if(!0!==i.mouse&&!0!==n.client.has.touch)return;function o(e,t){!0===i.mouse&&!0===t?(0,s.NS)(e):(!0===i.stop&&(0,s.sT)(e),!0===i.prevent&&(0,s.X$)(e))}const d={uid:"qvtp_"+c++,handler:t,modifiers:i,direction:(0,r.R)(i),noop:s.ZT,mouseStart(e){(0,r.n)(e,d)&&(0,s.du)(e)&&((0,s.M0)(d,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),d.start(e,!0))},touchStart(e){if((0,r.n)(e,d)){const t=e.target;(0,s.M0)(d,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),d.start(e)}},start(t,o){if(!0===n.client.is.firefox&&(0,s.Jf)(e,!0),d.lastEvt=t,!0===o||!0===i.stop){if(!0!==d.direction.all&&(!0!==o||!0!==d.modifiers.mouseAllDir&&!0!==d.modifiers.mousealldir)){const e=-1!==t.type.indexOf("mouse")?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,s.X$)(e),!0===t.cancelBubble&&(0,s.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[d.uid]:t.qClonedBy.concat(d.uid)}),d.initialEvent={target:t.target,event:e}}(0,s.sT)(t)}const{left:r,top:a}=(0,s.FK)(t);d.event={x:r,y:a,time:Date.now(),mouse:!0===o,detected:!1,isFirst:!0,isFinal:!1,lastX:r,lastY:a}},move(e){if(void 0===d.event)return;const t=(0,s.FK)(e),n=t.left-d.event.x,r=t.top-d.event.y;if(0===n&&0===r)return;d.lastEvt=e;const c=!0===d.event.mouse,u=()=>{let t;o(e,c),!0!==i.preserveCursor&&!0!==i.preservecursor&&(t=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===c&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,a.M)(),d.styleCleanup=e=>{if(d.styleCleanup=void 0,void 0!==t&&(document.documentElement.style.cursor=t),document.body.classList.remove("non-selectable"),!0===c){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===d.event.detected){!0!==d.event.isFirst&&o(e,d.event.mouse);const{payload:t,synthetic:i}=l(e,d,!1);return void(void 0!==t&&(!1===d.handler(t)?d.end(e):(void 0===d.styleCleanup&&!0===d.event.isFirst&&u(),d.event.lastX=t.position.left,d.event.lastY=t.position.top,d.event.lastDir=!0===i?void 0:t.direction,d.event.isFirst=!1)))}if(!0===d.direction.all||!0===c&&(!0===d.modifiers.mouseAllDir||!0===d.modifiers.mousealldir))return u(),d.event.detected=!0,void d.move(e);const h=Math.abs(n),g=Math.abs(r);h!==g&&(!0===d.direction.horizontal&&h>g||!0===d.direction.vertical&&h0||!0===d.direction.left&&h>g&&n<0||!0===d.direction.right&&h>g&&n>0?(d.event.detected=!0,d.move(e)):d.end(e,!0))},end(t,i){if(void 0!==d.event){if((0,s.ul)(d,"temp"),!0===n.client.is.firefox&&(0,s.Jf)(e,!1),!0===i)void 0!==d.styleCleanup&&d.styleCleanup(),!0!==d.event.detected&&void 0!==d.initialEvent&&d.initialEvent.target.dispatchEvent(d.initialEvent.event);else if(!0===d.event.detected){!0===d.event.isFirst&&d.handler(l(void 0===t?d.lastEvt:t,d).payload);const{payload:e}=l(void 0===t?d.lastEvt:t,d,!0),i=()=>{d.handler(e)};void 0!==d.styleCleanup?d.styleCleanup(i):i()}d.event=void 0,d.initialEvent=void 0,d.lastEvt=void 0}}};if(e.__qtouchpan=d,!0===i.mouse){const t=!0===i.mouseCapture||!0===i.mousecapture?"Capture":"";(0,s.M0)(d,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===n.client.has.touch&&(0,s.M0)(d,"main",[[e,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const i=e.__qtouchpan;void 0!==i&&(t.oldValue!==t.value&&("function"!==typeof value&&i.end(),i.handler=t.value),i.direction=(0,r.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,s.ul)(t,"main"),(0,s.ul)(t,"temp"),!0===n.client.is.firefox&&(0,s.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}})},25310:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});i(72879);var n=i(39180),o=i(91384);const r=()=>!0;function s(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function a(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return r;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(s).map(a)),()=>t.includes(window.location.hash)}const c={__history:[],add:o.ZT,remove:o.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:i}=n.client.is;if(!0!==t&&!0!==i)return;const o=e.config[!0===t?"cordova":"capacitor"];if(void 0!==o&&!1===o.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=r),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const s=l(Object.assign({backButtonExit:!0},o)),a=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===s()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",a,!1)})):window.Capacitor.Plugins.App.addListener("backButton",a)}}},72289:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(74124),o=i(43251);const r={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},s=(0,n.Z)({iconMapFn:null,__icons:{}},{set(e,t){const i={...e,rtl:!0===e.rtl};i.set=s.set,Object.assign(s.__icons,i)},install({$q:e,iconSet:t,ssrContext:i}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,o.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||r)}}),a=s},8264:(e,t,i)=>{"use strict";i.d(t,{$:()=>L,Z:()=>D});var n=i(61957),o=i(39180),r=(i(72879),i(74124)),s=i(91384),a=i(60899);const l=["sm","md","lg","xl"],{passive:c}=s.listenOpts,d=(0,r.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:s.ZT,setDebounce:s.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:i}=window,n=i||window,r=document.scrollingElement||document.documentElement,s=void 0===i||!0===o.client.is.mobile?()=>[Math.max(window.innerWidth,r.clientWidth),Math.max(window.innerHeight,r.clientHeight)]:()=>[i.width*i.scale+window.innerWidth-r.clientWidth,i.height*i.scale+window.innerHeight-r.clientHeight],d=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,i]=s();if(i!==this.height&&(this.height=i),t!==this.width)this.width=t;else if(!0!==e)return;let n=this.sizes;this.gt.xs=t>=n.sm,this.gt.sm=t>=n.md,this.gt.md=t>=n.lg,this.gt.lg=t>=n.xl,this.lt.sm=t{l.forEach((t=>{void 0!==e[t]&&(h[t]=e[t])}))},this.setDebounce=e=>{g=e};const p=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&l.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{l.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==u&&n.removeEventListener("resize",u,c),u=e>0?(0,a.Z)(this.__update,e):this.__update,n.addEventListener("resize",u,c)},this.setDebounce(g),0!==Object.keys(h).length?(this.setSizes(h),h=void 0):this.__update(),!0===d&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===o.u.value?t.push(p):p()}});var u=i(46337),h=i(25310),g=i(33558);function p(e,t,i=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(i instanceof Element))throw new TypeError("Expected a DOM element");i.style.setProperty(`--q-${e}`,t)}var f=i(61705);function m(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function v({is:e,has:t,within:i},n){const o=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=m(e);void 0!==t&&o.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;o.push(t),o.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||o.push("q-ios-padding")}else!0===e.electron?o.push("electron"):!0===e.bex&&o.push("bex");return!0===i.iframe&&o.push("within-iframe"),o}function _(){const{is:e}=o.client,t=document.body.className,i=new Set(t.replace(/ {2}/g," ").split(" "));if(!0!==e.nativeMobile&&!0!==e.electron&&!0!==e.bex)if(!0===e.desktop)i.delete("mobile"),i.delete("platform-ios"),i.delete("platform-android"),i.add("desktop");else if(!0===e.mobile){i.delete("desktop"),i.add("mobile"),i.delete("platform-ios"),i.delete("platform-android");const t=m(e);void 0!==t&&i.add(`platform-${t}`)}!0===o.client.has.touch&&(i.delete("no-touch"),i.add("touch")),!0===o.client.within.iframe&&i.add("within-iframe");const n=Array.from(i).join(" ");t!==n&&(document.body.className=n)}function b(e){for(const t in e)p(t,e[t])}const y={install(e){if(!0!==this.__installed){if(!0===o.u.value)_();else{const{$q:t}=e;void 0!==t.config.brand&&b(t.config.brand);const i=v(o.client,t.config);document.body.classList.add.apply(document.body.classList,i)}!0===o.client.is.ios&&document.body.addEventListener("touchstart",s.ZT),window.addEventListener("keydown",f.ZK,!0)}}};var w=i(72289),C=i(95439),S=i(27495),x=i(4680);const k=[o.Z,y,u.Z,d,h.Z,g.Z,w.Z];function L(e,t){const i=(0,n.ri)(e);i.config.globalProperties=t.config.globalProperties;const{reload:o,...r}=t._context;return Object.assign(i._context,r),i}function E(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function N(e,t,i){e.config.globalProperties.$q=i.$q,e.provide(C.Ng,i.$q),E(i,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,x.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,x.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&E(i,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===o.u.value&&(i.$q.onSSRHydrated=()=>{i.onSSRHydrated.forEach((e=>{e()})),i.$q.onSSRHydrated=()=>{}})}const D=function(e,t={}){const i={version:"2.15.2"};!1===S.Uf?(void 0!==t.config&&Object.assign(S.w6,t.config),i.config={...S.w6},(0,S.tP)()):i.config=t.config||{},N(e,t,{parentApp:e,$q:i,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})}},33558:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(74124);const o={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,i)=>e+"-"+t+" of "+i,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function r(){const e=!0===Array.isArray(navigator.languages)&&0!==navigator.languages.length?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const s=(0,n.Z)({__langPack:{}},{getLocale:r,set(e=o,t){const i={...e,rtl:!0===e.rtl,getLocale:r};if(i.set=s.set,void 0===s.__langConfig||!0!==s.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===i.rtl?"rtl":"ltr"),e.setAttribute("lang",i.isoName)}Object.assign(s.__langPack,i),s.props=i,s.isoName=i.isoName,s.nativeName=i.nativeName},install({$q:e,lang:t,ssrContext:i}){e.lang=s.__langPack,s.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||o)}}),a=s},46337:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(74124);const o=(0,n.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){o.mode=e,"auto"===e?(void 0===o.__media&&(o.__media=window.matchMedia("(prefers-color-scheme: dark)"),o.__updateMedia=()=>{o.set("auto")},o.__media.addListener(o.__updateMedia)),e=o.__media.matches):void 0!==o.__media&&(o.__media.removeListener(o.__updateMedia),o.__media=void 0),o.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){o.set(!1===o.isActive)},install({$q:e,ssrContext:t}){const{dark:i}=e.config;e.dark=this,!0!==this.__installed&&this.set(void 0!==i&&i)}}),r=o},93809:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});i(72879);var n=i(59835),o=i(60499),r=i(32074),s=i(24455),a=i(44458),l=i(63190),c=i(11821),d=i(50926),u=i(66611),h=i(8830),g=i(63940),p=i(65987),f=i(68234),m=i(61705),v=i(4680);const _=(0,p.L)({name:"DialogPluginComponent",props:{...f.S,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:i}=(0,n.FN)(),{$q:p}=i,_=(0,f.Z)(e,p),b=(0,o.iH)(null),y=(0,o.iH)(void 0!==e.prompt?e.prompt.model:void 0!==e.options?e.options.model:void 0),w=(0,n.Fl)((()=>"q-dialog-plugin"+(!0===_.value?" q-dialog-plugin--dark q-dark":"")+(!1!==e.progress?" q-dialog-plugin--progress":""))),C=(0,n.Fl)((()=>e.color||(!0===_.value?"amber":"primary"))),S=(0,n.Fl)((()=>!1===e.progress?null:!0===(0,v.Kn)(e.progress)?{component:e.progress.spinner||g.Z,props:{color:e.progress.color||C.value}}:{component:g.Z,props:{color:C.value}})),x=(0,n.Fl)((()=>void 0!==e.prompt||void 0!==e.options)),k=(0,n.Fl)((()=>{if(!0!==x.value)return{};const{model:t,isValid:i,items:n,...o}=void 0!==e.prompt?e.prompt:e.options;return o})),L=(0,n.Fl)((()=>!0===(0,v.Kn)(e.ok)||!0===e.ok?p.lang.label.ok:e.ok)),E=(0,n.Fl)((()=>!0===(0,v.Kn)(e.cancel)||!0===e.cancel?p.lang.label.cancel:e.cancel)),N=(0,n.Fl)((()=>void 0!==e.prompt?void 0!==e.prompt.isValid&&!0!==e.prompt.isValid(y.value):void 0!==e.options&&(void 0!==e.options.isValid&&!0!==e.options.isValid(y.value)))),D=(0,n.Fl)((()=>({color:C.value,label:L.value,ripple:!1,disable:N.value,...!0===(0,v.Kn)(e.ok)?e.ok:{flat:!0},"data-autofocus":"ok"===e.focus&&!0!==x.value||void 0,onClick:A}))),T=(0,n.Fl)((()=>({color:C.value,label:E.value,ripple:!1,...!0===(0,v.Kn)(e.cancel)?e.cancel:{flat:!0},"data-autofocus":"cancel"===e.focus&&!0!==x.value||void 0,onClick:O})));function I(){b.value.show()}function R(){b.value.hide()}function A(){t("ok",(0,o.IU)(y.value)),R()}function O(){R()}function P(){t("hide")}function M(e){y.value=e}function F(t){!0!==N.value&&"textarea"!==e.prompt.type&&!0===(0,m.So)(t,13)&&A()}function B(t,i){return!0===e.html?(0,n.h)(l.Z,{class:t,innerHTML:i}):(0,n.h)(l.Z,{class:t},(()=>i))}function H(){return[(0,n.h)(u.Z,{color:C.value,dense:!0,autofocus:!0,dark:_.value,...k.value,modelValue:y.value,"onUpdate:modelValue":M,onKeyup:F})]}function W(){return[(0,n.h)(h.Z,{color:C.value,options:e.options.items,dark:_.value,...k.value,modelValue:y.value,"onUpdate:modelValue":M})]}function V(){const t=[];return e.cancel&&t.push((0,n.h)(s.Z,T.value)),e.ok&&t.push((0,n.h)(s.Z,D.value)),(0,n.h)(c.Z,{class:!0===e.stackButtons?"items-end":"",vertical:e.stackButtons,align:"right"},(()=>t))}function j(){const t=[];return e.title&&t.push(B("q-dialog__title",e.title)),!1!==e.progress&&t.push((0,n.h)(l.Z,{class:"q-dialog__progress"},(()=>(0,n.h)(S.value.component,S.value.props)))),e.message&&t.push(B("q-dialog__message",e.message)),void 0!==e.prompt?t.push((0,n.h)(l.Z,{class:"scroll q-dialog-plugin__form"},H)):void 0!==e.options&&t.push((0,n.h)(d.Z,{dark:_.value}),(0,n.h)(l.Z,{class:"scroll q-dialog-plugin__form"},W),(0,n.h)(d.Z,{dark:_.value})),(e.ok||e.cancel)&&t.push(V()),t}function z(){return[(0,n.h)(a.Z,{class:[w.value,e.cardClass],style:e.cardStyle,dark:_.value},j)]}return(0,n.YP)((()=>e.prompt&&e.prompt.model),M),(0,n.YP)((()=>e.options&&e.options.model),M),Object.assign(i,{show:I,hide:R}),()=>(0,n.h)(r.Z,{ref:b,onHide:P},z)}});var b=i(8264),y=i(56669);function w(e,t){for(const i in t)"spinner"!==i&&Object(t[i])===t[i]?(e[i]=Object(e[i])!==e[i]?{}:{...e[i]},w(e[i],t[i])):e[i]=t[i]}function C(e,t,i){return r=>{let s,a;const l=!0===t&&void 0!==r.component;if(!0===l){const{component:e,componentProps:t}=r;s="string"===typeof e?i.component(e):e,a=t||{}}else{const{class:t,style:i,...n}=r;s=e,a=n,void 0!==t&&(n.cardClass=t),void 0!==i&&(n.cardStyle=i)}let c,d=!1;const u=(0,o.iH)(null),h=(0,y.q_)(!1,"dialog"),g=e=>{if(null!==u.value&&void 0!==u.value[e])return void u.value[e]();const t=c.$.subTree;if(t&&t.component){if(t.component.proxy&&t.component.proxy[e])return void t.component.proxy[e]();if(t.component.subTree&&t.component.subTree.component&&t.component.subTree.component.proxy&&t.component.subTree.component.proxy[e])return void t.component.subTree.component.proxy[e]()}console.error("[Quasar] Incorrectly defined Dialog component")},p=[],f=[],m={onOk(e){return p.push(e),m},onCancel(e){return f.push(e),m},onDismiss(e){return p.push(e),f.push(e),m},hide(){return g("hide"),m},update(e){if(null!==c){if(!0===l)Object.assign(a,e);else{const{class:t,style:i,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==i&&(n.cardStyle=i),w(a,n)}c.$forceUpdate()}return m}},v=e=>{d=!0,p.forEach((t=>{t(e)}))},_=()=>{C.unmount(h),(0,y.pB)(h),C=null,c=null,!0!==d&&f.forEach((e=>{e()}))};let C=(0,b.$)({name:"QGlobalDialog",setup:()=>()=>(0,n.h)(s,{...a,ref:u,onOk:v,onHide:_,onVnodeMounted(...e){"function"===typeof a.onVnodeMounted&&a.onVnodeMounted(...e),(0,n.Y3)((()=>g("show")))}})},i);return c=C.mount(h),m}}const S={install({$q:e,parentApp:t}){e.dialog=C(_,!0,t),!0!==this.__installed&&(this.create=e.dialog)}}},15162:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});i(72879);var n=i(59835),o=i(61957),r=i(63940),s=i(8264),a=i(74124),l=i(56669),c=i(5984),d=i(4680);let u,h,g=0,p=null,f={},m={};const v={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:r.Z,customClass:""},_={...v};function b(e){if(e&&void 0!==e.group&&void 0!==m[e.group])return Object.assign(m[e.group],e);const t=!0===(0,d.Kn)(e)&&!0===e.ignoreDefaults?{...v,...e}:{..._,...e};return m[t.group]=t,t}const y=(0,a.Z)({isActive:!1},{show(e){f=b(e);const{group:t}=f;return y.isActive=!0,void 0!==u?(f.uid=g,h.$forceUpdate()):(f.uid=++g,null!==p&&clearTimeout(p),p=setTimeout((()=>{p=null;const e=(0,l.q_)("q-loading");u=(0,s.$)({name:"QLoading",setup(){function t(){!0!==y.isActive&&void 0!==u&&((0,c.Z)(!1),u.unmount(e),(0,l.pB)(e),u=void 0,h=void 0)}function i(){if(!0!==y.isActive)return null;const e=[(0,n.h)(f.spinner,{class:"q-loading__spinner",color:f.spinnerColor,size:f.spinnerSize})];return f.message&&e.push((0,n.h)("div",{class:"q-loading__message"+(f.messageColor?` text-${f.messageColor}`:""),[!0===f.html?"innerHTML":"textContent"]:f.message})),(0,n.h)("div",{class:"q-loading fullscreen flex flex-center z-max "+f.customClass.trim(),key:f.uid},[(0,n.h)("div",{class:"q-loading__backdrop"+(f.backgroundColor?` bg-${f.backgroundColor}`:"")}),(0,n.h)("div",{class:"q-loading__box column items-center "+f.boxClass},e)])}return(0,n.bv)((()=>{(0,c.Z)(!0)})),()=>(0,n.h)(o.uT,{name:"q-transition--fade",appear:!0,onAfterLeave:t},i)}},y.__parentApp),h=u.mount(e)}),f.delay)),e=>{void 0!==e&&Object(e)===e?y.show({...e,group:t}):y.hide(t)}},hide(e){if(!0===y.isActive){if(void 0===e)m={};else{if(void 0===m[e])return;{delete m[e];const t=Object.keys(m);if(0!==t.length){const e=t[t.length-1];return void y.show({group:e})}}}null!==p&&(clearTimeout(p),p=null),y.isActive=!1}},setDefaults(e){!0===(0,d.Kn)(e)&&Object.assign(_,e)},install({$q:e,parentApp:t}){e.loading=this,y.__parentApp=t,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}}),w=y},92180:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(39180),o=(i(72879),i(91384)),r=i(4680);function s(e){return!0===(0,r.J_)(e)?"__q_date|"+e.toUTCString():!0===(0,r.Gf)(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function a(e){const t=e.length;if(t<9)return e;const i=e.substring(0,8),n=e.substring(9);switch(i){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function l(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:o.ZT,remove:o.ZT,clear:o.ZT,isEmpty:()=>!0}}function c(e){const t=window[e+"Storage"],i=e=>{const i=t.getItem(e);return i?a(i):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:i,getIndex:e=>ee{let e;const n={},o=t.length;for(let r=0;r{const e=[],i=t.length;for(let n=0;n{t.setItem(e,s(i))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const d=!1===n.client.has.webStorage?l():c("local"),u={install({$q:e}){e.localStorage=d}};Object.assign(u,d);const h=u},31012:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});i(72879);var n=i(60499),o=i(59835),r=i(61957),s=i(61357),a=i(22857),l=i(24455),c=i(63940),d=i(8264),u=i(65987),h=(i(91384),i(56669)),g=i(4680);let p=0;const f={},m={},v={},_={},b=/^\s*$/,y=[],w=[void 0,null,!0,!1,""],C=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],S=["top-left","top-right","bottom-left","bottom-right"],x={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function k(e,t,i){if(!e)return N("parameter required");let o;const r={textColor:"white"};if(!0!==e.ignoreDefaults&&Object.assign(r,f),!1===(0,g.Kn)(e)&&(r.type&&Object.assign(r,x[r.type]),e={message:e}),Object.assign(r,x[e.type||r.type],e),"function"===typeof r.icon&&(r.icon=r.icon(t)),r.spinner?(!0===r.spinner&&(r.spinner=c.Z),r.spinner=(0,n.Xl)(r.spinner)):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar),hasText:E(r.message)||E(r.caption)},r.position){if(!1===C.includes(r.position))return N("wrong position",e)}else r.position="bottom";if(!0===w.includes(r.timeout))r.timeout=5e3;else{const t=Number(r.timeout);if(isNaN(t)||t<0)return N("wrong timeout",e);r.timeout=Number.isFinite(t)?t:0}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?` ${r.progressClass}`:""),r.meta.progressStyle={animationDuration:`${r.timeout+1e3}ms`});const s=(!0===Array.isArray(e.actions)?e.actions:[]).concat(!0!==e.ignoreDefaults&&!0===Array.isArray(f.actions)?f.actions:[]).concat(void 0!==x[e.type]&&!0===Array.isArray(x[e.type].actions)?x[e.type].actions:[]),{closeBtn:a}=r;if(a&&s.push({label:"string"===typeof a?a:t.lang.label.close}),r.actions=s.map((({handler:e,noDismiss:t,...i})=>({flat:!0,...i,onClick:"function"===typeof e?()=>{e(),!0!==t&&l()}:()=>{l()}}))),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{class:"q-notification row items-stretch q-notification--"+(!0===r.multiLine?"multi-line":"standard")+(void 0!==r.color?` bg-${r.color}`:"")+(void 0!==r.textColor?` text-${r.textColor}`:"")+(void 0!==r.classes?` ${r.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),leftClass:!0===r.meta.hasText?"additional":"single",attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map((e=>`${e.label}*${e.icon}`))).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){i.notif.meta.timer&&(clearTimeout(i.notif.meta.timer),i.notif.meta.timer=void 0),r.meta.uid=i.notif.meta.uid;const e=v[r.position].value.indexOf(i.notif);v[r.position].value[e]=r}else{const t=m[r.meta.group];if(void 0===t){if(r.meta.uid=p++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))v[r.position].value.splice(Math.floor(v[r.position].value.length/2),0,r);else{const e=-1!==r.position.indexOf("top")?"unshift":"push";v[r.position].value[e](r)}void 0!==r.group&&(m[r.meta.group]=r)}else{if(t.meta.timer&&(clearTimeout(t.meta.timer),t.meta.timer=void 0),void 0!==r.badgePosition){if(!1===S.includes(r.badgePosition))return N("wrong badgePosition",e)}else r.badgePosition="top-"+(-1!==r.position.indexOf("left")?"right":"left");r.meta.uid=t.meta.uid,r.meta.badge=t.meta.badge+1,r.meta.badgeClass=`q-notification__badge q-notification__badge--${r.badgePosition}`+(void 0!==r.badgeColor?` bg-${r.badgeColor}`:"")+(void 0!==r.badgeTextColor?` text-${r.badgeTextColor}`:"")+(r.badgeClass?` ${r.badgeClass}`:"");const i=v[r.position].value.indexOf(t);v[r.position].value[i]=m[r.meta.group]=r}}const l=()=>{L(r),o=void 0};return r.timeout>0&&(r.meta.timer=setTimeout((()=>{r.meta.timer=void 0,l()}),r.timeout+1e3)),void 0!==r.group?t=>{void 0!==t?N("trying to update a grouped one which is forbidden",e):l()}:(o={dismiss:l,config:e,notif:r},void 0===i?e=>{if(void 0!==o)if(void 0===e)o.dismiss();else{const i=Object.assign({},o.config,e,{group:!1,position:r.position});k(i,t,o)}}:void Object.assign(i,o))}function L(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=v[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete m[e.meta.group];const i=y[""+e.meta.uid];if(i){const{width:e,height:t}=getComputedStyle(i);i.style.left=`${i.offsetLeft}px`,i.style.width=e,i.style.height=t}v[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}function E(e){return void 0!==e&&null!==e&&!0!==b.test(e)}function N(e,t){return console.error(`Notify: ${e}`,t),!1}function D(){return(0,u.L)({name:"QNotifications",devtools:{hide:!0},setup(){return()=>(0,o.h)("div",{class:"q-notifications"},C.map((e=>(0,o.h)(r.W3,{key:e,class:_[e],tag:"div",name:`q-notification--${e}`},(()=>v[e].value.map((e=>{const t=e.meta,i=[];if(!0===t.hasMedia&&(!1!==e.spinner?i.push((0,o.h)(e.spinner,{class:"q-notification__spinner q-notification__spinner--"+t.leftClass,color:e.spinnerColor,size:e.spinnerSize})):e.icon?i.push((0,o.h)(a.Z,{class:"q-notification__icon q-notification__icon--"+t.leftClass,name:e.icon,color:e.iconColor,size:e.iconSize,role:"img"})):e.avatar&&i.push((0,o.h)(s.Z,{class:"q-notification__avatar q-notification__avatar--"+t.leftClass},(()=>(0,o.h)("img",{src:e.avatar,"aria-hidden":"true"}))))),!0===t.hasText){let t;const n={class:"q-notification__message col"};if(!0===e.html)n.innerHTML=e.caption?`${e.message}
${e.caption}
`:e.message;else{const i=[e.message];t=e.caption?[(0,o.h)("div",i),(0,o.h)("div",{class:"q-notification__caption"},[e.caption])]:i}i.push((0,o.h)("div",n,t))}const n=[(0,o.h)("div",{class:t.contentClass},i)];return!0===e.progress&&n.push((0,o.h)("div",{key:`${t.uid}|p|${t.badge}`,class:t.progressClass,style:t.progressStyle})),void 0!==e.actions&&n.push((0,o.h)("div",{class:t.actionsClass},e.actions.map((e=>(0,o.h)(l.Z,e))))),t.badge>1&&n.push((0,o.h)("div",{key:`${t.uid}|${t.badge}`,class:e.meta.badgeClass,style:e.badgeStyle},[t.badge])),(0,o.h)("div",{ref:e=>{y[""+t.uid]=e},key:t.uid,class:t.class,...t.attrs},[(0,o.h)("div",{class:t.wrapperClass},n)])})))))))}})}const T={setDefaults(e){!0===(0,g.Kn)(e)&&Object.assign(f,e)},registerType(e,t){!0===(0,g.Kn)(t)&&(x[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=t=>k(t,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,void 0!==e.config.notify&&this.setDefaults(e.config.notify),!0!==this.__installed){C.forEach((e=>{v[e]=(0,n.iH)([]);const t=!0===["left","center","right"].includes(e)?"center":-1!==e.indexOf("top")?"top":"bottom",i=-1!==e.indexOf("left")?"start":-1!==e.indexOf("right")?"end":"center",o=["left","right"].includes(e)?`items-${"left"===e?"start":"end"} justify-center`:"center"===e?"flex-center":`items-${i}`;_[e]=`q-notifications__list q-notifications__list--${t} fixed column no-wrap ${o}`}));const e=(0,h.q_)("q-notify");(0,d.$)(D(),t).mount(e)}}}},39180:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f,client:()=>g,u:()=>r});i(72879);var n=i(60499),o=i(43251);const r=(0,n.iH)(!1);let s;function a(e,t){const i=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:t[0]||""}}function l(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function d(e){const t=e.toLowerCase(),i=l(t),n=a(t,i),o={};n.browser&&(o[n.browser]=!0,o.version=n.version,o.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(o[n.platform]=!0);const d=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(!0===d||-1!==t.indexOf("mobile")?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,n.browser="edge"):o.crios?(o.chrome=!0,n.browser="chrome"):o.fxios?(o.firefox=!0,n.browser="firefox"):(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(n.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||!0===o.mobile&&!0!==o.ios&&!0!==d)&&(o.webkit=!0),o.opr&&(n.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(n.browser="blackberry",o.blackberry=!0):o.playbook?(n.browser="playbook",o.playbook=!0):o.android?(n.browser="android",o.android=!0):o.kindle?(n.browser="kindle",o.kindle=!0):o.silk&&(n.browser="silk",o.silk=!0)),o.name=n.browser,o.platform=n.platform,-1!==t.indexOf("electron"))o.electron=!0;else if(-1!==document.location.href.indexOf("-extension://"))o.bex=!0;else{if(void 0!==window.Capacitor?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),!0===r.value&&(s={is:{...o}}),!0===c&&!0===o.mac&&(!0===o.desktop&&!0===o.safari||!0===o.nativeMobile&&!0!==o.android&&!0!==o.ios&&!0!==o.ipad)){delete o.mac,delete o.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:e,[e]:!0})}!0!==o.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const u=navigator.userAgent||navigator.vendor||window.opera,h={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:u,is:d(u),has:{touch:c},within:{iframe:window.self!==window.top}},p={install(e){const{$q:t}=e;!0===r.value?(e.onSSRHydrated.push((()=>{Object.assign(t.platform,g),r.value=!1})),t.platform=(0,n.qj)(this)):t.platform=this}};{let e;(0,o.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),Object.assign(p,g),!0===r.value&&(Object.assign(p,s,h),s=null)}const f=p},60899:(e,t,i)=>{"use strict";function n(e,t=250,i){let n=null;function o(){const o=arguments,r=()=>{n=null,!0!==i&&e.apply(this,o)};null!==n?clearTimeout(n):!0===i&&e.apply(this,o),n=setTimeout(r,t)}return o.cancel=()=>{null!==n&&clearTimeout(n)},o}i.d(t,{Z:()=>n})},70223:(e,t,i)=>{"use strict";i.d(t,{iv:()=>o,mY:()=>s,sb:()=>r});var n=i(60499);function o(e,t){const i=e.style;for(const n in t)i[n]=t[n]}function r(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(i){return}const t=(0,n.SU)(e);return t?t.$el||t:void 0}function s(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let i=e.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(t))return!0;return!1}},91384:(e,t,i)=>{"use strict";i.d(t,{AZ:()=>a,FK:()=>s,Jf:()=>u,M0:()=>h,NS:()=>d,X$:()=>c,ZT:()=>o,du:()=>r,listenOpts:()=>n,sT:()=>l,ul:()=>g});i(72879);const n={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(n,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(p){}function o(){}function r(e){return 0===e.button}function s(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function a(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let i=e.target;while(i){if(t.push(i),"HTML"===i.tagName)return t.push(document),t.push(window),t;i=i.parentElement}}function l(e){e.stopPropagation()}function c(e){!1!==e.cancelable&&e.preventDefault()}function d(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function u(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const i=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",c,n.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",c,n.notPassiveCapture)};e.querySelectorAll("a, img").forEach(i)}function h(e,t,i){const o=`__q_${t}_evt`;e[o]=void 0!==e[o]?e[o].concat(i):i,i.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],n[t[3]])}))}function g(e,t){const i=`__q_${t}_evt`;void 0!==e[i]&&(e[i].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],n[t[3]])})),e[i]=void 0)}},30321:(e,t,i)=>{"use strict";i.d(t,{Uz:()=>o,vX:()=>n});function n(e,t,i){return i<=t?t:Math.min(i,Math.max(t,e))}function o(e,t,i){if(i<=t)return t;const n=i-t+1;let o=t+(e-t)%n;return o{"use strict";i.d(t,{Gf:()=>s,J_:()=>r,Kn:()=>o,hj:()=>a,xb:()=>n});i(96641);function n(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let i,o;if(e.constructor===Array){if(i=e.length,i!==t.length)return!1;for(o=i;0!==o--;)if(!0!==n(e[o],t[o]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();o=i.next();while(!0!==o.done){if(!0!==t.has(o.value[0]))return!1;o=i.next()}i=e.entries(),o=i.next();while(!0!==o.done){if(!0!==n(o.value[1],t.get(o.value[0])))return!1;o=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();o=i.next();while(!0!==o.done){if(!0!==t.has(o.value[0]))return!1;o=i.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(i=e.length,i!==t.length)return!1;for(o=i;0!==o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e).filter((t=>void 0!==e[t]));if(i=r.length,i!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(o=i;0!==o--;){const i=r[o];if(!0!==n(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function o(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function r(e){return"[object Date]"===Object.prototype.toString.call(e)}function s(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function a(e){return"number"===typeof e&&isFinite(e)}},5984:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(91384),o=i(43701),r=i(39180);let s,a,l,c,d,u,h=0,g=!1,p=null;function f(e){m(e)&&(0,n.NS)(e)}function m(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,n.AZ)(e),i=e.shiftKey&&!e.deltaX,r=!i&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),s=i||r?e.deltaY:e.deltaX;for(let n=0;n0&&e.scrollTop+e.clientHeight===e.scrollHeight:s<0&&0===e.scrollLeft||s>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function _(e){!0!==g&&(g=!0,requestAnimationFrame((()=>{g=!1;const{height:t}=e.target,{clientHeight:i,scrollTop:n}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=i-t,document.scrollingElement.scrollTop=n),n>l&&(document.scrollingElement.scrollTop-=Math.ceil((n-l)/8))})))}function b(e){const t=document.body,i=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);s=(0,o.OI)(window),a=(0,o.u3)(window),c=t.style.left,d=t.style.top,u=window.location.href,t.style.left=`-${s}px`,t.style.top=`-${a}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===r.client.is.ios&&(!0===i?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",_,n.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",_,n.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,n.listenOpts.passiveCapture))}!0===r.client.is.desktop&&!0===r.client.is.mac&&window[`${e}EventListener`]("wheel",f,n.listenOpts.notPassive),"remove"===e&&(!0===r.client.is.ios&&(!0===i?(window.visualViewport.removeEventListener("resize",_,n.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",_,n.listenOpts.passiveCapture)):window.removeEventListener("scroll",v,n.listenOpts.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=c,t.style.top=d,window.location.href===u&&window.scrollTo(s,a),l=void 0)}function y(e){let t="add";if(!0===e){if(h++,null!==p)return clearTimeout(p),void(p=null);if(h>1)return}else{if(0===h)return;if(h--,h>0)return;if(t="remove",!0===r.client.is.ios&&!0===r.client.is.nativeMobile)return null!==p&&clearTimeout(p),void(p=setTimeout((()=>{b(t),p=null}),100))}b(t)}},65987:(e,t,i)=>{"use strict";i.d(t,{L:()=>r,f:()=>s});var n=i(60499),o=i(59835);const r=e=>(0,n.Xl)((0,o.aZ)(e)),s=e=>(0,n.Xl)(e)},74124:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(60499),o=i(43251);const r=(e,t)=>{const i=(0,n.qj)(e);for(const n in e)(0,o.g)(t,n,(()=>i[n]),(e=>{i[n]=e}));return t}},16532:(e,t,i)=>{"use strict";i.d(t,{c:()=>u,k:()=>h});i(72879);var n=i(39180),o=i(61705);const r=[];let s;function a(e){s=27===e.keyCode}function l(){!0===s&&(s=!1)}function c(e){!0===s&&(s=!1,!0===(0,o.So)(e,27)&&r[r.length-1](e))}function d(e){window[e]("keydown",a),window[e]("blur",l),window[e]("keyup",c),s=!1}function u(e){!0===n.client.is.desktop&&(r.push(e),1===r.length&&d("addEventListener"))}function h(e){const t=r.indexOf(e);-1!==t&&(r.splice(t,1),0===r.length&&d("removeEventListener"))}},17026:(e,t,i)=>{"use strict";i.d(t,{YX:()=>s,fP:()=>c,jd:()=>l,xF:()=>a});i(72879);let n=[],o=[];function r(e){o=o.filter((t=>t!==e))}function s(e){r(e),o.push(e)}function a(e){r(e),0===o.length&&0!==n.length&&(n[n.length-1](),n=[])}function l(e){0===o.length?e():n.push(e)}function c(e){n=n.filter((t=>t!==e))}},4173:(e,t,i)=>{"use strict";i.d(t,{H:()=>a,i:()=>s});i(72879);var n=i(39180);const o=[];function r(e){o[o.length-1](e)}function s(e){!0===n.client.is.desktop&&(o.push(e),1===o.length&&document.body.addEventListener("focusin",r))}function a(e){const t=o.indexOf(e);-1!==t&&(o.splice(t,1),0===o.length&&document.body.removeEventListener("focusin",r))}},27495:(e,t,i)=>{"use strict";i.d(t,{Uf:()=>o,tP:()=>r,w6:()=>n});const n={};let o=!1;function r(){o=!0}},56669:(e,t,i)=>{"use strict";i.d(t,{pB:()=>c,q_:()=>l});i(72879);var n=i(27495);const o=[],r=[];let s=1,a=document.body;function l(e,t){const i=document.createElement("div");if(i.id=void 0!==t?`q-portal--${t}--${s++}`:e,void 0!==n.w6.globalNodes){const e=n.w6.globalNodes.class;void 0!==e&&(i.className=e)}return a.appendChild(i),o.push(i),r.push(t),i}function c(e){const t=o.indexOf(e);o.splice(t,1),r.splice(t,1),e.remove()}},43251:(e,t,i)=>{"use strict";function n(e,t,i,n){return Object.defineProperty(e,t,{get:i,set:n,enumerable:!0}),e}function o(e,t){for(const i in t)n(e,i,t[i]);return e}i.d(t,{K:()=>o,g:()=>n})},61705:(e,t,i)=>{"use strict";i.d(t,{So:()=>s,Wm:()=>r,ZK:()=>o});let n=!1;function o(e){n=!0===e.isComposing}function r(e){return!0===n||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function s(e,t){return!0!==r(e)&&[].concat(t).includes(e.keyCode)}},89480:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n={xs:30,sm:35,md:40,lg:50,xl:60}},2909:(e,t,i)=>{"use strict";i.d(t,{AH:()=>s,Q$:()=>o,S7:()=>a,je:()=>r});var n=i(52046);const o=[];function r(e){return o.find((t=>null!==t.contentEl&&t.contentEl.contains(e)))}function s(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,n.O2)(e)}else if(!0===e.__qPortal){const i=(0,n.O2)(e);return void 0!==i&&"QPopupProxy"===i.$options.name?(e.hide(t),i):e}e=(0,n.O2)(e)}while(void 0!==e&&null!==e)}function a(e,t,i){while(0!==i&&void 0!==e&&null!==e){if(!0===e.__qPortal){if(i--,"QMenu"===e.$options.name){e=s(e,t);continue}e.hide(t)}e=(0,n.O2)(e)}}},22026:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>r,Jl:()=>l,KR:()=>o,pf:()=>a,vs:()=>s});var n=i(59835);function o(e,t){return void 0!==e&&e()||t}function r(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function s(e,t){return void 0!==e?t.concat(e()):t}function a(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,i,o,r,s){t.key=o+r;const a=(0,n.h)(e,t,i);return!0===r?(0,n.wy)(a,s()):a}},78383:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});let n=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,n=e.scrollLeft>=0,e.remove()}},2589:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(39180);function o(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==n.Z.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},95439:(e,t,i)=>{"use strict";i.d(t,{Mw:()=>r,Nd:()=>a,Ng:()=>n,YE:()=>o,qO:()=>l,vh:()=>s});const n="_q_",o="_q_l_",r="_q_pc_",s="_q_fo_",a="_q_tabs_",l=()=>{}},99367:(e,t,i)=>{"use strict";i.d(t,{R:()=>r,n:()=>a});const n={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},o=Object.keys(n);function r(e){const t={};for(const i of o)!0===e[i]&&(t[i]=!0);return 0===Object.keys(t).length?n:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}n.all=!0;const s=["INPUT","TEXTAREA"];function a(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&!1===s.includes(e.target.nodeName.toUpperCase())&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}},52046:(e,t,i)=>{"use strict";function n(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;while(Object(t)===t){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function o(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{o(e,t)})):e.add(t)}function r(e){const t=new Set;return e.forEach((e=>{o(t,e)})),Array.from(t)}function s(e){return void 0!==e.appContext.config.globalProperties.$router}function a(e){return!0===e.isUnmounted||!0===e.isDeactivated}i.d(t,{$D:()=>a,O2:()=>n,Pf:()=>r,Rb:()=>s})},43701:(e,t,i)=>{"use strict";i.d(t,{OI:()=>a,QA:()=>m,b0:()=>r,f3:()=>h,ik:()=>g,np:()=>f,u3:()=>s});var n=i(70223);const o=[null,document,document.body,document.scrollingElement,document.documentElement];function r(e,t){let i=(0,n.sb)(t);if(void 0===i){if(void 0===e||null===e)return window;i=e.closest(".scroll,.scroll-y,.overflow-auto")}return o.includes(i)?window:i}function s(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function a(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function l(e,t,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],o=s(e);i<=0?o!==t&&d(e,t):requestAnimationFrame((r=>{const s=r-n,a=o+(t-o)/Math.max(s,i)*s;d(e,a),a!==t&&l(e,t,i-s,r)}))}function c(e,t,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],o=a(e);i<=0?o!==t&&u(e,t):requestAnimationFrame((r=>{const s=r-n,a=o+(t-o)/Math.max(s,i)*s;u(e,a),a!==t&&c(e,t,i-s,r)}))}function d(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function u(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function h(e,t,i){i?l(e,t,i):d(e,t)}function g(e,t,i){i?c(e,t,i):u(e,t)}let p;function f(){if(void 0!==p)return p;const e=document.createElement("p"),t=document.createElement("div");(0,n.iv)(e,{width:"100%",height:"200px"}),(0,n.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return i===o&&(o=t.clientWidth),t.remove(),p=i-o,p}function m(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},50796:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});i(313),i(97862),i(98832),i(98994),i(28516),i(24287),i(72879);let n,o=0;const r=new Array(256);for(let c=0;c<256;c++)r[c]=(c+256).toString(16).substring(1);const s=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const i=new Uint8Array(t);return e.getRandomValues(i),i}}return e=>{const t=[];for(let i=e;i>0;i--)t.push(Math.floor(256*Math.random()));return t}})(),a=4096;function l(){(void 0===n||o+16>a)&&(o=0,n=s(a));const e=Array.prototype.slice.call(n,o,o+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,r[e[0]]+r[e[1]]+r[e[2]]+r[e[3]]+"-"+r[e[4]]+r[e[5]]+"-"+r[e[6]]+r[e[7]]+"-"+r[e[8]]+r[e[9]]+"-"+r[e[10]]+r[e[11]]+r[e[12]]+r[e[13]]+r[e[14]]+r[e[15]]}},71947:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(8264),o=i(33558),r=i(72289);const s={version:"2.15.2",install:n.Z,lang:o.Z,iconSet:r.Z}},42049:function(e,t,i){var n,o,r;(function(i,s){o=[],n=s,r="function"===typeof n?n.apply(t,o):n,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i.g&&i.g.global===i.g?i.g:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,i){var a=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):o(l.href)?n(e,t,i):r(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,s){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),i);else if(o(e))n(e,i,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){r(a)}))}}:function(e,t,i,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,i);var r="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||a)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},d.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,h=u.createObjectURL(e);o?o.location=h:location.href=h,o=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});s.saveAs=l.saveAs=l,e.exports=l}))},83699:e=>{"use strict";var t=String.prototype.replace,i=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},50963:(e,t,i)=>{"use strict";var n=i(78519),o=i(92597),r=i(83699);e.exports={formats:r,parse:o,stringify:n}},92597:(e,t,i)=>{"use strict";var n=i(67284),o=Object.prototype.hasOwnProperty,r=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",u=function(e,t){var i,u={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,g=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,g),f=-1,m=t.charset;if(t.charsetSentinel)for(i=0;i-1&&(_=r(_)?[_]:_),o.call(u,v)?u[v]=n.combine(u[v],_):u[v]=_}return u},h=function(e,t,i,n){for(var o=n?t:l(t,i),r=e.length-1;r>=0;--r){var s,a=e[r];if("[]"===a&&i.parseArrays)s=[].concat(o);else{s=i.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,d=parseInt(c,10);i.parseArrays||""!==c?!isNaN(d)&&a!==c&&String(d)===c&&d>=0&&i.parseArrays&&d<=i.arrayLimit?(s=[],s[d]=o):"__proto__"!==c&&(s[c]=o):s={0:o}}o=s}return o},g=function(e,t,i,n){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&s.exec(r),c=l?r.slice(0,l.index):r,d=[];if(c){if(!i.plainObjects&&o.call(Object.prototype,c)&&!i.allowPrototypes)return;d.push(c)}var u=0;while(i.depth>0&&null!==(l=a.exec(r))&&u{"use strict";var n=i(67284),o=i(83699),r=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,l=String.prototype.split,c=Array.prototype.push,d=function(e,t){c.apply(e,a(t)?t:[t])},u=Date.prototype.toISOString,h=o["default"],g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},f=function e(t,i,o,r,s,c,u,h,f,m,v,_,b,y){var w=t;if("function"===typeof u?w=u(i,w):w instanceof Date?w=m(w):"comma"===o&&a(w)&&(w=n.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(r)return c&&!b?c(i,g.encoder,y,"key",v):i;w=""}if(p(w)||n.isBuffer(w)){if(c){var C=b?i:c(i,g.encoder,y,"key",v);if("comma"===o&&b){for(var S=l.call(String(w),","),x="",k=0;k0?w.join(",")||null:void 0}];else if(a(u))L=u;else{var N=Object.keys(w);L=h?N.sort(h):N}for(var D=0;D0?v+p:""}},67284:(e,t,i)=>{"use strict";var n=i(83699),o=Object.prototype.hasOwnProperty,r=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),i=t.obj[t.prop];if(r(i)){for(var n=[],o=0;o=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===n.RFC1738&&(40===d||41===d)?l+=a.charAt(c):d<128?l+=s[d]:d<2048?l+=s[192|d>>6]+s[128|63&d]:d<55296||d>=57344?l+=s[224|d>>12]+s[128|d>>6&63]+s[128|63&d]:(c+=1,d=65536+((1023&d)<<10|1023&a.charCodeAt(c)),l+=s[240|d>>18]+s[128|d>>12&63]+s[128|d>>6&63]+s[128|63&d])}return l},g=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"===typeof e?h+=":"+e:"symbol"===typeof e&&(h=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=i||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,t){return l=m(e),!1!==t&&g(l),c.call(d)},d.setDefaultLevel=function(e){a=m(e),p()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,f(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(r!==d&&(s=m(r.getLevel())),c.call(d),r===d)for(var e in o)o[e].rebuild()},s=m(r?r.getLevel():"WARN");var v=p();null!=v&&(l=m(v)),c.call(d)}r=new h,r.getLogger=function(e){if("symbol"!==typeof e&&"string"!==typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new h(e,r.methodFactory)),t};var g=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=g),r},r.getLoggers=function(){return o},r["default"]=r,r}))},30630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>yc,Emitter:()=>wc,KeyCode:()=>Cc,KeyMod:()=>Sc,MarkerSeverity:()=>Nc,MarkerTag:()=>Dc,Position:()=>xc,Range:()=>kc,Selection:()=>Lc,SelectionDirection:()=>Ec,Token:()=>Ic,Uri:()=>Tc,default:()=>Pc,editor:()=>Rc,languages:()=>Ac});var n={};i.r(n),i.d(n,{CancellationTokenSource:()=>yc,Emitter:()=>wc,KeyCode:()=>Cc,KeyMod:()=>Sc,MarkerSeverity:()=>Nc,MarkerTag:()=>Dc,Position:()=>xc,Range:()=>kc,Selection:()=>Lc,SelectionDirection:()=>Ec,Token:()=>Ic,Uri:()=>Tc,editor:()=>Rc,languages:()=>Ac});i(56869),i(99444),i(36485),i(26216),i(82327),i(57383),i(78241),i(81580),i(55808),i(91542),i(34306),i(93123),i(93405),i(8714),i(91715),i(74303),i(61539),i(78166),i(74314),i(79196),i(88969),i(86858),i(64457),i(27234),i(54869),i(74475),i(20713),i(74187),i(61423),i(63156),i(92954),i(73632),i(36108),i(66623),i(44737),i(89806),i(41287),i(78786),i(69225),i(76602),i(86898),i(52394),i(48802),i(95234),i(33082),i(85774),i(67131),i(13512),i(92189),i(83124),i(57283),i(83282),i(58151),i(73276),i(63338),i(46072),i(95673),i(54775),i(7614),i(90452),i(41902),i(75604),i(61150),i(99035);var o=i(93215),r=i(93121),s=i(36606),a=i(70959),l=i(61720),c=i(95896),d=i(64336),u=i(48077),h=i(35195),g=i(2179),p=i(86674);function f(e,t,i){return new m(e,t,i)}class m extends p.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,g.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var v=i(99868),_=i(8544),b=i(22668),y=i(32515),w=i(61141),C=i(97297),S=i(32484),x=i(89492),k=i(79857),L=i(74016),E=i(83646),N=i(82168),D=i(81083),T=i(93489),I=i(70748);function R(e){return Array.isArray(e)}function A(e){return!R(e)}function O(e){return"string"===typeof e}function P(e){return!O(e)}function M(e){return!e}function F(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function B(e){return e.replace(/[&<>'"_]/g,"-")}function H(e,t){console.log(`${e.languageId}: ${t}`)}function W(e,t){return new Error(`${e.languageId}: ${t}`)}function V(e,t,i,n,o){const r=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let s=null;return t.replace(r,(function(t,r,a,l,c,d,u,h,g){return M(a)?M(l)?!M(c)&&c0){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}function z(e,t){let i=t;while(i&&i.length>0){const t=e.stateNames[i];if(t)return!0;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return!1}var U,$=i(47596),q=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},K=function(e,t){return function(i,n){t(i,n,e)}};const G=5;class Z{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Q(e,t);let i=Q.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new Q(e,t),this._entries[i]=n,n)}}Z._INSTANCE=new Z(G);class Q{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Q._equals(this,e)}push(e){return Z.create(this,e)}pop(){return this.parent}popall(){let e=this;while(e.parent)e=e.parent;return e}switchTo(e){return Z.create(this.parent,e)}}class Y{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){const e=this.state.clone();return e===this.state?this:new Y(this.languageId,this.state)}}class J{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new X(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new X(e,t);const i=Q.getStackElementId(e);let n=this._entries[i];return n||(n=new X(e,null),this._entries[i]=n,n)}}J._INSTANCE=new J(G);class X{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){const e=this.embeddedLanguageData?this.embeddedLanguageData.clone():null;return e===this.embeddedLanguageData?this:J.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof X&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class ee{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new y.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,r=i.state,s=y.RW.get(o);if(!s)return this.enterLanguage(o),this.emit(n,""),r;const a=s.tokenize(e,t,r);if(0!==n)for(const l of a.tokens)this._tokens.push(new y.WU(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new y.hG(this._tokens,e)}}class te{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,o=t.length,r=null!==i?i.length:0;if(0===n&&0===o&&0===r)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===r)return e;const s=new Uint32Array(n+o+r);null!==e&&s.set(e);for(let a=0;a{if(r)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=y.RW.get(t);if(i){if(i instanceof U){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else y.RW.isResolved(t)||e.push(y.RW.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=Z.create(null,this._lexer.start);return J.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Ri)(this._languageId,i);const n=new ee,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new te(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=j(this._lexer,t.stack.state),!i))throw W(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const r of i){if(!P(r.action)||"@pop"!==r.action.nextEmbedded)continue;o=!0;let t=r.regex;const i=r.regex.source;if("^(?:"===i.substr(0,4)&&")"===i.substr(i.length-1,1)){const e=(t.ignoreCase?"i":"")+(t.unicode?"u":"");t=new RegExp(i.substr(4,i.length-5),e)}const s=e.search(t);-1===s||0!==s&&r.matchOnlyAtLineStart||(-1===n||s0&&o.nestedLanguageTokenize(s,!1,i.embeddedLanguageData,n);const a=e.substring(r);return this._myTokenize(a,t,i,n+r,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const r=e.length,s=t&&this._lexer.includeLF?e+"\n":e,a=s.length;let l=i.embeddedLanguageData,c=i.stack,d=0,u=null,h=!0;while(h||d=a)break;h=!1;let e=this._lexer.tokenizer[f];if(!e&&(e=j(this._lexer,f),!e))throw W(this._lexer,"tokenizer state is not defined: "+f);const t=s.substr(d);for(const i of e)if((0===d||!i.matchOnlyAtLineStart)&&(m=t.match(i.regex),m)){v=m[0],_=i.action;break}}if(m||(m=[""],v=""),_||(d=this._lexer.maxStack)throw W(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(f)}else if("@pop"===_.next){if(c.depth<=1)throw W(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));c=c.pop()}else if("@popall"===_.next)c=c.popall();else{let e=V(this._lexer,_.next,v,m,f);if("@"===e[0]&&(e=e.substr(1)),!j(this._lexer,e))throw W(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));c=c.push(e)}}_.log&&"string"===typeof _.log&&H(this._lexer,this._lexer.languageId+": "+V(this._lexer,_.log,v,m,f))}if(null===w)throw W(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const C=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,s=this._getNestedEmbeddedLanguageData(r);if(d0)throw W(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(m.length!==w.length+1)throw W(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;te});class re{static colorizeElement(e,t,i,n){n=n||{};const o=n.theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const s=t.getLanguageIdByMimeType(r)||r;e.setTheme(o);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const l=e=>{var t;const n=null!==(t=null===oe||void 0===oe?void 0:oe.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n};return this.colorize(t,a||"",s,n).then(l,(e=>console.error(e)))}static async colorize(e,t,i,n){const o=e.languageIdCodec;let r=4;n&&"number"===typeof n.tabSize&&(r=n.tabSize),l.uS(t)&&(t=t.substr(1));const s=l.uq(t);if(!e.isRegisteredLanguageId(i))return ae(s,r,o);const a=await y.RW.getOrCreate(i);return a?se(s,r,a,o):ae(s,r,o)}static colorizeLine(e,t,i,n,o=4){const r=I.wA.isBasicASCII(e,t),s=I.wA.containsRTL(e,r,i),a=(0,T.tF)(new T.IJ(!1,!0,e,!1,r,s,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t),r=o.inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,i)}}function se(e,t,i,n){return new Promise(((o,r)=>{const s=()=>{const a=le(e,t,i,n);if(i instanceof ie){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(s,r)}o(a)};s()}))}function ae(e,t,i){let n=[];const o=33587200,r=new Uint32Array(2);r[0]=0,r[1]=o;for(let s=0,a=e.length;s")}return n.join("")}function le(e,t,i,n){let o=[],r=i.getInitialState();for(let s=0,a=e.length;s"),r=l.endState}return o.join("")}var ce=i(69332),de=i(97060),ue=i(51177),he=i(2548),ge=i(50200),pe=i(11271),fe=i(33010),me=i(32656),ve=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},_e=function(e,t){return function(i,n){t(i,n,e)}};let be=class extends a.JT{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new pe.Q5),this._onCodeEditorAdd=this._register(new pe.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new pe.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new pe.Q5),this._onDiffEditorAdd=this._register(new pe.Q5),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new pe.Q5),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new fe.S,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){const e=this._modelProperties.get(i);return e.get(t)}}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const o=await n(e,t,i);if(null!==o)return o}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,a.OF)(t)}};be=ve([_e(0,me.XE)],be);var ye=i(37174),we=i(39326),Ce=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},Se=function(e,t){return function(i,n){t(i,n,e)}};let xe=class extends be{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){const i=this.findModel(e,t.resource);if(!i){if(t.resource){const i=t.resource.scheme;if(i===ge.lg.http||i===ge.lg.https)return(0,he.V3)(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if("number"===typeof n.endLineNumber&&"number"===typeof n.endColumn)e.setSelection(n),e.revealRangeInCenter(n,1);else{const t={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};xe=Ce([Se(0,ye.i6),Se(1,me.XE)],xe),(0,we.z)(h.$,xe,0);var ke=i(21921),Le=i(21881);const Ee=(0,Le.yh)("layoutService");var Ne=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},De=function(e,t){return function(i,n){t(i,n,e)}};let Te=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,ke.Xh)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:s.Ex.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null===i||void 0===i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return he.D6(this.mainContainer)}get activeContainerDimension(){return he.D6(this.activeContainer)}get containers(){return(0,ke.kX)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=pe.ju.None,this.onDidLayoutActiveContainer=pe.ju.None,this.onDidLayoutContainer=pe.ju.None,this.onDidChangeActiveContainer=pe.ju.None,this.onDidAddContainer=pe.ju.None,this.whenActiveContainerStylesLoaded=Promise.resolve(),this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Te=Ne([De(0,h.$)],Te);let Ie=class extends Te{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};Ie=Ne([De(1,h.$)],Ie),(0,we.z)(Ee,Te,1);var Re=i(98642),Ae=i(72235),Oe=i(25206),Pe=i(8283),Me=i(18736),Fe=i(70813),Be=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},He=function(e,t){return function(i,n){t(i,n,e)}};const We=!1;function Ve(e){return e.scheme===ge.lg.file?e.fsPath:e.path}let je=0;class ze{constructor(e,t,i,n,o,r,s){this.id=++je,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=s,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ue{constructor(e,t){this.resourceLabel=e,this.reason=t}}class $e{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){const i=0===n.reason?e:t;i.push(n.resourceLabel)}const i=[];return e.length>0&&i.push(Oe.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(Oe.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class qe{constructor(e,t,i,n,o,r,s){this.id=++je,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=s,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new $e),this.removedResources.has(t)||this.removedResources.set(t,new Ue(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new $e),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Ue(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ke{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i